acinclude.m4: Uniform formatting.
[official-gcc.git] / libstdc++-v3 / configure
blob8e16af9b471ab928bbeb7340877bf78c93fdb3a8
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-multilib build hella library versions (default)"
16 ac_help="$ac_help
17 --with-target-subdir=SUBDIR
18 configuring in a subdirectory"
19 ac_help="$ac_help
20 --with-cross-host=HOST configuring with a cross compiler"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-debug extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39 --enable-cstdio enable stdio for target io package.
40 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
42 ac_help="$ac_help
43 --enable-clocale enable model for target locale package.
44 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
46 ac_help="$ac_help
47 --enable-nls use Native Language Support (default)"
48 ac_help="$ac_help
49 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53 --enable-long-long turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55 --enable-cheaders construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
58 [default=none]"
59 ac_help="$ac_help
60 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
61 ac_help="$ac_help
62 --enable-libunwind-exceptions force use of libunwind for exceptions"
63 ac_help="$ac_help
64 --enable-concept-checks use Boost-derived template checks [default=no]"
65 ac_help="$ac_help
66 --enable-symvers=style enables symbol versioning of the shared library [default=yes]"
67 ac_help="$ac_help
68 --with-gxx-include-dir the installation directory for include files"
69 ac_help="$ac_help
70 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 srcdir=
89 target=NONE
90 verbose=
91 x_includes=NONE
92 x_libraries=NONE
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
106 # Initialize some other variables.
107 subdirs=
108 MFLAGS= MAKEFLAGS=
109 SHELL=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
111 ac_max_here_lines=12
113 ac_prev=
114 for ac_option
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
120 ac_prev=
121 continue
124 case "$ac_option" in
125 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 *) ac_optarg= ;;
127 esac
129 # Accept the important Cygnus configure options, so we can diagnose typos.
131 case "$ac_option" in
133 -bindir | --bindir | --bindi | --bind | --bin | --bi)
134 ac_prev=bindir ;;
135 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136 bindir="$ac_optarg" ;;
138 -build | --build | --buil | --bui | --bu)
139 ac_prev=build ;;
140 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141 build="$ac_optarg" ;;
143 -cache-file | --cache-file | --cache-fil | --cache-fi \
144 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145 ac_prev=cache_file ;;
146 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148 cache_file="$ac_optarg" ;;
150 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151 ac_prev=datadir ;;
152 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153 | --da=*)
154 datadir="$ac_optarg" ;;
156 -disable-* | --disable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* | --enable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 case "$ac_option" in
173 *=*) ;;
174 *) ac_optarg=yes ;;
175 esac
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180 | --exec | --exe | --ex)
181 ac_prev=exec_prefix ;;
182 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184 | --exec=* | --exe=* | --ex=*)
185 exec_prefix="$ac_optarg" ;;
187 -gas | --gas | --ga | --g)
188 # Obsolete; use --with-gas.
189 with_gas=yes ;;
191 -help | --help | --hel | --he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
194 cat << EOF
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
197 Configuration:
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
205 [$ac_default_prefix]
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 [same as prefix]
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
212 [PREFIX/share]
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 [PREFIX/com]
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --infodir=DIR info documentation in DIR [PREFIX/info]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
228 cat << EOF
229 Host type:
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
244 exit 0 ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host="$ac_optarg" ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir="$ac_optarg" ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
259 ac_prev=infodir ;;
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir="$ac_optarg" ;;
263 -libdir | --libdir | --libdi | --libd)
264 ac_prev=libdir ;;
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
266 libdir="$ac_optarg" ;;
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir="$ac_optarg" ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir="$ac_optarg" ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285 ac_prev=mandir ;;
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287 mandir="$ac_optarg" ;;
289 -nfp | --nfp | --nf)
290 # Obsolete; use --without-fp.
291 with_fp=no ;;
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294 | --no-cr | --no-c)
295 no_create=yes ;;
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299 no_recursion=yes ;;
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir="$ac_optarg" ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311 ac_prev=prefix ;;
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313 prefix="$ac_optarg" ;;
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix="$ac_optarg" ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix="$ac_optarg" ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name="$ac_optarg" ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
348 silent=yes ;;
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351 ac_prev=sbindir ;;
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353 | --sbi=* | --sb=*)
354 sbindir="$ac_optarg" ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
359 | --sha | --sh)
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364 | --sha=* | --sh=*)
365 sharedstatedir="$ac_optarg" ;;
367 -site | --site | --sit)
368 ac_prev=site ;;
369 -site=* | --site=* | --sit=*)
370 site="$ac_optarg" ;;
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373 ac_prev=srcdir ;;
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375 srcdir="$ac_optarg" ;;
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir="$ac_optarg" ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target="$ac_optarg" ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
390 verbose=yes ;;
392 -version | --version | --versio | --versi | --vers)
393 echo "configure generated by autoconf version 2.13"
394 exit 0 ;;
396 -with-* | --with-*)
397 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 case "$ac_option" in
404 *=*) ;;
405 *) ac_optarg=yes ;;
406 esac
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
418 --x)
419 # Obsolete; use --with-x.
420 with_x=yes ;;
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes="$ac_optarg" ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 nonopt="$ac_option"
449 esac
450 done
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467 exec 6>/dev/null
468 else
469 exec 6>&1
471 exec 5>./config.log
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
483 case "$ac_arg" in
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c) ;;
486 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491 esac
492 done
494 # NLS nuisances.
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=src/ios.cc
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
517 ac_prog=$0
518 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 srcdir=$ac_confdir
521 if test ! -r $srcdir/$ac_unique_file; then
522 srcdir=..
524 else
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530 else
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE; then
539 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540 else
541 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
547 . "$ac_site_file"
549 done
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
553 . $cache_file
554 else
555 echo "creating cache $cache_file"
556 > $cache_file
559 ac_ext=c
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
566 ac_exeext=
567 ac_objext=o
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571 ac_n= ac_c='
572 ' ac_t=' '
573 else
574 ac_n=-n ac_c= ac_t=
576 else
577 ac_n= ac_c='\c' ac_t=
582 # This works around the fact that libtool configuration may change LD
583 # for this particular configuration, but some shells, instead of
584 # keeping the changes in LD private, export them just because LD is
585 # exported. Only used at the end of this file.
586 ORIGINAL_LD_FOR_MULTILIBS=$LD
588 PACKAGE=libstdc++
590 # For libtool versioning info, format is CURRENT:REVISION:AGE
591 libtool_VERSION=5:1:0
595 # Check whether --enable-multilib or --disable-multilib was given.
596 if test "${enable_multilib+set}" = set; then
597 enableval="$enable_multilib"
598 case "${enableval}" in
599 yes) multilib=yes ;;
600 no) multilib=no ;;
601 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
602 esac
603 else
604 multilib=yes
607 # When building with srcdir == objdir, links to the source files will
608 # be created in directories within the target_subdir. We have to
609 # adjust toplevel_srcdir accordingly, so that configure finds
610 # install-sh and other auxiliary files that live in the top-level
611 # source directory.
612 if test "${srcdir}" = "."; then
613 if test -z "${with_target_subdir}"; then
614 toprel=".."
615 else
616 if test "${with_target_subdir}" != "."; then
617 toprel="${with_multisrctop}../.."
618 else
619 toprel="${with_multisrctop}.."
622 else
623 toprel=".."
625 ac_aux_dir=
626 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
627 if test -f $ac_dir/install-sh; then
628 ac_aux_dir=$ac_dir
629 ac_install_sh="$ac_aux_dir/install-sh -c"
630 break
631 elif test -f $ac_dir/install.sh; then
632 ac_aux_dir=$ac_dir
633 ac_install_sh="$ac_aux_dir/install.sh -c"
634 break
636 done
637 if test -z "$ac_aux_dir"; then
638 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
640 ac_config_guess=$ac_aux_dir/config.guess
641 ac_config_sub=$ac_aux_dir/config.sub
642 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
644 toplevel_srcdir=\${top_srcdir}/$toprel
648 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
650 # You will slowly go insane if you do not grok the following fact: when
651 # building v3 as part of the compiler, the top-level /target/ becomes the
652 # library's /host/. `configure' then causes --target to default to --host,
653 # exactly like any other package using autoconf. Therefore, 'target' and
654 # 'host' will always be the same. This makes sense both for native and
655 # cross compilers, just think about it for a little while. :-)
657 # Also, if v3 is being configured as part of a cross compiler, the top-level
658 # configure script will pass the "real" host as $with_cross_host.
660 # AC 2.5x sets target_alias iff the user specified --target, but we use it
661 # everywhere, so we set it here just to be sure. In AC 2.13
662 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
664 # Do some error checking and defaulting for the host and target type.
665 # The inputs are:
666 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
668 # The rules are:
669 # 1. You are not allowed to specify --host, --target, and nonopt at the
670 # same time.
671 # 2. Host defaults to nonopt.
672 # 3. If nonopt is not specified, then host defaults to the current host,
673 # as determined by config.guess.
674 # 4. Target and build default to nonopt.
675 # 5. If nonopt is not specified, then target and build default to host.
677 # The aliases save the names the user supplied, while $host etc.
678 # will get canonicalized.
679 case $host---$target---$nonopt in
680 NONE---*---* | *---NONE---* | *---*---NONE) ;;
681 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
682 esac
685 # Make sure we can run config.sub.
686 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
687 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
690 echo $ac_n "checking host system type""... $ac_c" 1>&6
691 echo "configure:692: checking host system type" >&5
693 host_alias=$host
694 case "$host_alias" in
695 NONE)
696 case $nonopt in
697 NONE)
698 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
699 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
700 fi ;;
701 *) host_alias=$nonopt ;;
702 esac ;;
703 esac
705 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
706 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
709 echo "$ac_t""$host" 1>&6
711 echo $ac_n "checking target system type""... $ac_c" 1>&6
712 echo "configure:713: checking target system type" >&5
714 target_alias=$target
715 case "$target_alias" in
716 NONE)
717 case $nonopt in
718 NONE) target_alias=$host_alias ;;
719 *) target_alias=$nonopt ;;
720 esac ;;
721 esac
723 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
724 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
725 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
726 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
727 echo "$ac_t""$target" 1>&6
729 echo $ac_n "checking build system type""... $ac_c" 1>&6
730 echo "configure:731: checking build system type" >&5
732 build_alias=$build
733 case "$build_alias" in
734 NONE)
735 case $nonopt in
736 NONE) build_alias=$host_alias ;;
737 *) build_alias=$nonopt ;;
738 esac ;;
739 esac
741 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
742 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
743 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
744 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
745 echo "$ac_t""$build" 1>&6
747 test "$host_alias" != "$target_alias" &&
748 test "$program_prefix$program_suffix$program_transform_name" = \
749 NONENONEs,x,x, &&
750 program_prefix=${target_alias}-
752 target_alias=${target_alias-$target}
755 # Runs configure.target, finds CC, CXX and assorted other critical bits.
756 # Must run this before the GLIBCPP_ENABLE_* macros below.
757 if test $host != $build; then
758 ac_tool_prefix=${host_alias}-
759 else
760 ac_tool_prefix=
763 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
764 echo "configure:765: checking for Cygwin environment" >&5
765 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
766 echo $ac_n "(cached) $ac_c" 1>&6
767 else
768 cat > conftest.$ac_ext <<EOF
769 #line 770 "configure"
770 #include "confdefs.h"
772 int main() {
774 #ifndef __CYGWIN__
775 #define __CYGWIN__ __CYGWIN32__
776 #endif
777 return __CYGWIN__;
778 ; return 0; }
780 if { (eval echo configure:781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
781 rm -rf conftest*
782 ac_cv_cygwin=yes
783 else
784 echo "configure: failed program was:" >&5
785 cat conftest.$ac_ext >&5
786 rm -rf conftest*
787 ac_cv_cygwin=no
789 rm -f conftest*
790 rm -f conftest*
793 echo "$ac_t""$ac_cv_cygwin" 1>&6
794 CYGWIN=
795 test "$ac_cv_cygwin" = yes && CYGWIN=yes
796 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
797 echo "configure:798: checking for mingw32 environment" >&5
798 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
800 else
801 cat > conftest.$ac_ext <<EOF
802 #line 803 "configure"
803 #include "confdefs.h"
805 int main() {
806 return __MINGW32__;
807 ; return 0; }
809 if { (eval echo configure:810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
810 rm -rf conftest*
811 ac_cv_mingw32=yes
812 else
813 echo "configure: failed program was:" >&5
814 cat conftest.$ac_ext >&5
815 rm -rf conftest*
816 ac_cv_mingw32=no
818 rm -f conftest*
819 rm -f conftest*
822 echo "$ac_t""$ac_cv_mingw32" 1>&6
823 MINGW32=
824 test "$ac_cv_mingw32" = yes && MINGW32=yes
826 # Export build and source directories.
827 # These need to be absolute paths, yet at the same time need to
828 # canonicalize only relative paths, because then amd will not unmount
829 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
830 glibcpp_builddir=`${PWDCMD-pwd}`
831 case $srcdir in
832 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
833 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
834 esac
840 for ac_prog in mawk gawk nawk awk
842 # Extract the first word of "$ac_prog", so it can be a program name with args.
843 set dummy $ac_prog; ac_word=$2
844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
845 echo "configure:846: checking for $ac_word" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
848 else
849 if test -n "$AWK"; then
850 ac_cv_prog_AWK="$AWK" # Let the user override the test.
851 else
852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
853 ac_dummy="$PATH"
854 for ac_dir in $ac_dummy; do
855 test -z "$ac_dir" && ac_dir=.
856 if test -f $ac_dir/$ac_word; then
857 ac_cv_prog_AWK="$ac_prog"
858 break
860 done
861 IFS="$ac_save_ifs"
864 AWK="$ac_cv_prog_AWK"
865 if test -n "$AWK"; then
866 echo "$ac_t""$AWK" 1>&6
867 else
868 echo "$ac_t""no" 1>&6
871 test -n "$AWK" && break
872 done
874 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
875 # be 'cp -p' if linking isn't available. Uncomment the next line to
876 # force a particular method.
877 #ac_cv_prog_LN_S='cp -p'
878 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
879 echo "configure:880: checking whether ln -s works" >&5
880 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
881 echo $ac_n "(cached) $ac_c" 1>&6
882 else
883 rm -f conftestdata
884 if ln -s X conftestdata 2>/dev/null
885 then
886 rm -f conftestdata
887 ac_cv_prog_LN_S="ln -s"
888 else
889 ac_cv_prog_LN_S=ln
892 LN_S="$ac_cv_prog_LN_S"
893 if test "$ac_cv_prog_LN_S" = "ln -s"; then
894 echo "$ac_t""yes" 1>&6
895 else
896 echo "$ac_t""no" 1>&6
900 # We use these options to decide which functions to include.
901 # Check whether --with-target-subdir or --without-target-subdir was given.
902 if test "${with_target_subdir+set}" = set; then
903 withval="$with_target_subdir"
907 # Check whether --with-cross-host or --without-cross-host was given.
908 if test "${with_cross_host+set}" = set; then
909 withval="$with_cross_host"
914 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
917 # Never versions of autoconf add an underscore to these functions.
918 # Prevent future problems ...
924 # AC_PROG_CC
925 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
926 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
927 # are probably using a cross compiler, which will not be able to fully
928 # link an executable. This is addressed in later versions of autoconf.
933 # Extract the first word of "gcc", so it can be a program name with args.
934 set dummy gcc; ac_word=$2
935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
936 echo "configure:937: checking for $ac_word" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
939 else
940 if test -n "$CC"; then
941 ac_cv_prog_CC="$CC" # Let the user override the test.
942 else
943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
944 ac_dummy="$PATH"
945 for ac_dir in $ac_dummy; do
946 test -z "$ac_dir" && ac_dir=.
947 if test -f $ac_dir/$ac_word; then
948 ac_cv_prog_CC="gcc"
949 break
951 done
952 IFS="$ac_save_ifs"
955 CC="$ac_cv_prog_CC"
956 if test -n "$CC"; then
957 echo "$ac_t""$CC" 1>&6
958 else
959 echo "$ac_t""no" 1>&6
962 if test -z "$CC"; then
963 # Extract the first word of "cc", so it can be a program name with args.
964 set dummy cc; ac_word=$2
965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
966 echo "configure:967: checking for $ac_word" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
969 else
970 if test -n "$CC"; then
971 ac_cv_prog_CC="$CC" # Let the user override the test.
972 else
973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
974 ac_prog_rejected=no
975 ac_dummy="$PATH"
976 for ac_dir in $ac_dummy; do
977 test -z "$ac_dir" && ac_dir=.
978 if test -f $ac_dir/$ac_word; then
979 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
980 ac_prog_rejected=yes
981 continue
983 ac_cv_prog_CC="cc"
984 break
986 done
987 IFS="$ac_save_ifs"
988 if test $ac_prog_rejected = yes; then
989 # We found a bogon in the path, so make sure we never use it.
990 set dummy $ac_cv_prog_CC
991 shift
992 if test $# -gt 0; then
993 # We chose a different compiler from the bogus one.
994 # However, it has the same basename, so the bogon will be chosen
995 # first if we set CC to just the basename; use the full file name.
996 shift
997 set dummy "$ac_dir/$ac_word" "$@"
998 shift
999 ac_cv_prog_CC="$@"
1004 CC="$ac_cv_prog_CC"
1005 if test -n "$CC"; then
1006 echo "$ac_t""$CC" 1>&6
1007 else
1008 echo "$ac_t""no" 1>&6
1011 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1014 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1015 echo "configure:1016: checking whether we are using GNU C" >&5
1016 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1018 else
1019 cat > conftest.c <<EOF
1020 #ifdef __GNUC__
1021 yes;
1022 #endif
1024 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1025 ac_cv_prog_gcc=yes
1026 else
1027 ac_cv_prog_gcc=no
1031 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1033 if test $ac_cv_prog_gcc = yes; then
1034 GCC=yes
1035 ac_test_CFLAGS="${CFLAGS+set}"
1036 ac_save_CFLAGS="$CFLAGS"
1037 CFLAGS=
1038 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1039 echo "configure:1040: checking whether ${CC-cc} accepts -g" >&5
1040 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1042 else
1043 echo 'void f(){}' > conftest.c
1044 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1045 ac_cv_prog_cc_g=yes
1046 else
1047 ac_cv_prog_cc_g=no
1049 rm -f conftest*
1053 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1054 if test "$ac_test_CFLAGS" = set; then
1055 CFLAGS="$ac_save_CFLAGS"
1056 elif test $ac_cv_prog_cc_g = yes; then
1057 CFLAGS="-g -O2"
1058 else
1059 CFLAGS="-O2"
1061 else
1062 GCC=
1063 test "${CFLAGS+set}" = set || CFLAGS="-g"
1067 # Likewise for AC_PROG_CXX. We can't just call it directly because g++
1068 # will try to link in libstdc++.
1072 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1073 # flags that come in CXX while configuring libstdc++. They're different
1074 # from those used for all other target libraries. If CXX is set in
1075 # the environment, respect that here.
1076 glibcpp_CXX=$CXX
1077 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1079 # Extract the first word of "$ac_prog", so it can be a program name with args.
1080 set dummy $ac_prog; ac_word=$2
1081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_word" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1085 else
1086 if test -n "$glibcpp_CXX"; then
1087 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1088 else
1089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1090 ac_dummy="$PATH"
1091 for ac_dir in $ac_dummy; do
1092 test -z "$ac_dir" && ac_dir=.
1093 if test -f $ac_dir/$ac_word; then
1094 ac_cv_prog_glibcpp_CXX="$ac_prog"
1095 break
1097 done
1098 IFS="$ac_save_ifs"
1101 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1102 if test -n "$glibcpp_CXX"; then
1103 echo "$ac_t""$glibcpp_CXX" 1>&6
1104 else
1105 echo "$ac_t""no" 1>&6
1108 test -n "$glibcpp_CXX" && break
1109 done
1110 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1113 CXX=$glibcpp_CXX
1114 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1116 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether we are using GNU C++" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1120 else
1121 cat > conftest.C <<EOF
1122 #ifdef __GNUC__
1123 yes;
1124 #endif
1126 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1127 ac_cv_prog_gxx=yes
1128 else
1129 ac_cv_prog_gxx=no
1133 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1135 if test $ac_cv_prog_gxx = yes; then
1136 GXX=yes
1137 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1138 ac_save_CXXFLAGS="$CXXFLAGS"
1139 CXXFLAGS=
1140 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1141 echo "configure:1142: checking whether ${CXX-g++} accepts -g" >&5
1142 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1144 else
1145 echo 'void f(){}' > conftest.cc
1146 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1147 ac_cv_prog_cxx_g=yes
1148 else
1149 ac_cv_prog_cxx_g=no
1151 rm -f conftest*
1155 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1156 if test "$ac_test_CXXFLAGS" = set; then
1157 CXXFLAGS="$ac_save_CXXFLAGS"
1158 elif test $ac_cv_prog_cxx_g = yes; then
1159 CXXFLAGS="-g -O2"
1160 else
1161 CXXFLAGS="-O2"
1163 else
1164 GXX=
1165 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1169 # For directory versioning (e.g., headers) and other variables.
1170 echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1171 echo "configure:1172: checking for GCC version number" >&5
1172 gcc_version=`$glibcpp_CXX -dumpversion`
1173 echo "$ac_t""$gcc_version" 1>&6
1175 # For some reason, gettext needs this.
1177 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1178 echo "configure:1179: checking for strerror in -lcposix" >&5
1179 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1182 else
1183 ac_save_LIBS="$LIBS"
1184 LIBS="-lcposix $LIBS"
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1188 /* Override any gcc2 internal prototype to avoid an error. */
1189 /* We use char because int might match the return type of a gcc2
1190 builtin and then its argument prototype would still apply. */
1191 char strerror();
1193 int main() {
1194 strerror()
1195 ; return 0; }
1197 if { (eval echo configure:1198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1198 rm -rf conftest*
1199 eval "ac_cv_lib_$ac_lib_var=yes"
1200 else
1201 echo "configure: failed program was:" >&5
1202 cat conftest.$ac_ext >&5
1203 rm -rf conftest*
1204 eval "ac_cv_lib_$ac_lib_var=no"
1206 rm -f conftest*
1207 LIBS="$ac_save_LIBS"
1210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1211 echo "$ac_t""yes" 1>&6
1212 LIBS="$LIBS -lcposix"
1213 else
1214 echo "$ac_t""no" 1>&6
1220 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1221 set dummy ${ac_tool_prefix}as; ac_word=$2
1222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1223 echo "configure:1224: checking for $ac_word" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1226 else
1227 if test -n "$AS"; then
1228 ac_cv_prog_AS="$AS" # Let the user override the test.
1229 else
1230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1231 ac_dummy="$PATH"
1232 for ac_dir in $ac_dummy; do
1233 test -z "$ac_dir" && ac_dir=.
1234 if test -f $ac_dir/$ac_word; then
1235 ac_cv_prog_AS="${ac_tool_prefix}as"
1236 break
1238 done
1239 IFS="$ac_save_ifs"
1240 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1243 AS="$ac_cv_prog_AS"
1244 if test -n "$AS"; then
1245 echo "$ac_t""$AS" 1>&6
1246 else
1247 echo "$ac_t""no" 1>&6
1252 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1253 set dummy ${ac_tool_prefix}ar; ac_word=$2
1254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1255 echo "configure:1256: checking for $ac_word" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1258 else
1259 if test -n "$AR"; then
1260 ac_cv_prog_AR="$AR" # Let the user override the test.
1261 else
1262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1263 ac_dummy="$PATH"
1264 for ac_dir in $ac_dummy; do
1265 test -z "$ac_dir" && ac_dir=.
1266 if test -f $ac_dir/$ac_word; then
1267 ac_cv_prog_AR="${ac_tool_prefix}ar"
1268 break
1270 done
1271 IFS="$ac_save_ifs"
1272 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1275 AR="$ac_cv_prog_AR"
1276 if test -n "$AR"; then
1277 echo "$ac_t""$AR" 1>&6
1278 else
1279 echo "$ac_t""no" 1>&6
1284 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1285 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1287 echo "configure:1288: checking for $ac_word" >&5
1288 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1289 echo $ac_n "(cached) $ac_c" 1>&6
1290 else
1291 if test -n "$RANLIB"; then
1292 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1293 else
1294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1295 ac_dummy="$PATH"
1296 for ac_dir in $ac_dummy; do
1297 test -z "$ac_dir" && ac_dir=.
1298 if test -f $ac_dir/$ac_word; then
1299 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1300 break
1302 done
1303 IFS="$ac_save_ifs"
1306 RANLIB="$ac_cv_prog_RANLIB"
1307 if test -n "$RANLIB"; then
1308 echo "$ac_t""$RANLIB" 1>&6
1309 else
1310 echo "$ac_t""no" 1>&6
1314 if test -z "$ac_cv_prog_RANLIB"; then
1315 if test -n "$ac_tool_prefix"; then
1316 # Extract the first word of "ranlib", so it can be a program name with args.
1317 set dummy ranlib; ac_word=$2
1318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1319 echo "configure:1320: checking for $ac_word" >&5
1320 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1322 else
1323 if test -n "$RANLIB"; then
1324 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1325 else
1326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1327 ac_dummy="$PATH"
1328 for ac_dir in $ac_dummy; do
1329 test -z "$ac_dir" && ac_dir=.
1330 if test -f $ac_dir/$ac_word; then
1331 ac_cv_prog_RANLIB="ranlib"
1332 break
1334 done
1335 IFS="$ac_save_ifs"
1336 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1339 RANLIB="$ac_cv_prog_RANLIB"
1340 if test -n "$RANLIB"; then
1341 echo "$ac_t""$RANLIB" 1>&6
1342 else
1343 echo "$ac_t""no" 1>&6
1346 else
1347 RANLIB="ranlib-not-found-in-path-error"
1351 # Find a good install program. We prefer a C program (faster),
1352 # so one script is as good as another. But avoid the broken or
1353 # incompatible versions:
1354 # SysV /etc/install, /usr/sbin/install
1355 # SunOS /usr/etc/install
1356 # IRIX /sbin/install
1357 # AIX /bin/install
1358 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1359 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1360 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1361 # ./install, which can be erroneously created by make from ./install.sh.
1362 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1363 echo "configure:1364: checking for a BSD compatible install" >&5
1364 if test -z "$INSTALL"; then
1365 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1367 else
1368 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1369 for ac_dir in $PATH; do
1370 # Account for people who put trailing slashes in PATH elements.
1371 case "$ac_dir/" in
1372 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1374 # OSF1 and SCO ODT 3.0 have their own names for install.
1375 # Don't use installbsd from OSF since it installs stuff as root
1376 # by default.
1377 for ac_prog in ginstall scoinst install; do
1378 if test -f $ac_dir/$ac_prog; then
1379 if test $ac_prog = install &&
1380 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1381 # AIX install. It has an incompatible calling convention.
1383 else
1384 ac_cv_path_install="$ac_dir/$ac_prog -c"
1385 break 2
1388 done
1390 esac
1391 done
1392 IFS="$ac_save_IFS"
1395 if test "${ac_cv_path_install+set}" = set; then
1396 INSTALL="$ac_cv_path_install"
1397 else
1398 # As a last resort, use the slow shell script. We don't cache a
1399 # path for INSTALL within a source directory, because that will
1400 # break other packages using the cache if that directory is
1401 # removed, or if the path is relative.
1402 INSTALL="$ac_install_sh"
1405 echo "$ac_t""$INSTALL" 1>&6
1407 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1408 # It thinks the first close brace ends the variable substitution.
1409 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1411 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1413 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1416 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1417 echo "configure:1418: checking whether to enable maintainer-specific portions of Makefiles" >&5
1418 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1419 if test "${enable_maintainer_mode+set}" = set; then
1420 enableval="$enable_maintainer_mode"
1421 USE_MAINTAINER_MODE=$enableval
1422 else
1423 USE_MAINTAINER_MODE=no
1426 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1429 if test $USE_MAINTAINER_MODE = yes; then
1430 MAINTAINER_MODE_TRUE=
1431 MAINTAINER_MODE_FALSE='#'
1432 else
1433 MAINTAINER_MODE_TRUE='#'
1434 MAINTAINER_MODE_FALSE=
1436 MAINT=$MAINTAINER_MODE_TRUE
1440 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1441 # at least currently, we never actually build a program, so we never
1442 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1443 # fails, because we are probably configuring with a cross compiler
1444 # which can't create executables. So we include AC_EXEEXT to keep
1445 # automake happy, but we don't execute it, since we don't care about
1446 # the result.
1447 if false; then
1448 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1449 # to nothing, so nothing would remain between `then' and `fi' if it
1450 # were not for the `:' below.
1454 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1455 echo "configure:1456: checking for executable suffix" >&5
1456 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1458 else
1459 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1460 ac_cv_exeext=.exe
1461 else
1462 rm -f conftest*
1463 echo 'int main () { return 0; }' > conftest.$ac_ext
1464 ac_cv_exeext=
1465 if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1466 for file in conftest.*; do
1467 case $file in
1468 *.$ac_ext | *.c | *.o | *.obj) ;;
1469 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1470 esac
1471 done
1472 else
1473 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1475 rm -f conftest*
1476 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1480 EXEEXT=""
1481 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1482 echo "$ac_t""${ac_cv_exeext}" 1>&6
1483 ac_exeext=$EXEEXT
1487 case ${glibcpp_basedir} in
1488 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1489 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1490 esac
1492 # Find platform-specific directories containing configuration info. In
1493 # addition to possibly modifying the same flags, it also sets up symlinks.
1495 . ${glibcpp_basedir}/configure.target
1496 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1497 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1501 am__api_version="1.4"
1502 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1503 echo "configure:1504: checking whether build environment is sane" >&5
1504 # Just in case
1505 sleep 1
1506 echo timestamp > conftestfile
1507 # Do `set' in a subshell so we don't clobber the current shell's
1508 # arguments. Must try -L first in case configure is actually a
1509 # symlink; some systems play weird games with the mod time of symlinks
1510 # (eg FreeBSD returns the mod time of the symlink's containing
1511 # directory).
1512 if (
1513 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1514 if test "$*" = "X"; then
1515 # -L didn't work.
1516 set X `ls -t $srcdir/configure conftestfile`
1518 if test "$*" != "X $srcdir/configure conftestfile" \
1519 && test "$*" != "X conftestfile $srcdir/configure"; then
1521 # If neither matched, then we have a broken ls. This can happen
1522 # if, for instance, CONFIG_SHELL is bash and it inherits a
1523 # broken ls alias from the environment. This has actually
1524 # happened. Such a system could not be considered "sane".
1525 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1526 alias in your environment" 1>&2; exit 1; }
1529 test "$2" = conftestfile
1531 then
1532 # Ok.
1534 else
1535 { echo "configure: error: newly created file is older than distributed files!
1536 Check your system clock" 1>&2; exit 1; }
1538 rm -f conftest*
1539 echo "$ac_t""yes" 1>&6
1540 if test "$program_transform_name" = s,x,x,; then
1541 program_transform_name=
1542 else
1543 # Double any \ or $. echo might interpret backslashes.
1544 cat <<\EOF_SED > conftestsed
1545 s,\\,\\\\,g; s,\$,$$,g
1546 EOF_SED
1547 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1548 rm -f conftestsed
1550 test "$program_prefix" != NONE &&
1551 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1552 # Use a double $ so make ignores it.
1553 test "$program_suffix" != NONE &&
1554 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1556 # sed with no file args requires a program.
1557 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1559 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1560 echo "configure:1561: checking whether ${MAKE-make} sets \${MAKE}" >&5
1561 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1562 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1564 else
1565 cat > conftestmake <<\EOF
1566 all:
1567 @echo 'ac_maketemp="${MAKE}"'
1569 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1570 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1571 if test -n "$ac_maketemp"; then
1572 eval ac_cv_prog_make_${ac_make}_set=yes
1573 else
1574 eval ac_cv_prog_make_${ac_make}_set=no
1576 rm -f conftestmake
1578 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1579 echo "$ac_t""yes" 1>&6
1580 SET_MAKE=
1581 else
1582 echo "$ac_t""no" 1>&6
1583 SET_MAKE="MAKE=${MAKE-make}"
1587 PACKAGE=$PACKAGE
1589 VERSION=$gcc_version
1591 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1592 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1594 cat >> confdefs.h <<EOF
1595 #define PACKAGE "$PACKAGE"
1598 cat >> confdefs.h <<EOF
1599 #define VERSION "$VERSION"
1604 missing_dir=`cd $ac_aux_dir && pwd`
1605 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1606 echo "configure:1607: checking for working aclocal-${am__api_version}" >&5
1607 # Run test in a subshell; some versions of sh will print an error if
1608 # an executable is not found, even if stderr is redirected.
1609 # Redirect stdin to placate older versions of autoconf. Sigh.
1610 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1611 ACLOCAL=aclocal-${am__api_version}
1612 echo "$ac_t""found" 1>&6
1613 else
1614 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1615 echo "$ac_t""missing" 1>&6
1618 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1619 echo "configure:1620: checking for working autoconf" >&5
1620 # Run test in a subshell; some versions of sh will print an error if
1621 # an executable is not found, even if stderr is redirected.
1622 # Redirect stdin to placate older versions of autoconf. Sigh.
1623 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1624 AUTOCONF=autoconf
1625 echo "$ac_t""found" 1>&6
1626 else
1627 AUTOCONF="$missing_dir/missing autoconf"
1628 echo "$ac_t""missing" 1>&6
1631 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1632 echo "configure:1633: checking for working automake-${am__api_version}" >&5
1633 # Run test in a subshell; some versions of sh will print an error if
1634 # an executable is not found, even if stderr is redirected.
1635 # Redirect stdin to placate older versions of autoconf. Sigh.
1636 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1637 AUTOMAKE=automake-${am__api_version}
1638 echo "$ac_t""found" 1>&6
1639 else
1640 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1641 echo "$ac_t""missing" 1>&6
1644 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1645 echo "configure:1646: checking for working autoheader" >&5
1646 # Run test in a subshell; some versions of sh will print an error if
1647 # an executable is not found, even if stderr is redirected.
1648 # Redirect stdin to placate older versions of autoconf. Sigh.
1649 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1650 AUTOHEADER=autoheader
1651 echo "$ac_t""found" 1>&6
1652 else
1653 AUTOHEADER="$missing_dir/missing autoheader"
1654 echo "$ac_t""missing" 1>&6
1657 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1658 echo "configure:1659: checking for working makeinfo" >&5
1659 # Run test in a subshell; some versions of sh will print an error if
1660 # an executable is not found, even if stderr is redirected.
1661 # Redirect stdin to placate older versions of autoconf. Sigh.
1662 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1663 MAKEINFO=makeinfo
1664 echo "$ac_t""found" 1>&6
1665 else
1666 MAKEINFO="$missing_dir/missing makeinfo"
1667 echo "$ac_t""missing" 1>&6
1676 # Check whether --enable-shared or --disable-shared was given.
1677 if test "${enable_shared+set}" = set; then
1678 enableval="$enable_shared"
1679 p=${PACKAGE-default}
1680 case $enableval in
1681 yes) enable_shared=yes ;;
1682 no) enable_shared=no ;;
1684 enable_shared=no
1685 # Look at the argument we got. We use all the common list separators.
1686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1687 for pkg in $enableval; do
1688 if test "X$pkg" = "X$p"; then
1689 enable_shared=yes
1691 done
1692 IFS="$ac_save_ifs"
1694 esac
1695 else
1696 enable_shared=yes
1699 # Check whether --enable-static or --disable-static was given.
1700 if test "${enable_static+set}" = set; then
1701 enableval="$enable_static"
1702 p=${PACKAGE-default}
1703 case $enableval in
1704 yes) enable_static=yes ;;
1705 no) enable_static=no ;;
1707 enable_static=no
1708 # Look at the argument we got. We use all the common list separators.
1709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1710 for pkg in $enableval; do
1711 if test "X$pkg" = "X$p"; then
1712 enable_static=yes
1714 done
1715 IFS="$ac_save_ifs"
1717 esac
1718 else
1719 enable_static=yes
1722 # Check whether --enable-fast-install or --disable-fast-install was given.
1723 if test "${enable_fast_install+set}" = set; then
1724 enableval="$enable_fast_install"
1725 p=${PACKAGE-default}
1726 case $enableval in
1727 yes) enable_fast_install=yes ;;
1728 no) enable_fast_install=no ;;
1730 enable_fast_install=no
1731 # Look at the argument we got. We use all the common list separators.
1732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1733 for pkg in $enableval; do
1734 if test "X$pkg" = "X$p"; then
1735 enable_fast_install=yes
1737 done
1738 IFS="$ac_save_ifs"
1740 esac
1741 else
1742 enable_fast_install=yes
1745 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1746 if test "${with_gnu_ld+set}" = set; then
1747 withval="$with_gnu_ld"
1748 test "$withval" = no || with_gnu_ld=yes
1749 else
1750 with_gnu_ld=no
1753 ac_prog=ld
1754 if test "$GCC" = yes; then
1755 # Check if gcc -print-prog-name=ld gives a path.
1756 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1757 echo "configure:1758: checking for ld used by GCC" >&5
1758 case $host in
1759 *-*-mingw*)
1760 # gcc leaves a trailing carriage return which upsets mingw
1761 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1763 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1764 esac
1765 case $ac_prog in
1766 # Accept absolute paths.
1767 [\\/]* | [A-Za-z]:[\\/]*)
1768 re_direlt='/[^/][^/]*/\.\./'
1769 # Canonicalize the path of ld
1770 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1771 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1772 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1773 done
1774 test -z "$LD" && LD="$ac_prog"
1777 # If it fails, then pretend we aren't using GCC.
1778 ac_prog=ld
1781 # If it is relative, then search for the first ld in PATH.
1782 with_gnu_ld=unknown
1784 esac
1785 elif test "$with_gnu_ld" = yes; then
1786 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1787 echo "configure:1788: checking for GNU ld" >&5
1788 else
1789 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1790 echo "configure:1791: checking for non-GNU ld" >&5
1792 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1794 else
1795 if test -z "$LD"; then
1796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1797 for ac_dir in $PATH; do
1798 test -z "$ac_dir" && ac_dir=.
1799 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1800 lt_cv_path_LD="$ac_dir/$ac_prog"
1801 # Check to see if the program is GNU ld. I'd rather use --version,
1802 # but apparently some GNU ld's only accept -v.
1803 # Break only if it was the GNU/non-GNU ld that we prefer.
1804 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1805 test "$with_gnu_ld" != no && break
1806 else
1807 test "$with_gnu_ld" != yes && break
1810 done
1811 IFS="$ac_save_ifs"
1812 else
1813 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1817 LD="$lt_cv_path_LD"
1818 if test -n "$LD"; then
1819 echo "$ac_t""$LD" 1>&6
1820 else
1821 echo "$ac_t""no" 1>&6
1823 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1824 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1825 echo "configure:1826: checking if the linker ($LD) is GNU ld" >&5
1826 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1828 else
1829 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1830 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1831 lt_cv_prog_gnu_ld=yes
1832 else
1833 lt_cv_prog_gnu_ld=no
1837 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1838 with_gnu_ld=$lt_cv_prog_gnu_ld
1841 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1842 echo "configure:1843: checking for $LD option to reload object files" >&5
1843 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1845 else
1846 lt_cv_ld_reload_flag='-r'
1849 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1850 reload_flag=$lt_cv_ld_reload_flag
1851 test -n "$reload_flag" && reload_flag=" $reload_flag"
1853 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1854 echo "configure:1855: checking for BSD-compatible nm" >&5
1855 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1857 else
1858 if test -n "$NM"; then
1859 # Let the user override the test.
1860 lt_cv_path_NM="$NM"
1861 else
1862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1863 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1864 test -z "$ac_dir" && ac_dir=.
1865 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1866 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1867 # Check to see if the nm accepts a BSD-compat flag.
1868 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1869 # nm: unknown option "B" ignored
1870 # Tru64's nm complains that /dev/null is an invalid object file
1871 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1872 lt_cv_path_NM="$tmp_nm -B"
1873 break
1874 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1875 lt_cv_path_NM="$tmp_nm -p"
1876 break
1877 else
1878 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1879 continue # so that we can try to find one that supports BSD flags
1882 done
1883 IFS="$ac_save_ifs"
1884 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1888 NM="$lt_cv_path_NM"
1889 echo "$ac_t""$NM" 1>&6
1891 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1892 echo "configure:1893: checking how to recognise dependant libraries" >&5
1893 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1894 echo $ac_n "(cached) $ac_c" 1>&6
1895 else
1896 lt_cv_file_magic_cmd='$MAGIC_CMD'
1897 lt_cv_file_magic_test_file=
1898 lt_cv_deplibs_check_method='unknown'
1899 # Need to set the preceding variable on all platforms that support
1900 # interlibrary dependencies.
1901 # 'none' -- dependencies not supported.
1902 # `unknown' -- same as none, but documents that we really don't know.
1903 # 'pass_all' -- all dependencies passed with no checks.
1904 # 'test_compile' -- check by making test program.
1905 # 'file_magic [regex]' -- check by looking for files in library path
1906 # which responds to the $file_magic_cmd with a given egrep regex.
1907 # If you have `file' or equivalent on your system and you're not sure
1908 # whether `pass_all' will *always* work, you probably want this one.
1910 case $host_os in
1911 aix*)
1912 lt_cv_deplibs_check_method=pass_all
1915 beos*)
1916 lt_cv_deplibs_check_method=pass_all
1919 bsdi4*)
1920 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1921 lt_cv_file_magic_cmd='/usr/bin/file -L'
1922 lt_cv_file_magic_test_file=/shlib/libc.so
1925 cygwin* | mingw* |pw32*)
1926 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1927 lt_cv_file_magic_cmd='$OBJDUMP -f'
1930 darwin* | rhapsody*)
1931 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1932 lt_cv_file_magic_cmd='/usr/bin/file -L'
1933 case "$host_os" in
1934 rhapsody* | darwin1.012)
1935 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1937 *) # Darwin 1.3 on
1938 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1940 esac
1943 freebsd* )
1944 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1945 case $host_cpu in
1946 i*86 )
1947 # Not sure whether the presence of OpenBSD here was a mistake.
1948 # Let's accept both of them until this is cleared up.
1949 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1950 lt_cv_file_magic_cmd=/usr/bin/file
1951 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1953 esac
1954 else
1955 lt_cv_deplibs_check_method=pass_all
1959 gnu*)
1960 lt_cv_deplibs_check_method=pass_all
1963 hpux10.20*|hpux11*)
1964 case $host_cpu in
1965 hppa*)
1966 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1967 lt_cv_file_magic_cmd=/usr/bin/file
1968 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1970 ia64*)
1971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1972 lt_cv_file_magic_cmd=/usr/bin/file
1973 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1975 esac
1978 irix5* | irix6*)
1979 case $host_os in
1980 irix5*)
1981 # this will be overridden with pass_all, but let us keep it just in case
1982 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1985 case $LD in
1986 *-32|*"-32 ") libmagic=32-bit;;
1987 *-n32|*"-n32 ") libmagic=N32;;
1988 *-64|*"-64 ") libmagic=64-bit;;
1989 *) libmagic=never-match;;
1990 esac
1991 # this will be overridden with pass_all, but let us keep it just in case
1992 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1994 esac
1995 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1996 lt_cv_deplibs_check_method=pass_all
1999 # This must be Linux ELF.
2000 linux-gnu*)
2001 case $host_cpu in
2002 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2003 lt_cv_deplibs_check_method=pass_all ;;
2005 # glibc up to 2.1.1 does not perform some relocations on ARM
2006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2007 esac
2008 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2011 netbsd*)
2012 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2013 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2014 else
2015 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2019 newsos6)
2020 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2021 lt_cv_file_magic_cmd=/usr/bin/file
2022 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2025 osf3* | osf4* | osf5*)
2026 # this will be overridden with pass_all, but let us keep it just in case
2027 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2028 lt_cv_file_magic_test_file=/shlib/libc.so
2029 lt_cv_deplibs_check_method=pass_all
2032 sco3.2v5*)
2033 lt_cv_deplibs_check_method=pass_all
2036 solaris*)
2037 lt_cv_deplibs_check_method=pass_all
2038 lt_cv_file_magic_test_file=/lib/libc.so
2041 sysv5uw[78]* | sysv4*uw2*)
2042 lt_cv_deplibs_check_method=pass_all
2045 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2046 case $host_vendor in
2047 ncr)
2048 lt_cv_deplibs_check_method=pass_all
2050 motorola)
2051 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]'
2052 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2054 esac
2056 esac
2060 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2061 file_magic_cmd=$lt_cv_file_magic_cmd
2062 deplibs_check_method=$lt_cv_deplibs_check_method
2064 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2065 echo "configure:2066: checking for object suffix" >&5
2066 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2068 else
2069 rm -f conftest*
2070 echo 'int i = 1;' > conftest.$ac_ext
2071 if { (eval echo configure:2072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2072 for ac_file in conftest.*; do
2073 case $ac_file in
2074 *.c) ;;
2075 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2076 esac
2077 done
2078 else
2079 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2081 rm -f conftest*
2084 echo "$ac_t""$ac_cv_objext" 1>&6
2085 OBJEXT=$ac_cv_objext
2086 ac_objext=$ac_cv_objext
2088 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2090 # Only perform the check for file, if the check method requires it
2091 case $deplibs_check_method in
2092 file_magic*)
2093 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2094 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2095 echo "configure:2096: checking for ${ac_tool_prefix}file" >&5
2096 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2098 else
2099 case $MAGIC_CMD in
2101 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2103 ?:/*)
2104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2107 ac_save_MAGIC_CMD="$MAGIC_CMD"
2108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2109 ac_dummy="/usr/bin:$PATH"
2110 for ac_dir in $ac_dummy; do
2111 test -z "$ac_dir" && ac_dir=.
2112 if test -f $ac_dir/${ac_tool_prefix}file; then
2113 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2114 if test -n "$file_magic_test_file"; then
2115 case $deplibs_check_method in
2116 "file_magic "*)
2117 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2119 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2120 egrep "$file_magic_regex" > /dev/null; then
2122 else
2123 cat <<EOF 1>&2
2125 *** Warning: the command libtool uses to detect shared libraries,
2126 *** $file_magic_cmd, produces output that libtool cannot recognize.
2127 *** The result is that libtool may fail to recognize shared libraries
2128 *** as such. This will affect the creation of libtool libraries that
2129 *** depend on shared libraries, but programs linked with such libtool
2130 *** libraries will work regardless of this problem. Nevertheless, you
2131 *** may want to report the problem to your system manager and/or to
2132 *** bug-libtool@gnu.org
2135 fi ;;
2136 esac
2138 break
2140 done
2141 IFS="$ac_save_ifs"
2142 MAGIC_CMD="$ac_save_MAGIC_CMD"
2144 esac
2147 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2148 if test -n "$MAGIC_CMD"; then
2149 echo "$ac_t""$MAGIC_CMD" 1>&6
2150 else
2151 echo "$ac_t""no" 1>&6
2154 if test -z "$lt_cv_path_MAGIC_CMD"; then
2155 if test -n "$ac_tool_prefix"; then
2156 echo $ac_n "checking for file""... $ac_c" 1>&6
2157 echo "configure:2158: checking for file" >&5
2158 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2159 echo $ac_n "(cached) $ac_c" 1>&6
2160 else
2161 case $MAGIC_CMD in
2163 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2165 ?:/*)
2166 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2169 ac_save_MAGIC_CMD="$MAGIC_CMD"
2170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2171 ac_dummy="/usr/bin:$PATH"
2172 for ac_dir in $ac_dummy; do
2173 test -z "$ac_dir" && ac_dir=.
2174 if test -f $ac_dir/file; then
2175 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2176 if test -n "$file_magic_test_file"; then
2177 case $deplibs_check_method in
2178 "file_magic "*)
2179 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2180 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2181 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2182 egrep "$file_magic_regex" > /dev/null; then
2184 else
2185 cat <<EOF 1>&2
2187 *** Warning: the command libtool uses to detect shared libraries,
2188 *** $file_magic_cmd, produces output that libtool cannot recognize.
2189 *** The result is that libtool may fail to recognize shared libraries
2190 *** as such. This will affect the creation of libtool libraries that
2191 *** depend on shared libraries, but programs linked with such libtool
2192 *** libraries will work regardless of this problem. Nevertheless, you
2193 *** may want to report the problem to your system manager and/or to
2194 *** bug-libtool@gnu.org
2197 fi ;;
2198 esac
2200 break
2202 done
2203 IFS="$ac_save_ifs"
2204 MAGIC_CMD="$ac_save_MAGIC_CMD"
2206 esac
2209 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2210 if test -n "$MAGIC_CMD"; then
2211 echo "$ac_t""$MAGIC_CMD" 1>&6
2212 else
2213 echo "$ac_t""no" 1>&6
2216 else
2217 MAGIC_CMD=:
2223 esac
2225 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2226 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2227 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_word" >&5
2229 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2231 else
2232 if test -n "$RANLIB"; then
2233 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2234 else
2235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2236 ac_dummy="$PATH"
2237 for ac_dir in $ac_dummy; do
2238 test -z "$ac_dir" && ac_dir=.
2239 if test -f $ac_dir/$ac_word; then
2240 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2241 break
2243 done
2244 IFS="$ac_save_ifs"
2247 RANLIB="$ac_cv_prog_RANLIB"
2248 if test -n "$RANLIB"; then
2249 echo "$ac_t""$RANLIB" 1>&6
2250 else
2251 echo "$ac_t""no" 1>&6
2255 if test -z "$ac_cv_prog_RANLIB"; then
2256 if test -n "$ac_tool_prefix"; then
2257 # Extract the first word of "ranlib", so it can be a program name with args.
2258 set dummy ranlib; ac_word=$2
2259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2260 echo "configure:2261: checking for $ac_word" >&5
2261 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2263 else
2264 if test -n "$RANLIB"; then
2265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2266 else
2267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2268 ac_dummy="$PATH"
2269 for ac_dir in $ac_dummy; do
2270 test -z "$ac_dir" && ac_dir=.
2271 if test -f $ac_dir/$ac_word; then
2272 ac_cv_prog_RANLIB="ranlib"
2273 break
2275 done
2276 IFS="$ac_save_ifs"
2277 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2280 RANLIB="$ac_cv_prog_RANLIB"
2281 if test -n "$RANLIB"; then
2282 echo "$ac_t""$RANLIB" 1>&6
2283 else
2284 echo "$ac_t""no" 1>&6
2287 else
2288 RANLIB=":"
2292 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2293 set dummy ${ac_tool_prefix}strip; ac_word=$2
2294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2295 echo "configure:2296: checking for $ac_word" >&5
2296 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2298 else
2299 if test -n "$STRIP"; then
2300 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2301 else
2302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2303 ac_dummy="$PATH"
2304 for ac_dir in $ac_dummy; do
2305 test -z "$ac_dir" && ac_dir=.
2306 if test -f $ac_dir/$ac_word; then
2307 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2308 break
2310 done
2311 IFS="$ac_save_ifs"
2314 STRIP="$ac_cv_prog_STRIP"
2315 if test -n "$STRIP"; then
2316 echo "$ac_t""$STRIP" 1>&6
2317 else
2318 echo "$ac_t""no" 1>&6
2322 if test -z "$ac_cv_prog_STRIP"; then
2323 if test -n "$ac_tool_prefix"; then
2324 # Extract the first word of "strip", so it can be a program name with args.
2325 set dummy strip; ac_word=$2
2326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2327 echo "configure:2328: checking for $ac_word" >&5
2328 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2330 else
2331 if test -n "$STRIP"; then
2332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2333 else
2334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2335 ac_dummy="$PATH"
2336 for ac_dir in $ac_dummy; do
2337 test -z "$ac_dir" && ac_dir=.
2338 if test -f $ac_dir/$ac_word; then
2339 ac_cv_prog_STRIP="strip"
2340 break
2342 done
2343 IFS="$ac_save_ifs"
2344 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2347 STRIP="$ac_cv_prog_STRIP"
2348 if test -n "$STRIP"; then
2349 echo "$ac_t""$STRIP" 1>&6
2350 else
2351 echo "$ac_t""no" 1>&6
2354 else
2355 STRIP=":"
2360 # Check for any special flags to pass to ltconfig.
2361 libtool_flags="--cache-file=$cache_file"
2362 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2363 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2364 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2365 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2366 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2367 libtool_flags="$libtool_flags --enable-dlopen"
2369 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2370 if test "${enable_libtool_lock+set}" = set; then
2371 enableval="$enable_libtool_lock"
2375 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2376 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2378 # Check whether --with-pic or --without-pic was given.
2379 if test "${with_pic+set}" = set; then
2380 withval="$with_pic"
2381 pic_mode="$withval"
2382 else
2383 pic_mode=default
2386 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2387 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2389 # Some flags need to be propagated to the compiler or linker for good
2390 # libtool support.
2391 case $host in
2392 *-*-irix6*)
2393 # Find out which ABI we are using.
2394 echo '#line 2395 "configure"' > conftest.$ac_ext
2395 if { (eval echo configure:2396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2396 case `/usr/bin/file conftest.$ac_objext` in
2397 *32-bit*)
2398 LD="${LD-ld} -32"
2400 *N32*)
2401 LD="${LD-ld} -n32"
2403 *64-bit*)
2404 LD="${LD-ld} -64"
2406 esac
2408 rm -rf conftest*
2411 ia64-*-hpux*)
2412 # Find out which ABI we are using.
2413 echo 'int i;' > conftest.$ac_ext
2414 if { (eval echo configure:2415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2415 case "`/usr/bin/file conftest.o`" in
2416 *ELF-32*)
2417 HPUX_IA64_MODE="32"
2419 *ELF-64*)
2420 HPUX_IA64_MODE="64"
2422 esac
2424 rm -rf conftest*
2427 *-*-sco3.2v5*)
2428 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2429 SAVE_CFLAGS="$CFLAGS"
2430 CFLAGS="$CFLAGS -belf"
2431 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2432 echo "configure:2433: checking whether the C compiler needs -belf" >&5
2433 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2435 else
2437 ac_ext=c
2438 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2439 ac_cpp='$CPP $CPPFLAGS'
2440 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2441 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2442 cross_compiling=$ac_cv_prog_cc_cross
2444 cat > conftest.$ac_ext <<EOF
2445 #line 2446 "configure"
2446 #include "confdefs.h"
2448 int main() {
2450 ; return 0; }
2452 if { (eval echo configure:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2453 rm -rf conftest*
2454 lt_cv_cc_needs_belf=yes
2455 else
2456 echo "configure: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2458 rm -rf conftest*
2459 lt_cv_cc_needs_belf=no
2461 rm -f conftest*
2462 ac_ext=c
2463 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2466 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2467 cross_compiling=$ac_cv_prog_cc_cross
2471 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2472 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2473 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2474 CFLAGS="$SAVE_CFLAGS"
2479 esac
2481 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2482 echo "configure:2483: checking how to run the C++ preprocessor" >&5
2483 if test -z "$CXXCPP"; then
2484 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2486 else
2487 ac_ext=C
2488 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2489 ac_cpp='$CXXCPP $CPPFLAGS'
2490 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2491 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2492 cross_compiling=$ac_cv_prog_cxx_cross
2493 CXXCPP="${CXX-g++} -E"
2494 cat > conftest.$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2497 #include <stdlib.h>
2499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2500 { (eval echo configure:2501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2502 if test -z "$ac_err"; then
2504 else
2505 echo "$ac_err" >&5
2506 echo "configure: failed program was:" >&5
2507 cat conftest.$ac_ext >&5
2508 rm -rf conftest*
2509 CXXCPP=/lib/cpp
2511 rm -f conftest*
2512 ac_cv_prog_CXXCPP="$CXXCPP"
2513 ac_ext=c
2514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2518 cross_compiling=$ac_cv_prog_cc_cross
2521 CXXCPP="$ac_cv_prog_CXXCPP"
2522 echo "$ac_t""$CXXCPP" 1>&6
2525 # Save cache, so that ltconfig can load it
2526 cat > confcache <<\EOF
2527 # This file is a shell script that caches the results of configure
2528 # tests run on this system so they can be shared between configure
2529 # scripts and configure runs. It is not useful on other systems.
2530 # If it contains results you don't want to keep, you may remove or edit it.
2532 # By default, configure uses ./config.cache as the cache file,
2533 # creating it if it does not exist already. You can give configure
2534 # the --cache-file=FILE option to use a different cache file; that is
2535 # what configure does when it calls configure scripts in
2536 # subdirectories, so they share the cache.
2537 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2538 # config.status only pays attention to the cache file if you give it the
2539 # --recheck option to rerun configure.
2542 # The following way of writing the cache mishandles newlines in values,
2543 # but we know of no workaround that is simple, portable, and efficient.
2544 # So, don't put newlines in cache variables' values.
2545 # Ultrix sh set writes to stderr and can't be redirected directly,
2546 # and sets the high bit in the cache file unless we assign to the vars.
2547 (set) 2>&1 |
2548 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2549 *ac_space=\ *)
2550 # `set' does not quote correctly, so add quotes (double-quote substitution
2551 # turns \\\\ into \\, and sed turns \\ into \).
2552 sed -n \
2553 -e "s/'/'\\\\''/g" \
2554 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2557 # `set' quotes correctly as required by POSIX, so do not add quotes.
2558 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2560 esac >> confcache
2561 if cmp -s $cache_file confcache; then
2563 else
2564 if test -w $cache_file; then
2565 echo "updating cache $cache_file"
2566 cat confcache > $cache_file
2567 else
2568 echo "not updating unwritable cache $cache_file"
2571 rm -f confcache
2574 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2575 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2576 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2577 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2578 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2579 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2580 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2581 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2582 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2583 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2585 # Reload cache, that may have been modified by ltconfig
2586 if test -r "$cache_file"; then
2587 echo "loading cache $cache_file"
2588 . $cache_file
2589 else
2590 echo "creating cache $cache_file"
2591 > $cache_file
2595 # This can be used to rebuild libtool when needed
2596 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2598 # Always use our own libtool.
2599 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2601 # Redirect the config.log output again, so that the ltconfig log is not
2602 # clobbered by the next message.
2603 exec 5>>./config.log
2607 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2608 lt_save_CC="$CC"
2609 lt_save_CFLAGS="$CFLAGS"
2610 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2611 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2612 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2613 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2614 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2615 deplibs_check_method="$deplibs_check_method" \
2616 file_magic_cmd="$file_magic_cmd" \
2617 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2618 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2619 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2620 CC="$lt_save_CC"
2621 CFLAGS="$lt_save_CFLAGS"
2623 # Redirect the config.log output again, so that the ltconfig log is not
2624 # clobbered by the next message.
2625 exec 5>>./config.log
2635 # Check for c++ or library specific bits that don't require linking.
2636 #GLIBCPP_CHECK_COMPILER_VERSION
2637 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2638 echo "configure:2639: checking for GNU make" >&5
2639 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2640 echo $ac_n "(cached) $ac_c" 1>&6
2641 else
2642 _cv_gnu_make_command='' ;
2643 for a in "${MAKE-make}" make gmake gnumake ; do
2644 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2645 then
2646 _cv_gnu_make_command=$a ;
2647 break;
2649 done ;
2653 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2654 if test "x$_cv_gnu_make_command" != "x" ; then
2655 ifGNUmake='' ;
2656 else
2657 ifGNUmake='#' ;
2662 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2663 # Check whether --enable-debug or --disable-debug was given.
2664 if test "${enable_debug+set}" = set; then
2665 enableval="$enable_debug"
2666 case "${enableval}" in
2667 yes) enable_debug=yes ;;
2668 no) enable_debug=no ;;
2669 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2670 esac
2671 else
2672 enable_debug=no
2675 case "${enable_debug}" in
2676 yes)
2677 DEBUG_FLAGS='-O0 -ggdb3'
2679 no)
2680 DEBUG_FLAGS='-g'
2682 esac
2685 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2686 echo "configure:2687: checking how to run the C preprocessor" >&5
2687 # On Suns, sometimes $CPP names a directory.
2688 if test -n "$CPP" && test -d "$CPP"; then
2689 CPP=
2691 if test -z "$CPP"; then
2692 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2694 else
2695 # This must be in double quotes, not single quotes, because CPP may get
2696 # substituted into the Makefile and "${CC-cc}" will confuse make.
2697 CPP="${CC-cc} -E"
2698 # On the NeXT, cc -E runs the code through the compiler's parser,
2699 # not just through cpp.
2700 cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2703 #include <assert.h>
2704 Syntax Error
2706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2707 { (eval echo configure:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2709 if test -z "$ac_err"; then
2711 else
2712 echo "$ac_err" >&5
2713 echo "configure: failed program was:" >&5
2714 cat conftest.$ac_ext >&5
2715 rm -rf conftest*
2716 CPP="${CC-cc} -E -traditional-cpp"
2717 cat > conftest.$ac_ext <<EOF
2718 #line 2719 "configure"
2719 #include "confdefs.h"
2720 #include <assert.h>
2721 Syntax Error
2723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2724 { (eval echo configure:2725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2726 if test -z "$ac_err"; then
2728 else
2729 echo "$ac_err" >&5
2730 echo "configure: failed program was:" >&5
2731 cat conftest.$ac_ext >&5
2732 rm -rf conftest*
2733 CPP="${CC-cc} -nologo -E"
2734 cat > conftest.$ac_ext <<EOF
2735 #line 2736 "configure"
2736 #include "confdefs.h"
2737 #include <assert.h>
2738 Syntax Error
2740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2741 { (eval echo configure:2742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2743 if test -z "$ac_err"; then
2745 else
2746 echo "$ac_err" >&5
2747 echo "configure: failed program was:" >&5
2748 cat conftest.$ac_ext >&5
2749 rm -rf conftest*
2750 CPP=/lib/cpp
2752 rm -f conftest*
2754 rm -f conftest*
2756 rm -f conftest*
2757 ac_cv_prog_CPP="$CPP"
2759 CPP="$ac_cv_prog_CPP"
2760 else
2761 ac_cv_prog_CPP="$CPP"
2763 echo "$ac_t""$CPP" 1>&6
2766 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2767 echo "configure:2768: checking for cstdio to use" >&5
2768 # Check whether --enable-cstdio or --disable-cstdio was given.
2769 if test "${enable_cstdio+set}" = set; then
2770 enableval="$enable_cstdio"
2771 if test x$enable_cstdio = xno; then
2772 enable_cstdio=stdio
2774 else
2775 enable_cstdio=stdio
2779 enable_cstdio_flag=$enable_cstdio
2781 case x${enable_cstdio_flag} in
2782 xlibio)
2783 CSTDIO_H=config/io/c_io_libio.h
2784 BASIC_FILE_H=config/io/basic_file_libio.h
2785 BASIC_FILE_CC=config/io/basic_file_libio.cc
2786 echo "$ac_t""libio" 1>&6
2788 # see if we are on a system with libio native (ie, linux)
2789 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2790 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2791 echo "configure:2792: checking for libio.h" >&5
2792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2794 else
2795 cat > conftest.$ac_ext <<EOF
2796 #line 2797 "configure"
2797 #include "confdefs.h"
2798 #include <libio.h>
2800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2801 { (eval echo configure:2802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2803 if test -z "$ac_err"; then
2804 rm -rf conftest*
2805 eval "ac_cv_header_$ac_safe=yes"
2806 else
2807 echo "$ac_err" >&5
2808 echo "configure: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2810 rm -rf conftest*
2811 eval "ac_cv_header_$ac_safe=no"
2813 rm -f conftest*
2815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2817 has_libio=yes
2818 else
2819 echo "$ac_t""no" 1>&6
2820 has_libio=no
2824 # Need to check and see what version of glibc is being used. If
2825 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2826 # compile most of libio for linux systems.
2827 if test x$has_libio = x"yes"; then
2828 case "$target" in
2829 *-*-linux*)
2830 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2831 echo "configure:2832: checking for glibc version >= 2.2" >&5
2832 cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2836 #include <features.h>
2837 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2839 #endif
2842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2843 egrep "ok" >/dev/null 2>&1; then
2844 rm -rf conftest*
2845 glibc_satisfactory=yes
2846 else
2847 rm -rf conftest*
2848 glibc_satisfactory=no
2850 rm -f conftest*
2852 echo "$ac_t""$glibc_satisfactory" 1>&6
2854 esac
2856 # XXX at the moment, admit defeat and force the recompilation
2857 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2858 glibc_satisfactory=no
2860 if test x$glibc_satisfactory = x"yes"; then
2861 need_libio=no
2862 need_wlibio=no
2863 else
2864 need_libio=yes
2865 # bkoz XXX need to add checks to enable this
2866 # pme XXX here's a first pass at such a check
2867 if test x$enable_c_mbchar != xno; then
2868 need_wlibio=yes
2869 else
2870 need_wlibio=no
2874 else
2875 # Using libio, but <libio.h> doesn't exist on the target system. . .
2876 need_libio=yes
2877 # bkoz XXX need to add checks to enable this
2878 # pme XXX here's a first pass at such a check
2879 if test x$enable_c_mbchar != xno; then
2880 need_wlibio=yes
2881 else
2882 need_wlibio=no
2886 xstdio | x | xno | xnone | xyes)
2887 # default
2888 CSTDIO_H=config/io/c_io_stdio.h
2889 BASIC_FILE_H=config/io/basic_file_stdio.h
2890 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2891 echo "$ac_t""stdio" 1>&6
2893 # We're not using stdio.
2894 need_libio=no
2895 need_wlibio=no
2898 echo "$enable_cstdio is an unknown io package" 1>&2
2899 exit 1
2901 esac
2906 # 2000-08-04 bkoz hack
2907 CCODECVT_C=config/io/c_io_libio_codecvt.c
2909 # 2000-08-04 bkoz hack
2913 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2914 GLIBCPP_BUILD_LIBIO_TRUE=
2915 GLIBCPP_BUILD_LIBIO_FALSE='#'
2916 else
2917 GLIBCPP_BUILD_LIBIO_TRUE='#'
2918 GLIBCPP_BUILD_LIBIO_FALSE=
2922 if test "$need_libio" = yes; then
2923 GLIBCPP_NEED_LIBIO_TRUE=
2924 GLIBCPP_NEED_LIBIO_FALSE='#'
2925 else
2926 GLIBCPP_NEED_LIBIO_TRUE='#'
2927 GLIBCPP_NEED_LIBIO_FALSE=
2931 if test "$need_wlibio" = yes; then
2932 GLIBCPP_NEED_WLIBIO_TRUE=
2933 GLIBCPP_NEED_WLIBIO_FALSE='#'
2934 else
2935 GLIBCPP_NEED_WLIBIO_TRUE='#'
2936 GLIBCPP_NEED_WLIBIO_FALSE=
2938 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2939 libio_la=../libio/libio.la
2940 else
2941 libio_la=
2946 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2947 echo "configure:2948: checking for clocale to use" >&5
2948 # Check whether --enable-clocale or --disable-clocale was given.
2949 if test "${enable_clocale+set}" = set; then
2950 enableval="$enable_clocale"
2951 if test x$enable_clocale = xno; then
2952 enable_clocale=no
2954 else
2955 enable_clocale=no
2959 enable_clocale_flag=$enable_clocale
2961 if test x$enable_clocale_flag = xno; then
2962 case x${target_os} in
2963 xlinux* | xgnu*)
2964 cat > conftest.$ac_ext <<EOF
2965 #line 2966 "configure"
2966 #include "confdefs.h"
2968 #include <features.h>
2969 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2970 _GLIBCPP_ok
2971 #endif
2974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2975 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2976 rm -rf conftest*
2977 enable_clocale_flag=gnu
2978 else
2979 rm -rf conftest*
2980 enable_clocale_flag=generic
2982 rm -f conftest*
2985 # Test for bugs early in glibc-2.2.x series
2986 if test x$enable_clocale_flag = xgnu; then
2987 if test "$cross_compiling" = yes; then
2988 enable_clocale_flag=generic
2989 else
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2994 #define _GNU_SOURCE 1
2995 #include <locale.h>
2996 #include <string.h>
2997 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
2998 extern __typeof(newlocale) __newlocale;
2999 extern __typeof(duplocale) __duplocale;
3000 extern __typeof(strcoll_l) __strcoll_l;
3001 #endif
3002 int main()
3004 const char __one[] = "Äuglein Augmen";
3005 const char __two[] = "Äuglein";
3006 int i;
3007 int j;
3008 __locale_t loc;
3009 __locale_t loc_dup;
3010 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3011 loc_dup = __duplocale(loc);
3012 i = __strcoll_l(__one, __two, loc);
3013 j = __strcoll_l(__one, __two, loc_dup);
3014 return 0;
3018 if { (eval echo configure:3019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3019 then
3020 enable_clocale_flag=gnu
3021 else
3022 echo "configure: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3024 rm -fr conftest*
3025 enable_clocale_flag=generic
3027 rm -fr conftest*
3032 # ... at some point put __strxfrm_l tests in as well.
3035 enable_clocale_flag=generic
3037 esac
3040 # Check whether --enable-nls or --disable-nls was given.
3041 if test "${enable_nls+set}" = set; then
3042 enableval="$enable_nls"
3044 else
3045 enable_nls=yes
3048 USE_NLS=no
3050 case x${enable_clocale_flag} in
3051 xgeneric)
3052 echo "$ac_t""generic" 1>&6
3054 CLOCALE_H=config/locale/generic/c_locale.h
3055 CLOCALE_CC=config/locale/generic/c_locale.cc
3056 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3057 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3058 CCOLLATE_CC=config/locale/generic/collate_members.cc
3059 CCTYPE_CC=config/locale/generic/ctype_members.cc
3060 CMESSAGES_H=config/locale/generic/messages_members.h
3061 CMESSAGES_CC=config/locale/generic/messages_members.cc
3062 CMONEY_CC=config/locale/generic/monetary_members.cc
3063 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3064 CTIME_CC=config/locale/generic/time_members.cc
3065 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3067 xgnu)
3068 echo "$ac_t""gnu" 1>&6
3070 # Declare intention to use gettext, and add support for specific
3071 # languages.
3072 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3073 ALL_LINGUAS="de fr"
3075 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3076 # Extract the first word of "msgfmt", so it can be a program name with args.
3077 set dummy msgfmt; ac_word=$2
3078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3079 echo "configure:3080: checking for $ac_word" >&5
3080 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3082 else
3083 if test -n "$check_msgfmt"; then
3084 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3085 else
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3087 ac_dummy="$PATH"
3088 for ac_dir in $ac_dummy; do
3089 test -z "$ac_dir" && ac_dir=.
3090 if test -f $ac_dir/$ac_word; then
3091 ac_cv_prog_check_msgfmt="yes"
3092 break
3094 done
3095 IFS="$ac_save_ifs"
3096 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3099 check_msgfmt="$ac_cv_prog_check_msgfmt"
3100 if test -n "$check_msgfmt"; then
3101 echo "$ac_t""$check_msgfmt" 1>&6
3102 else
3103 echo "$ac_t""no" 1>&6
3106 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3107 USE_NLS=yes
3109 # Export the build objects.
3110 for ling in $ALL_LINGUAS; do \
3111 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3112 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3113 done
3117 CLOCALE_H=config/locale/gnu/c_locale.h
3118 CLOCALE_CC=config/locale/gnu/c_locale.cc
3119 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3120 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3121 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3122 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3123 CMESSAGES_H=config/locale/gnu/messages_members.h
3124 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3125 CMONEY_CC=config/locale/gnu/monetary_members.cc
3126 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3127 CTIME_CC=config/locale/gnu/time_members.cc
3128 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3130 xieee_1003.1-2001)
3131 echo "$ac_t""generic" 1>&6
3133 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3134 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3135 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3136 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3137 CCOLLATE_CC=config/locale/generic/collate_members.cc
3138 CCTYPE_CC=config/locale/generic/ctype_members.cc
3139 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3140 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3141 CMONEY_CC=config/locale/generic/monetary_members.cc
3142 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3143 CTIME_CC=config/locale/generic/time_members.cc
3144 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3147 echo "$enable_clocale is an unknown locale package" 1>&2
3148 exit 1
3150 esac
3152 # This is where the testsuite looks for locale catalogs, using the
3153 # -DLOCALEDIR define during testsuite compilation.
3154 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3157 # For the time being, transform ctype_noninline.h to ctype_members_char.cc
3158 # CCTYPE_CHAR_CC=config/${os_include_dir}/ctype_noninline.h
3167 # AC_LINK_FILES($CCTYPE_CHAR_CC, src/ctype_members_char.cc)
3175 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3176 if test "${enable_c_mbchar+set}" = set; then
3177 enableval="$enable_c_mbchar"
3178 case "$enableval" in
3179 yes) enable_c_mbchar=yes ;;
3180 no) enable_c_mbchar=no ;;
3181 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3182 esac
3183 else
3184 enable_c_mbchar=yes
3188 # Check whether --enable-c99 or --disable-c99 was given.
3189 if test "${enable_c99+set}" = set; then
3190 enableval="$enable_c99"
3191 case "$enableval" in
3192 yes) enable_c99=yes ;;
3193 no) enable_c99=no ;;
3194 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3195 esac
3196 else
3197 enable_c99=yes
3201 ac_ext=C
3202 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3203 ac_cpp='$CXXCPP $CPPFLAGS'
3204 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3205 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3206 cross_compiling=$ac_cv_prog_cxx_cross
3209 # Check for the existence of <math.h> functions used if C99 is enabled.
3210 ac_c99_math=yes;
3211 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3212 echo "configure:3213: checking for ISO C99 support in <math.h>" >&5
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 #include <math.h>
3217 int main() {
3218 fpclassify(0.0);
3219 ; return 0; }
3221 if { (eval echo configure:3222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3223 else
3224 echo "configure: failed program was:" >&5
3225 cat conftest.$ac_ext >&5
3226 rm -rf conftest*
3227 ac_c99_math=no
3229 rm -f conftest*
3230 cat > conftest.$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3233 #include <math.h>
3234 int main() {
3235 isfinite(0.0);
3236 ; return 0; }
3238 if { (eval echo configure:3239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3240 else
3241 echo "configure: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3243 rm -rf conftest*
3244 ac_c99_math=no
3246 rm -f conftest*
3247 cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 #include <math.h>
3251 int main() {
3252 isinf(0.0);
3253 ; return 0; }
3255 if { (eval echo configure:3256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3257 else
3258 echo "configure: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3260 rm -rf conftest*
3261 ac_c99_math=no
3263 rm -f conftest*
3264 cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267 #include <math.h>
3268 int main() {
3269 isnan(0.0);
3270 ; return 0; }
3272 if { (eval echo configure:3273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3274 else
3275 echo "configure: failed program was:" >&5
3276 cat conftest.$ac_ext >&5
3277 rm -rf conftest*
3278 ac_c99_math=no
3280 rm -f conftest*
3281 cat > conftest.$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3284 #include <math.h>
3285 int main() {
3286 isnormal(0.0);
3287 ; return 0; }
3289 if { (eval echo configure:3290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3291 else
3292 echo "configure: failed program was:" >&5
3293 cat conftest.$ac_ext >&5
3294 rm -rf conftest*
3295 ac_c99_math=no
3297 rm -f conftest*
3298 cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 #include <math.h>
3302 int main() {
3303 signbit(0.0);
3304 ; return 0; }
3306 if { (eval echo configure:3307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3308 else
3309 echo "configure: failed program was:" >&5
3310 cat conftest.$ac_ext >&5
3311 rm -rf conftest*
3312 ac_c99_math=no
3314 rm -f conftest*
3315 cat > conftest.$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3318 #include <math.h>
3319 int main() {
3320 isgreater(0.0,0.0);
3321 ; return 0; }
3323 if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3325 else
3326 echo "configure: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3328 rm -rf conftest*
3329 ac_c99_math=no
3331 rm -f conftest*
3332 cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3335 #include <math.h>
3336 int main() {
3337 isgreaterequal(0.0,0.0);
3338 ; return 0; }
3340 if { (eval echo configure:3341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3342 else
3343 echo "configure: failed program was:" >&5
3344 cat conftest.$ac_ext >&5
3345 rm -rf conftest*
3346 ac_c99_math=no
3348 rm -f conftest*
3349 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 #include <math.h>
3353 int main() {
3354 isless(0.0,0.0);
3355 ; return 0; }
3357 if { (eval echo configure:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3359 else
3360 echo "configure: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3362 rm -rf conftest*
3363 ac_c99_math=no
3365 rm -f conftest*
3366 cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 #include <math.h>
3370 int main() {
3371 islessequal(0.0,0.0);
3372 ; return 0; }
3374 if { (eval echo configure:3375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3376 else
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3379 rm -rf conftest*
3380 ac_c99_math=no
3382 rm -f conftest*
3383 cat > conftest.$ac_ext <<EOF
3384 #line 3385 "configure"
3385 #include "confdefs.h"
3386 #include <math.h>
3387 int main() {
3388 islessgreater(0.0,0.0);
3389 ; return 0; }
3391 if { (eval echo configure:3392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3393 else
3394 echo "configure: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3396 rm -rf conftest*
3397 ac_c99_math=no
3399 rm -f conftest*
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 #include <math.h>
3404 int main() {
3405 isunordered(0.0,0.0);
3406 ; return 0; }
3408 if { (eval echo configure:3409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3410 else
3411 echo "configure: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3413 rm -rf conftest*
3414 ac_c99_math=no
3416 rm -f conftest*
3417 echo "$ac_t""$ac_c99_math" 1>&6
3419 # Check for the existence in <stdio.h> of vscanf, et. al.
3420 ac_c99_stdio=yes;
3421 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3422 echo "configure:3423: checking for ISO C99 support in <stdio.h>" >&5
3423 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 #include <stdio.h>
3427 int main() {
3428 snprintf("12", 0, "%i");
3429 ; return 0; }
3431 if { (eval echo configure:3432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3433 else
3434 echo "configure: failed program was:" >&5
3435 cat conftest.$ac_ext >&5
3436 rm -rf conftest*
3437 ac_c99_stdio=no
3439 rm -f conftest*
3440 cat > conftest.$ac_ext <<EOF
3441 #line 3442 "configure"
3442 #include "confdefs.h"
3443 #include <stdio.h>
3444 #include <stdarg.h>
3445 void foo(char* fmt, ...)
3446 {va_list args; va_start(args, fmt);
3447 vfscanf(stderr, "%i", args);}
3448 int main() {
3450 ; return 0; }
3452 if { (eval echo configure:3453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3454 else
3455 echo "configure: failed program was:" >&5
3456 cat conftest.$ac_ext >&5
3457 rm -rf conftest*
3458 ac_c99_stdio=no
3460 rm -f conftest*
3461 cat > conftest.$ac_ext <<EOF
3462 #line 3463 "configure"
3463 #include "confdefs.h"
3464 #include <stdio.h>
3465 #include <stdarg.h>
3466 void foo(char* fmt, ...)
3467 {va_list args; va_start(args, fmt);
3468 vscanf("%i", args);}
3469 int main() {
3471 ; return 0; }
3473 if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3475 else
3476 echo "configure: failed program was:" >&5
3477 cat conftest.$ac_ext >&5
3478 rm -rf conftest*
3479 ac_c99_stdio=no
3481 rm -f conftest*
3482 cat > conftest.$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3485 #include <stdio.h>
3486 #include <stdarg.h>
3487 void foo(char* fmt, ...)
3488 {va_list args; va_start(args, fmt);
3489 vsnprintf(fmt, 0, "%i", args);}
3490 int main() {
3492 ; return 0; }
3494 if { (eval echo configure:3495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3496 else
3497 echo "configure: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3499 rm -rf conftest*
3500 ac_c99_stdio=no
3502 rm -f conftest*
3503 cat > conftest.$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3506 #include <stdio.h>
3507 #include <stdarg.h>
3508 void foo(char* fmt, ...)
3509 {va_list args; va_start(args, fmt);
3510 vsscanf(fmt, "%i", args);}
3511 int main() {
3513 ; return 0; }
3515 if { (eval echo configure:3516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3517 else
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3520 rm -rf conftest*
3521 ac_c99_stdio=no
3523 rm -f conftest*
3524 echo "$ac_t""$ac_c99_stdio" 1>&6
3526 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3527 ac_c99_stdlib=yes;
3528 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3529 echo "configure:3530: checking for lldiv_t declaration" >&5
3530 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3532 else
3534 cat > conftest.$ac_ext <<EOF
3535 #line 3536 "configure"
3536 #include "confdefs.h"
3537 #include <stdlib.h>
3538 int main() {
3539 lldiv_t mydivt;
3540 ; return 0; }
3542 if { (eval echo configure:3543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3543 rm -rf conftest*
3544 ac_c99_lldiv_t=yes
3545 else
3546 echo "configure: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3548 rm -rf conftest*
3549 ac_c99_lldiv_t=no
3551 rm -f conftest*
3555 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3557 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3558 echo "configure:3559: checking for ISO C99 support in <stdlib.h>" >&5
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 #include <stdlib.h>
3563 int main() {
3564 char* tmp; strtof("gnu", &tmp);
3565 ; return 0; }
3567 if { (eval echo configure:3568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3569 else
3570 echo "configure: failed program was:" >&5
3571 cat conftest.$ac_ext >&5
3572 rm -rf conftest*
3573 ac_c99_stdlib=no
3575 rm -f conftest*
3576 cat > conftest.$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 #include <stdlib.h>
3580 int main() {
3581 char* tmp; strtold("gnu", &tmp);
3582 ; return 0; }
3584 if { (eval echo configure:3585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3586 else
3587 echo "configure: failed program was:" >&5
3588 cat conftest.$ac_ext >&5
3589 rm -rf conftest*
3590 ac_c99_stdlib=no
3592 rm -f conftest*
3593 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 #include <stdlib.h>
3597 int main() {
3598 llabs(10);
3599 ; return 0; }
3601 if { (eval echo configure:3602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3603 else
3604 echo "configure: failed program was:" >&5
3605 cat conftest.$ac_ext >&5
3606 rm -rf conftest*
3607 ac_c99_stdlib=no
3609 rm -f conftest*
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3613 #include <stdlib.h>
3614 int main() {
3615 lldiv(10,1);
3616 ; return 0; }
3618 if { (eval echo configure:3619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3620 else
3621 echo "configure: failed program was:" >&5
3622 cat conftest.$ac_ext >&5
3623 rm -rf conftest*
3624 ac_c99_stdlib=no
3626 rm -f conftest*
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3630 #include <stdlib.h>
3631 int main() {
3632 atoll("10");
3633 ; return 0; }
3635 if { (eval echo configure:3636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3637 else
3638 echo "configure: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3640 rm -rf conftest*
3641 ac_c99_stdlib=no
3643 rm -f conftest*
3644 cat > conftest.$ac_ext <<EOF
3645 #line 3646 "configure"
3646 #include "confdefs.h"
3647 #include <stdlib.h>
3648 int main() {
3649 _Exit(0);
3650 ; return 0; }
3652 if { (eval echo configure:3653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3654 else
3655 echo "configure: failed program was:" >&5
3656 cat conftest.$ac_ext >&5
3657 rm -rf conftest*
3658 ac_c99_stdlib=no
3660 rm -f conftest*
3661 if test x"$ac_c99_lldiv_t" = x"no"; then
3662 ac_c99_stdlib=no;
3663 fi;
3664 echo "$ac_t""$ac_c99_stdlib" 1>&6
3666 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3667 # XXX the wchar.h checks should be rolled into the general C99 bits.
3668 ac_c99_wchar=yes;
3669 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3670 echo "configure:3671: checking for additional ISO C99 support in <wchar.h>" >&5
3671 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3674 #include <wchar.h>
3675 int main() {
3676 wcstold(L"10.0", NULL);
3677 ; return 0; }
3679 if { (eval echo configure:3680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3681 else
3682 echo "configure: failed program was:" >&5
3683 cat conftest.$ac_ext >&5
3684 rm -rf conftest*
3685 ac_c99_wchar=no
3687 rm -f conftest*
3688 cat > conftest.$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3691 #include <wchar.h>
3692 int main() {
3693 wcstoll(L"10", NULL, 10);
3694 ; return 0; }
3696 if { (eval echo configure:3697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3698 else
3699 echo "configure: failed program was:" >&5
3700 cat conftest.$ac_ext >&5
3701 rm -rf conftest*
3702 ac_c99_wchar=no
3704 rm -f conftest*
3705 cat > conftest.$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 #include <wchar.h>
3709 int main() {
3710 wcstoull(L"10", NULL, 10);
3711 ; return 0; }
3713 if { (eval echo configure:3714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3715 else
3716 echo "configure: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3718 rm -rf conftest*
3719 ac_c99_wchar=no
3721 rm -f conftest*
3722 echo "$ac_t""$ac_c99_wchar" 1>&6
3724 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3725 echo "configure:3726: checking for enabled ISO C99 support" >&5
3726 if test x"$ac_c99_math" = x"no" ||
3727 test x"$ac_c99_stdio" = x"no" ||
3728 test x"$ac_c99_stdlib" = x"no" ||
3729 test x"$ac_c99_wchar" = x"no"; then
3730 enable_c99=no;
3731 fi;
3732 echo "$ac_t""$enable_c99" 1>&6
3734 # Option parsed, now set things appropriately
3735 if test x"$enable_c99" = x"yes"; then
3736 cat >> confdefs.h <<\EOF
3737 #define _GLIBCPP_USE_C99 1
3742 ac_ext=c
3743 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3746 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3747 cross_compiling=$ac_cv_prog_cc_cross
3751 # Check whether --enable-long-long or --disable-long-long was given.
3752 if test "${enable_long_long+set}" = set; then
3753 enableval="$enable_long_long"
3754 case "$enableval" in
3755 yes) enable_long_long=yes ;;
3756 no) enable_long_long=no ;;
3757 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3758 esac
3759 else
3760 enable_long_long=yes
3764 ac_ext=C
3765 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3766 ac_cpp='$CXXCPP $CPPFLAGS'
3767 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3768 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3769 cross_compiling=$ac_cv_prog_cxx_cross
3772 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3773 echo "configure:3774: checking for enabled long long I/O support" >&5
3774 # iostreams require strtoll, strtoull to compile
3775 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3778 #include <stdlib.h>
3779 int main() {
3780 char* tmp; strtoll("gnu", &tmp, 10);
3781 ; return 0; }
3783 if { (eval echo configure:3784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3785 else
3786 echo "configure: failed program was:" >&5
3787 cat conftest.$ac_ext >&5
3788 rm -rf conftest*
3789 enable_long_long=no
3791 rm -f conftest*
3792 cat > conftest.$ac_ext <<EOF
3793 #line 3794 "configure"
3794 #include "confdefs.h"
3795 #include <stdlib.h>
3796 int main() {
3797 char* tmp; strtoull("gnu", &tmp, 10);
3798 ; return 0; }
3800 if { (eval echo configure:3801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3802 else
3803 echo "configure: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3805 rm -rf conftest*
3806 enable_long_long=no
3808 rm -f conftest*
3810 # Option parsed, now set things appropriately
3811 if test x"$enable_long_long" = xyes; then
3812 cat >> confdefs.h <<\EOF
3813 #define _GLIBCPP_USE_LONG_LONG 1
3817 echo "$ac_t""$enable_long_long" 1>&6
3819 ac_ext=c
3820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3821 ac_cpp='$CPP $CPPFLAGS'
3822 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3823 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3824 cross_compiling=$ac_cv_prog_cc_cross
3827 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3828 echo "configure:3829: checking for c header strategy to use" >&5
3829 # Check whether --enable-cheaders or --disable-cheaders was given.
3830 if test "${enable_cheaders+set}" = set; then
3831 enableval="$enable_cheaders"
3833 case "$enableval" in
3835 enable_cheaders=c
3837 c_std)
3838 enable_cheaders=c_std
3840 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3842 esac
3843 else
3844 enable_cheaders=c_std
3847 echo "$ac_t""$enable_cheaders" 1>&6
3849 case "$enable_cheaders" in
3850 c_std)
3851 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3854 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3856 esac
3861 if test "$enable_cheaders" = c; then
3862 GLIBCPP_C_HEADERS_C_TRUE=
3863 GLIBCPP_C_HEADERS_C_FALSE='#'
3864 else
3865 GLIBCPP_C_HEADERS_C_TRUE='#'
3866 GLIBCPP_C_HEADERS_C_FALSE=
3870 if test "$enable_cheaders" = c_std; then
3871 GLIBCPP_C_HEADERS_C_STD_TRUE=
3872 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3873 else
3874 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3875 GLIBCPP_C_HEADERS_C_STD_FALSE=
3879 if test "$c_compatibility" = yes; then
3880 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3881 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3882 else
3883 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3884 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3888 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3889 echo "configure:3890: checking for thread model used by GCC" >&5
3890 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3891 echo "$ac_t""$target_thread_file" 1>&6
3893 if test $target_thread_file != single; then
3894 cat >> confdefs.h <<\EOF
3895 #define HAVE_GTHR_DEFAULT 1
3898 cat >> confdefs.h <<\EOF
3899 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3904 glibcpp_thread_h=gthr-$target_thread_file.h
3907 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3908 if test "${enable_cxx_flags+set}" = set; then
3909 enableval="$enable_cxx_flags"
3910 case "x$enableval" in
3911 xyes)
3912 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3913 xno|x)
3914 enable_cxx_flags='' ;;
3916 enable_cxx_flags="$enableval" ;;
3917 esac
3918 else
3919 enable_cxx_flags='none'
3923 if test "$enable_cxx_flags" = "none"; then
3924 enable_cxx_flags='';
3927 if test -n "$enable_cxx_flags"; then
3928 for f in $enable_cxx_flags; do
3929 case "$f" in
3930 -fhonor-std) ;;
3931 -*) ;;
3932 *) # and we're trying to pass /what/ exactly?
3933 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3934 esac
3935 done
3937 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3941 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3942 echo "configure:3943: checking for exception model to use" >&5
3944 ac_ext=C
3945 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3946 ac_cpp='$CXXCPP $CPPFLAGS'
3947 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3948 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3949 cross_compiling=$ac_cv_prog_cxx_cross
3951 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3952 if test "${enable_sjlj_exceptions+set}" = set; then
3953 enableval="$enable_sjlj_exceptions"
3955 else
3956 cat > conftest.$ac_ext << EOF
3957 #line 3958 "configure"
3958 struct S { ~S(); };
3959 void bar();
3960 void foo()
3962 S s;
3963 bar();
3966 old_CXXFLAGS="$CXXFLAGS"
3967 CXXFLAGS=-S
3968 if { (eval echo configure:3969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3969 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3970 enable_sjlj_exceptions=yes
3971 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3972 enable_sjlj_exceptions=no
3975 CXXFLAGS="$old_CXXFLAGS"
3976 rm -f conftest*
3979 if test x$enable_sjlj_exceptions = xyes; then
3980 cat >> confdefs.h <<\EOF
3981 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3984 ac_exception_model_name=sjlj
3985 elif test x$enable_sjlj_exceptions = xno; then
3986 ac_exception_model_name="call frame"
3987 else
3988 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3990 ac_ext=c
3991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3992 ac_cpp='$CPP $CPPFLAGS'
3993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3995 cross_compiling=$ac_cv_prog_cc_cross
3997 echo "$ac_t""$ac_exception_model_name" 1>&6
4000 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4001 echo "configure:4002: checking for use of libunwind" >&5
4002 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4003 if test "${enable_libunwind_exceptions+set}" = set; then
4004 enableval="$enable_libunwind_exceptions"
4005 use_libunwind_exceptions=$enableval
4006 else
4007 use_libunwind_exceptions=no
4010 echo "$ac_t""$use_libunwind_exceptions" 1>&6
4011 if test x"$use_libunwind_exceptions" = xyes; then
4012 LIBUNWIND_FLAG="-lunwind"
4013 else
4014 LIBUNWIND_FLAG=""
4018 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4019 if test "${enable_concept_checks+set}" = set; then
4020 enableval="$enable_concept_checks"
4021 case "$enableval" in
4022 yes) enable_concept_checks=yes ;;
4023 no) enable_concept_checks=no ;;
4024 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4025 esac
4026 else
4027 enable_concept_checks=no
4029 if test x"$enable_concept_checks" = xyes; then
4030 cat >> confdefs.h <<\EOF
4031 #define _GLIBCPP_CONCEPT_CHECKS 1
4037 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4038 for ac_hdr in string.h stdlib.h
4040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4042 echo "configure:4043: checking for $ac_hdr" >&5
4043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6
4045 else
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4049 #include <$ac_hdr>
4051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4052 { (eval echo configure:4053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4054 if test -z "$ac_err"; then
4055 rm -rf conftest*
4056 eval "ac_cv_header_$ac_safe=yes"
4057 else
4058 echo "$ac_err" >&5
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4061 rm -rf conftest*
4062 eval "ac_cv_header_$ac_safe=no"
4064 rm -f conftest*
4066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4067 echo "$ac_t""yes" 1>&6
4068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4069 cat >> confdefs.h <<EOF
4070 #define $ac_tr_hdr 1
4073 else
4074 echo "$ac_t""no" 1>&6
4076 done
4079 # No surprises, no surprises...
4080 if test $ATOMICITYH = cpu/generic ; then
4081 echo "configure: warning: No native atomic operations are provided yet for this platform." 1>&2
4082 if test $target_thread_file = single; then
4083 echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4084 echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4085 else
4086 echo "configure: warning: They will be faked using a mutex." 1>&2
4087 echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4092 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4094 # We are being configured with some form of cross compiler.
4095 GLIBCPP_IS_CROSS_COMPILING=1
4097 # This lets us hard-code the functionality we know we'll have in the cross
4098 # target environment. "Let" is a sugar-coated word placed on an especially
4099 # dull and tedious hack, actually.
4101 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4102 # that involve linking, can't be used:
4103 # "cannot open sim-crt0.o"
4104 # "cannot open crt0.o"
4105 # etc. All this is because there currently exists no unified, consistent
4106 # way for top level CC information to be passed down to target directories:
4107 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4108 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4109 # crosses can be removed.
4111 # If Canadian cross, then don't pick up tools from the build directory.
4112 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4113 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4114 CANADIAN=yes
4115 else
4116 CANADIAN=no
4119 # Construct crosses by hand, eliminating bits that need ld...
4120 # GLIBCPP_CHECK_COMPILER_FEATURES
4121 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4122 # GLIBCPP_CHECK_MATH_SUPPORT
4124 case "$target" in
4125 *-linux*)
4126 os_include_dir="os/gnu-linux"
4127 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4128 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4129 fp.h locale.h float.h inttypes.h
4131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4132 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4133 echo "configure:4134: checking for $ac_hdr" >&5
4134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4136 else
4137 cat > conftest.$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4140 #include <$ac_hdr>
4142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4143 { (eval echo configure:4144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4145 if test -z "$ac_err"; then
4146 rm -rf conftest*
4147 eval "ac_cv_header_$ac_safe=yes"
4148 else
4149 echo "$ac_err" >&5
4150 echo "configure: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4152 rm -rf conftest*
4153 eval "ac_cv_header_$ac_safe=no"
4155 rm -f conftest*
4157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4158 echo "$ac_t""yes" 1>&6
4159 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4160 cat >> confdefs.h <<EOF
4161 #define $ac_tr_hdr 1
4164 else
4165 echo "$ac_t""no" 1>&6
4167 done
4169 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4172 # If we're not using GNU ld, then there's no point in even trying these
4173 # tests. Check for that first. We should have already tested for gld
4174 # by now (in libtool), but require it now just to be safe...
4175 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4176 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4179 # The name set by libtool depends on the version of libtool. Shame on us
4180 # for depending on an impl detail, but c'est la vie. Older versions used
4181 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4182 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4183 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4184 # set (hence we're using an older libtool), then set it.
4185 if test x${with_gnu_ld+set} != xset; then
4186 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4187 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4188 with_gnu_ld=no
4189 else
4190 with_gnu_ld=$ac_cv_prog_gnu_ld
4194 # Start by getting the version number. I think the libtool test already
4195 # does some of this, but throws away the result.
4197 ldver=`$LD --version 2>/dev/null | head -1 | \
4198 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4200 glibcpp_gnu_ld_version=`echo $ldver | \
4201 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4203 # Set --gc-sections.
4204 if test "$with_gnu_ld" = "notbroken"; then
4205 # GNU ld it is! Joy and bunny rabbits!
4207 # All these tests are for C++; save the language and the compiler flags.
4208 # Need to do this so that g++ won't try to link in libstdc++
4209 ac_test_CFLAGS="${CFLAGS+set}"
4210 ac_save_CFLAGS="$CFLAGS"
4211 CFLAGS='-x c++ -Wl,--gc-sections'
4213 # Check for -Wl,--gc-sections
4214 # XXX This test is broken at the moment, as symbols required for
4215 # linking are now in libsupc++ (not built yet.....). In addition,
4216 # this test has cored on solaris in the past. In addition,
4217 # --gc-sections doesn't really work at the moment (keeps on discarding
4218 # used sections, first .eh_frame and now some of the glibc sections for
4219 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4220 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4221 echo "configure:4222: checking for ld that supports -Wl,--gc-sections" >&5
4222 if test "$cross_compiling" = yes; then
4223 ac_sectionLDflags=yes
4224 else
4225 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4229 int main(void)
4231 try { throw 1; }
4232 catch (...) { };
4233 return 0;
4237 if { (eval echo configure:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4238 then
4239 ac_sectionLDflags=yes
4240 else
4241 echo "configure: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4243 rm -fr conftest*
4244 ac_sectionLDflags=no
4246 rm -fr conftest*
4249 if test "$ac_test_CFLAGS" = set; then
4250 CFLAGS="$ac_save_CFLAGS"
4251 else
4252 # this is the suspicious part
4253 CFLAGS=''
4255 if test "$ac_sectionLDflags" = "yes"; then
4256 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4258 echo "$ac_t""$ac_sectionLDflags" 1>&6
4261 # Set linker optimization flags.
4262 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4263 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4270 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4271 echo "configure:4272: checking for main in -lm" >&5
4272 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
4275 else
4276 ac_save_LIBS="$LIBS"
4277 LIBS="-lm $LIBS"
4278 cat > conftest.$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4282 int main() {
4283 main()
4284 ; return 0; }
4286 if { (eval echo configure:4287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4287 rm -rf conftest*
4288 eval "ac_cv_lib_$ac_lib_var=yes"
4289 else
4290 echo "configure: failed program was:" >&5
4291 cat conftest.$ac_ext >&5
4292 rm -rf conftest*
4293 eval "ac_cv_lib_$ac_lib_var=no"
4295 rm -f conftest*
4296 LIBS="$ac_save_LIBS"
4299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4300 echo "$ac_t""yes" 1>&6
4301 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4302 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4303 cat >> confdefs.h <<EOF
4304 #define $ac_tr_lib 1
4307 LIBS="-lm $LIBS"
4309 else
4310 echo "$ac_t""no" 1>&6
4313 for ac_func in nan copysignf
4315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4316 echo "configure:4317: checking for $ac_func" >&5
4317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4319 else
4320 cat > conftest.$ac_ext <<EOF
4321 #line 4322 "configure"
4322 #include "confdefs.h"
4323 /* System header to define __stub macros and hopefully few prototypes,
4324 which can conflict with char $ac_func(); below. */
4325 #include <assert.h>
4326 /* Override any gcc2 internal prototype to avoid an error. */
4327 /* We use char because int might match the return type of a gcc2
4328 builtin and then its argument prototype would still apply. */
4329 char $ac_func();
4331 int main() {
4333 /* The GNU C library defines this for functions which it implements
4334 to always fail with ENOSYS. Some functions are actually named
4335 something starting with __ and the normal name is an alias. */
4336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4337 choke me
4338 #else
4339 $ac_func();
4340 #endif
4342 ; return 0; }
4344 if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4345 rm -rf conftest*
4346 eval "ac_cv_func_$ac_func=yes"
4347 else
4348 echo "configure: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4350 rm -rf conftest*
4351 eval "ac_cv_func_$ac_func=no"
4353 rm -f conftest*
4356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4357 echo "$ac_t""yes" 1>&6
4358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4359 cat >> confdefs.h <<EOF
4360 #define $ac_tr_func 1
4363 else
4364 echo "$ac_t""no" 1>&6
4365 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4367 done
4370 for ac_func in __signbit
4372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4373 echo "configure:4374: checking for $ac_func" >&5
4374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4375 echo $ac_n "(cached) $ac_c" 1>&6
4376 else
4377 cat > conftest.$ac_ext <<EOF
4378 #line 4379 "configure"
4379 #include "confdefs.h"
4380 /* System header to define __stub macros and hopefully few prototypes,
4381 which can conflict with char $ac_func(); below. */
4382 #include <assert.h>
4383 /* Override any gcc2 internal prototype to avoid an error. */
4384 /* We use char because int might match the return type of a gcc2
4385 builtin and then its argument prototype would still apply. */
4386 char $ac_func();
4388 int main() {
4390 /* The GNU C library defines this for functions which it implements
4391 to always fail with ENOSYS. Some functions are actually named
4392 something starting with __ and the normal name is an alias. */
4393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4394 choke me
4395 #else
4396 $ac_func();
4397 #endif
4399 ; return 0; }
4401 if { (eval echo configure:4402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4402 rm -rf conftest*
4403 eval "ac_cv_func_$ac_func=yes"
4404 else
4405 echo "configure: failed program was:" >&5
4406 cat conftest.$ac_ext >&5
4407 rm -rf conftest*
4408 eval "ac_cv_func_$ac_func=no"
4410 rm -f conftest*
4413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4414 echo "$ac_t""yes" 1>&6
4415 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4416 cat >> confdefs.h <<EOF
4417 #define $ac_tr_func 1
4420 else
4421 echo "$ac_t""no" 1>&6
4422 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4424 done
4426 for ac_func in __signbitf
4428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4429 echo "configure:4430: checking for $ac_func" >&5
4430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4431 echo $ac_n "(cached) $ac_c" 1>&6
4432 else
4433 cat > conftest.$ac_ext <<EOF
4434 #line 4435 "configure"
4435 #include "confdefs.h"
4436 /* System header to define __stub macros and hopefully few prototypes,
4437 which can conflict with char $ac_func(); below. */
4438 #include <assert.h>
4439 /* Override any gcc2 internal prototype to avoid an error. */
4440 /* We use char because int might match the return type of a gcc2
4441 builtin and then its argument prototype would still apply. */
4442 char $ac_func();
4444 int main() {
4446 /* The GNU C library defines this for functions which it implements
4447 to always fail with ENOSYS. Some functions are actually named
4448 something starting with __ and the normal name is an alias. */
4449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4450 choke me
4451 #else
4452 $ac_func();
4453 #endif
4455 ; return 0; }
4457 if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4458 rm -rf conftest*
4459 eval "ac_cv_func_$ac_func=yes"
4460 else
4461 echo "configure: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4463 rm -rf conftest*
4464 eval "ac_cv_func_$ac_func=no"
4466 rm -f conftest*
4469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4470 echo "$ac_t""yes" 1>&6
4471 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4472 cat >> confdefs.h <<EOF
4473 #define $ac_tr_func 1
4476 else
4477 echo "$ac_t""no" 1>&6
4478 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4480 done
4483 if test x$ac_cv_func_copysignl = x"yes"; then
4484 for ac_func in __signbitl
4486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4487 echo "configure:4488: checking for $ac_func" >&5
4488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4490 else
4491 cat > conftest.$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4494 /* System header to define __stub macros and hopefully few prototypes,
4495 which can conflict with char $ac_func(); below. */
4496 #include <assert.h>
4497 /* Override any gcc2 internal prototype to avoid an error. */
4498 /* We use char because int might match the return type of a gcc2
4499 builtin and then its argument prototype would still apply. */
4500 char $ac_func();
4502 int main() {
4504 /* The GNU C library defines this for functions which it implements
4505 to always fail with ENOSYS. Some functions are actually named
4506 something starting with __ and the normal name is an alias. */
4507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4508 choke me
4509 #else
4510 $ac_func();
4511 #endif
4513 ; return 0; }
4515 if { (eval echo configure:4516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4516 rm -rf conftest*
4517 eval "ac_cv_func_$ac_func=yes"
4518 else
4519 echo "configure: failed program was:" >&5
4520 cat conftest.$ac_ext >&5
4521 rm -rf conftest*
4522 eval "ac_cv_func_$ac_func=no"
4524 rm -f conftest*
4527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4528 echo "$ac_t""yes" 1>&6
4529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4530 cat >> confdefs.h <<EOF
4531 #define $ac_tr_func 1
4534 else
4535 echo "$ac_t""no" 1>&6
4536 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4538 done
4546 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4547 echo "configure:4548: checking for mbstate_t" >&5
4548 cat > conftest.$ac_ext <<EOF
4549 #line 4550 "configure"
4550 #include "confdefs.h"
4551 #include <wchar.h>
4552 int main() {
4553 mbstate_t teststate;
4554 ; return 0; }
4556 if { (eval echo configure:4557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4557 rm -rf conftest*
4558 have_mbstate_t=yes
4559 else
4560 echo "configure: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4562 rm -rf conftest*
4563 have_mbstate_t=no
4565 rm -f conftest*
4566 echo "$ac_t""$have_mbstate_t" 1>&6
4567 if test x"$have_mbstate_t" = xyes; then
4568 cat >> confdefs.h <<\EOF
4569 #define HAVE_MBSTATE_T 1
4574 for ac_hdr in wchar.h
4576 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4577 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4578 echo "configure:4579: checking for $ac_hdr" >&5
4579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4580 echo $ac_n "(cached) $ac_c" 1>&6
4581 else
4582 cat > conftest.$ac_ext <<EOF
4583 #line 4584 "configure"
4584 #include "confdefs.h"
4585 #include <$ac_hdr>
4587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4588 { (eval echo configure:4589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4590 if test -z "$ac_err"; then
4591 rm -rf conftest*
4592 eval "ac_cv_header_$ac_safe=yes"
4593 else
4594 echo "$ac_err" >&5
4595 echo "configure: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4597 rm -rf conftest*
4598 eval "ac_cv_header_$ac_safe=no"
4600 rm -f conftest*
4602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4603 echo "$ac_t""yes" 1>&6
4604 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4605 cat >> confdefs.h <<EOF
4606 #define $ac_tr_hdr 1
4608 ac_has_wchar_h=yes
4609 else
4610 echo "$ac_t""no" 1>&6
4611 ac_has_wchar_h=no
4613 done
4615 for ac_hdr in wctype.h
4617 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4618 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4619 echo "configure:4620: checking for $ac_hdr" >&5
4620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4621 echo $ac_n "(cached) $ac_c" 1>&6
4622 else
4623 cat > conftest.$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4626 #include <$ac_hdr>
4628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4629 { (eval echo configure:4630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4631 if test -z "$ac_err"; then
4632 rm -rf conftest*
4633 eval "ac_cv_header_$ac_safe=yes"
4634 else
4635 echo "$ac_err" >&5
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4638 rm -rf conftest*
4639 eval "ac_cv_header_$ac_safe=no"
4641 rm -f conftest*
4643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4644 echo "$ac_t""yes" 1>&6
4645 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4646 cat >> confdefs.h <<EOF
4647 #define $ac_tr_hdr 1
4649 ac_has_wctype_h=yes
4650 else
4651 echo "$ac_t""no" 1>&6
4652 ac_has_wctype_h=no
4654 done
4657 if test x"$ac_has_wchar_h" = xyes &&
4658 test x"$ac_has_wctype_h" = xyes &&
4659 test x"$enable_c_mbchar" != xno; then
4661 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4662 echo "configure:4663: checking for WCHAR_MIN and WCHAR_MAX" >&5
4663 cat > conftest.$ac_ext <<EOF
4664 #line 4665 "configure"
4665 #include "confdefs.h"
4666 #include <wchar.h>
4667 int main() {
4668 int i = WCHAR_MIN; int j = WCHAR_MAX;
4669 ; return 0; }
4671 if { (eval echo configure:4672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4672 rm -rf conftest*
4673 has_wchar_minmax=yes
4674 else
4675 echo "configure: failed program was:" >&5
4676 cat conftest.$ac_ext >&5
4677 rm -rf conftest*
4678 has_wchar_minmax=no
4680 rm -f conftest*
4681 echo "$ac_t""$has_wchar_minmax" 1>&6
4683 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4684 echo "configure:4685: checking for WEOF" >&5
4685 cat > conftest.$ac_ext <<EOF
4686 #line 4687 "configure"
4687 #include "confdefs.h"
4689 #include <wchar.h>
4690 #include <stddef.h>
4691 int main() {
4692 wint_t i = WEOF;
4693 ; return 0; }
4695 if { (eval echo configure:4696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4696 rm -rf conftest*
4697 has_weof=yes
4698 else
4699 echo "configure: failed program was:" >&5
4700 cat conftest.$ac_ext >&5
4701 rm -rf conftest*
4702 has_weof=no
4704 rm -f conftest*
4705 echo "$ac_t""$has_weof" 1>&6
4707 ac_wfuncs=yes
4708 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4711 echo "configure:4712: checking for $ac_func" >&5
4712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4714 else
4715 cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4718 /* System header to define __stub macros and hopefully few prototypes,
4719 which can conflict with char $ac_func(); below. */
4720 #include <assert.h>
4721 /* Override any gcc2 internal prototype to avoid an error. */
4722 /* We use char because int might match the return type of a gcc2
4723 builtin and then its argument prototype would still apply. */
4724 char $ac_func();
4726 int main() {
4728 /* The GNU C library defines this for functions which it implements
4729 to always fail with ENOSYS. Some functions are actually named
4730 something starting with __ and the normal name is an alias. */
4731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4732 choke me
4733 #else
4734 $ac_func();
4735 #endif
4737 ; return 0; }
4739 if { (eval echo configure:4740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4740 rm -rf conftest*
4741 eval "ac_cv_func_$ac_func=yes"
4742 else
4743 echo "configure: failed program was:" >&5
4744 cat conftest.$ac_ext >&5
4745 rm -rf conftest*
4746 eval "ac_cv_func_$ac_func=no"
4748 rm -f conftest*
4751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4752 echo "$ac_t""yes" 1>&6
4753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4754 cat >> confdefs.h <<EOF
4755 #define $ac_tr_func 1
4758 else
4759 echo "$ac_t""no" 1>&6
4761 ac_wfuncs=no
4763 done
4766 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4767 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4768 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4769 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4770 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4771 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4774 echo "configure:4775: checking for $ac_func" >&5
4775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4777 else
4778 cat > conftest.$ac_ext <<EOF
4779 #line 4780 "configure"
4780 #include "confdefs.h"
4781 /* System header to define __stub macros and hopefully few prototypes,
4782 which can conflict with char $ac_func(); below. */
4783 #include <assert.h>
4784 /* Override any gcc2 internal prototype to avoid an error. */
4785 /* We use char because int might match the return type of a gcc2
4786 builtin and then its argument prototype would still apply. */
4787 char $ac_func();
4789 int main() {
4791 /* The GNU C library defines this for functions which it implements
4792 to always fail with ENOSYS. Some functions are actually named
4793 something starting with __ and the normal name is an alias. */
4794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4795 choke me
4796 #else
4797 $ac_func();
4798 #endif
4800 ; return 0; }
4802 if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4803 rm -rf conftest*
4804 eval "ac_cv_func_$ac_func=yes"
4805 else
4806 echo "configure: failed program was:" >&5
4807 cat conftest.$ac_ext >&5
4808 rm -rf conftest*
4809 eval "ac_cv_func_$ac_func=no"
4811 rm -f conftest*
4814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4815 echo "$ac_t""yes" 1>&6
4816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4817 cat >> confdefs.h <<EOF
4818 #define $ac_tr_func 1
4821 else
4822 echo "$ac_t""no" 1>&6
4824 ac_wfuncs=no
4826 done
4829 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4830 echo "configure:4831: checking for ISO C99 wchar_t support" >&5
4831 if test x"$has_weof" = xyes &&
4832 test x"$has_wchar_minmax" = xyes &&
4833 test x"$ac_wfuncs" = xyes; then
4834 ac_isoC99_wchar_t=yes
4835 else
4836 ac_isoC99_wchar_t=no
4838 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4840 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4841 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4842 echo "configure:4843: checking for iconv.h" >&5
4843 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4844 echo $ac_n "(cached) $ac_c" 1>&6
4845 else
4846 cat > conftest.$ac_ext <<EOF
4847 #line 4848 "configure"
4848 #include "confdefs.h"
4849 #include <iconv.h>
4851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4852 { (eval echo configure:4853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4854 if test -z "$ac_err"; then
4855 rm -rf conftest*
4856 eval "ac_cv_header_$ac_safe=yes"
4857 else
4858 echo "$ac_err" >&5
4859 echo "configure: failed program was:" >&5
4860 cat conftest.$ac_ext >&5
4861 rm -rf conftest*
4862 eval "ac_cv_header_$ac_safe=no"
4864 rm -f conftest*
4866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4867 echo "$ac_t""yes" 1>&6
4868 ac_has_iconv_h=yes
4869 else
4870 echo "$ac_t""no" 1>&6
4871 ac_has_iconv_h=no
4874 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4875 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4876 echo "configure:4877: checking for langinfo.h" >&5
4877 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4878 echo $ac_n "(cached) $ac_c" 1>&6
4879 else
4880 cat > conftest.$ac_ext <<EOF
4881 #line 4882 "configure"
4882 #include "confdefs.h"
4883 #include <langinfo.h>
4885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4886 { (eval echo configure:4887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4888 if test -z "$ac_err"; then
4889 rm -rf conftest*
4890 eval "ac_cv_header_$ac_safe=yes"
4891 else
4892 echo "$ac_err" >&5
4893 echo "configure: failed program was:" >&5
4894 cat conftest.$ac_ext >&5
4895 rm -rf conftest*
4896 eval "ac_cv_header_$ac_safe=no"
4898 rm -f conftest*
4900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4901 echo "$ac_t""yes" 1>&6
4902 ac_has_langinfo_h=yes
4903 else
4904 echo "$ac_t""no" 1>&6
4905 ac_has_langinfo_h=no
4909 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4910 echo "configure:4911: checking for iconv in -liconv" >&5
4911 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4914 else
4915 ac_save_LIBS="$LIBS"
4916 LIBS="-liconv $LIBS"
4917 cat > conftest.$ac_ext <<EOF
4918 #line 4919 "configure"
4919 #include "confdefs.h"
4920 /* Override any gcc2 internal prototype to avoid an error. */
4921 /* We use char because int might match the return type of a gcc2
4922 builtin and then its argument prototype would still apply. */
4923 char iconv();
4925 int main() {
4926 iconv()
4927 ; return 0; }
4929 if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4930 rm -rf conftest*
4931 eval "ac_cv_lib_$ac_lib_var=yes"
4932 else
4933 echo "configure: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4935 rm -rf conftest*
4936 eval "ac_cv_lib_$ac_lib_var=no"
4938 rm -f conftest*
4939 LIBS="$ac_save_LIBS"
4942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4943 echo "$ac_t""yes" 1>&6
4944 libiconv="-liconv"
4945 else
4946 echo "$ac_t""no" 1>&6
4949 ac_save_LIBS="$LIBS"
4950 LIBS="$LIBS $libiconv"
4952 for ac_func in iconv_open iconv_close iconv nl_langinfo
4954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4955 echo "configure:4956: checking for $ac_func" >&5
4956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4957 echo $ac_n "(cached) $ac_c" 1>&6
4958 else
4959 cat > conftest.$ac_ext <<EOF
4960 #line 4961 "configure"
4961 #include "confdefs.h"
4962 /* System header to define __stub macros and hopefully few prototypes,
4963 which can conflict with char $ac_func(); below. */
4964 #include <assert.h>
4965 /* Override any gcc2 internal prototype to avoid an error. */
4966 /* We use char because int might match the return type of a gcc2
4967 builtin and then its argument prototype would still apply. */
4968 char $ac_func();
4970 int main() {
4972 /* The GNU C library defines this for functions which it implements
4973 to always fail with ENOSYS. Some functions are actually named
4974 something starting with __ and the normal name is an alias. */
4975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4976 choke me
4977 #else
4978 $ac_func();
4979 #endif
4981 ; return 0; }
4983 if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4984 rm -rf conftest*
4985 eval "ac_cv_func_$ac_func=yes"
4986 else
4987 echo "configure: failed program was:" >&5
4988 cat conftest.$ac_ext >&5
4989 rm -rf conftest*
4990 eval "ac_cv_func_$ac_func=no"
4992 rm -f conftest*
4995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4996 echo "$ac_t""yes" 1>&6
4997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4998 cat >> confdefs.h <<EOF
4999 #define $ac_tr_func 1
5002 ac_XPG2funcs=yes
5003 else
5004 echo "$ac_t""no" 1>&6
5005 ac_XPG2funcs=no
5007 done
5010 LIBS="$ac_save_LIBS"
5012 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5013 echo "configure:5014: checking for XPG2 wchar_t support" >&5
5014 if test x"$ac_has_iconv_h" = xyes &&
5015 test x"$ac_has_langinfo_h" = xyes &&
5016 test x"$ac_XPG2funcs" = xyes; then
5017 ac_XPG2_wchar_t=yes
5018 else
5019 ac_XPG2_wchar_t=no
5021 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5023 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5024 echo "configure:5025: checking for enabled wchar_t specializations" >&5
5025 if test x"$ac_isoC99_wchar_t" = xyes &&
5026 test x"$ac_XPG2_wchar_t" = xyes; then
5027 cat >> confdefs.h <<\EOF
5028 #define _GLIBCPP_USE_WCHAR_T 1
5031 echo "$ac_t"""yes"" 1>&6
5032 else
5033 echo "$ac_t"""no"" 1>&6
5035 else
5036 echo "configure: warning: wchar_t support disabled." 1>&2
5039 cat >> confdefs.h <<\EOF
5040 #define HAVE_COPYSIGN 1
5043 cat >> confdefs.h <<\EOF
5044 #define HAVE_COPYSIGNF 1
5047 cat >> confdefs.h <<\EOF
5048 #define HAVE_FINITE 1
5051 cat >> confdefs.h <<\EOF
5052 #define HAVE_FINITEF 1
5055 cat >> confdefs.h <<\EOF
5056 #define HAVE_FREXPF 1
5059 cat >> confdefs.h <<\EOF
5060 #define HAVE_HYPOTF 1
5063 cat >> confdefs.h <<\EOF
5064 #define HAVE_ISINF 1
5067 cat >> confdefs.h <<\EOF
5068 #define HAVE_ISINFF 1
5071 cat >> confdefs.h <<\EOF
5072 #define HAVE_ISNAN 1
5075 cat >> confdefs.h <<\EOF
5076 #define HAVE_ISNANF 1
5079 cat >> confdefs.h <<\EOF
5080 #define HAVE_SINCOS 1
5083 cat >> confdefs.h <<\EOF
5084 #define HAVE_SINCOSF 1
5087 if test x"long_double_math_on_this_cpu" = x"yes"; then
5088 cat >> confdefs.h <<\EOF
5089 #define HAVE_FINITEL 1
5092 cat >> confdefs.h <<\EOF
5093 #define HAVE_HYPOTL 1
5096 cat >> confdefs.h <<\EOF
5097 #define HAVE_ISINFL 1
5100 cat >> confdefs.h <<\EOF
5101 #define HAVE_ISNANL 1
5106 *-hpux*)
5107 # Check for available headers.
5108 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5109 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5110 fp.h locale.h float.h inttypes.h
5112 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5113 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5114 echo "configure:5115: checking for $ac_hdr" >&5
5115 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5117 else
5118 cat > conftest.$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5121 #include <$ac_hdr>
5123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5124 { (eval echo configure:5125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5126 if test -z "$ac_err"; then
5127 rm -rf conftest*
5128 eval "ac_cv_header_$ac_safe=yes"
5129 else
5130 echo "$ac_err" >&5
5131 echo "configure: failed program was:" >&5
5132 cat conftest.$ac_ext >&5
5133 rm -rf conftest*
5134 eval "ac_cv_header_$ac_safe=no"
5136 rm -f conftest*
5138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5139 echo "$ac_t""yes" 1>&6
5140 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5141 cat >> confdefs.h <<EOF
5142 #define $ac_tr_hdr 1
5145 else
5146 echo "$ac_t""no" 1>&6
5148 done
5150 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5153 # If we're not using GNU ld, then there's no point in even trying these
5154 # tests. Check for that first. We should have already tested for gld
5155 # by now (in libtool), but require it now just to be safe...
5156 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5157 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5160 # The name set by libtool depends on the version of libtool. Shame on us
5161 # for depending on an impl detail, but c'est la vie. Older versions used
5162 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5163 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5164 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5165 # set (hence we're using an older libtool), then set it.
5166 if test x${with_gnu_ld+set} != xset; then
5167 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5168 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5169 with_gnu_ld=no
5170 else
5171 with_gnu_ld=$ac_cv_prog_gnu_ld
5175 # Start by getting the version number. I think the libtool test already
5176 # does some of this, but throws away the result.
5178 ldver=`$LD --version 2>/dev/null | head -1 | \
5179 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5181 glibcpp_gnu_ld_version=`echo $ldver | \
5182 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5184 # Set --gc-sections.
5185 if test "$with_gnu_ld" = "notbroken"; then
5186 # GNU ld it is! Joy and bunny rabbits!
5188 # All these tests are for C++; save the language and the compiler flags.
5189 # Need to do this so that g++ won't try to link in libstdc++
5190 ac_test_CFLAGS="${CFLAGS+set}"
5191 ac_save_CFLAGS="$CFLAGS"
5192 CFLAGS='-x c++ -Wl,--gc-sections'
5194 # Check for -Wl,--gc-sections
5195 # XXX This test is broken at the moment, as symbols required for
5196 # linking are now in libsupc++ (not built yet.....). In addition,
5197 # this test has cored on solaris in the past. In addition,
5198 # --gc-sections doesn't really work at the moment (keeps on discarding
5199 # used sections, first .eh_frame and now some of the glibc sections for
5200 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5201 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5202 echo "configure:5203: checking for ld that supports -Wl,--gc-sections" >&5
5203 if test "$cross_compiling" = yes; then
5204 ac_sectionLDflags=yes
5205 else
5206 cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5210 int main(void)
5212 try { throw 1; }
5213 catch (...) { };
5214 return 0;
5218 if { (eval echo configure:5219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5219 then
5220 ac_sectionLDflags=yes
5221 else
5222 echo "configure: failed program was:" >&5
5223 cat conftest.$ac_ext >&5
5224 rm -fr conftest*
5225 ac_sectionLDflags=no
5227 rm -fr conftest*
5230 if test "$ac_test_CFLAGS" = set; then
5231 CFLAGS="$ac_save_CFLAGS"
5232 else
5233 # this is the suspicious part
5234 CFLAGS=''
5236 if test "$ac_sectionLDflags" = "yes"; then
5237 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5239 echo "$ac_t""$ac_sectionLDflags" 1>&6
5242 # Set linker optimization flags.
5243 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5244 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5251 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5252 echo "configure:5253: checking for main in -lm" >&5
5253 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5255 echo $ac_n "(cached) $ac_c" 1>&6
5256 else
5257 ac_save_LIBS="$LIBS"
5258 LIBS="-lm $LIBS"
5259 cat > conftest.$ac_ext <<EOF
5260 #line 5261 "configure"
5261 #include "confdefs.h"
5263 int main() {
5264 main()
5265 ; return 0; }
5267 if { (eval echo configure:5268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5268 rm -rf conftest*
5269 eval "ac_cv_lib_$ac_lib_var=yes"
5270 else
5271 echo "configure: failed program was:" >&5
5272 cat conftest.$ac_ext >&5
5273 rm -rf conftest*
5274 eval "ac_cv_lib_$ac_lib_var=no"
5276 rm -f conftest*
5277 LIBS="$ac_save_LIBS"
5280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5281 echo "$ac_t""yes" 1>&6
5282 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5283 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5284 cat >> confdefs.h <<EOF
5285 #define $ac_tr_lib 1
5288 LIBS="-lm $LIBS"
5290 else
5291 echo "$ac_t""no" 1>&6
5294 for ac_func in nan copysignf
5296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5297 echo "configure:5298: checking for $ac_func" >&5
5298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5299 echo $ac_n "(cached) $ac_c" 1>&6
5300 else
5301 cat > conftest.$ac_ext <<EOF
5302 #line 5303 "configure"
5303 #include "confdefs.h"
5304 /* System header to define __stub macros and hopefully few prototypes,
5305 which can conflict with char $ac_func(); below. */
5306 #include <assert.h>
5307 /* Override any gcc2 internal prototype to avoid an error. */
5308 /* We use char because int might match the return type of a gcc2
5309 builtin and then its argument prototype would still apply. */
5310 char $ac_func();
5312 int main() {
5314 /* The GNU C library defines this for functions which it implements
5315 to always fail with ENOSYS. Some functions are actually named
5316 something starting with __ and the normal name is an alias. */
5317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5318 choke me
5319 #else
5320 $ac_func();
5321 #endif
5323 ; return 0; }
5325 if { (eval echo configure:5326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5326 rm -rf conftest*
5327 eval "ac_cv_func_$ac_func=yes"
5328 else
5329 echo "configure: failed program was:" >&5
5330 cat conftest.$ac_ext >&5
5331 rm -rf conftest*
5332 eval "ac_cv_func_$ac_func=no"
5334 rm -f conftest*
5337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5338 echo "$ac_t""yes" 1>&6
5339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5340 cat >> confdefs.h <<EOF
5341 #define $ac_tr_func 1
5344 else
5345 echo "$ac_t""no" 1>&6
5346 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5348 done
5351 for ac_func in __signbit
5353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5354 echo "configure:5355: checking for $ac_func" >&5
5355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5356 echo $ac_n "(cached) $ac_c" 1>&6
5357 else
5358 cat > conftest.$ac_ext <<EOF
5359 #line 5360 "configure"
5360 #include "confdefs.h"
5361 /* System header to define __stub macros and hopefully few prototypes,
5362 which can conflict with char $ac_func(); below. */
5363 #include <assert.h>
5364 /* Override any gcc2 internal prototype to avoid an error. */
5365 /* We use char because int might match the return type of a gcc2
5366 builtin and then its argument prototype would still apply. */
5367 char $ac_func();
5369 int main() {
5371 /* The GNU C library defines this for functions which it implements
5372 to always fail with ENOSYS. Some functions are actually named
5373 something starting with __ and the normal name is an alias. */
5374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5375 choke me
5376 #else
5377 $ac_func();
5378 #endif
5380 ; return 0; }
5382 if { (eval echo configure:5383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5383 rm -rf conftest*
5384 eval "ac_cv_func_$ac_func=yes"
5385 else
5386 echo "configure: failed program was:" >&5
5387 cat conftest.$ac_ext >&5
5388 rm -rf conftest*
5389 eval "ac_cv_func_$ac_func=no"
5391 rm -f conftest*
5394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5395 echo "$ac_t""yes" 1>&6
5396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5397 cat >> confdefs.h <<EOF
5398 #define $ac_tr_func 1
5401 else
5402 echo "$ac_t""no" 1>&6
5403 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5405 done
5407 for ac_func in __signbitf
5409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5410 echo "configure:5411: checking for $ac_func" >&5
5411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5412 echo $ac_n "(cached) $ac_c" 1>&6
5413 else
5414 cat > conftest.$ac_ext <<EOF
5415 #line 5416 "configure"
5416 #include "confdefs.h"
5417 /* System header to define __stub macros and hopefully few prototypes,
5418 which can conflict with char $ac_func(); below. */
5419 #include <assert.h>
5420 /* Override any gcc2 internal prototype to avoid an error. */
5421 /* We use char because int might match the return type of a gcc2
5422 builtin and then its argument prototype would still apply. */
5423 char $ac_func();
5425 int main() {
5427 /* The GNU C library defines this for functions which it implements
5428 to always fail with ENOSYS. Some functions are actually named
5429 something starting with __ and the normal name is an alias. */
5430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5431 choke me
5432 #else
5433 $ac_func();
5434 #endif
5436 ; return 0; }
5438 if { (eval echo configure:5439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5439 rm -rf conftest*
5440 eval "ac_cv_func_$ac_func=yes"
5441 else
5442 echo "configure: failed program was:" >&5
5443 cat conftest.$ac_ext >&5
5444 rm -rf conftest*
5445 eval "ac_cv_func_$ac_func=no"
5447 rm -f conftest*
5450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5451 echo "$ac_t""yes" 1>&6
5452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5453 cat >> confdefs.h <<EOF
5454 #define $ac_tr_func 1
5457 else
5458 echo "$ac_t""no" 1>&6
5459 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5461 done
5464 if test x$ac_cv_func_copysignl = x"yes"; then
5465 for ac_func in __signbitl
5467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5468 echo "configure:5469: checking for $ac_func" >&5
5469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5470 echo $ac_n "(cached) $ac_c" 1>&6
5471 else
5472 cat > conftest.$ac_ext <<EOF
5473 #line 5474 "configure"
5474 #include "confdefs.h"
5475 /* System header to define __stub macros and hopefully few prototypes,
5476 which can conflict with char $ac_func(); below. */
5477 #include <assert.h>
5478 /* Override any gcc2 internal prototype to avoid an error. */
5479 /* We use char because int might match the return type of a gcc2
5480 builtin and then its argument prototype would still apply. */
5481 char $ac_func();
5483 int main() {
5485 /* The GNU C library defines this for functions which it implements
5486 to always fail with ENOSYS. Some functions are actually named
5487 something starting with __ and the normal name is an alias. */
5488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5489 choke me
5490 #else
5491 $ac_func();
5492 #endif
5494 ; return 0; }
5496 if { (eval echo configure:5497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5497 rm -rf conftest*
5498 eval "ac_cv_func_$ac_func=yes"
5499 else
5500 echo "configure: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5502 rm -rf conftest*
5503 eval "ac_cv_func_$ac_func=no"
5505 rm -f conftest*
5508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5509 echo "$ac_t""yes" 1>&6
5510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5511 cat >> confdefs.h <<EOF
5512 #define $ac_tr_func 1
5515 else
5516 echo "$ac_t""no" 1>&6
5517 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5519 done
5527 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5528 echo "configure:5529: checking for mbstate_t" >&5
5529 cat > conftest.$ac_ext <<EOF
5530 #line 5531 "configure"
5531 #include "confdefs.h"
5532 #include <wchar.h>
5533 int main() {
5534 mbstate_t teststate;
5535 ; return 0; }
5537 if { (eval echo configure:5538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5538 rm -rf conftest*
5539 have_mbstate_t=yes
5540 else
5541 echo "configure: failed program was:" >&5
5542 cat conftest.$ac_ext >&5
5543 rm -rf conftest*
5544 have_mbstate_t=no
5546 rm -f conftest*
5547 echo "$ac_t""$have_mbstate_t" 1>&6
5548 if test x"$have_mbstate_t" = xyes; then
5549 cat >> confdefs.h <<\EOF
5550 #define HAVE_MBSTATE_T 1
5555 for ac_hdr in wchar.h
5557 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5558 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5559 echo "configure:5560: checking for $ac_hdr" >&5
5560 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5561 echo $ac_n "(cached) $ac_c" 1>&6
5562 else
5563 cat > conftest.$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5566 #include <$ac_hdr>
5568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5569 { (eval echo configure:5570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5571 if test -z "$ac_err"; then
5572 rm -rf conftest*
5573 eval "ac_cv_header_$ac_safe=yes"
5574 else
5575 echo "$ac_err" >&5
5576 echo "configure: failed program was:" >&5
5577 cat conftest.$ac_ext >&5
5578 rm -rf conftest*
5579 eval "ac_cv_header_$ac_safe=no"
5581 rm -f conftest*
5583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5584 echo "$ac_t""yes" 1>&6
5585 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5586 cat >> confdefs.h <<EOF
5587 #define $ac_tr_hdr 1
5589 ac_has_wchar_h=yes
5590 else
5591 echo "$ac_t""no" 1>&6
5592 ac_has_wchar_h=no
5594 done
5596 for ac_hdr in wctype.h
5598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5600 echo "configure:5601: checking for $ac_hdr" >&5
5601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5602 echo $ac_n "(cached) $ac_c" 1>&6
5603 else
5604 cat > conftest.$ac_ext <<EOF
5605 #line 5606 "configure"
5606 #include "confdefs.h"
5607 #include <$ac_hdr>
5609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5610 { (eval echo configure:5611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5612 if test -z "$ac_err"; then
5613 rm -rf conftest*
5614 eval "ac_cv_header_$ac_safe=yes"
5615 else
5616 echo "$ac_err" >&5
5617 echo "configure: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5619 rm -rf conftest*
5620 eval "ac_cv_header_$ac_safe=no"
5622 rm -f conftest*
5624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5625 echo "$ac_t""yes" 1>&6
5626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5627 cat >> confdefs.h <<EOF
5628 #define $ac_tr_hdr 1
5630 ac_has_wctype_h=yes
5631 else
5632 echo "$ac_t""no" 1>&6
5633 ac_has_wctype_h=no
5635 done
5638 if test x"$ac_has_wchar_h" = xyes &&
5639 test x"$ac_has_wctype_h" = xyes &&
5640 test x"$enable_c_mbchar" != xno; then
5642 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5643 echo "configure:5644: checking for WCHAR_MIN and WCHAR_MAX" >&5
5644 cat > conftest.$ac_ext <<EOF
5645 #line 5646 "configure"
5646 #include "confdefs.h"
5647 #include <wchar.h>
5648 int main() {
5649 int i = WCHAR_MIN; int j = WCHAR_MAX;
5650 ; return 0; }
5652 if { (eval echo configure:5653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5653 rm -rf conftest*
5654 has_wchar_minmax=yes
5655 else
5656 echo "configure: failed program was:" >&5
5657 cat conftest.$ac_ext >&5
5658 rm -rf conftest*
5659 has_wchar_minmax=no
5661 rm -f conftest*
5662 echo "$ac_t""$has_wchar_minmax" 1>&6
5664 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5665 echo "configure:5666: checking for WEOF" >&5
5666 cat > conftest.$ac_ext <<EOF
5667 #line 5668 "configure"
5668 #include "confdefs.h"
5670 #include <wchar.h>
5671 #include <stddef.h>
5672 int main() {
5673 wint_t i = WEOF;
5674 ; return 0; }
5676 if { (eval echo configure:5677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5677 rm -rf conftest*
5678 has_weof=yes
5679 else
5680 echo "configure: failed program was:" >&5
5681 cat conftest.$ac_ext >&5
5682 rm -rf conftest*
5683 has_weof=no
5685 rm -f conftest*
5686 echo "$ac_t""$has_weof" 1>&6
5688 ac_wfuncs=yes
5689 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5692 echo "configure:5693: checking for $ac_func" >&5
5693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5694 echo $ac_n "(cached) $ac_c" 1>&6
5695 else
5696 cat > conftest.$ac_ext <<EOF
5697 #line 5698 "configure"
5698 #include "confdefs.h"
5699 /* System header to define __stub macros and hopefully few prototypes,
5700 which can conflict with char $ac_func(); below. */
5701 #include <assert.h>
5702 /* Override any gcc2 internal prototype to avoid an error. */
5703 /* We use char because int might match the return type of a gcc2
5704 builtin and then its argument prototype would still apply. */
5705 char $ac_func();
5707 int main() {
5709 /* The GNU C library defines this for functions which it implements
5710 to always fail with ENOSYS. Some functions are actually named
5711 something starting with __ and the normal name is an alias. */
5712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5713 choke me
5714 #else
5715 $ac_func();
5716 #endif
5718 ; return 0; }
5720 if { (eval echo configure:5721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5721 rm -rf conftest*
5722 eval "ac_cv_func_$ac_func=yes"
5723 else
5724 echo "configure: failed program was:" >&5
5725 cat conftest.$ac_ext >&5
5726 rm -rf conftest*
5727 eval "ac_cv_func_$ac_func=no"
5729 rm -f conftest*
5732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5733 echo "$ac_t""yes" 1>&6
5734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5735 cat >> confdefs.h <<EOF
5736 #define $ac_tr_func 1
5739 else
5740 echo "$ac_t""no" 1>&6
5742 ac_wfuncs=no
5744 done
5747 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5748 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5749 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5750 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5751 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5752 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5755 echo "configure:5756: checking for $ac_func" >&5
5756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5757 echo $ac_n "(cached) $ac_c" 1>&6
5758 else
5759 cat > conftest.$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5762 /* System header to define __stub macros and hopefully few prototypes,
5763 which can conflict with char $ac_func(); below. */
5764 #include <assert.h>
5765 /* Override any gcc2 internal prototype to avoid an error. */
5766 /* We use char because int might match the return type of a gcc2
5767 builtin and then its argument prototype would still apply. */
5768 char $ac_func();
5770 int main() {
5772 /* The GNU C library defines this for functions which it implements
5773 to always fail with ENOSYS. Some functions are actually named
5774 something starting with __ and the normal name is an alias. */
5775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5776 choke me
5777 #else
5778 $ac_func();
5779 #endif
5781 ; return 0; }
5783 if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5784 rm -rf conftest*
5785 eval "ac_cv_func_$ac_func=yes"
5786 else
5787 echo "configure: failed program was:" >&5
5788 cat conftest.$ac_ext >&5
5789 rm -rf conftest*
5790 eval "ac_cv_func_$ac_func=no"
5792 rm -f conftest*
5795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5796 echo "$ac_t""yes" 1>&6
5797 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5798 cat >> confdefs.h <<EOF
5799 #define $ac_tr_func 1
5802 else
5803 echo "$ac_t""no" 1>&6
5805 ac_wfuncs=no
5807 done
5810 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5811 echo "configure:5812: checking for ISO C99 wchar_t support" >&5
5812 if test x"$has_weof" = xyes &&
5813 test x"$has_wchar_minmax" = xyes &&
5814 test x"$ac_wfuncs" = xyes; then
5815 ac_isoC99_wchar_t=yes
5816 else
5817 ac_isoC99_wchar_t=no
5819 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5821 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5822 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5823 echo "configure:5824: checking for iconv.h" >&5
5824 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5825 echo $ac_n "(cached) $ac_c" 1>&6
5826 else
5827 cat > conftest.$ac_ext <<EOF
5828 #line 5829 "configure"
5829 #include "confdefs.h"
5830 #include <iconv.h>
5832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5833 { (eval echo configure:5834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5835 if test -z "$ac_err"; then
5836 rm -rf conftest*
5837 eval "ac_cv_header_$ac_safe=yes"
5838 else
5839 echo "$ac_err" >&5
5840 echo "configure: failed program was:" >&5
5841 cat conftest.$ac_ext >&5
5842 rm -rf conftest*
5843 eval "ac_cv_header_$ac_safe=no"
5845 rm -f conftest*
5847 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5848 echo "$ac_t""yes" 1>&6
5849 ac_has_iconv_h=yes
5850 else
5851 echo "$ac_t""no" 1>&6
5852 ac_has_iconv_h=no
5855 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5856 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5857 echo "configure:5858: checking for langinfo.h" >&5
5858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5859 echo $ac_n "(cached) $ac_c" 1>&6
5860 else
5861 cat > conftest.$ac_ext <<EOF
5862 #line 5863 "configure"
5863 #include "confdefs.h"
5864 #include <langinfo.h>
5866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5867 { (eval echo configure:5868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5869 if test -z "$ac_err"; then
5870 rm -rf conftest*
5871 eval "ac_cv_header_$ac_safe=yes"
5872 else
5873 echo "$ac_err" >&5
5874 echo "configure: failed program was:" >&5
5875 cat conftest.$ac_ext >&5
5876 rm -rf conftest*
5877 eval "ac_cv_header_$ac_safe=no"
5879 rm -f conftest*
5881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5882 echo "$ac_t""yes" 1>&6
5883 ac_has_langinfo_h=yes
5884 else
5885 echo "$ac_t""no" 1>&6
5886 ac_has_langinfo_h=no
5890 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5891 echo "configure:5892: checking for iconv in -liconv" >&5
5892 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5894 echo $ac_n "(cached) $ac_c" 1>&6
5895 else
5896 ac_save_LIBS="$LIBS"
5897 LIBS="-liconv $LIBS"
5898 cat > conftest.$ac_ext <<EOF
5899 #line 5900 "configure"
5900 #include "confdefs.h"
5901 /* Override any gcc2 internal prototype to avoid an error. */
5902 /* We use char because int might match the return type of a gcc2
5903 builtin and then its argument prototype would still apply. */
5904 char iconv();
5906 int main() {
5907 iconv()
5908 ; return 0; }
5910 if { (eval echo configure:5911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5911 rm -rf conftest*
5912 eval "ac_cv_lib_$ac_lib_var=yes"
5913 else
5914 echo "configure: failed program was:" >&5
5915 cat conftest.$ac_ext >&5
5916 rm -rf conftest*
5917 eval "ac_cv_lib_$ac_lib_var=no"
5919 rm -f conftest*
5920 LIBS="$ac_save_LIBS"
5923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5924 echo "$ac_t""yes" 1>&6
5925 libiconv="-liconv"
5926 else
5927 echo "$ac_t""no" 1>&6
5930 ac_save_LIBS="$LIBS"
5931 LIBS="$LIBS $libiconv"
5933 for ac_func in iconv_open iconv_close iconv nl_langinfo
5935 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5936 echo "configure:5937: checking for $ac_func" >&5
5937 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5938 echo $ac_n "(cached) $ac_c" 1>&6
5939 else
5940 cat > conftest.$ac_ext <<EOF
5941 #line 5942 "configure"
5942 #include "confdefs.h"
5943 /* System header to define __stub macros and hopefully few prototypes,
5944 which can conflict with char $ac_func(); below. */
5945 #include <assert.h>
5946 /* Override any gcc2 internal prototype to avoid an error. */
5947 /* We use char because int might match the return type of a gcc2
5948 builtin and then its argument prototype would still apply. */
5949 char $ac_func();
5951 int main() {
5953 /* The GNU C library defines this for functions which it implements
5954 to always fail with ENOSYS. Some functions are actually named
5955 something starting with __ and the normal name is an alias. */
5956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5957 choke me
5958 #else
5959 $ac_func();
5960 #endif
5962 ; return 0; }
5964 if { (eval echo configure:5965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5965 rm -rf conftest*
5966 eval "ac_cv_func_$ac_func=yes"
5967 else
5968 echo "configure: failed program was:" >&5
5969 cat conftest.$ac_ext >&5
5970 rm -rf conftest*
5971 eval "ac_cv_func_$ac_func=no"
5973 rm -f conftest*
5976 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5977 echo "$ac_t""yes" 1>&6
5978 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5979 cat >> confdefs.h <<EOF
5980 #define $ac_tr_func 1
5983 ac_XPG2funcs=yes
5984 else
5985 echo "$ac_t""no" 1>&6
5986 ac_XPG2funcs=no
5988 done
5991 LIBS="$ac_save_LIBS"
5993 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5994 echo "configure:5995: checking for XPG2 wchar_t support" >&5
5995 if test x"$ac_has_iconv_h" = xyes &&
5996 test x"$ac_has_langinfo_h" = xyes &&
5997 test x"$ac_XPG2funcs" = xyes; then
5998 ac_XPG2_wchar_t=yes
5999 else
6000 ac_XPG2_wchar_t=no
6002 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6004 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6005 echo "configure:6006: checking for enabled wchar_t specializations" >&5
6006 if test x"$ac_isoC99_wchar_t" = xyes &&
6007 test x"$ac_XPG2_wchar_t" = xyes; then
6008 cat >> confdefs.h <<\EOF
6009 #define _GLIBCPP_USE_WCHAR_T 1
6012 echo "$ac_t"""yes"" 1>&6
6013 else
6014 echo "$ac_t"""no"" 1>&6
6016 else
6017 echo "configure: warning: wchar_t support disabled." 1>&2
6020 os_include_dir="os/hpux"
6021 cat >> confdefs.h <<\EOF
6022 #define HAVE_COPYSIGN 1
6025 cat >> confdefs.h <<\EOF
6026 #define HAVE_COPYSIGNF 1
6029 cat >> confdefs.h <<\EOF
6030 #define HAVE_FREXPF 1
6033 cat >> confdefs.h <<\EOF
6034 #define HAVE_HYPOT 1
6037 case "$target" in
6038 *-hpux10*)
6039 cat >> confdefs.h <<\EOF
6040 #define HAVE_FINITE 1
6043 cat >> confdefs.h <<\EOF
6044 #define HAVE_FINITEF 1
6047 cat >> confdefs.h <<\EOF
6048 #define HAVE_ISINF 1
6051 cat >> confdefs.h <<\EOF
6052 #define HAVE_ISINFF 1
6055 cat >> confdefs.h <<\EOF
6056 #define HAVE_ISNAN 1
6059 cat >> confdefs.h <<\EOF
6060 #define HAVE_ISNANF 1
6064 esac
6067 *-netbsd*)
6068 # Check for available headers.
6069 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6070 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6071 fp.h locale.h float.h inttypes.h
6073 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6074 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6075 echo "configure:6076: checking for $ac_hdr" >&5
6076 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6077 echo $ac_n "(cached) $ac_c" 1>&6
6078 else
6079 cat > conftest.$ac_ext <<EOF
6080 #line 6081 "configure"
6081 #include "confdefs.h"
6082 #include <$ac_hdr>
6084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6085 { (eval echo configure:6086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6087 if test -z "$ac_err"; then
6088 rm -rf conftest*
6089 eval "ac_cv_header_$ac_safe=yes"
6090 else
6091 echo "$ac_err" >&5
6092 echo "configure: failed program was:" >&5
6093 cat conftest.$ac_ext >&5
6094 rm -rf conftest*
6095 eval "ac_cv_header_$ac_safe=no"
6097 rm -f conftest*
6099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6100 echo "$ac_t""yes" 1>&6
6101 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6102 cat >> confdefs.h <<EOF
6103 #define $ac_tr_hdr 1
6106 else
6107 echo "$ac_t""no" 1>&6
6109 done
6111 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6114 # If we're not using GNU ld, then there's no point in even trying these
6115 # tests. Check for that first. We should have already tested for gld
6116 # by now (in libtool), but require it now just to be safe...
6117 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6118 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6121 # The name set by libtool depends on the version of libtool. Shame on us
6122 # for depending on an impl detail, but c'est la vie. Older versions used
6123 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6124 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6125 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6126 # set (hence we're using an older libtool), then set it.
6127 if test x${with_gnu_ld+set} != xset; then
6128 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6129 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6130 with_gnu_ld=no
6131 else
6132 with_gnu_ld=$ac_cv_prog_gnu_ld
6136 # Start by getting the version number. I think the libtool test already
6137 # does some of this, but throws away the result.
6139 ldver=`$LD --version 2>/dev/null | head -1 | \
6140 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6142 glibcpp_gnu_ld_version=`echo $ldver | \
6143 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6145 # Set --gc-sections.
6146 if test "$with_gnu_ld" = "notbroken"; then
6147 # GNU ld it is! Joy and bunny rabbits!
6149 # All these tests are for C++; save the language and the compiler flags.
6150 # Need to do this so that g++ won't try to link in libstdc++
6151 ac_test_CFLAGS="${CFLAGS+set}"
6152 ac_save_CFLAGS="$CFLAGS"
6153 CFLAGS='-x c++ -Wl,--gc-sections'
6155 # Check for -Wl,--gc-sections
6156 # XXX This test is broken at the moment, as symbols required for
6157 # linking are now in libsupc++ (not built yet.....). In addition,
6158 # this test has cored on solaris in the past. In addition,
6159 # --gc-sections doesn't really work at the moment (keeps on discarding
6160 # used sections, first .eh_frame and now some of the glibc sections for
6161 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6162 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6163 echo "configure:6164: checking for ld that supports -Wl,--gc-sections" >&5
6164 if test "$cross_compiling" = yes; then
6165 ac_sectionLDflags=yes
6166 else
6167 cat > conftest.$ac_ext <<EOF
6168 #line 6169 "configure"
6169 #include "confdefs.h"
6171 int main(void)
6173 try { throw 1; }
6174 catch (...) { };
6175 return 0;
6179 if { (eval echo configure:6180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6180 then
6181 ac_sectionLDflags=yes
6182 else
6183 echo "configure: failed program was:" >&5
6184 cat conftest.$ac_ext >&5
6185 rm -fr conftest*
6186 ac_sectionLDflags=no
6188 rm -fr conftest*
6191 if test "$ac_test_CFLAGS" = set; then
6192 CFLAGS="$ac_save_CFLAGS"
6193 else
6194 # this is the suspicious part
6195 CFLAGS=''
6197 if test "$ac_sectionLDflags" = "yes"; then
6198 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6200 echo "$ac_t""$ac_sectionLDflags" 1>&6
6203 # Set linker optimization flags.
6204 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6205 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6212 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6213 echo "configure:6214: checking for main in -lm" >&5
6214 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6216 echo $ac_n "(cached) $ac_c" 1>&6
6217 else
6218 ac_save_LIBS="$LIBS"
6219 LIBS="-lm $LIBS"
6220 cat > conftest.$ac_ext <<EOF
6221 #line 6222 "configure"
6222 #include "confdefs.h"
6224 int main() {
6225 main()
6226 ; return 0; }
6228 if { (eval echo configure:6229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6229 rm -rf conftest*
6230 eval "ac_cv_lib_$ac_lib_var=yes"
6231 else
6232 echo "configure: failed program was:" >&5
6233 cat conftest.$ac_ext >&5
6234 rm -rf conftest*
6235 eval "ac_cv_lib_$ac_lib_var=no"
6237 rm -f conftest*
6238 LIBS="$ac_save_LIBS"
6241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6242 echo "$ac_t""yes" 1>&6
6243 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6244 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6245 cat >> confdefs.h <<EOF
6246 #define $ac_tr_lib 1
6249 LIBS="-lm $LIBS"
6251 else
6252 echo "$ac_t""no" 1>&6
6255 for ac_func in nan copysignf
6257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6258 echo "configure:6259: checking for $ac_func" >&5
6259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6260 echo $ac_n "(cached) $ac_c" 1>&6
6261 else
6262 cat > conftest.$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6265 /* System header to define __stub macros and hopefully few prototypes,
6266 which can conflict with char $ac_func(); below. */
6267 #include <assert.h>
6268 /* Override any gcc2 internal prototype to avoid an error. */
6269 /* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6271 char $ac_func();
6273 int main() {
6275 /* The GNU C library defines this for functions which it implements
6276 to always fail with ENOSYS. Some functions are actually named
6277 something starting with __ and the normal name is an alias. */
6278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6279 choke me
6280 #else
6281 $ac_func();
6282 #endif
6284 ; return 0; }
6286 if { (eval echo configure:6287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6287 rm -rf conftest*
6288 eval "ac_cv_func_$ac_func=yes"
6289 else
6290 echo "configure: failed program was:" >&5
6291 cat conftest.$ac_ext >&5
6292 rm -rf conftest*
6293 eval "ac_cv_func_$ac_func=no"
6295 rm -f conftest*
6298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6299 echo "$ac_t""yes" 1>&6
6300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6301 cat >> confdefs.h <<EOF
6302 #define $ac_tr_func 1
6305 else
6306 echo "$ac_t""no" 1>&6
6307 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6309 done
6312 for ac_func in __signbit
6314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6315 echo "configure:6316: checking for $ac_func" >&5
6316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6317 echo $ac_n "(cached) $ac_c" 1>&6
6318 else
6319 cat > conftest.$ac_ext <<EOF
6320 #line 6321 "configure"
6321 #include "confdefs.h"
6322 /* System header to define __stub macros and hopefully few prototypes,
6323 which can conflict with char $ac_func(); below. */
6324 #include <assert.h>
6325 /* Override any gcc2 internal prototype to avoid an error. */
6326 /* We use char because int might match the return type of a gcc2
6327 builtin and then its argument prototype would still apply. */
6328 char $ac_func();
6330 int main() {
6332 /* The GNU C library defines this for functions which it implements
6333 to always fail with ENOSYS. Some functions are actually named
6334 something starting with __ and the normal name is an alias. */
6335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6336 choke me
6337 #else
6338 $ac_func();
6339 #endif
6341 ; return 0; }
6343 if { (eval echo configure:6344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6344 rm -rf conftest*
6345 eval "ac_cv_func_$ac_func=yes"
6346 else
6347 echo "configure: failed program was:" >&5
6348 cat conftest.$ac_ext >&5
6349 rm -rf conftest*
6350 eval "ac_cv_func_$ac_func=no"
6352 rm -f conftest*
6355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6356 echo "$ac_t""yes" 1>&6
6357 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6358 cat >> confdefs.h <<EOF
6359 #define $ac_tr_func 1
6362 else
6363 echo "$ac_t""no" 1>&6
6364 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6366 done
6368 for ac_func in __signbitf
6370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6371 echo "configure:6372: checking for $ac_func" >&5
6372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6373 echo $ac_n "(cached) $ac_c" 1>&6
6374 else
6375 cat > conftest.$ac_ext <<EOF
6376 #line 6377 "configure"
6377 #include "confdefs.h"
6378 /* System header to define __stub macros and hopefully few prototypes,
6379 which can conflict with char $ac_func(); below. */
6380 #include <assert.h>
6381 /* Override any gcc2 internal prototype to avoid an error. */
6382 /* We use char because int might match the return type of a gcc2
6383 builtin and then its argument prototype would still apply. */
6384 char $ac_func();
6386 int main() {
6388 /* The GNU C library defines this for functions which it implements
6389 to always fail with ENOSYS. Some functions are actually named
6390 something starting with __ and the normal name is an alias. */
6391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6392 choke me
6393 #else
6394 $ac_func();
6395 #endif
6397 ; return 0; }
6399 if { (eval echo configure:6400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6400 rm -rf conftest*
6401 eval "ac_cv_func_$ac_func=yes"
6402 else
6403 echo "configure: failed program was:" >&5
6404 cat conftest.$ac_ext >&5
6405 rm -rf conftest*
6406 eval "ac_cv_func_$ac_func=no"
6408 rm -f conftest*
6411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6412 echo "$ac_t""yes" 1>&6
6413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6414 cat >> confdefs.h <<EOF
6415 #define $ac_tr_func 1
6418 else
6419 echo "$ac_t""no" 1>&6
6420 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6422 done
6425 if test x$ac_cv_func_copysignl = x"yes"; then
6426 for ac_func in __signbitl
6428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6429 echo "configure:6430: checking for $ac_func" >&5
6430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6431 echo $ac_n "(cached) $ac_c" 1>&6
6432 else
6433 cat > conftest.$ac_ext <<EOF
6434 #line 6435 "configure"
6435 #include "confdefs.h"
6436 /* System header to define __stub macros and hopefully few prototypes,
6437 which can conflict with char $ac_func(); below. */
6438 #include <assert.h>
6439 /* Override any gcc2 internal prototype to avoid an error. */
6440 /* We use char because int might match the return type of a gcc2
6441 builtin and then its argument prototype would still apply. */
6442 char $ac_func();
6444 int main() {
6446 /* The GNU C library defines this for functions which it implements
6447 to always fail with ENOSYS. Some functions are actually named
6448 something starting with __ and the normal name is an alias. */
6449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6450 choke me
6451 #else
6452 $ac_func();
6453 #endif
6455 ; return 0; }
6457 if { (eval echo configure:6458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6458 rm -rf conftest*
6459 eval "ac_cv_func_$ac_func=yes"
6460 else
6461 echo "configure: failed program was:" >&5
6462 cat conftest.$ac_ext >&5
6463 rm -rf conftest*
6464 eval "ac_cv_func_$ac_func=no"
6466 rm -f conftest*
6469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6470 echo "$ac_t""yes" 1>&6
6471 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6472 cat >> confdefs.h <<EOF
6473 #define $ac_tr_func 1
6476 else
6477 echo "$ac_t""no" 1>&6
6478 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6480 done
6488 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6489 echo "configure:6490: checking for mbstate_t" >&5
6490 cat > conftest.$ac_ext <<EOF
6491 #line 6492 "configure"
6492 #include "confdefs.h"
6493 #include <wchar.h>
6494 int main() {
6495 mbstate_t teststate;
6496 ; return 0; }
6498 if { (eval echo configure:6499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6499 rm -rf conftest*
6500 have_mbstate_t=yes
6501 else
6502 echo "configure: failed program was:" >&5
6503 cat conftest.$ac_ext >&5
6504 rm -rf conftest*
6505 have_mbstate_t=no
6507 rm -f conftest*
6508 echo "$ac_t""$have_mbstate_t" 1>&6
6509 if test x"$have_mbstate_t" = xyes; then
6510 cat >> confdefs.h <<\EOF
6511 #define HAVE_MBSTATE_T 1
6516 for ac_hdr in wchar.h
6518 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6520 echo "configure:6521: checking for $ac_hdr" >&5
6521 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6522 echo $ac_n "(cached) $ac_c" 1>&6
6523 else
6524 cat > conftest.$ac_ext <<EOF
6525 #line 6526 "configure"
6526 #include "confdefs.h"
6527 #include <$ac_hdr>
6529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6530 { (eval echo configure:6531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6532 if test -z "$ac_err"; then
6533 rm -rf conftest*
6534 eval "ac_cv_header_$ac_safe=yes"
6535 else
6536 echo "$ac_err" >&5
6537 echo "configure: failed program was:" >&5
6538 cat conftest.$ac_ext >&5
6539 rm -rf conftest*
6540 eval "ac_cv_header_$ac_safe=no"
6542 rm -f conftest*
6544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6545 echo "$ac_t""yes" 1>&6
6546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6547 cat >> confdefs.h <<EOF
6548 #define $ac_tr_hdr 1
6550 ac_has_wchar_h=yes
6551 else
6552 echo "$ac_t""no" 1>&6
6553 ac_has_wchar_h=no
6555 done
6557 for ac_hdr in wctype.h
6559 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6561 echo "configure:6562: checking for $ac_hdr" >&5
6562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6563 echo $ac_n "(cached) $ac_c" 1>&6
6564 else
6565 cat > conftest.$ac_ext <<EOF
6566 #line 6567 "configure"
6567 #include "confdefs.h"
6568 #include <$ac_hdr>
6570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6571 { (eval echo configure:6572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6573 if test -z "$ac_err"; then
6574 rm -rf conftest*
6575 eval "ac_cv_header_$ac_safe=yes"
6576 else
6577 echo "$ac_err" >&5
6578 echo "configure: failed program was:" >&5
6579 cat conftest.$ac_ext >&5
6580 rm -rf conftest*
6581 eval "ac_cv_header_$ac_safe=no"
6583 rm -f conftest*
6585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6586 echo "$ac_t""yes" 1>&6
6587 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6588 cat >> confdefs.h <<EOF
6589 #define $ac_tr_hdr 1
6591 ac_has_wctype_h=yes
6592 else
6593 echo "$ac_t""no" 1>&6
6594 ac_has_wctype_h=no
6596 done
6599 if test x"$ac_has_wchar_h" = xyes &&
6600 test x"$ac_has_wctype_h" = xyes &&
6601 test x"$enable_c_mbchar" != xno; then
6603 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6604 echo "configure:6605: checking for WCHAR_MIN and WCHAR_MAX" >&5
6605 cat > conftest.$ac_ext <<EOF
6606 #line 6607 "configure"
6607 #include "confdefs.h"
6608 #include <wchar.h>
6609 int main() {
6610 int i = WCHAR_MIN; int j = WCHAR_MAX;
6611 ; return 0; }
6613 if { (eval echo configure:6614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6614 rm -rf conftest*
6615 has_wchar_minmax=yes
6616 else
6617 echo "configure: failed program was:" >&5
6618 cat conftest.$ac_ext >&5
6619 rm -rf conftest*
6620 has_wchar_minmax=no
6622 rm -f conftest*
6623 echo "$ac_t""$has_wchar_minmax" 1>&6
6625 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6626 echo "configure:6627: checking for WEOF" >&5
6627 cat > conftest.$ac_ext <<EOF
6628 #line 6629 "configure"
6629 #include "confdefs.h"
6631 #include <wchar.h>
6632 #include <stddef.h>
6633 int main() {
6634 wint_t i = WEOF;
6635 ; return 0; }
6637 if { (eval echo configure:6638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6638 rm -rf conftest*
6639 has_weof=yes
6640 else
6641 echo "configure: failed program was:" >&5
6642 cat conftest.$ac_ext >&5
6643 rm -rf conftest*
6644 has_weof=no
6646 rm -f conftest*
6647 echo "$ac_t""$has_weof" 1>&6
6649 ac_wfuncs=yes
6650 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6653 echo "configure:6654: checking for $ac_func" >&5
6654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6655 echo $ac_n "(cached) $ac_c" 1>&6
6656 else
6657 cat > conftest.$ac_ext <<EOF
6658 #line 6659 "configure"
6659 #include "confdefs.h"
6660 /* System header to define __stub macros and hopefully few prototypes,
6661 which can conflict with char $ac_func(); below. */
6662 #include <assert.h>
6663 /* Override any gcc2 internal prototype to avoid an error. */
6664 /* We use char because int might match the return type of a gcc2
6665 builtin and then its argument prototype would still apply. */
6666 char $ac_func();
6668 int main() {
6670 /* The GNU C library defines this for functions which it implements
6671 to always fail with ENOSYS. Some functions are actually named
6672 something starting with __ and the normal name is an alias. */
6673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6674 choke me
6675 #else
6676 $ac_func();
6677 #endif
6679 ; return 0; }
6681 if { (eval echo configure:6682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6682 rm -rf conftest*
6683 eval "ac_cv_func_$ac_func=yes"
6684 else
6685 echo "configure: failed program was:" >&5
6686 cat conftest.$ac_ext >&5
6687 rm -rf conftest*
6688 eval "ac_cv_func_$ac_func=no"
6690 rm -f conftest*
6693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6694 echo "$ac_t""yes" 1>&6
6695 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6696 cat >> confdefs.h <<EOF
6697 #define $ac_tr_func 1
6700 else
6701 echo "$ac_t""no" 1>&6
6703 ac_wfuncs=no
6705 done
6708 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6709 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6710 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6711 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6712 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6713 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6716 echo "configure:6717: checking for $ac_func" >&5
6717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6718 echo $ac_n "(cached) $ac_c" 1>&6
6719 else
6720 cat > conftest.$ac_ext <<EOF
6721 #line 6722 "configure"
6722 #include "confdefs.h"
6723 /* System header to define __stub macros and hopefully few prototypes,
6724 which can conflict with char $ac_func(); below. */
6725 #include <assert.h>
6726 /* Override any gcc2 internal prototype to avoid an error. */
6727 /* We use char because int might match the return type of a gcc2
6728 builtin and then its argument prototype would still apply. */
6729 char $ac_func();
6731 int main() {
6733 /* The GNU C library defines this for functions which it implements
6734 to always fail with ENOSYS. Some functions are actually named
6735 something starting with __ and the normal name is an alias. */
6736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6737 choke me
6738 #else
6739 $ac_func();
6740 #endif
6742 ; return 0; }
6744 if { (eval echo configure:6745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6745 rm -rf conftest*
6746 eval "ac_cv_func_$ac_func=yes"
6747 else
6748 echo "configure: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6750 rm -rf conftest*
6751 eval "ac_cv_func_$ac_func=no"
6753 rm -f conftest*
6756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6757 echo "$ac_t""yes" 1>&6
6758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6759 cat >> confdefs.h <<EOF
6760 #define $ac_tr_func 1
6763 else
6764 echo "$ac_t""no" 1>&6
6766 ac_wfuncs=no
6768 done
6771 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6772 echo "configure:6773: checking for ISO C99 wchar_t support" >&5
6773 if test x"$has_weof" = xyes &&
6774 test x"$has_wchar_minmax" = xyes &&
6775 test x"$ac_wfuncs" = xyes; then
6776 ac_isoC99_wchar_t=yes
6777 else
6778 ac_isoC99_wchar_t=no
6780 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6782 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6783 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6784 echo "configure:6785: checking for iconv.h" >&5
6785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6786 echo $ac_n "(cached) $ac_c" 1>&6
6787 else
6788 cat > conftest.$ac_ext <<EOF
6789 #line 6790 "configure"
6790 #include "confdefs.h"
6791 #include <iconv.h>
6793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6794 { (eval echo configure:6795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6796 if test -z "$ac_err"; then
6797 rm -rf conftest*
6798 eval "ac_cv_header_$ac_safe=yes"
6799 else
6800 echo "$ac_err" >&5
6801 echo "configure: failed program was:" >&5
6802 cat conftest.$ac_ext >&5
6803 rm -rf conftest*
6804 eval "ac_cv_header_$ac_safe=no"
6806 rm -f conftest*
6808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6809 echo "$ac_t""yes" 1>&6
6810 ac_has_iconv_h=yes
6811 else
6812 echo "$ac_t""no" 1>&6
6813 ac_has_iconv_h=no
6816 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6817 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6818 echo "configure:6819: checking for langinfo.h" >&5
6819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6820 echo $ac_n "(cached) $ac_c" 1>&6
6821 else
6822 cat > conftest.$ac_ext <<EOF
6823 #line 6824 "configure"
6824 #include "confdefs.h"
6825 #include <langinfo.h>
6827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6828 { (eval echo configure:6829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6830 if test -z "$ac_err"; then
6831 rm -rf conftest*
6832 eval "ac_cv_header_$ac_safe=yes"
6833 else
6834 echo "$ac_err" >&5
6835 echo "configure: failed program was:" >&5
6836 cat conftest.$ac_ext >&5
6837 rm -rf conftest*
6838 eval "ac_cv_header_$ac_safe=no"
6840 rm -f conftest*
6842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6843 echo "$ac_t""yes" 1>&6
6844 ac_has_langinfo_h=yes
6845 else
6846 echo "$ac_t""no" 1>&6
6847 ac_has_langinfo_h=no
6851 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6852 echo "configure:6853: checking for iconv in -liconv" >&5
6853 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6854 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6855 echo $ac_n "(cached) $ac_c" 1>&6
6856 else
6857 ac_save_LIBS="$LIBS"
6858 LIBS="-liconv $LIBS"
6859 cat > conftest.$ac_ext <<EOF
6860 #line 6861 "configure"
6861 #include "confdefs.h"
6862 /* Override any gcc2 internal prototype to avoid an error. */
6863 /* We use char because int might match the return type of a gcc2
6864 builtin and then its argument prototype would still apply. */
6865 char iconv();
6867 int main() {
6868 iconv()
6869 ; return 0; }
6871 if { (eval echo configure:6872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6872 rm -rf conftest*
6873 eval "ac_cv_lib_$ac_lib_var=yes"
6874 else
6875 echo "configure: failed program was:" >&5
6876 cat conftest.$ac_ext >&5
6877 rm -rf conftest*
6878 eval "ac_cv_lib_$ac_lib_var=no"
6880 rm -f conftest*
6881 LIBS="$ac_save_LIBS"
6884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6885 echo "$ac_t""yes" 1>&6
6886 libiconv="-liconv"
6887 else
6888 echo "$ac_t""no" 1>&6
6891 ac_save_LIBS="$LIBS"
6892 LIBS="$LIBS $libiconv"
6894 for ac_func in iconv_open iconv_close iconv nl_langinfo
6896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6897 echo "configure:6898: checking for $ac_func" >&5
6898 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6899 echo $ac_n "(cached) $ac_c" 1>&6
6900 else
6901 cat > conftest.$ac_ext <<EOF
6902 #line 6903 "configure"
6903 #include "confdefs.h"
6904 /* System header to define __stub macros and hopefully few prototypes,
6905 which can conflict with char $ac_func(); below. */
6906 #include <assert.h>
6907 /* Override any gcc2 internal prototype to avoid an error. */
6908 /* We use char because int might match the return type of a gcc2
6909 builtin and then its argument prototype would still apply. */
6910 char $ac_func();
6912 int main() {
6914 /* The GNU C library defines this for functions which it implements
6915 to always fail with ENOSYS. Some functions are actually named
6916 something starting with __ and the normal name is an alias. */
6917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6918 choke me
6919 #else
6920 $ac_func();
6921 #endif
6923 ; return 0; }
6925 if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6926 rm -rf conftest*
6927 eval "ac_cv_func_$ac_func=yes"
6928 else
6929 echo "configure: failed program was:" >&5
6930 cat conftest.$ac_ext >&5
6931 rm -rf conftest*
6932 eval "ac_cv_func_$ac_func=no"
6934 rm -f conftest*
6937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6938 echo "$ac_t""yes" 1>&6
6939 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6940 cat >> confdefs.h <<EOF
6941 #define $ac_tr_func 1
6944 ac_XPG2funcs=yes
6945 else
6946 echo "$ac_t""no" 1>&6
6947 ac_XPG2funcs=no
6949 done
6952 LIBS="$ac_save_LIBS"
6954 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6955 echo "configure:6956: checking for XPG2 wchar_t support" >&5
6956 if test x"$ac_has_iconv_h" = xyes &&
6957 test x"$ac_has_langinfo_h" = xyes &&
6958 test x"$ac_XPG2funcs" = xyes; then
6959 ac_XPG2_wchar_t=yes
6960 else
6961 ac_XPG2_wchar_t=no
6963 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6965 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6966 echo "configure:6967: checking for enabled wchar_t specializations" >&5
6967 if test x"$ac_isoC99_wchar_t" = xyes &&
6968 test x"$ac_XPG2_wchar_t" = xyes; then
6969 cat >> confdefs.h <<\EOF
6970 #define _GLIBCPP_USE_WCHAR_T 1
6973 echo "$ac_t"""yes"" 1>&6
6974 else
6975 echo "$ac_t"""no"" 1>&6
6977 else
6978 echo "configure: warning: wchar_t support disabled." 1>&2
6981 os_include_dir="os/bsd/netbsd"
6982 cat >> confdefs.h <<\EOF
6983 #define HAVE_COPYSIGN 1
6986 cat >> confdefs.h <<\EOF
6987 #define HAVE_COPYSIGNF 1
6990 cat >> confdefs.h <<\EOF
6991 #define HAVE_FINITEF 1
6994 cat >> confdefs.h <<\EOF
6995 #define HAVE_FINITE 1
6998 cat >> confdefs.h <<\EOF
6999 #define HAVE_FREXPF 1
7002 cat >> confdefs.h <<\EOF
7003 #define HAVE_HYPOTF 1
7006 cat >> confdefs.h <<\EOF
7007 #define HAVE_ISINF 1
7010 cat >> confdefs.h <<\EOF
7011 #define HAVE_ISINFF 1
7014 cat >> confdefs.h <<\EOF
7015 #define HAVE_ISNAN 1
7018 cat >> confdefs.h <<\EOF
7019 #define HAVE_ISNANF 1
7022 if test x"long_double_math_on_this_cpu" = x"yes"; then
7023 cat >> confdefs.h <<\EOF
7024 #define HAVE_FINITEL 1
7027 cat >> confdefs.h <<\EOF
7028 #define HAVE_ISINFL 1
7031 cat >> confdefs.h <<\EOF
7032 #define HAVE_ISNANL 1
7037 *-freebsd*)
7038 # Check for available headers.
7039 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
7040 machine/endian.h machine/param.h sys/machine.h sys/types.h \
7041 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7042 sys/time.h unistd.h
7044 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7045 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7046 echo "configure:7047: checking for $ac_hdr" >&5
7047 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7048 echo $ac_n "(cached) $ac_c" 1>&6
7049 else
7050 cat > conftest.$ac_ext <<EOF
7051 #line 7052 "configure"
7052 #include "confdefs.h"
7053 #include <$ac_hdr>
7055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7056 { (eval echo configure:7057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7058 if test -z "$ac_err"; then
7059 rm -rf conftest*
7060 eval "ac_cv_header_$ac_safe=yes"
7061 else
7062 echo "$ac_err" >&5
7063 echo "configure: failed program was:" >&5
7064 cat conftest.$ac_ext >&5
7065 rm -rf conftest*
7066 eval "ac_cv_header_$ac_safe=no"
7068 rm -f conftest*
7070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7071 echo "$ac_t""yes" 1>&6
7072 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7073 cat >> confdefs.h <<EOF
7074 #define $ac_tr_hdr 1
7077 else
7078 echo "$ac_t""no" 1>&6
7080 done
7082 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7085 # If we're not using GNU ld, then there's no point in even trying these
7086 # tests. Check for that first. We should have already tested for gld
7087 # by now (in libtool), but require it now just to be safe...
7088 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7089 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7092 # The name set by libtool depends on the version of libtool. Shame on us
7093 # for depending on an impl detail, but c'est la vie. Older versions used
7094 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7095 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7096 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7097 # set (hence we're using an older libtool), then set it.
7098 if test x${with_gnu_ld+set} != xset; then
7099 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7100 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7101 with_gnu_ld=no
7102 else
7103 with_gnu_ld=$ac_cv_prog_gnu_ld
7107 # Start by getting the version number. I think the libtool test already
7108 # does some of this, but throws away the result.
7110 ldver=`$LD --version 2>/dev/null | head -1 | \
7111 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7113 glibcpp_gnu_ld_version=`echo $ldver | \
7114 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7116 # Set --gc-sections.
7117 if test "$with_gnu_ld" = "notbroken"; then
7118 # GNU ld it is! Joy and bunny rabbits!
7120 # All these tests are for C++; save the language and the compiler flags.
7121 # Need to do this so that g++ won't try to link in libstdc++
7122 ac_test_CFLAGS="${CFLAGS+set}"
7123 ac_save_CFLAGS="$CFLAGS"
7124 CFLAGS='-x c++ -Wl,--gc-sections'
7126 # Check for -Wl,--gc-sections
7127 # XXX This test is broken at the moment, as symbols required for
7128 # linking are now in libsupc++ (not built yet.....). In addition,
7129 # this test has cored on solaris in the past. In addition,
7130 # --gc-sections doesn't really work at the moment (keeps on discarding
7131 # used sections, first .eh_frame and now some of the glibc sections for
7132 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7133 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7134 echo "configure:7135: checking for ld that supports -Wl,--gc-sections" >&5
7135 if test "$cross_compiling" = yes; then
7136 ac_sectionLDflags=yes
7137 else
7138 cat > conftest.$ac_ext <<EOF
7139 #line 7140 "configure"
7140 #include "confdefs.h"
7142 int main(void)
7144 try { throw 1; }
7145 catch (...) { };
7146 return 0;
7150 if { (eval echo configure:7151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7151 then
7152 ac_sectionLDflags=yes
7153 else
7154 echo "configure: failed program was:" >&5
7155 cat conftest.$ac_ext >&5
7156 rm -fr conftest*
7157 ac_sectionLDflags=no
7159 rm -fr conftest*
7162 if test "$ac_test_CFLAGS" = set; then
7163 CFLAGS="$ac_save_CFLAGS"
7164 else
7165 # this is the suspicious part
7166 CFLAGS=''
7168 if test "$ac_sectionLDflags" = "yes"; then
7169 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7171 echo "$ac_t""$ac_sectionLDflags" 1>&6
7174 # Set linker optimization flags.
7175 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7176 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7183 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7184 echo "configure:7185: checking for main in -lm" >&5
7185 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7187 echo $ac_n "(cached) $ac_c" 1>&6
7188 else
7189 ac_save_LIBS="$LIBS"
7190 LIBS="-lm $LIBS"
7191 cat > conftest.$ac_ext <<EOF
7192 #line 7193 "configure"
7193 #include "confdefs.h"
7195 int main() {
7196 main()
7197 ; return 0; }
7199 if { (eval echo configure:7200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7200 rm -rf conftest*
7201 eval "ac_cv_lib_$ac_lib_var=yes"
7202 else
7203 echo "configure: failed program was:" >&5
7204 cat conftest.$ac_ext >&5
7205 rm -rf conftest*
7206 eval "ac_cv_lib_$ac_lib_var=no"
7208 rm -f conftest*
7209 LIBS="$ac_save_LIBS"
7212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7213 echo "$ac_t""yes" 1>&6
7214 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7215 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7216 cat >> confdefs.h <<EOF
7217 #define $ac_tr_lib 1
7220 LIBS="-lm $LIBS"
7222 else
7223 echo "$ac_t""no" 1>&6
7226 for ac_func in nan copysignf
7228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7229 echo "configure:7230: checking for $ac_func" >&5
7230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7231 echo $ac_n "(cached) $ac_c" 1>&6
7232 else
7233 cat > conftest.$ac_ext <<EOF
7234 #line 7235 "configure"
7235 #include "confdefs.h"
7236 /* System header to define __stub macros and hopefully few prototypes,
7237 which can conflict with char $ac_func(); below. */
7238 #include <assert.h>
7239 /* Override any gcc2 internal prototype to avoid an error. */
7240 /* We use char because int might match the return type of a gcc2
7241 builtin and then its argument prototype would still apply. */
7242 char $ac_func();
7244 int main() {
7246 /* The GNU C library defines this for functions which it implements
7247 to always fail with ENOSYS. Some functions are actually named
7248 something starting with __ and the normal name is an alias. */
7249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7250 choke me
7251 #else
7252 $ac_func();
7253 #endif
7255 ; return 0; }
7257 if { (eval echo configure:7258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7258 rm -rf conftest*
7259 eval "ac_cv_func_$ac_func=yes"
7260 else
7261 echo "configure: failed program was:" >&5
7262 cat conftest.$ac_ext >&5
7263 rm -rf conftest*
7264 eval "ac_cv_func_$ac_func=no"
7266 rm -f conftest*
7269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7270 echo "$ac_t""yes" 1>&6
7271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7272 cat >> confdefs.h <<EOF
7273 #define $ac_tr_func 1
7276 else
7277 echo "$ac_t""no" 1>&6
7278 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7280 done
7283 for ac_func in __signbit
7285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7286 echo "configure:7287: checking for $ac_func" >&5
7287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7288 echo $ac_n "(cached) $ac_c" 1>&6
7289 else
7290 cat > conftest.$ac_ext <<EOF
7291 #line 7292 "configure"
7292 #include "confdefs.h"
7293 /* System header to define __stub macros and hopefully few prototypes,
7294 which can conflict with char $ac_func(); below. */
7295 #include <assert.h>
7296 /* Override any gcc2 internal prototype to avoid an error. */
7297 /* We use char because int might match the return type of a gcc2
7298 builtin and then its argument prototype would still apply. */
7299 char $ac_func();
7301 int main() {
7303 /* The GNU C library defines this for functions which it implements
7304 to always fail with ENOSYS. Some functions are actually named
7305 something starting with __ and the normal name is an alias. */
7306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7307 choke me
7308 #else
7309 $ac_func();
7310 #endif
7312 ; return 0; }
7314 if { (eval echo configure:7315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7315 rm -rf conftest*
7316 eval "ac_cv_func_$ac_func=yes"
7317 else
7318 echo "configure: failed program was:" >&5
7319 cat conftest.$ac_ext >&5
7320 rm -rf conftest*
7321 eval "ac_cv_func_$ac_func=no"
7323 rm -f conftest*
7326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7327 echo "$ac_t""yes" 1>&6
7328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7329 cat >> confdefs.h <<EOF
7330 #define $ac_tr_func 1
7333 else
7334 echo "$ac_t""no" 1>&6
7335 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7337 done
7339 for ac_func in __signbitf
7341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7342 echo "configure:7343: checking for $ac_func" >&5
7343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7344 echo $ac_n "(cached) $ac_c" 1>&6
7345 else
7346 cat > conftest.$ac_ext <<EOF
7347 #line 7348 "configure"
7348 #include "confdefs.h"
7349 /* System header to define __stub macros and hopefully few prototypes,
7350 which can conflict with char $ac_func(); below. */
7351 #include <assert.h>
7352 /* Override any gcc2 internal prototype to avoid an error. */
7353 /* We use char because int might match the return type of a gcc2
7354 builtin and then its argument prototype would still apply. */
7355 char $ac_func();
7357 int main() {
7359 /* The GNU C library defines this for functions which it implements
7360 to always fail with ENOSYS. Some functions are actually named
7361 something starting with __ and the normal name is an alias. */
7362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7363 choke me
7364 #else
7365 $ac_func();
7366 #endif
7368 ; return 0; }
7370 if { (eval echo configure:7371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7371 rm -rf conftest*
7372 eval "ac_cv_func_$ac_func=yes"
7373 else
7374 echo "configure: failed program was:" >&5
7375 cat conftest.$ac_ext >&5
7376 rm -rf conftest*
7377 eval "ac_cv_func_$ac_func=no"
7379 rm -f conftest*
7382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7383 echo "$ac_t""yes" 1>&6
7384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7385 cat >> confdefs.h <<EOF
7386 #define $ac_tr_func 1
7389 else
7390 echo "$ac_t""no" 1>&6
7391 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7393 done
7396 if test x$ac_cv_func_copysignl = x"yes"; then
7397 for ac_func in __signbitl
7399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7400 echo "configure:7401: checking for $ac_func" >&5
7401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7402 echo $ac_n "(cached) $ac_c" 1>&6
7403 else
7404 cat > conftest.$ac_ext <<EOF
7405 #line 7406 "configure"
7406 #include "confdefs.h"
7407 /* System header to define __stub macros and hopefully few prototypes,
7408 which can conflict with char $ac_func(); below. */
7409 #include <assert.h>
7410 /* Override any gcc2 internal prototype to avoid an error. */
7411 /* We use char because int might match the return type of a gcc2
7412 builtin and then its argument prototype would still apply. */
7413 char $ac_func();
7415 int main() {
7417 /* The GNU C library defines this for functions which it implements
7418 to always fail with ENOSYS. Some functions are actually named
7419 something starting with __ and the normal name is an alias. */
7420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7421 choke me
7422 #else
7423 $ac_func();
7424 #endif
7426 ; return 0; }
7428 if { (eval echo configure:7429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7429 rm -rf conftest*
7430 eval "ac_cv_func_$ac_func=yes"
7431 else
7432 echo "configure: failed program was:" >&5
7433 cat conftest.$ac_ext >&5
7434 rm -rf conftest*
7435 eval "ac_cv_func_$ac_func=no"
7437 rm -f conftest*
7440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7441 echo "$ac_t""yes" 1>&6
7442 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7443 cat >> confdefs.h <<EOF
7444 #define $ac_tr_func 1
7447 else
7448 echo "$ac_t""no" 1>&6
7449 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7451 done
7459 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7460 echo "configure:7461: checking for mbstate_t" >&5
7461 cat > conftest.$ac_ext <<EOF
7462 #line 7463 "configure"
7463 #include "confdefs.h"
7464 #include <wchar.h>
7465 int main() {
7466 mbstate_t teststate;
7467 ; return 0; }
7469 if { (eval echo configure:7470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7470 rm -rf conftest*
7471 have_mbstate_t=yes
7472 else
7473 echo "configure: failed program was:" >&5
7474 cat conftest.$ac_ext >&5
7475 rm -rf conftest*
7476 have_mbstate_t=no
7478 rm -f conftest*
7479 echo "$ac_t""$have_mbstate_t" 1>&6
7480 if test x"$have_mbstate_t" = xyes; then
7481 cat >> confdefs.h <<\EOF
7482 #define HAVE_MBSTATE_T 1
7487 for ac_hdr in wchar.h
7489 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7490 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7491 echo "configure:7492: checking for $ac_hdr" >&5
7492 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7493 echo $ac_n "(cached) $ac_c" 1>&6
7494 else
7495 cat > conftest.$ac_ext <<EOF
7496 #line 7497 "configure"
7497 #include "confdefs.h"
7498 #include <$ac_hdr>
7500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7501 { (eval echo configure:7502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7502 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7503 if test -z "$ac_err"; then
7504 rm -rf conftest*
7505 eval "ac_cv_header_$ac_safe=yes"
7506 else
7507 echo "$ac_err" >&5
7508 echo "configure: failed program was:" >&5
7509 cat conftest.$ac_ext >&5
7510 rm -rf conftest*
7511 eval "ac_cv_header_$ac_safe=no"
7513 rm -f conftest*
7515 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7516 echo "$ac_t""yes" 1>&6
7517 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7518 cat >> confdefs.h <<EOF
7519 #define $ac_tr_hdr 1
7521 ac_has_wchar_h=yes
7522 else
7523 echo "$ac_t""no" 1>&6
7524 ac_has_wchar_h=no
7526 done
7528 for ac_hdr in wctype.h
7530 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7532 echo "configure:7533: checking for $ac_hdr" >&5
7533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7534 echo $ac_n "(cached) $ac_c" 1>&6
7535 else
7536 cat > conftest.$ac_ext <<EOF
7537 #line 7538 "configure"
7538 #include "confdefs.h"
7539 #include <$ac_hdr>
7541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7542 { (eval echo configure:7543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7544 if test -z "$ac_err"; then
7545 rm -rf conftest*
7546 eval "ac_cv_header_$ac_safe=yes"
7547 else
7548 echo "$ac_err" >&5
7549 echo "configure: failed program was:" >&5
7550 cat conftest.$ac_ext >&5
7551 rm -rf conftest*
7552 eval "ac_cv_header_$ac_safe=no"
7554 rm -f conftest*
7556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7557 echo "$ac_t""yes" 1>&6
7558 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7559 cat >> confdefs.h <<EOF
7560 #define $ac_tr_hdr 1
7562 ac_has_wctype_h=yes
7563 else
7564 echo "$ac_t""no" 1>&6
7565 ac_has_wctype_h=no
7567 done
7570 if test x"$ac_has_wchar_h" = xyes &&
7571 test x"$ac_has_wctype_h" = xyes &&
7572 test x"$enable_c_mbchar" != xno; then
7574 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7575 echo "configure:7576: checking for WCHAR_MIN and WCHAR_MAX" >&5
7576 cat > conftest.$ac_ext <<EOF
7577 #line 7578 "configure"
7578 #include "confdefs.h"
7579 #include <wchar.h>
7580 int main() {
7581 int i = WCHAR_MIN; int j = WCHAR_MAX;
7582 ; return 0; }
7584 if { (eval echo configure:7585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7585 rm -rf conftest*
7586 has_wchar_minmax=yes
7587 else
7588 echo "configure: failed program was:" >&5
7589 cat conftest.$ac_ext >&5
7590 rm -rf conftest*
7591 has_wchar_minmax=no
7593 rm -f conftest*
7594 echo "$ac_t""$has_wchar_minmax" 1>&6
7596 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7597 echo "configure:7598: checking for WEOF" >&5
7598 cat > conftest.$ac_ext <<EOF
7599 #line 7600 "configure"
7600 #include "confdefs.h"
7602 #include <wchar.h>
7603 #include <stddef.h>
7604 int main() {
7605 wint_t i = WEOF;
7606 ; return 0; }
7608 if { (eval echo configure:7609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7609 rm -rf conftest*
7610 has_weof=yes
7611 else
7612 echo "configure: failed program was:" >&5
7613 cat conftest.$ac_ext >&5
7614 rm -rf conftest*
7615 has_weof=no
7617 rm -f conftest*
7618 echo "$ac_t""$has_weof" 1>&6
7620 ac_wfuncs=yes
7621 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7624 echo "configure:7625: checking for $ac_func" >&5
7625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7626 echo $ac_n "(cached) $ac_c" 1>&6
7627 else
7628 cat > conftest.$ac_ext <<EOF
7629 #line 7630 "configure"
7630 #include "confdefs.h"
7631 /* System header to define __stub macros and hopefully few prototypes,
7632 which can conflict with char $ac_func(); below. */
7633 #include <assert.h>
7634 /* Override any gcc2 internal prototype to avoid an error. */
7635 /* We use char because int might match the return type of a gcc2
7636 builtin and then its argument prototype would still apply. */
7637 char $ac_func();
7639 int main() {
7641 /* The GNU C library defines this for functions which it implements
7642 to always fail with ENOSYS. Some functions are actually named
7643 something starting with __ and the normal name is an alias. */
7644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7645 choke me
7646 #else
7647 $ac_func();
7648 #endif
7650 ; return 0; }
7652 if { (eval echo configure:7653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7653 rm -rf conftest*
7654 eval "ac_cv_func_$ac_func=yes"
7655 else
7656 echo "configure: failed program was:" >&5
7657 cat conftest.$ac_ext >&5
7658 rm -rf conftest*
7659 eval "ac_cv_func_$ac_func=no"
7661 rm -f conftest*
7664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7665 echo "$ac_t""yes" 1>&6
7666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7667 cat >> confdefs.h <<EOF
7668 #define $ac_tr_func 1
7671 else
7672 echo "$ac_t""no" 1>&6
7674 ac_wfuncs=no
7676 done
7679 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7680 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7681 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7682 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7683 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7684 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7687 echo "configure:7688: checking for $ac_func" >&5
7688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7689 echo $ac_n "(cached) $ac_c" 1>&6
7690 else
7691 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure"
7693 #include "confdefs.h"
7694 /* System header to define __stub macros and hopefully few prototypes,
7695 which can conflict with char $ac_func(); below. */
7696 #include <assert.h>
7697 /* Override any gcc2 internal prototype to avoid an error. */
7698 /* We use char because int might match the return type of a gcc2
7699 builtin and then its argument prototype would still apply. */
7700 char $ac_func();
7702 int main() {
7704 /* The GNU C library defines this for functions which it implements
7705 to always fail with ENOSYS. Some functions are actually named
7706 something starting with __ and the normal name is an alias. */
7707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7708 choke me
7709 #else
7710 $ac_func();
7711 #endif
7713 ; return 0; }
7715 if { (eval echo configure:7716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7716 rm -rf conftest*
7717 eval "ac_cv_func_$ac_func=yes"
7718 else
7719 echo "configure: failed program was:" >&5
7720 cat conftest.$ac_ext >&5
7721 rm -rf conftest*
7722 eval "ac_cv_func_$ac_func=no"
7724 rm -f conftest*
7727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7728 echo "$ac_t""yes" 1>&6
7729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7730 cat >> confdefs.h <<EOF
7731 #define $ac_tr_func 1
7734 else
7735 echo "$ac_t""no" 1>&6
7737 ac_wfuncs=no
7739 done
7742 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7743 echo "configure:7744: checking for ISO C99 wchar_t support" >&5
7744 if test x"$has_weof" = xyes &&
7745 test x"$has_wchar_minmax" = xyes &&
7746 test x"$ac_wfuncs" = xyes; then
7747 ac_isoC99_wchar_t=yes
7748 else
7749 ac_isoC99_wchar_t=no
7751 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7753 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7754 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7755 echo "configure:7756: checking for iconv.h" >&5
7756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7757 echo $ac_n "(cached) $ac_c" 1>&6
7758 else
7759 cat > conftest.$ac_ext <<EOF
7760 #line 7761 "configure"
7761 #include "confdefs.h"
7762 #include <iconv.h>
7764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7765 { (eval echo configure:7766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7767 if test -z "$ac_err"; then
7768 rm -rf conftest*
7769 eval "ac_cv_header_$ac_safe=yes"
7770 else
7771 echo "$ac_err" >&5
7772 echo "configure: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7774 rm -rf conftest*
7775 eval "ac_cv_header_$ac_safe=no"
7777 rm -f conftest*
7779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7780 echo "$ac_t""yes" 1>&6
7781 ac_has_iconv_h=yes
7782 else
7783 echo "$ac_t""no" 1>&6
7784 ac_has_iconv_h=no
7787 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7788 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7789 echo "configure:7790: checking for langinfo.h" >&5
7790 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7791 echo $ac_n "(cached) $ac_c" 1>&6
7792 else
7793 cat > conftest.$ac_ext <<EOF
7794 #line 7795 "configure"
7795 #include "confdefs.h"
7796 #include <langinfo.h>
7798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7799 { (eval echo configure:7800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7801 if test -z "$ac_err"; then
7802 rm -rf conftest*
7803 eval "ac_cv_header_$ac_safe=yes"
7804 else
7805 echo "$ac_err" >&5
7806 echo "configure: failed program was:" >&5
7807 cat conftest.$ac_ext >&5
7808 rm -rf conftest*
7809 eval "ac_cv_header_$ac_safe=no"
7811 rm -f conftest*
7813 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7814 echo "$ac_t""yes" 1>&6
7815 ac_has_langinfo_h=yes
7816 else
7817 echo "$ac_t""no" 1>&6
7818 ac_has_langinfo_h=no
7822 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7823 echo "configure:7824: checking for iconv in -liconv" >&5
7824 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7826 echo $ac_n "(cached) $ac_c" 1>&6
7827 else
7828 ac_save_LIBS="$LIBS"
7829 LIBS="-liconv $LIBS"
7830 cat > conftest.$ac_ext <<EOF
7831 #line 7832 "configure"
7832 #include "confdefs.h"
7833 /* Override any gcc2 internal prototype to avoid an error. */
7834 /* We use char because int might match the return type of a gcc2
7835 builtin and then its argument prototype would still apply. */
7836 char iconv();
7838 int main() {
7839 iconv()
7840 ; return 0; }
7842 if { (eval echo configure:7843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7843 rm -rf conftest*
7844 eval "ac_cv_lib_$ac_lib_var=yes"
7845 else
7846 echo "configure: failed program was:" >&5
7847 cat conftest.$ac_ext >&5
7848 rm -rf conftest*
7849 eval "ac_cv_lib_$ac_lib_var=no"
7851 rm -f conftest*
7852 LIBS="$ac_save_LIBS"
7855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7856 echo "$ac_t""yes" 1>&6
7857 libiconv="-liconv"
7858 else
7859 echo "$ac_t""no" 1>&6
7862 ac_save_LIBS="$LIBS"
7863 LIBS="$LIBS $libiconv"
7865 for ac_func in iconv_open iconv_close iconv nl_langinfo
7867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7868 echo "configure:7869: checking for $ac_func" >&5
7869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7870 echo $ac_n "(cached) $ac_c" 1>&6
7871 else
7872 cat > conftest.$ac_ext <<EOF
7873 #line 7874 "configure"
7874 #include "confdefs.h"
7875 /* System header to define __stub macros and hopefully few prototypes,
7876 which can conflict with char $ac_func(); below. */
7877 #include <assert.h>
7878 /* Override any gcc2 internal prototype to avoid an error. */
7879 /* We use char because int might match the return type of a gcc2
7880 builtin and then its argument prototype would still apply. */
7881 char $ac_func();
7883 int main() {
7885 /* The GNU C library defines this for functions which it implements
7886 to always fail with ENOSYS. Some functions are actually named
7887 something starting with __ and the normal name is an alias. */
7888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7889 choke me
7890 #else
7891 $ac_func();
7892 #endif
7894 ; return 0; }
7896 if { (eval echo configure:7897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7897 rm -rf conftest*
7898 eval "ac_cv_func_$ac_func=yes"
7899 else
7900 echo "configure: failed program was:" >&5
7901 cat conftest.$ac_ext >&5
7902 rm -rf conftest*
7903 eval "ac_cv_func_$ac_func=no"
7905 rm -f conftest*
7908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7909 echo "$ac_t""yes" 1>&6
7910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7911 cat >> confdefs.h <<EOF
7912 #define $ac_tr_func 1
7915 ac_XPG2funcs=yes
7916 else
7917 echo "$ac_t""no" 1>&6
7918 ac_XPG2funcs=no
7920 done
7923 LIBS="$ac_save_LIBS"
7925 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7926 echo "configure:7927: checking for XPG2 wchar_t support" >&5
7927 if test x"$ac_has_iconv_h" = xyes &&
7928 test x"$ac_has_langinfo_h" = xyes &&
7929 test x"$ac_XPG2funcs" = xyes; then
7930 ac_XPG2_wchar_t=yes
7931 else
7932 ac_XPG2_wchar_t=no
7934 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7936 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7937 echo "configure:7938: checking for enabled wchar_t specializations" >&5
7938 if test x"$ac_isoC99_wchar_t" = xyes &&
7939 test x"$ac_XPG2_wchar_t" = xyes; then
7940 cat >> confdefs.h <<\EOF
7941 #define _GLIBCPP_USE_WCHAR_T 1
7944 echo "$ac_t"""yes"" 1>&6
7945 else
7946 echo "$ac_t"""no"" 1>&6
7948 else
7949 echo "configure: warning: wchar_t support disabled." 1>&2
7952 os_include_dir="os/bsd/freebsd"
7953 cat >> confdefs.h <<\EOF
7954 #define HAVE_LC_MESSAGES 1
7957 cat >> confdefs.h <<\EOF
7958 #define HAVE_DRAND48 1
7961 cat >> confdefs.h <<\EOF
7962 #define HAVE_GETPAGESIZE 1
7965 cat >> confdefs.h <<\EOF
7966 #define HAVE_SETENV 1
7969 cat >> confdefs.h <<\EOF
7970 #define HAVE_SIGSETJMP 1
7973 cat >> confdefs.h <<\EOF
7974 #define HAVE_COPYSIGN 1
7977 cat >> confdefs.h <<\EOF
7978 #define HAVE_COPYSIGNF 1
7981 cat >> confdefs.h <<\EOF
7982 #define HAVE_FINITEF 1
7985 cat >> confdefs.h <<\EOF
7986 #define HAVE_FINITE 1
7989 cat >> confdefs.h <<\EOF
7990 #define HAVE_FREXPF 1
7993 cat >> confdefs.h <<\EOF
7994 #define HAVE_HYPOT 1
7997 cat >> confdefs.h <<\EOF
7998 #define HAVE_HYPOTF 1
8001 cat >> confdefs.h <<\EOF
8002 #define HAVE_ISINF 1
8005 cat >> confdefs.h <<\EOF
8006 #define HAVE_ISNAN 1
8009 cat >> confdefs.h <<\EOF
8010 #define HAVE_ISNANF 1
8013 if test x"long_double_math_on_this_cpu" = x"yes"; then
8014 cat >> confdefs.h <<\EOF
8015 #define HAVE_FINITEL 1
8018 cat >> confdefs.h <<\EOF
8019 #define HAVE_ISINFL 1
8022 cat >> confdefs.h <<\EOF
8023 #define HAVE_ISNANL 1
8028 *-mingw32*)
8029 for ac_hdr in sys/types.h locale.h float.h
8031 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8033 echo "configure:8034: checking for $ac_hdr" >&5
8034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8035 echo $ac_n "(cached) $ac_c" 1>&6
8036 else
8037 cat > conftest.$ac_ext <<EOF
8038 #line 8039 "configure"
8039 #include "confdefs.h"
8040 #include <$ac_hdr>
8042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8043 { (eval echo configure:8044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8045 if test -z "$ac_err"; then
8046 rm -rf conftest*
8047 eval "ac_cv_header_$ac_safe=yes"
8048 else
8049 echo "$ac_err" >&5
8050 echo "configure: failed program was:" >&5
8051 cat conftest.$ac_ext >&5
8052 rm -rf conftest*
8053 eval "ac_cv_header_$ac_safe=no"
8055 rm -f conftest*
8057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8058 echo "$ac_t""yes" 1>&6
8059 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8060 cat >> confdefs.h <<EOF
8061 #define $ac_tr_hdr 1
8064 else
8065 echo "$ac_t""no" 1>&6
8067 done
8070 # If we're not using GNU ld, then there's no point in even trying these
8071 # tests. Check for that first. We should have already tested for gld
8072 # by now (in libtool), but require it now just to be safe...
8073 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8074 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8077 # The name set by libtool depends on the version of libtool. Shame on us
8078 # for depending on an impl detail, but c'est la vie. Older versions used
8079 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8080 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8081 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8082 # set (hence we're using an older libtool), then set it.
8083 if test x${with_gnu_ld+set} != xset; then
8084 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8085 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8086 with_gnu_ld=no
8087 else
8088 with_gnu_ld=$ac_cv_prog_gnu_ld
8092 # Start by getting the version number. I think the libtool test already
8093 # does some of this, but throws away the result.
8095 ldver=`$LD --version 2>/dev/null | head -1 | \
8096 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8098 glibcpp_gnu_ld_version=`echo $ldver | \
8099 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8101 # Set --gc-sections.
8102 if test "$with_gnu_ld" = "notbroken"; then
8103 # GNU ld it is! Joy and bunny rabbits!
8105 # All these tests are for C++; save the language and the compiler flags.
8106 # Need to do this so that g++ won't try to link in libstdc++
8107 ac_test_CFLAGS="${CFLAGS+set}"
8108 ac_save_CFLAGS="$CFLAGS"
8109 CFLAGS='-x c++ -Wl,--gc-sections'
8111 # Check for -Wl,--gc-sections
8112 # XXX This test is broken at the moment, as symbols required for
8113 # linking are now in libsupc++ (not built yet.....). In addition,
8114 # this test has cored on solaris in the past. In addition,
8115 # --gc-sections doesn't really work at the moment (keeps on discarding
8116 # used sections, first .eh_frame and now some of the glibc sections for
8117 # iconv). Bzzzzt. Thanks for playing, maybe next time.
8118 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8119 echo "configure:8120: checking for ld that supports -Wl,--gc-sections" >&5
8120 if test "$cross_compiling" = yes; then
8121 ac_sectionLDflags=yes
8122 else
8123 cat > conftest.$ac_ext <<EOF
8124 #line 8125 "configure"
8125 #include "confdefs.h"
8127 int main(void)
8129 try { throw 1; }
8130 catch (...) { };
8131 return 0;
8135 if { (eval echo configure:8136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8136 then
8137 ac_sectionLDflags=yes
8138 else
8139 echo "configure: failed program was:" >&5
8140 cat conftest.$ac_ext >&5
8141 rm -fr conftest*
8142 ac_sectionLDflags=no
8144 rm -fr conftest*
8147 if test "$ac_test_CFLAGS" = set; then
8148 CFLAGS="$ac_save_CFLAGS"
8149 else
8150 # this is the suspicious part
8151 CFLAGS=''
8153 if test "$ac_sectionLDflags" = "yes"; then
8154 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8156 echo "$ac_t""$ac_sectionLDflags" 1>&6
8159 # Set linker optimization flags.
8160 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8161 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8168 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8169 echo "configure:8170: checking for main in -lm" >&5
8170 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8172 echo $ac_n "(cached) $ac_c" 1>&6
8173 else
8174 ac_save_LIBS="$LIBS"
8175 LIBS="-lm $LIBS"
8176 cat > conftest.$ac_ext <<EOF
8177 #line 8178 "configure"
8178 #include "confdefs.h"
8180 int main() {
8181 main()
8182 ; return 0; }
8184 if { (eval echo configure:8185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8185 rm -rf conftest*
8186 eval "ac_cv_lib_$ac_lib_var=yes"
8187 else
8188 echo "configure: failed program was:" >&5
8189 cat conftest.$ac_ext >&5
8190 rm -rf conftest*
8191 eval "ac_cv_lib_$ac_lib_var=no"
8193 rm -f conftest*
8194 LIBS="$ac_save_LIBS"
8197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8198 echo "$ac_t""yes" 1>&6
8199 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8200 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8201 cat >> confdefs.h <<EOF
8202 #define $ac_tr_lib 1
8205 LIBS="-lm $LIBS"
8207 else
8208 echo "$ac_t""no" 1>&6
8211 for ac_func in nan copysignf
8213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8214 echo "configure:8215: checking for $ac_func" >&5
8215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8216 echo $ac_n "(cached) $ac_c" 1>&6
8217 else
8218 cat > conftest.$ac_ext <<EOF
8219 #line 8220 "configure"
8220 #include "confdefs.h"
8221 /* System header to define __stub macros and hopefully few prototypes,
8222 which can conflict with char $ac_func(); below. */
8223 #include <assert.h>
8224 /* Override any gcc2 internal prototype to avoid an error. */
8225 /* We use char because int might match the return type of a gcc2
8226 builtin and then its argument prototype would still apply. */
8227 char $ac_func();
8229 int main() {
8231 /* The GNU C library defines this for functions which it implements
8232 to always fail with ENOSYS. Some functions are actually named
8233 something starting with __ and the normal name is an alias. */
8234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8235 choke me
8236 #else
8237 $ac_func();
8238 #endif
8240 ; return 0; }
8242 if { (eval echo configure:8243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8243 rm -rf conftest*
8244 eval "ac_cv_func_$ac_func=yes"
8245 else
8246 echo "configure: failed program was:" >&5
8247 cat conftest.$ac_ext >&5
8248 rm -rf conftest*
8249 eval "ac_cv_func_$ac_func=no"
8251 rm -f conftest*
8254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8255 echo "$ac_t""yes" 1>&6
8256 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8257 cat >> confdefs.h <<EOF
8258 #define $ac_tr_func 1
8261 else
8262 echo "$ac_t""no" 1>&6
8263 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8265 done
8268 for ac_func in __signbit
8270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8271 echo "configure:8272: checking for $ac_func" >&5
8272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8273 echo $ac_n "(cached) $ac_c" 1>&6
8274 else
8275 cat > conftest.$ac_ext <<EOF
8276 #line 8277 "configure"
8277 #include "confdefs.h"
8278 /* System header to define __stub macros and hopefully few prototypes,
8279 which can conflict with char $ac_func(); below. */
8280 #include <assert.h>
8281 /* Override any gcc2 internal prototype to avoid an error. */
8282 /* We use char because int might match the return type of a gcc2
8283 builtin and then its argument prototype would still apply. */
8284 char $ac_func();
8286 int main() {
8288 /* The GNU C library defines this for functions which it implements
8289 to always fail with ENOSYS. Some functions are actually named
8290 something starting with __ and the normal name is an alias. */
8291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8292 choke me
8293 #else
8294 $ac_func();
8295 #endif
8297 ; return 0; }
8299 if { (eval echo configure:8300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8300 rm -rf conftest*
8301 eval "ac_cv_func_$ac_func=yes"
8302 else
8303 echo "configure: failed program was:" >&5
8304 cat conftest.$ac_ext >&5
8305 rm -rf conftest*
8306 eval "ac_cv_func_$ac_func=no"
8308 rm -f conftest*
8311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8312 echo "$ac_t""yes" 1>&6
8313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8314 cat >> confdefs.h <<EOF
8315 #define $ac_tr_func 1
8318 else
8319 echo "$ac_t""no" 1>&6
8320 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8322 done
8324 for ac_func in __signbitf
8326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8327 echo "configure:8328: checking for $ac_func" >&5
8328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8329 echo $ac_n "(cached) $ac_c" 1>&6
8330 else
8331 cat > conftest.$ac_ext <<EOF
8332 #line 8333 "configure"
8333 #include "confdefs.h"
8334 /* System header to define __stub macros and hopefully few prototypes,
8335 which can conflict with char $ac_func(); below. */
8336 #include <assert.h>
8337 /* Override any gcc2 internal prototype to avoid an error. */
8338 /* We use char because int might match the return type of a gcc2
8339 builtin and then its argument prototype would still apply. */
8340 char $ac_func();
8342 int main() {
8344 /* The GNU C library defines this for functions which it implements
8345 to always fail with ENOSYS. Some functions are actually named
8346 something starting with __ and the normal name is an alias. */
8347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8348 choke me
8349 #else
8350 $ac_func();
8351 #endif
8353 ; return 0; }
8355 if { (eval echo configure:8356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8356 rm -rf conftest*
8357 eval "ac_cv_func_$ac_func=yes"
8358 else
8359 echo "configure: failed program was:" >&5
8360 cat conftest.$ac_ext >&5
8361 rm -rf conftest*
8362 eval "ac_cv_func_$ac_func=no"
8364 rm -f conftest*
8367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8368 echo "$ac_t""yes" 1>&6
8369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8370 cat >> confdefs.h <<EOF
8371 #define $ac_tr_func 1
8374 else
8375 echo "$ac_t""no" 1>&6
8376 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8378 done
8381 if test x$ac_cv_func_copysignl = x"yes"; then
8382 for ac_func in __signbitl
8384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8385 echo "configure:8386: checking for $ac_func" >&5
8386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8387 echo $ac_n "(cached) $ac_c" 1>&6
8388 else
8389 cat > conftest.$ac_ext <<EOF
8390 #line 8391 "configure"
8391 #include "confdefs.h"
8392 /* System header to define __stub macros and hopefully few prototypes,
8393 which can conflict with char $ac_func(); below. */
8394 #include <assert.h>
8395 /* Override any gcc2 internal prototype to avoid an error. */
8396 /* We use char because int might match the return type of a gcc2
8397 builtin and then its argument prototype would still apply. */
8398 char $ac_func();
8400 int main() {
8402 /* The GNU C library defines this for functions which it implements
8403 to always fail with ENOSYS. Some functions are actually named
8404 something starting with __ and the normal name is an alias. */
8405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8406 choke me
8407 #else
8408 $ac_func();
8409 #endif
8411 ; return 0; }
8413 if { (eval echo configure:8414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8414 rm -rf conftest*
8415 eval "ac_cv_func_$ac_func=yes"
8416 else
8417 echo "configure: failed program was:" >&5
8418 cat conftest.$ac_ext >&5
8419 rm -rf conftest*
8420 eval "ac_cv_func_$ac_func=no"
8422 rm -f conftest*
8425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8426 echo "$ac_t""yes" 1>&6
8427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8428 cat >> confdefs.h <<EOF
8429 #define $ac_tr_func 1
8432 else
8433 echo "$ac_t""no" 1>&6
8434 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8436 done
8444 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8445 echo "configure:8446: checking for mbstate_t" >&5
8446 cat > conftest.$ac_ext <<EOF
8447 #line 8448 "configure"
8448 #include "confdefs.h"
8449 #include <wchar.h>
8450 int main() {
8451 mbstate_t teststate;
8452 ; return 0; }
8454 if { (eval echo configure:8455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8455 rm -rf conftest*
8456 have_mbstate_t=yes
8457 else
8458 echo "configure: failed program was:" >&5
8459 cat conftest.$ac_ext >&5
8460 rm -rf conftest*
8461 have_mbstate_t=no
8463 rm -f conftest*
8464 echo "$ac_t""$have_mbstate_t" 1>&6
8465 if test x"$have_mbstate_t" = xyes; then
8466 cat >> confdefs.h <<\EOF
8467 #define HAVE_MBSTATE_T 1
8472 for ac_hdr in wchar.h
8474 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8475 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8476 echo "configure:8477: checking for $ac_hdr" >&5
8477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8478 echo $ac_n "(cached) $ac_c" 1>&6
8479 else
8480 cat > conftest.$ac_ext <<EOF
8481 #line 8482 "configure"
8482 #include "confdefs.h"
8483 #include <$ac_hdr>
8485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8486 { (eval echo configure:8487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8488 if test -z "$ac_err"; then
8489 rm -rf conftest*
8490 eval "ac_cv_header_$ac_safe=yes"
8491 else
8492 echo "$ac_err" >&5
8493 echo "configure: failed program was:" >&5
8494 cat conftest.$ac_ext >&5
8495 rm -rf conftest*
8496 eval "ac_cv_header_$ac_safe=no"
8498 rm -f conftest*
8500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8501 echo "$ac_t""yes" 1>&6
8502 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8503 cat >> confdefs.h <<EOF
8504 #define $ac_tr_hdr 1
8506 ac_has_wchar_h=yes
8507 else
8508 echo "$ac_t""no" 1>&6
8509 ac_has_wchar_h=no
8511 done
8513 for ac_hdr in wctype.h
8515 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8516 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8517 echo "configure:8518: checking for $ac_hdr" >&5
8518 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8519 echo $ac_n "(cached) $ac_c" 1>&6
8520 else
8521 cat > conftest.$ac_ext <<EOF
8522 #line 8523 "configure"
8523 #include "confdefs.h"
8524 #include <$ac_hdr>
8526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8527 { (eval echo configure:8528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8529 if test -z "$ac_err"; then
8530 rm -rf conftest*
8531 eval "ac_cv_header_$ac_safe=yes"
8532 else
8533 echo "$ac_err" >&5
8534 echo "configure: failed program was:" >&5
8535 cat conftest.$ac_ext >&5
8536 rm -rf conftest*
8537 eval "ac_cv_header_$ac_safe=no"
8539 rm -f conftest*
8541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8542 echo "$ac_t""yes" 1>&6
8543 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8544 cat >> confdefs.h <<EOF
8545 #define $ac_tr_hdr 1
8547 ac_has_wctype_h=yes
8548 else
8549 echo "$ac_t""no" 1>&6
8550 ac_has_wctype_h=no
8552 done
8555 if test x"$ac_has_wchar_h" = xyes &&
8556 test x"$ac_has_wctype_h" = xyes &&
8557 test x"$enable_c_mbchar" != xno; then
8559 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8560 echo "configure:8561: checking for WCHAR_MIN and WCHAR_MAX" >&5
8561 cat > conftest.$ac_ext <<EOF
8562 #line 8563 "configure"
8563 #include "confdefs.h"
8564 #include <wchar.h>
8565 int main() {
8566 int i = WCHAR_MIN; int j = WCHAR_MAX;
8567 ; return 0; }
8569 if { (eval echo configure:8570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8570 rm -rf conftest*
8571 has_wchar_minmax=yes
8572 else
8573 echo "configure: failed program was:" >&5
8574 cat conftest.$ac_ext >&5
8575 rm -rf conftest*
8576 has_wchar_minmax=no
8578 rm -f conftest*
8579 echo "$ac_t""$has_wchar_minmax" 1>&6
8581 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8582 echo "configure:8583: checking for WEOF" >&5
8583 cat > conftest.$ac_ext <<EOF
8584 #line 8585 "configure"
8585 #include "confdefs.h"
8587 #include <wchar.h>
8588 #include <stddef.h>
8589 int main() {
8590 wint_t i = WEOF;
8591 ; return 0; }
8593 if { (eval echo configure:8594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8594 rm -rf conftest*
8595 has_weof=yes
8596 else
8597 echo "configure: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8599 rm -rf conftest*
8600 has_weof=no
8602 rm -f conftest*
8603 echo "$ac_t""$has_weof" 1>&6
8605 ac_wfuncs=yes
8606 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8609 echo "configure:8610: checking for $ac_func" >&5
8610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8611 echo $ac_n "(cached) $ac_c" 1>&6
8612 else
8613 cat > conftest.$ac_ext <<EOF
8614 #line 8615 "configure"
8615 #include "confdefs.h"
8616 /* System header to define __stub macros and hopefully few prototypes,
8617 which can conflict with char $ac_func(); below. */
8618 #include <assert.h>
8619 /* Override any gcc2 internal prototype to avoid an error. */
8620 /* We use char because int might match the return type of a gcc2
8621 builtin and then its argument prototype would still apply. */
8622 char $ac_func();
8624 int main() {
8626 /* The GNU C library defines this for functions which it implements
8627 to always fail with ENOSYS. Some functions are actually named
8628 something starting with __ and the normal name is an alias. */
8629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8630 choke me
8631 #else
8632 $ac_func();
8633 #endif
8635 ; return 0; }
8637 if { (eval echo configure:8638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8638 rm -rf conftest*
8639 eval "ac_cv_func_$ac_func=yes"
8640 else
8641 echo "configure: failed program was:" >&5
8642 cat conftest.$ac_ext >&5
8643 rm -rf conftest*
8644 eval "ac_cv_func_$ac_func=no"
8646 rm -f conftest*
8649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8650 echo "$ac_t""yes" 1>&6
8651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8652 cat >> confdefs.h <<EOF
8653 #define $ac_tr_func 1
8656 else
8657 echo "$ac_t""no" 1>&6
8659 ac_wfuncs=no
8661 done
8664 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8665 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8666 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8667 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8668 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8669 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8672 echo "configure:8673: checking for $ac_func" >&5
8673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8674 echo $ac_n "(cached) $ac_c" 1>&6
8675 else
8676 cat > conftest.$ac_ext <<EOF
8677 #line 8678 "configure"
8678 #include "confdefs.h"
8679 /* System header to define __stub macros and hopefully few prototypes,
8680 which can conflict with char $ac_func(); below. */
8681 #include <assert.h>
8682 /* Override any gcc2 internal prototype to avoid an error. */
8683 /* We use char because int might match the return type of a gcc2
8684 builtin and then its argument prototype would still apply. */
8685 char $ac_func();
8687 int main() {
8689 /* The GNU C library defines this for functions which it implements
8690 to always fail with ENOSYS. Some functions are actually named
8691 something starting with __ and the normal name is an alias. */
8692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8693 choke me
8694 #else
8695 $ac_func();
8696 #endif
8698 ; return 0; }
8700 if { (eval echo configure:8701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8701 rm -rf conftest*
8702 eval "ac_cv_func_$ac_func=yes"
8703 else
8704 echo "configure: failed program was:" >&5
8705 cat conftest.$ac_ext >&5
8706 rm -rf conftest*
8707 eval "ac_cv_func_$ac_func=no"
8709 rm -f conftest*
8712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8713 echo "$ac_t""yes" 1>&6
8714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8715 cat >> confdefs.h <<EOF
8716 #define $ac_tr_func 1
8719 else
8720 echo "$ac_t""no" 1>&6
8722 ac_wfuncs=no
8724 done
8727 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8728 echo "configure:8729: checking for ISO C99 wchar_t support" >&5
8729 if test x"$has_weof" = xyes &&
8730 test x"$has_wchar_minmax" = xyes &&
8731 test x"$ac_wfuncs" = xyes; then
8732 ac_isoC99_wchar_t=yes
8733 else
8734 ac_isoC99_wchar_t=no
8736 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8738 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8739 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8740 echo "configure:8741: checking for iconv.h" >&5
8741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8742 echo $ac_n "(cached) $ac_c" 1>&6
8743 else
8744 cat > conftest.$ac_ext <<EOF
8745 #line 8746 "configure"
8746 #include "confdefs.h"
8747 #include <iconv.h>
8749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8750 { (eval echo configure:8751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8752 if test -z "$ac_err"; then
8753 rm -rf conftest*
8754 eval "ac_cv_header_$ac_safe=yes"
8755 else
8756 echo "$ac_err" >&5
8757 echo "configure: failed program was:" >&5
8758 cat conftest.$ac_ext >&5
8759 rm -rf conftest*
8760 eval "ac_cv_header_$ac_safe=no"
8762 rm -f conftest*
8764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8765 echo "$ac_t""yes" 1>&6
8766 ac_has_iconv_h=yes
8767 else
8768 echo "$ac_t""no" 1>&6
8769 ac_has_iconv_h=no
8772 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8773 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8774 echo "configure:8775: checking for langinfo.h" >&5
8775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8776 echo $ac_n "(cached) $ac_c" 1>&6
8777 else
8778 cat > conftest.$ac_ext <<EOF
8779 #line 8780 "configure"
8780 #include "confdefs.h"
8781 #include <langinfo.h>
8783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8784 { (eval echo configure:8785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8786 if test -z "$ac_err"; then
8787 rm -rf conftest*
8788 eval "ac_cv_header_$ac_safe=yes"
8789 else
8790 echo "$ac_err" >&5
8791 echo "configure: failed program was:" >&5
8792 cat conftest.$ac_ext >&5
8793 rm -rf conftest*
8794 eval "ac_cv_header_$ac_safe=no"
8796 rm -f conftest*
8798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8799 echo "$ac_t""yes" 1>&6
8800 ac_has_langinfo_h=yes
8801 else
8802 echo "$ac_t""no" 1>&6
8803 ac_has_langinfo_h=no
8807 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8808 echo "configure:8809: checking for iconv in -liconv" >&5
8809 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8810 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8811 echo $ac_n "(cached) $ac_c" 1>&6
8812 else
8813 ac_save_LIBS="$LIBS"
8814 LIBS="-liconv $LIBS"
8815 cat > conftest.$ac_ext <<EOF
8816 #line 8817 "configure"
8817 #include "confdefs.h"
8818 /* Override any gcc2 internal prototype to avoid an error. */
8819 /* We use char because int might match the return type of a gcc2
8820 builtin and then its argument prototype would still apply. */
8821 char iconv();
8823 int main() {
8824 iconv()
8825 ; return 0; }
8827 if { (eval echo configure:8828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8828 rm -rf conftest*
8829 eval "ac_cv_lib_$ac_lib_var=yes"
8830 else
8831 echo "configure: failed program was:" >&5
8832 cat conftest.$ac_ext >&5
8833 rm -rf conftest*
8834 eval "ac_cv_lib_$ac_lib_var=no"
8836 rm -f conftest*
8837 LIBS="$ac_save_LIBS"
8840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8841 echo "$ac_t""yes" 1>&6
8842 libiconv="-liconv"
8843 else
8844 echo "$ac_t""no" 1>&6
8847 ac_save_LIBS="$LIBS"
8848 LIBS="$LIBS $libiconv"
8850 for ac_func in iconv_open iconv_close iconv nl_langinfo
8852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8853 echo "configure:8854: checking for $ac_func" >&5
8854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8855 echo $ac_n "(cached) $ac_c" 1>&6
8856 else
8857 cat > conftest.$ac_ext <<EOF
8858 #line 8859 "configure"
8859 #include "confdefs.h"
8860 /* System header to define __stub macros and hopefully few prototypes,
8861 which can conflict with char $ac_func(); below. */
8862 #include <assert.h>
8863 /* Override any gcc2 internal prototype to avoid an error. */
8864 /* We use char because int might match the return type of a gcc2
8865 builtin and then its argument prototype would still apply. */
8866 char $ac_func();
8868 int main() {
8870 /* The GNU C library defines this for functions which it implements
8871 to always fail with ENOSYS. Some functions are actually named
8872 something starting with __ and the normal name is an alias. */
8873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8874 choke me
8875 #else
8876 $ac_func();
8877 #endif
8879 ; return 0; }
8881 if { (eval echo configure:8882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8882 rm -rf conftest*
8883 eval "ac_cv_func_$ac_func=yes"
8884 else
8885 echo "configure: failed program was:" >&5
8886 cat conftest.$ac_ext >&5
8887 rm -rf conftest*
8888 eval "ac_cv_func_$ac_func=no"
8890 rm -f conftest*
8893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8894 echo "$ac_t""yes" 1>&6
8895 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8896 cat >> confdefs.h <<EOF
8897 #define $ac_tr_func 1
8900 ac_XPG2funcs=yes
8901 else
8902 echo "$ac_t""no" 1>&6
8903 ac_XPG2funcs=no
8905 done
8908 LIBS="$ac_save_LIBS"
8910 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8911 echo "configure:8912: checking for XPG2 wchar_t support" >&5
8912 if test x"$ac_has_iconv_h" = xyes &&
8913 test x"$ac_has_langinfo_h" = xyes &&
8914 test x"$ac_XPG2funcs" = xyes; then
8915 ac_XPG2_wchar_t=yes
8916 else
8917 ac_XPG2_wchar_t=no
8919 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8921 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8922 echo "configure:8923: checking for enabled wchar_t specializations" >&5
8923 if test x"$ac_isoC99_wchar_t" = xyes &&
8924 test x"$ac_XPG2_wchar_t" = xyes; then
8925 cat >> confdefs.h <<\EOF
8926 #define _GLIBCPP_USE_WCHAR_T 1
8929 echo "$ac_t"""yes"" 1>&6
8930 else
8931 echo "$ac_t"""no"" 1>&6
8933 else
8934 echo "configure: warning: wchar_t support disabled." 1>&2
8937 os_include_dir="os/mingw32"
8939 *-windiss*)
8940 os_include_dir="os/windiss"
8942 *-qnx6.[12]*)
8943 SECTION_FLAGS='-ffunction-sections -fdata-sections'
8946 # If we're not using GNU ld, then there's no point in even trying these
8947 # tests. Check for that first. We should have already tested for gld
8948 # by now (in libtool), but require it now just to be safe...
8949 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8950 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8953 # The name set by libtool depends on the version of libtool. Shame on us
8954 # for depending on an impl detail, but c'est la vie. Older versions used
8955 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8956 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8957 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8958 # set (hence we're using an older libtool), then set it.
8959 if test x${with_gnu_ld+set} != xset; then
8960 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8961 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8962 with_gnu_ld=no
8963 else
8964 with_gnu_ld=$ac_cv_prog_gnu_ld
8968 # Start by getting the version number. I think the libtool test already
8969 # does some of this, but throws away the result.
8971 ldver=`$LD --version 2>/dev/null | head -1 | \
8972 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8974 glibcpp_gnu_ld_version=`echo $ldver | \
8975 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8977 # Set --gc-sections.
8978 if test "$with_gnu_ld" = "notbroken"; then
8979 # GNU ld it is! Joy and bunny rabbits!
8981 # All these tests are for C++; save the language and the compiler flags.
8982 # Need to do this so that g++ won't try to link in libstdc++
8983 ac_test_CFLAGS="${CFLAGS+set}"
8984 ac_save_CFLAGS="$CFLAGS"
8985 CFLAGS='-x c++ -Wl,--gc-sections'
8987 # Check for -Wl,--gc-sections
8988 # XXX This test is broken at the moment, as symbols required for
8989 # linking are now in libsupc++ (not built yet.....). In addition,
8990 # this test has cored on solaris in the past. In addition,
8991 # --gc-sections doesn't really work at the moment (keeps on discarding
8992 # used sections, first .eh_frame and now some of the glibc sections for
8993 # iconv). Bzzzzt. Thanks for playing, maybe next time.
8994 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8995 echo "configure:8996: checking for ld that supports -Wl,--gc-sections" >&5
8996 if test "$cross_compiling" = yes; then
8997 ac_sectionLDflags=yes
8998 else
8999 cat > conftest.$ac_ext <<EOF
9000 #line 9001 "configure"
9001 #include "confdefs.h"
9003 int main(void)
9005 try { throw 1; }
9006 catch (...) { };
9007 return 0;
9011 if { (eval echo configure:9012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9012 then
9013 ac_sectionLDflags=yes
9014 else
9015 echo "configure: failed program was:" >&5
9016 cat conftest.$ac_ext >&5
9017 rm -fr conftest*
9018 ac_sectionLDflags=no
9020 rm -fr conftest*
9023 if test "$ac_test_CFLAGS" = set; then
9024 CFLAGS="$ac_save_CFLAGS"
9025 else
9026 # this is the suspicious part
9027 CFLAGS=''
9029 if test "$ac_sectionLDflags" = "yes"; then
9030 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9032 echo "$ac_t""$ac_sectionLDflags" 1>&6
9035 # Set linker optimization flags.
9036 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9037 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9044 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9045 echo "configure:9046: checking for main in -lm" >&5
9046 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9048 echo $ac_n "(cached) $ac_c" 1>&6
9049 else
9050 ac_save_LIBS="$LIBS"
9051 LIBS="-lm $LIBS"
9052 cat > conftest.$ac_ext <<EOF
9053 #line 9054 "configure"
9054 #include "confdefs.h"
9056 int main() {
9057 main()
9058 ; return 0; }
9060 if { (eval echo configure:9061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9061 rm -rf conftest*
9062 eval "ac_cv_lib_$ac_lib_var=yes"
9063 else
9064 echo "configure: failed program was:" >&5
9065 cat conftest.$ac_ext >&5
9066 rm -rf conftest*
9067 eval "ac_cv_lib_$ac_lib_var=no"
9069 rm -f conftest*
9070 LIBS="$ac_save_LIBS"
9073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9074 echo "$ac_t""yes" 1>&6
9075 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9076 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9077 cat >> confdefs.h <<EOF
9078 #define $ac_tr_lib 1
9081 LIBS="-lm $LIBS"
9083 else
9084 echo "$ac_t""no" 1>&6
9087 for ac_func in nan copysignf
9089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9090 echo "configure:9091: checking for $ac_func" >&5
9091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9093 else
9094 cat > conftest.$ac_ext <<EOF
9095 #line 9096 "configure"
9096 #include "confdefs.h"
9097 /* System header to define __stub macros and hopefully few prototypes,
9098 which can conflict with char $ac_func(); below. */
9099 #include <assert.h>
9100 /* Override any gcc2 internal prototype to avoid an error. */
9101 /* We use char because int might match the return type of a gcc2
9102 builtin and then its argument prototype would still apply. */
9103 char $ac_func();
9105 int main() {
9107 /* The GNU C library defines this for functions which it implements
9108 to always fail with ENOSYS. Some functions are actually named
9109 something starting with __ and the normal name is an alias. */
9110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9111 choke me
9112 #else
9113 $ac_func();
9114 #endif
9116 ; return 0; }
9118 if { (eval echo configure:9119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9119 rm -rf conftest*
9120 eval "ac_cv_func_$ac_func=yes"
9121 else
9122 echo "configure: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9124 rm -rf conftest*
9125 eval "ac_cv_func_$ac_func=no"
9127 rm -f conftest*
9130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9131 echo "$ac_t""yes" 1>&6
9132 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9133 cat >> confdefs.h <<EOF
9134 #define $ac_tr_func 1
9137 else
9138 echo "$ac_t""no" 1>&6
9139 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9141 done
9144 for ac_func in __signbit
9146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9147 echo "configure:9148: checking for $ac_func" >&5
9148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9149 echo $ac_n "(cached) $ac_c" 1>&6
9150 else
9151 cat > conftest.$ac_ext <<EOF
9152 #line 9153 "configure"
9153 #include "confdefs.h"
9154 /* System header to define __stub macros and hopefully few prototypes,
9155 which can conflict with char $ac_func(); below. */
9156 #include <assert.h>
9157 /* Override any gcc2 internal prototype to avoid an error. */
9158 /* We use char because int might match the return type of a gcc2
9159 builtin and then its argument prototype would still apply. */
9160 char $ac_func();
9162 int main() {
9164 /* The GNU C library defines this for functions which it implements
9165 to always fail with ENOSYS. Some functions are actually named
9166 something starting with __ and the normal name is an alias. */
9167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9168 choke me
9169 #else
9170 $ac_func();
9171 #endif
9173 ; return 0; }
9175 if { (eval echo configure:9176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9176 rm -rf conftest*
9177 eval "ac_cv_func_$ac_func=yes"
9178 else
9179 echo "configure: failed program was:" >&5
9180 cat conftest.$ac_ext >&5
9181 rm -rf conftest*
9182 eval "ac_cv_func_$ac_func=no"
9184 rm -f conftest*
9187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9188 echo "$ac_t""yes" 1>&6
9189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9190 cat >> confdefs.h <<EOF
9191 #define $ac_tr_func 1
9194 else
9195 echo "$ac_t""no" 1>&6
9196 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9198 done
9200 for ac_func in __signbitf
9202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9203 echo "configure:9204: checking for $ac_func" >&5
9204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9205 echo $ac_n "(cached) $ac_c" 1>&6
9206 else
9207 cat > conftest.$ac_ext <<EOF
9208 #line 9209 "configure"
9209 #include "confdefs.h"
9210 /* System header to define __stub macros and hopefully few prototypes,
9211 which can conflict with char $ac_func(); below. */
9212 #include <assert.h>
9213 /* Override any gcc2 internal prototype to avoid an error. */
9214 /* We use char because int might match the return type of a gcc2
9215 builtin and then its argument prototype would still apply. */
9216 char $ac_func();
9218 int main() {
9220 /* The GNU C library defines this for functions which it implements
9221 to always fail with ENOSYS. Some functions are actually named
9222 something starting with __ and the normal name is an alias. */
9223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9224 choke me
9225 #else
9226 $ac_func();
9227 #endif
9229 ; return 0; }
9231 if { (eval echo configure:9232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9232 rm -rf conftest*
9233 eval "ac_cv_func_$ac_func=yes"
9234 else
9235 echo "configure: failed program was:" >&5
9236 cat conftest.$ac_ext >&5
9237 rm -rf conftest*
9238 eval "ac_cv_func_$ac_func=no"
9240 rm -f conftest*
9243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9244 echo "$ac_t""yes" 1>&6
9245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9246 cat >> confdefs.h <<EOF
9247 #define $ac_tr_func 1
9250 else
9251 echo "$ac_t""no" 1>&6
9252 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9254 done
9257 if test x$ac_cv_func_copysignl = x"yes"; then
9258 for ac_func in __signbitl
9260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9261 echo "configure:9262: checking for $ac_func" >&5
9262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9263 echo $ac_n "(cached) $ac_c" 1>&6
9264 else
9265 cat > conftest.$ac_ext <<EOF
9266 #line 9267 "configure"
9267 #include "confdefs.h"
9268 /* System header to define __stub macros and hopefully few prototypes,
9269 which can conflict with char $ac_func(); below. */
9270 #include <assert.h>
9271 /* Override any gcc2 internal prototype to avoid an error. */
9272 /* We use char because int might match the return type of a gcc2
9273 builtin and then its argument prototype would still apply. */
9274 char $ac_func();
9276 int main() {
9278 /* The GNU C library defines this for functions which it implements
9279 to always fail with ENOSYS. Some functions are actually named
9280 something starting with __ and the normal name is an alias. */
9281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9282 choke me
9283 #else
9284 $ac_func();
9285 #endif
9287 ; return 0; }
9289 if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9290 rm -rf conftest*
9291 eval "ac_cv_func_$ac_func=yes"
9292 else
9293 echo "configure: failed program was:" >&5
9294 cat conftest.$ac_ext >&5
9295 rm -rf conftest*
9296 eval "ac_cv_func_$ac_func=no"
9298 rm -f conftest*
9301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9302 echo "$ac_t""yes" 1>&6
9303 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9304 cat >> confdefs.h <<EOF
9305 #define $ac_tr_func 1
9308 else
9309 echo "$ac_t""no" 1>&6
9310 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9312 done
9320 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9321 echo "configure:9322: checking for mbstate_t" >&5
9322 cat > conftest.$ac_ext <<EOF
9323 #line 9324 "configure"
9324 #include "confdefs.h"
9325 #include <wchar.h>
9326 int main() {
9327 mbstate_t teststate;
9328 ; return 0; }
9330 if { (eval echo configure:9331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9331 rm -rf conftest*
9332 have_mbstate_t=yes
9333 else
9334 echo "configure: failed program was:" >&5
9335 cat conftest.$ac_ext >&5
9336 rm -rf conftest*
9337 have_mbstate_t=no
9339 rm -f conftest*
9340 echo "$ac_t""$have_mbstate_t" 1>&6
9341 if test x"$have_mbstate_t" = xyes; then
9342 cat >> confdefs.h <<\EOF
9343 #define HAVE_MBSTATE_T 1
9348 for ac_hdr in wchar.h
9350 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9352 echo "configure:9353: checking for $ac_hdr" >&5
9353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9354 echo $ac_n "(cached) $ac_c" 1>&6
9355 else
9356 cat > conftest.$ac_ext <<EOF
9357 #line 9358 "configure"
9358 #include "confdefs.h"
9359 #include <$ac_hdr>
9361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9362 { (eval echo configure:9363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9364 if test -z "$ac_err"; then
9365 rm -rf conftest*
9366 eval "ac_cv_header_$ac_safe=yes"
9367 else
9368 echo "$ac_err" >&5
9369 echo "configure: failed program was:" >&5
9370 cat conftest.$ac_ext >&5
9371 rm -rf conftest*
9372 eval "ac_cv_header_$ac_safe=no"
9374 rm -f conftest*
9376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9377 echo "$ac_t""yes" 1>&6
9378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9379 cat >> confdefs.h <<EOF
9380 #define $ac_tr_hdr 1
9382 ac_has_wchar_h=yes
9383 else
9384 echo "$ac_t""no" 1>&6
9385 ac_has_wchar_h=no
9387 done
9389 for ac_hdr in wctype.h
9391 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9393 echo "configure:9394: checking for $ac_hdr" >&5
9394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9395 echo $ac_n "(cached) $ac_c" 1>&6
9396 else
9397 cat > conftest.$ac_ext <<EOF
9398 #line 9399 "configure"
9399 #include "confdefs.h"
9400 #include <$ac_hdr>
9402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9403 { (eval echo configure:9404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9405 if test -z "$ac_err"; then
9406 rm -rf conftest*
9407 eval "ac_cv_header_$ac_safe=yes"
9408 else
9409 echo "$ac_err" >&5
9410 echo "configure: failed program was:" >&5
9411 cat conftest.$ac_ext >&5
9412 rm -rf conftest*
9413 eval "ac_cv_header_$ac_safe=no"
9415 rm -f conftest*
9417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9418 echo "$ac_t""yes" 1>&6
9419 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9420 cat >> confdefs.h <<EOF
9421 #define $ac_tr_hdr 1
9423 ac_has_wctype_h=yes
9424 else
9425 echo "$ac_t""no" 1>&6
9426 ac_has_wctype_h=no
9428 done
9431 if test x"$ac_has_wchar_h" = xyes &&
9432 test x"$ac_has_wctype_h" = xyes &&
9433 test x"$enable_c_mbchar" != xno; then
9435 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9436 echo "configure:9437: checking for WCHAR_MIN and WCHAR_MAX" >&5
9437 cat > conftest.$ac_ext <<EOF
9438 #line 9439 "configure"
9439 #include "confdefs.h"
9440 #include <wchar.h>
9441 int main() {
9442 int i = WCHAR_MIN; int j = WCHAR_MAX;
9443 ; return 0; }
9445 if { (eval echo configure:9446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9446 rm -rf conftest*
9447 has_wchar_minmax=yes
9448 else
9449 echo "configure: failed program was:" >&5
9450 cat conftest.$ac_ext >&5
9451 rm -rf conftest*
9452 has_wchar_minmax=no
9454 rm -f conftest*
9455 echo "$ac_t""$has_wchar_minmax" 1>&6
9457 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9458 echo "configure:9459: checking for WEOF" >&5
9459 cat > conftest.$ac_ext <<EOF
9460 #line 9461 "configure"
9461 #include "confdefs.h"
9463 #include <wchar.h>
9464 #include <stddef.h>
9465 int main() {
9466 wint_t i = WEOF;
9467 ; return 0; }
9469 if { (eval echo configure:9470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9470 rm -rf conftest*
9471 has_weof=yes
9472 else
9473 echo "configure: failed program was:" >&5
9474 cat conftest.$ac_ext >&5
9475 rm -rf conftest*
9476 has_weof=no
9478 rm -f conftest*
9479 echo "$ac_t""$has_weof" 1>&6
9481 ac_wfuncs=yes
9482 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9485 echo "configure:9486: checking for $ac_func" >&5
9486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9487 echo $ac_n "(cached) $ac_c" 1>&6
9488 else
9489 cat > conftest.$ac_ext <<EOF
9490 #line 9491 "configure"
9491 #include "confdefs.h"
9492 /* System header to define __stub macros and hopefully few prototypes,
9493 which can conflict with char $ac_func(); below. */
9494 #include <assert.h>
9495 /* Override any gcc2 internal prototype to avoid an error. */
9496 /* We use char because int might match the return type of a gcc2
9497 builtin and then its argument prototype would still apply. */
9498 char $ac_func();
9500 int main() {
9502 /* The GNU C library defines this for functions which it implements
9503 to always fail with ENOSYS. Some functions are actually named
9504 something starting with __ and the normal name is an alias. */
9505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9506 choke me
9507 #else
9508 $ac_func();
9509 #endif
9511 ; return 0; }
9513 if { (eval echo configure:9514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9514 rm -rf conftest*
9515 eval "ac_cv_func_$ac_func=yes"
9516 else
9517 echo "configure: failed program was:" >&5
9518 cat conftest.$ac_ext >&5
9519 rm -rf conftest*
9520 eval "ac_cv_func_$ac_func=no"
9522 rm -f conftest*
9525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9526 echo "$ac_t""yes" 1>&6
9527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9528 cat >> confdefs.h <<EOF
9529 #define $ac_tr_func 1
9532 else
9533 echo "$ac_t""no" 1>&6
9535 ac_wfuncs=no
9537 done
9540 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
9541 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9542 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9543 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9544 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9545 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9548 echo "configure:9549: checking for $ac_func" >&5
9549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9550 echo $ac_n "(cached) $ac_c" 1>&6
9551 else
9552 cat > conftest.$ac_ext <<EOF
9553 #line 9554 "configure"
9554 #include "confdefs.h"
9555 /* System header to define __stub macros and hopefully few prototypes,
9556 which can conflict with char $ac_func(); below. */
9557 #include <assert.h>
9558 /* Override any gcc2 internal prototype to avoid an error. */
9559 /* We use char because int might match the return type of a gcc2
9560 builtin and then its argument prototype would still apply. */
9561 char $ac_func();
9563 int main() {
9565 /* The GNU C library defines this for functions which it implements
9566 to always fail with ENOSYS. Some functions are actually named
9567 something starting with __ and the normal name is an alias. */
9568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9569 choke me
9570 #else
9571 $ac_func();
9572 #endif
9574 ; return 0; }
9576 if { (eval echo configure:9577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9577 rm -rf conftest*
9578 eval "ac_cv_func_$ac_func=yes"
9579 else
9580 echo "configure: failed program was:" >&5
9581 cat conftest.$ac_ext >&5
9582 rm -rf conftest*
9583 eval "ac_cv_func_$ac_func=no"
9585 rm -f conftest*
9588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9589 echo "$ac_t""yes" 1>&6
9590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9591 cat >> confdefs.h <<EOF
9592 #define $ac_tr_func 1
9595 else
9596 echo "$ac_t""no" 1>&6
9598 ac_wfuncs=no
9600 done
9603 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9604 echo "configure:9605: checking for ISO C99 wchar_t support" >&5
9605 if test x"$has_weof" = xyes &&
9606 test x"$has_wchar_minmax" = xyes &&
9607 test x"$ac_wfuncs" = xyes; then
9608 ac_isoC99_wchar_t=yes
9609 else
9610 ac_isoC99_wchar_t=no
9612 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9614 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9615 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9616 echo "configure:9617: checking for iconv.h" >&5
9617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9618 echo $ac_n "(cached) $ac_c" 1>&6
9619 else
9620 cat > conftest.$ac_ext <<EOF
9621 #line 9622 "configure"
9622 #include "confdefs.h"
9623 #include <iconv.h>
9625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9626 { (eval echo configure:9627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9628 if test -z "$ac_err"; then
9629 rm -rf conftest*
9630 eval "ac_cv_header_$ac_safe=yes"
9631 else
9632 echo "$ac_err" >&5
9633 echo "configure: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9635 rm -rf conftest*
9636 eval "ac_cv_header_$ac_safe=no"
9638 rm -f conftest*
9640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9641 echo "$ac_t""yes" 1>&6
9642 ac_has_iconv_h=yes
9643 else
9644 echo "$ac_t""no" 1>&6
9645 ac_has_iconv_h=no
9648 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9649 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9650 echo "configure:9651: checking for langinfo.h" >&5
9651 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9652 echo $ac_n "(cached) $ac_c" 1>&6
9653 else
9654 cat > conftest.$ac_ext <<EOF
9655 #line 9656 "configure"
9656 #include "confdefs.h"
9657 #include <langinfo.h>
9659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9660 { (eval echo configure:9661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9662 if test -z "$ac_err"; then
9663 rm -rf conftest*
9664 eval "ac_cv_header_$ac_safe=yes"
9665 else
9666 echo "$ac_err" >&5
9667 echo "configure: failed program was:" >&5
9668 cat conftest.$ac_ext >&5
9669 rm -rf conftest*
9670 eval "ac_cv_header_$ac_safe=no"
9672 rm -f conftest*
9674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9675 echo "$ac_t""yes" 1>&6
9676 ac_has_langinfo_h=yes
9677 else
9678 echo "$ac_t""no" 1>&6
9679 ac_has_langinfo_h=no
9683 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9684 echo "configure:9685: checking for iconv in -liconv" >&5
9685 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9687 echo $ac_n "(cached) $ac_c" 1>&6
9688 else
9689 ac_save_LIBS="$LIBS"
9690 LIBS="-liconv $LIBS"
9691 cat > conftest.$ac_ext <<EOF
9692 #line 9693 "configure"
9693 #include "confdefs.h"
9694 /* Override any gcc2 internal prototype to avoid an error. */
9695 /* We use char because int might match the return type of a gcc2
9696 builtin and then its argument prototype would still apply. */
9697 char iconv();
9699 int main() {
9700 iconv()
9701 ; return 0; }
9703 if { (eval echo configure:9704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9704 rm -rf conftest*
9705 eval "ac_cv_lib_$ac_lib_var=yes"
9706 else
9707 echo "configure: failed program was:" >&5
9708 cat conftest.$ac_ext >&5
9709 rm -rf conftest*
9710 eval "ac_cv_lib_$ac_lib_var=no"
9712 rm -f conftest*
9713 LIBS="$ac_save_LIBS"
9716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9717 echo "$ac_t""yes" 1>&6
9718 libiconv="-liconv"
9719 else
9720 echo "$ac_t""no" 1>&6
9723 ac_save_LIBS="$LIBS"
9724 LIBS="$LIBS $libiconv"
9726 for ac_func in iconv_open iconv_close iconv nl_langinfo
9728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9729 echo "configure:9730: checking for $ac_func" >&5
9730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9731 echo $ac_n "(cached) $ac_c" 1>&6
9732 else
9733 cat > conftest.$ac_ext <<EOF
9734 #line 9735 "configure"
9735 #include "confdefs.h"
9736 /* System header to define __stub macros and hopefully few prototypes,
9737 which can conflict with char $ac_func(); below. */
9738 #include <assert.h>
9739 /* Override any gcc2 internal prototype to avoid an error. */
9740 /* We use char because int might match the return type of a gcc2
9741 builtin and then its argument prototype would still apply. */
9742 char $ac_func();
9744 int main() {
9746 /* The GNU C library defines this for functions which it implements
9747 to always fail with ENOSYS. Some functions are actually named
9748 something starting with __ and the normal name is an alias. */
9749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9750 choke me
9751 #else
9752 $ac_func();
9753 #endif
9755 ; return 0; }
9757 if { (eval echo configure:9758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9758 rm -rf conftest*
9759 eval "ac_cv_func_$ac_func=yes"
9760 else
9761 echo "configure: failed program was:" >&5
9762 cat conftest.$ac_ext >&5
9763 rm -rf conftest*
9764 eval "ac_cv_func_$ac_func=no"
9766 rm -f conftest*
9769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9770 echo "$ac_t""yes" 1>&6
9771 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9772 cat >> confdefs.h <<EOF
9773 #define $ac_tr_func 1
9776 ac_XPG2funcs=yes
9777 else
9778 echo "$ac_t""no" 1>&6
9779 ac_XPG2funcs=no
9781 done
9784 LIBS="$ac_save_LIBS"
9786 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9787 echo "configure:9788: checking for XPG2 wchar_t support" >&5
9788 if test x"$ac_has_iconv_h" = xyes &&
9789 test x"$ac_has_langinfo_h" = xyes &&
9790 test x"$ac_XPG2funcs" = xyes; then
9791 ac_XPG2_wchar_t=yes
9792 else
9793 ac_XPG2_wchar_t=no
9795 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9797 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9798 echo "configure:9799: checking for enabled wchar_t specializations" >&5
9799 if test x"$ac_isoC99_wchar_t" = xyes &&
9800 test x"$ac_XPG2_wchar_t" = xyes; then
9801 cat >> confdefs.h <<\EOF
9802 #define _GLIBCPP_USE_WCHAR_T 1
9805 echo "$ac_t"""yes"" 1>&6
9806 else
9807 echo "$ac_t"""no"" 1>&6
9809 else
9810 echo "configure: warning: wchar_t support disabled." 1>&2
9813 os_include_dir="os/qnx/qnx6.1"
9814 cat >> confdefs.h <<\EOF
9815 #define HAVE_COSF 1
9818 cat >> confdefs.h <<\EOF
9819 #define HAVE_COSL 1
9822 cat >> confdefs.h <<\EOF
9823 #define HAVE_COSHF 1
9826 cat >> confdefs.h <<\EOF
9827 #define HAVE_COSHL 1
9830 cat >> confdefs.h <<\EOF
9831 #define HAVE_LOGF 1
9834 cat >> confdefs.h <<\EOF
9835 #define HAVE_LOGL 1
9838 cat >> confdefs.h <<\EOF
9839 #define HAVE_LOG10F 1
9842 cat >> confdefs.h <<\EOF
9843 #define HAVE_LOG10L 1
9846 cat >> confdefs.h <<\EOF
9847 #define HAVE_SINF 1
9850 cat >> confdefs.h <<\EOF
9851 #define HAVE_SINL 1
9854 cat >> confdefs.h <<\EOF
9855 #define HAVE_SINHF 1
9858 cat >> confdefs.h <<\EOF
9859 #define HAVE_SINHL 1
9864 os_include_dir="os/newlib"
9865 cat >> confdefs.h <<\EOF
9866 #define HAVE_HYPOT 1
9870 esac
9872 case "$target" in
9873 *-mingw32*)
9875 *-windiss*)
9876 cat >> confdefs.h <<\EOF
9877 #define HAVE_ACOSF 1
9880 cat >> confdefs.h <<\EOF
9881 #define HAVE_ASINF 1
9884 cat >> confdefs.h <<\EOF
9885 #define HAVE_ATAN2F 1
9888 cat >> confdefs.h <<\EOF
9889 #define HAVE_ATANF 1
9892 cat >> confdefs.h <<\EOF
9893 #define HAVE_CEILF 1
9896 cat >> confdefs.h <<\EOF
9897 #define HAVE_COPYSIGN 1
9900 cat >> confdefs.h <<\EOF
9901 #define HAVE_COPYSIGNF 1
9904 cat >> confdefs.h <<\EOF
9905 #define HAVE_COSF 1
9908 cat >> confdefs.h <<\EOF
9909 #define HAVE_COSHF 1
9912 cat >> confdefs.h <<\EOF
9913 #define HAVE_EXPF 1
9916 cat >> confdefs.h <<\EOF
9917 #define HAVE_FABSF 1
9920 cat >> confdefs.h <<\EOF
9921 #define HAVE_FLOORF 1
9924 cat >> confdefs.h <<\EOF
9925 #define HAVE_FMODF 1
9928 cat >> confdefs.h <<\EOF
9929 #define HAVE_FREXPF 1
9932 cat >> confdefs.h <<\EOF
9933 #define HAVE_LDEXPF 1
9936 cat >> confdefs.h <<\EOF
9937 #define HAVE_LOG10F 1
9940 cat >> confdefs.h <<\EOF
9941 #define HAVE_LOGF 1
9944 cat >> confdefs.h <<\EOF
9945 #define HAVE_MODFF 1
9948 cat >> confdefs.h <<\EOF
9949 #define HAVE_POWF 1
9952 cat >> confdefs.h <<\EOF
9953 #define HAVE_SINF 1
9956 cat >> confdefs.h <<\EOF
9957 #define HAVE_SINHF 1
9960 cat >> confdefs.h <<\EOF
9961 #define HAVE_SQRTF 1
9964 cat >> confdefs.h <<\EOF
9965 #define HAVE_TANF 1
9968 cat >> confdefs.h <<\EOF
9969 #define HAVE_TANHF 1
9973 *-freebsd*)
9974 # Must replicate generic section since we don't have strtof or strtold.
9975 cat >> confdefs.h <<\EOF
9976 #define HAVE_MMAP 1
9979 cat >> confdefs.h <<\EOF
9980 #define HAVE_ACOSF 1
9983 cat >> confdefs.h <<\EOF
9984 #define HAVE_ASINF 1
9987 cat >> confdefs.h <<\EOF
9988 #define HAVE_ATAN2F 1
9991 cat >> confdefs.h <<\EOF
9992 #define HAVE_ATANF 1
9995 cat >> confdefs.h <<\EOF
9996 #define HAVE_CEILF 1
9999 cat >> confdefs.h <<\EOF
10000 #define HAVE_COPYSIGN 1
10003 cat >> confdefs.h <<\EOF
10004 #define HAVE_COPYSIGNF 1
10007 cat >> confdefs.h <<\EOF
10008 #define HAVE_COSF 1
10011 cat >> confdefs.h <<\EOF
10012 #define HAVE_COSHF 1
10015 cat >> confdefs.h <<\EOF
10016 #define HAVE_EXPF 1
10019 cat >> confdefs.h <<\EOF
10020 #define HAVE_FABSF 1
10023 cat >> confdefs.h <<\EOF
10024 #define HAVE_FLOORF 1
10027 cat >> confdefs.h <<\EOF
10028 #define HAVE_FMODF 1
10031 cat >> confdefs.h <<\EOF
10032 #define HAVE_FREXPF 1
10035 cat >> confdefs.h <<\EOF
10036 #define HAVE_LDEXPF 1
10039 cat >> confdefs.h <<\EOF
10040 #define HAVE_LOG10F 1
10043 cat >> confdefs.h <<\EOF
10044 #define HAVE_LOGF 1
10047 cat >> confdefs.h <<\EOF
10048 #define HAVE_MODFF 1
10051 cat >> confdefs.h <<\EOF
10052 #define HAVE_POWF 1
10055 cat >> confdefs.h <<\EOF
10056 #define HAVE_SINF 1
10059 cat >> confdefs.h <<\EOF
10060 #define HAVE_SINHF 1
10063 cat >> confdefs.h <<\EOF
10064 #define HAVE_SQRTF 1
10067 cat >> confdefs.h <<\EOF
10068 #define HAVE_TANF 1
10071 cat >> confdefs.h <<\EOF
10072 #define HAVE_TANHF 1
10077 # GLIBCPP_CHECK_STDLIB_SUPPORT
10078 cat >> confdefs.h <<\EOF
10079 #define HAVE_STRTOF 1
10082 cat >> confdefs.h <<\EOF
10083 #define HAVE_STRTOLD 1
10086 # AC_FUNC_MMAP
10087 cat >> confdefs.h <<\EOF
10088 #define HAVE_MMAP 1
10092 cat >> confdefs.h <<\EOF
10093 #define HAVE_ACOSF 1
10096 cat >> confdefs.h <<\EOF
10097 #define HAVE_ASINF 1
10100 cat >> confdefs.h <<\EOF
10101 #define HAVE_ATAN2F 1
10104 cat >> confdefs.h <<\EOF
10105 #define HAVE_ATANF 1
10108 cat >> confdefs.h <<\EOF
10109 #define HAVE_CEILF 1
10112 cat >> confdefs.h <<\EOF
10113 #define HAVE_COPYSIGN 1
10116 cat >> confdefs.h <<\EOF
10117 #define HAVE_COPYSIGNF 1
10120 cat >> confdefs.h <<\EOF
10121 #define HAVE_COSF 1
10124 cat >> confdefs.h <<\EOF
10125 #define HAVE_COSHF 1
10128 cat >> confdefs.h <<\EOF
10129 #define HAVE_EXPF 1
10132 cat >> confdefs.h <<\EOF
10133 #define HAVE_FABSF 1
10136 cat >> confdefs.h <<\EOF
10137 #define HAVE_FLOORF 1
10140 cat >> confdefs.h <<\EOF
10141 #define HAVE_FMODF 1
10144 cat >> confdefs.h <<\EOF
10145 #define HAVE_FREXPF 1
10148 cat >> confdefs.h <<\EOF
10149 #define HAVE_LDEXPF 1
10152 cat >> confdefs.h <<\EOF
10153 #define HAVE_LOG10F 1
10156 cat >> confdefs.h <<\EOF
10157 #define HAVE_LOGF 1
10160 cat >> confdefs.h <<\EOF
10161 #define HAVE_MODFF 1
10164 cat >> confdefs.h <<\EOF
10165 #define HAVE_POWF 1
10168 cat >> confdefs.h <<\EOF
10169 #define HAVE_SINF 1
10172 cat >> confdefs.h <<\EOF
10173 #define HAVE_SINHF 1
10176 cat >> confdefs.h <<\EOF
10177 #define HAVE_SQRTF 1
10180 cat >> confdefs.h <<\EOF
10181 #define HAVE_TANF 1
10184 cat >> confdefs.h <<\EOF
10185 #define HAVE_TANHF 1
10189 esac
10191 # At some point, we should differentiate between architectures
10192 # like x86, which have long double versions, and alpha/powerpc/etc.,
10193 # which don't. For the time being, punt.
10194 if test x"long_double_math_on_this_cpu" = x"yes"; then
10195 cat >> confdefs.h <<\EOF
10196 #define HAVE_ACOSL 1
10199 cat >> confdefs.h <<\EOF
10200 #define HAVE_ASINL 1
10203 cat >> confdefs.h <<\EOF
10204 #define HAVE_ATAN2L 1
10207 cat >> confdefs.h <<\EOF
10208 #define HAVE_ATANL 1
10211 cat >> confdefs.h <<\EOF
10212 #define HAVE_CEILL 1
10215 cat >> confdefs.h <<\EOF
10216 #define HAVE_COPYSIGNL 1
10219 cat >> confdefs.h <<\EOF
10220 #define HAVE_COSL 1
10223 cat >> confdefs.h <<\EOF
10224 #define HAVE_COSHL 1
10227 cat >> confdefs.h <<\EOF
10228 #define HAVE_EXPL 1
10231 cat >> confdefs.h <<\EOF
10232 #define HAVE_FABSL 1
10235 cat >> confdefs.h <<\EOF
10236 #define HAVE_FLOORL 1
10239 cat >> confdefs.h <<\EOF
10240 #define HAVE_FMODL 1
10243 cat >> confdefs.h <<\EOF
10244 #define HAVE_FREXPL 1
10247 cat >> confdefs.h <<\EOF
10248 #define HAVE_LDEXPL 1
10251 cat >> confdefs.h <<\EOF
10252 #define HAVE_LOG10L 1
10255 cat >> confdefs.h <<\EOF
10256 #define HAVE_LOGL 1
10259 cat >> confdefs.h <<\EOF
10260 #define HAVE_MODFL 1
10263 cat >> confdefs.h <<\EOF
10264 #define HAVE_POWL 1
10267 cat >> confdefs.h <<\EOF
10268 #define HAVE_SINCOSL 1
10271 cat >> confdefs.h <<\EOF
10272 #define HAVE_SINL 1
10275 cat >> confdefs.h <<\EOF
10276 #define HAVE_SINHL 1
10279 cat >> confdefs.h <<\EOF
10280 #define HAVE_SQRTL 1
10283 cat >> confdefs.h <<\EOF
10284 #define HAVE_TANL 1
10287 cat >> confdefs.h <<\EOF
10288 #define HAVE_TANHL 1
10293 else
10295 # We are being configured natively. We can do more elaborate tests
10296 # that include AC_TRY_COMPILE now, as the linker is assumed to be
10297 # working.
10298 GLIBCPP_IS_CROSS_COMPILING=0
10299 CANADIAN=no
10301 # Check for available headers.
10302 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10303 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
10305 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10306 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10307 echo "configure:10308: checking for $ac_hdr" >&5
10308 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10309 echo $ac_n "(cached) $ac_c" 1>&6
10310 else
10311 cat > conftest.$ac_ext <<EOF
10312 #line 10313 "configure"
10313 #include "confdefs.h"
10314 #include <$ac_hdr>
10316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10317 { (eval echo configure:10318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10319 if test -z "$ac_err"; then
10320 rm -rf conftest*
10321 eval "ac_cv_header_$ac_safe=yes"
10322 else
10323 echo "$ac_err" >&5
10324 echo "configure: failed program was:" >&5
10325 cat conftest.$ac_ext >&5
10326 rm -rf conftest*
10327 eval "ac_cv_header_$ac_safe=no"
10329 rm -f conftest*
10331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10332 echo "$ac_t""yes" 1>&6
10333 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10334 cat >> confdefs.h <<EOF
10335 #define $ac_tr_hdr 1
10338 else
10339 echo "$ac_t""no" 1>&6
10341 done
10345 # All these tests are for C++; save the language and the compiler flags.
10346 # The CXXFLAGS thing is suspicious, but based on similar bits previously
10347 # found in GLIBCPP_CONFIGURE.
10349 ac_ext=C
10350 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10351 ac_cpp='$CXXCPP $CPPFLAGS'
10352 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10353 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10354 cross_compiling=$ac_cv_prog_cxx_cross
10356 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10357 ac_save_CXXFLAGS="$CXXFLAGS"
10359 # Check for maintainer-mode bits.
10360 if test x"$USE_MAINTAINER_MODE" = xno; then
10361 WERROR=''
10362 else
10363 WERROR='-Werror'
10366 # Check for -ffunction-sections -fdata-sections
10367 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10368 echo "configure:10369: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10369 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10370 cat > conftest.$ac_ext <<EOF
10371 #line 10372 "configure"
10372 #include "confdefs.h"
10374 int main() {
10375 int foo;
10377 ; return 0; }
10379 if { (eval echo configure:10380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10380 rm -rf conftest*
10381 ac_fdsections=yes
10382 else
10383 echo "configure: failed program was:" >&5
10384 cat conftest.$ac_ext >&5
10385 rm -rf conftest*
10386 ac_fdsections=no
10388 rm -f conftest*
10389 if test "$ac_test_CXXFLAGS" = set; then
10390 CXXFLAGS="$ac_save_CXXFLAGS"
10391 else
10392 # this is the suspicious part
10393 CXXFLAGS=''
10395 if test x"$ac_fdsections" = x"yes" &&
10396 test x"$enable_debug" = x"no"; then
10397 SECTION_FLAGS='-ffunction-sections -fdata-sections'
10399 echo "$ac_t""$ac_fdsections" 1>&6
10401 ac_ext=c
10402 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10403 ac_cpp='$CPP $CPPFLAGS'
10404 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10405 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10406 cross_compiling=$ac_cv_prog_cc_cross
10412 # If we're not using GNU ld, then there's no point in even trying these
10413 # tests. Check for that first. We should have already tested for gld
10414 # by now (in libtool), but require it now just to be safe...
10415 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10416 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10419 # The name set by libtool depends on the version of libtool. Shame on us
10420 # for depending on an impl detail, but c'est la vie. Older versions used
10421 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10422 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10423 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
10424 # set (hence we're using an older libtool), then set it.
10425 if test x${with_gnu_ld+set} != xset; then
10426 if test x${ac_cv_prog_gnu_ld+set} != xset; then
10427 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
10428 with_gnu_ld=no
10429 else
10430 with_gnu_ld=$ac_cv_prog_gnu_ld
10434 # Start by getting the version number. I think the libtool test already
10435 # does some of this, but throws away the result.
10437 ldver=`$LD --version 2>/dev/null | head -1 | \
10438 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10440 glibcpp_gnu_ld_version=`echo $ldver | \
10441 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10443 # Set --gc-sections.
10444 if test "$with_gnu_ld" = "notbroken"; then
10445 # GNU ld it is! Joy and bunny rabbits!
10447 # All these tests are for C++; save the language and the compiler flags.
10448 # Need to do this so that g++ won't try to link in libstdc++
10449 ac_test_CFLAGS="${CFLAGS+set}"
10450 ac_save_CFLAGS="$CFLAGS"
10451 CFLAGS='-x c++ -Wl,--gc-sections'
10453 # Check for -Wl,--gc-sections
10454 # XXX This test is broken at the moment, as symbols required for
10455 # linking are now in libsupc++ (not built yet.....). In addition,
10456 # this test has cored on solaris in the past. In addition,
10457 # --gc-sections doesn't really work at the moment (keeps on discarding
10458 # used sections, first .eh_frame and now some of the glibc sections for
10459 # iconv). Bzzzzt. Thanks for playing, maybe next time.
10460 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10461 echo "configure:10462: checking for ld that supports -Wl,--gc-sections" >&5
10462 if test "$cross_compiling" = yes; then
10463 ac_sectionLDflags=yes
10464 else
10465 cat > conftest.$ac_ext <<EOF
10466 #line 10467 "configure"
10467 #include "confdefs.h"
10469 int main(void)
10471 try { throw 1; }
10472 catch (...) { };
10473 return 0;
10477 if { (eval echo configure:10478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10478 then
10479 ac_sectionLDflags=yes
10480 else
10481 echo "configure: failed program was:" >&5
10482 cat conftest.$ac_ext >&5
10483 rm -fr conftest*
10484 ac_sectionLDflags=no
10486 rm -fr conftest*
10489 if test "$ac_test_CFLAGS" = set; then
10490 CFLAGS="$ac_save_CFLAGS"
10491 else
10492 # this is the suspicious part
10493 CFLAGS=''
10495 if test "$ac_sectionLDflags" = "yes"; then
10496 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10498 echo "$ac_t""$ac_sectionLDflags" 1>&6
10501 # Set linker optimization flags.
10502 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
10503 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10511 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
10512 echo "configure:10513: checking for __builtin_abs declaration" >&5
10513 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
10514 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
10515 echo $ac_n "(cached) $ac_c" 1>&6
10516 else
10519 ac_ext=C
10520 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10521 ac_cpp='$CXXCPP $CPPFLAGS'
10522 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10523 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10524 cross_compiling=$ac_cv_prog_cxx_cross
10526 cat > conftest.$ac_ext <<EOF
10527 #line 10528 "configure"
10528 #include "confdefs.h"
10529 #include <math.h>
10530 int main() {
10531 __builtin_abs(0);
10532 ; return 0; }
10534 if { (eval echo configure:10535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10535 rm -rf conftest*
10536 glibcpp_cv_func___builtin_abs_use=yes
10537 else
10538 echo "configure: failed program was:" >&5
10539 cat conftest.$ac_ext >&5
10540 rm -rf conftest*
10541 glibcpp_cv_func___builtin_abs_use=no
10543 rm -f conftest*
10544 ac_ext=c
10545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10546 ac_cpp='$CPP $CPPFLAGS'
10547 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10548 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10549 cross_compiling=$ac_cv_prog_cc_cross
10555 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
10556 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
10557 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
10558 echo "configure:10559: checking for __builtin_abs linkage" >&5
10559 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
10560 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
10561 echo $ac_n "(cached) $ac_c" 1>&6
10562 else
10564 cat > conftest.$ac_ext <<EOF
10565 #line 10566 "configure"
10566 #include "confdefs.h"
10567 #include <math.h>
10568 int main() {
10569 __builtin_abs(0);
10570 ; return 0; }
10572 if { (eval echo configure:10573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10573 rm -rf conftest*
10574 glibcpp_cv_func___builtin_abs_link=yes
10575 else
10576 echo "configure: failed program was:" >&5
10577 cat conftest.$ac_ext >&5
10578 rm -rf conftest*
10579 glibcpp_cv_func___builtin_abs_link=no
10581 rm -f conftest*
10586 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
10587 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
10588 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10589 cat >> confdefs.h <<EOF
10590 #define ${ac_tr_func} 1
10597 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
10598 echo "configure:10599: checking for __builtin_fabsf declaration" >&5
10599 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
10600 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
10601 echo $ac_n "(cached) $ac_c" 1>&6
10602 else
10605 ac_ext=C
10606 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10607 ac_cpp='$CXXCPP $CPPFLAGS'
10608 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10609 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10610 cross_compiling=$ac_cv_prog_cxx_cross
10612 cat > conftest.$ac_ext <<EOF
10613 #line 10614 "configure"
10614 #include "confdefs.h"
10615 #include <math.h>
10616 int main() {
10617 __builtin_fabsf(0);
10618 ; return 0; }
10620 if { (eval echo configure:10621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10621 rm -rf conftest*
10622 glibcpp_cv_func___builtin_fabsf_use=yes
10623 else
10624 echo "configure: failed program was:" >&5
10625 cat conftest.$ac_ext >&5
10626 rm -rf conftest*
10627 glibcpp_cv_func___builtin_fabsf_use=no
10629 rm -f conftest*
10630 ac_ext=c
10631 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10632 ac_cpp='$CPP $CPPFLAGS'
10633 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10634 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10635 cross_compiling=$ac_cv_prog_cc_cross
10641 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
10642 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
10643 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
10644 echo "configure:10645: checking for __builtin_fabsf linkage" >&5
10645 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
10646 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
10647 echo $ac_n "(cached) $ac_c" 1>&6
10648 else
10650 cat > conftest.$ac_ext <<EOF
10651 #line 10652 "configure"
10652 #include "confdefs.h"
10653 #include <math.h>
10654 int main() {
10655 __builtin_fabsf(0);
10656 ; return 0; }
10658 if { (eval echo configure:10659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10659 rm -rf conftest*
10660 glibcpp_cv_func___builtin_fabsf_link=yes
10661 else
10662 echo "configure: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10664 rm -rf conftest*
10665 glibcpp_cv_func___builtin_fabsf_link=no
10667 rm -f conftest*
10672 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
10673 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
10674 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10675 cat >> confdefs.h <<EOF
10676 #define ${ac_tr_func} 1
10683 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
10684 echo "configure:10685: checking for __builtin_fabs declaration" >&5
10685 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
10686 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
10687 echo $ac_n "(cached) $ac_c" 1>&6
10688 else
10691 ac_ext=C
10692 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10693 ac_cpp='$CXXCPP $CPPFLAGS'
10694 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10695 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10696 cross_compiling=$ac_cv_prog_cxx_cross
10698 cat > conftest.$ac_ext <<EOF
10699 #line 10700 "configure"
10700 #include "confdefs.h"
10701 #include <math.h>
10702 int main() {
10703 __builtin_fabs(0);
10704 ; return 0; }
10706 if { (eval echo configure:10707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10707 rm -rf conftest*
10708 glibcpp_cv_func___builtin_fabs_use=yes
10709 else
10710 echo "configure: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10712 rm -rf conftest*
10713 glibcpp_cv_func___builtin_fabs_use=no
10715 rm -f conftest*
10716 ac_ext=c
10717 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10718 ac_cpp='$CPP $CPPFLAGS'
10719 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10720 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10721 cross_compiling=$ac_cv_prog_cc_cross
10727 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
10728 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
10729 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
10730 echo "configure:10731: checking for __builtin_fabs linkage" >&5
10731 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
10732 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
10733 echo $ac_n "(cached) $ac_c" 1>&6
10734 else
10736 cat > conftest.$ac_ext <<EOF
10737 #line 10738 "configure"
10738 #include "confdefs.h"
10739 #include <math.h>
10740 int main() {
10741 __builtin_fabs(0);
10742 ; return 0; }
10744 if { (eval echo configure:10745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10745 rm -rf conftest*
10746 glibcpp_cv_func___builtin_fabs_link=yes
10747 else
10748 echo "configure: failed program was:" >&5
10749 cat conftest.$ac_ext >&5
10750 rm -rf conftest*
10751 glibcpp_cv_func___builtin_fabs_link=no
10753 rm -f conftest*
10758 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
10759 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
10760 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10761 cat >> confdefs.h <<EOF
10762 #define ${ac_tr_func} 1
10769 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
10770 echo "configure:10771: checking for __builtin_fabsl declaration" >&5
10771 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
10772 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
10773 echo $ac_n "(cached) $ac_c" 1>&6
10774 else
10777 ac_ext=C
10778 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10779 ac_cpp='$CXXCPP $CPPFLAGS'
10780 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10781 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10782 cross_compiling=$ac_cv_prog_cxx_cross
10784 cat > conftest.$ac_ext <<EOF
10785 #line 10786 "configure"
10786 #include "confdefs.h"
10787 #include <math.h>
10788 int main() {
10789 __builtin_fabsl(0);
10790 ; return 0; }
10792 if { (eval echo configure:10793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10793 rm -rf conftest*
10794 glibcpp_cv_func___builtin_fabsl_use=yes
10795 else
10796 echo "configure: failed program was:" >&5
10797 cat conftest.$ac_ext >&5
10798 rm -rf conftest*
10799 glibcpp_cv_func___builtin_fabsl_use=no
10801 rm -f conftest*
10802 ac_ext=c
10803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10804 ac_cpp='$CPP $CPPFLAGS'
10805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10807 cross_compiling=$ac_cv_prog_cc_cross
10813 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
10814 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
10815 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
10816 echo "configure:10817: checking for __builtin_fabsl linkage" >&5
10817 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
10818 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
10819 echo $ac_n "(cached) $ac_c" 1>&6
10820 else
10822 cat > conftest.$ac_ext <<EOF
10823 #line 10824 "configure"
10824 #include "confdefs.h"
10825 #include <math.h>
10826 int main() {
10827 __builtin_fabsl(0);
10828 ; return 0; }
10830 if { (eval echo configure:10831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10831 rm -rf conftest*
10832 glibcpp_cv_func___builtin_fabsl_link=yes
10833 else
10834 echo "configure: failed program was:" >&5
10835 cat conftest.$ac_ext >&5
10836 rm -rf conftest*
10837 glibcpp_cv_func___builtin_fabsl_link=no
10839 rm -f conftest*
10844 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
10845 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
10846 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10847 cat >> confdefs.h <<EOF
10848 #define ${ac_tr_func} 1
10855 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
10856 echo "configure:10857: checking for __builtin_labs declaration" >&5
10857 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
10858 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
10859 echo $ac_n "(cached) $ac_c" 1>&6
10860 else
10863 ac_ext=C
10864 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10865 ac_cpp='$CXXCPP $CPPFLAGS'
10866 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10867 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10868 cross_compiling=$ac_cv_prog_cxx_cross
10870 cat > conftest.$ac_ext <<EOF
10871 #line 10872 "configure"
10872 #include "confdefs.h"
10873 #include <math.h>
10874 int main() {
10875 __builtin_labs(0);
10876 ; return 0; }
10878 if { (eval echo configure:10879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10879 rm -rf conftest*
10880 glibcpp_cv_func___builtin_labs_use=yes
10881 else
10882 echo "configure: failed program was:" >&5
10883 cat conftest.$ac_ext >&5
10884 rm -rf conftest*
10885 glibcpp_cv_func___builtin_labs_use=no
10887 rm -f conftest*
10888 ac_ext=c
10889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10890 ac_cpp='$CPP $CPPFLAGS'
10891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10892 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10893 cross_compiling=$ac_cv_prog_cc_cross
10899 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
10900 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
10901 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
10902 echo "configure:10903: checking for __builtin_labs linkage" >&5
10903 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
10904 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
10905 echo $ac_n "(cached) $ac_c" 1>&6
10906 else
10908 cat > conftest.$ac_ext <<EOF
10909 #line 10910 "configure"
10910 #include "confdefs.h"
10911 #include <math.h>
10912 int main() {
10913 __builtin_labs(0);
10914 ; return 0; }
10916 if { (eval echo configure:10917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10917 rm -rf conftest*
10918 glibcpp_cv_func___builtin_labs_link=yes
10919 else
10920 echo "configure: failed program was:" >&5
10921 cat conftest.$ac_ext >&5
10922 rm -rf conftest*
10923 glibcpp_cv_func___builtin_labs_link=no
10925 rm -f conftest*
10930 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
10931 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
10932 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10933 cat >> confdefs.h <<EOF
10934 #define ${ac_tr_func} 1
10942 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
10943 echo "configure:10944: checking for __builtin_sqrtf declaration" >&5
10944 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
10945 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
10946 echo $ac_n "(cached) $ac_c" 1>&6
10947 else
10950 ac_ext=C
10951 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10952 ac_cpp='$CXXCPP $CPPFLAGS'
10953 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10954 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10955 cross_compiling=$ac_cv_prog_cxx_cross
10957 cat > conftest.$ac_ext <<EOF
10958 #line 10959 "configure"
10959 #include "confdefs.h"
10960 #include <math.h>
10961 int main() {
10962 __builtin_sqrtf(0);
10963 ; return 0; }
10965 if { (eval echo configure:10966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10966 rm -rf conftest*
10967 glibcpp_cv_func___builtin_sqrtf_use=yes
10968 else
10969 echo "configure: failed program was:" >&5
10970 cat conftest.$ac_ext >&5
10971 rm -rf conftest*
10972 glibcpp_cv_func___builtin_sqrtf_use=no
10974 rm -f conftest*
10975 ac_ext=c
10976 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10977 ac_cpp='$CPP $CPPFLAGS'
10978 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10979 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10980 cross_compiling=$ac_cv_prog_cc_cross
10986 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
10987 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
10988 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
10989 echo "configure:10990: checking for __builtin_sqrtf linkage" >&5
10990 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
10991 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
10992 echo $ac_n "(cached) $ac_c" 1>&6
10993 else
10995 cat > conftest.$ac_ext <<EOF
10996 #line 10997 "configure"
10997 #include "confdefs.h"
10998 #include <math.h>
10999 int main() {
11000 __builtin_sqrtf(0);
11001 ; return 0; }
11003 if { (eval echo configure:11004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11004 rm -rf conftest*
11005 glibcpp_cv_func___builtin_sqrtf_link=yes
11006 else
11007 echo "configure: failed program was:" >&5
11008 cat conftest.$ac_ext >&5
11009 rm -rf conftest*
11010 glibcpp_cv_func___builtin_sqrtf_link=no
11012 rm -f conftest*
11017 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
11018 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
11019 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11020 cat >> confdefs.h <<EOF
11021 #define ${ac_tr_func} 1
11028 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
11029 echo "configure:11030: checking for __builtin_sqrt declaration" >&5
11030 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
11031 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
11032 echo $ac_n "(cached) $ac_c" 1>&6
11033 else
11036 ac_ext=C
11037 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11038 ac_cpp='$CXXCPP $CPPFLAGS'
11039 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11040 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11041 cross_compiling=$ac_cv_prog_cxx_cross
11043 cat > conftest.$ac_ext <<EOF
11044 #line 11045 "configure"
11045 #include "confdefs.h"
11046 #include <math.h>
11047 int main() {
11048 __builtin_sqrt(0);
11049 ; return 0; }
11051 if { (eval echo configure:11052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11052 rm -rf conftest*
11053 glibcpp_cv_func___builtin_sqrt_use=yes
11054 else
11055 echo "configure: failed program was:" >&5
11056 cat conftest.$ac_ext >&5
11057 rm -rf conftest*
11058 glibcpp_cv_func___builtin_sqrt_use=no
11060 rm -f conftest*
11061 ac_ext=c
11062 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11063 ac_cpp='$CPP $CPPFLAGS'
11064 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11065 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11066 cross_compiling=$ac_cv_prog_cc_cross
11072 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
11073 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
11074 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
11075 echo "configure:11076: checking for __builtin_sqrt linkage" >&5
11076 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
11077 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
11078 echo $ac_n "(cached) $ac_c" 1>&6
11079 else
11081 cat > conftest.$ac_ext <<EOF
11082 #line 11083 "configure"
11083 #include "confdefs.h"
11084 #include <math.h>
11085 int main() {
11086 __builtin_sqrt(0);
11087 ; return 0; }
11089 if { (eval echo configure:11090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11090 rm -rf conftest*
11091 glibcpp_cv_func___builtin_sqrt_link=yes
11092 else
11093 echo "configure: failed program was:" >&5
11094 cat conftest.$ac_ext >&5
11095 rm -rf conftest*
11096 glibcpp_cv_func___builtin_sqrt_link=no
11098 rm -f conftest*
11103 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
11104 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
11105 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11106 cat >> confdefs.h <<EOF
11107 #define ${ac_tr_func} 1
11114 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
11115 echo "configure:11116: checking for __builtin_sqrtl declaration" >&5
11116 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
11117 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
11118 echo $ac_n "(cached) $ac_c" 1>&6
11119 else
11122 ac_ext=C
11123 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11124 ac_cpp='$CXXCPP $CPPFLAGS'
11125 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11126 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11127 cross_compiling=$ac_cv_prog_cxx_cross
11129 cat > conftest.$ac_ext <<EOF
11130 #line 11131 "configure"
11131 #include "confdefs.h"
11132 #include <math.h>
11133 int main() {
11134 __builtin_sqrtl(0);
11135 ; return 0; }
11137 if { (eval echo configure:11138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11138 rm -rf conftest*
11139 glibcpp_cv_func___builtin_sqrtl_use=yes
11140 else
11141 echo "configure: failed program was:" >&5
11142 cat conftest.$ac_ext >&5
11143 rm -rf conftest*
11144 glibcpp_cv_func___builtin_sqrtl_use=no
11146 rm -f conftest*
11147 ac_ext=c
11148 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11149 ac_cpp='$CPP $CPPFLAGS'
11150 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11151 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11152 cross_compiling=$ac_cv_prog_cc_cross
11158 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
11159 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
11160 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
11161 echo "configure:11162: checking for __builtin_sqrtl linkage" >&5
11162 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
11163 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
11164 echo $ac_n "(cached) $ac_c" 1>&6
11165 else
11167 cat > conftest.$ac_ext <<EOF
11168 #line 11169 "configure"
11169 #include "confdefs.h"
11170 #include <math.h>
11171 int main() {
11172 __builtin_sqrtl(0);
11173 ; return 0; }
11175 if { (eval echo configure:11176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11176 rm -rf conftest*
11177 glibcpp_cv_func___builtin_sqrtl_link=yes
11178 else
11179 echo "configure: failed program was:" >&5
11180 cat conftest.$ac_ext >&5
11181 rm -rf conftest*
11182 glibcpp_cv_func___builtin_sqrtl_link=no
11184 rm -f conftest*
11189 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
11190 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
11191 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11192 cat >> confdefs.h <<EOF
11193 #define ${ac_tr_func} 1
11201 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
11202 echo "configure:11203: checking for __builtin_sinf declaration" >&5
11203 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
11204 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
11205 echo $ac_n "(cached) $ac_c" 1>&6
11206 else
11209 ac_ext=C
11210 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11211 ac_cpp='$CXXCPP $CPPFLAGS'
11212 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11213 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11214 cross_compiling=$ac_cv_prog_cxx_cross
11216 cat > conftest.$ac_ext <<EOF
11217 #line 11218 "configure"
11218 #include "confdefs.h"
11219 #include <math.h>
11220 int main() {
11221 __builtin_sinf(0);
11222 ; return 0; }
11224 if { (eval echo configure:11225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11225 rm -rf conftest*
11226 glibcpp_cv_func___builtin_sinf_use=yes
11227 else
11228 echo "configure: failed program was:" >&5
11229 cat conftest.$ac_ext >&5
11230 rm -rf conftest*
11231 glibcpp_cv_func___builtin_sinf_use=no
11233 rm -f conftest*
11234 ac_ext=c
11235 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11236 ac_cpp='$CPP $CPPFLAGS'
11237 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11238 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11239 cross_compiling=$ac_cv_prog_cc_cross
11245 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
11246 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
11247 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
11248 echo "configure:11249: checking for __builtin_sinf linkage" >&5
11249 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
11250 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
11251 echo $ac_n "(cached) $ac_c" 1>&6
11252 else
11254 cat > conftest.$ac_ext <<EOF
11255 #line 11256 "configure"
11256 #include "confdefs.h"
11257 #include <math.h>
11258 int main() {
11259 __builtin_sinf(0);
11260 ; return 0; }
11262 if { (eval echo configure:11263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11263 rm -rf conftest*
11264 glibcpp_cv_func___builtin_sinf_link=yes
11265 else
11266 echo "configure: failed program was:" >&5
11267 cat conftest.$ac_ext >&5
11268 rm -rf conftest*
11269 glibcpp_cv_func___builtin_sinf_link=no
11271 rm -f conftest*
11276 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
11277 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
11278 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11279 cat >> confdefs.h <<EOF
11280 #define ${ac_tr_func} 1
11287 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
11288 echo "configure:11289: checking for __builtin_sin declaration" >&5
11289 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
11290 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
11291 echo $ac_n "(cached) $ac_c" 1>&6
11292 else
11295 ac_ext=C
11296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11297 ac_cpp='$CXXCPP $CPPFLAGS'
11298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11300 cross_compiling=$ac_cv_prog_cxx_cross
11302 cat > conftest.$ac_ext <<EOF
11303 #line 11304 "configure"
11304 #include "confdefs.h"
11305 #include <math.h>
11306 int main() {
11307 __builtin_sin(0);
11308 ; return 0; }
11310 if { (eval echo configure:11311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11311 rm -rf conftest*
11312 glibcpp_cv_func___builtin_sin_use=yes
11313 else
11314 echo "configure: failed program was:" >&5
11315 cat conftest.$ac_ext >&5
11316 rm -rf conftest*
11317 glibcpp_cv_func___builtin_sin_use=no
11319 rm -f conftest*
11320 ac_ext=c
11321 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11322 ac_cpp='$CPP $CPPFLAGS'
11323 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11324 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11325 cross_compiling=$ac_cv_prog_cc_cross
11331 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
11332 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
11333 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
11334 echo "configure:11335: checking for __builtin_sin linkage" >&5
11335 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
11336 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
11337 echo $ac_n "(cached) $ac_c" 1>&6
11338 else
11340 cat > conftest.$ac_ext <<EOF
11341 #line 11342 "configure"
11342 #include "confdefs.h"
11343 #include <math.h>
11344 int main() {
11345 __builtin_sin(0);
11346 ; return 0; }
11348 if { (eval echo configure:11349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11349 rm -rf conftest*
11350 glibcpp_cv_func___builtin_sin_link=yes
11351 else
11352 echo "configure: failed program was:" >&5
11353 cat conftest.$ac_ext >&5
11354 rm -rf conftest*
11355 glibcpp_cv_func___builtin_sin_link=no
11357 rm -f conftest*
11362 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
11363 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
11364 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11365 cat >> confdefs.h <<EOF
11366 #define ${ac_tr_func} 1
11373 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
11374 echo "configure:11375: checking for __builtin_sinl declaration" >&5
11375 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
11376 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
11377 echo $ac_n "(cached) $ac_c" 1>&6
11378 else
11381 ac_ext=C
11382 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11383 ac_cpp='$CXXCPP $CPPFLAGS'
11384 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11385 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11386 cross_compiling=$ac_cv_prog_cxx_cross
11388 cat > conftest.$ac_ext <<EOF
11389 #line 11390 "configure"
11390 #include "confdefs.h"
11391 #include <math.h>
11392 int main() {
11393 __builtin_sinl(0);
11394 ; return 0; }
11396 if { (eval echo configure:11397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11397 rm -rf conftest*
11398 glibcpp_cv_func___builtin_sinl_use=yes
11399 else
11400 echo "configure: failed program was:" >&5
11401 cat conftest.$ac_ext >&5
11402 rm -rf conftest*
11403 glibcpp_cv_func___builtin_sinl_use=no
11405 rm -f conftest*
11406 ac_ext=c
11407 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11408 ac_cpp='$CPP $CPPFLAGS'
11409 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11410 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11411 cross_compiling=$ac_cv_prog_cc_cross
11417 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
11418 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
11419 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
11420 echo "configure:11421: checking for __builtin_sinl linkage" >&5
11421 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
11422 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
11423 echo $ac_n "(cached) $ac_c" 1>&6
11424 else
11426 cat > conftest.$ac_ext <<EOF
11427 #line 11428 "configure"
11428 #include "confdefs.h"
11429 #include <math.h>
11430 int main() {
11431 __builtin_sinl(0);
11432 ; return 0; }
11434 if { (eval echo configure:11435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11435 rm -rf conftest*
11436 glibcpp_cv_func___builtin_sinl_link=yes
11437 else
11438 echo "configure: failed program was:" >&5
11439 cat conftest.$ac_ext >&5
11440 rm -rf conftest*
11441 glibcpp_cv_func___builtin_sinl_link=no
11443 rm -f conftest*
11448 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
11449 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
11450 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11451 cat >> confdefs.h <<EOF
11452 #define ${ac_tr_func} 1
11460 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
11461 echo "configure:11462: checking for __builtin_cosf declaration" >&5
11462 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
11463 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
11464 echo $ac_n "(cached) $ac_c" 1>&6
11465 else
11468 ac_ext=C
11469 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11470 ac_cpp='$CXXCPP $CPPFLAGS'
11471 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11472 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11473 cross_compiling=$ac_cv_prog_cxx_cross
11475 cat > conftest.$ac_ext <<EOF
11476 #line 11477 "configure"
11477 #include "confdefs.h"
11478 #include <math.h>
11479 int main() {
11480 __builtin_cosf(0);
11481 ; return 0; }
11483 if { (eval echo configure:11484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11484 rm -rf conftest*
11485 glibcpp_cv_func___builtin_cosf_use=yes
11486 else
11487 echo "configure: failed program was:" >&5
11488 cat conftest.$ac_ext >&5
11489 rm -rf conftest*
11490 glibcpp_cv_func___builtin_cosf_use=no
11492 rm -f conftest*
11493 ac_ext=c
11494 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11495 ac_cpp='$CPP $CPPFLAGS'
11496 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11497 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11498 cross_compiling=$ac_cv_prog_cc_cross
11504 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
11505 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
11506 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
11507 echo "configure:11508: checking for __builtin_cosf linkage" >&5
11508 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
11509 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
11510 echo $ac_n "(cached) $ac_c" 1>&6
11511 else
11513 cat > conftest.$ac_ext <<EOF
11514 #line 11515 "configure"
11515 #include "confdefs.h"
11516 #include <math.h>
11517 int main() {
11518 __builtin_cosf(0);
11519 ; return 0; }
11521 if { (eval echo configure:11522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11522 rm -rf conftest*
11523 glibcpp_cv_func___builtin_cosf_link=yes
11524 else
11525 echo "configure: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11527 rm -rf conftest*
11528 glibcpp_cv_func___builtin_cosf_link=no
11530 rm -f conftest*
11535 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
11536 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
11537 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11538 cat >> confdefs.h <<EOF
11539 #define ${ac_tr_func} 1
11546 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
11547 echo "configure:11548: checking for __builtin_cos declaration" >&5
11548 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
11549 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
11550 echo $ac_n "(cached) $ac_c" 1>&6
11551 else
11554 ac_ext=C
11555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11556 ac_cpp='$CXXCPP $CPPFLAGS'
11557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11559 cross_compiling=$ac_cv_prog_cxx_cross
11561 cat > conftest.$ac_ext <<EOF
11562 #line 11563 "configure"
11563 #include "confdefs.h"
11564 #include <math.h>
11565 int main() {
11566 __builtin_cos(0);
11567 ; return 0; }
11569 if { (eval echo configure:11570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11570 rm -rf conftest*
11571 glibcpp_cv_func___builtin_cos_use=yes
11572 else
11573 echo "configure: failed program was:" >&5
11574 cat conftest.$ac_ext >&5
11575 rm -rf conftest*
11576 glibcpp_cv_func___builtin_cos_use=no
11578 rm -f conftest*
11579 ac_ext=c
11580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11581 ac_cpp='$CPP $CPPFLAGS'
11582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11584 cross_compiling=$ac_cv_prog_cc_cross
11590 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
11591 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
11592 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
11593 echo "configure:11594: checking for __builtin_cos linkage" >&5
11594 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
11595 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
11596 echo $ac_n "(cached) $ac_c" 1>&6
11597 else
11599 cat > conftest.$ac_ext <<EOF
11600 #line 11601 "configure"
11601 #include "confdefs.h"
11602 #include <math.h>
11603 int main() {
11604 __builtin_cos(0);
11605 ; return 0; }
11607 if { (eval echo configure:11608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11608 rm -rf conftest*
11609 glibcpp_cv_func___builtin_cos_link=yes
11610 else
11611 echo "configure: failed program was:" >&5
11612 cat conftest.$ac_ext >&5
11613 rm -rf conftest*
11614 glibcpp_cv_func___builtin_cos_link=no
11616 rm -f conftest*
11621 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
11622 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
11623 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11624 cat >> confdefs.h <<EOF
11625 #define ${ac_tr_func} 1
11632 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
11633 echo "configure:11634: checking for __builtin_cosl declaration" >&5
11634 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
11635 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
11636 echo $ac_n "(cached) $ac_c" 1>&6
11637 else
11640 ac_ext=C
11641 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11642 ac_cpp='$CXXCPP $CPPFLAGS'
11643 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11644 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11645 cross_compiling=$ac_cv_prog_cxx_cross
11647 cat > conftest.$ac_ext <<EOF
11648 #line 11649 "configure"
11649 #include "confdefs.h"
11650 #include <math.h>
11651 int main() {
11652 __builtin_cosl(0);
11653 ; return 0; }
11655 if { (eval echo configure:11656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11656 rm -rf conftest*
11657 glibcpp_cv_func___builtin_cosl_use=yes
11658 else
11659 echo "configure: failed program was:" >&5
11660 cat conftest.$ac_ext >&5
11661 rm -rf conftest*
11662 glibcpp_cv_func___builtin_cosl_use=no
11664 rm -f conftest*
11665 ac_ext=c
11666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11667 ac_cpp='$CPP $CPPFLAGS'
11668 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11669 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11670 cross_compiling=$ac_cv_prog_cc_cross
11676 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
11677 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
11678 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
11679 echo "configure:11680: checking for __builtin_cosl linkage" >&5
11680 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
11681 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
11682 echo $ac_n "(cached) $ac_c" 1>&6
11683 else
11685 cat > conftest.$ac_ext <<EOF
11686 #line 11687 "configure"
11687 #include "confdefs.h"
11688 #include <math.h>
11689 int main() {
11690 __builtin_cosl(0);
11691 ; return 0; }
11693 if { (eval echo configure:11694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11694 rm -rf conftest*
11695 glibcpp_cv_func___builtin_cosl_link=yes
11696 else
11697 echo "configure: failed program was:" >&5
11698 cat conftest.$ac_ext >&5
11699 rm -rf conftest*
11700 glibcpp_cv_func___builtin_cosl_link=no
11702 rm -f conftest*
11707 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
11708 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
11709 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11710 cat >> confdefs.h <<EOF
11711 #define ${ac_tr_func} 1
11718 dummyvar=no
11719 if test x$dummyvar = x"yes"; then
11720 cat >> confdefs.h <<\EOF
11721 #define HAVE___BUILTIN_ABS 1
11724 cat >> confdefs.h <<\EOF
11725 #define HAVE___BUILTIN_LABS 1
11728 cat >> confdefs.h <<\EOF
11729 #define HAVE___BUILTIN_COS 1
11732 cat >> confdefs.h <<\EOF
11733 #define HAVE___BUILTIN_COSF 1
11736 cat >> confdefs.h <<\EOF
11737 #define HAVE___BUILTIN_COSL 1
11740 cat >> confdefs.h <<\EOF
11741 #define HAVE___BUILTIN_FABS 1
11744 cat >> confdefs.h <<\EOF
11745 #define HAVE___BUILTIN_FABSF 1
11748 cat >> confdefs.h <<\EOF
11749 #define HAVE___BUILTIN_FABSL 1
11752 cat >> confdefs.h <<\EOF
11753 #define HAVE___BUILTIN_SIN 1
11756 cat >> confdefs.h <<\EOF
11757 #define HAVE___BUILTIN_SINF 1
11760 cat >> confdefs.h <<\EOF
11761 #define HAVE___BUILTIN_SINL 1
11764 cat >> confdefs.h <<\EOF
11765 #define HAVE___BUILTIN_SQRT 1
11768 cat >> confdefs.h <<\EOF
11769 #define HAVE___BUILTIN_SQRTF 1
11772 cat >> confdefs.h <<\EOF
11773 #define HAVE___BUILTIN_SQRTL 1
11779 ac_test_CXXFLAGS="${CXXFLAGS+set}"
11780 ac_save_CXXFLAGS="$CXXFLAGS"
11781 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
11783 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
11784 echo "configure:11785: checking for sin in -lm" >&5
11785 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
11786 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11787 echo $ac_n "(cached) $ac_c" 1>&6
11788 else
11789 ac_save_LIBS="$LIBS"
11790 LIBS="-lm $LIBS"
11791 cat > conftest.$ac_ext <<EOF
11792 #line 11793 "configure"
11793 #include "confdefs.h"
11794 /* Override any gcc2 internal prototype to avoid an error. */
11795 /* We use char because int might match the return type of a gcc2
11796 builtin and then its argument prototype would still apply. */
11797 char sin();
11799 int main() {
11800 sin()
11801 ; return 0; }
11803 if { (eval echo configure:11804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11804 rm -rf conftest*
11805 eval "ac_cv_lib_$ac_lib_var=yes"
11806 else
11807 echo "configure: failed program was:" >&5
11808 cat conftest.$ac_ext >&5
11809 rm -rf conftest*
11810 eval "ac_cv_lib_$ac_lib_var=no"
11812 rm -f conftest*
11813 LIBS="$ac_save_LIBS"
11816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11817 echo "$ac_t""yes" 1>&6
11818 libm="-lm"
11819 else
11820 echo "$ac_t""no" 1>&6
11823 ac_save_LIBS="$LIBS"
11824 LIBS="$LIBS $libm"
11828 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
11829 echo "configure:11830: checking for isinf declaration" >&5
11830 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
11831 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
11832 echo $ac_n "(cached) $ac_c" 1>&6
11833 else
11836 ac_ext=C
11837 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11838 ac_cpp='$CXXCPP $CPPFLAGS'
11839 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11840 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11841 cross_compiling=$ac_cv_prog_cxx_cross
11843 cat > conftest.$ac_ext <<EOF
11844 #line 11845 "configure"
11845 #include "confdefs.h"
11846 #include <math.h>
11847 #ifdef HAVE_IEEEFP_H
11848 #include <ieeefp.h>
11849 #endif
11851 int main() {
11852 isinf(0);
11853 ; return 0; }
11855 if { (eval echo configure:11856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11856 rm -rf conftest*
11857 glibcpp_cv_func_isinf_use=yes
11858 else
11859 echo "configure: failed program was:" >&5
11860 cat conftest.$ac_ext >&5
11861 rm -rf conftest*
11862 glibcpp_cv_func_isinf_use=no
11864 rm -f conftest*
11865 ac_ext=c
11866 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11867 ac_cpp='$CPP $CPPFLAGS'
11868 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11869 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11870 cross_compiling=$ac_cv_prog_cc_cross
11876 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
11878 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
11879 for ac_func in isinf
11881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11882 echo "configure:11883: checking for $ac_func" >&5
11883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11884 echo $ac_n "(cached) $ac_c" 1>&6
11885 else
11886 cat > conftest.$ac_ext <<EOF
11887 #line 11888 "configure"
11888 #include "confdefs.h"
11889 /* System header to define __stub macros and hopefully few prototypes,
11890 which can conflict with char $ac_func(); below. */
11891 #include <assert.h>
11892 /* Override any gcc2 internal prototype to avoid an error. */
11893 /* We use char because int might match the return type of a gcc2
11894 builtin and then its argument prototype would still apply. */
11895 char $ac_func();
11897 int main() {
11899 /* The GNU C library defines this for functions which it implements
11900 to always fail with ENOSYS. Some functions are actually named
11901 something starting with __ and the normal name is an alias. */
11902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11903 choke me
11904 #else
11905 $ac_func();
11906 #endif
11908 ; return 0; }
11910 if { (eval echo configure:11911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11911 rm -rf conftest*
11912 eval "ac_cv_func_$ac_func=yes"
11913 else
11914 echo "configure: failed program was:" >&5
11915 cat conftest.$ac_ext >&5
11916 rm -rf conftest*
11917 eval "ac_cv_func_$ac_func=no"
11919 rm -f conftest*
11922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11923 echo "$ac_t""yes" 1>&6
11924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11925 cat >> confdefs.h <<EOF
11926 #define $ac_tr_func 1
11929 else
11930 echo "$ac_t""no" 1>&6
11932 done
11934 else
11936 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
11937 echo "configure:11938: checking for _isinf declaration" >&5
11938 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
11939 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
11940 echo $ac_n "(cached) $ac_c" 1>&6
11941 else
11944 ac_ext=C
11945 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11946 ac_cpp='$CXXCPP $CPPFLAGS'
11947 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11948 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11949 cross_compiling=$ac_cv_prog_cxx_cross
11951 cat > conftest.$ac_ext <<EOF
11952 #line 11953 "configure"
11953 #include "confdefs.h"
11954 #include <math.h>
11955 #ifdef HAVE_IEEEFP_H
11956 #include <ieeefp.h>
11957 #endif
11959 int main() {
11960 _isinf(0);
11961 ; return 0; }
11963 if { (eval echo configure:11964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11964 rm -rf conftest*
11965 glibcpp_cv_func__isinf_use=yes
11966 else
11967 echo "configure: failed program was:" >&5
11968 cat conftest.$ac_ext >&5
11969 rm -rf conftest*
11970 glibcpp_cv_func__isinf_use=no
11972 rm -f conftest*
11973 ac_ext=c
11974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11975 ac_cpp='$CPP $CPPFLAGS'
11976 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11977 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11978 cross_compiling=$ac_cv_prog_cc_cross
11984 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
11986 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
11987 for ac_func in _isinf
11989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11990 echo "configure:11991: checking for $ac_func" >&5
11991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11992 echo $ac_n "(cached) $ac_c" 1>&6
11993 else
11994 cat > conftest.$ac_ext <<EOF
11995 #line 11996 "configure"
11996 #include "confdefs.h"
11997 /* System header to define __stub macros and hopefully few prototypes,
11998 which can conflict with char $ac_func(); below. */
11999 #include <assert.h>
12000 /* Override any gcc2 internal prototype to avoid an error. */
12001 /* We use char because int might match the return type of a gcc2
12002 builtin and then its argument prototype would still apply. */
12003 char $ac_func();
12005 int main() {
12007 /* The GNU C library defines this for functions which it implements
12008 to always fail with ENOSYS. Some functions are actually named
12009 something starting with __ and the normal name is an alias. */
12010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12011 choke me
12012 #else
12013 $ac_func();
12014 #endif
12016 ; return 0; }
12018 if { (eval echo configure:12019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12019 rm -rf conftest*
12020 eval "ac_cv_func_$ac_func=yes"
12021 else
12022 echo "configure: failed program was:" >&5
12023 cat conftest.$ac_ext >&5
12024 rm -rf conftest*
12025 eval "ac_cv_func_$ac_func=no"
12027 rm -f conftest*
12030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12031 echo "$ac_t""yes" 1>&6
12032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12033 cat >> confdefs.h <<EOF
12034 #define $ac_tr_func 1
12037 else
12038 echo "$ac_t""no" 1>&6
12040 done
12047 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
12048 echo "configure:12049: checking for isnan declaration" >&5
12049 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
12050 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
12051 echo $ac_n "(cached) $ac_c" 1>&6
12052 else
12055 ac_ext=C
12056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12057 ac_cpp='$CXXCPP $CPPFLAGS'
12058 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12059 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12060 cross_compiling=$ac_cv_prog_cxx_cross
12062 cat > conftest.$ac_ext <<EOF
12063 #line 12064 "configure"
12064 #include "confdefs.h"
12065 #include <math.h>
12066 #ifdef HAVE_IEEEFP_H
12067 #include <ieeefp.h>
12068 #endif
12070 int main() {
12071 isnan(0);
12072 ; return 0; }
12074 if { (eval echo configure:12075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12075 rm -rf conftest*
12076 glibcpp_cv_func_isnan_use=yes
12077 else
12078 echo "configure: failed program was:" >&5
12079 cat conftest.$ac_ext >&5
12080 rm -rf conftest*
12081 glibcpp_cv_func_isnan_use=no
12083 rm -f conftest*
12084 ac_ext=c
12085 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12086 ac_cpp='$CPP $CPPFLAGS'
12087 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12088 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12089 cross_compiling=$ac_cv_prog_cc_cross
12095 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
12097 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
12098 for ac_func in isnan
12100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12101 echo "configure:12102: checking for $ac_func" >&5
12102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12103 echo $ac_n "(cached) $ac_c" 1>&6
12104 else
12105 cat > conftest.$ac_ext <<EOF
12106 #line 12107 "configure"
12107 #include "confdefs.h"
12108 /* System header to define __stub macros and hopefully few prototypes,
12109 which can conflict with char $ac_func(); below. */
12110 #include <assert.h>
12111 /* Override any gcc2 internal prototype to avoid an error. */
12112 /* We use char because int might match the return type of a gcc2
12113 builtin and then its argument prototype would still apply. */
12114 char $ac_func();
12116 int main() {
12118 /* The GNU C library defines this for functions which it implements
12119 to always fail with ENOSYS. Some functions are actually named
12120 something starting with __ and the normal name is an alias. */
12121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12122 choke me
12123 #else
12124 $ac_func();
12125 #endif
12127 ; return 0; }
12129 if { (eval echo configure:12130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12130 rm -rf conftest*
12131 eval "ac_cv_func_$ac_func=yes"
12132 else
12133 echo "configure: failed program was:" >&5
12134 cat conftest.$ac_ext >&5
12135 rm -rf conftest*
12136 eval "ac_cv_func_$ac_func=no"
12138 rm -f conftest*
12141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12142 echo "$ac_t""yes" 1>&6
12143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12144 cat >> confdefs.h <<EOF
12145 #define $ac_tr_func 1
12148 else
12149 echo "$ac_t""no" 1>&6
12151 done
12153 else
12155 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
12156 echo "configure:12157: checking for _isnan declaration" >&5
12157 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
12158 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
12159 echo $ac_n "(cached) $ac_c" 1>&6
12160 else
12163 ac_ext=C
12164 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12165 ac_cpp='$CXXCPP $CPPFLAGS'
12166 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12167 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12168 cross_compiling=$ac_cv_prog_cxx_cross
12170 cat > conftest.$ac_ext <<EOF
12171 #line 12172 "configure"
12172 #include "confdefs.h"
12173 #include <math.h>
12174 #ifdef HAVE_IEEEFP_H
12175 #include <ieeefp.h>
12176 #endif
12178 int main() {
12179 _isnan(0);
12180 ; return 0; }
12182 if { (eval echo configure:12183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12183 rm -rf conftest*
12184 glibcpp_cv_func__isnan_use=yes
12185 else
12186 echo "configure: failed program was:" >&5
12187 cat conftest.$ac_ext >&5
12188 rm -rf conftest*
12189 glibcpp_cv_func__isnan_use=no
12191 rm -f conftest*
12192 ac_ext=c
12193 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12194 ac_cpp='$CPP $CPPFLAGS'
12195 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12196 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12197 cross_compiling=$ac_cv_prog_cc_cross
12203 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
12205 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
12206 for ac_func in _isnan
12208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12209 echo "configure:12210: checking for $ac_func" >&5
12210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12211 echo $ac_n "(cached) $ac_c" 1>&6
12212 else
12213 cat > conftest.$ac_ext <<EOF
12214 #line 12215 "configure"
12215 #include "confdefs.h"
12216 /* System header to define __stub macros and hopefully few prototypes,
12217 which can conflict with char $ac_func(); below. */
12218 #include <assert.h>
12219 /* Override any gcc2 internal prototype to avoid an error. */
12220 /* We use char because int might match the return type of a gcc2
12221 builtin and then its argument prototype would still apply. */
12222 char $ac_func();
12224 int main() {
12226 /* The GNU C library defines this for functions which it implements
12227 to always fail with ENOSYS. Some functions are actually named
12228 something starting with __ and the normal name is an alias. */
12229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12230 choke me
12231 #else
12232 $ac_func();
12233 #endif
12235 ; return 0; }
12237 if { (eval echo configure:12238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12238 rm -rf conftest*
12239 eval "ac_cv_func_$ac_func=yes"
12240 else
12241 echo "configure: failed program was:" >&5
12242 cat conftest.$ac_ext >&5
12243 rm -rf conftest*
12244 eval "ac_cv_func_$ac_func=no"
12246 rm -f conftest*
12249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12250 echo "$ac_t""yes" 1>&6
12251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12252 cat >> confdefs.h <<EOF
12253 #define $ac_tr_func 1
12256 else
12257 echo "$ac_t""no" 1>&6
12259 done
12266 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
12267 echo "configure:12268: checking for finite declaration" >&5
12268 if test x${glibcpp_cv_func_finite_use+set} != xset; then
12269 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
12270 echo $ac_n "(cached) $ac_c" 1>&6
12271 else
12274 ac_ext=C
12275 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12276 ac_cpp='$CXXCPP $CPPFLAGS'
12277 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12278 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12279 cross_compiling=$ac_cv_prog_cxx_cross
12281 cat > conftest.$ac_ext <<EOF
12282 #line 12283 "configure"
12283 #include "confdefs.h"
12284 #include <math.h>
12285 #ifdef HAVE_IEEEFP_H
12286 #include <ieeefp.h>
12287 #endif
12289 int main() {
12290 finite(0);
12291 ; return 0; }
12293 if { (eval echo configure:12294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12294 rm -rf conftest*
12295 glibcpp_cv_func_finite_use=yes
12296 else
12297 echo "configure: failed program was:" >&5
12298 cat conftest.$ac_ext >&5
12299 rm -rf conftest*
12300 glibcpp_cv_func_finite_use=no
12302 rm -f conftest*
12303 ac_ext=c
12304 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12305 ac_cpp='$CPP $CPPFLAGS'
12306 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12307 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12308 cross_compiling=$ac_cv_prog_cc_cross
12314 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
12316 if test x$glibcpp_cv_func_finite_use = x"yes"; then
12317 for ac_func in finite
12319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12320 echo "configure:12321: checking for $ac_func" >&5
12321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12322 echo $ac_n "(cached) $ac_c" 1>&6
12323 else
12324 cat > conftest.$ac_ext <<EOF
12325 #line 12326 "configure"
12326 #include "confdefs.h"
12327 /* System header to define __stub macros and hopefully few prototypes,
12328 which can conflict with char $ac_func(); below. */
12329 #include <assert.h>
12330 /* Override any gcc2 internal prototype to avoid an error. */
12331 /* We use char because int might match the return type of a gcc2
12332 builtin and then its argument prototype would still apply. */
12333 char $ac_func();
12335 int main() {
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 $ac_func();
12344 #endif
12346 ; return 0; }
12348 if { (eval echo configure:12349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12349 rm -rf conftest*
12350 eval "ac_cv_func_$ac_func=yes"
12351 else
12352 echo "configure: failed program was:" >&5
12353 cat conftest.$ac_ext >&5
12354 rm -rf conftest*
12355 eval "ac_cv_func_$ac_func=no"
12357 rm -f conftest*
12360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12361 echo "$ac_t""yes" 1>&6
12362 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12363 cat >> confdefs.h <<EOF
12364 #define $ac_tr_func 1
12367 else
12368 echo "$ac_t""no" 1>&6
12370 done
12372 else
12374 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
12375 echo "configure:12376: checking for _finite declaration" >&5
12376 if test x${glibcpp_cv_func__finite_use+set} != xset; then
12377 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
12378 echo $ac_n "(cached) $ac_c" 1>&6
12379 else
12382 ac_ext=C
12383 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12384 ac_cpp='$CXXCPP $CPPFLAGS'
12385 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12386 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12387 cross_compiling=$ac_cv_prog_cxx_cross
12389 cat > conftest.$ac_ext <<EOF
12390 #line 12391 "configure"
12391 #include "confdefs.h"
12392 #include <math.h>
12393 #ifdef HAVE_IEEEFP_H
12394 #include <ieeefp.h>
12395 #endif
12397 int main() {
12398 _finite(0);
12399 ; return 0; }
12401 if { (eval echo configure:12402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12402 rm -rf conftest*
12403 glibcpp_cv_func__finite_use=yes
12404 else
12405 echo "configure: failed program was:" >&5
12406 cat conftest.$ac_ext >&5
12407 rm -rf conftest*
12408 glibcpp_cv_func__finite_use=no
12410 rm -f conftest*
12411 ac_ext=c
12412 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12413 ac_cpp='$CPP $CPPFLAGS'
12414 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12415 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12416 cross_compiling=$ac_cv_prog_cc_cross
12422 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
12424 if test x$glibcpp_cv_func__finite_use = x"yes"; then
12425 for ac_func in _finite
12427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12428 echo "configure:12429: checking for $ac_func" >&5
12429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12430 echo $ac_n "(cached) $ac_c" 1>&6
12431 else
12432 cat > conftest.$ac_ext <<EOF
12433 #line 12434 "configure"
12434 #include "confdefs.h"
12435 /* System header to define __stub macros and hopefully few prototypes,
12436 which can conflict with char $ac_func(); below. */
12437 #include <assert.h>
12438 /* Override any gcc2 internal prototype to avoid an error. */
12439 /* We use char because int might match the return type of a gcc2
12440 builtin and then its argument prototype would still apply. */
12441 char $ac_func();
12443 int main() {
12445 /* The GNU C library defines this for functions which it implements
12446 to always fail with ENOSYS. Some functions are actually named
12447 something starting with __ and the normal name is an alias. */
12448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12449 choke me
12450 #else
12451 $ac_func();
12452 #endif
12454 ; return 0; }
12456 if { (eval echo configure:12457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12457 rm -rf conftest*
12458 eval "ac_cv_func_$ac_func=yes"
12459 else
12460 echo "configure: failed program was:" >&5
12461 cat conftest.$ac_ext >&5
12462 rm -rf conftest*
12463 eval "ac_cv_func_$ac_func=no"
12465 rm -f conftest*
12468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12469 echo "$ac_t""yes" 1>&6
12470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12471 cat >> confdefs.h <<EOF
12472 #define $ac_tr_func 1
12475 else
12476 echo "$ac_t""no" 1>&6
12478 done
12485 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
12486 echo "configure:12487: checking for copysign declaration" >&5
12487 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
12488 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
12489 echo $ac_n "(cached) $ac_c" 1>&6
12490 else
12493 ac_ext=C
12494 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12495 ac_cpp='$CXXCPP $CPPFLAGS'
12496 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12497 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12498 cross_compiling=$ac_cv_prog_cxx_cross
12500 cat > conftest.$ac_ext <<EOF
12501 #line 12502 "configure"
12502 #include "confdefs.h"
12503 #include <math.h>
12504 int main() {
12505 copysign(0, 0);
12506 ; return 0; }
12508 if { (eval echo configure:12509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12509 rm -rf conftest*
12510 glibcpp_cv_func_copysign_use=yes
12511 else
12512 echo "configure: failed program was:" >&5
12513 cat conftest.$ac_ext >&5
12514 rm -rf conftest*
12515 glibcpp_cv_func_copysign_use=no
12517 rm -f conftest*
12518 ac_ext=c
12519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12520 ac_cpp='$CPP $CPPFLAGS'
12521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12523 cross_compiling=$ac_cv_prog_cc_cross
12529 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
12531 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
12532 for ac_func in copysign
12534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12535 echo "configure:12536: checking for $ac_func" >&5
12536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12537 echo $ac_n "(cached) $ac_c" 1>&6
12538 else
12539 cat > conftest.$ac_ext <<EOF
12540 #line 12541 "configure"
12541 #include "confdefs.h"
12542 /* System header to define __stub macros and hopefully few prototypes,
12543 which can conflict with char $ac_func(); below. */
12544 #include <assert.h>
12545 /* Override any gcc2 internal prototype to avoid an error. */
12546 /* We use char because int might match the return type of a gcc2
12547 builtin and then its argument prototype would still apply. */
12548 char $ac_func();
12550 int main() {
12552 /* The GNU C library defines this for functions which it implements
12553 to always fail with ENOSYS. Some functions are actually named
12554 something starting with __ and the normal name is an alias. */
12555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12556 choke me
12557 #else
12558 $ac_func();
12559 #endif
12561 ; return 0; }
12563 if { (eval echo configure:12564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12564 rm -rf conftest*
12565 eval "ac_cv_func_$ac_func=yes"
12566 else
12567 echo "configure: failed program was:" >&5
12568 cat conftest.$ac_ext >&5
12569 rm -rf conftest*
12570 eval "ac_cv_func_$ac_func=no"
12572 rm -f conftest*
12575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12576 echo "$ac_t""yes" 1>&6
12577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12578 cat >> confdefs.h <<EOF
12579 #define $ac_tr_func 1
12582 else
12583 echo "$ac_t""no" 1>&6
12585 done
12587 else
12589 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
12590 echo "configure:12591: checking for _copysign declaration" >&5
12591 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
12592 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
12593 echo $ac_n "(cached) $ac_c" 1>&6
12594 else
12597 ac_ext=C
12598 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12599 ac_cpp='$CXXCPP $CPPFLAGS'
12600 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12601 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12602 cross_compiling=$ac_cv_prog_cxx_cross
12604 cat > conftest.$ac_ext <<EOF
12605 #line 12606 "configure"
12606 #include "confdefs.h"
12607 #include <math.h>
12608 int main() {
12609 _copysign(0, 0);
12610 ; return 0; }
12612 if { (eval echo configure:12613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12613 rm -rf conftest*
12614 glibcpp_cv_func__copysign_use=yes
12615 else
12616 echo "configure: failed program was:" >&5
12617 cat conftest.$ac_ext >&5
12618 rm -rf conftest*
12619 glibcpp_cv_func__copysign_use=no
12621 rm -f conftest*
12622 ac_ext=c
12623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12624 ac_cpp='$CPP $CPPFLAGS'
12625 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12626 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12627 cross_compiling=$ac_cv_prog_cc_cross
12633 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
12635 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
12636 for ac_func in _copysign
12638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12639 echo "configure:12640: checking for $ac_func" >&5
12640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12641 echo $ac_n "(cached) $ac_c" 1>&6
12642 else
12643 cat > conftest.$ac_ext <<EOF
12644 #line 12645 "configure"
12645 #include "confdefs.h"
12646 /* System header to define __stub macros and hopefully few prototypes,
12647 which can conflict with char $ac_func(); below. */
12648 #include <assert.h>
12649 /* Override any gcc2 internal prototype to avoid an error. */
12650 /* We use char because int might match the return type of a gcc2
12651 builtin and then its argument prototype would still apply. */
12652 char $ac_func();
12654 int main() {
12656 /* The GNU C library defines this for functions which it implements
12657 to always fail with ENOSYS. Some functions are actually named
12658 something starting with __ and the normal name is an alias. */
12659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12660 choke me
12661 #else
12662 $ac_func();
12663 #endif
12665 ; return 0; }
12667 if { (eval echo configure:12668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12668 rm -rf conftest*
12669 eval "ac_cv_func_$ac_func=yes"
12670 else
12671 echo "configure: failed program was:" >&5
12672 cat conftest.$ac_ext >&5
12673 rm -rf conftest*
12674 eval "ac_cv_func_$ac_func=no"
12676 rm -f conftest*
12679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12680 echo "$ac_t""yes" 1>&6
12681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12682 cat >> confdefs.h <<EOF
12683 #define $ac_tr_func 1
12686 else
12687 echo "$ac_t""no" 1>&6
12689 done
12696 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
12697 echo "configure:12698: checking for sincos declaration" >&5
12698 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
12699 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
12700 echo $ac_n "(cached) $ac_c" 1>&6
12701 else
12704 ac_ext=C
12705 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12706 ac_cpp='$CXXCPP $CPPFLAGS'
12707 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12708 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12709 cross_compiling=$ac_cv_prog_cxx_cross
12711 cat > conftest.$ac_ext <<EOF
12712 #line 12713 "configure"
12713 #include "confdefs.h"
12714 #include <math.h>
12715 int main() {
12716 sincos(0, 0, 0);
12717 ; return 0; }
12719 if { (eval echo configure:12720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12720 rm -rf conftest*
12721 glibcpp_cv_func_sincos_use=yes
12722 else
12723 echo "configure: failed program was:" >&5
12724 cat conftest.$ac_ext >&5
12725 rm -rf conftest*
12726 glibcpp_cv_func_sincos_use=no
12728 rm -f conftest*
12729 ac_ext=c
12730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12731 ac_cpp='$CPP $CPPFLAGS'
12732 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12733 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12734 cross_compiling=$ac_cv_prog_cc_cross
12740 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
12742 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
12743 for ac_func in sincos
12745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12746 echo "configure:12747: checking for $ac_func" >&5
12747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12748 echo $ac_n "(cached) $ac_c" 1>&6
12749 else
12750 cat > conftest.$ac_ext <<EOF
12751 #line 12752 "configure"
12752 #include "confdefs.h"
12753 /* System header to define __stub macros and hopefully few prototypes,
12754 which can conflict with char $ac_func(); below. */
12755 #include <assert.h>
12756 /* Override any gcc2 internal prototype to avoid an error. */
12757 /* We use char because int might match the return type of a gcc2
12758 builtin and then its argument prototype would still apply. */
12759 char $ac_func();
12761 int main() {
12763 /* The GNU C library defines this for functions which it implements
12764 to always fail with ENOSYS. Some functions are actually named
12765 something starting with __ and the normal name is an alias. */
12766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12767 choke me
12768 #else
12769 $ac_func();
12770 #endif
12772 ; return 0; }
12774 if { (eval echo configure:12775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12775 rm -rf conftest*
12776 eval "ac_cv_func_$ac_func=yes"
12777 else
12778 echo "configure: failed program was:" >&5
12779 cat conftest.$ac_ext >&5
12780 rm -rf conftest*
12781 eval "ac_cv_func_$ac_func=no"
12783 rm -f conftest*
12786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12787 echo "$ac_t""yes" 1>&6
12788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12789 cat >> confdefs.h <<EOF
12790 #define $ac_tr_func 1
12793 else
12794 echo "$ac_t""no" 1>&6
12796 done
12798 else
12800 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
12801 echo "configure:12802: checking for _sincos declaration" >&5
12802 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
12803 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
12804 echo $ac_n "(cached) $ac_c" 1>&6
12805 else
12808 ac_ext=C
12809 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12810 ac_cpp='$CXXCPP $CPPFLAGS'
12811 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12812 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12813 cross_compiling=$ac_cv_prog_cxx_cross
12815 cat > conftest.$ac_ext <<EOF
12816 #line 12817 "configure"
12817 #include "confdefs.h"
12818 #include <math.h>
12819 int main() {
12820 _sincos(0, 0, 0);
12821 ; return 0; }
12823 if { (eval echo configure:12824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12824 rm -rf conftest*
12825 glibcpp_cv_func__sincos_use=yes
12826 else
12827 echo "configure: failed program was:" >&5
12828 cat conftest.$ac_ext >&5
12829 rm -rf conftest*
12830 glibcpp_cv_func__sincos_use=no
12832 rm -f conftest*
12833 ac_ext=c
12834 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12835 ac_cpp='$CPP $CPPFLAGS'
12836 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12837 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12838 cross_compiling=$ac_cv_prog_cc_cross
12844 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
12846 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
12847 for ac_func in _sincos
12849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12850 echo "configure:12851: checking for $ac_func" >&5
12851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12852 echo $ac_n "(cached) $ac_c" 1>&6
12853 else
12854 cat > conftest.$ac_ext <<EOF
12855 #line 12856 "configure"
12856 #include "confdefs.h"
12857 /* System header to define __stub macros and hopefully few prototypes,
12858 which can conflict with char $ac_func(); below. */
12859 #include <assert.h>
12860 /* Override any gcc2 internal prototype to avoid an error. */
12861 /* We use char because int might match the return type of a gcc2
12862 builtin and then its argument prototype would still apply. */
12863 char $ac_func();
12865 int main() {
12867 /* The GNU C library defines this for functions which it implements
12868 to always fail with ENOSYS. Some functions are actually named
12869 something starting with __ and the normal name is an alias. */
12870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12871 choke me
12872 #else
12873 $ac_func();
12874 #endif
12876 ; return 0; }
12878 if { (eval echo configure:12879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12879 rm -rf conftest*
12880 eval "ac_cv_func_$ac_func=yes"
12881 else
12882 echo "configure: failed program was:" >&5
12883 cat conftest.$ac_ext >&5
12884 rm -rf conftest*
12885 eval "ac_cv_func_$ac_func=no"
12887 rm -f conftest*
12890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12891 echo "$ac_t""yes" 1>&6
12892 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12893 cat >> confdefs.h <<EOF
12894 #define $ac_tr_func 1
12897 else
12898 echo "$ac_t""no" 1>&6
12900 done
12907 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
12908 echo "configure:12909: checking for fpclass declaration" >&5
12909 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
12910 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
12911 echo $ac_n "(cached) $ac_c" 1>&6
12912 else
12915 ac_ext=C
12916 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12917 ac_cpp='$CXXCPP $CPPFLAGS'
12918 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12919 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12920 cross_compiling=$ac_cv_prog_cxx_cross
12922 cat > conftest.$ac_ext <<EOF
12923 #line 12924 "configure"
12924 #include "confdefs.h"
12925 #include <math.h>
12926 #ifdef HAVE_IEEEFP_H
12927 #include <ieeefp.h>
12928 #endif
12930 int main() {
12931 fpclass(0);
12932 ; return 0; }
12934 if { (eval echo configure:12935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12935 rm -rf conftest*
12936 glibcpp_cv_func_fpclass_use=yes
12937 else
12938 echo "configure: failed program was:" >&5
12939 cat conftest.$ac_ext >&5
12940 rm -rf conftest*
12941 glibcpp_cv_func_fpclass_use=no
12943 rm -f conftest*
12944 ac_ext=c
12945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12946 ac_cpp='$CPP $CPPFLAGS'
12947 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12948 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12949 cross_compiling=$ac_cv_prog_cc_cross
12955 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
12957 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
12958 for ac_func in fpclass
12960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12961 echo "configure:12962: checking for $ac_func" >&5
12962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12963 echo $ac_n "(cached) $ac_c" 1>&6
12964 else
12965 cat > conftest.$ac_ext <<EOF
12966 #line 12967 "configure"
12967 #include "confdefs.h"
12968 /* System header to define __stub macros and hopefully few prototypes,
12969 which can conflict with char $ac_func(); below. */
12970 #include <assert.h>
12971 /* Override any gcc2 internal prototype to avoid an error. */
12972 /* We use char because int might match the return type of a gcc2
12973 builtin and then its argument prototype would still apply. */
12974 char $ac_func();
12976 int main() {
12978 /* The GNU C library defines this for functions which it implements
12979 to always fail with ENOSYS. Some functions are actually named
12980 something starting with __ and the normal name is an alias. */
12981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12982 choke me
12983 #else
12984 $ac_func();
12985 #endif
12987 ; return 0; }
12989 if { (eval echo configure:12990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12990 rm -rf conftest*
12991 eval "ac_cv_func_$ac_func=yes"
12992 else
12993 echo "configure: failed program was:" >&5
12994 cat conftest.$ac_ext >&5
12995 rm -rf conftest*
12996 eval "ac_cv_func_$ac_func=no"
12998 rm -f conftest*
13001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13002 echo "$ac_t""yes" 1>&6
13003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13004 cat >> confdefs.h <<EOF
13005 #define $ac_tr_func 1
13008 else
13009 echo "$ac_t""no" 1>&6
13011 done
13013 else
13015 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
13016 echo "configure:13017: checking for _fpclass declaration" >&5
13017 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
13018 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
13019 echo $ac_n "(cached) $ac_c" 1>&6
13020 else
13023 ac_ext=C
13024 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13025 ac_cpp='$CXXCPP $CPPFLAGS'
13026 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13027 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13028 cross_compiling=$ac_cv_prog_cxx_cross
13030 cat > conftest.$ac_ext <<EOF
13031 #line 13032 "configure"
13032 #include "confdefs.h"
13033 #include <math.h>
13034 #ifdef HAVE_IEEEFP_H
13035 #include <ieeefp.h>
13036 #endif
13038 int main() {
13039 _fpclass(0);
13040 ; return 0; }
13042 if { (eval echo configure:13043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13043 rm -rf conftest*
13044 glibcpp_cv_func__fpclass_use=yes
13045 else
13046 echo "configure: failed program was:" >&5
13047 cat conftest.$ac_ext >&5
13048 rm -rf conftest*
13049 glibcpp_cv_func__fpclass_use=no
13051 rm -f conftest*
13052 ac_ext=c
13053 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13054 ac_cpp='$CPP $CPPFLAGS'
13055 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13056 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13057 cross_compiling=$ac_cv_prog_cc_cross
13063 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
13065 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
13066 for ac_func in _fpclass
13068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13069 echo "configure:13070: checking for $ac_func" >&5
13070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13071 echo $ac_n "(cached) $ac_c" 1>&6
13072 else
13073 cat > conftest.$ac_ext <<EOF
13074 #line 13075 "configure"
13075 #include "confdefs.h"
13076 /* System header to define __stub macros and hopefully few prototypes,
13077 which can conflict with char $ac_func(); below. */
13078 #include <assert.h>
13079 /* Override any gcc2 internal prototype to avoid an error. */
13080 /* We use char because int might match the return type of a gcc2
13081 builtin and then its argument prototype would still apply. */
13082 char $ac_func();
13084 int main() {
13086 /* The GNU C library defines this for functions which it implements
13087 to always fail with ENOSYS. Some functions are actually named
13088 something starting with __ and the normal name is an alias. */
13089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13090 choke me
13091 #else
13092 $ac_func();
13093 #endif
13095 ; return 0; }
13097 if { (eval echo configure:13098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13098 rm -rf conftest*
13099 eval "ac_cv_func_$ac_func=yes"
13100 else
13101 echo "configure: failed program was:" >&5
13102 cat conftest.$ac_ext >&5
13103 rm -rf conftest*
13104 eval "ac_cv_func_$ac_func=no"
13106 rm -f conftest*
13109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13110 echo "$ac_t""yes" 1>&6
13111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13112 cat >> confdefs.h <<EOF
13113 #define $ac_tr_func 1
13116 else
13117 echo "$ac_t""no" 1>&6
13119 done
13126 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
13127 echo "configure:13128: checking for qfpclass declaration" >&5
13128 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
13129 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
13130 echo $ac_n "(cached) $ac_c" 1>&6
13131 else
13134 ac_ext=C
13135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13136 ac_cpp='$CXXCPP $CPPFLAGS'
13137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13139 cross_compiling=$ac_cv_prog_cxx_cross
13141 cat > conftest.$ac_ext <<EOF
13142 #line 13143 "configure"
13143 #include "confdefs.h"
13144 #include <math.h>
13145 #ifdef HAVE_IEEEFP_H
13146 #include <ieeefp.h>
13147 #endif
13149 int main() {
13150 qfpclass(0);
13151 ; return 0; }
13153 if { (eval echo configure:13154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13154 rm -rf conftest*
13155 glibcpp_cv_func_qfpclass_use=yes
13156 else
13157 echo "configure: failed program was:" >&5
13158 cat conftest.$ac_ext >&5
13159 rm -rf conftest*
13160 glibcpp_cv_func_qfpclass_use=no
13162 rm -f conftest*
13163 ac_ext=c
13164 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13165 ac_cpp='$CPP $CPPFLAGS'
13166 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13167 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13168 cross_compiling=$ac_cv_prog_cc_cross
13174 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
13176 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
13177 for ac_func in qfpclass
13179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13180 echo "configure:13181: checking for $ac_func" >&5
13181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13182 echo $ac_n "(cached) $ac_c" 1>&6
13183 else
13184 cat > conftest.$ac_ext <<EOF
13185 #line 13186 "configure"
13186 #include "confdefs.h"
13187 /* System header to define __stub macros and hopefully few prototypes,
13188 which can conflict with char $ac_func(); below. */
13189 #include <assert.h>
13190 /* Override any gcc2 internal prototype to avoid an error. */
13191 /* We use char because int might match the return type of a gcc2
13192 builtin and then its argument prototype would still apply. */
13193 char $ac_func();
13195 int main() {
13197 /* The GNU C library defines this for functions which it implements
13198 to always fail with ENOSYS. Some functions are actually named
13199 something starting with __ and the normal name is an alias. */
13200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13201 choke me
13202 #else
13203 $ac_func();
13204 #endif
13206 ; return 0; }
13208 if { (eval echo configure:13209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13209 rm -rf conftest*
13210 eval "ac_cv_func_$ac_func=yes"
13211 else
13212 echo "configure: failed program was:" >&5
13213 cat conftest.$ac_ext >&5
13214 rm -rf conftest*
13215 eval "ac_cv_func_$ac_func=no"
13217 rm -f conftest*
13220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13221 echo "$ac_t""yes" 1>&6
13222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13223 cat >> confdefs.h <<EOF
13224 #define $ac_tr_func 1
13227 else
13228 echo "$ac_t""no" 1>&6
13230 done
13232 else
13234 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
13235 echo "configure:13236: checking for _qfpclass declaration" >&5
13236 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
13237 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
13238 echo $ac_n "(cached) $ac_c" 1>&6
13239 else
13242 ac_ext=C
13243 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13244 ac_cpp='$CXXCPP $CPPFLAGS'
13245 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13246 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13247 cross_compiling=$ac_cv_prog_cxx_cross
13249 cat > conftest.$ac_ext <<EOF
13250 #line 13251 "configure"
13251 #include "confdefs.h"
13252 #include <math.h>
13253 #ifdef HAVE_IEEEFP_H
13254 #include <ieeefp.h>
13255 #endif
13257 int main() {
13258 _qfpclass(0);
13259 ; return 0; }
13261 if { (eval echo configure:13262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13262 rm -rf conftest*
13263 glibcpp_cv_func__qfpclass_use=yes
13264 else
13265 echo "configure: failed program was:" >&5
13266 cat conftest.$ac_ext >&5
13267 rm -rf conftest*
13268 glibcpp_cv_func__qfpclass_use=no
13270 rm -f conftest*
13271 ac_ext=c
13272 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13273 ac_cpp='$CPP $CPPFLAGS'
13274 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13275 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13276 cross_compiling=$ac_cv_prog_cc_cross
13282 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
13284 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
13285 for ac_func in _qfpclass
13287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13288 echo "configure:13289: checking for $ac_func" >&5
13289 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13290 echo $ac_n "(cached) $ac_c" 1>&6
13291 else
13292 cat > conftest.$ac_ext <<EOF
13293 #line 13294 "configure"
13294 #include "confdefs.h"
13295 /* System header to define __stub macros and hopefully few prototypes,
13296 which can conflict with char $ac_func(); below. */
13297 #include <assert.h>
13298 /* Override any gcc2 internal prototype to avoid an error. */
13299 /* We use char because int might match the return type of a gcc2
13300 builtin and then its argument prototype would still apply. */
13301 char $ac_func();
13303 int main() {
13305 /* The GNU C library defines this for functions which it implements
13306 to always fail with ENOSYS. Some functions are actually named
13307 something starting with __ and the normal name is an alias. */
13308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13309 choke me
13310 #else
13311 $ac_func();
13312 #endif
13314 ; return 0; }
13316 if { (eval echo configure:13317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13317 rm -rf conftest*
13318 eval "ac_cv_func_$ac_func=yes"
13319 else
13320 echo "configure: failed program was:" >&5
13321 cat conftest.$ac_ext >&5
13322 rm -rf conftest*
13323 eval "ac_cv_func_$ac_func=no"
13325 rm -f conftest*
13328 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13329 echo "$ac_t""yes" 1>&6
13330 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13331 cat >> confdefs.h <<EOF
13332 #define $ac_tr_func 1
13335 else
13336 echo "$ac_t""no" 1>&6
13338 done
13345 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
13346 echo "configure:13347: checking for hypot declaration" >&5
13347 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
13348 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
13349 echo $ac_n "(cached) $ac_c" 1>&6
13350 else
13353 ac_ext=C
13354 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13355 ac_cpp='$CXXCPP $CPPFLAGS'
13356 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13357 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13358 cross_compiling=$ac_cv_prog_cxx_cross
13360 cat > conftest.$ac_ext <<EOF
13361 #line 13362 "configure"
13362 #include "confdefs.h"
13363 #include <math.h>
13364 int main() {
13365 hypot(0, 0);
13366 ; return 0; }
13368 if { (eval echo configure:13369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13369 rm -rf conftest*
13370 glibcpp_cv_func_hypot_use=yes
13371 else
13372 echo "configure: failed program was:" >&5
13373 cat conftest.$ac_ext >&5
13374 rm -rf conftest*
13375 glibcpp_cv_func_hypot_use=no
13377 rm -f conftest*
13378 ac_ext=c
13379 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13380 ac_cpp='$CPP $CPPFLAGS'
13381 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13382 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13383 cross_compiling=$ac_cv_prog_cc_cross
13389 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
13391 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
13392 for ac_func in hypot
13394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13395 echo "configure:13396: checking for $ac_func" >&5
13396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13397 echo $ac_n "(cached) $ac_c" 1>&6
13398 else
13399 cat > conftest.$ac_ext <<EOF
13400 #line 13401 "configure"
13401 #include "confdefs.h"
13402 /* System header to define __stub macros and hopefully few prototypes,
13403 which can conflict with char $ac_func(); below. */
13404 #include <assert.h>
13405 /* Override any gcc2 internal prototype to avoid an error. */
13406 /* We use char because int might match the return type of a gcc2
13407 builtin and then its argument prototype would still apply. */
13408 char $ac_func();
13410 int main() {
13412 /* The GNU C library defines this for functions which it implements
13413 to always fail with ENOSYS. Some functions are actually named
13414 something starting with __ and the normal name is an alias. */
13415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13416 choke me
13417 #else
13418 $ac_func();
13419 #endif
13421 ; return 0; }
13423 if { (eval echo configure:13424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13424 rm -rf conftest*
13425 eval "ac_cv_func_$ac_func=yes"
13426 else
13427 echo "configure: failed program was:" >&5
13428 cat conftest.$ac_ext >&5
13429 rm -rf conftest*
13430 eval "ac_cv_func_$ac_func=no"
13432 rm -f conftest*
13435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13436 echo "$ac_t""yes" 1>&6
13437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13438 cat >> confdefs.h <<EOF
13439 #define $ac_tr_func 1
13442 else
13443 echo "$ac_t""no" 1>&6
13445 done
13447 else
13449 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
13450 echo "configure:13451: checking for _hypot declaration" >&5
13451 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
13452 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
13453 echo $ac_n "(cached) $ac_c" 1>&6
13454 else
13457 ac_ext=C
13458 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13459 ac_cpp='$CXXCPP $CPPFLAGS'
13460 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13461 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13462 cross_compiling=$ac_cv_prog_cxx_cross
13464 cat > conftest.$ac_ext <<EOF
13465 #line 13466 "configure"
13466 #include "confdefs.h"
13467 #include <math.h>
13468 int main() {
13469 _hypot(0, 0);
13470 ; return 0; }
13472 if { (eval echo configure:13473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13473 rm -rf conftest*
13474 glibcpp_cv_func__hypot_use=yes
13475 else
13476 echo "configure: failed program was:" >&5
13477 cat conftest.$ac_ext >&5
13478 rm -rf conftest*
13479 glibcpp_cv_func__hypot_use=no
13481 rm -f conftest*
13482 ac_ext=c
13483 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13484 ac_cpp='$CPP $CPPFLAGS'
13485 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13486 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13487 cross_compiling=$ac_cv_prog_cc_cross
13493 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
13495 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
13496 for ac_func in _hypot
13498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13499 echo "configure:13500: checking for $ac_func" >&5
13500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13501 echo $ac_n "(cached) $ac_c" 1>&6
13502 else
13503 cat > conftest.$ac_ext <<EOF
13504 #line 13505 "configure"
13505 #include "confdefs.h"
13506 /* System header to define __stub macros and hopefully few prototypes,
13507 which can conflict with char $ac_func(); below. */
13508 #include <assert.h>
13509 /* Override any gcc2 internal prototype to avoid an error. */
13510 /* We use char because int might match the return type of a gcc2
13511 builtin and then its argument prototype would still apply. */
13512 char $ac_func();
13514 int main() {
13516 /* The GNU C library defines this for functions which it implements
13517 to always fail with ENOSYS. Some functions are actually named
13518 something starting with __ and the normal name is an alias. */
13519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13520 choke me
13521 #else
13522 $ac_func();
13523 #endif
13525 ; return 0; }
13527 if { (eval echo configure:13528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13528 rm -rf conftest*
13529 eval "ac_cv_func_$ac_func=yes"
13530 else
13531 echo "configure: failed program was:" >&5
13532 cat conftest.$ac_ext >&5
13533 rm -rf conftest*
13534 eval "ac_cv_func_$ac_func=no"
13536 rm -f conftest*
13539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13540 echo "$ac_t""yes" 1>&6
13541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13542 cat >> confdefs.h <<EOF
13543 #define $ac_tr_func 1
13546 else
13547 echo "$ac_t""no" 1>&6
13549 done
13556 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
13557 echo "configure:13558: checking for float trig functions" >&5
13558 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
13559 echo $ac_n "(cached) $ac_c" 1>&6
13560 else
13563 ac_ext=C
13564 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13565 ac_cpp='$CXXCPP $CPPFLAGS'
13566 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13567 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13568 cross_compiling=$ac_cv_prog_cxx_cross
13570 cat > conftest.$ac_ext <<EOF
13571 #line 13572 "configure"
13572 #include "confdefs.h"
13573 #include <math.h>
13574 int main() {
13575 `for x in acosf asinf atanf \
13576 cosf sinf tanf \
13577 coshf sinhf tanhf; do echo "$x (0);"; done`
13578 ; return 0; }
13580 if { (eval echo configure:13581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13581 rm -rf conftest*
13582 glibcpp_cv_func_float_trig_use=yes
13583 else
13584 echo "configure: failed program was:" >&5
13585 cat conftest.$ac_ext >&5
13586 rm -rf conftest*
13587 glibcpp_cv_func_float_trig_use=no
13589 rm -f conftest*
13590 ac_ext=c
13591 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13592 ac_cpp='$CPP $CPPFLAGS'
13593 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13594 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13595 cross_compiling=$ac_cv_prog_cc_cross
13599 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
13600 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
13601 for ac_func in acosf asinf atanf \
13602 cosf sinf tanf \
13603 coshf sinhf tanhf
13605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13606 echo "configure:13607: checking for $ac_func" >&5
13607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13608 echo $ac_n "(cached) $ac_c" 1>&6
13609 else
13610 cat > conftest.$ac_ext <<EOF
13611 #line 13612 "configure"
13612 #include "confdefs.h"
13613 /* System header to define __stub macros and hopefully few prototypes,
13614 which can conflict with char $ac_func(); below. */
13615 #include <assert.h>
13616 /* Override any gcc2 internal prototype to avoid an error. */
13617 /* We use char because int might match the return type of a gcc2
13618 builtin and then its argument prototype would still apply. */
13619 char $ac_func();
13621 int main() {
13623 /* The GNU C library defines this for functions which it implements
13624 to always fail with ENOSYS. Some functions are actually named
13625 something starting with __ and the normal name is an alias. */
13626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13627 choke me
13628 #else
13629 $ac_func();
13630 #endif
13632 ; return 0; }
13634 if { (eval echo configure:13635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13635 rm -rf conftest*
13636 eval "ac_cv_func_$ac_func=yes"
13637 else
13638 echo "configure: failed program was:" >&5
13639 cat conftest.$ac_ext >&5
13640 rm -rf conftest*
13641 eval "ac_cv_func_$ac_func=no"
13643 rm -f conftest*
13646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13647 echo "$ac_t""yes" 1>&6
13648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13649 cat >> confdefs.h <<EOF
13650 #define $ac_tr_func 1
13653 else
13654 echo "$ac_t""no" 1>&6
13656 done
13661 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
13662 echo "configure:13663: checking for float round functions" >&5
13663 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
13664 echo $ac_n "(cached) $ac_c" 1>&6
13665 else
13668 ac_ext=C
13669 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13670 ac_cpp='$CXXCPP $CPPFLAGS'
13671 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13672 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13673 cross_compiling=$ac_cv_prog_cxx_cross
13675 cat > conftest.$ac_ext <<EOF
13676 #line 13677 "configure"
13677 #include "confdefs.h"
13678 #include <math.h>
13679 int main() {
13680 `for x in ceilf floorf; do echo "$x (0);"; done`
13681 ; return 0; }
13683 if { (eval echo configure:13684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13684 rm -rf conftest*
13685 glibcpp_cv_func_float_round_use=yes
13686 else
13687 echo "configure: failed program was:" >&5
13688 cat conftest.$ac_ext >&5
13689 rm -rf conftest*
13690 glibcpp_cv_func_float_round_use=no
13692 rm -f conftest*
13693 ac_ext=c
13694 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13695 ac_cpp='$CPP $CPPFLAGS'
13696 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13697 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13698 cross_compiling=$ac_cv_prog_cc_cross
13702 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
13703 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
13704 for ac_func in ceilf floorf
13706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13707 echo "configure:13708: checking for $ac_func" >&5
13708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13709 echo $ac_n "(cached) $ac_c" 1>&6
13710 else
13711 cat > conftest.$ac_ext <<EOF
13712 #line 13713 "configure"
13713 #include "confdefs.h"
13714 /* System header to define __stub macros and hopefully few prototypes,
13715 which can conflict with char $ac_func(); below. */
13716 #include <assert.h>
13717 /* Override any gcc2 internal prototype to avoid an error. */
13718 /* We use char because int might match the return type of a gcc2
13719 builtin and then its argument prototype would still apply. */
13720 char $ac_func();
13722 int main() {
13724 /* The GNU C library defines this for functions which it implements
13725 to always fail with ENOSYS. Some functions are actually named
13726 something starting with __ and the normal name is an alias. */
13727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13728 choke me
13729 #else
13730 $ac_func();
13731 #endif
13733 ; return 0; }
13735 if { (eval echo configure:13736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13736 rm -rf conftest*
13737 eval "ac_cv_func_$ac_func=yes"
13738 else
13739 echo "configure: failed program was:" >&5
13740 cat conftest.$ac_ext >&5
13741 rm -rf conftest*
13742 eval "ac_cv_func_$ac_func=no"
13744 rm -f conftest*
13747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13748 echo "$ac_t""yes" 1>&6
13749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13750 cat >> confdefs.h <<EOF
13751 #define $ac_tr_func 1
13754 else
13755 echo "$ac_t""no" 1>&6
13757 done
13763 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
13764 echo "configure:13765: checking for expf declaration" >&5
13765 if test x${glibcpp_cv_func_expf_use+set} != xset; then
13766 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
13767 echo $ac_n "(cached) $ac_c" 1>&6
13768 else
13771 ac_ext=C
13772 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13773 ac_cpp='$CXXCPP $CPPFLAGS'
13774 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13775 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13776 cross_compiling=$ac_cv_prog_cxx_cross
13778 cat > conftest.$ac_ext <<EOF
13779 #line 13780 "configure"
13780 #include "confdefs.h"
13781 #include <math.h>
13782 #ifdef HAVE_IEEEFP_H
13783 #include <ieeefp.h>
13784 #endif
13786 int main() {
13787 expf(0);
13788 ; return 0; }
13790 if { (eval echo configure:13791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13791 rm -rf conftest*
13792 glibcpp_cv_func_expf_use=yes
13793 else
13794 echo "configure: failed program was:" >&5
13795 cat conftest.$ac_ext >&5
13796 rm -rf conftest*
13797 glibcpp_cv_func_expf_use=no
13799 rm -f conftest*
13800 ac_ext=c
13801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13802 ac_cpp='$CPP $CPPFLAGS'
13803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13805 cross_compiling=$ac_cv_prog_cc_cross
13811 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
13813 if test x$glibcpp_cv_func_expf_use = x"yes"; then
13814 for ac_func in expf
13816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13817 echo "configure:13818: checking for $ac_func" >&5
13818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13819 echo $ac_n "(cached) $ac_c" 1>&6
13820 else
13821 cat > conftest.$ac_ext <<EOF
13822 #line 13823 "configure"
13823 #include "confdefs.h"
13824 /* System header to define __stub macros and hopefully few prototypes,
13825 which can conflict with char $ac_func(); below. */
13826 #include <assert.h>
13827 /* Override any gcc2 internal prototype to avoid an error. */
13828 /* We use char because int might match the return type of a gcc2
13829 builtin and then its argument prototype would still apply. */
13830 char $ac_func();
13832 int main() {
13834 /* The GNU C library defines this for functions which it implements
13835 to always fail with ENOSYS. Some functions are actually named
13836 something starting with __ and the normal name is an alias. */
13837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13838 choke me
13839 #else
13840 $ac_func();
13841 #endif
13843 ; return 0; }
13845 if { (eval echo configure:13846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13846 rm -rf conftest*
13847 eval "ac_cv_func_$ac_func=yes"
13848 else
13849 echo "configure: failed program was:" >&5
13850 cat conftest.$ac_ext >&5
13851 rm -rf conftest*
13852 eval "ac_cv_func_$ac_func=no"
13854 rm -f conftest*
13857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13858 echo "$ac_t""yes" 1>&6
13859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13860 cat >> confdefs.h <<EOF
13861 #define $ac_tr_func 1
13864 else
13865 echo "$ac_t""no" 1>&6
13867 done
13869 else
13871 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
13872 echo "configure:13873: checking for _expf declaration" >&5
13873 if test x${glibcpp_cv_func__expf_use+set} != xset; then
13874 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
13875 echo $ac_n "(cached) $ac_c" 1>&6
13876 else
13879 ac_ext=C
13880 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13881 ac_cpp='$CXXCPP $CPPFLAGS'
13882 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13883 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13884 cross_compiling=$ac_cv_prog_cxx_cross
13886 cat > conftest.$ac_ext <<EOF
13887 #line 13888 "configure"
13888 #include "confdefs.h"
13889 #include <math.h>
13890 #ifdef HAVE_IEEEFP_H
13891 #include <ieeefp.h>
13892 #endif
13894 int main() {
13895 _expf(0);
13896 ; return 0; }
13898 if { (eval echo configure:13899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13899 rm -rf conftest*
13900 glibcpp_cv_func__expf_use=yes
13901 else
13902 echo "configure: failed program was:" >&5
13903 cat conftest.$ac_ext >&5
13904 rm -rf conftest*
13905 glibcpp_cv_func__expf_use=no
13907 rm -f conftest*
13908 ac_ext=c
13909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13910 ac_cpp='$CPP $CPPFLAGS'
13911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13913 cross_compiling=$ac_cv_prog_cc_cross
13919 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
13921 if test x$glibcpp_cv_func__expf_use = x"yes"; then
13922 for ac_func in _expf
13924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13925 echo "configure:13926: checking for $ac_func" >&5
13926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13927 echo $ac_n "(cached) $ac_c" 1>&6
13928 else
13929 cat > conftest.$ac_ext <<EOF
13930 #line 13931 "configure"
13931 #include "confdefs.h"
13932 /* System header to define __stub macros and hopefully few prototypes,
13933 which can conflict with char $ac_func(); below. */
13934 #include <assert.h>
13935 /* Override any gcc2 internal prototype to avoid an error. */
13936 /* We use char because int might match the return type of a gcc2
13937 builtin and then its argument prototype would still apply. */
13938 char $ac_func();
13940 int main() {
13942 /* The GNU C library defines this for functions which it implements
13943 to always fail with ENOSYS. Some functions are actually named
13944 something starting with __ and the normal name is an alias. */
13945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13946 choke me
13947 #else
13948 $ac_func();
13949 #endif
13951 ; return 0; }
13953 if { (eval echo configure:13954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13954 rm -rf conftest*
13955 eval "ac_cv_func_$ac_func=yes"
13956 else
13957 echo "configure: failed program was:" >&5
13958 cat conftest.$ac_ext >&5
13959 rm -rf conftest*
13960 eval "ac_cv_func_$ac_func=no"
13962 rm -f conftest*
13965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13966 echo "$ac_t""yes" 1>&6
13967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13968 cat >> confdefs.h <<EOF
13969 #define $ac_tr_func 1
13972 else
13973 echo "$ac_t""no" 1>&6
13975 done
13982 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
13983 echo "configure:13984: checking for isnanf declaration" >&5
13984 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
13985 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
13986 echo $ac_n "(cached) $ac_c" 1>&6
13987 else
13990 ac_ext=C
13991 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13992 ac_cpp='$CXXCPP $CPPFLAGS'
13993 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13994 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13995 cross_compiling=$ac_cv_prog_cxx_cross
13997 cat > conftest.$ac_ext <<EOF
13998 #line 13999 "configure"
13999 #include "confdefs.h"
14000 #include <math.h>
14001 #ifdef HAVE_IEEEFP_H
14002 #include <ieeefp.h>
14003 #endif
14005 int main() {
14006 isnanf(0);
14007 ; return 0; }
14009 if { (eval echo configure:14010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14010 rm -rf conftest*
14011 glibcpp_cv_func_isnanf_use=yes
14012 else
14013 echo "configure: failed program was:" >&5
14014 cat conftest.$ac_ext >&5
14015 rm -rf conftest*
14016 glibcpp_cv_func_isnanf_use=no
14018 rm -f conftest*
14019 ac_ext=c
14020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14021 ac_cpp='$CPP $CPPFLAGS'
14022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14024 cross_compiling=$ac_cv_prog_cc_cross
14030 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
14032 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
14033 for ac_func in isnanf
14035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14036 echo "configure:14037: checking for $ac_func" >&5
14037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14038 echo $ac_n "(cached) $ac_c" 1>&6
14039 else
14040 cat > conftest.$ac_ext <<EOF
14041 #line 14042 "configure"
14042 #include "confdefs.h"
14043 /* System header to define __stub macros and hopefully few prototypes,
14044 which can conflict with char $ac_func(); below. */
14045 #include <assert.h>
14046 /* Override any gcc2 internal prototype to avoid an error. */
14047 /* We use char because int might match the return type of a gcc2
14048 builtin and then its argument prototype would still apply. */
14049 char $ac_func();
14051 int main() {
14053 /* The GNU C library defines this for functions which it implements
14054 to always fail with ENOSYS. Some functions are actually named
14055 something starting with __ and the normal name is an alias. */
14056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14057 choke me
14058 #else
14059 $ac_func();
14060 #endif
14062 ; return 0; }
14064 if { (eval echo configure:14065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14065 rm -rf conftest*
14066 eval "ac_cv_func_$ac_func=yes"
14067 else
14068 echo "configure: failed program was:" >&5
14069 cat conftest.$ac_ext >&5
14070 rm -rf conftest*
14071 eval "ac_cv_func_$ac_func=no"
14073 rm -f conftest*
14076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14077 echo "$ac_t""yes" 1>&6
14078 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14079 cat >> confdefs.h <<EOF
14080 #define $ac_tr_func 1
14083 else
14084 echo "$ac_t""no" 1>&6
14086 done
14088 else
14090 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
14091 echo "configure:14092: checking for _isnanf declaration" >&5
14092 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
14093 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
14094 echo $ac_n "(cached) $ac_c" 1>&6
14095 else
14098 ac_ext=C
14099 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14100 ac_cpp='$CXXCPP $CPPFLAGS'
14101 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14102 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14103 cross_compiling=$ac_cv_prog_cxx_cross
14105 cat > conftest.$ac_ext <<EOF
14106 #line 14107 "configure"
14107 #include "confdefs.h"
14108 #include <math.h>
14109 #ifdef HAVE_IEEEFP_H
14110 #include <ieeefp.h>
14111 #endif
14113 int main() {
14114 _isnanf(0);
14115 ; return 0; }
14117 if { (eval echo configure:14118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14118 rm -rf conftest*
14119 glibcpp_cv_func__isnanf_use=yes
14120 else
14121 echo "configure: failed program was:" >&5
14122 cat conftest.$ac_ext >&5
14123 rm -rf conftest*
14124 glibcpp_cv_func__isnanf_use=no
14126 rm -f conftest*
14127 ac_ext=c
14128 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14129 ac_cpp='$CPP $CPPFLAGS'
14130 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14131 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14132 cross_compiling=$ac_cv_prog_cc_cross
14138 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
14140 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
14141 for ac_func in _isnanf
14143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14144 echo "configure:14145: checking for $ac_func" >&5
14145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14146 echo $ac_n "(cached) $ac_c" 1>&6
14147 else
14148 cat > conftest.$ac_ext <<EOF
14149 #line 14150 "configure"
14150 #include "confdefs.h"
14151 /* System header to define __stub macros and hopefully few prototypes,
14152 which can conflict with char $ac_func(); below. */
14153 #include <assert.h>
14154 /* Override any gcc2 internal prototype to avoid an error. */
14155 /* We use char because int might match the return type of a gcc2
14156 builtin and then its argument prototype would still apply. */
14157 char $ac_func();
14159 int main() {
14161 /* The GNU C library defines this for functions which it implements
14162 to always fail with ENOSYS. Some functions are actually named
14163 something starting with __ and the normal name is an alias. */
14164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14165 choke me
14166 #else
14167 $ac_func();
14168 #endif
14170 ; return 0; }
14172 if { (eval echo configure:14173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14173 rm -rf conftest*
14174 eval "ac_cv_func_$ac_func=yes"
14175 else
14176 echo "configure: failed program was:" >&5
14177 cat conftest.$ac_ext >&5
14178 rm -rf conftest*
14179 eval "ac_cv_func_$ac_func=no"
14181 rm -f conftest*
14184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14185 echo "$ac_t""yes" 1>&6
14186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14187 cat >> confdefs.h <<EOF
14188 #define $ac_tr_func 1
14191 else
14192 echo "$ac_t""no" 1>&6
14194 done
14201 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
14202 echo "configure:14203: checking for isinff declaration" >&5
14203 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
14204 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
14205 echo $ac_n "(cached) $ac_c" 1>&6
14206 else
14209 ac_ext=C
14210 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14211 ac_cpp='$CXXCPP $CPPFLAGS'
14212 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14213 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14214 cross_compiling=$ac_cv_prog_cxx_cross
14216 cat > conftest.$ac_ext <<EOF
14217 #line 14218 "configure"
14218 #include "confdefs.h"
14219 #include <math.h>
14220 #ifdef HAVE_IEEEFP_H
14221 #include <ieeefp.h>
14222 #endif
14224 int main() {
14225 isinff(0);
14226 ; return 0; }
14228 if { (eval echo configure:14229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14229 rm -rf conftest*
14230 glibcpp_cv_func_isinff_use=yes
14231 else
14232 echo "configure: failed program was:" >&5
14233 cat conftest.$ac_ext >&5
14234 rm -rf conftest*
14235 glibcpp_cv_func_isinff_use=no
14237 rm -f conftest*
14238 ac_ext=c
14239 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14240 ac_cpp='$CPP $CPPFLAGS'
14241 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14242 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14243 cross_compiling=$ac_cv_prog_cc_cross
14249 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
14251 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
14252 for ac_func in isinff
14254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14255 echo "configure:14256: checking for $ac_func" >&5
14256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14257 echo $ac_n "(cached) $ac_c" 1>&6
14258 else
14259 cat > conftest.$ac_ext <<EOF
14260 #line 14261 "configure"
14261 #include "confdefs.h"
14262 /* System header to define __stub macros and hopefully few prototypes,
14263 which can conflict with char $ac_func(); below. */
14264 #include <assert.h>
14265 /* Override any gcc2 internal prototype to avoid an error. */
14266 /* We use char because int might match the return type of a gcc2
14267 builtin and then its argument prototype would still apply. */
14268 char $ac_func();
14270 int main() {
14272 /* The GNU C library defines this for functions which it implements
14273 to always fail with ENOSYS. Some functions are actually named
14274 something starting with __ and the normal name is an alias. */
14275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14276 choke me
14277 #else
14278 $ac_func();
14279 #endif
14281 ; return 0; }
14283 if { (eval echo configure:14284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14284 rm -rf conftest*
14285 eval "ac_cv_func_$ac_func=yes"
14286 else
14287 echo "configure: failed program was:" >&5
14288 cat conftest.$ac_ext >&5
14289 rm -rf conftest*
14290 eval "ac_cv_func_$ac_func=no"
14292 rm -f conftest*
14295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14296 echo "$ac_t""yes" 1>&6
14297 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14298 cat >> confdefs.h <<EOF
14299 #define $ac_tr_func 1
14302 else
14303 echo "$ac_t""no" 1>&6
14305 done
14307 else
14309 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
14310 echo "configure:14311: checking for _isinff declaration" >&5
14311 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
14312 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
14313 echo $ac_n "(cached) $ac_c" 1>&6
14314 else
14317 ac_ext=C
14318 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14319 ac_cpp='$CXXCPP $CPPFLAGS'
14320 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14321 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14322 cross_compiling=$ac_cv_prog_cxx_cross
14324 cat > conftest.$ac_ext <<EOF
14325 #line 14326 "configure"
14326 #include "confdefs.h"
14327 #include <math.h>
14328 #ifdef HAVE_IEEEFP_H
14329 #include <ieeefp.h>
14330 #endif
14332 int main() {
14333 _isinff(0);
14334 ; return 0; }
14336 if { (eval echo configure:14337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14337 rm -rf conftest*
14338 glibcpp_cv_func__isinff_use=yes
14339 else
14340 echo "configure: failed program was:" >&5
14341 cat conftest.$ac_ext >&5
14342 rm -rf conftest*
14343 glibcpp_cv_func__isinff_use=no
14345 rm -f conftest*
14346 ac_ext=c
14347 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14348 ac_cpp='$CPP $CPPFLAGS'
14349 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14350 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14351 cross_compiling=$ac_cv_prog_cc_cross
14357 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
14359 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
14360 for ac_func in _isinff
14362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14363 echo "configure:14364: checking for $ac_func" >&5
14364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14365 echo $ac_n "(cached) $ac_c" 1>&6
14366 else
14367 cat > conftest.$ac_ext <<EOF
14368 #line 14369 "configure"
14369 #include "confdefs.h"
14370 /* System header to define __stub macros and hopefully few prototypes,
14371 which can conflict with char $ac_func(); below. */
14372 #include <assert.h>
14373 /* Override any gcc2 internal prototype to avoid an error. */
14374 /* We use char because int might match the return type of a gcc2
14375 builtin and then its argument prototype would still apply. */
14376 char $ac_func();
14378 int main() {
14380 /* The GNU C library defines this for functions which it implements
14381 to always fail with ENOSYS. Some functions are actually named
14382 something starting with __ and the normal name is an alias. */
14383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14384 choke me
14385 #else
14386 $ac_func();
14387 #endif
14389 ; return 0; }
14391 if { (eval echo configure:14392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14392 rm -rf conftest*
14393 eval "ac_cv_func_$ac_func=yes"
14394 else
14395 echo "configure: failed program was:" >&5
14396 cat conftest.$ac_ext >&5
14397 rm -rf conftest*
14398 eval "ac_cv_func_$ac_func=no"
14400 rm -f conftest*
14403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14404 echo "$ac_t""yes" 1>&6
14405 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14406 cat >> confdefs.h <<EOF
14407 #define $ac_tr_func 1
14410 else
14411 echo "$ac_t""no" 1>&6
14413 done
14420 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
14421 echo "configure:14422: checking for atan2f declaration" >&5
14422 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
14423 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
14424 echo $ac_n "(cached) $ac_c" 1>&6
14425 else
14428 ac_ext=C
14429 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14430 ac_cpp='$CXXCPP $CPPFLAGS'
14431 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14432 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14433 cross_compiling=$ac_cv_prog_cxx_cross
14435 cat > conftest.$ac_ext <<EOF
14436 #line 14437 "configure"
14437 #include "confdefs.h"
14438 #include <math.h>
14439 int main() {
14440 atan2f(0, 0);
14441 ; return 0; }
14443 if { (eval echo configure:14444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14444 rm -rf conftest*
14445 glibcpp_cv_func_atan2f_use=yes
14446 else
14447 echo "configure: failed program was:" >&5
14448 cat conftest.$ac_ext >&5
14449 rm -rf conftest*
14450 glibcpp_cv_func_atan2f_use=no
14452 rm -f conftest*
14453 ac_ext=c
14454 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14455 ac_cpp='$CPP $CPPFLAGS'
14456 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14457 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14458 cross_compiling=$ac_cv_prog_cc_cross
14464 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
14466 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
14467 for ac_func in atan2f
14469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14470 echo "configure:14471: checking for $ac_func" >&5
14471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14472 echo $ac_n "(cached) $ac_c" 1>&6
14473 else
14474 cat > conftest.$ac_ext <<EOF
14475 #line 14476 "configure"
14476 #include "confdefs.h"
14477 /* System header to define __stub macros and hopefully few prototypes,
14478 which can conflict with char $ac_func(); below. */
14479 #include <assert.h>
14480 /* Override any gcc2 internal prototype to avoid an error. */
14481 /* We use char because int might match the return type of a gcc2
14482 builtin and then its argument prototype would still apply. */
14483 char $ac_func();
14485 int main() {
14487 /* The GNU C library defines this for functions which it implements
14488 to always fail with ENOSYS. Some functions are actually named
14489 something starting with __ and the normal name is an alias. */
14490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14491 choke me
14492 #else
14493 $ac_func();
14494 #endif
14496 ; return 0; }
14498 if { (eval echo configure:14499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14499 rm -rf conftest*
14500 eval "ac_cv_func_$ac_func=yes"
14501 else
14502 echo "configure: failed program was:" >&5
14503 cat conftest.$ac_ext >&5
14504 rm -rf conftest*
14505 eval "ac_cv_func_$ac_func=no"
14507 rm -f conftest*
14510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14511 echo "$ac_t""yes" 1>&6
14512 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14513 cat >> confdefs.h <<EOF
14514 #define $ac_tr_func 1
14517 else
14518 echo "$ac_t""no" 1>&6
14520 done
14522 else
14524 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
14525 echo "configure:14526: checking for _atan2f declaration" >&5
14526 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
14527 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
14528 echo $ac_n "(cached) $ac_c" 1>&6
14529 else
14532 ac_ext=C
14533 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14534 ac_cpp='$CXXCPP $CPPFLAGS'
14535 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14536 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14537 cross_compiling=$ac_cv_prog_cxx_cross
14539 cat > conftest.$ac_ext <<EOF
14540 #line 14541 "configure"
14541 #include "confdefs.h"
14542 #include <math.h>
14543 int main() {
14544 _atan2f(0, 0);
14545 ; return 0; }
14547 if { (eval echo configure:14548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14548 rm -rf conftest*
14549 glibcpp_cv_func__atan2f_use=yes
14550 else
14551 echo "configure: failed program was:" >&5
14552 cat conftest.$ac_ext >&5
14553 rm -rf conftest*
14554 glibcpp_cv_func__atan2f_use=no
14556 rm -f conftest*
14557 ac_ext=c
14558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14559 ac_cpp='$CPP $CPPFLAGS'
14560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14562 cross_compiling=$ac_cv_prog_cc_cross
14568 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
14570 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
14571 for ac_func in _atan2f
14573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14574 echo "configure:14575: checking for $ac_func" >&5
14575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14576 echo $ac_n "(cached) $ac_c" 1>&6
14577 else
14578 cat > conftest.$ac_ext <<EOF
14579 #line 14580 "configure"
14580 #include "confdefs.h"
14581 /* System header to define __stub macros and hopefully few prototypes,
14582 which can conflict with char $ac_func(); below. */
14583 #include <assert.h>
14584 /* Override any gcc2 internal prototype to avoid an error. */
14585 /* We use char because int might match the return type of a gcc2
14586 builtin and then its argument prototype would still apply. */
14587 char $ac_func();
14589 int main() {
14591 /* The GNU C library defines this for functions which it implements
14592 to always fail with ENOSYS. Some functions are actually named
14593 something starting with __ and the normal name is an alias. */
14594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14595 choke me
14596 #else
14597 $ac_func();
14598 #endif
14600 ; return 0; }
14602 if { (eval echo configure:14603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14603 rm -rf conftest*
14604 eval "ac_cv_func_$ac_func=yes"
14605 else
14606 echo "configure: failed program was:" >&5
14607 cat conftest.$ac_ext >&5
14608 rm -rf conftest*
14609 eval "ac_cv_func_$ac_func=no"
14611 rm -f conftest*
14614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14615 echo "$ac_t""yes" 1>&6
14616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14617 cat >> confdefs.h <<EOF
14618 #define $ac_tr_func 1
14621 else
14622 echo "$ac_t""no" 1>&6
14624 done
14631 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
14632 echo "configure:14633: checking for fabsf declaration" >&5
14633 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
14634 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
14635 echo $ac_n "(cached) $ac_c" 1>&6
14636 else
14639 ac_ext=C
14640 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14641 ac_cpp='$CXXCPP $CPPFLAGS'
14642 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14643 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14644 cross_compiling=$ac_cv_prog_cxx_cross
14646 cat > conftest.$ac_ext <<EOF
14647 #line 14648 "configure"
14648 #include "confdefs.h"
14649 #include <math.h>
14650 #ifdef HAVE_IEEEFP_H
14651 #include <ieeefp.h>
14652 #endif
14654 int main() {
14655 fabsf(0);
14656 ; return 0; }
14658 if { (eval echo configure:14659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14659 rm -rf conftest*
14660 glibcpp_cv_func_fabsf_use=yes
14661 else
14662 echo "configure: failed program was:" >&5
14663 cat conftest.$ac_ext >&5
14664 rm -rf conftest*
14665 glibcpp_cv_func_fabsf_use=no
14667 rm -f conftest*
14668 ac_ext=c
14669 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14670 ac_cpp='$CPP $CPPFLAGS'
14671 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14672 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14673 cross_compiling=$ac_cv_prog_cc_cross
14679 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
14681 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
14682 for ac_func in fabsf
14684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14685 echo "configure:14686: checking for $ac_func" >&5
14686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14687 echo $ac_n "(cached) $ac_c" 1>&6
14688 else
14689 cat > conftest.$ac_ext <<EOF
14690 #line 14691 "configure"
14691 #include "confdefs.h"
14692 /* System header to define __stub macros and hopefully few prototypes,
14693 which can conflict with char $ac_func(); below. */
14694 #include <assert.h>
14695 /* Override any gcc2 internal prototype to avoid an error. */
14696 /* We use char because int might match the return type of a gcc2
14697 builtin and then its argument prototype would still apply. */
14698 char $ac_func();
14700 int main() {
14702 /* The GNU C library defines this for functions which it implements
14703 to always fail with ENOSYS. Some functions are actually named
14704 something starting with __ and the normal name is an alias. */
14705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14706 choke me
14707 #else
14708 $ac_func();
14709 #endif
14711 ; return 0; }
14713 if { (eval echo configure:14714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14714 rm -rf conftest*
14715 eval "ac_cv_func_$ac_func=yes"
14716 else
14717 echo "configure: failed program was:" >&5
14718 cat conftest.$ac_ext >&5
14719 rm -rf conftest*
14720 eval "ac_cv_func_$ac_func=no"
14722 rm -f conftest*
14725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14726 echo "$ac_t""yes" 1>&6
14727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14728 cat >> confdefs.h <<EOF
14729 #define $ac_tr_func 1
14732 else
14733 echo "$ac_t""no" 1>&6
14735 done
14737 else
14739 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
14740 echo "configure:14741: checking for _fabsf declaration" >&5
14741 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
14742 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
14743 echo $ac_n "(cached) $ac_c" 1>&6
14744 else
14747 ac_ext=C
14748 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14749 ac_cpp='$CXXCPP $CPPFLAGS'
14750 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14751 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14752 cross_compiling=$ac_cv_prog_cxx_cross
14754 cat > conftest.$ac_ext <<EOF
14755 #line 14756 "configure"
14756 #include "confdefs.h"
14757 #include <math.h>
14758 #ifdef HAVE_IEEEFP_H
14759 #include <ieeefp.h>
14760 #endif
14762 int main() {
14763 _fabsf(0);
14764 ; return 0; }
14766 if { (eval echo configure:14767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14767 rm -rf conftest*
14768 glibcpp_cv_func__fabsf_use=yes
14769 else
14770 echo "configure: failed program was:" >&5
14771 cat conftest.$ac_ext >&5
14772 rm -rf conftest*
14773 glibcpp_cv_func__fabsf_use=no
14775 rm -f conftest*
14776 ac_ext=c
14777 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14778 ac_cpp='$CPP $CPPFLAGS'
14779 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14780 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14781 cross_compiling=$ac_cv_prog_cc_cross
14787 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
14789 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
14790 for ac_func in _fabsf
14792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14793 echo "configure:14794: checking for $ac_func" >&5
14794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14795 echo $ac_n "(cached) $ac_c" 1>&6
14796 else
14797 cat > conftest.$ac_ext <<EOF
14798 #line 14799 "configure"
14799 #include "confdefs.h"
14800 /* System header to define __stub macros and hopefully few prototypes,
14801 which can conflict with char $ac_func(); below. */
14802 #include <assert.h>
14803 /* Override any gcc2 internal prototype to avoid an error. */
14804 /* We use char because int might match the return type of a gcc2
14805 builtin and then its argument prototype would still apply. */
14806 char $ac_func();
14808 int main() {
14810 /* The GNU C library defines this for functions which it implements
14811 to always fail with ENOSYS. Some functions are actually named
14812 something starting with __ and the normal name is an alias. */
14813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14814 choke me
14815 #else
14816 $ac_func();
14817 #endif
14819 ; return 0; }
14821 if { (eval echo configure:14822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14822 rm -rf conftest*
14823 eval "ac_cv_func_$ac_func=yes"
14824 else
14825 echo "configure: failed program was:" >&5
14826 cat conftest.$ac_ext >&5
14827 rm -rf conftest*
14828 eval "ac_cv_func_$ac_func=no"
14830 rm -f conftest*
14833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14834 echo "$ac_t""yes" 1>&6
14835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14836 cat >> confdefs.h <<EOF
14837 #define $ac_tr_func 1
14840 else
14841 echo "$ac_t""no" 1>&6
14843 done
14850 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
14851 echo "configure:14852: checking for fmodf declaration" >&5
14852 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
14853 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
14854 echo $ac_n "(cached) $ac_c" 1>&6
14855 else
14858 ac_ext=C
14859 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14860 ac_cpp='$CXXCPP $CPPFLAGS'
14861 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14862 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14863 cross_compiling=$ac_cv_prog_cxx_cross
14865 cat > conftest.$ac_ext <<EOF
14866 #line 14867 "configure"
14867 #include "confdefs.h"
14868 #include <math.h>
14869 int main() {
14870 fmodf(0, 0);
14871 ; return 0; }
14873 if { (eval echo configure:14874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14874 rm -rf conftest*
14875 glibcpp_cv_func_fmodf_use=yes
14876 else
14877 echo "configure: failed program was:" >&5
14878 cat conftest.$ac_ext >&5
14879 rm -rf conftest*
14880 glibcpp_cv_func_fmodf_use=no
14882 rm -f conftest*
14883 ac_ext=c
14884 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14885 ac_cpp='$CPP $CPPFLAGS'
14886 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14887 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14888 cross_compiling=$ac_cv_prog_cc_cross
14894 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
14896 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
14897 for ac_func in fmodf
14899 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14900 echo "configure:14901: checking for $ac_func" >&5
14901 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14902 echo $ac_n "(cached) $ac_c" 1>&6
14903 else
14904 cat > conftest.$ac_ext <<EOF
14905 #line 14906 "configure"
14906 #include "confdefs.h"
14907 /* System header to define __stub macros and hopefully few prototypes,
14908 which can conflict with char $ac_func(); below. */
14909 #include <assert.h>
14910 /* Override any gcc2 internal prototype to avoid an error. */
14911 /* We use char because int might match the return type of a gcc2
14912 builtin and then its argument prototype would still apply. */
14913 char $ac_func();
14915 int main() {
14917 /* The GNU C library defines this for functions which it implements
14918 to always fail with ENOSYS. Some functions are actually named
14919 something starting with __ and the normal name is an alias. */
14920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14921 choke me
14922 #else
14923 $ac_func();
14924 #endif
14926 ; return 0; }
14928 if { (eval echo configure:14929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14929 rm -rf conftest*
14930 eval "ac_cv_func_$ac_func=yes"
14931 else
14932 echo "configure: failed program was:" >&5
14933 cat conftest.$ac_ext >&5
14934 rm -rf conftest*
14935 eval "ac_cv_func_$ac_func=no"
14937 rm -f conftest*
14940 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14941 echo "$ac_t""yes" 1>&6
14942 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14943 cat >> confdefs.h <<EOF
14944 #define $ac_tr_func 1
14947 else
14948 echo "$ac_t""no" 1>&6
14950 done
14952 else
14954 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
14955 echo "configure:14956: checking for _fmodf declaration" >&5
14956 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
14957 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
14958 echo $ac_n "(cached) $ac_c" 1>&6
14959 else
14962 ac_ext=C
14963 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14964 ac_cpp='$CXXCPP $CPPFLAGS'
14965 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14966 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14967 cross_compiling=$ac_cv_prog_cxx_cross
14969 cat > conftest.$ac_ext <<EOF
14970 #line 14971 "configure"
14971 #include "confdefs.h"
14972 #include <math.h>
14973 int main() {
14974 _fmodf(0, 0);
14975 ; return 0; }
14977 if { (eval echo configure:14978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14978 rm -rf conftest*
14979 glibcpp_cv_func__fmodf_use=yes
14980 else
14981 echo "configure: failed program was:" >&5
14982 cat conftest.$ac_ext >&5
14983 rm -rf conftest*
14984 glibcpp_cv_func__fmodf_use=no
14986 rm -f conftest*
14987 ac_ext=c
14988 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14989 ac_cpp='$CPP $CPPFLAGS'
14990 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14991 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14992 cross_compiling=$ac_cv_prog_cc_cross
14998 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
15000 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
15001 for ac_func in _fmodf
15003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15004 echo "configure:15005: checking for $ac_func" >&5
15005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15006 echo $ac_n "(cached) $ac_c" 1>&6
15007 else
15008 cat > conftest.$ac_ext <<EOF
15009 #line 15010 "configure"
15010 #include "confdefs.h"
15011 /* System header to define __stub macros and hopefully few prototypes,
15012 which can conflict with char $ac_func(); below. */
15013 #include <assert.h>
15014 /* Override any gcc2 internal prototype to avoid an error. */
15015 /* We use char because int might match the return type of a gcc2
15016 builtin and then its argument prototype would still apply. */
15017 char $ac_func();
15019 int main() {
15021 /* The GNU C library defines this for functions which it implements
15022 to always fail with ENOSYS. Some functions are actually named
15023 something starting with __ and the normal name is an alias. */
15024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15025 choke me
15026 #else
15027 $ac_func();
15028 #endif
15030 ; return 0; }
15032 if { (eval echo configure:15033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15033 rm -rf conftest*
15034 eval "ac_cv_func_$ac_func=yes"
15035 else
15036 echo "configure: failed program was:" >&5
15037 cat conftest.$ac_ext >&5
15038 rm -rf conftest*
15039 eval "ac_cv_func_$ac_func=no"
15041 rm -f conftest*
15044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15045 echo "$ac_t""yes" 1>&6
15046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15047 cat >> confdefs.h <<EOF
15048 #define $ac_tr_func 1
15051 else
15052 echo "$ac_t""no" 1>&6
15054 done
15061 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
15062 echo "configure:15063: checking for frexpf declaration" >&5
15063 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
15064 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
15065 echo $ac_n "(cached) $ac_c" 1>&6
15066 else
15069 ac_ext=C
15070 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15071 ac_cpp='$CXXCPP $CPPFLAGS'
15072 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15073 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15074 cross_compiling=$ac_cv_prog_cxx_cross
15076 cat > conftest.$ac_ext <<EOF
15077 #line 15078 "configure"
15078 #include "confdefs.h"
15079 #include <math.h>
15080 int main() {
15081 frexpf(0, 0);
15082 ; return 0; }
15084 if { (eval echo configure:15085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15085 rm -rf conftest*
15086 glibcpp_cv_func_frexpf_use=yes
15087 else
15088 echo "configure: failed program was:" >&5
15089 cat conftest.$ac_ext >&5
15090 rm -rf conftest*
15091 glibcpp_cv_func_frexpf_use=no
15093 rm -f conftest*
15094 ac_ext=c
15095 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15096 ac_cpp='$CPP $CPPFLAGS'
15097 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15098 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15099 cross_compiling=$ac_cv_prog_cc_cross
15105 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
15107 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
15108 for ac_func in frexpf
15110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15111 echo "configure:15112: checking for $ac_func" >&5
15112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15113 echo $ac_n "(cached) $ac_c" 1>&6
15114 else
15115 cat > conftest.$ac_ext <<EOF
15116 #line 15117 "configure"
15117 #include "confdefs.h"
15118 /* System header to define __stub macros and hopefully few prototypes,
15119 which can conflict with char $ac_func(); below. */
15120 #include <assert.h>
15121 /* Override any gcc2 internal prototype to avoid an error. */
15122 /* We use char because int might match the return type of a gcc2
15123 builtin and then its argument prototype would still apply. */
15124 char $ac_func();
15126 int main() {
15128 /* The GNU C library defines this for functions which it implements
15129 to always fail with ENOSYS. Some functions are actually named
15130 something starting with __ and the normal name is an alias. */
15131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15132 choke me
15133 #else
15134 $ac_func();
15135 #endif
15137 ; return 0; }
15139 if { (eval echo configure:15140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15140 rm -rf conftest*
15141 eval "ac_cv_func_$ac_func=yes"
15142 else
15143 echo "configure: failed program was:" >&5
15144 cat conftest.$ac_ext >&5
15145 rm -rf conftest*
15146 eval "ac_cv_func_$ac_func=no"
15148 rm -f conftest*
15151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15152 echo "$ac_t""yes" 1>&6
15153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15154 cat >> confdefs.h <<EOF
15155 #define $ac_tr_func 1
15158 else
15159 echo "$ac_t""no" 1>&6
15161 done
15163 else
15165 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
15166 echo "configure:15167: checking for _frexpf declaration" >&5
15167 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
15168 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
15169 echo $ac_n "(cached) $ac_c" 1>&6
15170 else
15173 ac_ext=C
15174 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15175 ac_cpp='$CXXCPP $CPPFLAGS'
15176 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15177 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15178 cross_compiling=$ac_cv_prog_cxx_cross
15180 cat > conftest.$ac_ext <<EOF
15181 #line 15182 "configure"
15182 #include "confdefs.h"
15183 #include <math.h>
15184 int main() {
15185 _frexpf(0, 0);
15186 ; return 0; }
15188 if { (eval echo configure:15189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15189 rm -rf conftest*
15190 glibcpp_cv_func__frexpf_use=yes
15191 else
15192 echo "configure: failed program was:" >&5
15193 cat conftest.$ac_ext >&5
15194 rm -rf conftest*
15195 glibcpp_cv_func__frexpf_use=no
15197 rm -f conftest*
15198 ac_ext=c
15199 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15200 ac_cpp='$CPP $CPPFLAGS'
15201 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15202 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15203 cross_compiling=$ac_cv_prog_cc_cross
15209 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
15211 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
15212 for ac_func in _frexpf
15214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15215 echo "configure:15216: checking for $ac_func" >&5
15216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15217 echo $ac_n "(cached) $ac_c" 1>&6
15218 else
15219 cat > conftest.$ac_ext <<EOF
15220 #line 15221 "configure"
15221 #include "confdefs.h"
15222 /* System header to define __stub macros and hopefully few prototypes,
15223 which can conflict with char $ac_func(); below. */
15224 #include <assert.h>
15225 /* Override any gcc2 internal prototype to avoid an error. */
15226 /* We use char because int might match the return type of a gcc2
15227 builtin and then its argument prototype would still apply. */
15228 char $ac_func();
15230 int main() {
15232 /* The GNU C library defines this for functions which it implements
15233 to always fail with ENOSYS. Some functions are actually named
15234 something starting with __ and the normal name is an alias. */
15235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15236 choke me
15237 #else
15238 $ac_func();
15239 #endif
15241 ; return 0; }
15243 if { (eval echo configure:15244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15244 rm -rf conftest*
15245 eval "ac_cv_func_$ac_func=yes"
15246 else
15247 echo "configure: failed program was:" >&5
15248 cat conftest.$ac_ext >&5
15249 rm -rf conftest*
15250 eval "ac_cv_func_$ac_func=no"
15252 rm -f conftest*
15255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15256 echo "$ac_t""yes" 1>&6
15257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15258 cat >> confdefs.h <<EOF
15259 #define $ac_tr_func 1
15262 else
15263 echo "$ac_t""no" 1>&6
15265 done
15272 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
15273 echo "configure:15274: checking for hypotf declaration" >&5
15274 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
15275 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
15276 echo $ac_n "(cached) $ac_c" 1>&6
15277 else
15280 ac_ext=C
15281 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15282 ac_cpp='$CXXCPP $CPPFLAGS'
15283 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15284 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15285 cross_compiling=$ac_cv_prog_cxx_cross
15287 cat > conftest.$ac_ext <<EOF
15288 #line 15289 "configure"
15289 #include "confdefs.h"
15290 #include <math.h>
15291 int main() {
15292 hypotf(0, 0);
15293 ; return 0; }
15295 if { (eval echo configure:15296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15296 rm -rf conftest*
15297 glibcpp_cv_func_hypotf_use=yes
15298 else
15299 echo "configure: failed program was:" >&5
15300 cat conftest.$ac_ext >&5
15301 rm -rf conftest*
15302 glibcpp_cv_func_hypotf_use=no
15304 rm -f conftest*
15305 ac_ext=c
15306 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15307 ac_cpp='$CPP $CPPFLAGS'
15308 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15309 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15310 cross_compiling=$ac_cv_prog_cc_cross
15316 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
15318 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
15319 for ac_func in hypotf
15321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15322 echo "configure:15323: checking for $ac_func" >&5
15323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15324 echo $ac_n "(cached) $ac_c" 1>&6
15325 else
15326 cat > conftest.$ac_ext <<EOF
15327 #line 15328 "configure"
15328 #include "confdefs.h"
15329 /* System header to define __stub macros and hopefully few prototypes,
15330 which can conflict with char $ac_func(); below. */
15331 #include <assert.h>
15332 /* Override any gcc2 internal prototype to avoid an error. */
15333 /* We use char because int might match the return type of a gcc2
15334 builtin and then its argument prototype would still apply. */
15335 char $ac_func();
15337 int main() {
15339 /* The GNU C library defines this for functions which it implements
15340 to always fail with ENOSYS. Some functions are actually named
15341 something starting with __ and the normal name is an alias. */
15342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15343 choke me
15344 #else
15345 $ac_func();
15346 #endif
15348 ; return 0; }
15350 if { (eval echo configure:15351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15351 rm -rf conftest*
15352 eval "ac_cv_func_$ac_func=yes"
15353 else
15354 echo "configure: failed program was:" >&5
15355 cat conftest.$ac_ext >&5
15356 rm -rf conftest*
15357 eval "ac_cv_func_$ac_func=no"
15359 rm -f conftest*
15362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15363 echo "$ac_t""yes" 1>&6
15364 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15365 cat >> confdefs.h <<EOF
15366 #define $ac_tr_func 1
15369 else
15370 echo "$ac_t""no" 1>&6
15372 done
15374 else
15376 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
15377 echo "configure:15378: checking for _hypotf declaration" >&5
15378 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
15379 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
15380 echo $ac_n "(cached) $ac_c" 1>&6
15381 else
15384 ac_ext=C
15385 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15386 ac_cpp='$CXXCPP $CPPFLAGS'
15387 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15388 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15389 cross_compiling=$ac_cv_prog_cxx_cross
15391 cat > conftest.$ac_ext <<EOF
15392 #line 15393 "configure"
15393 #include "confdefs.h"
15394 #include <math.h>
15395 int main() {
15396 _hypotf(0, 0);
15397 ; return 0; }
15399 if { (eval echo configure:15400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15400 rm -rf conftest*
15401 glibcpp_cv_func__hypotf_use=yes
15402 else
15403 echo "configure: failed program was:" >&5
15404 cat conftest.$ac_ext >&5
15405 rm -rf conftest*
15406 glibcpp_cv_func__hypotf_use=no
15408 rm -f conftest*
15409 ac_ext=c
15410 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15411 ac_cpp='$CPP $CPPFLAGS'
15412 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15413 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15414 cross_compiling=$ac_cv_prog_cc_cross
15420 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
15422 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
15423 for ac_func in _hypotf
15425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15426 echo "configure:15427: checking for $ac_func" >&5
15427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15428 echo $ac_n "(cached) $ac_c" 1>&6
15429 else
15430 cat > conftest.$ac_ext <<EOF
15431 #line 15432 "configure"
15432 #include "confdefs.h"
15433 /* System header to define __stub macros and hopefully few prototypes,
15434 which can conflict with char $ac_func(); below. */
15435 #include <assert.h>
15436 /* Override any gcc2 internal prototype to avoid an error. */
15437 /* We use char because int might match the return type of a gcc2
15438 builtin and then its argument prototype would still apply. */
15439 char $ac_func();
15441 int main() {
15443 /* The GNU C library defines this for functions which it implements
15444 to always fail with ENOSYS. Some functions are actually named
15445 something starting with __ and the normal name is an alias. */
15446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15447 choke me
15448 #else
15449 $ac_func();
15450 #endif
15452 ; return 0; }
15454 if { (eval echo configure:15455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15455 rm -rf conftest*
15456 eval "ac_cv_func_$ac_func=yes"
15457 else
15458 echo "configure: failed program was:" >&5
15459 cat conftest.$ac_ext >&5
15460 rm -rf conftest*
15461 eval "ac_cv_func_$ac_func=no"
15463 rm -f conftest*
15466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15467 echo "$ac_t""yes" 1>&6
15468 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15469 cat >> confdefs.h <<EOF
15470 #define $ac_tr_func 1
15473 else
15474 echo "$ac_t""no" 1>&6
15476 done
15483 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
15484 echo "configure:15485: checking for ldexpf declaration" >&5
15485 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
15486 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
15487 echo $ac_n "(cached) $ac_c" 1>&6
15488 else
15491 ac_ext=C
15492 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15493 ac_cpp='$CXXCPP $CPPFLAGS'
15494 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15495 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15496 cross_compiling=$ac_cv_prog_cxx_cross
15498 cat > conftest.$ac_ext <<EOF
15499 #line 15500 "configure"
15500 #include "confdefs.h"
15501 #include <math.h>
15502 int main() {
15503 ldexpf(0, 0);
15504 ; return 0; }
15506 if { (eval echo configure:15507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15507 rm -rf conftest*
15508 glibcpp_cv_func_ldexpf_use=yes
15509 else
15510 echo "configure: failed program was:" >&5
15511 cat conftest.$ac_ext >&5
15512 rm -rf conftest*
15513 glibcpp_cv_func_ldexpf_use=no
15515 rm -f conftest*
15516 ac_ext=c
15517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15518 ac_cpp='$CPP $CPPFLAGS'
15519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15520 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15521 cross_compiling=$ac_cv_prog_cc_cross
15527 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
15529 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
15530 for ac_func in ldexpf
15532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15533 echo "configure:15534: checking for $ac_func" >&5
15534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15535 echo $ac_n "(cached) $ac_c" 1>&6
15536 else
15537 cat > conftest.$ac_ext <<EOF
15538 #line 15539 "configure"
15539 #include "confdefs.h"
15540 /* System header to define __stub macros and hopefully few prototypes,
15541 which can conflict with char $ac_func(); below. */
15542 #include <assert.h>
15543 /* Override any gcc2 internal prototype to avoid an error. */
15544 /* We use char because int might match the return type of a gcc2
15545 builtin and then its argument prototype would still apply. */
15546 char $ac_func();
15548 int main() {
15550 /* The GNU C library defines this for functions which it implements
15551 to always fail with ENOSYS. Some functions are actually named
15552 something starting with __ and the normal name is an alias. */
15553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15554 choke me
15555 #else
15556 $ac_func();
15557 #endif
15559 ; return 0; }
15561 if { (eval echo configure:15562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15562 rm -rf conftest*
15563 eval "ac_cv_func_$ac_func=yes"
15564 else
15565 echo "configure: failed program was:" >&5
15566 cat conftest.$ac_ext >&5
15567 rm -rf conftest*
15568 eval "ac_cv_func_$ac_func=no"
15570 rm -f conftest*
15573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15574 echo "$ac_t""yes" 1>&6
15575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15576 cat >> confdefs.h <<EOF
15577 #define $ac_tr_func 1
15580 else
15581 echo "$ac_t""no" 1>&6
15583 done
15585 else
15587 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
15588 echo "configure:15589: checking for _ldexpf declaration" >&5
15589 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
15590 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
15591 echo $ac_n "(cached) $ac_c" 1>&6
15592 else
15595 ac_ext=C
15596 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15597 ac_cpp='$CXXCPP $CPPFLAGS'
15598 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15599 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15600 cross_compiling=$ac_cv_prog_cxx_cross
15602 cat > conftest.$ac_ext <<EOF
15603 #line 15604 "configure"
15604 #include "confdefs.h"
15605 #include <math.h>
15606 int main() {
15607 _ldexpf(0, 0);
15608 ; return 0; }
15610 if { (eval echo configure:15611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15611 rm -rf conftest*
15612 glibcpp_cv_func__ldexpf_use=yes
15613 else
15614 echo "configure: failed program was:" >&5
15615 cat conftest.$ac_ext >&5
15616 rm -rf conftest*
15617 glibcpp_cv_func__ldexpf_use=no
15619 rm -f conftest*
15620 ac_ext=c
15621 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15622 ac_cpp='$CPP $CPPFLAGS'
15623 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15624 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15625 cross_compiling=$ac_cv_prog_cc_cross
15631 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
15633 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
15634 for ac_func in _ldexpf
15636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15637 echo "configure:15638: checking for $ac_func" >&5
15638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15639 echo $ac_n "(cached) $ac_c" 1>&6
15640 else
15641 cat > conftest.$ac_ext <<EOF
15642 #line 15643 "configure"
15643 #include "confdefs.h"
15644 /* System header to define __stub macros and hopefully few prototypes,
15645 which can conflict with char $ac_func(); below. */
15646 #include <assert.h>
15647 /* Override any gcc2 internal prototype to avoid an error. */
15648 /* We use char because int might match the return type of a gcc2
15649 builtin and then its argument prototype would still apply. */
15650 char $ac_func();
15652 int main() {
15654 /* The GNU C library defines this for functions which it implements
15655 to always fail with ENOSYS. Some functions are actually named
15656 something starting with __ and the normal name is an alias. */
15657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15658 choke me
15659 #else
15660 $ac_func();
15661 #endif
15663 ; return 0; }
15665 if { (eval echo configure:15666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15666 rm -rf conftest*
15667 eval "ac_cv_func_$ac_func=yes"
15668 else
15669 echo "configure: failed program was:" >&5
15670 cat conftest.$ac_ext >&5
15671 rm -rf conftest*
15672 eval "ac_cv_func_$ac_func=no"
15674 rm -f conftest*
15677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15678 echo "$ac_t""yes" 1>&6
15679 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15680 cat >> confdefs.h <<EOF
15681 #define $ac_tr_func 1
15684 else
15685 echo "$ac_t""no" 1>&6
15687 done
15694 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
15695 echo "configure:15696: checking for logf declaration" >&5
15696 if test x${glibcpp_cv_func_logf_use+set} != xset; then
15697 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
15698 echo $ac_n "(cached) $ac_c" 1>&6
15699 else
15702 ac_ext=C
15703 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15704 ac_cpp='$CXXCPP $CPPFLAGS'
15705 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15706 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15707 cross_compiling=$ac_cv_prog_cxx_cross
15709 cat > conftest.$ac_ext <<EOF
15710 #line 15711 "configure"
15711 #include "confdefs.h"
15712 #include <math.h>
15713 #ifdef HAVE_IEEEFP_H
15714 #include <ieeefp.h>
15715 #endif
15717 int main() {
15718 logf(0);
15719 ; return 0; }
15721 if { (eval echo configure:15722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15722 rm -rf conftest*
15723 glibcpp_cv_func_logf_use=yes
15724 else
15725 echo "configure: failed program was:" >&5
15726 cat conftest.$ac_ext >&5
15727 rm -rf conftest*
15728 glibcpp_cv_func_logf_use=no
15730 rm -f conftest*
15731 ac_ext=c
15732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15733 ac_cpp='$CPP $CPPFLAGS'
15734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15736 cross_compiling=$ac_cv_prog_cc_cross
15742 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
15744 if test x$glibcpp_cv_func_logf_use = x"yes"; then
15745 for ac_func in logf
15747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15748 echo "configure:15749: checking for $ac_func" >&5
15749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15750 echo $ac_n "(cached) $ac_c" 1>&6
15751 else
15752 cat > conftest.$ac_ext <<EOF
15753 #line 15754 "configure"
15754 #include "confdefs.h"
15755 /* System header to define __stub macros and hopefully few prototypes,
15756 which can conflict with char $ac_func(); below. */
15757 #include <assert.h>
15758 /* Override any gcc2 internal prototype to avoid an error. */
15759 /* We use char because int might match the return type of a gcc2
15760 builtin and then its argument prototype would still apply. */
15761 char $ac_func();
15763 int main() {
15765 /* The GNU C library defines this for functions which it implements
15766 to always fail with ENOSYS. Some functions are actually named
15767 something starting with __ and the normal name is an alias. */
15768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15769 choke me
15770 #else
15771 $ac_func();
15772 #endif
15774 ; return 0; }
15776 if { (eval echo configure:15777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15777 rm -rf conftest*
15778 eval "ac_cv_func_$ac_func=yes"
15779 else
15780 echo "configure: failed program was:" >&5
15781 cat conftest.$ac_ext >&5
15782 rm -rf conftest*
15783 eval "ac_cv_func_$ac_func=no"
15785 rm -f conftest*
15788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15789 echo "$ac_t""yes" 1>&6
15790 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15791 cat >> confdefs.h <<EOF
15792 #define $ac_tr_func 1
15795 else
15796 echo "$ac_t""no" 1>&6
15798 done
15800 else
15802 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
15803 echo "configure:15804: checking for _logf declaration" >&5
15804 if test x${glibcpp_cv_func__logf_use+set} != xset; then
15805 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
15806 echo $ac_n "(cached) $ac_c" 1>&6
15807 else
15810 ac_ext=C
15811 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15812 ac_cpp='$CXXCPP $CPPFLAGS'
15813 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15814 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15815 cross_compiling=$ac_cv_prog_cxx_cross
15817 cat > conftest.$ac_ext <<EOF
15818 #line 15819 "configure"
15819 #include "confdefs.h"
15820 #include <math.h>
15821 #ifdef HAVE_IEEEFP_H
15822 #include <ieeefp.h>
15823 #endif
15825 int main() {
15826 _logf(0);
15827 ; return 0; }
15829 if { (eval echo configure:15830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15830 rm -rf conftest*
15831 glibcpp_cv_func__logf_use=yes
15832 else
15833 echo "configure: failed program was:" >&5
15834 cat conftest.$ac_ext >&5
15835 rm -rf conftest*
15836 glibcpp_cv_func__logf_use=no
15838 rm -f conftest*
15839 ac_ext=c
15840 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15841 ac_cpp='$CPP $CPPFLAGS'
15842 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15843 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15844 cross_compiling=$ac_cv_prog_cc_cross
15850 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
15852 if test x$glibcpp_cv_func__logf_use = x"yes"; then
15853 for ac_func in _logf
15855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15856 echo "configure:15857: checking for $ac_func" >&5
15857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15858 echo $ac_n "(cached) $ac_c" 1>&6
15859 else
15860 cat > conftest.$ac_ext <<EOF
15861 #line 15862 "configure"
15862 #include "confdefs.h"
15863 /* System header to define __stub macros and hopefully few prototypes,
15864 which can conflict with char $ac_func(); below. */
15865 #include <assert.h>
15866 /* Override any gcc2 internal prototype to avoid an error. */
15867 /* We use char because int might match the return type of a gcc2
15868 builtin and then its argument prototype would still apply. */
15869 char $ac_func();
15871 int main() {
15873 /* The GNU C library defines this for functions which it implements
15874 to always fail with ENOSYS. Some functions are actually named
15875 something starting with __ and the normal name is an alias. */
15876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15877 choke me
15878 #else
15879 $ac_func();
15880 #endif
15882 ; return 0; }
15884 if { (eval echo configure:15885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15885 rm -rf conftest*
15886 eval "ac_cv_func_$ac_func=yes"
15887 else
15888 echo "configure: failed program was:" >&5
15889 cat conftest.$ac_ext >&5
15890 rm -rf conftest*
15891 eval "ac_cv_func_$ac_func=no"
15893 rm -f conftest*
15896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15897 echo "$ac_t""yes" 1>&6
15898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15899 cat >> confdefs.h <<EOF
15900 #define $ac_tr_func 1
15903 else
15904 echo "$ac_t""no" 1>&6
15906 done
15913 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
15914 echo "configure:15915: checking for log10f declaration" >&5
15915 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
15916 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
15917 echo $ac_n "(cached) $ac_c" 1>&6
15918 else
15921 ac_ext=C
15922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15923 ac_cpp='$CXXCPP $CPPFLAGS'
15924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15926 cross_compiling=$ac_cv_prog_cxx_cross
15928 cat > conftest.$ac_ext <<EOF
15929 #line 15930 "configure"
15930 #include "confdefs.h"
15931 #include <math.h>
15932 #ifdef HAVE_IEEEFP_H
15933 #include <ieeefp.h>
15934 #endif
15936 int main() {
15937 log10f(0);
15938 ; return 0; }
15940 if { (eval echo configure:15941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15941 rm -rf conftest*
15942 glibcpp_cv_func_log10f_use=yes
15943 else
15944 echo "configure: failed program was:" >&5
15945 cat conftest.$ac_ext >&5
15946 rm -rf conftest*
15947 glibcpp_cv_func_log10f_use=no
15949 rm -f conftest*
15950 ac_ext=c
15951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15952 ac_cpp='$CPP $CPPFLAGS'
15953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15955 cross_compiling=$ac_cv_prog_cc_cross
15961 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
15963 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
15964 for ac_func in log10f
15966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15967 echo "configure:15968: checking for $ac_func" >&5
15968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15969 echo $ac_n "(cached) $ac_c" 1>&6
15970 else
15971 cat > conftest.$ac_ext <<EOF
15972 #line 15973 "configure"
15973 #include "confdefs.h"
15974 /* System header to define __stub macros and hopefully few prototypes,
15975 which can conflict with char $ac_func(); below. */
15976 #include <assert.h>
15977 /* Override any gcc2 internal prototype to avoid an error. */
15978 /* We use char because int might match the return type of a gcc2
15979 builtin and then its argument prototype would still apply. */
15980 char $ac_func();
15982 int main() {
15984 /* The GNU C library defines this for functions which it implements
15985 to always fail with ENOSYS. Some functions are actually named
15986 something starting with __ and the normal name is an alias. */
15987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15988 choke me
15989 #else
15990 $ac_func();
15991 #endif
15993 ; return 0; }
15995 if { (eval echo configure:15996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15996 rm -rf conftest*
15997 eval "ac_cv_func_$ac_func=yes"
15998 else
15999 echo "configure: failed program was:" >&5
16000 cat conftest.$ac_ext >&5
16001 rm -rf conftest*
16002 eval "ac_cv_func_$ac_func=no"
16004 rm -f conftest*
16007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16008 echo "$ac_t""yes" 1>&6
16009 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16010 cat >> confdefs.h <<EOF
16011 #define $ac_tr_func 1
16014 else
16015 echo "$ac_t""no" 1>&6
16017 done
16019 else
16021 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
16022 echo "configure:16023: checking for _log10f declaration" >&5
16023 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
16024 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
16025 echo $ac_n "(cached) $ac_c" 1>&6
16026 else
16029 ac_ext=C
16030 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16031 ac_cpp='$CXXCPP $CPPFLAGS'
16032 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16033 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16034 cross_compiling=$ac_cv_prog_cxx_cross
16036 cat > conftest.$ac_ext <<EOF
16037 #line 16038 "configure"
16038 #include "confdefs.h"
16039 #include <math.h>
16040 #ifdef HAVE_IEEEFP_H
16041 #include <ieeefp.h>
16042 #endif
16044 int main() {
16045 _log10f(0);
16046 ; return 0; }
16048 if { (eval echo configure:16049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16049 rm -rf conftest*
16050 glibcpp_cv_func__log10f_use=yes
16051 else
16052 echo "configure: failed program was:" >&5
16053 cat conftest.$ac_ext >&5
16054 rm -rf conftest*
16055 glibcpp_cv_func__log10f_use=no
16057 rm -f conftest*
16058 ac_ext=c
16059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16060 ac_cpp='$CPP $CPPFLAGS'
16061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16063 cross_compiling=$ac_cv_prog_cc_cross
16069 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
16071 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
16072 for ac_func in _log10f
16074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16075 echo "configure:16076: checking for $ac_func" >&5
16076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16077 echo $ac_n "(cached) $ac_c" 1>&6
16078 else
16079 cat > conftest.$ac_ext <<EOF
16080 #line 16081 "configure"
16081 #include "confdefs.h"
16082 /* System header to define __stub macros and hopefully few prototypes,
16083 which can conflict with char $ac_func(); below. */
16084 #include <assert.h>
16085 /* Override any gcc2 internal prototype to avoid an error. */
16086 /* We use char because int might match the return type of a gcc2
16087 builtin and then its argument prototype would still apply. */
16088 char $ac_func();
16090 int main() {
16092 /* The GNU C library defines this for functions which it implements
16093 to always fail with ENOSYS. Some functions are actually named
16094 something starting with __ and the normal name is an alias. */
16095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16096 choke me
16097 #else
16098 $ac_func();
16099 #endif
16101 ; return 0; }
16103 if { (eval echo configure:16104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16104 rm -rf conftest*
16105 eval "ac_cv_func_$ac_func=yes"
16106 else
16107 echo "configure: failed program was:" >&5
16108 cat conftest.$ac_ext >&5
16109 rm -rf conftest*
16110 eval "ac_cv_func_$ac_func=no"
16112 rm -f conftest*
16115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16116 echo "$ac_t""yes" 1>&6
16117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16118 cat >> confdefs.h <<EOF
16119 #define $ac_tr_func 1
16122 else
16123 echo "$ac_t""no" 1>&6
16125 done
16132 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
16133 echo "configure:16134: checking for modff declaration" >&5
16134 if test x${glibcpp_cv_func_modff_use+set} != xset; then
16135 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
16136 echo $ac_n "(cached) $ac_c" 1>&6
16137 else
16140 ac_ext=C
16141 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16142 ac_cpp='$CXXCPP $CPPFLAGS'
16143 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16144 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16145 cross_compiling=$ac_cv_prog_cxx_cross
16147 cat > conftest.$ac_ext <<EOF
16148 #line 16149 "configure"
16149 #include "confdefs.h"
16150 #include <math.h>
16151 int main() {
16152 modff(0, 0);
16153 ; return 0; }
16155 if { (eval echo configure:16156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16156 rm -rf conftest*
16157 glibcpp_cv_func_modff_use=yes
16158 else
16159 echo "configure: failed program was:" >&5
16160 cat conftest.$ac_ext >&5
16161 rm -rf conftest*
16162 glibcpp_cv_func_modff_use=no
16164 rm -f conftest*
16165 ac_ext=c
16166 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16167 ac_cpp='$CPP $CPPFLAGS'
16168 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16169 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16170 cross_compiling=$ac_cv_prog_cc_cross
16176 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
16178 if test x$glibcpp_cv_func_modff_use = x"yes"; then
16179 for ac_func in modff
16181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16182 echo "configure:16183: checking for $ac_func" >&5
16183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16184 echo $ac_n "(cached) $ac_c" 1>&6
16185 else
16186 cat > conftest.$ac_ext <<EOF
16187 #line 16188 "configure"
16188 #include "confdefs.h"
16189 /* System header to define __stub macros and hopefully few prototypes,
16190 which can conflict with char $ac_func(); below. */
16191 #include <assert.h>
16192 /* Override any gcc2 internal prototype to avoid an error. */
16193 /* We use char because int might match the return type of a gcc2
16194 builtin and then its argument prototype would still apply. */
16195 char $ac_func();
16197 int main() {
16199 /* The GNU C library defines this for functions which it implements
16200 to always fail with ENOSYS. Some functions are actually named
16201 something starting with __ and the normal name is an alias. */
16202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16203 choke me
16204 #else
16205 $ac_func();
16206 #endif
16208 ; return 0; }
16210 if { (eval echo configure:16211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16211 rm -rf conftest*
16212 eval "ac_cv_func_$ac_func=yes"
16213 else
16214 echo "configure: failed program was:" >&5
16215 cat conftest.$ac_ext >&5
16216 rm -rf conftest*
16217 eval "ac_cv_func_$ac_func=no"
16219 rm -f conftest*
16222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16223 echo "$ac_t""yes" 1>&6
16224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16225 cat >> confdefs.h <<EOF
16226 #define $ac_tr_func 1
16229 else
16230 echo "$ac_t""no" 1>&6
16232 done
16234 else
16236 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
16237 echo "configure:16238: checking for _modff declaration" >&5
16238 if test x${glibcpp_cv_func__modff_use+set} != xset; then
16239 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
16240 echo $ac_n "(cached) $ac_c" 1>&6
16241 else
16244 ac_ext=C
16245 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16246 ac_cpp='$CXXCPP $CPPFLAGS'
16247 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16248 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16249 cross_compiling=$ac_cv_prog_cxx_cross
16251 cat > conftest.$ac_ext <<EOF
16252 #line 16253 "configure"
16253 #include "confdefs.h"
16254 #include <math.h>
16255 int main() {
16256 _modff(0, 0);
16257 ; return 0; }
16259 if { (eval echo configure:16260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16260 rm -rf conftest*
16261 glibcpp_cv_func__modff_use=yes
16262 else
16263 echo "configure: failed program was:" >&5
16264 cat conftest.$ac_ext >&5
16265 rm -rf conftest*
16266 glibcpp_cv_func__modff_use=no
16268 rm -f conftest*
16269 ac_ext=c
16270 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16271 ac_cpp='$CPP $CPPFLAGS'
16272 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16273 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16274 cross_compiling=$ac_cv_prog_cc_cross
16280 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
16282 if test x$glibcpp_cv_func__modff_use = x"yes"; then
16283 for ac_func in _modff
16285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16286 echo "configure:16287: checking for $ac_func" >&5
16287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16288 echo $ac_n "(cached) $ac_c" 1>&6
16289 else
16290 cat > conftest.$ac_ext <<EOF
16291 #line 16292 "configure"
16292 #include "confdefs.h"
16293 /* System header to define __stub macros and hopefully few prototypes,
16294 which can conflict with char $ac_func(); below. */
16295 #include <assert.h>
16296 /* Override any gcc2 internal prototype to avoid an error. */
16297 /* We use char because int might match the return type of a gcc2
16298 builtin and then its argument prototype would still apply. */
16299 char $ac_func();
16301 int main() {
16303 /* The GNU C library defines this for functions which it implements
16304 to always fail with ENOSYS. Some functions are actually named
16305 something starting with __ and the normal name is an alias. */
16306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16307 choke me
16308 #else
16309 $ac_func();
16310 #endif
16312 ; return 0; }
16314 if { (eval echo configure:16315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16315 rm -rf conftest*
16316 eval "ac_cv_func_$ac_func=yes"
16317 else
16318 echo "configure: failed program was:" >&5
16319 cat conftest.$ac_ext >&5
16320 rm -rf conftest*
16321 eval "ac_cv_func_$ac_func=no"
16323 rm -f conftest*
16326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16327 echo "$ac_t""yes" 1>&6
16328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16329 cat >> confdefs.h <<EOF
16330 #define $ac_tr_func 1
16333 else
16334 echo "$ac_t""no" 1>&6
16336 done
16343 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
16344 echo "configure:16345: checking for powf declaration" >&5
16345 if test x${glibcpp_cv_func_powf_use+set} != xset; then
16346 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
16347 echo $ac_n "(cached) $ac_c" 1>&6
16348 else
16351 ac_ext=C
16352 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16353 ac_cpp='$CXXCPP $CPPFLAGS'
16354 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16355 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16356 cross_compiling=$ac_cv_prog_cxx_cross
16358 cat > conftest.$ac_ext <<EOF
16359 #line 16360 "configure"
16360 #include "confdefs.h"
16361 #include <math.h>
16362 int main() {
16363 powf(0, 0);
16364 ; return 0; }
16366 if { (eval echo configure:16367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16367 rm -rf conftest*
16368 glibcpp_cv_func_powf_use=yes
16369 else
16370 echo "configure: failed program was:" >&5
16371 cat conftest.$ac_ext >&5
16372 rm -rf conftest*
16373 glibcpp_cv_func_powf_use=no
16375 rm -f conftest*
16376 ac_ext=c
16377 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16378 ac_cpp='$CPP $CPPFLAGS'
16379 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16380 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16381 cross_compiling=$ac_cv_prog_cc_cross
16387 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
16389 if test x$glibcpp_cv_func_powf_use = x"yes"; then
16390 for ac_func in powf
16392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16393 echo "configure:16394: checking for $ac_func" >&5
16394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16395 echo $ac_n "(cached) $ac_c" 1>&6
16396 else
16397 cat > conftest.$ac_ext <<EOF
16398 #line 16399 "configure"
16399 #include "confdefs.h"
16400 /* System header to define __stub macros and hopefully few prototypes,
16401 which can conflict with char $ac_func(); below. */
16402 #include <assert.h>
16403 /* Override any gcc2 internal prototype to avoid an error. */
16404 /* We use char because int might match the return type of a gcc2
16405 builtin and then its argument prototype would still apply. */
16406 char $ac_func();
16408 int main() {
16410 /* The GNU C library defines this for functions which it implements
16411 to always fail with ENOSYS. Some functions are actually named
16412 something starting with __ and the normal name is an alias. */
16413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16414 choke me
16415 #else
16416 $ac_func();
16417 #endif
16419 ; return 0; }
16421 if { (eval echo configure:16422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16422 rm -rf conftest*
16423 eval "ac_cv_func_$ac_func=yes"
16424 else
16425 echo "configure: failed program was:" >&5
16426 cat conftest.$ac_ext >&5
16427 rm -rf conftest*
16428 eval "ac_cv_func_$ac_func=no"
16430 rm -f conftest*
16433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16434 echo "$ac_t""yes" 1>&6
16435 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16436 cat >> confdefs.h <<EOF
16437 #define $ac_tr_func 1
16440 else
16441 echo "$ac_t""no" 1>&6
16443 done
16445 else
16447 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
16448 echo "configure:16449: checking for _powf declaration" >&5
16449 if test x${glibcpp_cv_func__powf_use+set} != xset; then
16450 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
16451 echo $ac_n "(cached) $ac_c" 1>&6
16452 else
16455 ac_ext=C
16456 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16457 ac_cpp='$CXXCPP $CPPFLAGS'
16458 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16459 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16460 cross_compiling=$ac_cv_prog_cxx_cross
16462 cat > conftest.$ac_ext <<EOF
16463 #line 16464 "configure"
16464 #include "confdefs.h"
16465 #include <math.h>
16466 int main() {
16467 _powf(0, 0);
16468 ; return 0; }
16470 if { (eval echo configure:16471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16471 rm -rf conftest*
16472 glibcpp_cv_func__powf_use=yes
16473 else
16474 echo "configure: failed program was:" >&5
16475 cat conftest.$ac_ext >&5
16476 rm -rf conftest*
16477 glibcpp_cv_func__powf_use=no
16479 rm -f conftest*
16480 ac_ext=c
16481 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16482 ac_cpp='$CPP $CPPFLAGS'
16483 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16484 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16485 cross_compiling=$ac_cv_prog_cc_cross
16491 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
16493 if test x$glibcpp_cv_func__powf_use = x"yes"; then
16494 for ac_func in _powf
16496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16497 echo "configure:16498: checking for $ac_func" >&5
16498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16499 echo $ac_n "(cached) $ac_c" 1>&6
16500 else
16501 cat > conftest.$ac_ext <<EOF
16502 #line 16503 "configure"
16503 #include "confdefs.h"
16504 /* System header to define __stub macros and hopefully few prototypes,
16505 which can conflict with char $ac_func(); below. */
16506 #include <assert.h>
16507 /* Override any gcc2 internal prototype to avoid an error. */
16508 /* We use char because int might match the return type of a gcc2
16509 builtin and then its argument prototype would still apply. */
16510 char $ac_func();
16512 int main() {
16514 /* The GNU C library defines this for functions which it implements
16515 to always fail with ENOSYS. Some functions are actually named
16516 something starting with __ and the normal name is an alias. */
16517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16518 choke me
16519 #else
16520 $ac_func();
16521 #endif
16523 ; return 0; }
16525 if { (eval echo configure:16526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16526 rm -rf conftest*
16527 eval "ac_cv_func_$ac_func=yes"
16528 else
16529 echo "configure: failed program was:" >&5
16530 cat conftest.$ac_ext >&5
16531 rm -rf conftest*
16532 eval "ac_cv_func_$ac_func=no"
16534 rm -f conftest*
16537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16538 echo "$ac_t""yes" 1>&6
16539 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16540 cat >> confdefs.h <<EOF
16541 #define $ac_tr_func 1
16544 else
16545 echo "$ac_t""no" 1>&6
16547 done
16554 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
16555 echo "configure:16556: checking for sqrtf declaration" >&5
16556 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
16557 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
16558 echo $ac_n "(cached) $ac_c" 1>&6
16559 else
16562 ac_ext=C
16563 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16564 ac_cpp='$CXXCPP $CPPFLAGS'
16565 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16566 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16567 cross_compiling=$ac_cv_prog_cxx_cross
16569 cat > conftest.$ac_ext <<EOF
16570 #line 16571 "configure"
16571 #include "confdefs.h"
16572 #include <math.h>
16573 #ifdef HAVE_IEEEFP_H
16574 #include <ieeefp.h>
16575 #endif
16577 int main() {
16578 sqrtf(0);
16579 ; return 0; }
16581 if { (eval echo configure:16582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16582 rm -rf conftest*
16583 glibcpp_cv_func_sqrtf_use=yes
16584 else
16585 echo "configure: failed program was:" >&5
16586 cat conftest.$ac_ext >&5
16587 rm -rf conftest*
16588 glibcpp_cv_func_sqrtf_use=no
16590 rm -f conftest*
16591 ac_ext=c
16592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16593 ac_cpp='$CPP $CPPFLAGS'
16594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16596 cross_compiling=$ac_cv_prog_cc_cross
16602 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
16604 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
16605 for ac_func in sqrtf
16607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16608 echo "configure:16609: checking for $ac_func" >&5
16609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16610 echo $ac_n "(cached) $ac_c" 1>&6
16611 else
16612 cat > conftest.$ac_ext <<EOF
16613 #line 16614 "configure"
16614 #include "confdefs.h"
16615 /* System header to define __stub macros and hopefully few prototypes,
16616 which can conflict with char $ac_func(); below. */
16617 #include <assert.h>
16618 /* Override any gcc2 internal prototype to avoid an error. */
16619 /* We use char because int might match the return type of a gcc2
16620 builtin and then its argument prototype would still apply. */
16621 char $ac_func();
16623 int main() {
16625 /* The GNU C library defines this for functions which it implements
16626 to always fail with ENOSYS. Some functions are actually named
16627 something starting with __ and the normal name is an alias. */
16628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16629 choke me
16630 #else
16631 $ac_func();
16632 #endif
16634 ; return 0; }
16636 if { (eval echo configure:16637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16637 rm -rf conftest*
16638 eval "ac_cv_func_$ac_func=yes"
16639 else
16640 echo "configure: failed program was:" >&5
16641 cat conftest.$ac_ext >&5
16642 rm -rf conftest*
16643 eval "ac_cv_func_$ac_func=no"
16645 rm -f conftest*
16648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16649 echo "$ac_t""yes" 1>&6
16650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16651 cat >> confdefs.h <<EOF
16652 #define $ac_tr_func 1
16655 else
16656 echo "$ac_t""no" 1>&6
16658 done
16660 else
16662 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
16663 echo "configure:16664: checking for _sqrtf declaration" >&5
16664 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
16665 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
16666 echo $ac_n "(cached) $ac_c" 1>&6
16667 else
16670 ac_ext=C
16671 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16672 ac_cpp='$CXXCPP $CPPFLAGS'
16673 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16674 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16675 cross_compiling=$ac_cv_prog_cxx_cross
16677 cat > conftest.$ac_ext <<EOF
16678 #line 16679 "configure"
16679 #include "confdefs.h"
16680 #include <math.h>
16681 #ifdef HAVE_IEEEFP_H
16682 #include <ieeefp.h>
16683 #endif
16685 int main() {
16686 _sqrtf(0);
16687 ; return 0; }
16689 if { (eval echo configure:16690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16690 rm -rf conftest*
16691 glibcpp_cv_func__sqrtf_use=yes
16692 else
16693 echo "configure: failed program was:" >&5
16694 cat conftest.$ac_ext >&5
16695 rm -rf conftest*
16696 glibcpp_cv_func__sqrtf_use=no
16698 rm -f conftest*
16699 ac_ext=c
16700 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16701 ac_cpp='$CPP $CPPFLAGS'
16702 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16703 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16704 cross_compiling=$ac_cv_prog_cc_cross
16710 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
16712 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
16713 for ac_func in _sqrtf
16715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16716 echo "configure:16717: checking for $ac_func" >&5
16717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16718 echo $ac_n "(cached) $ac_c" 1>&6
16719 else
16720 cat > conftest.$ac_ext <<EOF
16721 #line 16722 "configure"
16722 #include "confdefs.h"
16723 /* System header to define __stub macros and hopefully few prototypes,
16724 which can conflict with char $ac_func(); below. */
16725 #include <assert.h>
16726 /* Override any gcc2 internal prototype to avoid an error. */
16727 /* We use char because int might match the return type of a gcc2
16728 builtin and then its argument prototype would still apply. */
16729 char $ac_func();
16731 int main() {
16733 /* The GNU C library defines this for functions which it implements
16734 to always fail with ENOSYS. Some functions are actually named
16735 something starting with __ and the normal name is an alias. */
16736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16737 choke me
16738 #else
16739 $ac_func();
16740 #endif
16742 ; return 0; }
16744 if { (eval echo configure:16745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16745 rm -rf conftest*
16746 eval "ac_cv_func_$ac_func=yes"
16747 else
16748 echo "configure: failed program was:" >&5
16749 cat conftest.$ac_ext >&5
16750 rm -rf conftest*
16751 eval "ac_cv_func_$ac_func=no"
16753 rm -f conftest*
16756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16757 echo "$ac_t""yes" 1>&6
16758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16759 cat >> confdefs.h <<EOF
16760 #define $ac_tr_func 1
16763 else
16764 echo "$ac_t""no" 1>&6
16766 done
16773 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
16774 echo "configure:16775: checking for sincosf declaration" >&5
16775 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
16776 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
16777 echo $ac_n "(cached) $ac_c" 1>&6
16778 else
16781 ac_ext=C
16782 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16783 ac_cpp='$CXXCPP $CPPFLAGS'
16784 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16785 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16786 cross_compiling=$ac_cv_prog_cxx_cross
16788 cat > conftest.$ac_ext <<EOF
16789 #line 16790 "configure"
16790 #include "confdefs.h"
16791 #include <math.h>
16792 int main() {
16793 sincosf(0, 0, 0);
16794 ; return 0; }
16796 if { (eval echo configure:16797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16797 rm -rf conftest*
16798 glibcpp_cv_func_sincosf_use=yes
16799 else
16800 echo "configure: failed program was:" >&5
16801 cat conftest.$ac_ext >&5
16802 rm -rf conftest*
16803 glibcpp_cv_func_sincosf_use=no
16805 rm -f conftest*
16806 ac_ext=c
16807 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16808 ac_cpp='$CPP $CPPFLAGS'
16809 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16810 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16811 cross_compiling=$ac_cv_prog_cc_cross
16817 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
16819 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
16820 for ac_func in sincosf
16822 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16823 echo "configure:16824: checking for $ac_func" >&5
16824 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16825 echo $ac_n "(cached) $ac_c" 1>&6
16826 else
16827 cat > conftest.$ac_ext <<EOF
16828 #line 16829 "configure"
16829 #include "confdefs.h"
16830 /* System header to define __stub macros and hopefully few prototypes,
16831 which can conflict with char $ac_func(); below. */
16832 #include <assert.h>
16833 /* Override any gcc2 internal prototype to avoid an error. */
16834 /* We use char because int might match the return type of a gcc2
16835 builtin and then its argument prototype would still apply. */
16836 char $ac_func();
16838 int main() {
16840 /* The GNU C library defines this for functions which it implements
16841 to always fail with ENOSYS. Some functions are actually named
16842 something starting with __ and the normal name is an alias. */
16843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16844 choke me
16845 #else
16846 $ac_func();
16847 #endif
16849 ; return 0; }
16851 if { (eval echo configure:16852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16852 rm -rf conftest*
16853 eval "ac_cv_func_$ac_func=yes"
16854 else
16855 echo "configure: failed program was:" >&5
16856 cat conftest.$ac_ext >&5
16857 rm -rf conftest*
16858 eval "ac_cv_func_$ac_func=no"
16860 rm -f conftest*
16863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16864 echo "$ac_t""yes" 1>&6
16865 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16866 cat >> confdefs.h <<EOF
16867 #define $ac_tr_func 1
16870 else
16871 echo "$ac_t""no" 1>&6
16873 done
16875 else
16877 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
16878 echo "configure:16879: checking for _sincosf declaration" >&5
16879 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
16880 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
16881 echo $ac_n "(cached) $ac_c" 1>&6
16882 else
16885 ac_ext=C
16886 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16887 ac_cpp='$CXXCPP $CPPFLAGS'
16888 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16889 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16890 cross_compiling=$ac_cv_prog_cxx_cross
16892 cat > conftest.$ac_ext <<EOF
16893 #line 16894 "configure"
16894 #include "confdefs.h"
16895 #include <math.h>
16896 int main() {
16897 _sincosf(0, 0, 0);
16898 ; return 0; }
16900 if { (eval echo configure:16901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16901 rm -rf conftest*
16902 glibcpp_cv_func__sincosf_use=yes
16903 else
16904 echo "configure: failed program was:" >&5
16905 cat conftest.$ac_ext >&5
16906 rm -rf conftest*
16907 glibcpp_cv_func__sincosf_use=no
16909 rm -f conftest*
16910 ac_ext=c
16911 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16912 ac_cpp='$CPP $CPPFLAGS'
16913 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16914 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16915 cross_compiling=$ac_cv_prog_cc_cross
16921 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
16923 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
16924 for ac_func in _sincosf
16926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16927 echo "configure:16928: checking for $ac_func" >&5
16928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16929 echo $ac_n "(cached) $ac_c" 1>&6
16930 else
16931 cat > conftest.$ac_ext <<EOF
16932 #line 16933 "configure"
16933 #include "confdefs.h"
16934 /* System header to define __stub macros and hopefully few prototypes,
16935 which can conflict with char $ac_func(); below. */
16936 #include <assert.h>
16937 /* Override any gcc2 internal prototype to avoid an error. */
16938 /* We use char because int might match the return type of a gcc2
16939 builtin and then its argument prototype would still apply. */
16940 char $ac_func();
16942 int main() {
16944 /* The GNU C library defines this for functions which it implements
16945 to always fail with ENOSYS. Some functions are actually named
16946 something starting with __ and the normal name is an alias. */
16947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16948 choke me
16949 #else
16950 $ac_func();
16951 #endif
16953 ; return 0; }
16955 if { (eval echo configure:16956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16956 rm -rf conftest*
16957 eval "ac_cv_func_$ac_func=yes"
16958 else
16959 echo "configure: failed program was:" >&5
16960 cat conftest.$ac_ext >&5
16961 rm -rf conftest*
16962 eval "ac_cv_func_$ac_func=no"
16964 rm -f conftest*
16967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16968 echo "$ac_t""yes" 1>&6
16969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16970 cat >> confdefs.h <<EOF
16971 #define $ac_tr_func 1
16974 else
16975 echo "$ac_t""no" 1>&6
16977 done
16984 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
16985 echo "configure:16986: checking for finitef declaration" >&5
16986 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
16987 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
16988 echo $ac_n "(cached) $ac_c" 1>&6
16989 else
16992 ac_ext=C
16993 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16994 ac_cpp='$CXXCPP $CPPFLAGS'
16995 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16996 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16997 cross_compiling=$ac_cv_prog_cxx_cross
16999 cat > conftest.$ac_ext <<EOF
17000 #line 17001 "configure"
17001 #include "confdefs.h"
17002 #include <math.h>
17003 #ifdef HAVE_IEEEFP_H
17004 #include <ieeefp.h>
17005 #endif
17007 int main() {
17008 finitef(0);
17009 ; return 0; }
17011 if { (eval echo configure:17012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17012 rm -rf conftest*
17013 glibcpp_cv_func_finitef_use=yes
17014 else
17015 echo "configure: failed program was:" >&5
17016 cat conftest.$ac_ext >&5
17017 rm -rf conftest*
17018 glibcpp_cv_func_finitef_use=no
17020 rm -f conftest*
17021 ac_ext=c
17022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17023 ac_cpp='$CPP $CPPFLAGS'
17024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17026 cross_compiling=$ac_cv_prog_cc_cross
17032 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
17034 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
17035 for ac_func in finitef
17037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17038 echo "configure:17039: checking for $ac_func" >&5
17039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17040 echo $ac_n "(cached) $ac_c" 1>&6
17041 else
17042 cat > conftest.$ac_ext <<EOF
17043 #line 17044 "configure"
17044 #include "confdefs.h"
17045 /* System header to define __stub macros and hopefully few prototypes,
17046 which can conflict with char $ac_func(); below. */
17047 #include <assert.h>
17048 /* Override any gcc2 internal prototype to avoid an error. */
17049 /* We use char because int might match the return type of a gcc2
17050 builtin and then its argument prototype would still apply. */
17051 char $ac_func();
17053 int main() {
17055 /* The GNU C library defines this for functions which it implements
17056 to always fail with ENOSYS. Some functions are actually named
17057 something starting with __ and the normal name is an alias. */
17058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17059 choke me
17060 #else
17061 $ac_func();
17062 #endif
17064 ; return 0; }
17066 if { (eval echo configure:17067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17067 rm -rf conftest*
17068 eval "ac_cv_func_$ac_func=yes"
17069 else
17070 echo "configure: failed program was:" >&5
17071 cat conftest.$ac_ext >&5
17072 rm -rf conftest*
17073 eval "ac_cv_func_$ac_func=no"
17075 rm -f conftest*
17078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17079 echo "$ac_t""yes" 1>&6
17080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17081 cat >> confdefs.h <<EOF
17082 #define $ac_tr_func 1
17085 else
17086 echo "$ac_t""no" 1>&6
17088 done
17090 else
17092 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
17093 echo "configure:17094: checking for _finitef declaration" >&5
17094 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
17095 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
17096 echo $ac_n "(cached) $ac_c" 1>&6
17097 else
17100 ac_ext=C
17101 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17102 ac_cpp='$CXXCPP $CPPFLAGS'
17103 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17104 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17105 cross_compiling=$ac_cv_prog_cxx_cross
17107 cat > conftest.$ac_ext <<EOF
17108 #line 17109 "configure"
17109 #include "confdefs.h"
17110 #include <math.h>
17111 #ifdef HAVE_IEEEFP_H
17112 #include <ieeefp.h>
17113 #endif
17115 int main() {
17116 _finitef(0);
17117 ; return 0; }
17119 if { (eval echo configure:17120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17120 rm -rf conftest*
17121 glibcpp_cv_func__finitef_use=yes
17122 else
17123 echo "configure: failed program was:" >&5
17124 cat conftest.$ac_ext >&5
17125 rm -rf conftest*
17126 glibcpp_cv_func__finitef_use=no
17128 rm -f conftest*
17129 ac_ext=c
17130 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17131 ac_cpp='$CPP $CPPFLAGS'
17132 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17133 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17134 cross_compiling=$ac_cv_prog_cc_cross
17140 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
17142 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
17143 for ac_func in _finitef
17145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17146 echo "configure:17147: checking for $ac_func" >&5
17147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17148 echo $ac_n "(cached) $ac_c" 1>&6
17149 else
17150 cat > conftest.$ac_ext <<EOF
17151 #line 17152 "configure"
17152 #include "confdefs.h"
17153 /* System header to define __stub macros and hopefully few prototypes,
17154 which can conflict with char $ac_func(); below. */
17155 #include <assert.h>
17156 /* Override any gcc2 internal prototype to avoid an error. */
17157 /* We use char because int might match the return type of a gcc2
17158 builtin and then its argument prototype would still apply. */
17159 char $ac_func();
17161 int main() {
17163 /* The GNU C library defines this for functions which it implements
17164 to always fail with ENOSYS. Some functions are actually named
17165 something starting with __ and the normal name is an alias. */
17166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17167 choke me
17168 #else
17169 $ac_func();
17170 #endif
17172 ; return 0; }
17174 if { (eval echo configure:17175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17175 rm -rf conftest*
17176 eval "ac_cv_func_$ac_func=yes"
17177 else
17178 echo "configure: failed program was:" >&5
17179 cat conftest.$ac_ext >&5
17180 rm -rf conftest*
17181 eval "ac_cv_func_$ac_func=no"
17183 rm -f conftest*
17186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17187 echo "$ac_t""yes" 1>&6
17188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17189 cat >> confdefs.h <<EOF
17190 #define $ac_tr_func 1
17193 else
17194 echo "$ac_t""no" 1>&6
17196 done
17203 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
17204 echo "configure:17205: checking for long double trig functions" >&5
17205 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
17206 echo $ac_n "(cached) $ac_c" 1>&6
17207 else
17210 ac_ext=C
17211 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17212 ac_cpp='$CXXCPP $CPPFLAGS'
17213 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17214 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17215 cross_compiling=$ac_cv_prog_cxx_cross
17217 cat > conftest.$ac_ext <<EOF
17218 #line 17219 "configure"
17219 #include "confdefs.h"
17220 #include <math.h>
17221 int main() {
17222 `for x in acosl asinl atanl \
17223 cosl sinl tanl \
17224 coshl sinhl tanhl; do echo "$x (0);"; done`
17225 ; return 0; }
17227 if { (eval echo configure:17228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17228 rm -rf conftest*
17229 glibcpp_cv_func_long_double_trig_use=yes
17230 else
17231 echo "configure: failed program was:" >&5
17232 cat conftest.$ac_ext >&5
17233 rm -rf conftest*
17234 glibcpp_cv_func_long_double_trig_use=no
17236 rm -f conftest*
17237 ac_ext=c
17238 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17239 ac_cpp='$CPP $CPPFLAGS'
17240 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17241 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17242 cross_compiling=$ac_cv_prog_cc_cross
17246 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
17247 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
17248 for ac_func in acosl asinl atanl \
17249 cosl sinl tanl \
17250 coshl sinhl tanhl
17252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17253 echo "configure:17254: checking for $ac_func" >&5
17254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17255 echo $ac_n "(cached) $ac_c" 1>&6
17256 else
17257 cat > conftest.$ac_ext <<EOF
17258 #line 17259 "configure"
17259 #include "confdefs.h"
17260 /* System header to define __stub macros and hopefully few prototypes,
17261 which can conflict with char $ac_func(); below. */
17262 #include <assert.h>
17263 /* Override any gcc2 internal prototype to avoid an error. */
17264 /* We use char because int might match the return type of a gcc2
17265 builtin and then its argument prototype would still apply. */
17266 char $ac_func();
17268 int main() {
17270 /* The GNU C library defines this for functions which it implements
17271 to always fail with ENOSYS. Some functions are actually named
17272 something starting with __ and the normal name is an alias. */
17273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17274 choke me
17275 #else
17276 $ac_func();
17277 #endif
17279 ; return 0; }
17281 if { (eval echo configure:17282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17282 rm -rf conftest*
17283 eval "ac_cv_func_$ac_func=yes"
17284 else
17285 echo "configure: failed program was:" >&5
17286 cat conftest.$ac_ext >&5
17287 rm -rf conftest*
17288 eval "ac_cv_func_$ac_func=no"
17290 rm -f conftest*
17293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17294 echo "$ac_t""yes" 1>&6
17295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17296 cat >> confdefs.h <<EOF
17297 #define $ac_tr_func 1
17300 else
17301 echo "$ac_t""no" 1>&6
17303 done
17308 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
17309 echo "configure:17310: checking for long double round functions" >&5
17310 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
17311 echo $ac_n "(cached) $ac_c" 1>&6
17312 else
17315 ac_ext=C
17316 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17317 ac_cpp='$CXXCPP $CPPFLAGS'
17318 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17319 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17320 cross_compiling=$ac_cv_prog_cxx_cross
17322 cat > conftest.$ac_ext <<EOF
17323 #line 17324 "configure"
17324 #include "confdefs.h"
17325 #include <math.h>
17326 int main() {
17327 `for x in ceill floorl; do echo "$x (0);"; done`
17328 ; return 0; }
17330 if { (eval echo configure:17331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17331 rm -rf conftest*
17332 glibcpp_cv_func_long_double_round_use=yes
17333 else
17334 echo "configure: failed program was:" >&5
17335 cat conftest.$ac_ext >&5
17336 rm -rf conftest*
17337 glibcpp_cv_func_long_double_round_use=no
17339 rm -f conftest*
17340 ac_ext=c
17341 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17342 ac_cpp='$CPP $CPPFLAGS'
17343 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17344 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17345 cross_compiling=$ac_cv_prog_cc_cross
17349 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
17350 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
17351 for ac_func in ceill floorl
17353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17354 echo "configure:17355: checking for $ac_func" >&5
17355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17356 echo $ac_n "(cached) $ac_c" 1>&6
17357 else
17358 cat > conftest.$ac_ext <<EOF
17359 #line 17360 "configure"
17360 #include "confdefs.h"
17361 /* System header to define __stub macros and hopefully few prototypes,
17362 which can conflict with char $ac_func(); below. */
17363 #include <assert.h>
17364 /* Override any gcc2 internal prototype to avoid an error. */
17365 /* We use char because int might match the return type of a gcc2
17366 builtin and then its argument prototype would still apply. */
17367 char $ac_func();
17369 int main() {
17371 /* The GNU C library defines this for functions which it implements
17372 to always fail with ENOSYS. Some functions are actually named
17373 something starting with __ and the normal name is an alias. */
17374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17375 choke me
17376 #else
17377 $ac_func();
17378 #endif
17380 ; return 0; }
17382 if { (eval echo configure:17383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17383 rm -rf conftest*
17384 eval "ac_cv_func_$ac_func=yes"
17385 else
17386 echo "configure: failed program was:" >&5
17387 cat conftest.$ac_ext >&5
17388 rm -rf conftest*
17389 eval "ac_cv_func_$ac_func=no"
17391 rm -f conftest*
17394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17395 echo "$ac_t""yes" 1>&6
17396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17397 cat >> confdefs.h <<EOF
17398 #define $ac_tr_func 1
17401 else
17402 echo "$ac_t""no" 1>&6
17404 done
17410 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
17411 echo "configure:17412: checking for isnanl declaration" >&5
17412 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
17413 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
17414 echo $ac_n "(cached) $ac_c" 1>&6
17415 else
17418 ac_ext=C
17419 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17420 ac_cpp='$CXXCPP $CPPFLAGS'
17421 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17422 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17423 cross_compiling=$ac_cv_prog_cxx_cross
17425 cat > conftest.$ac_ext <<EOF
17426 #line 17427 "configure"
17427 #include "confdefs.h"
17428 #include <math.h>
17429 #ifdef HAVE_IEEEFP_H
17430 #include <ieeefp.h>
17431 #endif
17433 int main() {
17434 isnanl(0);
17435 ; return 0; }
17437 if { (eval echo configure:17438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17438 rm -rf conftest*
17439 glibcpp_cv_func_isnanl_use=yes
17440 else
17441 echo "configure: failed program was:" >&5
17442 cat conftest.$ac_ext >&5
17443 rm -rf conftest*
17444 glibcpp_cv_func_isnanl_use=no
17446 rm -f conftest*
17447 ac_ext=c
17448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17449 ac_cpp='$CPP $CPPFLAGS'
17450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17452 cross_compiling=$ac_cv_prog_cc_cross
17458 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
17460 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
17461 for ac_func in isnanl
17463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17464 echo "configure:17465: checking for $ac_func" >&5
17465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17466 echo $ac_n "(cached) $ac_c" 1>&6
17467 else
17468 cat > conftest.$ac_ext <<EOF
17469 #line 17470 "configure"
17470 #include "confdefs.h"
17471 /* System header to define __stub macros and hopefully few prototypes,
17472 which can conflict with char $ac_func(); below. */
17473 #include <assert.h>
17474 /* Override any gcc2 internal prototype to avoid an error. */
17475 /* We use char because int might match the return type of a gcc2
17476 builtin and then its argument prototype would still apply. */
17477 char $ac_func();
17479 int main() {
17481 /* The GNU C library defines this for functions which it implements
17482 to always fail with ENOSYS. Some functions are actually named
17483 something starting with __ and the normal name is an alias. */
17484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17485 choke me
17486 #else
17487 $ac_func();
17488 #endif
17490 ; return 0; }
17492 if { (eval echo configure:17493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17493 rm -rf conftest*
17494 eval "ac_cv_func_$ac_func=yes"
17495 else
17496 echo "configure: failed program was:" >&5
17497 cat conftest.$ac_ext >&5
17498 rm -rf conftest*
17499 eval "ac_cv_func_$ac_func=no"
17501 rm -f conftest*
17504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17505 echo "$ac_t""yes" 1>&6
17506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17507 cat >> confdefs.h <<EOF
17508 #define $ac_tr_func 1
17511 else
17512 echo "$ac_t""no" 1>&6
17514 done
17516 else
17518 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
17519 echo "configure:17520: checking for _isnanl declaration" >&5
17520 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
17521 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
17522 echo $ac_n "(cached) $ac_c" 1>&6
17523 else
17526 ac_ext=C
17527 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17528 ac_cpp='$CXXCPP $CPPFLAGS'
17529 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17530 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17531 cross_compiling=$ac_cv_prog_cxx_cross
17533 cat > conftest.$ac_ext <<EOF
17534 #line 17535 "configure"
17535 #include "confdefs.h"
17536 #include <math.h>
17537 #ifdef HAVE_IEEEFP_H
17538 #include <ieeefp.h>
17539 #endif
17541 int main() {
17542 _isnanl(0);
17543 ; return 0; }
17545 if { (eval echo configure:17546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17546 rm -rf conftest*
17547 glibcpp_cv_func__isnanl_use=yes
17548 else
17549 echo "configure: failed program was:" >&5
17550 cat conftest.$ac_ext >&5
17551 rm -rf conftest*
17552 glibcpp_cv_func__isnanl_use=no
17554 rm -f conftest*
17555 ac_ext=c
17556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17557 ac_cpp='$CPP $CPPFLAGS'
17558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17560 cross_compiling=$ac_cv_prog_cc_cross
17566 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
17568 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
17569 for ac_func in _isnanl
17571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17572 echo "configure:17573: checking for $ac_func" >&5
17573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17574 echo $ac_n "(cached) $ac_c" 1>&6
17575 else
17576 cat > conftest.$ac_ext <<EOF
17577 #line 17578 "configure"
17578 #include "confdefs.h"
17579 /* System header to define __stub macros and hopefully few prototypes,
17580 which can conflict with char $ac_func(); below. */
17581 #include <assert.h>
17582 /* Override any gcc2 internal prototype to avoid an error. */
17583 /* We use char because int might match the return type of a gcc2
17584 builtin and then its argument prototype would still apply. */
17585 char $ac_func();
17587 int main() {
17589 /* The GNU C library defines this for functions which it implements
17590 to always fail with ENOSYS. Some functions are actually named
17591 something starting with __ and the normal name is an alias. */
17592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17593 choke me
17594 #else
17595 $ac_func();
17596 #endif
17598 ; return 0; }
17600 if { (eval echo configure:17601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17601 rm -rf conftest*
17602 eval "ac_cv_func_$ac_func=yes"
17603 else
17604 echo "configure: failed program was:" >&5
17605 cat conftest.$ac_ext >&5
17606 rm -rf conftest*
17607 eval "ac_cv_func_$ac_func=no"
17609 rm -f conftest*
17612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17613 echo "$ac_t""yes" 1>&6
17614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17615 cat >> confdefs.h <<EOF
17616 #define $ac_tr_func 1
17619 else
17620 echo "$ac_t""no" 1>&6
17622 done
17629 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
17630 echo "configure:17631: checking for isinfl declaration" >&5
17631 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
17632 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
17633 echo $ac_n "(cached) $ac_c" 1>&6
17634 else
17637 ac_ext=C
17638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17639 ac_cpp='$CXXCPP $CPPFLAGS'
17640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17642 cross_compiling=$ac_cv_prog_cxx_cross
17644 cat > conftest.$ac_ext <<EOF
17645 #line 17646 "configure"
17646 #include "confdefs.h"
17647 #include <math.h>
17648 #ifdef HAVE_IEEEFP_H
17649 #include <ieeefp.h>
17650 #endif
17652 int main() {
17653 isinfl(0);
17654 ; return 0; }
17656 if { (eval echo configure:17657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17657 rm -rf conftest*
17658 glibcpp_cv_func_isinfl_use=yes
17659 else
17660 echo "configure: failed program was:" >&5
17661 cat conftest.$ac_ext >&5
17662 rm -rf conftest*
17663 glibcpp_cv_func_isinfl_use=no
17665 rm -f conftest*
17666 ac_ext=c
17667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17668 ac_cpp='$CPP $CPPFLAGS'
17669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17670 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17671 cross_compiling=$ac_cv_prog_cc_cross
17677 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
17679 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
17680 for ac_func in isinfl
17682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17683 echo "configure:17684: checking for $ac_func" >&5
17684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17685 echo $ac_n "(cached) $ac_c" 1>&6
17686 else
17687 cat > conftest.$ac_ext <<EOF
17688 #line 17689 "configure"
17689 #include "confdefs.h"
17690 /* System header to define __stub macros and hopefully few prototypes,
17691 which can conflict with char $ac_func(); below. */
17692 #include <assert.h>
17693 /* Override any gcc2 internal prototype to avoid an error. */
17694 /* We use char because int might match the return type of a gcc2
17695 builtin and then its argument prototype would still apply. */
17696 char $ac_func();
17698 int main() {
17700 /* The GNU C library defines this for functions which it implements
17701 to always fail with ENOSYS. Some functions are actually named
17702 something starting with __ and the normal name is an alias. */
17703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17704 choke me
17705 #else
17706 $ac_func();
17707 #endif
17709 ; return 0; }
17711 if { (eval echo configure:17712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17712 rm -rf conftest*
17713 eval "ac_cv_func_$ac_func=yes"
17714 else
17715 echo "configure: failed program was:" >&5
17716 cat conftest.$ac_ext >&5
17717 rm -rf conftest*
17718 eval "ac_cv_func_$ac_func=no"
17720 rm -f conftest*
17723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17724 echo "$ac_t""yes" 1>&6
17725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17726 cat >> confdefs.h <<EOF
17727 #define $ac_tr_func 1
17730 else
17731 echo "$ac_t""no" 1>&6
17733 done
17735 else
17737 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
17738 echo "configure:17739: checking for _isinfl declaration" >&5
17739 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
17740 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
17741 echo $ac_n "(cached) $ac_c" 1>&6
17742 else
17745 ac_ext=C
17746 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17747 ac_cpp='$CXXCPP $CPPFLAGS'
17748 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17749 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17750 cross_compiling=$ac_cv_prog_cxx_cross
17752 cat > conftest.$ac_ext <<EOF
17753 #line 17754 "configure"
17754 #include "confdefs.h"
17755 #include <math.h>
17756 #ifdef HAVE_IEEEFP_H
17757 #include <ieeefp.h>
17758 #endif
17760 int main() {
17761 _isinfl(0);
17762 ; return 0; }
17764 if { (eval echo configure:17765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17765 rm -rf conftest*
17766 glibcpp_cv_func__isinfl_use=yes
17767 else
17768 echo "configure: failed program was:" >&5
17769 cat conftest.$ac_ext >&5
17770 rm -rf conftest*
17771 glibcpp_cv_func__isinfl_use=no
17773 rm -f conftest*
17774 ac_ext=c
17775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17776 ac_cpp='$CPP $CPPFLAGS'
17777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17779 cross_compiling=$ac_cv_prog_cc_cross
17785 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
17787 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
17788 for ac_func in _isinfl
17790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17791 echo "configure:17792: checking for $ac_func" >&5
17792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17793 echo $ac_n "(cached) $ac_c" 1>&6
17794 else
17795 cat > conftest.$ac_ext <<EOF
17796 #line 17797 "configure"
17797 #include "confdefs.h"
17798 /* System header to define __stub macros and hopefully few prototypes,
17799 which can conflict with char $ac_func(); below. */
17800 #include <assert.h>
17801 /* Override any gcc2 internal prototype to avoid an error. */
17802 /* We use char because int might match the return type of a gcc2
17803 builtin and then its argument prototype would still apply. */
17804 char $ac_func();
17806 int main() {
17808 /* The GNU C library defines this for functions which it implements
17809 to always fail with ENOSYS. Some functions are actually named
17810 something starting with __ and the normal name is an alias. */
17811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17812 choke me
17813 #else
17814 $ac_func();
17815 #endif
17817 ; return 0; }
17819 if { (eval echo configure:17820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17820 rm -rf conftest*
17821 eval "ac_cv_func_$ac_func=yes"
17822 else
17823 echo "configure: failed program was:" >&5
17824 cat conftest.$ac_ext >&5
17825 rm -rf conftest*
17826 eval "ac_cv_func_$ac_func=no"
17828 rm -f conftest*
17831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17832 echo "$ac_t""yes" 1>&6
17833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17834 cat >> confdefs.h <<EOF
17835 #define $ac_tr_func 1
17838 else
17839 echo "$ac_t""no" 1>&6
17841 done
17848 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
17849 echo "configure:17850: checking for copysignl declaration" >&5
17850 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
17851 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
17852 echo $ac_n "(cached) $ac_c" 1>&6
17853 else
17856 ac_ext=C
17857 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17858 ac_cpp='$CXXCPP $CPPFLAGS'
17859 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17860 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17861 cross_compiling=$ac_cv_prog_cxx_cross
17863 cat > conftest.$ac_ext <<EOF
17864 #line 17865 "configure"
17865 #include "confdefs.h"
17866 #include <math.h>
17867 int main() {
17868 copysignl(0, 0);
17869 ; return 0; }
17871 if { (eval echo configure:17872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17872 rm -rf conftest*
17873 glibcpp_cv_func_copysignl_use=yes
17874 else
17875 echo "configure: failed program was:" >&5
17876 cat conftest.$ac_ext >&5
17877 rm -rf conftest*
17878 glibcpp_cv_func_copysignl_use=no
17880 rm -f conftest*
17881 ac_ext=c
17882 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17883 ac_cpp='$CPP $CPPFLAGS'
17884 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17885 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17886 cross_compiling=$ac_cv_prog_cc_cross
17892 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
17894 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
17895 for ac_func in copysignl
17897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17898 echo "configure:17899: checking for $ac_func" >&5
17899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17900 echo $ac_n "(cached) $ac_c" 1>&6
17901 else
17902 cat > conftest.$ac_ext <<EOF
17903 #line 17904 "configure"
17904 #include "confdefs.h"
17905 /* System header to define __stub macros and hopefully few prototypes,
17906 which can conflict with char $ac_func(); below. */
17907 #include <assert.h>
17908 /* Override any gcc2 internal prototype to avoid an error. */
17909 /* We use char because int might match the return type of a gcc2
17910 builtin and then its argument prototype would still apply. */
17911 char $ac_func();
17913 int main() {
17915 /* The GNU C library defines this for functions which it implements
17916 to always fail with ENOSYS. Some functions are actually named
17917 something starting with __ and the normal name is an alias. */
17918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17919 choke me
17920 #else
17921 $ac_func();
17922 #endif
17924 ; return 0; }
17926 if { (eval echo configure:17927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17927 rm -rf conftest*
17928 eval "ac_cv_func_$ac_func=yes"
17929 else
17930 echo "configure: failed program was:" >&5
17931 cat conftest.$ac_ext >&5
17932 rm -rf conftest*
17933 eval "ac_cv_func_$ac_func=no"
17935 rm -f conftest*
17938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17939 echo "$ac_t""yes" 1>&6
17940 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17941 cat >> confdefs.h <<EOF
17942 #define $ac_tr_func 1
17945 else
17946 echo "$ac_t""no" 1>&6
17948 done
17950 else
17952 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
17953 echo "configure:17954: checking for _copysignl declaration" >&5
17954 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
17955 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
17956 echo $ac_n "(cached) $ac_c" 1>&6
17957 else
17960 ac_ext=C
17961 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17962 ac_cpp='$CXXCPP $CPPFLAGS'
17963 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17964 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17965 cross_compiling=$ac_cv_prog_cxx_cross
17967 cat > conftest.$ac_ext <<EOF
17968 #line 17969 "configure"
17969 #include "confdefs.h"
17970 #include <math.h>
17971 int main() {
17972 _copysignl(0, 0);
17973 ; return 0; }
17975 if { (eval echo configure:17976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17976 rm -rf conftest*
17977 glibcpp_cv_func__copysignl_use=yes
17978 else
17979 echo "configure: failed program was:" >&5
17980 cat conftest.$ac_ext >&5
17981 rm -rf conftest*
17982 glibcpp_cv_func__copysignl_use=no
17984 rm -f conftest*
17985 ac_ext=c
17986 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17987 ac_cpp='$CPP $CPPFLAGS'
17988 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17989 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17990 cross_compiling=$ac_cv_prog_cc_cross
17996 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
17998 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
17999 for ac_func in _copysignl
18001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18002 echo "configure:18003: checking for $ac_func" >&5
18003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18004 echo $ac_n "(cached) $ac_c" 1>&6
18005 else
18006 cat > conftest.$ac_ext <<EOF
18007 #line 18008 "configure"
18008 #include "confdefs.h"
18009 /* System header to define __stub macros and hopefully few prototypes,
18010 which can conflict with char $ac_func(); below. */
18011 #include <assert.h>
18012 /* Override any gcc2 internal prototype to avoid an error. */
18013 /* We use char because int might match the return type of a gcc2
18014 builtin and then its argument prototype would still apply. */
18015 char $ac_func();
18017 int main() {
18019 /* The GNU C library defines this for functions which it implements
18020 to always fail with ENOSYS. Some functions are actually named
18021 something starting with __ and the normal name is an alias. */
18022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18023 choke me
18024 #else
18025 $ac_func();
18026 #endif
18028 ; return 0; }
18030 if { (eval echo configure:18031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18031 rm -rf conftest*
18032 eval "ac_cv_func_$ac_func=yes"
18033 else
18034 echo "configure: failed program was:" >&5
18035 cat conftest.$ac_ext >&5
18036 rm -rf conftest*
18037 eval "ac_cv_func_$ac_func=no"
18039 rm -f conftest*
18042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18043 echo "$ac_t""yes" 1>&6
18044 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18045 cat >> confdefs.h <<EOF
18046 #define $ac_tr_func 1
18049 else
18050 echo "$ac_t""no" 1>&6
18052 done
18059 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
18060 echo "configure:18061: checking for atan2l declaration" >&5
18061 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
18062 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
18063 echo $ac_n "(cached) $ac_c" 1>&6
18064 else
18067 ac_ext=C
18068 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18069 ac_cpp='$CXXCPP $CPPFLAGS'
18070 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18071 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18072 cross_compiling=$ac_cv_prog_cxx_cross
18074 cat > conftest.$ac_ext <<EOF
18075 #line 18076 "configure"
18076 #include "confdefs.h"
18077 #include <math.h>
18078 int main() {
18079 atan2l(0, 0);
18080 ; return 0; }
18082 if { (eval echo configure:18083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18083 rm -rf conftest*
18084 glibcpp_cv_func_atan2l_use=yes
18085 else
18086 echo "configure: failed program was:" >&5
18087 cat conftest.$ac_ext >&5
18088 rm -rf conftest*
18089 glibcpp_cv_func_atan2l_use=no
18091 rm -f conftest*
18092 ac_ext=c
18093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18094 ac_cpp='$CPP $CPPFLAGS'
18095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18097 cross_compiling=$ac_cv_prog_cc_cross
18103 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
18105 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
18106 for ac_func in atan2l
18108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18109 echo "configure:18110: checking for $ac_func" >&5
18110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18111 echo $ac_n "(cached) $ac_c" 1>&6
18112 else
18113 cat > conftest.$ac_ext <<EOF
18114 #line 18115 "configure"
18115 #include "confdefs.h"
18116 /* System header to define __stub macros and hopefully few prototypes,
18117 which can conflict with char $ac_func(); below. */
18118 #include <assert.h>
18119 /* Override any gcc2 internal prototype to avoid an error. */
18120 /* We use char because int might match the return type of a gcc2
18121 builtin and then its argument prototype would still apply. */
18122 char $ac_func();
18124 int main() {
18126 /* The GNU C library defines this for functions which it implements
18127 to always fail with ENOSYS. Some functions are actually named
18128 something starting with __ and the normal name is an alias. */
18129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18130 choke me
18131 #else
18132 $ac_func();
18133 #endif
18135 ; return 0; }
18137 if { (eval echo configure:18138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18138 rm -rf conftest*
18139 eval "ac_cv_func_$ac_func=yes"
18140 else
18141 echo "configure: failed program was:" >&5
18142 cat conftest.$ac_ext >&5
18143 rm -rf conftest*
18144 eval "ac_cv_func_$ac_func=no"
18146 rm -f conftest*
18149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18150 echo "$ac_t""yes" 1>&6
18151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18152 cat >> confdefs.h <<EOF
18153 #define $ac_tr_func 1
18156 else
18157 echo "$ac_t""no" 1>&6
18159 done
18161 else
18163 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
18164 echo "configure:18165: checking for _atan2l declaration" >&5
18165 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
18166 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
18167 echo $ac_n "(cached) $ac_c" 1>&6
18168 else
18171 ac_ext=C
18172 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18173 ac_cpp='$CXXCPP $CPPFLAGS'
18174 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18175 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18176 cross_compiling=$ac_cv_prog_cxx_cross
18178 cat > conftest.$ac_ext <<EOF
18179 #line 18180 "configure"
18180 #include "confdefs.h"
18181 #include <math.h>
18182 int main() {
18183 _atan2l(0, 0);
18184 ; return 0; }
18186 if { (eval echo configure:18187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18187 rm -rf conftest*
18188 glibcpp_cv_func__atan2l_use=yes
18189 else
18190 echo "configure: failed program was:" >&5
18191 cat conftest.$ac_ext >&5
18192 rm -rf conftest*
18193 glibcpp_cv_func__atan2l_use=no
18195 rm -f conftest*
18196 ac_ext=c
18197 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18198 ac_cpp='$CPP $CPPFLAGS'
18199 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18200 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18201 cross_compiling=$ac_cv_prog_cc_cross
18207 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
18209 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
18210 for ac_func in _atan2l
18212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18213 echo "configure:18214: checking for $ac_func" >&5
18214 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18215 echo $ac_n "(cached) $ac_c" 1>&6
18216 else
18217 cat > conftest.$ac_ext <<EOF
18218 #line 18219 "configure"
18219 #include "confdefs.h"
18220 /* System header to define __stub macros and hopefully few prototypes,
18221 which can conflict with char $ac_func(); below. */
18222 #include <assert.h>
18223 /* Override any gcc2 internal prototype to avoid an error. */
18224 /* We use char because int might match the return type of a gcc2
18225 builtin and then its argument prototype would still apply. */
18226 char $ac_func();
18228 int main() {
18230 /* The GNU C library defines this for functions which it implements
18231 to always fail with ENOSYS. Some functions are actually named
18232 something starting with __ and the normal name is an alias. */
18233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18234 choke me
18235 #else
18236 $ac_func();
18237 #endif
18239 ; return 0; }
18241 if { (eval echo configure:18242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18242 rm -rf conftest*
18243 eval "ac_cv_func_$ac_func=yes"
18244 else
18245 echo "configure: failed program was:" >&5
18246 cat conftest.$ac_ext >&5
18247 rm -rf conftest*
18248 eval "ac_cv_func_$ac_func=no"
18250 rm -f conftest*
18253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18254 echo "$ac_t""yes" 1>&6
18255 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18256 cat >> confdefs.h <<EOF
18257 #define $ac_tr_func 1
18260 else
18261 echo "$ac_t""no" 1>&6
18263 done
18270 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
18271 echo "configure:18272: checking for expl declaration" >&5
18272 if test x${glibcpp_cv_func_expl_use+set} != xset; then
18273 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
18274 echo $ac_n "(cached) $ac_c" 1>&6
18275 else
18278 ac_ext=C
18279 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18280 ac_cpp='$CXXCPP $CPPFLAGS'
18281 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18282 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18283 cross_compiling=$ac_cv_prog_cxx_cross
18285 cat > conftest.$ac_ext <<EOF
18286 #line 18287 "configure"
18287 #include "confdefs.h"
18288 #include <math.h>
18289 #ifdef HAVE_IEEEFP_H
18290 #include <ieeefp.h>
18291 #endif
18293 int main() {
18294 expl(0);
18295 ; return 0; }
18297 if { (eval echo configure:18298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18298 rm -rf conftest*
18299 glibcpp_cv_func_expl_use=yes
18300 else
18301 echo "configure: failed program was:" >&5
18302 cat conftest.$ac_ext >&5
18303 rm -rf conftest*
18304 glibcpp_cv_func_expl_use=no
18306 rm -f conftest*
18307 ac_ext=c
18308 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18309 ac_cpp='$CPP $CPPFLAGS'
18310 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18311 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18312 cross_compiling=$ac_cv_prog_cc_cross
18318 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
18320 if test x$glibcpp_cv_func_expl_use = x"yes"; then
18321 for ac_func in expl
18323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18324 echo "configure:18325: checking for $ac_func" >&5
18325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18326 echo $ac_n "(cached) $ac_c" 1>&6
18327 else
18328 cat > conftest.$ac_ext <<EOF
18329 #line 18330 "configure"
18330 #include "confdefs.h"
18331 /* System header to define __stub macros and hopefully few prototypes,
18332 which can conflict with char $ac_func(); below. */
18333 #include <assert.h>
18334 /* Override any gcc2 internal prototype to avoid an error. */
18335 /* We use char because int might match the return type of a gcc2
18336 builtin and then its argument prototype would still apply. */
18337 char $ac_func();
18339 int main() {
18341 /* The GNU C library defines this for functions which it implements
18342 to always fail with ENOSYS. Some functions are actually named
18343 something starting with __ and the normal name is an alias. */
18344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18345 choke me
18346 #else
18347 $ac_func();
18348 #endif
18350 ; return 0; }
18352 if { (eval echo configure:18353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18353 rm -rf conftest*
18354 eval "ac_cv_func_$ac_func=yes"
18355 else
18356 echo "configure: failed program was:" >&5
18357 cat conftest.$ac_ext >&5
18358 rm -rf conftest*
18359 eval "ac_cv_func_$ac_func=no"
18361 rm -f conftest*
18364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18365 echo "$ac_t""yes" 1>&6
18366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18367 cat >> confdefs.h <<EOF
18368 #define $ac_tr_func 1
18371 else
18372 echo "$ac_t""no" 1>&6
18374 done
18376 else
18378 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
18379 echo "configure:18380: checking for _expl declaration" >&5
18380 if test x${glibcpp_cv_func__expl_use+set} != xset; then
18381 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
18382 echo $ac_n "(cached) $ac_c" 1>&6
18383 else
18386 ac_ext=C
18387 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18388 ac_cpp='$CXXCPP $CPPFLAGS'
18389 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18390 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18391 cross_compiling=$ac_cv_prog_cxx_cross
18393 cat > conftest.$ac_ext <<EOF
18394 #line 18395 "configure"
18395 #include "confdefs.h"
18396 #include <math.h>
18397 #ifdef HAVE_IEEEFP_H
18398 #include <ieeefp.h>
18399 #endif
18401 int main() {
18402 _expl(0);
18403 ; return 0; }
18405 if { (eval echo configure:18406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18406 rm -rf conftest*
18407 glibcpp_cv_func__expl_use=yes
18408 else
18409 echo "configure: failed program was:" >&5
18410 cat conftest.$ac_ext >&5
18411 rm -rf conftest*
18412 glibcpp_cv_func__expl_use=no
18414 rm -f conftest*
18415 ac_ext=c
18416 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18417 ac_cpp='$CPP $CPPFLAGS'
18418 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18419 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18420 cross_compiling=$ac_cv_prog_cc_cross
18426 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
18428 if test x$glibcpp_cv_func__expl_use = x"yes"; then
18429 for ac_func in _expl
18431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18432 echo "configure:18433: checking for $ac_func" >&5
18433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18434 echo $ac_n "(cached) $ac_c" 1>&6
18435 else
18436 cat > conftest.$ac_ext <<EOF
18437 #line 18438 "configure"
18438 #include "confdefs.h"
18439 /* System header to define __stub macros and hopefully few prototypes,
18440 which can conflict with char $ac_func(); below. */
18441 #include <assert.h>
18442 /* Override any gcc2 internal prototype to avoid an error. */
18443 /* We use char because int might match the return type of a gcc2
18444 builtin and then its argument prototype would still apply. */
18445 char $ac_func();
18447 int main() {
18449 /* The GNU C library defines this for functions which it implements
18450 to always fail with ENOSYS. Some functions are actually named
18451 something starting with __ and the normal name is an alias. */
18452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18453 choke me
18454 #else
18455 $ac_func();
18456 #endif
18458 ; return 0; }
18460 if { (eval echo configure:18461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18461 rm -rf conftest*
18462 eval "ac_cv_func_$ac_func=yes"
18463 else
18464 echo "configure: failed program was:" >&5
18465 cat conftest.$ac_ext >&5
18466 rm -rf conftest*
18467 eval "ac_cv_func_$ac_func=no"
18469 rm -f conftest*
18472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18473 echo "$ac_t""yes" 1>&6
18474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18475 cat >> confdefs.h <<EOF
18476 #define $ac_tr_func 1
18479 else
18480 echo "$ac_t""no" 1>&6
18482 done
18489 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
18490 echo "configure:18491: checking for fabsl declaration" >&5
18491 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
18492 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
18493 echo $ac_n "(cached) $ac_c" 1>&6
18494 else
18497 ac_ext=C
18498 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18499 ac_cpp='$CXXCPP $CPPFLAGS'
18500 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18501 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18502 cross_compiling=$ac_cv_prog_cxx_cross
18504 cat > conftest.$ac_ext <<EOF
18505 #line 18506 "configure"
18506 #include "confdefs.h"
18507 #include <math.h>
18508 #ifdef HAVE_IEEEFP_H
18509 #include <ieeefp.h>
18510 #endif
18512 int main() {
18513 fabsl(0);
18514 ; return 0; }
18516 if { (eval echo configure:18517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18517 rm -rf conftest*
18518 glibcpp_cv_func_fabsl_use=yes
18519 else
18520 echo "configure: failed program was:" >&5
18521 cat conftest.$ac_ext >&5
18522 rm -rf conftest*
18523 glibcpp_cv_func_fabsl_use=no
18525 rm -f conftest*
18526 ac_ext=c
18527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18528 ac_cpp='$CPP $CPPFLAGS'
18529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18531 cross_compiling=$ac_cv_prog_cc_cross
18537 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
18539 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
18540 for ac_func in fabsl
18542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18543 echo "configure:18544: checking for $ac_func" >&5
18544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18545 echo $ac_n "(cached) $ac_c" 1>&6
18546 else
18547 cat > conftest.$ac_ext <<EOF
18548 #line 18549 "configure"
18549 #include "confdefs.h"
18550 /* System header to define __stub macros and hopefully few prototypes,
18551 which can conflict with char $ac_func(); below. */
18552 #include <assert.h>
18553 /* Override any gcc2 internal prototype to avoid an error. */
18554 /* We use char because int might match the return type of a gcc2
18555 builtin and then its argument prototype would still apply. */
18556 char $ac_func();
18558 int main() {
18560 /* The GNU C library defines this for functions which it implements
18561 to always fail with ENOSYS. Some functions are actually named
18562 something starting with __ and the normal name is an alias. */
18563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18564 choke me
18565 #else
18566 $ac_func();
18567 #endif
18569 ; return 0; }
18571 if { (eval echo configure:18572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18572 rm -rf conftest*
18573 eval "ac_cv_func_$ac_func=yes"
18574 else
18575 echo "configure: failed program was:" >&5
18576 cat conftest.$ac_ext >&5
18577 rm -rf conftest*
18578 eval "ac_cv_func_$ac_func=no"
18580 rm -f conftest*
18583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18584 echo "$ac_t""yes" 1>&6
18585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18586 cat >> confdefs.h <<EOF
18587 #define $ac_tr_func 1
18590 else
18591 echo "$ac_t""no" 1>&6
18593 done
18595 else
18597 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
18598 echo "configure:18599: checking for _fabsl declaration" >&5
18599 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
18600 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
18601 echo $ac_n "(cached) $ac_c" 1>&6
18602 else
18605 ac_ext=C
18606 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18607 ac_cpp='$CXXCPP $CPPFLAGS'
18608 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18609 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18610 cross_compiling=$ac_cv_prog_cxx_cross
18612 cat > conftest.$ac_ext <<EOF
18613 #line 18614 "configure"
18614 #include "confdefs.h"
18615 #include <math.h>
18616 #ifdef HAVE_IEEEFP_H
18617 #include <ieeefp.h>
18618 #endif
18620 int main() {
18621 _fabsl(0);
18622 ; return 0; }
18624 if { (eval echo configure:18625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18625 rm -rf conftest*
18626 glibcpp_cv_func__fabsl_use=yes
18627 else
18628 echo "configure: failed program was:" >&5
18629 cat conftest.$ac_ext >&5
18630 rm -rf conftest*
18631 glibcpp_cv_func__fabsl_use=no
18633 rm -f conftest*
18634 ac_ext=c
18635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18636 ac_cpp='$CPP $CPPFLAGS'
18637 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18638 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18639 cross_compiling=$ac_cv_prog_cc_cross
18645 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
18647 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
18648 for ac_func in _fabsl
18650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18651 echo "configure:18652: checking for $ac_func" >&5
18652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18653 echo $ac_n "(cached) $ac_c" 1>&6
18654 else
18655 cat > conftest.$ac_ext <<EOF
18656 #line 18657 "configure"
18657 #include "confdefs.h"
18658 /* System header to define __stub macros and hopefully few prototypes,
18659 which can conflict with char $ac_func(); below. */
18660 #include <assert.h>
18661 /* Override any gcc2 internal prototype to avoid an error. */
18662 /* We use char because int might match the return type of a gcc2
18663 builtin and then its argument prototype would still apply. */
18664 char $ac_func();
18666 int main() {
18668 /* The GNU C library defines this for functions which it implements
18669 to always fail with ENOSYS. Some functions are actually named
18670 something starting with __ and the normal name is an alias. */
18671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18672 choke me
18673 #else
18674 $ac_func();
18675 #endif
18677 ; return 0; }
18679 if { (eval echo configure:18680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18680 rm -rf conftest*
18681 eval "ac_cv_func_$ac_func=yes"
18682 else
18683 echo "configure: failed program was:" >&5
18684 cat conftest.$ac_ext >&5
18685 rm -rf conftest*
18686 eval "ac_cv_func_$ac_func=no"
18688 rm -f conftest*
18691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18692 echo "$ac_t""yes" 1>&6
18693 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18694 cat >> confdefs.h <<EOF
18695 #define $ac_tr_func 1
18698 else
18699 echo "$ac_t""no" 1>&6
18701 done
18708 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
18709 echo "configure:18710: checking for fmodl declaration" >&5
18710 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
18711 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
18712 echo $ac_n "(cached) $ac_c" 1>&6
18713 else
18716 ac_ext=C
18717 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18718 ac_cpp='$CXXCPP $CPPFLAGS'
18719 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18720 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18721 cross_compiling=$ac_cv_prog_cxx_cross
18723 cat > conftest.$ac_ext <<EOF
18724 #line 18725 "configure"
18725 #include "confdefs.h"
18726 #include <math.h>
18727 int main() {
18728 fmodl(0, 0);
18729 ; return 0; }
18731 if { (eval echo configure:18732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18732 rm -rf conftest*
18733 glibcpp_cv_func_fmodl_use=yes
18734 else
18735 echo "configure: failed program was:" >&5
18736 cat conftest.$ac_ext >&5
18737 rm -rf conftest*
18738 glibcpp_cv_func_fmodl_use=no
18740 rm -f conftest*
18741 ac_ext=c
18742 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18743 ac_cpp='$CPP $CPPFLAGS'
18744 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18745 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18746 cross_compiling=$ac_cv_prog_cc_cross
18752 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
18754 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
18755 for ac_func in fmodl
18757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18758 echo "configure:18759: checking for $ac_func" >&5
18759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18760 echo $ac_n "(cached) $ac_c" 1>&6
18761 else
18762 cat > conftest.$ac_ext <<EOF
18763 #line 18764 "configure"
18764 #include "confdefs.h"
18765 /* System header to define __stub macros and hopefully few prototypes,
18766 which can conflict with char $ac_func(); below. */
18767 #include <assert.h>
18768 /* Override any gcc2 internal prototype to avoid an error. */
18769 /* We use char because int might match the return type of a gcc2
18770 builtin and then its argument prototype would still apply. */
18771 char $ac_func();
18773 int main() {
18775 /* The GNU C library defines this for functions which it implements
18776 to always fail with ENOSYS. Some functions are actually named
18777 something starting with __ and the normal name is an alias. */
18778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18779 choke me
18780 #else
18781 $ac_func();
18782 #endif
18784 ; return 0; }
18786 if { (eval echo configure:18787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18787 rm -rf conftest*
18788 eval "ac_cv_func_$ac_func=yes"
18789 else
18790 echo "configure: failed program was:" >&5
18791 cat conftest.$ac_ext >&5
18792 rm -rf conftest*
18793 eval "ac_cv_func_$ac_func=no"
18795 rm -f conftest*
18798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18799 echo "$ac_t""yes" 1>&6
18800 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18801 cat >> confdefs.h <<EOF
18802 #define $ac_tr_func 1
18805 else
18806 echo "$ac_t""no" 1>&6
18808 done
18810 else
18812 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
18813 echo "configure:18814: checking for _fmodl declaration" >&5
18814 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
18815 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
18816 echo $ac_n "(cached) $ac_c" 1>&6
18817 else
18820 ac_ext=C
18821 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18822 ac_cpp='$CXXCPP $CPPFLAGS'
18823 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18824 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18825 cross_compiling=$ac_cv_prog_cxx_cross
18827 cat > conftest.$ac_ext <<EOF
18828 #line 18829 "configure"
18829 #include "confdefs.h"
18830 #include <math.h>
18831 int main() {
18832 _fmodl(0, 0);
18833 ; return 0; }
18835 if { (eval echo configure:18836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18836 rm -rf conftest*
18837 glibcpp_cv_func__fmodl_use=yes
18838 else
18839 echo "configure: failed program was:" >&5
18840 cat conftest.$ac_ext >&5
18841 rm -rf conftest*
18842 glibcpp_cv_func__fmodl_use=no
18844 rm -f conftest*
18845 ac_ext=c
18846 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18847 ac_cpp='$CPP $CPPFLAGS'
18848 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18849 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18850 cross_compiling=$ac_cv_prog_cc_cross
18856 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
18858 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
18859 for ac_func in _fmodl
18861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18862 echo "configure:18863: checking for $ac_func" >&5
18863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18864 echo $ac_n "(cached) $ac_c" 1>&6
18865 else
18866 cat > conftest.$ac_ext <<EOF
18867 #line 18868 "configure"
18868 #include "confdefs.h"
18869 /* System header to define __stub macros and hopefully few prototypes,
18870 which can conflict with char $ac_func(); below. */
18871 #include <assert.h>
18872 /* Override any gcc2 internal prototype to avoid an error. */
18873 /* We use char because int might match the return type of a gcc2
18874 builtin and then its argument prototype would still apply. */
18875 char $ac_func();
18877 int main() {
18879 /* The GNU C library defines this for functions which it implements
18880 to always fail with ENOSYS. Some functions are actually named
18881 something starting with __ and the normal name is an alias. */
18882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18883 choke me
18884 #else
18885 $ac_func();
18886 #endif
18888 ; return 0; }
18890 if { (eval echo configure:18891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18891 rm -rf conftest*
18892 eval "ac_cv_func_$ac_func=yes"
18893 else
18894 echo "configure: failed program was:" >&5
18895 cat conftest.$ac_ext >&5
18896 rm -rf conftest*
18897 eval "ac_cv_func_$ac_func=no"
18899 rm -f conftest*
18902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18903 echo "$ac_t""yes" 1>&6
18904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18905 cat >> confdefs.h <<EOF
18906 #define $ac_tr_func 1
18909 else
18910 echo "$ac_t""no" 1>&6
18912 done
18919 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
18920 echo "configure:18921: checking for frexpl declaration" >&5
18921 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
18922 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
18923 echo $ac_n "(cached) $ac_c" 1>&6
18924 else
18927 ac_ext=C
18928 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18929 ac_cpp='$CXXCPP $CPPFLAGS'
18930 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18931 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18932 cross_compiling=$ac_cv_prog_cxx_cross
18934 cat > conftest.$ac_ext <<EOF
18935 #line 18936 "configure"
18936 #include "confdefs.h"
18937 #include <math.h>
18938 int main() {
18939 frexpl(0, 0);
18940 ; return 0; }
18942 if { (eval echo configure:18943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18943 rm -rf conftest*
18944 glibcpp_cv_func_frexpl_use=yes
18945 else
18946 echo "configure: failed program was:" >&5
18947 cat conftest.$ac_ext >&5
18948 rm -rf conftest*
18949 glibcpp_cv_func_frexpl_use=no
18951 rm -f conftest*
18952 ac_ext=c
18953 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18954 ac_cpp='$CPP $CPPFLAGS'
18955 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18956 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18957 cross_compiling=$ac_cv_prog_cc_cross
18963 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
18965 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
18966 for ac_func in frexpl
18968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18969 echo "configure:18970: checking for $ac_func" >&5
18970 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18971 echo $ac_n "(cached) $ac_c" 1>&6
18972 else
18973 cat > conftest.$ac_ext <<EOF
18974 #line 18975 "configure"
18975 #include "confdefs.h"
18976 /* System header to define __stub macros and hopefully few prototypes,
18977 which can conflict with char $ac_func(); below. */
18978 #include <assert.h>
18979 /* Override any gcc2 internal prototype to avoid an error. */
18980 /* We use char because int might match the return type of a gcc2
18981 builtin and then its argument prototype would still apply. */
18982 char $ac_func();
18984 int main() {
18986 /* The GNU C library defines this for functions which it implements
18987 to always fail with ENOSYS. Some functions are actually named
18988 something starting with __ and the normal name is an alias. */
18989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18990 choke me
18991 #else
18992 $ac_func();
18993 #endif
18995 ; return 0; }
18997 if { (eval echo configure:18998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18998 rm -rf conftest*
18999 eval "ac_cv_func_$ac_func=yes"
19000 else
19001 echo "configure: failed program was:" >&5
19002 cat conftest.$ac_ext >&5
19003 rm -rf conftest*
19004 eval "ac_cv_func_$ac_func=no"
19006 rm -f conftest*
19009 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19010 echo "$ac_t""yes" 1>&6
19011 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19012 cat >> confdefs.h <<EOF
19013 #define $ac_tr_func 1
19016 else
19017 echo "$ac_t""no" 1>&6
19019 done
19021 else
19023 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
19024 echo "configure:19025: checking for _frexpl declaration" >&5
19025 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
19026 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
19027 echo $ac_n "(cached) $ac_c" 1>&6
19028 else
19031 ac_ext=C
19032 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19033 ac_cpp='$CXXCPP $CPPFLAGS'
19034 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19035 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19036 cross_compiling=$ac_cv_prog_cxx_cross
19038 cat > conftest.$ac_ext <<EOF
19039 #line 19040 "configure"
19040 #include "confdefs.h"
19041 #include <math.h>
19042 int main() {
19043 _frexpl(0, 0);
19044 ; return 0; }
19046 if { (eval echo configure:19047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19047 rm -rf conftest*
19048 glibcpp_cv_func__frexpl_use=yes
19049 else
19050 echo "configure: failed program was:" >&5
19051 cat conftest.$ac_ext >&5
19052 rm -rf conftest*
19053 glibcpp_cv_func__frexpl_use=no
19055 rm -f conftest*
19056 ac_ext=c
19057 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19058 ac_cpp='$CPP $CPPFLAGS'
19059 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19060 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19061 cross_compiling=$ac_cv_prog_cc_cross
19067 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
19069 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
19070 for ac_func in _frexpl
19072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19073 echo "configure:19074: checking for $ac_func" >&5
19074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19075 echo $ac_n "(cached) $ac_c" 1>&6
19076 else
19077 cat > conftest.$ac_ext <<EOF
19078 #line 19079 "configure"
19079 #include "confdefs.h"
19080 /* System header to define __stub macros and hopefully few prototypes,
19081 which can conflict with char $ac_func(); below. */
19082 #include <assert.h>
19083 /* Override any gcc2 internal prototype to avoid an error. */
19084 /* We use char because int might match the return type of a gcc2
19085 builtin and then its argument prototype would still apply. */
19086 char $ac_func();
19088 int main() {
19090 /* The GNU C library defines this for functions which it implements
19091 to always fail with ENOSYS. Some functions are actually named
19092 something starting with __ and the normal name is an alias. */
19093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19094 choke me
19095 #else
19096 $ac_func();
19097 #endif
19099 ; return 0; }
19101 if { (eval echo configure:19102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19102 rm -rf conftest*
19103 eval "ac_cv_func_$ac_func=yes"
19104 else
19105 echo "configure: failed program was:" >&5
19106 cat conftest.$ac_ext >&5
19107 rm -rf conftest*
19108 eval "ac_cv_func_$ac_func=no"
19110 rm -f conftest*
19113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19114 echo "$ac_t""yes" 1>&6
19115 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19116 cat >> confdefs.h <<EOF
19117 #define $ac_tr_func 1
19120 else
19121 echo "$ac_t""no" 1>&6
19123 done
19130 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
19131 echo "configure:19132: checking for hypotl declaration" >&5
19132 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
19133 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
19134 echo $ac_n "(cached) $ac_c" 1>&6
19135 else
19138 ac_ext=C
19139 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19140 ac_cpp='$CXXCPP $CPPFLAGS'
19141 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19142 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19143 cross_compiling=$ac_cv_prog_cxx_cross
19145 cat > conftest.$ac_ext <<EOF
19146 #line 19147 "configure"
19147 #include "confdefs.h"
19148 #include <math.h>
19149 int main() {
19150 hypotl(0, 0);
19151 ; return 0; }
19153 if { (eval echo configure:19154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19154 rm -rf conftest*
19155 glibcpp_cv_func_hypotl_use=yes
19156 else
19157 echo "configure: failed program was:" >&5
19158 cat conftest.$ac_ext >&5
19159 rm -rf conftest*
19160 glibcpp_cv_func_hypotl_use=no
19162 rm -f conftest*
19163 ac_ext=c
19164 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19165 ac_cpp='$CPP $CPPFLAGS'
19166 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19167 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19168 cross_compiling=$ac_cv_prog_cc_cross
19174 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
19176 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
19177 for ac_func in hypotl
19179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19180 echo "configure:19181: checking for $ac_func" >&5
19181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19182 echo $ac_n "(cached) $ac_c" 1>&6
19183 else
19184 cat > conftest.$ac_ext <<EOF
19185 #line 19186 "configure"
19186 #include "confdefs.h"
19187 /* System header to define __stub macros and hopefully few prototypes,
19188 which can conflict with char $ac_func(); below. */
19189 #include <assert.h>
19190 /* Override any gcc2 internal prototype to avoid an error. */
19191 /* We use char because int might match the return type of a gcc2
19192 builtin and then its argument prototype would still apply. */
19193 char $ac_func();
19195 int main() {
19197 /* The GNU C library defines this for functions which it implements
19198 to always fail with ENOSYS. Some functions are actually named
19199 something starting with __ and the normal name is an alias. */
19200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19201 choke me
19202 #else
19203 $ac_func();
19204 #endif
19206 ; return 0; }
19208 if { (eval echo configure:19209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19209 rm -rf conftest*
19210 eval "ac_cv_func_$ac_func=yes"
19211 else
19212 echo "configure: failed program was:" >&5
19213 cat conftest.$ac_ext >&5
19214 rm -rf conftest*
19215 eval "ac_cv_func_$ac_func=no"
19217 rm -f conftest*
19220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19221 echo "$ac_t""yes" 1>&6
19222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19223 cat >> confdefs.h <<EOF
19224 #define $ac_tr_func 1
19227 else
19228 echo "$ac_t""no" 1>&6
19230 done
19232 else
19234 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
19235 echo "configure:19236: checking for _hypotl declaration" >&5
19236 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
19237 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
19238 echo $ac_n "(cached) $ac_c" 1>&6
19239 else
19242 ac_ext=C
19243 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19244 ac_cpp='$CXXCPP $CPPFLAGS'
19245 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19246 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19247 cross_compiling=$ac_cv_prog_cxx_cross
19249 cat > conftest.$ac_ext <<EOF
19250 #line 19251 "configure"
19251 #include "confdefs.h"
19252 #include <math.h>
19253 int main() {
19254 _hypotl(0, 0);
19255 ; return 0; }
19257 if { (eval echo configure:19258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19258 rm -rf conftest*
19259 glibcpp_cv_func__hypotl_use=yes
19260 else
19261 echo "configure: failed program was:" >&5
19262 cat conftest.$ac_ext >&5
19263 rm -rf conftest*
19264 glibcpp_cv_func__hypotl_use=no
19266 rm -f conftest*
19267 ac_ext=c
19268 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19269 ac_cpp='$CPP $CPPFLAGS'
19270 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19271 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19272 cross_compiling=$ac_cv_prog_cc_cross
19278 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
19280 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
19281 for ac_func in _hypotl
19283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19284 echo "configure:19285: checking for $ac_func" >&5
19285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19286 echo $ac_n "(cached) $ac_c" 1>&6
19287 else
19288 cat > conftest.$ac_ext <<EOF
19289 #line 19290 "configure"
19290 #include "confdefs.h"
19291 /* System header to define __stub macros and hopefully few prototypes,
19292 which can conflict with char $ac_func(); below. */
19293 #include <assert.h>
19294 /* Override any gcc2 internal prototype to avoid an error. */
19295 /* We use char because int might match the return type of a gcc2
19296 builtin and then its argument prototype would still apply. */
19297 char $ac_func();
19299 int main() {
19301 /* The GNU C library defines this for functions which it implements
19302 to always fail with ENOSYS. Some functions are actually named
19303 something starting with __ and the normal name is an alias. */
19304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19305 choke me
19306 #else
19307 $ac_func();
19308 #endif
19310 ; return 0; }
19312 if { (eval echo configure:19313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19313 rm -rf conftest*
19314 eval "ac_cv_func_$ac_func=yes"
19315 else
19316 echo "configure: failed program was:" >&5
19317 cat conftest.$ac_ext >&5
19318 rm -rf conftest*
19319 eval "ac_cv_func_$ac_func=no"
19321 rm -f conftest*
19324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19325 echo "$ac_t""yes" 1>&6
19326 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19327 cat >> confdefs.h <<EOF
19328 #define $ac_tr_func 1
19331 else
19332 echo "$ac_t""no" 1>&6
19334 done
19341 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
19342 echo "configure:19343: checking for ldexpl declaration" >&5
19343 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
19344 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
19345 echo $ac_n "(cached) $ac_c" 1>&6
19346 else
19349 ac_ext=C
19350 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19351 ac_cpp='$CXXCPP $CPPFLAGS'
19352 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19353 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19354 cross_compiling=$ac_cv_prog_cxx_cross
19356 cat > conftest.$ac_ext <<EOF
19357 #line 19358 "configure"
19358 #include "confdefs.h"
19359 #include <math.h>
19360 int main() {
19361 ldexpl(0, 0);
19362 ; return 0; }
19364 if { (eval echo configure:19365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19365 rm -rf conftest*
19366 glibcpp_cv_func_ldexpl_use=yes
19367 else
19368 echo "configure: failed program was:" >&5
19369 cat conftest.$ac_ext >&5
19370 rm -rf conftest*
19371 glibcpp_cv_func_ldexpl_use=no
19373 rm -f conftest*
19374 ac_ext=c
19375 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19376 ac_cpp='$CPP $CPPFLAGS'
19377 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19378 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19379 cross_compiling=$ac_cv_prog_cc_cross
19385 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
19387 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
19388 for ac_func in ldexpl
19390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19391 echo "configure:19392: checking for $ac_func" >&5
19392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19393 echo $ac_n "(cached) $ac_c" 1>&6
19394 else
19395 cat > conftest.$ac_ext <<EOF
19396 #line 19397 "configure"
19397 #include "confdefs.h"
19398 /* System header to define __stub macros and hopefully few prototypes,
19399 which can conflict with char $ac_func(); below. */
19400 #include <assert.h>
19401 /* Override any gcc2 internal prototype to avoid an error. */
19402 /* We use char because int might match the return type of a gcc2
19403 builtin and then its argument prototype would still apply. */
19404 char $ac_func();
19406 int main() {
19408 /* The GNU C library defines this for functions which it implements
19409 to always fail with ENOSYS. Some functions are actually named
19410 something starting with __ and the normal name is an alias. */
19411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19412 choke me
19413 #else
19414 $ac_func();
19415 #endif
19417 ; return 0; }
19419 if { (eval echo configure:19420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19420 rm -rf conftest*
19421 eval "ac_cv_func_$ac_func=yes"
19422 else
19423 echo "configure: failed program was:" >&5
19424 cat conftest.$ac_ext >&5
19425 rm -rf conftest*
19426 eval "ac_cv_func_$ac_func=no"
19428 rm -f conftest*
19431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19432 echo "$ac_t""yes" 1>&6
19433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19434 cat >> confdefs.h <<EOF
19435 #define $ac_tr_func 1
19438 else
19439 echo "$ac_t""no" 1>&6
19441 done
19443 else
19445 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
19446 echo "configure:19447: checking for _ldexpl declaration" >&5
19447 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
19448 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
19449 echo $ac_n "(cached) $ac_c" 1>&6
19450 else
19453 ac_ext=C
19454 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19455 ac_cpp='$CXXCPP $CPPFLAGS'
19456 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19457 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19458 cross_compiling=$ac_cv_prog_cxx_cross
19460 cat > conftest.$ac_ext <<EOF
19461 #line 19462 "configure"
19462 #include "confdefs.h"
19463 #include <math.h>
19464 int main() {
19465 _ldexpl(0, 0);
19466 ; return 0; }
19468 if { (eval echo configure:19469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19469 rm -rf conftest*
19470 glibcpp_cv_func__ldexpl_use=yes
19471 else
19472 echo "configure: failed program was:" >&5
19473 cat conftest.$ac_ext >&5
19474 rm -rf conftest*
19475 glibcpp_cv_func__ldexpl_use=no
19477 rm -f conftest*
19478 ac_ext=c
19479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19480 ac_cpp='$CPP $CPPFLAGS'
19481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19483 cross_compiling=$ac_cv_prog_cc_cross
19489 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
19491 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
19492 for ac_func in _ldexpl
19494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19495 echo "configure:19496: checking for $ac_func" >&5
19496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19497 echo $ac_n "(cached) $ac_c" 1>&6
19498 else
19499 cat > conftest.$ac_ext <<EOF
19500 #line 19501 "configure"
19501 #include "confdefs.h"
19502 /* System header to define __stub macros and hopefully few prototypes,
19503 which can conflict with char $ac_func(); below. */
19504 #include <assert.h>
19505 /* Override any gcc2 internal prototype to avoid an error. */
19506 /* We use char because int might match the return type of a gcc2
19507 builtin and then its argument prototype would still apply. */
19508 char $ac_func();
19510 int main() {
19512 /* The GNU C library defines this for functions which it implements
19513 to always fail with ENOSYS. Some functions are actually named
19514 something starting with __ and the normal name is an alias. */
19515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19516 choke me
19517 #else
19518 $ac_func();
19519 #endif
19521 ; return 0; }
19523 if { (eval echo configure:19524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19524 rm -rf conftest*
19525 eval "ac_cv_func_$ac_func=yes"
19526 else
19527 echo "configure: failed program was:" >&5
19528 cat conftest.$ac_ext >&5
19529 rm -rf conftest*
19530 eval "ac_cv_func_$ac_func=no"
19532 rm -f conftest*
19535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19536 echo "$ac_t""yes" 1>&6
19537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19538 cat >> confdefs.h <<EOF
19539 #define $ac_tr_func 1
19542 else
19543 echo "$ac_t""no" 1>&6
19545 done
19552 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
19553 echo "configure:19554: checking for logl declaration" >&5
19554 if test x${glibcpp_cv_func_logl_use+set} != xset; then
19555 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
19556 echo $ac_n "(cached) $ac_c" 1>&6
19557 else
19560 ac_ext=C
19561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19562 ac_cpp='$CXXCPP $CPPFLAGS'
19563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19565 cross_compiling=$ac_cv_prog_cxx_cross
19567 cat > conftest.$ac_ext <<EOF
19568 #line 19569 "configure"
19569 #include "confdefs.h"
19570 #include <math.h>
19571 #ifdef HAVE_IEEEFP_H
19572 #include <ieeefp.h>
19573 #endif
19575 int main() {
19576 logl(0);
19577 ; return 0; }
19579 if { (eval echo configure:19580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19580 rm -rf conftest*
19581 glibcpp_cv_func_logl_use=yes
19582 else
19583 echo "configure: failed program was:" >&5
19584 cat conftest.$ac_ext >&5
19585 rm -rf conftest*
19586 glibcpp_cv_func_logl_use=no
19588 rm -f conftest*
19589 ac_ext=c
19590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19591 ac_cpp='$CPP $CPPFLAGS'
19592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19594 cross_compiling=$ac_cv_prog_cc_cross
19600 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
19602 if test x$glibcpp_cv_func_logl_use = x"yes"; then
19603 for ac_func in logl
19605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19606 echo "configure:19607: checking for $ac_func" >&5
19607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19608 echo $ac_n "(cached) $ac_c" 1>&6
19609 else
19610 cat > conftest.$ac_ext <<EOF
19611 #line 19612 "configure"
19612 #include "confdefs.h"
19613 /* System header to define __stub macros and hopefully few prototypes,
19614 which can conflict with char $ac_func(); below. */
19615 #include <assert.h>
19616 /* Override any gcc2 internal prototype to avoid an error. */
19617 /* We use char because int might match the return type of a gcc2
19618 builtin and then its argument prototype would still apply. */
19619 char $ac_func();
19621 int main() {
19623 /* The GNU C library defines this for functions which it implements
19624 to always fail with ENOSYS. Some functions are actually named
19625 something starting with __ and the normal name is an alias. */
19626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19627 choke me
19628 #else
19629 $ac_func();
19630 #endif
19632 ; return 0; }
19634 if { (eval echo configure:19635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19635 rm -rf conftest*
19636 eval "ac_cv_func_$ac_func=yes"
19637 else
19638 echo "configure: failed program was:" >&5
19639 cat conftest.$ac_ext >&5
19640 rm -rf conftest*
19641 eval "ac_cv_func_$ac_func=no"
19643 rm -f conftest*
19646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19647 echo "$ac_t""yes" 1>&6
19648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19649 cat >> confdefs.h <<EOF
19650 #define $ac_tr_func 1
19653 else
19654 echo "$ac_t""no" 1>&6
19656 done
19658 else
19660 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
19661 echo "configure:19662: checking for _logl declaration" >&5
19662 if test x${glibcpp_cv_func__logl_use+set} != xset; then
19663 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
19664 echo $ac_n "(cached) $ac_c" 1>&6
19665 else
19668 ac_ext=C
19669 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19670 ac_cpp='$CXXCPP $CPPFLAGS'
19671 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19672 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19673 cross_compiling=$ac_cv_prog_cxx_cross
19675 cat > conftest.$ac_ext <<EOF
19676 #line 19677 "configure"
19677 #include "confdefs.h"
19678 #include <math.h>
19679 #ifdef HAVE_IEEEFP_H
19680 #include <ieeefp.h>
19681 #endif
19683 int main() {
19684 _logl(0);
19685 ; return 0; }
19687 if { (eval echo configure:19688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19688 rm -rf conftest*
19689 glibcpp_cv_func__logl_use=yes
19690 else
19691 echo "configure: failed program was:" >&5
19692 cat conftest.$ac_ext >&5
19693 rm -rf conftest*
19694 glibcpp_cv_func__logl_use=no
19696 rm -f conftest*
19697 ac_ext=c
19698 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19699 ac_cpp='$CPP $CPPFLAGS'
19700 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19701 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19702 cross_compiling=$ac_cv_prog_cc_cross
19708 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
19710 if test x$glibcpp_cv_func__logl_use = x"yes"; then
19711 for ac_func in _logl
19713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19714 echo "configure:19715: checking for $ac_func" >&5
19715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19716 echo $ac_n "(cached) $ac_c" 1>&6
19717 else
19718 cat > conftest.$ac_ext <<EOF
19719 #line 19720 "configure"
19720 #include "confdefs.h"
19721 /* System header to define __stub macros and hopefully few prototypes,
19722 which can conflict with char $ac_func(); below. */
19723 #include <assert.h>
19724 /* Override any gcc2 internal prototype to avoid an error. */
19725 /* We use char because int might match the return type of a gcc2
19726 builtin and then its argument prototype would still apply. */
19727 char $ac_func();
19729 int main() {
19731 /* The GNU C library defines this for functions which it implements
19732 to always fail with ENOSYS. Some functions are actually named
19733 something starting with __ and the normal name is an alias. */
19734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19735 choke me
19736 #else
19737 $ac_func();
19738 #endif
19740 ; return 0; }
19742 if { (eval echo configure:19743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19743 rm -rf conftest*
19744 eval "ac_cv_func_$ac_func=yes"
19745 else
19746 echo "configure: failed program was:" >&5
19747 cat conftest.$ac_ext >&5
19748 rm -rf conftest*
19749 eval "ac_cv_func_$ac_func=no"
19751 rm -f conftest*
19754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19755 echo "$ac_t""yes" 1>&6
19756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19757 cat >> confdefs.h <<EOF
19758 #define $ac_tr_func 1
19761 else
19762 echo "$ac_t""no" 1>&6
19764 done
19771 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
19772 echo "configure:19773: checking for log10l declaration" >&5
19773 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
19774 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
19775 echo $ac_n "(cached) $ac_c" 1>&6
19776 else
19779 ac_ext=C
19780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19781 ac_cpp='$CXXCPP $CPPFLAGS'
19782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19784 cross_compiling=$ac_cv_prog_cxx_cross
19786 cat > conftest.$ac_ext <<EOF
19787 #line 19788 "configure"
19788 #include "confdefs.h"
19789 #include <math.h>
19790 #ifdef HAVE_IEEEFP_H
19791 #include <ieeefp.h>
19792 #endif
19794 int main() {
19795 log10l(0);
19796 ; return 0; }
19798 if { (eval echo configure:19799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19799 rm -rf conftest*
19800 glibcpp_cv_func_log10l_use=yes
19801 else
19802 echo "configure: failed program was:" >&5
19803 cat conftest.$ac_ext >&5
19804 rm -rf conftest*
19805 glibcpp_cv_func_log10l_use=no
19807 rm -f conftest*
19808 ac_ext=c
19809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19810 ac_cpp='$CPP $CPPFLAGS'
19811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19813 cross_compiling=$ac_cv_prog_cc_cross
19819 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
19821 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
19822 for ac_func in log10l
19824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19825 echo "configure:19826: checking for $ac_func" >&5
19826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19827 echo $ac_n "(cached) $ac_c" 1>&6
19828 else
19829 cat > conftest.$ac_ext <<EOF
19830 #line 19831 "configure"
19831 #include "confdefs.h"
19832 /* System header to define __stub macros and hopefully few prototypes,
19833 which can conflict with char $ac_func(); below. */
19834 #include <assert.h>
19835 /* Override any gcc2 internal prototype to avoid an error. */
19836 /* We use char because int might match the return type of a gcc2
19837 builtin and then its argument prototype would still apply. */
19838 char $ac_func();
19840 int main() {
19842 /* The GNU C library defines this for functions which it implements
19843 to always fail with ENOSYS. Some functions are actually named
19844 something starting with __ and the normal name is an alias. */
19845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19846 choke me
19847 #else
19848 $ac_func();
19849 #endif
19851 ; return 0; }
19853 if { (eval echo configure:19854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19854 rm -rf conftest*
19855 eval "ac_cv_func_$ac_func=yes"
19856 else
19857 echo "configure: failed program was:" >&5
19858 cat conftest.$ac_ext >&5
19859 rm -rf conftest*
19860 eval "ac_cv_func_$ac_func=no"
19862 rm -f conftest*
19865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19866 echo "$ac_t""yes" 1>&6
19867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19868 cat >> confdefs.h <<EOF
19869 #define $ac_tr_func 1
19872 else
19873 echo "$ac_t""no" 1>&6
19875 done
19877 else
19879 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
19880 echo "configure:19881: checking for _log10l declaration" >&5
19881 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
19882 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
19883 echo $ac_n "(cached) $ac_c" 1>&6
19884 else
19887 ac_ext=C
19888 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19889 ac_cpp='$CXXCPP $CPPFLAGS'
19890 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19891 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19892 cross_compiling=$ac_cv_prog_cxx_cross
19894 cat > conftest.$ac_ext <<EOF
19895 #line 19896 "configure"
19896 #include "confdefs.h"
19897 #include <math.h>
19898 #ifdef HAVE_IEEEFP_H
19899 #include <ieeefp.h>
19900 #endif
19902 int main() {
19903 _log10l(0);
19904 ; return 0; }
19906 if { (eval echo configure:19907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19907 rm -rf conftest*
19908 glibcpp_cv_func__log10l_use=yes
19909 else
19910 echo "configure: failed program was:" >&5
19911 cat conftest.$ac_ext >&5
19912 rm -rf conftest*
19913 glibcpp_cv_func__log10l_use=no
19915 rm -f conftest*
19916 ac_ext=c
19917 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19918 ac_cpp='$CPP $CPPFLAGS'
19919 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19920 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19921 cross_compiling=$ac_cv_prog_cc_cross
19927 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
19929 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
19930 for ac_func in _log10l
19932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19933 echo "configure:19934: checking for $ac_func" >&5
19934 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19935 echo $ac_n "(cached) $ac_c" 1>&6
19936 else
19937 cat > conftest.$ac_ext <<EOF
19938 #line 19939 "configure"
19939 #include "confdefs.h"
19940 /* System header to define __stub macros and hopefully few prototypes,
19941 which can conflict with char $ac_func(); below. */
19942 #include <assert.h>
19943 /* Override any gcc2 internal prototype to avoid an error. */
19944 /* We use char because int might match the return type of a gcc2
19945 builtin and then its argument prototype would still apply. */
19946 char $ac_func();
19948 int main() {
19950 /* The GNU C library defines this for functions which it implements
19951 to always fail with ENOSYS. Some functions are actually named
19952 something starting with __ and the normal name is an alias. */
19953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19954 choke me
19955 #else
19956 $ac_func();
19957 #endif
19959 ; return 0; }
19961 if { (eval echo configure:19962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19962 rm -rf conftest*
19963 eval "ac_cv_func_$ac_func=yes"
19964 else
19965 echo "configure: failed program was:" >&5
19966 cat conftest.$ac_ext >&5
19967 rm -rf conftest*
19968 eval "ac_cv_func_$ac_func=no"
19970 rm -f conftest*
19973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19974 echo "$ac_t""yes" 1>&6
19975 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19976 cat >> confdefs.h <<EOF
19977 #define $ac_tr_func 1
19980 else
19981 echo "$ac_t""no" 1>&6
19983 done
19990 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
19991 echo "configure:19992: checking for modfl declaration" >&5
19992 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
19993 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
19994 echo $ac_n "(cached) $ac_c" 1>&6
19995 else
19998 ac_ext=C
19999 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20000 ac_cpp='$CXXCPP $CPPFLAGS'
20001 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20002 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20003 cross_compiling=$ac_cv_prog_cxx_cross
20005 cat > conftest.$ac_ext <<EOF
20006 #line 20007 "configure"
20007 #include "confdefs.h"
20008 #include <math.h>
20009 int main() {
20010 modfl(0, 0);
20011 ; return 0; }
20013 if { (eval echo configure:20014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20014 rm -rf conftest*
20015 glibcpp_cv_func_modfl_use=yes
20016 else
20017 echo "configure: failed program was:" >&5
20018 cat conftest.$ac_ext >&5
20019 rm -rf conftest*
20020 glibcpp_cv_func_modfl_use=no
20022 rm -f conftest*
20023 ac_ext=c
20024 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20025 ac_cpp='$CPP $CPPFLAGS'
20026 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20027 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20028 cross_compiling=$ac_cv_prog_cc_cross
20034 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
20036 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
20037 for ac_func in modfl
20039 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20040 echo "configure:20041: checking for $ac_func" >&5
20041 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20042 echo $ac_n "(cached) $ac_c" 1>&6
20043 else
20044 cat > conftest.$ac_ext <<EOF
20045 #line 20046 "configure"
20046 #include "confdefs.h"
20047 /* System header to define __stub macros and hopefully few prototypes,
20048 which can conflict with char $ac_func(); below. */
20049 #include <assert.h>
20050 /* Override any gcc2 internal prototype to avoid an error. */
20051 /* We use char because int might match the return type of a gcc2
20052 builtin and then its argument prototype would still apply. */
20053 char $ac_func();
20055 int main() {
20057 /* The GNU C library defines this for functions which it implements
20058 to always fail with ENOSYS. Some functions are actually named
20059 something starting with __ and the normal name is an alias. */
20060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20061 choke me
20062 #else
20063 $ac_func();
20064 #endif
20066 ; return 0; }
20068 if { (eval echo configure:20069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20069 rm -rf conftest*
20070 eval "ac_cv_func_$ac_func=yes"
20071 else
20072 echo "configure: failed program was:" >&5
20073 cat conftest.$ac_ext >&5
20074 rm -rf conftest*
20075 eval "ac_cv_func_$ac_func=no"
20077 rm -f conftest*
20080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20081 echo "$ac_t""yes" 1>&6
20082 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20083 cat >> confdefs.h <<EOF
20084 #define $ac_tr_func 1
20087 else
20088 echo "$ac_t""no" 1>&6
20090 done
20092 else
20094 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
20095 echo "configure:20096: checking for _modfl declaration" >&5
20096 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
20097 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
20098 echo $ac_n "(cached) $ac_c" 1>&6
20099 else
20102 ac_ext=C
20103 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20104 ac_cpp='$CXXCPP $CPPFLAGS'
20105 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20106 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20107 cross_compiling=$ac_cv_prog_cxx_cross
20109 cat > conftest.$ac_ext <<EOF
20110 #line 20111 "configure"
20111 #include "confdefs.h"
20112 #include <math.h>
20113 int main() {
20114 _modfl(0, 0);
20115 ; return 0; }
20117 if { (eval echo configure:20118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20118 rm -rf conftest*
20119 glibcpp_cv_func__modfl_use=yes
20120 else
20121 echo "configure: failed program was:" >&5
20122 cat conftest.$ac_ext >&5
20123 rm -rf conftest*
20124 glibcpp_cv_func__modfl_use=no
20126 rm -f conftest*
20127 ac_ext=c
20128 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20129 ac_cpp='$CPP $CPPFLAGS'
20130 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20131 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20132 cross_compiling=$ac_cv_prog_cc_cross
20138 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
20140 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
20141 for ac_func in _modfl
20143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20144 echo "configure:20145: checking for $ac_func" >&5
20145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20146 echo $ac_n "(cached) $ac_c" 1>&6
20147 else
20148 cat > conftest.$ac_ext <<EOF
20149 #line 20150 "configure"
20150 #include "confdefs.h"
20151 /* System header to define __stub macros and hopefully few prototypes,
20152 which can conflict with char $ac_func(); below. */
20153 #include <assert.h>
20154 /* Override any gcc2 internal prototype to avoid an error. */
20155 /* We use char because int might match the return type of a gcc2
20156 builtin and then its argument prototype would still apply. */
20157 char $ac_func();
20159 int main() {
20161 /* The GNU C library defines this for functions which it implements
20162 to always fail with ENOSYS. Some functions are actually named
20163 something starting with __ and the normal name is an alias. */
20164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20165 choke me
20166 #else
20167 $ac_func();
20168 #endif
20170 ; return 0; }
20172 if { (eval echo configure:20173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20173 rm -rf conftest*
20174 eval "ac_cv_func_$ac_func=yes"
20175 else
20176 echo "configure: failed program was:" >&5
20177 cat conftest.$ac_ext >&5
20178 rm -rf conftest*
20179 eval "ac_cv_func_$ac_func=no"
20181 rm -f conftest*
20184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20185 echo "$ac_t""yes" 1>&6
20186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20187 cat >> confdefs.h <<EOF
20188 #define $ac_tr_func 1
20191 else
20192 echo "$ac_t""no" 1>&6
20194 done
20201 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
20202 echo "configure:20203: checking for powl declaration" >&5
20203 if test x${glibcpp_cv_func_powl_use+set} != xset; then
20204 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
20205 echo $ac_n "(cached) $ac_c" 1>&6
20206 else
20209 ac_ext=C
20210 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20211 ac_cpp='$CXXCPP $CPPFLAGS'
20212 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20213 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20214 cross_compiling=$ac_cv_prog_cxx_cross
20216 cat > conftest.$ac_ext <<EOF
20217 #line 20218 "configure"
20218 #include "confdefs.h"
20219 #include <math.h>
20220 int main() {
20221 powl(0, 0);
20222 ; return 0; }
20224 if { (eval echo configure:20225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20225 rm -rf conftest*
20226 glibcpp_cv_func_powl_use=yes
20227 else
20228 echo "configure: failed program was:" >&5
20229 cat conftest.$ac_ext >&5
20230 rm -rf conftest*
20231 glibcpp_cv_func_powl_use=no
20233 rm -f conftest*
20234 ac_ext=c
20235 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20236 ac_cpp='$CPP $CPPFLAGS'
20237 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20238 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20239 cross_compiling=$ac_cv_prog_cc_cross
20245 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
20247 if test x$glibcpp_cv_func_powl_use = x"yes"; then
20248 for ac_func in powl
20250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20251 echo "configure:20252: checking for $ac_func" >&5
20252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20253 echo $ac_n "(cached) $ac_c" 1>&6
20254 else
20255 cat > conftest.$ac_ext <<EOF
20256 #line 20257 "configure"
20257 #include "confdefs.h"
20258 /* System header to define __stub macros and hopefully few prototypes,
20259 which can conflict with char $ac_func(); below. */
20260 #include <assert.h>
20261 /* Override any gcc2 internal prototype to avoid an error. */
20262 /* We use char because int might match the return type of a gcc2
20263 builtin and then its argument prototype would still apply. */
20264 char $ac_func();
20266 int main() {
20268 /* The GNU C library defines this for functions which it implements
20269 to always fail with ENOSYS. Some functions are actually named
20270 something starting with __ and the normal name is an alias. */
20271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20272 choke me
20273 #else
20274 $ac_func();
20275 #endif
20277 ; return 0; }
20279 if { (eval echo configure:20280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20280 rm -rf conftest*
20281 eval "ac_cv_func_$ac_func=yes"
20282 else
20283 echo "configure: failed program was:" >&5
20284 cat conftest.$ac_ext >&5
20285 rm -rf conftest*
20286 eval "ac_cv_func_$ac_func=no"
20288 rm -f conftest*
20291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20292 echo "$ac_t""yes" 1>&6
20293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20294 cat >> confdefs.h <<EOF
20295 #define $ac_tr_func 1
20298 else
20299 echo "$ac_t""no" 1>&6
20301 done
20303 else
20305 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
20306 echo "configure:20307: checking for _powl declaration" >&5
20307 if test x${glibcpp_cv_func__powl_use+set} != xset; then
20308 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
20309 echo $ac_n "(cached) $ac_c" 1>&6
20310 else
20313 ac_ext=C
20314 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20315 ac_cpp='$CXXCPP $CPPFLAGS'
20316 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20317 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20318 cross_compiling=$ac_cv_prog_cxx_cross
20320 cat > conftest.$ac_ext <<EOF
20321 #line 20322 "configure"
20322 #include "confdefs.h"
20323 #include <math.h>
20324 int main() {
20325 _powl(0, 0);
20326 ; return 0; }
20328 if { (eval echo configure:20329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20329 rm -rf conftest*
20330 glibcpp_cv_func__powl_use=yes
20331 else
20332 echo "configure: failed program was:" >&5
20333 cat conftest.$ac_ext >&5
20334 rm -rf conftest*
20335 glibcpp_cv_func__powl_use=no
20337 rm -f conftest*
20338 ac_ext=c
20339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20340 ac_cpp='$CPP $CPPFLAGS'
20341 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20342 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20343 cross_compiling=$ac_cv_prog_cc_cross
20349 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
20351 if test x$glibcpp_cv_func__powl_use = x"yes"; then
20352 for ac_func in _powl
20354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20355 echo "configure:20356: checking for $ac_func" >&5
20356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20357 echo $ac_n "(cached) $ac_c" 1>&6
20358 else
20359 cat > conftest.$ac_ext <<EOF
20360 #line 20361 "configure"
20361 #include "confdefs.h"
20362 /* System header to define __stub macros and hopefully few prototypes,
20363 which can conflict with char $ac_func(); below. */
20364 #include <assert.h>
20365 /* Override any gcc2 internal prototype to avoid an error. */
20366 /* We use char because int might match the return type of a gcc2
20367 builtin and then its argument prototype would still apply. */
20368 char $ac_func();
20370 int main() {
20372 /* The GNU C library defines this for functions which it implements
20373 to always fail with ENOSYS. Some functions are actually named
20374 something starting with __ and the normal name is an alias. */
20375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20376 choke me
20377 #else
20378 $ac_func();
20379 #endif
20381 ; return 0; }
20383 if { (eval echo configure:20384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20384 rm -rf conftest*
20385 eval "ac_cv_func_$ac_func=yes"
20386 else
20387 echo "configure: failed program was:" >&5
20388 cat conftest.$ac_ext >&5
20389 rm -rf conftest*
20390 eval "ac_cv_func_$ac_func=no"
20392 rm -f conftest*
20395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20396 echo "$ac_t""yes" 1>&6
20397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20398 cat >> confdefs.h <<EOF
20399 #define $ac_tr_func 1
20402 else
20403 echo "$ac_t""no" 1>&6
20405 done
20412 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
20413 echo "configure:20414: checking for sqrtl declaration" >&5
20414 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
20415 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
20416 echo $ac_n "(cached) $ac_c" 1>&6
20417 else
20420 ac_ext=C
20421 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20422 ac_cpp='$CXXCPP $CPPFLAGS'
20423 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20424 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20425 cross_compiling=$ac_cv_prog_cxx_cross
20427 cat > conftest.$ac_ext <<EOF
20428 #line 20429 "configure"
20429 #include "confdefs.h"
20430 #include <math.h>
20431 #ifdef HAVE_IEEEFP_H
20432 #include <ieeefp.h>
20433 #endif
20435 int main() {
20436 sqrtl(0);
20437 ; return 0; }
20439 if { (eval echo configure:20440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20440 rm -rf conftest*
20441 glibcpp_cv_func_sqrtl_use=yes
20442 else
20443 echo "configure: failed program was:" >&5
20444 cat conftest.$ac_ext >&5
20445 rm -rf conftest*
20446 glibcpp_cv_func_sqrtl_use=no
20448 rm -f conftest*
20449 ac_ext=c
20450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20451 ac_cpp='$CPP $CPPFLAGS'
20452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20454 cross_compiling=$ac_cv_prog_cc_cross
20460 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
20462 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
20463 for ac_func in sqrtl
20465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20466 echo "configure:20467: checking for $ac_func" >&5
20467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20468 echo $ac_n "(cached) $ac_c" 1>&6
20469 else
20470 cat > conftest.$ac_ext <<EOF
20471 #line 20472 "configure"
20472 #include "confdefs.h"
20473 /* System header to define __stub macros and hopefully few prototypes,
20474 which can conflict with char $ac_func(); below. */
20475 #include <assert.h>
20476 /* Override any gcc2 internal prototype to avoid an error. */
20477 /* We use char because int might match the return type of a gcc2
20478 builtin and then its argument prototype would still apply. */
20479 char $ac_func();
20481 int main() {
20483 /* The GNU C library defines this for functions which it implements
20484 to always fail with ENOSYS. Some functions are actually named
20485 something starting with __ and the normal name is an alias. */
20486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20487 choke me
20488 #else
20489 $ac_func();
20490 #endif
20492 ; return 0; }
20494 if { (eval echo configure:20495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20495 rm -rf conftest*
20496 eval "ac_cv_func_$ac_func=yes"
20497 else
20498 echo "configure: failed program was:" >&5
20499 cat conftest.$ac_ext >&5
20500 rm -rf conftest*
20501 eval "ac_cv_func_$ac_func=no"
20503 rm -f conftest*
20506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20507 echo "$ac_t""yes" 1>&6
20508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20509 cat >> confdefs.h <<EOF
20510 #define $ac_tr_func 1
20513 else
20514 echo "$ac_t""no" 1>&6
20516 done
20518 else
20520 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
20521 echo "configure:20522: checking for _sqrtl declaration" >&5
20522 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
20523 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
20524 echo $ac_n "(cached) $ac_c" 1>&6
20525 else
20528 ac_ext=C
20529 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20530 ac_cpp='$CXXCPP $CPPFLAGS'
20531 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20532 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20533 cross_compiling=$ac_cv_prog_cxx_cross
20535 cat > conftest.$ac_ext <<EOF
20536 #line 20537 "configure"
20537 #include "confdefs.h"
20538 #include <math.h>
20539 #ifdef HAVE_IEEEFP_H
20540 #include <ieeefp.h>
20541 #endif
20543 int main() {
20544 _sqrtl(0);
20545 ; return 0; }
20547 if { (eval echo configure:20548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20548 rm -rf conftest*
20549 glibcpp_cv_func__sqrtl_use=yes
20550 else
20551 echo "configure: failed program was:" >&5
20552 cat conftest.$ac_ext >&5
20553 rm -rf conftest*
20554 glibcpp_cv_func__sqrtl_use=no
20556 rm -f conftest*
20557 ac_ext=c
20558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20559 ac_cpp='$CPP $CPPFLAGS'
20560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20562 cross_compiling=$ac_cv_prog_cc_cross
20568 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
20570 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
20571 for ac_func in _sqrtl
20573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20574 echo "configure:20575: checking for $ac_func" >&5
20575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20576 echo $ac_n "(cached) $ac_c" 1>&6
20577 else
20578 cat > conftest.$ac_ext <<EOF
20579 #line 20580 "configure"
20580 #include "confdefs.h"
20581 /* System header to define __stub macros and hopefully few prototypes,
20582 which can conflict with char $ac_func(); below. */
20583 #include <assert.h>
20584 /* Override any gcc2 internal prototype to avoid an error. */
20585 /* We use char because int might match the return type of a gcc2
20586 builtin and then its argument prototype would still apply. */
20587 char $ac_func();
20589 int main() {
20591 /* The GNU C library defines this for functions which it implements
20592 to always fail with ENOSYS. Some functions are actually named
20593 something starting with __ and the normal name is an alias. */
20594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20595 choke me
20596 #else
20597 $ac_func();
20598 #endif
20600 ; return 0; }
20602 if { (eval echo configure:20603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20603 rm -rf conftest*
20604 eval "ac_cv_func_$ac_func=yes"
20605 else
20606 echo "configure: failed program was:" >&5
20607 cat conftest.$ac_ext >&5
20608 rm -rf conftest*
20609 eval "ac_cv_func_$ac_func=no"
20611 rm -f conftest*
20614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20615 echo "$ac_t""yes" 1>&6
20616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20617 cat >> confdefs.h <<EOF
20618 #define $ac_tr_func 1
20621 else
20622 echo "$ac_t""no" 1>&6
20624 done
20631 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
20632 echo "configure:20633: checking for sincosl declaration" >&5
20633 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
20634 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
20635 echo $ac_n "(cached) $ac_c" 1>&6
20636 else
20639 ac_ext=C
20640 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20641 ac_cpp='$CXXCPP $CPPFLAGS'
20642 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20643 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20644 cross_compiling=$ac_cv_prog_cxx_cross
20646 cat > conftest.$ac_ext <<EOF
20647 #line 20648 "configure"
20648 #include "confdefs.h"
20649 #include <math.h>
20650 int main() {
20651 sincosl(0, 0, 0);
20652 ; return 0; }
20654 if { (eval echo configure:20655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20655 rm -rf conftest*
20656 glibcpp_cv_func_sincosl_use=yes
20657 else
20658 echo "configure: failed program was:" >&5
20659 cat conftest.$ac_ext >&5
20660 rm -rf conftest*
20661 glibcpp_cv_func_sincosl_use=no
20663 rm -f conftest*
20664 ac_ext=c
20665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20666 ac_cpp='$CPP $CPPFLAGS'
20667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20669 cross_compiling=$ac_cv_prog_cc_cross
20675 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
20677 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
20678 for ac_func in sincosl
20680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20681 echo "configure:20682: checking for $ac_func" >&5
20682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20683 echo $ac_n "(cached) $ac_c" 1>&6
20684 else
20685 cat > conftest.$ac_ext <<EOF
20686 #line 20687 "configure"
20687 #include "confdefs.h"
20688 /* System header to define __stub macros and hopefully few prototypes,
20689 which can conflict with char $ac_func(); below. */
20690 #include <assert.h>
20691 /* Override any gcc2 internal prototype to avoid an error. */
20692 /* We use char because int might match the return type of a gcc2
20693 builtin and then its argument prototype would still apply. */
20694 char $ac_func();
20696 int main() {
20698 /* The GNU C library defines this for functions which it implements
20699 to always fail with ENOSYS. Some functions are actually named
20700 something starting with __ and the normal name is an alias. */
20701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20702 choke me
20703 #else
20704 $ac_func();
20705 #endif
20707 ; return 0; }
20709 if { (eval echo configure:20710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20710 rm -rf conftest*
20711 eval "ac_cv_func_$ac_func=yes"
20712 else
20713 echo "configure: failed program was:" >&5
20714 cat conftest.$ac_ext >&5
20715 rm -rf conftest*
20716 eval "ac_cv_func_$ac_func=no"
20718 rm -f conftest*
20721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20722 echo "$ac_t""yes" 1>&6
20723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20724 cat >> confdefs.h <<EOF
20725 #define $ac_tr_func 1
20728 else
20729 echo "$ac_t""no" 1>&6
20731 done
20733 else
20735 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
20736 echo "configure:20737: checking for _sincosl declaration" >&5
20737 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
20738 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
20739 echo $ac_n "(cached) $ac_c" 1>&6
20740 else
20743 ac_ext=C
20744 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20745 ac_cpp='$CXXCPP $CPPFLAGS'
20746 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20747 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20748 cross_compiling=$ac_cv_prog_cxx_cross
20750 cat > conftest.$ac_ext <<EOF
20751 #line 20752 "configure"
20752 #include "confdefs.h"
20753 #include <math.h>
20754 int main() {
20755 _sincosl(0, 0, 0);
20756 ; return 0; }
20758 if { (eval echo configure:20759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20759 rm -rf conftest*
20760 glibcpp_cv_func__sincosl_use=yes
20761 else
20762 echo "configure: failed program was:" >&5
20763 cat conftest.$ac_ext >&5
20764 rm -rf conftest*
20765 glibcpp_cv_func__sincosl_use=no
20767 rm -f conftest*
20768 ac_ext=c
20769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20770 ac_cpp='$CPP $CPPFLAGS'
20771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20773 cross_compiling=$ac_cv_prog_cc_cross
20779 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
20781 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
20782 for ac_func in _sincosl
20784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20785 echo "configure:20786: checking for $ac_func" >&5
20786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20787 echo $ac_n "(cached) $ac_c" 1>&6
20788 else
20789 cat > conftest.$ac_ext <<EOF
20790 #line 20791 "configure"
20791 #include "confdefs.h"
20792 /* System header to define __stub macros and hopefully few prototypes,
20793 which can conflict with char $ac_func(); below. */
20794 #include <assert.h>
20795 /* Override any gcc2 internal prototype to avoid an error. */
20796 /* We use char because int might match the return type of a gcc2
20797 builtin and then its argument prototype would still apply. */
20798 char $ac_func();
20800 int main() {
20802 /* The GNU C library defines this for functions which it implements
20803 to always fail with ENOSYS. Some functions are actually named
20804 something starting with __ and the normal name is an alias. */
20805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20806 choke me
20807 #else
20808 $ac_func();
20809 #endif
20811 ; return 0; }
20813 if { (eval echo configure:20814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20814 rm -rf conftest*
20815 eval "ac_cv_func_$ac_func=yes"
20816 else
20817 echo "configure: failed program was:" >&5
20818 cat conftest.$ac_ext >&5
20819 rm -rf conftest*
20820 eval "ac_cv_func_$ac_func=no"
20822 rm -f conftest*
20825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20826 echo "$ac_t""yes" 1>&6
20827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20828 cat >> confdefs.h <<EOF
20829 #define $ac_tr_func 1
20832 else
20833 echo "$ac_t""no" 1>&6
20835 done
20842 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
20843 echo "configure:20844: checking for finitel declaration" >&5
20844 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
20845 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
20846 echo $ac_n "(cached) $ac_c" 1>&6
20847 else
20850 ac_ext=C
20851 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20852 ac_cpp='$CXXCPP $CPPFLAGS'
20853 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20854 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20855 cross_compiling=$ac_cv_prog_cxx_cross
20857 cat > conftest.$ac_ext <<EOF
20858 #line 20859 "configure"
20859 #include "confdefs.h"
20860 #include <math.h>
20861 #ifdef HAVE_IEEEFP_H
20862 #include <ieeefp.h>
20863 #endif
20865 int main() {
20866 finitel(0);
20867 ; return 0; }
20869 if { (eval echo configure:20870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20870 rm -rf conftest*
20871 glibcpp_cv_func_finitel_use=yes
20872 else
20873 echo "configure: failed program was:" >&5
20874 cat conftest.$ac_ext >&5
20875 rm -rf conftest*
20876 glibcpp_cv_func_finitel_use=no
20878 rm -f conftest*
20879 ac_ext=c
20880 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20881 ac_cpp='$CPP $CPPFLAGS'
20882 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20883 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20884 cross_compiling=$ac_cv_prog_cc_cross
20890 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
20892 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
20893 for ac_func in finitel
20895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20896 echo "configure:20897: checking for $ac_func" >&5
20897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20898 echo $ac_n "(cached) $ac_c" 1>&6
20899 else
20900 cat > conftest.$ac_ext <<EOF
20901 #line 20902 "configure"
20902 #include "confdefs.h"
20903 /* System header to define __stub macros and hopefully few prototypes,
20904 which can conflict with char $ac_func(); below. */
20905 #include <assert.h>
20906 /* Override any gcc2 internal prototype to avoid an error. */
20907 /* We use char because int might match the return type of a gcc2
20908 builtin and then its argument prototype would still apply. */
20909 char $ac_func();
20911 int main() {
20913 /* The GNU C library defines this for functions which it implements
20914 to always fail with ENOSYS. Some functions are actually named
20915 something starting with __ and the normal name is an alias. */
20916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20917 choke me
20918 #else
20919 $ac_func();
20920 #endif
20922 ; return 0; }
20924 if { (eval echo configure:20925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20925 rm -rf conftest*
20926 eval "ac_cv_func_$ac_func=yes"
20927 else
20928 echo "configure: failed program was:" >&5
20929 cat conftest.$ac_ext >&5
20930 rm -rf conftest*
20931 eval "ac_cv_func_$ac_func=no"
20933 rm -f conftest*
20936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20937 echo "$ac_t""yes" 1>&6
20938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20939 cat >> confdefs.h <<EOF
20940 #define $ac_tr_func 1
20943 else
20944 echo "$ac_t""no" 1>&6
20946 done
20948 else
20950 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
20951 echo "configure:20952: checking for _finitel declaration" >&5
20952 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
20953 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
20954 echo $ac_n "(cached) $ac_c" 1>&6
20955 else
20958 ac_ext=C
20959 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20960 ac_cpp='$CXXCPP $CPPFLAGS'
20961 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20962 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20963 cross_compiling=$ac_cv_prog_cxx_cross
20965 cat > conftest.$ac_ext <<EOF
20966 #line 20967 "configure"
20967 #include "confdefs.h"
20968 #include <math.h>
20969 #ifdef HAVE_IEEEFP_H
20970 #include <ieeefp.h>
20971 #endif
20973 int main() {
20974 _finitel(0);
20975 ; return 0; }
20977 if { (eval echo configure:20978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20978 rm -rf conftest*
20979 glibcpp_cv_func__finitel_use=yes
20980 else
20981 echo "configure: failed program was:" >&5
20982 cat conftest.$ac_ext >&5
20983 rm -rf conftest*
20984 glibcpp_cv_func__finitel_use=no
20986 rm -f conftest*
20987 ac_ext=c
20988 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20989 ac_cpp='$CPP $CPPFLAGS'
20990 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20991 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20992 cross_compiling=$ac_cv_prog_cc_cross
20998 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
21000 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
21001 for ac_func in _finitel
21003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21004 echo "configure:21005: checking for $ac_func" >&5
21005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21006 echo $ac_n "(cached) $ac_c" 1>&6
21007 else
21008 cat > conftest.$ac_ext <<EOF
21009 #line 21010 "configure"
21010 #include "confdefs.h"
21011 /* System header to define __stub macros and hopefully few prototypes,
21012 which can conflict with char $ac_func(); below. */
21013 #include <assert.h>
21014 /* Override any gcc2 internal prototype to avoid an error. */
21015 /* We use char because int might match the return type of a gcc2
21016 builtin and then its argument prototype would still apply. */
21017 char $ac_func();
21019 int main() {
21021 /* The GNU C library defines this for functions which it implements
21022 to always fail with ENOSYS. Some functions are actually named
21023 something starting with __ and the normal name is an alias. */
21024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21025 choke me
21026 #else
21027 $ac_func();
21028 #endif
21030 ; return 0; }
21032 if { (eval echo configure:21033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21033 rm -rf conftest*
21034 eval "ac_cv_func_$ac_func=yes"
21035 else
21036 echo "configure: failed program was:" >&5
21037 cat conftest.$ac_ext >&5
21038 rm -rf conftest*
21039 eval "ac_cv_func_$ac_func=no"
21041 rm -f conftest*
21044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21045 echo "$ac_t""yes" 1>&6
21046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21047 cat >> confdefs.h <<EOF
21048 #define $ac_tr_func 1
21051 else
21052 echo "$ac_t""no" 1>&6
21054 done
21062 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
21063 echo "configure:21064: checking for _float trig functions" >&5
21064 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
21065 echo $ac_n "(cached) $ac_c" 1>&6
21066 else
21069 ac_ext=C
21070 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21071 ac_cpp='$CXXCPP $CPPFLAGS'
21072 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21073 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21074 cross_compiling=$ac_cv_prog_cxx_cross
21076 cat > conftest.$ac_ext <<EOF
21077 #line 21078 "configure"
21078 #include "confdefs.h"
21079 #include <math.h>
21080 int main() {
21081 `for x in _acosf _asinf _atanf \
21082 _cosf _sinf _tanf \
21083 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
21084 ; return 0; }
21086 if { (eval echo configure:21087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21087 rm -rf conftest*
21088 glibcpp_cv_func__float_trig_use=yes
21089 else
21090 echo "configure: failed program was:" >&5
21091 cat conftest.$ac_ext >&5
21092 rm -rf conftest*
21093 glibcpp_cv_func__float_trig_use=no
21095 rm -f conftest*
21096 ac_ext=c
21097 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21098 ac_cpp='$CPP $CPPFLAGS'
21099 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21100 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21101 cross_compiling=$ac_cv_prog_cc_cross
21105 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
21106 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
21107 for ac_func in _acosf _asinf _atanf \
21108 _cosf _sinf _tanf \
21109 _coshf _sinhf _tanhf
21111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21112 echo "configure:21113: checking for $ac_func" >&5
21113 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21114 echo $ac_n "(cached) $ac_c" 1>&6
21115 else
21116 cat > conftest.$ac_ext <<EOF
21117 #line 21118 "configure"
21118 #include "confdefs.h"
21119 /* System header to define __stub macros and hopefully few prototypes,
21120 which can conflict with char $ac_func(); below. */
21121 #include <assert.h>
21122 /* Override any gcc2 internal prototype to avoid an error. */
21123 /* We use char because int might match the return type of a gcc2
21124 builtin and then its argument prototype would still apply. */
21125 char $ac_func();
21127 int main() {
21129 /* The GNU C library defines this for functions which it implements
21130 to always fail with ENOSYS. Some functions are actually named
21131 something starting with __ and the normal name is an alias. */
21132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21133 choke me
21134 #else
21135 $ac_func();
21136 #endif
21138 ; return 0; }
21140 if { (eval echo configure:21141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21141 rm -rf conftest*
21142 eval "ac_cv_func_$ac_func=yes"
21143 else
21144 echo "configure: failed program was:" >&5
21145 cat conftest.$ac_ext >&5
21146 rm -rf conftest*
21147 eval "ac_cv_func_$ac_func=no"
21149 rm -f conftest*
21152 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21153 echo "$ac_t""yes" 1>&6
21154 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21155 cat >> confdefs.h <<EOF
21156 #define $ac_tr_func 1
21159 else
21160 echo "$ac_t""no" 1>&6
21162 done
21167 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
21168 echo "configure:21169: checking for _float round functions" >&5
21169 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
21170 echo $ac_n "(cached) $ac_c" 1>&6
21171 else
21174 ac_ext=C
21175 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21176 ac_cpp='$CXXCPP $CPPFLAGS'
21177 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21178 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21179 cross_compiling=$ac_cv_prog_cxx_cross
21181 cat > conftest.$ac_ext <<EOF
21182 #line 21183 "configure"
21183 #include "confdefs.h"
21184 #include <math.h>
21185 int main() {
21186 `for x in _ceilf _floorf; do echo "$x (0);"; done`
21187 ; return 0; }
21189 if { (eval echo configure:21190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21190 rm -rf conftest*
21191 glibcpp_cv_func__float_round_use=yes
21192 else
21193 echo "configure: failed program was:" >&5
21194 cat conftest.$ac_ext >&5
21195 rm -rf conftest*
21196 glibcpp_cv_func__float_round_use=no
21198 rm -f conftest*
21199 ac_ext=c
21200 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21201 ac_cpp='$CPP $CPPFLAGS'
21202 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21203 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21204 cross_compiling=$ac_cv_prog_cc_cross
21208 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
21209 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
21210 for ac_func in _ceilf _floorf
21212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21213 echo "configure:21214: checking for $ac_func" >&5
21214 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21215 echo $ac_n "(cached) $ac_c" 1>&6
21216 else
21217 cat > conftest.$ac_ext <<EOF
21218 #line 21219 "configure"
21219 #include "confdefs.h"
21220 /* System header to define __stub macros and hopefully few prototypes,
21221 which can conflict with char $ac_func(); below. */
21222 #include <assert.h>
21223 /* Override any gcc2 internal prototype to avoid an error. */
21224 /* We use char because int might match the return type of a gcc2
21225 builtin and then its argument prototype would still apply. */
21226 char $ac_func();
21228 int main() {
21230 /* The GNU C library defines this for functions which it implements
21231 to always fail with ENOSYS. Some functions are actually named
21232 something starting with __ and the normal name is an alias. */
21233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21234 choke me
21235 #else
21236 $ac_func();
21237 #endif
21239 ; return 0; }
21241 if { (eval echo configure:21242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21242 rm -rf conftest*
21243 eval "ac_cv_func_$ac_func=yes"
21244 else
21245 echo "configure: failed program was:" >&5
21246 cat conftest.$ac_ext >&5
21247 rm -rf conftest*
21248 eval "ac_cv_func_$ac_func=no"
21250 rm -f conftest*
21253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21254 echo "$ac_t""yes" 1>&6
21255 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21256 cat >> confdefs.h <<EOF
21257 #define $ac_tr_func 1
21260 else
21261 echo "$ac_t""no" 1>&6
21263 done
21269 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
21270 echo "configure:21271: checking for _long double trig functions" >&5
21271 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
21272 echo $ac_n "(cached) $ac_c" 1>&6
21273 else
21276 ac_ext=C
21277 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21278 ac_cpp='$CXXCPP $CPPFLAGS'
21279 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21280 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21281 cross_compiling=$ac_cv_prog_cxx_cross
21283 cat > conftest.$ac_ext <<EOF
21284 #line 21285 "configure"
21285 #include "confdefs.h"
21286 #include <math.h>
21287 int main() {
21288 `for x in _acosl _asinl _atanl \
21289 _cosl _sinl _tanl \
21290 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
21291 ; return 0; }
21293 if { (eval echo configure:21294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21294 rm -rf conftest*
21295 glibcpp_cv_func__long_double_trig_use=yes
21296 else
21297 echo "configure: failed program was:" >&5
21298 cat conftest.$ac_ext >&5
21299 rm -rf conftest*
21300 glibcpp_cv_func__long_double_trig_use=no
21302 rm -f conftest*
21303 ac_ext=c
21304 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21305 ac_cpp='$CPP $CPPFLAGS'
21306 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21307 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21308 cross_compiling=$ac_cv_prog_cc_cross
21312 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
21313 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
21314 for ac_func in _acosl _asinl _atanl \
21315 _cosl _sinl _tanl \
21316 _coshl _sinhl _tanhl
21318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21319 echo "configure:21320: checking for $ac_func" >&5
21320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21321 echo $ac_n "(cached) $ac_c" 1>&6
21322 else
21323 cat > conftest.$ac_ext <<EOF
21324 #line 21325 "configure"
21325 #include "confdefs.h"
21326 /* System header to define __stub macros and hopefully few prototypes,
21327 which can conflict with char $ac_func(); below. */
21328 #include <assert.h>
21329 /* Override any gcc2 internal prototype to avoid an error. */
21330 /* We use char because int might match the return type of a gcc2
21331 builtin and then its argument prototype would still apply. */
21332 char $ac_func();
21334 int main() {
21336 /* The GNU C library defines this for functions which it implements
21337 to always fail with ENOSYS. Some functions are actually named
21338 something starting with __ and the normal name is an alias. */
21339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21340 choke me
21341 #else
21342 $ac_func();
21343 #endif
21345 ; return 0; }
21347 if { (eval echo configure:21348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21348 rm -rf conftest*
21349 eval "ac_cv_func_$ac_func=yes"
21350 else
21351 echo "configure: failed program was:" >&5
21352 cat conftest.$ac_ext >&5
21353 rm -rf conftest*
21354 eval "ac_cv_func_$ac_func=no"
21356 rm -f conftest*
21359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21360 echo "$ac_t""yes" 1>&6
21361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21362 cat >> confdefs.h <<EOF
21363 #define $ac_tr_func 1
21366 else
21367 echo "$ac_t""no" 1>&6
21369 done
21374 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
21375 echo "configure:21376: checking for _long double round functions" >&5
21376 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
21377 echo $ac_n "(cached) $ac_c" 1>&6
21378 else
21381 ac_ext=C
21382 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21383 ac_cpp='$CXXCPP $CPPFLAGS'
21384 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21385 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21386 cross_compiling=$ac_cv_prog_cxx_cross
21388 cat > conftest.$ac_ext <<EOF
21389 #line 21390 "configure"
21390 #include "confdefs.h"
21391 #include <math.h>
21392 int main() {
21393 `for x in _ceill _floorl; do echo "$x (0);"; done`
21394 ; return 0; }
21396 if { (eval echo configure:21397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21397 rm -rf conftest*
21398 glibcpp_cv_func__long_double_round_use=yes
21399 else
21400 echo "configure: failed program was:" >&5
21401 cat conftest.$ac_ext >&5
21402 rm -rf conftest*
21403 glibcpp_cv_func__long_double_round_use=no
21405 rm -f conftest*
21406 ac_ext=c
21407 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21408 ac_cpp='$CPP $CPPFLAGS'
21409 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21410 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21411 cross_compiling=$ac_cv_prog_cc_cross
21415 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
21416 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
21417 for ac_func in _ceill _floorl
21419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21420 echo "configure:21421: checking for $ac_func" >&5
21421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21422 echo $ac_n "(cached) $ac_c" 1>&6
21423 else
21424 cat > conftest.$ac_ext <<EOF
21425 #line 21426 "configure"
21426 #include "confdefs.h"
21427 /* System header to define __stub macros and hopefully few prototypes,
21428 which can conflict with char $ac_func(); below. */
21429 #include <assert.h>
21430 /* Override any gcc2 internal prototype to avoid an error. */
21431 /* We use char because int might match the return type of a gcc2
21432 builtin and then its argument prototype would still apply. */
21433 char $ac_func();
21435 int main() {
21437 /* The GNU C library defines this for functions which it implements
21438 to always fail with ENOSYS. Some functions are actually named
21439 something starting with __ and the normal name is an alias. */
21440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21441 choke me
21442 #else
21443 $ac_func();
21444 #endif
21446 ; return 0; }
21448 if { (eval echo configure:21449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21449 rm -rf conftest*
21450 eval "ac_cv_func_$ac_func=yes"
21451 else
21452 echo "configure: failed program was:" >&5
21453 cat conftest.$ac_ext >&5
21454 rm -rf conftest*
21455 eval "ac_cv_func_$ac_func=no"
21457 rm -f conftest*
21460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21461 echo "$ac_t""yes" 1>&6
21462 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21463 cat >> confdefs.h <<EOF
21464 #define $ac_tr_func 1
21467 else
21468 echo "$ac_t""no" 1>&6
21470 done
21475 LIBS="$ac_save_LIBS"
21476 CXXFLAGS="$ac_save_CXXFLAGS"
21479 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21480 echo "configure:21481: checking for main in -lm" >&5
21481 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21483 echo $ac_n "(cached) $ac_c" 1>&6
21484 else
21485 ac_save_LIBS="$LIBS"
21486 LIBS="-lm $LIBS"
21487 cat > conftest.$ac_ext <<EOF
21488 #line 21489 "configure"
21489 #include "confdefs.h"
21491 int main() {
21492 main()
21493 ; return 0; }
21495 if { (eval echo configure:21496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21496 rm -rf conftest*
21497 eval "ac_cv_lib_$ac_lib_var=yes"
21498 else
21499 echo "configure: failed program was:" >&5
21500 cat conftest.$ac_ext >&5
21501 rm -rf conftest*
21502 eval "ac_cv_lib_$ac_lib_var=no"
21504 rm -f conftest*
21505 LIBS="$ac_save_LIBS"
21508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21509 echo "$ac_t""yes" 1>&6
21510 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21511 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21512 cat >> confdefs.h <<EOF
21513 #define $ac_tr_lib 1
21516 LIBS="-lm $LIBS"
21518 else
21519 echo "$ac_t""no" 1>&6
21522 for ac_func in nan copysignf
21524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21525 echo "configure:21526: checking for $ac_func" >&5
21526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21527 echo $ac_n "(cached) $ac_c" 1>&6
21528 else
21529 cat > conftest.$ac_ext <<EOF
21530 #line 21531 "configure"
21531 #include "confdefs.h"
21532 /* System header to define __stub macros and hopefully few prototypes,
21533 which can conflict with char $ac_func(); below. */
21534 #include <assert.h>
21535 /* Override any gcc2 internal prototype to avoid an error. */
21536 /* We use char because int might match the return type of a gcc2
21537 builtin and then its argument prototype would still apply. */
21538 char $ac_func();
21540 int main() {
21542 /* The GNU C library defines this for functions which it implements
21543 to always fail with ENOSYS. Some functions are actually named
21544 something starting with __ and the normal name is an alias. */
21545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21546 choke me
21547 #else
21548 $ac_func();
21549 #endif
21551 ; return 0; }
21553 if { (eval echo configure:21554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21554 rm -rf conftest*
21555 eval "ac_cv_func_$ac_func=yes"
21556 else
21557 echo "configure: failed program was:" >&5
21558 cat conftest.$ac_ext >&5
21559 rm -rf conftest*
21560 eval "ac_cv_func_$ac_func=no"
21562 rm -f conftest*
21565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21566 echo "$ac_t""yes" 1>&6
21567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21568 cat >> confdefs.h <<EOF
21569 #define $ac_tr_func 1
21572 else
21573 echo "$ac_t""no" 1>&6
21574 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21576 done
21579 for ac_func in __signbit
21581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21582 echo "configure:21583: checking for $ac_func" >&5
21583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21584 echo $ac_n "(cached) $ac_c" 1>&6
21585 else
21586 cat > conftest.$ac_ext <<EOF
21587 #line 21588 "configure"
21588 #include "confdefs.h"
21589 /* System header to define __stub macros and hopefully few prototypes,
21590 which can conflict with char $ac_func(); below. */
21591 #include <assert.h>
21592 /* Override any gcc2 internal prototype to avoid an error. */
21593 /* We use char because int might match the return type of a gcc2
21594 builtin and then its argument prototype would still apply. */
21595 char $ac_func();
21597 int main() {
21599 /* The GNU C library defines this for functions which it implements
21600 to always fail with ENOSYS. Some functions are actually named
21601 something starting with __ and the normal name is an alias. */
21602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21603 choke me
21604 #else
21605 $ac_func();
21606 #endif
21608 ; return 0; }
21610 if { (eval echo configure:21611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21611 rm -rf conftest*
21612 eval "ac_cv_func_$ac_func=yes"
21613 else
21614 echo "configure: failed program was:" >&5
21615 cat conftest.$ac_ext >&5
21616 rm -rf conftest*
21617 eval "ac_cv_func_$ac_func=no"
21619 rm -f conftest*
21622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21623 echo "$ac_t""yes" 1>&6
21624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21625 cat >> confdefs.h <<EOF
21626 #define $ac_tr_func 1
21629 else
21630 echo "$ac_t""no" 1>&6
21631 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21633 done
21635 for ac_func in __signbitf
21637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21638 echo "configure:21639: checking for $ac_func" >&5
21639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21640 echo $ac_n "(cached) $ac_c" 1>&6
21641 else
21642 cat > conftest.$ac_ext <<EOF
21643 #line 21644 "configure"
21644 #include "confdefs.h"
21645 /* System header to define __stub macros and hopefully few prototypes,
21646 which can conflict with char $ac_func(); below. */
21647 #include <assert.h>
21648 /* Override any gcc2 internal prototype to avoid an error. */
21649 /* We use char because int might match the return type of a gcc2
21650 builtin and then its argument prototype would still apply. */
21651 char $ac_func();
21653 int main() {
21655 /* The GNU C library defines this for functions which it implements
21656 to always fail with ENOSYS. Some functions are actually named
21657 something starting with __ and the normal name is an alias. */
21658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21659 choke me
21660 #else
21661 $ac_func();
21662 #endif
21664 ; return 0; }
21666 if { (eval echo configure:21667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21667 rm -rf conftest*
21668 eval "ac_cv_func_$ac_func=yes"
21669 else
21670 echo "configure: failed program was:" >&5
21671 cat conftest.$ac_ext >&5
21672 rm -rf conftest*
21673 eval "ac_cv_func_$ac_func=no"
21675 rm -f conftest*
21678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21679 echo "$ac_t""yes" 1>&6
21680 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21681 cat >> confdefs.h <<EOF
21682 #define $ac_tr_func 1
21685 else
21686 echo "$ac_t""no" 1>&6
21687 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21689 done
21692 if test x$ac_cv_func_copysignl = x"yes"; then
21693 for ac_func in __signbitl
21695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21696 echo "configure:21697: checking for $ac_func" >&5
21697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21698 echo $ac_n "(cached) $ac_c" 1>&6
21699 else
21700 cat > conftest.$ac_ext <<EOF
21701 #line 21702 "configure"
21702 #include "confdefs.h"
21703 /* System header to define __stub macros and hopefully few prototypes,
21704 which can conflict with char $ac_func(); below. */
21705 #include <assert.h>
21706 /* Override any gcc2 internal prototype to avoid an error. */
21707 /* We use char because int might match the return type of a gcc2
21708 builtin and then its argument prototype would still apply. */
21709 char $ac_func();
21711 int main() {
21713 /* The GNU C library defines this for functions which it implements
21714 to always fail with ENOSYS. Some functions are actually named
21715 something starting with __ and the normal name is an alias. */
21716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21717 choke me
21718 #else
21719 $ac_func();
21720 #endif
21722 ; return 0; }
21724 if { (eval echo configure:21725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21725 rm -rf conftest*
21726 eval "ac_cv_func_$ac_func=yes"
21727 else
21728 echo "configure: failed program was:" >&5
21729 cat conftest.$ac_ext >&5
21730 rm -rf conftest*
21731 eval "ac_cv_func_$ac_func=no"
21733 rm -f conftest*
21736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21737 echo "$ac_t""yes" 1>&6
21738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21739 cat >> confdefs.h <<EOF
21740 #define $ac_tr_func 1
21743 else
21744 echo "$ac_t""no" 1>&6
21745 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
21747 done
21755 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
21756 echo "configure:21757: checking for mbstate_t" >&5
21757 cat > conftest.$ac_ext <<EOF
21758 #line 21759 "configure"
21759 #include "confdefs.h"
21760 #include <wchar.h>
21761 int main() {
21762 mbstate_t teststate;
21763 ; return 0; }
21765 if { (eval echo configure:21766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21766 rm -rf conftest*
21767 have_mbstate_t=yes
21768 else
21769 echo "configure: failed program was:" >&5
21770 cat conftest.$ac_ext >&5
21771 rm -rf conftest*
21772 have_mbstate_t=no
21774 rm -f conftest*
21775 echo "$ac_t""$have_mbstate_t" 1>&6
21776 if test x"$have_mbstate_t" = xyes; then
21777 cat >> confdefs.h <<\EOF
21778 #define HAVE_MBSTATE_T 1
21783 for ac_hdr in wchar.h
21785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21787 echo "configure:21788: checking for $ac_hdr" >&5
21788 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21789 echo $ac_n "(cached) $ac_c" 1>&6
21790 else
21791 cat > conftest.$ac_ext <<EOF
21792 #line 21793 "configure"
21793 #include "confdefs.h"
21794 #include <$ac_hdr>
21796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21797 { (eval echo configure:21798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21799 if test -z "$ac_err"; then
21800 rm -rf conftest*
21801 eval "ac_cv_header_$ac_safe=yes"
21802 else
21803 echo "$ac_err" >&5
21804 echo "configure: failed program was:" >&5
21805 cat conftest.$ac_ext >&5
21806 rm -rf conftest*
21807 eval "ac_cv_header_$ac_safe=no"
21809 rm -f conftest*
21811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21812 echo "$ac_t""yes" 1>&6
21813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21814 cat >> confdefs.h <<EOF
21815 #define $ac_tr_hdr 1
21817 ac_has_wchar_h=yes
21818 else
21819 echo "$ac_t""no" 1>&6
21820 ac_has_wchar_h=no
21822 done
21824 for ac_hdr in wctype.h
21826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21828 echo "configure:21829: checking for $ac_hdr" >&5
21829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21830 echo $ac_n "(cached) $ac_c" 1>&6
21831 else
21832 cat > conftest.$ac_ext <<EOF
21833 #line 21834 "configure"
21834 #include "confdefs.h"
21835 #include <$ac_hdr>
21837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21838 { (eval echo configure:21839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21840 if test -z "$ac_err"; then
21841 rm -rf conftest*
21842 eval "ac_cv_header_$ac_safe=yes"
21843 else
21844 echo "$ac_err" >&5
21845 echo "configure: failed program was:" >&5
21846 cat conftest.$ac_ext >&5
21847 rm -rf conftest*
21848 eval "ac_cv_header_$ac_safe=no"
21850 rm -f conftest*
21852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21853 echo "$ac_t""yes" 1>&6
21854 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21855 cat >> confdefs.h <<EOF
21856 #define $ac_tr_hdr 1
21858 ac_has_wctype_h=yes
21859 else
21860 echo "$ac_t""no" 1>&6
21861 ac_has_wctype_h=no
21863 done
21866 if test x"$ac_has_wchar_h" = xyes &&
21867 test x"$ac_has_wctype_h" = xyes &&
21868 test x"$enable_c_mbchar" != xno; then
21870 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
21871 echo "configure:21872: checking for WCHAR_MIN and WCHAR_MAX" >&5
21872 cat > conftest.$ac_ext <<EOF
21873 #line 21874 "configure"
21874 #include "confdefs.h"
21875 #include <wchar.h>
21876 int main() {
21877 int i = WCHAR_MIN; int j = WCHAR_MAX;
21878 ; return 0; }
21880 if { (eval echo configure:21881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21881 rm -rf conftest*
21882 has_wchar_minmax=yes
21883 else
21884 echo "configure: failed program was:" >&5
21885 cat conftest.$ac_ext >&5
21886 rm -rf conftest*
21887 has_wchar_minmax=no
21889 rm -f conftest*
21890 echo "$ac_t""$has_wchar_minmax" 1>&6
21892 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
21893 echo "configure:21894: checking for WEOF" >&5
21894 cat > conftest.$ac_ext <<EOF
21895 #line 21896 "configure"
21896 #include "confdefs.h"
21898 #include <wchar.h>
21899 #include <stddef.h>
21900 int main() {
21901 wint_t i = WEOF;
21902 ; return 0; }
21904 if { (eval echo configure:21905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21905 rm -rf conftest*
21906 has_weof=yes
21907 else
21908 echo "configure: failed program was:" >&5
21909 cat conftest.$ac_ext >&5
21910 rm -rf conftest*
21911 has_weof=no
21913 rm -f conftest*
21914 echo "$ac_t""$has_weof" 1>&6
21916 ac_wfuncs=yes
21917 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
21919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21920 echo "configure:21921: checking for $ac_func" >&5
21921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21922 echo $ac_n "(cached) $ac_c" 1>&6
21923 else
21924 cat > conftest.$ac_ext <<EOF
21925 #line 21926 "configure"
21926 #include "confdefs.h"
21927 /* System header to define __stub macros and hopefully few prototypes,
21928 which can conflict with char $ac_func(); below. */
21929 #include <assert.h>
21930 /* Override any gcc2 internal prototype to avoid an error. */
21931 /* We use char because int might match the return type of a gcc2
21932 builtin and then its argument prototype would still apply. */
21933 char $ac_func();
21935 int main() {
21937 /* The GNU C library defines this for functions which it implements
21938 to always fail with ENOSYS. Some functions are actually named
21939 something starting with __ and the normal name is an alias. */
21940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21941 choke me
21942 #else
21943 $ac_func();
21944 #endif
21946 ; return 0; }
21948 if { (eval echo configure:21949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21949 rm -rf conftest*
21950 eval "ac_cv_func_$ac_func=yes"
21951 else
21952 echo "configure: failed program was:" >&5
21953 cat conftest.$ac_ext >&5
21954 rm -rf conftest*
21955 eval "ac_cv_func_$ac_func=no"
21957 rm -f conftest*
21960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21961 echo "$ac_t""yes" 1>&6
21962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21963 cat >> confdefs.h <<EOF
21964 #define $ac_tr_func 1
21967 else
21968 echo "$ac_t""no" 1>&6
21970 ac_wfuncs=no
21972 done
21975 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
21976 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
21977 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
21978 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
21979 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
21980 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
21982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21983 echo "configure:21984: checking for $ac_func" >&5
21984 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21985 echo $ac_n "(cached) $ac_c" 1>&6
21986 else
21987 cat > conftest.$ac_ext <<EOF
21988 #line 21989 "configure"
21989 #include "confdefs.h"
21990 /* System header to define __stub macros and hopefully few prototypes,
21991 which can conflict with char $ac_func(); below. */
21992 #include <assert.h>
21993 /* Override any gcc2 internal prototype to avoid an error. */
21994 /* We use char because int might match the return type of a gcc2
21995 builtin and then its argument prototype would still apply. */
21996 char $ac_func();
21998 int main() {
22000 /* The GNU C library defines this for functions which it implements
22001 to always fail with ENOSYS. Some functions are actually named
22002 something starting with __ and the normal name is an alias. */
22003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22004 choke me
22005 #else
22006 $ac_func();
22007 #endif
22009 ; return 0; }
22011 if { (eval echo configure:22012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22012 rm -rf conftest*
22013 eval "ac_cv_func_$ac_func=yes"
22014 else
22015 echo "configure: failed program was:" >&5
22016 cat conftest.$ac_ext >&5
22017 rm -rf conftest*
22018 eval "ac_cv_func_$ac_func=no"
22020 rm -f conftest*
22023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22024 echo "$ac_t""yes" 1>&6
22025 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22026 cat >> confdefs.h <<EOF
22027 #define $ac_tr_func 1
22030 else
22031 echo "$ac_t""no" 1>&6
22033 ac_wfuncs=no
22035 done
22038 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22039 echo "configure:22040: checking for ISO C99 wchar_t support" >&5
22040 if test x"$has_weof" = xyes &&
22041 test x"$has_wchar_minmax" = xyes &&
22042 test x"$ac_wfuncs" = xyes; then
22043 ac_isoC99_wchar_t=yes
22044 else
22045 ac_isoC99_wchar_t=no
22047 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22049 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22050 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22051 echo "configure:22052: checking for iconv.h" >&5
22052 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22053 echo $ac_n "(cached) $ac_c" 1>&6
22054 else
22055 cat > conftest.$ac_ext <<EOF
22056 #line 22057 "configure"
22057 #include "confdefs.h"
22058 #include <iconv.h>
22060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22061 { (eval echo configure:22062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22063 if test -z "$ac_err"; then
22064 rm -rf conftest*
22065 eval "ac_cv_header_$ac_safe=yes"
22066 else
22067 echo "$ac_err" >&5
22068 echo "configure: failed program was:" >&5
22069 cat conftest.$ac_ext >&5
22070 rm -rf conftest*
22071 eval "ac_cv_header_$ac_safe=no"
22073 rm -f conftest*
22075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22076 echo "$ac_t""yes" 1>&6
22077 ac_has_iconv_h=yes
22078 else
22079 echo "$ac_t""no" 1>&6
22080 ac_has_iconv_h=no
22083 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22084 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22085 echo "configure:22086: checking for langinfo.h" >&5
22086 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22087 echo $ac_n "(cached) $ac_c" 1>&6
22088 else
22089 cat > conftest.$ac_ext <<EOF
22090 #line 22091 "configure"
22091 #include "confdefs.h"
22092 #include <langinfo.h>
22094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22095 { (eval echo configure:22096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22097 if test -z "$ac_err"; then
22098 rm -rf conftest*
22099 eval "ac_cv_header_$ac_safe=yes"
22100 else
22101 echo "$ac_err" >&5
22102 echo "configure: failed program was:" >&5
22103 cat conftest.$ac_ext >&5
22104 rm -rf conftest*
22105 eval "ac_cv_header_$ac_safe=no"
22107 rm -f conftest*
22109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22110 echo "$ac_t""yes" 1>&6
22111 ac_has_langinfo_h=yes
22112 else
22113 echo "$ac_t""no" 1>&6
22114 ac_has_langinfo_h=no
22118 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22119 echo "configure:22120: checking for iconv in -liconv" >&5
22120 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22122 echo $ac_n "(cached) $ac_c" 1>&6
22123 else
22124 ac_save_LIBS="$LIBS"
22125 LIBS="-liconv $LIBS"
22126 cat > conftest.$ac_ext <<EOF
22127 #line 22128 "configure"
22128 #include "confdefs.h"
22129 /* Override any gcc2 internal prototype to avoid an error. */
22130 /* We use char because int might match the return type of a gcc2
22131 builtin and then its argument prototype would still apply. */
22132 char iconv();
22134 int main() {
22135 iconv()
22136 ; return 0; }
22138 if { (eval echo configure:22139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22139 rm -rf conftest*
22140 eval "ac_cv_lib_$ac_lib_var=yes"
22141 else
22142 echo "configure: failed program was:" >&5
22143 cat conftest.$ac_ext >&5
22144 rm -rf conftest*
22145 eval "ac_cv_lib_$ac_lib_var=no"
22147 rm -f conftest*
22148 LIBS="$ac_save_LIBS"
22151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22152 echo "$ac_t""yes" 1>&6
22153 libiconv="-liconv"
22154 else
22155 echo "$ac_t""no" 1>&6
22158 ac_save_LIBS="$LIBS"
22159 LIBS="$LIBS $libiconv"
22161 for ac_func in iconv_open iconv_close iconv nl_langinfo
22163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22164 echo "configure:22165: checking for $ac_func" >&5
22165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22166 echo $ac_n "(cached) $ac_c" 1>&6
22167 else
22168 cat > conftest.$ac_ext <<EOF
22169 #line 22170 "configure"
22170 #include "confdefs.h"
22171 /* System header to define __stub macros and hopefully few prototypes,
22172 which can conflict with char $ac_func(); below. */
22173 #include <assert.h>
22174 /* Override any gcc2 internal prototype to avoid an error. */
22175 /* We use char because int might match the return type of a gcc2
22176 builtin and then its argument prototype would still apply. */
22177 char $ac_func();
22179 int main() {
22181 /* The GNU C library defines this for functions which it implements
22182 to always fail with ENOSYS. Some functions are actually named
22183 something starting with __ and the normal name is an alias. */
22184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22185 choke me
22186 #else
22187 $ac_func();
22188 #endif
22190 ; return 0; }
22192 if { (eval echo configure:22193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22193 rm -rf conftest*
22194 eval "ac_cv_func_$ac_func=yes"
22195 else
22196 echo "configure: failed program was:" >&5
22197 cat conftest.$ac_ext >&5
22198 rm -rf conftest*
22199 eval "ac_cv_func_$ac_func=no"
22201 rm -f conftest*
22204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22205 echo "$ac_t""yes" 1>&6
22206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22207 cat >> confdefs.h <<EOF
22208 #define $ac_tr_func 1
22211 ac_XPG2funcs=yes
22212 else
22213 echo "$ac_t""no" 1>&6
22214 ac_XPG2funcs=no
22216 done
22219 LIBS="$ac_save_LIBS"
22221 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22222 echo "configure:22223: checking for XPG2 wchar_t support" >&5
22223 if test x"$ac_has_iconv_h" = xyes &&
22224 test x"$ac_has_langinfo_h" = xyes &&
22225 test x"$ac_XPG2funcs" = xyes; then
22226 ac_XPG2_wchar_t=yes
22227 else
22228 ac_XPG2_wchar_t=no
22230 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22232 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22233 echo "configure:22234: checking for enabled wchar_t specializations" >&5
22234 if test x"$ac_isoC99_wchar_t" = xyes &&
22235 test x"$ac_XPG2_wchar_t" = xyes; then
22236 cat >> confdefs.h <<\EOF
22237 #define _GLIBCPP_USE_WCHAR_T 1
22240 echo "$ac_t"""yes"" 1>&6
22241 else
22242 echo "$ac_t"""no"" 1>&6
22244 else
22245 echo "configure: warning: wchar_t support disabled." 1>&2
22249 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22250 ac_save_CXXFLAGS="$CXXFLAGS"
22251 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22254 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22255 echo "configure:22256: checking for strtold declaration" >&5
22256 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22257 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22258 echo $ac_n "(cached) $ac_c" 1>&6
22259 else
22262 ac_ext=C
22263 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22264 ac_cpp='$CXXCPP $CPPFLAGS'
22265 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22266 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22267 cross_compiling=$ac_cv_prog_cxx_cross
22269 cat > conftest.$ac_ext <<EOF
22270 #line 22271 "configure"
22271 #include "confdefs.h"
22272 #include <stdlib.h>
22273 int main() {
22274 strtold(0, 0);
22275 ; return 0; }
22277 if { (eval echo configure:22278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22278 rm -rf conftest*
22279 glibcpp_cv_func_strtold_use=yes
22280 else
22281 echo "configure: failed program was:" >&5
22282 cat conftest.$ac_ext >&5
22283 rm -rf conftest*
22284 glibcpp_cv_func_strtold_use=no
22286 rm -f conftest*
22287 ac_ext=c
22288 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22289 ac_cpp='$CPP $CPPFLAGS'
22290 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22291 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22292 cross_compiling=$ac_cv_prog_cc_cross
22298 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22299 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22300 for ac_func in strtold
22302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22303 echo "configure:22304: checking for $ac_func" >&5
22304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22305 echo $ac_n "(cached) $ac_c" 1>&6
22306 else
22307 cat > conftest.$ac_ext <<EOF
22308 #line 22309 "configure"
22309 #include "confdefs.h"
22310 /* System header to define __stub macros and hopefully few prototypes,
22311 which can conflict with char $ac_func(); below. */
22312 #include <assert.h>
22313 /* Override any gcc2 internal prototype to avoid an error. */
22314 /* We use char because int might match the return type of a gcc2
22315 builtin and then its argument prototype would still apply. */
22316 char $ac_func();
22318 int main() {
22320 /* The GNU C library defines this for functions which it implements
22321 to always fail with ENOSYS. Some functions are actually named
22322 something starting with __ and the normal name is an alias. */
22323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22324 choke me
22325 #else
22326 $ac_func();
22327 #endif
22329 ; return 0; }
22331 if { (eval echo configure:22332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22332 rm -rf conftest*
22333 eval "ac_cv_func_$ac_func=yes"
22334 else
22335 echo "configure: failed program was:" >&5
22336 cat conftest.$ac_ext >&5
22337 rm -rf conftest*
22338 eval "ac_cv_func_$ac_func=no"
22340 rm -f conftest*
22343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22344 echo "$ac_t""yes" 1>&6
22345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22346 cat >> confdefs.h <<EOF
22347 #define $ac_tr_func 1
22350 else
22351 echo "$ac_t""no" 1>&6
22353 done
22358 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22359 echo "configure:22360: checking for strtof declaration" >&5
22360 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22361 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22362 echo $ac_n "(cached) $ac_c" 1>&6
22363 else
22366 ac_ext=C
22367 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22368 ac_cpp='$CXXCPP $CPPFLAGS'
22369 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22370 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22371 cross_compiling=$ac_cv_prog_cxx_cross
22373 cat > conftest.$ac_ext <<EOF
22374 #line 22375 "configure"
22375 #include "confdefs.h"
22376 #include <stdlib.h>
22377 int main() {
22378 strtof(0, 0);
22379 ; return 0; }
22381 if { (eval echo configure:22382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22382 rm -rf conftest*
22383 glibcpp_cv_func_strtof_use=yes
22384 else
22385 echo "configure: failed program was:" >&5
22386 cat conftest.$ac_ext >&5
22387 rm -rf conftest*
22388 glibcpp_cv_func_strtof_use=no
22390 rm -f conftest*
22391 ac_ext=c
22392 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22393 ac_cpp='$CPP $CPPFLAGS'
22394 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22395 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22396 cross_compiling=$ac_cv_prog_cc_cross
22402 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22403 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22404 for ac_func in strtof
22406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22407 echo "configure:22408: checking for $ac_func" >&5
22408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22409 echo $ac_n "(cached) $ac_c" 1>&6
22410 else
22411 cat > conftest.$ac_ext <<EOF
22412 #line 22413 "configure"
22413 #include "confdefs.h"
22414 /* System header to define __stub macros and hopefully few prototypes,
22415 which can conflict with char $ac_func(); below. */
22416 #include <assert.h>
22417 /* Override any gcc2 internal prototype to avoid an error. */
22418 /* We use char because int might match the return type of a gcc2
22419 builtin and then its argument prototype would still apply. */
22420 char $ac_func();
22422 int main() {
22424 /* The GNU C library defines this for functions which it implements
22425 to always fail with ENOSYS. Some functions are actually named
22426 something starting with __ and the normal name is an alias. */
22427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22428 choke me
22429 #else
22430 $ac_func();
22431 #endif
22433 ; return 0; }
22435 if { (eval echo configure:22436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22436 rm -rf conftest*
22437 eval "ac_cv_func_$ac_func=yes"
22438 else
22439 echo "configure: failed program was:" >&5
22440 cat conftest.$ac_ext >&5
22441 rm -rf conftest*
22442 eval "ac_cv_func_$ac_func=no"
22444 rm -f conftest*
22447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22448 echo "$ac_t""yes" 1>&6
22449 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22450 cat >> confdefs.h <<EOF
22451 #define $ac_tr_func 1
22454 else
22455 echo "$ac_t""no" 1>&6
22457 done
22461 for ac_func in drand48
22463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22464 echo "configure:22465: checking for $ac_func" >&5
22465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22466 echo $ac_n "(cached) $ac_c" 1>&6
22467 else
22468 cat > conftest.$ac_ext <<EOF
22469 #line 22470 "configure"
22470 #include "confdefs.h"
22471 /* System header to define __stub macros and hopefully few prototypes,
22472 which can conflict with char $ac_func(); below. */
22473 #include <assert.h>
22474 /* Override any gcc2 internal prototype to avoid an error. */
22475 /* We use char because int might match the return type of a gcc2
22476 builtin and then its argument prototype would still apply. */
22477 char $ac_func();
22479 int main() {
22481 /* The GNU C library defines this for functions which it implements
22482 to always fail with ENOSYS. Some functions are actually named
22483 something starting with __ and the normal name is an alias. */
22484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22485 choke me
22486 #else
22487 $ac_func();
22488 #endif
22490 ; return 0; }
22492 if { (eval echo configure:22493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22493 rm -rf conftest*
22494 eval "ac_cv_func_$ac_func=yes"
22495 else
22496 echo "configure: failed program was:" >&5
22497 cat conftest.$ac_ext >&5
22498 rm -rf conftest*
22499 eval "ac_cv_func_$ac_func=no"
22501 rm -f conftest*
22504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22505 echo "$ac_t""yes" 1>&6
22506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22507 cat >> confdefs.h <<EOF
22508 #define $ac_tr_func 1
22511 else
22512 echo "$ac_t""no" 1>&6
22514 done
22517 CXXFLAGS="$ac_save_CXXFLAGS"
22520 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22521 ac_save_CXXFLAGS="$CXXFLAGS"
22522 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22525 echo $ac_n "checking for isatty declaration""... $ac_c" 1>&6
22526 echo "configure:22527: checking for isatty declaration" >&5
22527 if test x${glibcpp_cv_func_isatty_use+set} != xset; then
22528 if eval "test \"`echo '$''{'glibcpp_cv_func_isatty_use'+set}'`\" = set"; then
22529 echo $ac_n "(cached) $ac_c" 1>&6
22530 else
22533 ac_ext=C
22534 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22535 ac_cpp='$CXXCPP $CPPFLAGS'
22536 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22537 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22538 cross_compiling=$ac_cv_prog_cxx_cross
22540 cat > conftest.$ac_ext <<EOF
22541 #line 22542 "configure"
22542 #include "confdefs.h"
22543 #include <unistd.h>
22544 int main() {
22545 isatty(0);
22546 ; return 0; }
22548 if { (eval echo configure:22549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22549 rm -rf conftest*
22550 glibcpp_cv_func_isatty_use=yes
22551 else
22552 echo "configure: failed program was:" >&5
22553 cat conftest.$ac_ext >&5
22554 rm -rf conftest*
22555 glibcpp_cv_func_isatty_use=no
22557 rm -f conftest*
22558 ac_ext=c
22559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22560 ac_cpp='$CPP $CPPFLAGS'
22561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22563 cross_compiling=$ac_cv_prog_cc_cross
22569 echo "$ac_t""$glibcpp_cv_func_isatty_use" 1>&6
22570 if test x$glibcpp_cv_func_isatty_use = x"yes"; then
22571 for ac_func in isatty
22573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22574 echo "configure:22575: checking for $ac_func" >&5
22575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22576 echo $ac_n "(cached) $ac_c" 1>&6
22577 else
22578 cat > conftest.$ac_ext <<EOF
22579 #line 22580 "configure"
22580 #include "confdefs.h"
22581 /* System header to define __stub macros and hopefully few prototypes,
22582 which can conflict with char $ac_func(); below. */
22583 #include <assert.h>
22584 /* Override any gcc2 internal prototype to avoid an error. */
22585 /* We use char because int might match the return type of a gcc2
22586 builtin and then its argument prototype would still apply. */
22587 char $ac_func();
22589 int main() {
22591 /* The GNU C library defines this for functions which it implements
22592 to always fail with ENOSYS. Some functions are actually named
22593 something starting with __ and the normal name is an alias. */
22594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22595 choke me
22596 #else
22597 $ac_func();
22598 #endif
22600 ; return 0; }
22602 if { (eval echo configure:22603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22603 rm -rf conftest*
22604 eval "ac_cv_func_$ac_func=yes"
22605 else
22606 echo "configure: failed program was:" >&5
22607 cat conftest.$ac_ext >&5
22608 rm -rf conftest*
22609 eval "ac_cv_func_$ac_func=no"
22611 rm -f conftest*
22614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22615 echo "$ac_t""yes" 1>&6
22616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22617 cat >> confdefs.h <<EOF
22618 #define $ac_tr_func 1
22621 else
22622 echo "$ac_t""no" 1>&6
22624 done
22629 CXXFLAGS="$ac_save_CXXFLAGS"
22632 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22633 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22634 echo "configure:22635: checking for locale.h" >&5
22635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22636 echo $ac_n "(cached) $ac_c" 1>&6
22637 else
22638 cat > conftest.$ac_ext <<EOF
22639 #line 22640 "configure"
22640 #include "confdefs.h"
22641 #include <locale.h>
22643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22644 { (eval echo configure:22645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22646 if test -z "$ac_err"; then
22647 rm -rf conftest*
22648 eval "ac_cv_header_$ac_safe=yes"
22649 else
22650 echo "$ac_err" >&5
22651 echo "configure: failed program was:" >&5
22652 cat conftest.$ac_ext >&5
22653 rm -rf conftest*
22654 eval "ac_cv_header_$ac_safe=no"
22656 rm -f conftest*
22658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22659 echo "$ac_t""yes" 1>&6
22661 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22662 echo "configure:22663: checking for LC_MESSAGES" >&5
22663 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22664 echo $ac_n "(cached) $ac_c" 1>&6
22665 else
22666 cat > conftest.$ac_ext <<EOF
22667 #line 22668 "configure"
22668 #include "confdefs.h"
22669 #include <locale.h>
22670 int main() {
22671 return LC_MESSAGES
22672 ; return 0; }
22674 if { (eval echo configure:22675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22675 rm -rf conftest*
22676 ac_cv_val_LC_MESSAGES=yes
22677 else
22678 echo "configure: failed program was:" >&5
22679 cat conftest.$ac_ext >&5
22680 rm -rf conftest*
22681 ac_cv_val_LC_MESSAGES=no
22683 rm -f conftest*
22686 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22687 if test $ac_cv_val_LC_MESSAGES = yes; then
22688 cat >> confdefs.h <<\EOF
22689 #define HAVE_LC_MESSAGES 1
22694 else
22695 echo "$ac_t""no" 1>&6
22700 cat > conftest.$ac_ext <<EOF
22701 #line 22702 "configure"
22702 #include "confdefs.h"
22704 #include <setjmp.h>
22706 int main() {
22707 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
22708 ; return 0; }
22710 if { (eval echo configure:22711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22711 rm -rf conftest*
22712 cat >> confdefs.h <<\EOF
22713 #define HAVE_SIGSETJMP 1
22717 else
22718 echo "configure: failed program was:" >&5
22719 cat conftest.$ac_ext >&5
22721 rm -f conftest*
22723 for ac_hdr in unistd.h
22725 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22726 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22727 echo "configure:22728: checking for $ac_hdr" >&5
22728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22729 echo $ac_n "(cached) $ac_c" 1>&6
22730 else
22731 cat > conftest.$ac_ext <<EOF
22732 #line 22733 "configure"
22733 #include "confdefs.h"
22734 #include <$ac_hdr>
22736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22737 { (eval echo configure:22738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22739 if test -z "$ac_err"; then
22740 rm -rf conftest*
22741 eval "ac_cv_header_$ac_safe=yes"
22742 else
22743 echo "$ac_err" >&5
22744 echo "configure: failed program was:" >&5
22745 cat conftest.$ac_ext >&5
22746 rm -rf conftest*
22747 eval "ac_cv_header_$ac_safe=no"
22749 rm -f conftest*
22751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22752 echo "$ac_t""yes" 1>&6
22753 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22754 cat >> confdefs.h <<EOF
22755 #define $ac_tr_hdr 1
22758 else
22759 echo "$ac_t""no" 1>&6
22761 done
22763 for ac_func in getpagesize
22765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22766 echo "configure:22767: checking for $ac_func" >&5
22767 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22768 echo $ac_n "(cached) $ac_c" 1>&6
22769 else
22770 cat > conftest.$ac_ext <<EOF
22771 #line 22772 "configure"
22772 #include "confdefs.h"
22773 /* System header to define __stub macros and hopefully few prototypes,
22774 which can conflict with char $ac_func(); below. */
22775 #include <assert.h>
22776 /* Override any gcc2 internal prototype to avoid an error. */
22777 /* We use char because int might match the return type of a gcc2
22778 builtin and then its argument prototype would still apply. */
22779 char $ac_func();
22781 int main() {
22783 /* The GNU C library defines this for functions which it implements
22784 to always fail with ENOSYS. Some functions are actually named
22785 something starting with __ and the normal name is an alias. */
22786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22787 choke me
22788 #else
22789 $ac_func();
22790 #endif
22792 ; return 0; }
22794 if { (eval echo configure:22795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22795 rm -rf conftest*
22796 eval "ac_cv_func_$ac_func=yes"
22797 else
22798 echo "configure: failed program was:" >&5
22799 cat conftest.$ac_ext >&5
22800 rm -rf conftest*
22801 eval "ac_cv_func_$ac_func=no"
22803 rm -f conftest*
22806 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22807 echo "$ac_t""yes" 1>&6
22808 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22809 cat >> confdefs.h <<EOF
22810 #define $ac_tr_func 1
22813 else
22814 echo "$ac_t""no" 1>&6
22816 done
22818 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
22819 echo "configure:22820: checking for working mmap" >&5
22820 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
22821 echo $ac_n "(cached) $ac_c" 1>&6
22822 else
22823 if test "$cross_compiling" = yes; then
22824 ac_cv_func_mmap_fixed_mapped=no
22825 else
22826 cat > conftest.$ac_ext <<EOF
22827 #line 22828 "configure"
22828 #include "confdefs.h"
22830 /* Thanks to Mike Haertel and Jim Avera for this test.
22831 Here is a matrix of mmap possibilities:
22832 mmap private not fixed
22833 mmap private fixed at somewhere currently unmapped
22834 mmap private fixed at somewhere already mapped
22835 mmap shared not fixed
22836 mmap shared fixed at somewhere currently unmapped
22837 mmap shared fixed at somewhere already mapped
22838 For private mappings, we should verify that changes cannot be read()
22839 back from the file, nor mmap's back from the file at a different
22840 address. (There have been systems where private was not correctly
22841 implemented like the infamous i386 svr4.0, and systems where the
22842 VM page cache was not coherent with the filesystem buffer cache
22843 like early versions of FreeBSD and possibly contemporary NetBSD.)
22844 For shared mappings, we should conversely verify that changes get
22845 propogated back to all the places they're supposed to be.
22847 Grep wants private fixed already mapped.
22848 The main things grep needs to know about mmap are:
22849 * does it exist and is it safe to write into the mmap'd area
22850 * how to use it (BSD variants) */
22851 #include <sys/types.h>
22852 #include <fcntl.h>
22853 #include <sys/mman.h>
22855 /* This mess was copied from the GNU getpagesize.h. */
22856 #ifndef HAVE_GETPAGESIZE
22857 # ifdef HAVE_UNISTD_H
22858 # include <unistd.h>
22859 # endif
22861 /* Assume that all systems that can run configure have sys/param.h. */
22862 # ifndef HAVE_SYS_PARAM_H
22863 # define HAVE_SYS_PARAM_H 1
22864 # endif
22866 # ifdef _SC_PAGESIZE
22867 # define getpagesize() sysconf(_SC_PAGESIZE)
22868 # else /* no _SC_PAGESIZE */
22869 # ifdef HAVE_SYS_PARAM_H
22870 # include <sys/param.h>
22871 # ifdef EXEC_PAGESIZE
22872 # define getpagesize() EXEC_PAGESIZE
22873 # else /* no EXEC_PAGESIZE */
22874 # ifdef NBPG
22875 # define getpagesize() NBPG * CLSIZE
22876 # ifndef CLSIZE
22877 # define CLSIZE 1
22878 # endif /* no CLSIZE */
22879 # else /* no NBPG */
22880 # ifdef NBPC
22881 # define getpagesize() NBPC
22882 # else /* no NBPC */
22883 # ifdef PAGESIZE
22884 # define getpagesize() PAGESIZE
22885 # endif /* PAGESIZE */
22886 # endif /* no NBPC */
22887 # endif /* no NBPG */
22888 # endif /* no EXEC_PAGESIZE */
22889 # else /* no HAVE_SYS_PARAM_H */
22890 # define getpagesize() 8192 /* punt totally */
22891 # endif /* no HAVE_SYS_PARAM_H */
22892 # endif /* no _SC_PAGESIZE */
22894 #endif /* no HAVE_GETPAGESIZE */
22896 #ifdef __cplusplus
22897 extern "C" { void *malloc(unsigned); }
22898 #else
22899 char *malloc();
22900 #endif
22903 main()
22905 char *data, *data2, *data3;
22906 int i, pagesize;
22907 int fd;
22909 pagesize = getpagesize();
22912 * First, make a file with some known garbage in it.
22914 data = malloc(pagesize);
22915 if (!data)
22916 exit(1);
22917 for (i = 0; i < pagesize; ++i)
22918 *(data + i) = rand();
22919 umask(0);
22920 fd = creat("conftestmmap", 0600);
22921 if (fd < 0)
22922 exit(1);
22923 if (write(fd, data, pagesize) != pagesize)
22924 exit(1);
22925 close(fd);
22928 * Next, try to mmap the file at a fixed address which
22929 * already has something else allocated at it. If we can,
22930 * also make sure that we see the same garbage.
22932 fd = open("conftestmmap", O_RDWR);
22933 if (fd < 0)
22934 exit(1);
22935 data2 = malloc(2 * pagesize);
22936 if (!data2)
22937 exit(1);
22938 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22939 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
22940 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22941 exit(1);
22942 for (i = 0; i < pagesize; ++i)
22943 if (*(data + i) != *(data2 + i))
22944 exit(1);
22947 * Finally, make sure that changes to the mapped area
22948 * do not percolate back to the file as seen by read().
22949 * (This is a bug on some variants of i386 svr4.0.)
22951 for (i = 0; i < pagesize; ++i)
22952 *(data2 + i) = *(data2 + i) + 1;
22953 data3 = malloc(pagesize);
22954 if (!data3)
22955 exit(1);
22956 if (read(fd, data3, pagesize) != pagesize)
22957 exit(1);
22958 for (i = 0; i < pagesize; ++i)
22959 if (*(data + i) != *(data3 + i))
22960 exit(1);
22961 close(fd);
22962 unlink("conftestmmap");
22963 exit(0);
22967 if { (eval echo configure:22968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22968 then
22969 ac_cv_func_mmap_fixed_mapped=yes
22970 else
22971 echo "configure: failed program was:" >&5
22972 cat conftest.$ac_ext >&5
22973 rm -fr conftest*
22974 ac_cv_func_mmap_fixed_mapped=no
22976 rm -fr conftest*
22981 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
22982 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22983 cat >> confdefs.h <<\EOF
22984 #define HAVE_MMAP 1
22990 # Establish limits on memory usage during 'make check'
22993 setrlimit_have_headers=yes
22994 for ac_hdr in unistd.h sys/time.h sys/resource.h
22996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22998 echo "configure:22999: checking for $ac_hdr" >&5
22999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23000 echo $ac_n "(cached) $ac_c" 1>&6
23001 else
23002 cat > conftest.$ac_ext <<EOF
23003 #line 23004 "configure"
23004 #include "confdefs.h"
23005 #include <$ac_hdr>
23007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23008 { (eval echo configure:23009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23010 if test -z "$ac_err"; then
23011 rm -rf conftest*
23012 eval "ac_cv_header_$ac_safe=yes"
23013 else
23014 echo "$ac_err" >&5
23015 echo "configure: failed program was:" >&5
23016 cat conftest.$ac_ext >&5
23017 rm -rf conftest*
23018 eval "ac_cv_header_$ac_safe=no"
23020 rm -f conftest*
23022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23023 echo "$ac_t""yes" 1>&6
23024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23025 cat >> confdefs.h <<EOF
23026 #define $ac_tr_hdr 1
23029 else
23030 echo "$ac_t""no" 1>&6
23031 setrlimit_have_headers=no
23033 done
23035 # If don't have the headers, then we can't run the tests now, and we
23036 # won't be seeing any of these during testsuite compilation.
23037 if test $setrlimit_have_headers = yes; then
23038 # Can't do these in a loop, else the resulting syntax is wrong.
23040 cat > conftest.$ac_ext <<EOF
23041 #line 23042 "configure"
23042 #include "confdefs.h"
23043 #include <unistd.h>
23044 #include <sys/time.h>
23045 #include <sys/resource.h>
23047 int main() {
23048 int f = RLIMIT_DATA ;
23049 ; return 0; }
23051 if { (eval echo configure:23052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23052 rm -rf conftest*
23053 glibcpp_mresult=1
23054 else
23055 echo "configure: failed program was:" >&5
23056 cat conftest.$ac_ext >&5
23057 rm -rf conftest*
23058 glibcpp_mresult=0
23060 rm -f conftest*
23061 cat >> confdefs.h <<EOF
23062 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23067 cat > conftest.$ac_ext <<EOF
23068 #line 23069 "configure"
23069 #include "confdefs.h"
23070 #include <unistd.h>
23071 #include <sys/time.h>
23072 #include <sys/resource.h>
23074 int main() {
23075 int f = RLIMIT_RSS ;
23076 ; return 0; }
23078 if { (eval echo configure:23079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23079 rm -rf conftest*
23080 glibcpp_mresult=1
23081 else
23082 echo "configure: failed program was:" >&5
23083 cat conftest.$ac_ext >&5
23084 rm -rf conftest*
23085 glibcpp_mresult=0
23087 rm -f conftest*
23088 cat >> confdefs.h <<EOF
23089 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23094 cat > conftest.$ac_ext <<EOF
23095 #line 23096 "configure"
23096 #include "confdefs.h"
23097 #include <unistd.h>
23098 #include <sys/time.h>
23099 #include <sys/resource.h>
23101 int main() {
23102 int f = RLIMIT_VMEM ;
23103 ; return 0; }
23105 if { (eval echo configure:23106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23106 rm -rf conftest*
23107 glibcpp_mresult=1
23108 else
23109 echo "configure: failed program was:" >&5
23110 cat conftest.$ac_ext >&5
23111 rm -rf conftest*
23112 glibcpp_mresult=0
23114 rm -f conftest*
23115 cat >> confdefs.h <<EOF
23116 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23121 cat > conftest.$ac_ext <<EOF
23122 #line 23123 "configure"
23123 #include "confdefs.h"
23124 #include <unistd.h>
23125 #include <sys/time.h>
23126 #include <sys/resource.h>
23128 int main() {
23129 int f = RLIMIT_AS ;
23130 ; return 0; }
23132 if { (eval echo configure:23133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23133 rm -rf conftest*
23134 glibcpp_mresult=1
23135 else
23136 echo "configure: failed program was:" >&5
23137 cat conftest.$ac_ext >&5
23138 rm -rf conftest*
23139 glibcpp_mresult=0
23141 rm -f conftest*
23142 cat >> confdefs.h <<EOF
23143 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23148 # Check for rlimit, setrlimit.
23149 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23150 echo $ac_n "(cached) $ac_c" 1>&6
23151 else
23153 cat > conftest.$ac_ext <<EOF
23154 #line 23155 "configure"
23155 #include "confdefs.h"
23156 #include <unistd.h>
23157 #include <sys/time.h>
23158 #include <sys/resource.h>
23160 int main() {
23161 struct rlimit r; setrlimit(0, &r);
23162 ; return 0; }
23164 if { (eval echo configure:23165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23165 rm -rf conftest*
23166 ac_setrlimit=yes
23167 else
23168 echo "configure: failed program was:" >&5
23169 cat conftest.$ac_ext >&5
23170 rm -rf conftest*
23171 ac_setrlimit=no
23173 rm -f conftest*
23179 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23180 echo "configure:23181: checking for testsuite memory limit support" >&5
23181 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23182 ac_mem_limits=yes
23183 cat >> confdefs.h <<\EOF
23184 #define _GLIBCPP_MEM_LIMITS 1
23187 else
23188 ac_mem_limits=no
23190 echo "$ac_t""$ac_mem_limits" 1>&6
23193 # Look for setenv, so that extended locale tests can be performed.
23195 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23196 echo "configure:23197: checking for setenv declaration" >&5
23197 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23198 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23199 echo $ac_n "(cached) $ac_c" 1>&6
23200 else
23203 ac_ext=C
23204 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23205 ac_cpp='$CXXCPP $CPPFLAGS'
23206 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23207 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23208 cross_compiling=$ac_cv_prog_cxx_cross
23210 cat > conftest.$ac_ext <<EOF
23211 #line 23212 "configure"
23212 #include "confdefs.h"
23213 #include <stdlib.h>
23214 int main() {
23215 setenv(0, 0, 0);
23216 ; return 0; }
23218 if { (eval echo configure:23219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23219 rm -rf conftest*
23220 glibcpp_cv_func_setenv_use=yes
23221 else
23222 echo "configure: failed program was:" >&5
23223 cat conftest.$ac_ext >&5
23224 rm -rf conftest*
23225 glibcpp_cv_func_setenv_use=no
23227 rm -f conftest*
23228 ac_ext=c
23229 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23230 ac_cpp='$CPP $CPPFLAGS'
23231 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23232 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23233 cross_compiling=$ac_cv_prog_cc_cross
23239 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23240 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23241 for ac_func in setenv
23243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23244 echo "configure:23245: checking for $ac_func" >&5
23245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23246 echo $ac_n "(cached) $ac_c" 1>&6
23247 else
23248 cat > conftest.$ac_ext <<EOF
23249 #line 23250 "configure"
23250 #include "confdefs.h"
23251 /* System header to define __stub macros and hopefully few prototypes,
23252 which can conflict with char $ac_func(); below. */
23253 #include <assert.h>
23254 /* Override any gcc2 internal prototype to avoid an error. */
23255 /* We use char because int might match the return type of a gcc2
23256 builtin and then its argument prototype would still apply. */
23257 char $ac_func();
23259 int main() {
23261 /* The GNU C library defines this for functions which it implements
23262 to always fail with ENOSYS. Some functions are actually named
23263 something starting with __ and the normal name is an alias. */
23264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23265 choke me
23266 #else
23267 $ac_func();
23268 #endif
23270 ; return 0; }
23272 if { (eval echo configure:23273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23273 rm -rf conftest*
23274 eval "ac_cv_func_$ac_func=yes"
23275 else
23276 echo "configure: failed program was:" >&5
23277 cat conftest.$ac_ext >&5
23278 rm -rf conftest*
23279 eval "ac_cv_func_$ac_func=no"
23281 rm -f conftest*
23284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23285 echo "$ac_t""yes" 1>&6
23286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23287 cat >> confdefs.h <<EOF
23288 #define $ac_tr_func 1
23291 else
23292 echo "$ac_t""no" 1>&6
23294 done
23299 # Export file names for ABI checking.
23300 baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23303 # Don't do ABI checking unless native.
23306 if test x"$build" = x"$host" && test -z "$with_cross_host"; then
23307 GLIBCPP_BUILD_ABI_CHECK_TRUE=
23308 GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23309 else
23310 GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23311 GLIBCPP_BUILD_ABI_CHECK_FALSE=
23316 # This depends on the possibly-skipped linker test above.
23317 # Check whether --enable-symvers or --disable-symvers was given.
23318 if test "${enable_symvers+set}" = set; then
23319 enableval="$enable_symvers"
23320 case "$enableval" in
23321 yes) enable_symvers=yes ;;
23322 no) enable_symvers=no ;;
23323 # other names here, just as sanity checks
23324 #gnu|sun|etcetera) enable_symvers=$enableval ;;
23325 gnu) enable_symvers=$enableval ;;
23326 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23327 esac
23328 else
23329 enable_symvers=yes
23332 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23333 # don't know enough about $LD to do tricks...
23334 if test x$enable_shared = xno ||
23335 test "x$LD" = x ||
23336 test x$glibcpp_gnu_ld_version = x; then
23337 enable_symvers=no
23340 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23341 if test $enable_symvers != no; then
23342 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23343 echo "configure:23344: checking for shared libgcc" >&5
23344 ac_save_CFLAGS="$CFLAGS"
23345 CFLAGS=' -lgcc_s'
23346 cat > conftest.$ac_ext <<EOF
23347 #line 23348 "configure"
23348 #include "confdefs.h"
23350 int main() {
23351 return 0
23352 ; return 0; }
23354 if { (eval echo configure:23355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23355 rm -rf conftest*
23356 glibcpp_shared_libgcc=yes
23357 else
23358 echo "configure: failed program was:" >&5
23359 cat conftest.$ac_ext >&5
23360 rm -rf conftest*
23361 glibcpp_shared_libgcc=no
23363 rm -f conftest*
23364 CFLAGS="$ac_save_CFLAGS"
23365 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23368 # For GNU ld, we need at least this version. It's 2.12 in the same format
23369 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
23370 glibcpp_min_gnu_ld_version=21200
23372 # Check to see if unspecified "yes" value can win, given results
23373 # above.
23374 if test $enable_symvers = yes ; then
23375 if test $with_gnu_ld = yes &&
23376 test $glibcpp_shared_libgcc = yes ;
23377 then
23378 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23379 enable_symvers=gnu
23380 else
23381 ac_test_CFLAGS="${CFLAGS+set}"
23382 ac_save_CFLAGS="$CFLAGS"
23383 CFLAGS='-shared -Wl,--version-script,conftest.map'
23384 enable_symvers=no
23386 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23388 cat > conftest.$ac_ext <<EOF
23389 #line 23390 "configure"
23390 #include "confdefs.h"
23391 int foo;
23392 int main() {
23394 ; return 0; }
23396 if { (eval echo configure:23397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23397 rm -rf conftest*
23398 enable_symvers=gnu
23399 else
23400 echo "configure: failed program was:" >&5
23401 cat conftest.$ac_ext >&5
23403 rm -f conftest*
23404 if test "$ac_test_CFLAGS" = set; then
23405 CFLAGS="$ac_save_CFLAGS"
23406 else
23407 # this is the suspicious part
23408 CFLAGS=''
23410 rm -f conftest.map
23412 else
23413 # just fail for now
23414 enable_symvers=no
23418 case $enable_symvers in
23420 LINKER_MAP=config/linker-map.dummy
23422 gnu)
23423 LINKER_MAP=config/linker-map.gnu
23424 cat >> confdefs.h <<\EOF
23425 #define _GLIBCPP_SYMVER 1
23429 esac
23434 if test $enable_symvers != no; then
23435 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23436 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23437 else
23438 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23439 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23441 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23442 echo "configure:23443: checking versioning on shared library symbols" >&5
23443 echo "$ac_t""$enable_symvers" 1>&6
23446 # Propagate the target-specific source directories through the build chain.
23447 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
23448 # uses it, and it only gets used in this file.)
23449 OS_INC_SRCDIR=config/${os_include_dir}
23450 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23454 # Set up cross-compile flags
23457 if test "$CANADIAN" = yes; then
23458 CANADIAN_TRUE=
23459 CANADIAN_FALSE='#'
23460 else
23461 CANADIAN_TRUE='#'
23462 CANADIAN_FALSE=
23465 cat > confcache <<\EOF
23466 # This file is a shell script that caches the results of configure
23467 # tests run on this system so they can be shared between configure
23468 # scripts and configure runs. It is not useful on other systems.
23469 # If it contains results you don't want to keep, you may remove or edit it.
23471 # By default, configure uses ./config.cache as the cache file,
23472 # creating it if it does not exist already. You can give configure
23473 # the --cache-file=FILE option to use a different cache file; that is
23474 # what configure does when it calls configure scripts in
23475 # subdirectories, so they share the cache.
23476 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23477 # config.status only pays attention to the cache file if you give it the
23478 # --recheck option to rerun configure.
23481 # The following way of writing the cache mishandles newlines in values,
23482 # but we know of no workaround that is simple, portable, and efficient.
23483 # So, don't put newlines in cache variables' values.
23484 # Ultrix sh set writes to stderr and can't be redirected directly,
23485 # and sets the high bit in the cache file unless we assign to the vars.
23486 (set) 2>&1 |
23487 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23488 *ac_space=\ *)
23489 # `set' does not quote correctly, so add quotes (double-quote substitution
23490 # turns \\\\ into \\, and sed turns \\ into \).
23491 sed -n \
23492 -e "s/'/'\\\\''/g" \
23493 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23496 # `set' quotes correctly as required by POSIX, so do not add quotes.
23497 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23499 esac >> confcache
23500 if cmp -s $cache_file confcache; then
23502 else
23503 if test -w $cache_file; then
23504 echo "updating cache $cache_file"
23505 cat confcache > $cache_file
23506 else
23507 echo "not updating unwritable cache $cache_file"
23510 rm -f confcache
23513 if test "${multilib}" = "yes"; then
23514 multilib_arg="--enable-multilib"
23515 else
23516 multilib_arg=
23519 # Export all the install information
23521 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23522 # exported correctly in GLIBCPP_CONFIGURE.
23523 glibcpp_toolexecdir=no
23524 glibcpp_toolexeclibdir=no
23525 glibcpp_prefixdir=${prefix}
23527 # Process the option --with-gxx-include-dir=<path to include-files directory>
23528 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23529 echo "configure:23530: checking for --with-gxx-include-dir" >&5
23530 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23531 if test "${with_gxx_include_dir+set}" = set; then
23532 withval="$with_gxx_include_dir"
23533 case "${withval}" in
23534 yes)
23535 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23536 gxx_include_dir=no
23539 gxx_include_dir=no
23542 gxx_include_dir=${withval}
23544 esac
23545 else
23546 gxx_include_dir=no
23549 echo "$ac_t""$gxx_include_dir" 1>&6
23551 # Process the option "--enable-version-specific-runtime-libs"
23552 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23553 echo "configure:23554: checking for --enable-version-specific-runtime-libs" >&5
23554 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23555 if test "${enable_version_specific_runtime_libs+set}" = set; then
23556 enableval="$enable_version_specific_runtime_libs"
23557 case "$enableval" in
23558 yes) version_specific_libs=yes ;;
23559 no) version_specific_libs=no ;;
23560 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23561 esac
23562 else
23563 version_specific_libs=no
23565 # Option set, now we can test it.
23566 echo "$ac_t""$version_specific_libs" 1>&6
23568 # Default case for install directory for include files.
23569 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23570 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23573 # Version-specific runtime libs processing.
23574 if test $version_specific_libs = yes; then
23575 # Need the gcc compiler version to know where to install libraries
23576 # and header files if --enable-version-specific-runtime-libs option
23577 # is selected.
23578 if test x"$gxx_include_dir" = x"no"; then
23579 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23581 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23582 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23585 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23586 # Install a library built with a cross compiler in tooldir, not libdir.
23587 if test x"$glibcpp_toolexecdir" = x"no"; then
23588 if test -n "$with_cross_host" &&
23589 test x"$with_cross_host" != x"no"; then
23590 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23591 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
23592 else
23593 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23594 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
23598 echo $ac_n "checking for install location""... $ac_c" 1>&6
23599 echo "configure:23600: checking for install location" >&5
23600 echo "$ac_t""$gxx_include_dir" 1>&6
23608 # Export all the include and flag information to makefiles.
23610 # Root level of the build directory include sources.
23611 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
23613 # Passed down for canadian crosses.
23614 if test x"$CANADIAN" = xyes; then
23615 TOPLEVEL_INCLUDES='-I$(includedir)'
23618 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23620 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23622 if test x"$need_libio" = xyes; then
23623 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
23627 # Now, export this to all the little Makefiles....
23634 # Optimization flags that are probably a good idea for thrill-seekers. Just
23635 # uncomment the lines below and make, everything else is ready to go...
23636 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
23637 OPTIMIZE_CXXFLAGS=
23640 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
23644 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23645 grep "enable shared" > /dev/null; then
23646 LIBSUPCXX_PICFLAGS=-prefer-pic
23647 else
23648 LIBSUPCXX_PICFLAGS=
23652 # Generate the various Makefiles, include files, and scripts.
23653 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
23654 # and libsupc++/Makefile.am so that multilib installs will end up
23655 # installed in the correct place. To work around this not being passed
23656 # down from config-ml.in -> top_srcdir/Makefile.am ->
23657 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23658 trap '' 1 2 15
23659 cat > confcache <<\EOF
23660 # This file is a shell script that caches the results of configure
23661 # tests run on this system so they can be shared between configure
23662 # scripts and configure runs. It is not useful on other systems.
23663 # If it contains results you don't want to keep, you may remove or edit it.
23665 # By default, configure uses ./config.cache as the cache file,
23666 # creating it if it does not exist already. You can give configure
23667 # the --cache-file=FILE option to use a different cache file; that is
23668 # what configure does when it calls configure scripts in
23669 # subdirectories, so they share the cache.
23670 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23671 # config.status only pays attention to the cache file if you give it the
23672 # --recheck option to rerun configure.
23675 # The following way of writing the cache mishandles newlines in values,
23676 # but we know of no workaround that is simple, portable, and efficient.
23677 # So, don't put newlines in cache variables' values.
23678 # Ultrix sh set writes to stderr and can't be redirected directly,
23679 # and sets the high bit in the cache file unless we assign to the vars.
23680 (set) 2>&1 |
23681 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23682 *ac_space=\ *)
23683 # `set' does not quote correctly, so add quotes (double-quote substitution
23684 # turns \\\\ into \\, and sed turns \\ into \).
23685 sed -n \
23686 -e "s/'/'\\\\''/g" \
23687 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23690 # `set' quotes correctly as required by POSIX, so do not add quotes.
23691 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23693 esac >> confcache
23694 if cmp -s $cache_file confcache; then
23696 else
23697 if test -w $cache_file; then
23698 echo "updating cache $cache_file"
23699 cat confcache > $cache_file
23700 else
23701 echo "not updating unwritable cache $cache_file"
23704 rm -f confcache
23706 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23708 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23709 # Let make expand exec_prefix.
23710 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23712 # Any assignment to VPATH causes Sun make to only execute
23713 # the first set of double-colon rules, so remove it if not needed.
23714 # If there is a colon in the path, we need to keep it.
23715 if test "x$srcdir" = x.; then
23716 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23719 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23721 DEFS=-DHAVE_CONFIG_H
23723 # Without the "./", some shells look in PATH for config.status.
23724 : ${CONFIG_STATUS=./config.status}
23726 echo creating $CONFIG_STATUS
23727 rm -f $CONFIG_STATUS
23728 cat > $CONFIG_STATUS <<EOF
23729 #! /bin/sh
23730 # Generated automatically by configure.
23731 # Run this file to recreate the current configuration.
23732 # This directory was configured as follows,
23733 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23735 # $0 $ac_configure_args
23737 # Compiler output produced by configure, useful for debugging
23738 # configure, is in ./config.log if it exists.
23740 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23741 for ac_option
23743 case "\$ac_option" in
23744 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23745 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23746 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23747 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23748 echo "$CONFIG_STATUS generated by autoconf version 2.13"
23749 exit 0 ;;
23750 -help | --help | --hel | --he | --h)
23751 echo "\$ac_cs_usage"; exit 0 ;;
23752 *) echo "\$ac_cs_usage"; exit 1 ;;
23753 esac
23754 done
23756 ac_given_srcdir=$srcdir
23757 ac_given_INSTALL="$INSTALL"
23759 trap 'rm -fr `echo "Makefile \
23760 include/Makefile src/Makefile \
23761 libmath/Makefile libio/Makefile libsupc++/Makefile \
23762 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23764 cat >> $CONFIG_STATUS <<EOF
23766 # Protect against being on the right side of a sed subst in config.status.
23767 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23768 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23769 $ac_vpsub
23770 $extrasub
23771 s%@SHELL@%$SHELL%g
23772 s%@CFLAGS@%$CFLAGS%g
23773 s%@CPPFLAGS@%$CPPFLAGS%g
23774 s%@CXXFLAGS@%$CXXFLAGS%g
23775 s%@FFLAGS@%$FFLAGS%g
23776 s%@DEFS@%$DEFS%g
23777 s%@LDFLAGS@%$LDFLAGS%g
23778 s%@LIBS@%$LIBS%g
23779 s%@exec_prefix@%$exec_prefix%g
23780 s%@prefix@%$prefix%g
23781 s%@program_transform_name@%$program_transform_name%g
23782 s%@bindir@%$bindir%g
23783 s%@sbindir@%$sbindir%g
23784 s%@libexecdir@%$libexecdir%g
23785 s%@datadir@%$datadir%g
23786 s%@sysconfdir@%$sysconfdir%g
23787 s%@sharedstatedir@%$sharedstatedir%g
23788 s%@localstatedir@%$localstatedir%g
23789 s%@libdir@%$libdir%g
23790 s%@includedir@%$includedir%g
23791 s%@oldincludedir@%$oldincludedir%g
23792 s%@infodir@%$infodir%g
23793 s%@mandir@%$mandir%g
23794 s%@PACKAGE@%$PACKAGE%g
23795 s%@libtool_VERSION@%$libtool_VERSION%g
23796 s%@toplevel_srcdir@%$toplevel_srcdir%g
23797 s%@host@%$host%g
23798 s%@host_alias@%$host_alias%g
23799 s%@host_cpu@%$host_cpu%g
23800 s%@host_vendor@%$host_vendor%g
23801 s%@host_os@%$host_os%g
23802 s%@target@%$target%g
23803 s%@target_alias@%$target_alias%g
23804 s%@target_cpu@%$target_cpu%g
23805 s%@target_vendor@%$target_vendor%g
23806 s%@target_os@%$target_os%g
23807 s%@build@%$build%g
23808 s%@build_alias@%$build_alias%g
23809 s%@build_cpu@%$build_cpu%g
23810 s%@build_vendor@%$build_vendor%g
23811 s%@build_os@%$build_os%g
23812 s%@glibcpp_builddir@%$glibcpp_builddir%g
23813 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
23814 s%@AWK@%$AWK%g
23815 s%@LN_S@%$LN_S%g
23816 s%@glibcpp_basedir@%$glibcpp_basedir%g
23817 s%@CC@%$CC%g
23818 s%@glibcpp_CXX@%$glibcpp_CXX%g
23819 s%@AS@%$AS%g
23820 s%@AR@%$AR%g
23821 s%@RANLIB@%$RANLIB%g
23822 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23823 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23824 s%@INSTALL_DATA@%$INSTALL_DATA%g
23825 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
23826 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
23827 s%@MAINT@%$MAINT%g
23828 s%@EXEEXT@%$EXEEXT%g
23829 s%@VERSION@%$VERSION%g
23830 s%@ACLOCAL@%$ACLOCAL%g
23831 s%@AUTOCONF@%$AUTOCONF%g
23832 s%@AUTOMAKE@%$AUTOMAKE%g
23833 s%@AUTOHEADER@%$AUTOHEADER%g
23834 s%@MAKEINFO@%$MAKEINFO%g
23835 s%@SET_MAKE@%$SET_MAKE%g
23836 s%@OBJEXT@%$OBJEXT%g
23837 s%@STRIP@%$STRIP%g
23838 s%@LIBTOOL@%$LIBTOOL%g
23839 s%@CXXCPP@%$CXXCPP%g
23840 s%@enable_shared@%$enable_shared%g
23841 s%@enable_static@%$enable_static%g
23842 s%@ifGNUmake@%$ifGNUmake%g
23843 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
23844 s%@CPP@%$CPP%g
23845 s%@CSTDIO_H@%$CSTDIO_H%g
23846 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
23847 s%@CCODECVT_C@%$CCODECVT_C%g
23848 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
23849 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
23850 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
23851 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
23852 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
23853 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
23854 s%@libio_la@%$libio_la%g
23855 s%@check_msgfmt@%$check_msgfmt%g
23856 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
23857 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
23858 s%@glibcpp_localedir@%$glibcpp_localedir%g
23859 s%@USE_NLS@%$USE_NLS%g
23860 s%@CLOCALE_H@%$CLOCALE_H%g
23861 s%@CCODECVT_H@%$CCODECVT_H%g
23862 s%@CMESSAGES_H@%$CMESSAGES_H%g
23863 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
23864 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
23865 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
23866 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
23867 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
23868 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
23869 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
23870 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
23871 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
23872 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
23873 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
23874 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
23875 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
23876 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
23877 s%@WERROR@%$WERROR%g
23878 s%@baseline_file@%$baseline_file%g
23879 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
23880 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
23881 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
23882 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
23883 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
23884 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
23885 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
23886 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
23887 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
23888 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
23889 s%@gxx_include_dir@%$gxx_include_dir%g
23890 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
23891 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
23892 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
23893 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
23894 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
23895 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
23896 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
23897 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
23898 s%@WARN_FLAGS@%$WARN_FLAGS%g
23899 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
23901 CEOF
23904 cat >> $CONFIG_STATUS <<\EOF
23906 # Split the substitutions into bite-sized pieces for seds with
23907 # small command number limits, like on Digital OSF/1 and HP-UX.
23908 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23909 ac_file=1 # Number of current file.
23910 ac_beg=1 # First line for current file.
23911 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23912 ac_more_lines=:
23913 ac_sed_cmds=""
23914 while $ac_more_lines; do
23915 if test $ac_beg -gt 1; then
23916 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23917 else
23918 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23920 if test ! -s conftest.s$ac_file; then
23921 ac_more_lines=false
23922 rm -f conftest.s$ac_file
23923 else
23924 if test -z "$ac_sed_cmds"; then
23925 ac_sed_cmds="sed -f conftest.s$ac_file"
23926 else
23927 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23929 ac_file=`expr $ac_file + 1`
23930 ac_beg=$ac_end
23931 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23933 done
23934 if test -z "$ac_sed_cmds"; then
23935 ac_sed_cmds=cat
23939 cat >> $CONFIG_STATUS <<EOF
23941 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
23942 include/Makefile src/Makefile \
23943 libmath/Makefile libio/Makefile libsupc++/Makefile \
23944 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
23946 cat >> $CONFIG_STATUS <<\EOF
23947 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23948 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23949 case "$ac_file" in
23950 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23951 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23952 *) ac_file_in="${ac_file}.in" ;;
23953 esac
23955 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23957 # Remove last slash and all that follows it. Not all systems have dirname.
23958 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23959 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23960 # The file is in a subdirectory.
23961 test ! -d "$ac_dir" && mkdir "$ac_dir"
23962 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23963 # A "../" for each directory in $ac_dir_suffix.
23964 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23965 else
23966 ac_dir_suffix= ac_dots=
23969 case "$ac_given_srcdir" in
23970 .) srcdir=.
23971 if test -z "$ac_dots"; then top_srcdir=.
23972 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23973 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23974 *) # Relative path.
23975 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23976 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23977 esac
23979 case "$ac_given_INSTALL" in
23980 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23981 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23982 esac
23984 echo creating "$ac_file"
23985 rm -f "$ac_file"
23986 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23987 case "$ac_file" in
23988 *Makefile*) ac_comsub="1i\\
23989 # $configure_input" ;;
23990 *) ac_comsub= ;;
23991 esac
23993 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23994 sed -e "$ac_comsub
23995 s%@configure_input@%$configure_input%g
23996 s%@srcdir@%$srcdir%g
23997 s%@top_srcdir@%$top_srcdir%g
23998 s%@INSTALL@%$INSTALL%g
23999 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24000 fi; done
24001 rm -f conftest.s*
24003 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24004 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24006 # ac_d sets the value in "#define NAME VALUE" lines.
24007 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24008 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24009 ac_dC='\3'
24010 ac_dD='%g'
24011 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24012 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24013 ac_uB='\([ ]\)%\1#\2define\3'
24014 ac_uC=' '
24015 ac_uD='\4%g'
24016 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24017 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24018 ac_eB='$%\1#\2define\3'
24019 ac_eC=' '
24020 ac_eD='%g'
24022 if test "${CONFIG_HEADERS+set}" != set; then
24024 cat >> $CONFIG_STATUS <<EOF
24025 CONFIG_HEADERS="config.h"
24027 cat >> $CONFIG_STATUS <<\EOF
24029 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24030 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24031 case "$ac_file" in
24032 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24033 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24034 *) ac_file_in="${ac_file}.in" ;;
24035 esac
24037 echo creating $ac_file
24039 rm -f conftest.frag conftest.in conftest.out
24040 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24041 cat $ac_file_inputs > conftest.in
24045 # Transform confdefs.h into a sed script conftest.vals that substitutes
24046 # the proper values into config.h.in to produce config.h. And first:
24047 # Protect against being on the right side of a sed subst in config.status.
24048 # Protect against being in an unquoted here document in config.status.
24049 rm -f conftest.vals
24050 cat > conftest.hdr <<\EOF
24051 s/[\\&%]/\\&/g
24052 s%[\\$`]%\\&%g
24053 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24054 s%ac_d%ac_u%gp
24055 s%ac_u%ac_e%gp
24057 sed -n -f conftest.hdr confdefs.h > conftest.vals
24058 rm -f conftest.hdr
24060 # This sed command replaces #undef with comments. This is necessary, for
24061 # example, in the case of _POSIX_SOURCE, which is predefined and required
24062 # on some systems where configure will not decide to define it.
24063 cat >> conftest.vals <<\EOF
24064 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24067 # Break up conftest.vals because some shells have a limit on
24068 # the size of here documents, and old seds have small limits too.
24070 rm -f conftest.tail
24071 while :
24073 ac_lines=`grep -c . conftest.vals`
24074 # grep -c gives empty output for an empty file on some AIX systems.
24075 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24076 # Write a limited-size here document to conftest.frag.
24077 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24078 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24079 echo 'CEOF
24080 sed -f conftest.frag conftest.in > conftest.out
24081 rm -f conftest.in
24082 mv conftest.out conftest.in
24083 ' >> $CONFIG_STATUS
24084 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24085 rm -f conftest.vals
24086 mv conftest.tail conftest.vals
24087 done
24088 rm -f conftest.vals
24090 cat >> $CONFIG_STATUS <<\EOF
24091 rm -f conftest.frag conftest.h
24092 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24093 cat conftest.in >> conftest.h
24094 rm -f conftest.in
24095 if cmp -s $ac_file conftest.h 2>/dev/null; then
24096 echo "$ac_file is unchanged"
24097 rm -f conftest.h
24098 else
24099 # Remove last slash and all that follows it. Not all systems have dirname.
24100 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24101 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24102 # The file is in a subdirectory.
24103 test ! -d "$ac_dir" && mkdir "$ac_dir"
24105 rm -f $ac_file
24106 mv conftest.h $ac_file
24108 fi; done
24112 cat >> $CONFIG_STATUS <<EOF
24113 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCODECVT_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $CLOCALE_INTERNAL_H $LINKER_MAP"
24114 ac_dests="src/basic_file.cc src/c++locale.cc src/codecvt_members.cc src/collate_members.cc src/ctype_members.cc src/messages_members.cc src/monetary_members.cc src/numeric_members.cc src/time_members.cc src/c++locale_internal.h src/linker.map"
24117 cat >> $CONFIG_STATUS <<\EOF
24118 srcdir=$ac_given_srcdir
24119 while test -n "$ac_sources"; do
24120 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
24121 set $ac_sources; ac_source=$1; shift; ac_sources=$*
24123 echo "linking $srcdir/$ac_source to $ac_dest"
24125 if test ! -r $srcdir/$ac_source; then
24126 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
24128 rm -f $ac_dest
24130 # Make relative symlinks.
24131 # Remove last slash and all that follows it. Not all systems have dirname.
24132 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
24133 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
24134 # The dest file is in a subdirectory.
24135 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
24136 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
24137 # A "../" for each directory in $ac_dest_dir_suffix.
24138 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
24139 else
24140 ac_dest_dir_suffix= ac_dots=
24143 case "$srcdir" in
24144 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
24145 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
24146 esac
24148 # Make a symlink if possible; otherwise try a hard link.
24149 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24150 ln $srcdir/$ac_source $ac_dest; then :
24151 else
24152 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
24154 done
24156 cat >> $CONFIG_STATUS <<EOF
24158 srcdir=${srcdir}
24159 host=${host}
24160 target=${target}
24161 with_multisubdir=${with_multisubdir}
24162 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24163 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24164 glibcpp_basedir=${glibcpp_basedir}
24165 CC="${CC}"
24166 CXX="${CXX}"
24169 cat >> $CONFIG_STATUS <<\EOF
24170 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24171 if test -n "$CONFIG_FILES"; then
24172 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24173 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24174 grep '^MULTISUBDIR =' Makefile >> src/Makefile
24175 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24177 chmod +x mkcheck
24178 chmod +x testsuite_flags
24180 exit 0
24182 chmod +x $CONFIG_STATUS
24183 rm -fr confdefs* $ac_clean_files
24184 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24188 # Sanity checking & User-visible messages.
24189 # Checks down here, otherwise they get scrolled off before
24190 # the user will notice.
24192 # Trying to get more people to read documentation. Possibly remove
24193 # check and warn all the time. There is no "informational" AC_MSG_
24194 # macro, so these are going to be printed even when --quiet/--silent
24195 # is given.
24196 if test ! -f stamp-sanity-warned; then
24197 touch stamp-sanity-warned
24198 echo ""
24199 echo "Please make certain that you read the installation information here:"
24200 echo " faster => ${srcdir}/docs/html/install.html"
24201 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24202 echo ""
24203 echo "and the configuration information here:"
24204 echo " faster => ${srcdir}/docs/html/configopts.html"
24205 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24206 echo ""
24207 echo "before proceeding with ${_cv_gnu_make_command}."
24208 echo ""