acinclude.m4: Add bit missing from previous patch.
[official-gcc.git] / libstdc++-v3 / configure
blob94eb02ecb0eaf424f7cd30815fe742523d4ce97f
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-cstdio enable stdio for target io package.
38 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
40 ac_help="$ac_help
41 --enable-clocale enable model for target locale package.
42 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
44 ac_help="$ac_help
45 --enable-nls use Native Language Support (default)"
46 ac_help="$ac_help
47 --enable-cheaders=MODEL construct "C" header files for g++ [default=c_std]"
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-sjlj-exceptions force use of builtin_setjmp for exceptions"
56 ac_help="$ac_help
57 --enable-libunwind-exceptions force use of libunwind for exceptions"
58 ac_help="$ac_help
59 --enable-concept-checks use Boost-derived template checks [default=no]"
60 ac_help="$ac_help
61 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
62 [default=]"
63 ac_help="$ac_help
64 --enable-debug build extra debug library [default=no]"
65 ac_help="$ac_help
66 --enable-debug-flags=FLAGS pass compiler FLAGS when building debug
67 library;[default=none]"
68 ac_help="$ac_help
69 --enable-symvers=style enables symbol versioning of the shared library [default=yes]"
70 ac_help="$ac_help
71 --with-gxx-include-dir the installation directory for include files"
72 ac_help="$ac_help
73 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
78 build=NONE
79 cache_file=./config.cache
80 exec_prefix=NONE
81 host=NONE
82 no_create=
83 nonopt=NONE
84 no_recursion=
85 prefix=NONE
86 program_prefix=NONE
87 program_suffix=NONE
88 program_transform_name=s,x,x,
89 silent=
90 site=
91 srcdir=
92 target=NONE
93 verbose=
94 x_includes=NONE
95 x_libraries=NONE
96 bindir='${exec_prefix}/bin'
97 sbindir='${exec_prefix}/sbin'
98 libexecdir='${exec_prefix}/libexec'
99 datadir='${prefix}/share'
100 sysconfdir='${prefix}/etc'
101 sharedstatedir='${prefix}/com'
102 localstatedir='${prefix}/var'
103 libdir='${exec_prefix}/lib'
104 includedir='${prefix}/include'
105 oldincludedir='/usr/include'
106 infodir='${prefix}/info'
107 mandir='${prefix}/man'
109 # Initialize some other variables.
110 subdirs=
111 MFLAGS= MAKEFLAGS=
112 SHELL=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
114 ac_max_here_lines=12
116 ac_prev=
117 for ac_option
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
123 ac_prev=
124 continue
127 case "$ac_option" in
128 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129 *) ac_optarg= ;;
130 esac
132 # Accept the important Cygnus configure options, so we can diagnose typos.
134 case "$ac_option" in
136 -bindir | --bindir | --bindi | --bind | --bin | --bi)
137 ac_prev=bindir ;;
138 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
139 bindir="$ac_optarg" ;;
141 -build | --build | --buil | --bui | --bu)
142 ac_prev=build ;;
143 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
144 build="$ac_optarg" ;;
146 -cache-file | --cache-file | --cache-fil | --cache-fi \
147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
148 ac_prev=cache_file ;;
149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
151 cache_file="$ac_optarg" ;;
153 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
154 ac_prev=datadir ;;
155 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
156 | --da=*)
157 datadir="$ac_optarg" ;;
159 -disable-* | --disable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
168 -enable-* | --enable-*)
169 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 case "$ac_option" in
176 *=*) ;;
177 *) ac_optarg=yes ;;
178 esac
179 eval "enable_${ac_feature}='$ac_optarg'" ;;
181 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
182 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
183 | --exec | --exe | --ex)
184 ac_prev=exec_prefix ;;
185 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
186 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
187 | --exec=* | --exe=* | --ex=*)
188 exec_prefix="$ac_optarg" ;;
190 -gas | --gas | --ga | --g)
191 # Obsolete; use --with-gas.
192 with_gas=yes ;;
194 -help | --help | --hel | --he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
197 cat << EOF
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
200 Configuration:
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
208 [$ac_default_prefix]
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
210 [same as prefix]
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
215 [PREFIX/share]
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
218 [PREFIX/com]
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
231 cat << EOF
232 Host type:
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
247 exit 0 ;;
249 -host | --host | --hos | --ho)
250 ac_prev=host ;;
251 -host=* | --host=* | --hos=* | --ho=*)
252 host="$ac_optarg" ;;
254 -includedir | --includedir | --includedi | --included | --include \
255 | --includ | --inclu | --incl | --inc)
256 ac_prev=includedir ;;
257 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
258 | --includ=* | --inclu=* | --incl=* | --inc=*)
259 includedir="$ac_optarg" ;;
261 -infodir | --infodir | --infodi | --infod | --info | --inf)
262 ac_prev=infodir ;;
263 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
264 infodir="$ac_optarg" ;;
266 -libdir | --libdir | --libdi | --libd)
267 ac_prev=libdir ;;
268 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 libdir="$ac_optarg" ;;
271 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
272 | --libexe | --libex | --libe)
273 ac_prev=libexecdir ;;
274 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
275 | --libexe=* | --libex=* | --libe=*)
276 libexecdir="$ac_optarg" ;;
278 -localstatedir | --localstatedir | --localstatedi | --localstated \
279 | --localstate | --localstat | --localsta | --localst \
280 | --locals | --local | --loca | --loc | --lo)
281 ac_prev=localstatedir ;;
282 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
283 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
284 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
285 localstatedir="$ac_optarg" ;;
287 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
288 ac_prev=mandir ;;
289 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 mandir="$ac_optarg" ;;
292 -nfp | --nfp | --nf)
293 # Obsolete; use --without-fp.
294 with_fp=no ;;
296 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 | --no-cr | --no-c)
298 no_create=yes ;;
300 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
301 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302 no_recursion=yes ;;
304 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
305 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
306 | --oldin | --oldi | --old | --ol | --o)
307 ac_prev=oldincludedir ;;
308 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
309 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
310 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
311 oldincludedir="$ac_optarg" ;;
313 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
314 ac_prev=prefix ;;
315 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316 prefix="$ac_optarg" ;;
318 -program-prefix | --program-prefix | --program-prefi | --program-pref \
319 | --program-pre | --program-pr | --program-p)
320 ac_prev=program_prefix ;;
321 -program-prefix=* | --program-prefix=* | --program-prefi=* \
322 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
323 program_prefix="$ac_optarg" ;;
325 -program-suffix | --program-suffix | --program-suffi | --program-suff \
326 | --program-suf | --program-su | --program-s)
327 ac_prev=program_suffix ;;
328 -program-suffix=* | --program-suffix=* | --program-suffi=* \
329 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
330 program_suffix="$ac_optarg" ;;
332 -program-transform-name | --program-transform-name \
333 | --program-transform-nam | --program-transform-na \
334 | --program-transform-n | --program-transform- \
335 | --program-transform | --program-transfor \
336 | --program-transfo | --program-transf \
337 | --program-trans | --program-tran \
338 | --progr-tra | --program-tr | --program-t)
339 ac_prev=program_transform_name ;;
340 -program-transform-name=* | --program-transform-name=* \
341 | --program-transform-nam=* | --program-transform-na=* \
342 | --program-transform-n=* | --program-transform-=* \
343 | --program-transform=* | --program-transfor=* \
344 | --program-transfo=* | --program-transf=* \
345 | --program-trans=* | --program-tran=* \
346 | --progr-tra=* | --program-tr=* | --program-t=*)
347 program_transform_name="$ac_optarg" ;;
349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
350 | -silent | --silent | --silen | --sile | --sil)
351 silent=yes ;;
353 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
354 ac_prev=sbindir ;;
355 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
356 | --sbi=* | --sb=*)
357 sbindir="$ac_optarg" ;;
359 -sharedstatedir | --sharedstatedir | --sharedstatedi \
360 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
361 | --sharedst | --shareds | --shared | --share | --shar \
362 | --sha | --sh)
363 ac_prev=sharedstatedir ;;
364 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
365 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
366 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
367 | --sha=* | --sh=*)
368 sharedstatedir="$ac_optarg" ;;
370 -site | --site | --sit)
371 ac_prev=site ;;
372 -site=* | --site=* | --sit=*)
373 site="$ac_optarg" ;;
375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
376 ac_prev=srcdir ;;
377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378 srcdir="$ac_optarg" ;;
380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
381 | --syscon | --sysco | --sysc | --sys | --sy)
382 ac_prev=sysconfdir ;;
383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
385 sysconfdir="$ac_optarg" ;;
387 -target | --target | --targe | --targ | --tar | --ta | --t)
388 ac_prev=target ;;
389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
390 target="$ac_optarg" ;;
392 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 verbose=yes ;;
395 -version | --version | --versio | --versi | --vers)
396 echo "configure generated by autoconf version 2.13"
397 exit 0 ;;
399 -with-* | --with-*)
400 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package=`echo $ac_package| sed 's/-/_/g'`
406 case "$ac_option" in
407 *=*) ;;
408 *) ac_optarg=yes ;;
409 esac
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* | --without-*)
413 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
421 --x)
422 # Obsolete; use --with-x.
423 with_x=yes ;;
425 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
426 | --x-incl | --x-inc | --x-in | --x-i)
427 ac_prev=x_includes ;;
428 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
429 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
430 x_includes="$ac_optarg" ;;
432 -x-libraries | --x-libraries | --x-librarie | --x-librari \
433 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
434 ac_prev=x_libraries ;;
435 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
436 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
437 x_libraries="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 nonopt="$ac_option"
452 esac
453 done
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
462 # 0 standard input
463 # 1 file creation
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
470 exec 6>/dev/null
471 else
472 exec 6>&1
474 exec 5>./config.log
476 echo "\
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
479 " 1>&5
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
483 ac_configure_args=
484 for ac_arg
486 case "$ac_arg" in
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c) ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
494 esac
495 done
497 # NLS nuisances.
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 echo > confdefs.h
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file=src/ios.cc
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted=yes
519 # Try the directory containing this script, then its parent.
520 ac_prog=$0
521 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
523 srcdir=$ac_confdir
524 if test ! -r $srcdir/$ac_unique_file; then
525 srcdir=..
527 else
528 ac_srcdir_defaulted=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
533 else
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE; then
542 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543 else
544 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 for ac_site_file in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
550 . "$ac_site_file"
552 done
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
556 . $cache_file
557 else
558 echo "creating cache $cache_file"
559 > $cache_file
562 ac_ext=c
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
569 ac_exeext=
570 ac_objext=o
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='
575 ' ac_t=' '
576 else
577 ac_n=-n ac_c= ac_t=
579 else
580 ac_n= ac_c='\c' ac_t=
585 # This works around the fact that libtool configuration may change LD
586 # for this particular configuration, but some shells, instead of
587 # keeping the changes in LD private, export them just because LD is
588 # exported. Only used at the end of this file.
589 ORIGINAL_LD_FOR_MULTILIBS=$LD
591 PACKAGE=libstdc++
593 # For libtool versioning info, format is CURRENT:REVISION:AGE
594 libtool_VERSION=6:0:0
598 # Check whether --enable-multilib or --disable-multilib was given.
599 if test "${enable_multilib+set}" = set; then
600 enableval="$enable_multilib"
601 case "${enableval}" in
602 yes) multilib=yes ;;
603 no) multilib=no ;;
604 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
605 esac
606 else
607 multilib=yes
610 # When building with srcdir == objdir, links to the source files will
611 # be created in directories within the target_subdir. We have to
612 # adjust toplevel_srcdir accordingly, so that configure finds
613 # install-sh and other auxiliary files that live in the top-level
614 # source directory.
615 if test "${srcdir}" = "."; then
616 if test -z "${with_target_subdir}"; then
617 toprel=".."
618 else
619 if test "${with_target_subdir}" != "."; then
620 toprel="${with_multisrctop}../.."
621 else
622 toprel="${with_multisrctop}.."
625 else
626 toprel=".."
628 ac_aux_dir=
629 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
630 if test -f $ac_dir/install-sh; then
631 ac_aux_dir=$ac_dir
632 ac_install_sh="$ac_aux_dir/install-sh -c"
633 break
634 elif test -f $ac_dir/install.sh; then
635 ac_aux_dir=$ac_dir
636 ac_install_sh="$ac_aux_dir/install.sh -c"
637 break
639 done
640 if test -z "$ac_aux_dir"; then
641 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
643 ac_config_guess=$ac_aux_dir/config.guess
644 ac_config_sub=$ac_aux_dir/config.sub
645 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
647 toplevel_srcdir=\${top_srcdir}/$toprel
651 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
653 # You will slowly go insane if you do not grok the following fact: when
654 # building v3 as part of the compiler, the top-level /target/ becomes the
655 # library's /host/. `configure' then causes --target to default to --host,
656 # exactly like any other package using autoconf. Therefore, 'target' and
657 # 'host' will always be the same. This makes sense both for native and
658 # cross compilers, just think about it for a little while. :-)
660 # Also, if v3 is being configured as part of a cross compiler, the top-level
661 # configure script will pass the "real" host as $with_cross_host.
663 # AC 2.5x sets target_alias iff the user specified --target, but we use it
664 # everywhere, so we set it here just to be sure. In AC 2.13
665 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
667 # Do some error checking and defaulting for the host and target type.
668 # The inputs are:
669 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
671 # The rules are:
672 # 1. You are not allowed to specify --host, --target, and nonopt at the
673 # same time.
674 # 2. Host defaults to nonopt.
675 # 3. If nonopt is not specified, then host defaults to the current host,
676 # as determined by config.guess.
677 # 4. Target and build default to nonopt.
678 # 5. If nonopt is not specified, then target and build default to host.
680 # The aliases save the names the user supplied, while $host etc.
681 # will get canonicalized.
682 case $host---$target---$nonopt in
683 NONE---*---* | *---NONE---* | *---*---NONE) ;;
684 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
685 esac
688 # Make sure we can run config.sub.
689 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
693 echo $ac_n "checking host system type""... $ac_c" 1>&6
694 echo "configure:695: checking host system type" >&5
696 host_alias=$host
697 case "$host_alias" in
698 NONE)
699 case $nonopt in
700 NONE)
701 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
702 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
703 fi ;;
704 *) host_alias=$nonopt ;;
705 esac ;;
706 esac
708 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
709 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
710 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
711 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo "$ac_t""$host" 1>&6
714 echo $ac_n "checking target system type""... $ac_c" 1>&6
715 echo "configure:716: checking target system type" >&5
717 target_alias=$target
718 case "$target_alias" in
719 NONE)
720 case $nonopt in
721 NONE) target_alias=$host_alias ;;
722 *) target_alias=$nonopt ;;
723 esac ;;
724 esac
726 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
727 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
728 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
729 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
730 echo "$ac_t""$target" 1>&6
732 echo $ac_n "checking build system type""... $ac_c" 1>&6
733 echo "configure:734: checking build system type" >&5
735 build_alias=$build
736 case "$build_alias" in
737 NONE)
738 case $nonopt in
739 NONE) build_alias=$host_alias ;;
740 *) build_alias=$nonopt ;;
741 esac ;;
742 esac
744 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
745 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
746 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
747 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo "$ac_t""$build" 1>&6
750 test "$host_alias" != "$target_alias" &&
751 test "$program_prefix$program_suffix$program_transform_name" = \
752 NONENONEs,x,x, &&
753 program_prefix=${target_alias}-
755 target_alias=${target_alias-$target}
758 # Runs configure.target, finds CC, CXX and assorted other critical bits.
759 # Must run this before the GLIBCPP_ENABLE_* macros below.
760 if test $host != $build; then
761 ac_tool_prefix=${host_alias}-
762 else
763 ac_tool_prefix=
766 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
767 echo "configure:768: checking for Cygwin environment" >&5
768 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
769 echo $ac_n "(cached) $ac_c" 1>&6
770 else
771 cat > conftest.$ac_ext <<EOF
772 #line 773 "configure"
773 #include "confdefs.h"
775 int main() {
777 #ifndef __CYGWIN__
778 #define __CYGWIN__ __CYGWIN32__
779 #endif
780 return __CYGWIN__;
781 ; return 0; }
783 if { (eval echo configure:784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
784 rm -rf conftest*
785 ac_cv_cygwin=yes
786 else
787 echo "configure: failed program was:" >&5
788 cat conftest.$ac_ext >&5
789 rm -rf conftest*
790 ac_cv_cygwin=no
792 rm -f conftest*
793 rm -f conftest*
796 echo "$ac_t""$ac_cv_cygwin" 1>&6
797 CYGWIN=
798 test "$ac_cv_cygwin" = yes && CYGWIN=yes
799 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
800 echo "configure:801: checking for mingw32 environment" >&5
801 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
803 else
804 cat > conftest.$ac_ext <<EOF
805 #line 806 "configure"
806 #include "confdefs.h"
808 int main() {
809 return __MINGW32__;
810 ; return 0; }
812 if { (eval echo configure:813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
813 rm -rf conftest*
814 ac_cv_mingw32=yes
815 else
816 echo "configure: failed program was:" >&5
817 cat conftest.$ac_ext >&5
818 rm -rf conftest*
819 ac_cv_mingw32=no
821 rm -f conftest*
822 rm -f conftest*
825 echo "$ac_t""$ac_cv_mingw32" 1>&6
826 MINGW32=
827 test "$ac_cv_mingw32" = yes && MINGW32=yes
829 # Export build and source directories.
830 # These need to be absolute paths, yet at the same time need to
831 # canonicalize only relative paths, because then amd will not unmount
832 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
833 glibcpp_builddir=`${PWDCMD-pwd}`
834 case $srcdir in
835 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
836 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
837 esac
843 for ac_prog in mawk gawk nawk awk
845 # Extract the first word of "$ac_prog", so it can be a program name with args.
846 set dummy $ac_prog; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
851 else
852 if test -n "$AWK"; then
853 ac_cv_prog_AWK="$AWK" # Let the user override the test.
854 else
855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
856 ac_dummy="$PATH"
857 for ac_dir in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
860 ac_cv_prog_AWK="$ac_prog"
861 break
863 done
864 IFS="$ac_save_ifs"
867 AWK="$ac_cv_prog_AWK"
868 if test -n "$AWK"; then
869 echo "$ac_t""$AWK" 1>&6
870 else
871 echo "$ac_t""no" 1>&6
874 test -n "$AWK" && break
875 done
877 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
878 # be 'cp -p' if linking isn't available. Uncomment the next line to
879 # force a particular method.
880 #ac_cv_prog_LN_S='cp -p'
881 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
882 echo "configure:883: checking whether ln -s works" >&5
883 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
885 else
886 rm -f conftestdata
887 if ln -s X conftestdata 2>/dev/null
888 then
889 rm -f conftestdata
890 ac_cv_prog_LN_S="ln -s"
891 else
892 ac_cv_prog_LN_S=ln
895 LN_S="$ac_cv_prog_LN_S"
896 if test "$ac_cv_prog_LN_S" = "ln -s"; then
897 echo "$ac_t""yes" 1>&6
898 else
899 echo "$ac_t""no" 1>&6
903 # We use these options to decide which functions to include.
904 # Check whether --with-target-subdir or --without-target-subdir was given.
905 if test "${with_target_subdir+set}" = set; then
906 withval="$with_target_subdir"
910 # Check whether --with-cross-host or --without-cross-host was given.
911 if test "${with_cross_host+set}" = set; then
912 withval="$with_cross_host"
917 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
920 # Never versions of autoconf add an underscore to these functions.
921 # Prevent future problems ...
927 # AC_PROG_CC
928 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
929 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
930 # are probably using a cross compiler, which will not be able to fully
931 # link an executable. This is addressed in later versions of autoconf.
936 # Extract the first word of "gcc", so it can be a program name with args.
937 set dummy gcc; ac_word=$2
938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
939 echo "configure:940: checking for $ac_word" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
942 else
943 if test -n "$CC"; then
944 ac_cv_prog_CC="$CC" # Let the user override the test.
945 else
946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
947 ac_dummy="$PATH"
948 for ac_dir in $ac_dummy; do
949 test -z "$ac_dir" && ac_dir=.
950 if test -f $ac_dir/$ac_word; then
951 ac_cv_prog_CC="gcc"
952 break
954 done
955 IFS="$ac_save_ifs"
958 CC="$ac_cv_prog_CC"
959 if test -n "$CC"; then
960 echo "$ac_t""$CC" 1>&6
961 else
962 echo "$ac_t""no" 1>&6
965 if test -z "$CC"; then
966 # Extract the first word of "cc", so it can be a program name with args.
967 set dummy cc; ac_word=$2
968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
969 echo "configure:970: checking for $ac_word" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
972 else
973 if test -n "$CC"; then
974 ac_cv_prog_CC="$CC" # Let the user override the test.
975 else
976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
977 ac_prog_rejected=no
978 ac_dummy="$PATH"
979 for ac_dir in $ac_dummy; do
980 test -z "$ac_dir" && ac_dir=.
981 if test -f $ac_dir/$ac_word; then
982 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
983 ac_prog_rejected=yes
984 continue
986 ac_cv_prog_CC="cc"
987 break
989 done
990 IFS="$ac_save_ifs"
991 if test $ac_prog_rejected = yes; then
992 # We found a bogon in the path, so make sure we never use it.
993 set dummy $ac_cv_prog_CC
994 shift
995 if test $# -gt 0; then
996 # We chose a different compiler from the bogus one.
997 # However, it has the same basename, so the bogon will be chosen
998 # first if we set CC to just the basename; use the full file name.
999 shift
1000 set dummy "$ac_dir/$ac_word" "$@"
1001 shift
1002 ac_cv_prog_CC="$@"
1007 CC="$ac_cv_prog_CC"
1008 if test -n "$CC"; then
1009 echo "$ac_t""$CC" 1>&6
1010 else
1011 echo "$ac_t""no" 1>&6
1014 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1017 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1018 echo "configure:1019: checking whether we are using GNU C" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022 cat > conftest.c <<EOF
1023 #ifdef __GNUC__
1024 yes;
1025 #endif
1027 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1028 ac_cv_prog_gcc=yes
1029 else
1030 ac_cv_prog_gcc=no
1034 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1036 if test $ac_cv_prog_gcc = yes; then
1037 GCC=yes
1038 ac_test_CFLAGS="${CFLAGS+set}"
1039 ac_save_CFLAGS="$CFLAGS"
1040 CFLAGS=
1041 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether ${CC-cc} accepts -g" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046 echo 'void f(){}' > conftest.c
1047 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1048 ac_cv_prog_cc_g=yes
1049 else
1050 ac_cv_prog_cc_g=no
1052 rm -f conftest*
1056 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1057 if test "$ac_test_CFLAGS" = set; then
1058 CFLAGS="$ac_save_CFLAGS"
1059 elif test $ac_cv_prog_cc_g = yes; then
1060 CFLAGS="-g -O2"
1061 else
1062 CFLAGS="-O2"
1064 else
1065 GCC=
1066 test "${CFLAGS+set}" = set || CFLAGS="-g"
1070 # Likewise for AC_PROG_CXX. We can't just call it directly because g++
1071 # will try to link in libstdc++.
1075 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1076 # flags that come in CXX while configuring libstdc++. They're different
1077 # from those used for all other target libraries. If CXX is set in
1078 # the environment, respect that here.
1079 glibcpp_CXX=$CXX
1080 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1082 # Extract the first word of "$ac_prog", so it can be a program name with args.
1083 set dummy $ac_prog; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1088 else
1089 if test -n "$glibcpp_CXX"; then
1090 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1091 else
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1093 ac_dummy="$PATH"
1094 for ac_dir in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir=.
1096 if test -f $ac_dir/$ac_word; then
1097 ac_cv_prog_glibcpp_CXX="$ac_prog"
1098 break
1100 done
1101 IFS="$ac_save_ifs"
1104 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1105 if test -n "$glibcpp_CXX"; then
1106 echo "$ac_t""$glibcpp_CXX" 1>&6
1107 else
1108 echo "$ac_t""no" 1>&6
1111 test -n "$glibcpp_CXX" && break
1112 done
1113 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1116 CXX=$glibcpp_CXX
1117 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1119 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether we are using GNU C++" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124 cat > conftest.C <<EOF
1125 #ifdef __GNUC__
1126 yes;
1127 #endif
1129 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1130 ac_cv_prog_gxx=yes
1131 else
1132 ac_cv_prog_gxx=no
1136 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1138 if test $ac_cv_prog_gxx = yes; then
1139 GXX=yes
1140 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1141 ac_save_CXXFLAGS="$CXXFLAGS"
1142 CXXFLAGS=
1143 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether ${CXX-g++} accepts -g" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148 echo 'void f(){}' > conftest.cc
1149 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1150 ac_cv_prog_cxx_g=yes
1151 else
1152 ac_cv_prog_cxx_g=no
1154 rm -f conftest*
1158 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1159 if test "$ac_test_CXXFLAGS" = set; then
1160 CXXFLAGS="$ac_save_CXXFLAGS"
1161 elif test $ac_cv_prog_cxx_g = yes; then
1162 CXXFLAGS="-g -O2"
1163 else
1164 CXXFLAGS="-O2"
1166 else
1167 GXX=
1168 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1172 # For directory versioning (e.g., headers) and other variables.
1173 echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1174 echo "configure:1175: checking for GCC version number" >&5
1175 gcc_version=`$glibcpp_CXX -dumpversion`
1176 echo "$ac_t""$gcc_version" 1>&6
1178 # For some reason, gettext needs this.
1180 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1181 echo "configure:1182: checking for strerror in -lcposix" >&5
1182 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186 ac_save_LIBS="$LIBS"
1187 LIBS="-lcposix $LIBS"
1188 cat > conftest.$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1191 /* Override any gcc2 internal prototype to avoid an error. */
1192 /* We use char because int might match the return type of a gcc2
1193 builtin and then its argument prototype would still apply. */
1194 char strerror();
1196 int main() {
1197 strerror()
1198 ; return 0; }
1200 if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1201 rm -rf conftest*
1202 eval "ac_cv_lib_$ac_lib_var=yes"
1203 else
1204 echo "configure: failed program was:" >&5
1205 cat conftest.$ac_ext >&5
1206 rm -rf conftest*
1207 eval "ac_cv_lib_$ac_lib_var=no"
1209 rm -f conftest*
1210 LIBS="$ac_save_LIBS"
1213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1214 echo "$ac_t""yes" 1>&6
1215 LIBS="$LIBS -lcposix"
1216 else
1217 echo "$ac_t""no" 1>&6
1223 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1224 set dummy ${ac_tool_prefix}as; ac_word=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1229 else
1230 if test -n "$AS"; then
1231 ac_cv_prog_AS="$AS" # Let the user override the test.
1232 else
1233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1234 ac_dummy="$PATH"
1235 for ac_dir in $ac_dummy; do
1236 test -z "$ac_dir" && ac_dir=.
1237 if test -f $ac_dir/$ac_word; then
1238 ac_cv_prog_AS="${ac_tool_prefix}as"
1239 break
1241 done
1242 IFS="$ac_save_ifs"
1243 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1246 AS="$ac_cv_prog_AS"
1247 if test -n "$AS"; then
1248 echo "$ac_t""$AS" 1>&6
1249 else
1250 echo "$ac_t""no" 1>&6
1255 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1256 set dummy ${ac_tool_prefix}ar; ac_word=$2
1257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1258 echo "configure:1259: checking for $ac_word" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1262 if test -n "$AR"; then
1263 ac_cv_prog_AR="$AR" # Let the user override the test.
1264 else
1265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1266 ac_dummy="$PATH"
1267 for ac_dir in $ac_dummy; do
1268 test -z "$ac_dir" && ac_dir=.
1269 if test -f $ac_dir/$ac_word; then
1270 ac_cv_prog_AR="${ac_tool_prefix}ar"
1271 break
1273 done
1274 IFS="$ac_save_ifs"
1275 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1278 AR="$ac_cv_prog_AR"
1279 if test -n "$AR"; then
1280 echo "$ac_t""$AR" 1>&6
1281 else
1282 echo "$ac_t""no" 1>&6
1287 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1288 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1293 else
1294 if test -n "$RANLIB"; then
1295 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1296 else
1297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1298 ac_dummy="$PATH"
1299 for ac_dir in $ac_dummy; do
1300 test -z "$ac_dir" && ac_dir=.
1301 if test -f $ac_dir/$ac_word; then
1302 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1303 break
1305 done
1306 IFS="$ac_save_ifs"
1309 RANLIB="$ac_cv_prog_RANLIB"
1310 if test -n "$RANLIB"; then
1311 echo "$ac_t""$RANLIB" 1>&6
1312 else
1313 echo "$ac_t""no" 1>&6
1317 if test -z "$ac_cv_prog_RANLIB"; then
1318 if test -n "$ac_tool_prefix"; then
1319 # Extract the first word of "ranlib", so it can be a program name with args.
1320 set dummy ranlib; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326 if test -n "$RANLIB"; then
1327 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1328 else
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1330 ac_dummy="$PATH"
1331 for ac_dir in $ac_dummy; do
1332 test -z "$ac_dir" && ac_dir=.
1333 if test -f $ac_dir/$ac_word; then
1334 ac_cv_prog_RANLIB="ranlib"
1335 break
1337 done
1338 IFS="$ac_save_ifs"
1339 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1342 RANLIB="$ac_cv_prog_RANLIB"
1343 if test -n "$RANLIB"; then
1344 echo "$ac_t""$RANLIB" 1>&6
1345 else
1346 echo "$ac_t""no" 1>&6
1349 else
1350 RANLIB="ranlib-not-found-in-path-error"
1354 # Find a good install program. We prefer a C program (faster),
1355 # so one script is as good as another. But avoid the broken or
1356 # incompatible versions:
1357 # SysV /etc/install, /usr/sbin/install
1358 # SunOS /usr/etc/install
1359 # IRIX /sbin/install
1360 # AIX /bin/install
1361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1364 # ./install, which can be erroneously created by make from ./install.sh.
1365 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1366 echo "configure:1367: checking for a BSD compatible install" >&5
1367 if test -z "$INSTALL"; then
1368 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1372 for ac_dir in $PATH; do
1373 # Account for people who put trailing slashes in PATH elements.
1374 case "$ac_dir/" in
1375 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1377 # OSF1 and SCO ODT 3.0 have their own names for install.
1378 # Don't use installbsd from OSF since it installs stuff as root
1379 # by default.
1380 for ac_prog in ginstall scoinst install; do
1381 if test -f $ac_dir/$ac_prog; then
1382 if test $ac_prog = install &&
1383 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1384 # AIX install. It has an incompatible calling convention.
1386 else
1387 ac_cv_path_install="$ac_dir/$ac_prog -c"
1388 break 2
1391 done
1393 esac
1394 done
1395 IFS="$ac_save_IFS"
1398 if test "${ac_cv_path_install+set}" = set; then
1399 INSTALL="$ac_cv_path_install"
1400 else
1401 # As a last resort, use the slow shell script. We don't cache a
1402 # path for INSTALL within a source directory, because that will
1403 # break other packages using the cache if that directory is
1404 # removed, or if the path is relative.
1405 INSTALL="$ac_install_sh"
1408 echo "$ac_t""$INSTALL" 1>&6
1410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1411 # It thinks the first close brace ends the variable substitution.
1412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1419 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether to enable maintainer-specific portions of Makefiles" >&5
1421 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1422 if test "${enable_maintainer_mode+set}" = set; then
1423 enableval="$enable_maintainer_mode"
1424 USE_MAINTAINER_MODE=$enableval
1425 else
1426 USE_MAINTAINER_MODE=no
1429 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1432 if test $USE_MAINTAINER_MODE = yes; then
1433 MAINTAINER_MODE_TRUE=
1434 MAINTAINER_MODE_FALSE='#'
1435 else
1436 MAINTAINER_MODE_TRUE='#'
1437 MAINTAINER_MODE_FALSE=
1439 MAINT=$MAINTAINER_MODE_TRUE
1443 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1444 # at least currently, we never actually build a program, so we never
1445 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1446 # fails, because we are probably configuring with a cross compiler
1447 # which can't create executables. So we include AC_EXEEXT to keep
1448 # automake happy, but we don't execute it, since we don't care about
1449 # the result.
1450 if false; then
1451 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1452 # to nothing, so nothing would remain between `then' and `fi' if it
1453 # were not for the `:' below.
1457 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1458 echo "configure:1459: checking for executable suffix" >&5
1459 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1463 ac_cv_exeext=.exe
1464 else
1465 rm -f conftest*
1466 echo 'int main () { return 0; }' > conftest.$ac_ext
1467 ac_cv_exeext=
1468 if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1469 for file in conftest.*; do
1470 case $file in
1471 *.$ac_ext | *.c | *.o | *.obj) ;;
1472 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1473 esac
1474 done
1475 else
1476 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1478 rm -f conftest*
1479 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1483 EXEEXT=""
1484 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1485 echo "$ac_t""${ac_cv_exeext}" 1>&6
1486 ac_exeext=$EXEEXT
1490 case ${glibcpp_basedir} in
1491 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1492 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1493 esac
1495 # Find platform-specific directories containing configuration info. In
1496 # addition to possibly modifying the same flags, it also sets up symlinks.
1498 . ${glibcpp_basedir}/configure.target
1499 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1500 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1504 am__api_version="1.4"
1505 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1506 echo "configure:1507: checking whether build environment is sane" >&5
1507 # Just in case
1508 sleep 1
1509 echo timestamp > conftestfile
1510 # Do `set' in a subshell so we don't clobber the current shell's
1511 # arguments. Must try -L first in case configure is actually a
1512 # symlink; some systems play weird games with the mod time of symlinks
1513 # (eg FreeBSD returns the mod time of the symlink's containing
1514 # directory).
1515 if (
1516 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1517 if test "$*" = "X"; then
1518 # -L didn't work.
1519 set X `ls -t $srcdir/configure conftestfile`
1521 if test "$*" != "X $srcdir/configure conftestfile" \
1522 && test "$*" != "X conftestfile $srcdir/configure"; then
1524 # If neither matched, then we have a broken ls. This can happen
1525 # if, for instance, CONFIG_SHELL is bash and it inherits a
1526 # broken ls alias from the environment. This has actually
1527 # happened. Such a system could not be considered "sane".
1528 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1529 alias in your environment" 1>&2; exit 1; }
1532 test "$2" = conftestfile
1534 then
1535 # Ok.
1537 else
1538 { echo "configure: error: newly created file is older than distributed files!
1539 Check your system clock" 1>&2; exit 1; }
1541 rm -f conftest*
1542 echo "$ac_t""yes" 1>&6
1543 if test "$program_transform_name" = s,x,x,; then
1544 program_transform_name=
1545 else
1546 # Double any \ or $. echo might interpret backslashes.
1547 cat <<\EOF_SED > conftestsed
1548 s,\\,\\\\,g; s,\$,$$,g
1549 EOF_SED
1550 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1551 rm -f conftestsed
1553 test "$program_prefix" != NONE &&
1554 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1555 # Use a double $ so make ignores it.
1556 test "$program_suffix" != NONE &&
1557 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1559 # sed with no file args requires a program.
1560 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1562 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1563 echo "configure:1564: checking whether ${MAKE-make} sets \${MAKE}" >&5
1564 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1565 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1567 else
1568 cat > conftestmake <<\EOF
1569 all:
1570 @echo 'ac_maketemp="${MAKE}"'
1572 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1573 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1574 if test -n "$ac_maketemp"; then
1575 eval ac_cv_prog_make_${ac_make}_set=yes
1576 else
1577 eval ac_cv_prog_make_${ac_make}_set=no
1579 rm -f conftestmake
1581 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1582 echo "$ac_t""yes" 1>&6
1583 SET_MAKE=
1584 else
1585 echo "$ac_t""no" 1>&6
1586 SET_MAKE="MAKE=${MAKE-make}"
1590 PACKAGE=$PACKAGE
1592 VERSION=$gcc_version
1594 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1595 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1597 cat >> confdefs.h <<EOF
1598 #define PACKAGE "$PACKAGE"
1601 cat >> confdefs.h <<EOF
1602 #define VERSION "$VERSION"
1607 missing_dir=`cd $ac_aux_dir && pwd`
1608 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1609 echo "configure:1610: checking for working aclocal-${am__api_version}" >&5
1610 # Run test in a subshell; some versions of sh will print an error if
1611 # an executable is not found, even if stderr is redirected.
1612 # Redirect stdin to placate older versions of autoconf. Sigh.
1613 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1614 ACLOCAL=aclocal-${am__api_version}
1615 echo "$ac_t""found" 1>&6
1616 else
1617 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1618 echo "$ac_t""missing" 1>&6
1621 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1622 echo "configure:1623: checking for working autoconf" >&5
1623 # Run test in a subshell; some versions of sh will print an error if
1624 # an executable is not found, even if stderr is redirected.
1625 # Redirect stdin to placate older versions of autoconf. Sigh.
1626 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1627 AUTOCONF=autoconf
1628 echo "$ac_t""found" 1>&6
1629 else
1630 AUTOCONF="$missing_dir/missing autoconf"
1631 echo "$ac_t""missing" 1>&6
1634 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1635 echo "configure:1636: checking for working automake-${am__api_version}" >&5
1636 # Run test in a subshell; some versions of sh will print an error if
1637 # an executable is not found, even if stderr is redirected.
1638 # Redirect stdin to placate older versions of autoconf. Sigh.
1639 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1640 AUTOMAKE=automake-${am__api_version}
1641 echo "$ac_t""found" 1>&6
1642 else
1643 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1644 echo "$ac_t""missing" 1>&6
1647 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1648 echo "configure:1649: checking for working autoheader" >&5
1649 # Run test in a subshell; some versions of sh will print an error if
1650 # an executable is not found, even if stderr is redirected.
1651 # Redirect stdin to placate older versions of autoconf. Sigh.
1652 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1653 AUTOHEADER=autoheader
1654 echo "$ac_t""found" 1>&6
1655 else
1656 AUTOHEADER="$missing_dir/missing autoheader"
1657 echo "$ac_t""missing" 1>&6
1660 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1661 echo "configure:1662: checking for working makeinfo" >&5
1662 # Run test in a subshell; some versions of sh will print an error if
1663 # an executable is not found, even if stderr is redirected.
1664 # Redirect stdin to placate older versions of autoconf. Sigh.
1665 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1666 MAKEINFO=makeinfo
1667 echo "$ac_t""found" 1>&6
1668 else
1669 MAKEINFO="$missing_dir/missing makeinfo"
1670 echo "$ac_t""missing" 1>&6
1679 # Check whether --enable-shared or --disable-shared was given.
1680 if test "${enable_shared+set}" = set; then
1681 enableval="$enable_shared"
1682 p=${PACKAGE-default}
1683 case $enableval in
1684 yes) enable_shared=yes ;;
1685 no) enable_shared=no ;;
1687 enable_shared=no
1688 # Look at the argument we got. We use all the common list separators.
1689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1690 for pkg in $enableval; do
1691 if test "X$pkg" = "X$p"; then
1692 enable_shared=yes
1694 done
1695 IFS="$ac_save_ifs"
1697 esac
1698 else
1699 enable_shared=yes
1702 # Check whether --enable-static or --disable-static was given.
1703 if test "${enable_static+set}" = set; then
1704 enableval="$enable_static"
1705 p=${PACKAGE-default}
1706 case $enableval in
1707 yes) enable_static=yes ;;
1708 no) enable_static=no ;;
1710 enable_static=no
1711 # Look at the argument we got. We use all the common list separators.
1712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1713 for pkg in $enableval; do
1714 if test "X$pkg" = "X$p"; then
1715 enable_static=yes
1717 done
1718 IFS="$ac_save_ifs"
1720 esac
1721 else
1722 enable_static=yes
1725 # Check whether --enable-fast-install or --disable-fast-install was given.
1726 if test "${enable_fast_install+set}" = set; then
1727 enableval="$enable_fast_install"
1728 p=${PACKAGE-default}
1729 case $enableval in
1730 yes) enable_fast_install=yes ;;
1731 no) enable_fast_install=no ;;
1733 enable_fast_install=no
1734 # Look at the argument we got. We use all the common list separators.
1735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1736 for pkg in $enableval; do
1737 if test "X$pkg" = "X$p"; then
1738 enable_fast_install=yes
1740 done
1741 IFS="$ac_save_ifs"
1743 esac
1744 else
1745 enable_fast_install=yes
1748 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1749 if test "${with_gnu_ld+set}" = set; then
1750 withval="$with_gnu_ld"
1751 test "$withval" = no || with_gnu_ld=yes
1752 else
1753 with_gnu_ld=no
1756 ac_prog=ld
1757 if test "$GCC" = yes; then
1758 # Check if gcc -print-prog-name=ld gives a path.
1759 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1760 echo "configure:1761: checking for ld used by GCC" >&5
1761 case $host in
1762 *-*-mingw*)
1763 # gcc leaves a trailing carriage return which upsets mingw
1764 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1766 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1767 esac
1768 case $ac_prog in
1769 # Accept absolute paths.
1770 [\\/]* | [A-Za-z]:[\\/]*)
1771 re_direlt='/[^/][^/]*/\.\./'
1772 # Canonicalize the path of ld
1773 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1774 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1775 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1776 done
1777 test -z "$LD" && LD="$ac_prog"
1780 # If it fails, then pretend we aren't using GCC.
1781 ac_prog=ld
1784 # If it is relative, then search for the first ld in PATH.
1785 with_gnu_ld=unknown
1787 esac
1788 elif test "$with_gnu_ld" = yes; then
1789 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1790 echo "configure:1791: checking for GNU ld" >&5
1791 else
1792 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1793 echo "configure:1794: checking for non-GNU ld" >&5
1795 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1797 else
1798 if test -z "$LD"; then
1799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1800 for ac_dir in $PATH; do
1801 test -z "$ac_dir" && ac_dir=.
1802 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1803 lt_cv_path_LD="$ac_dir/$ac_prog"
1804 # Check to see if the program is GNU ld. I'd rather use --version,
1805 # but apparently some GNU ld's only accept -v.
1806 # Break only if it was the GNU/non-GNU ld that we prefer.
1807 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1808 test "$with_gnu_ld" != no && break
1809 else
1810 test "$with_gnu_ld" != yes && break
1813 done
1814 IFS="$ac_save_ifs"
1815 else
1816 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1820 LD="$lt_cv_path_LD"
1821 if test -n "$LD"; then
1822 echo "$ac_t""$LD" 1>&6
1823 else
1824 echo "$ac_t""no" 1>&6
1826 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1827 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1828 echo "configure:1829: checking if the linker ($LD) is GNU ld" >&5
1829 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1833 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1834 lt_cv_prog_gnu_ld=yes
1835 else
1836 lt_cv_prog_gnu_ld=no
1840 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1841 with_gnu_ld=$lt_cv_prog_gnu_ld
1844 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $LD option to reload object files" >&5
1846 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1848 else
1849 lt_cv_ld_reload_flag='-r'
1852 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1853 reload_flag=$lt_cv_ld_reload_flag
1854 test -n "$reload_flag" && reload_flag=" $reload_flag"
1856 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1857 echo "configure:1858: checking for BSD-compatible nm" >&5
1858 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1860 else
1861 if test -n "$NM"; then
1862 # Let the user override the test.
1863 lt_cv_path_NM="$NM"
1864 else
1865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1866 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1867 test -z "$ac_dir" && ac_dir=.
1868 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1869 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1870 # Check to see if the nm accepts a BSD-compat flag.
1871 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1872 # nm: unknown option "B" ignored
1873 # Tru64's nm complains that /dev/null is an invalid object file
1874 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1875 lt_cv_path_NM="$tmp_nm -B"
1876 break
1877 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1878 lt_cv_path_NM="$tmp_nm -p"
1879 break
1880 else
1881 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1882 continue # so that we can try to find one that supports BSD flags
1885 done
1886 IFS="$ac_save_ifs"
1887 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1891 NM="$lt_cv_path_NM"
1892 echo "$ac_t""$NM" 1>&6
1894 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1895 echo "configure:1896: checking how to recognise dependant libraries" >&5
1896 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1898 else
1899 lt_cv_file_magic_cmd='$MAGIC_CMD'
1900 lt_cv_file_magic_test_file=
1901 lt_cv_deplibs_check_method='unknown'
1902 # Need to set the preceding variable on all platforms that support
1903 # interlibrary dependencies.
1904 # 'none' -- dependencies not supported.
1905 # `unknown' -- same as none, but documents that we really don't know.
1906 # 'pass_all' -- all dependencies passed with no checks.
1907 # 'test_compile' -- check by making test program.
1908 # 'file_magic [regex]' -- check by looking for files in library path
1909 # which responds to the $file_magic_cmd with a given egrep regex.
1910 # If you have `file' or equivalent on your system and you're not sure
1911 # whether `pass_all' will *always* work, you probably want this one.
1913 case $host_os in
1914 aix*)
1915 lt_cv_deplibs_check_method=pass_all
1918 beos*)
1919 lt_cv_deplibs_check_method=pass_all
1922 bsdi4*)
1923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1924 lt_cv_file_magic_cmd='/usr/bin/file -L'
1925 lt_cv_file_magic_test_file=/shlib/libc.so
1928 cygwin* | mingw* |pw32*)
1929 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1930 lt_cv_file_magic_cmd='$OBJDUMP -f'
1933 darwin* | rhapsody*)
1934 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1935 lt_cv_file_magic_cmd='/usr/bin/file -L'
1936 case "$host_os" in
1937 rhapsody* | darwin1.012)
1938 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1940 *) # Darwin 1.3 on
1941 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1943 esac
1946 freebsd* )
1947 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1948 case $host_cpu in
1949 i*86 )
1950 # Not sure whether the presence of OpenBSD here was a mistake.
1951 # Let's accept both of them until this is cleared up.
1952 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1953 lt_cv_file_magic_cmd=/usr/bin/file
1954 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1956 esac
1957 else
1958 lt_cv_deplibs_check_method=pass_all
1962 gnu*)
1963 lt_cv_deplibs_check_method=pass_all
1966 hpux10.20*|hpux11*)
1967 case $host_cpu in
1968 hppa*)
1969 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1970 lt_cv_file_magic_cmd=/usr/bin/file
1971 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1973 ia64*)
1974 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1975 lt_cv_file_magic_cmd=/usr/bin/file
1976 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1978 esac
1981 irix5* | irix6*)
1982 case $host_os in
1983 irix5*)
1984 # this will be overridden with pass_all, but let us keep it just in case
1985 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1988 case $LD in
1989 *-32|*"-32 ") libmagic=32-bit;;
1990 *-n32|*"-n32 ") libmagic=N32;;
1991 *-64|*"-64 ") libmagic=64-bit;;
1992 *) libmagic=never-match;;
1993 esac
1994 # this will be overridden with pass_all, but let us keep it just in case
1995 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1997 esac
1998 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1999 lt_cv_deplibs_check_method=pass_all
2002 # This must be Linux ELF.
2003 linux-gnu*)
2004 case $host_cpu in
2005 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2006 lt_cv_deplibs_check_method=pass_all ;;
2008 # glibc up to 2.1.1 does not perform some relocations on ARM
2009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2010 esac
2011 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2014 netbsd*)
2015 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2016 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2017 else
2018 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2022 newsos6)
2023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2024 lt_cv_file_magic_cmd=/usr/bin/file
2025 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2028 osf3* | osf4* | osf5*)
2029 # this will be overridden with pass_all, but let us keep it just in case
2030 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2031 lt_cv_file_magic_test_file=/shlib/libc.so
2032 lt_cv_deplibs_check_method=pass_all
2035 sco3.2v5*)
2036 lt_cv_deplibs_check_method=pass_all
2039 solaris*)
2040 lt_cv_deplibs_check_method=pass_all
2041 lt_cv_file_magic_test_file=/lib/libc.so
2044 sysv5uw[78]* | sysv4*uw2*)
2045 lt_cv_deplibs_check_method=pass_all
2048 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2049 case $host_vendor in
2050 ncr)
2051 lt_cv_deplibs_check_method=pass_all
2053 motorola)
2054 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]'
2055 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2057 esac
2059 esac
2063 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2064 file_magic_cmd=$lt_cv_file_magic_cmd
2065 deplibs_check_method=$lt_cv_deplibs_check_method
2067 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2068 echo "configure:2069: checking for object suffix" >&5
2069 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2071 else
2072 rm -f conftest*
2073 echo 'int i = 1;' > conftest.$ac_ext
2074 if { (eval echo configure:2075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2075 for ac_file in conftest.*; do
2076 case $ac_file in
2077 *.c) ;;
2078 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2079 esac
2080 done
2081 else
2082 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2084 rm -f conftest*
2087 echo "$ac_t""$ac_cv_objext" 1>&6
2088 OBJEXT=$ac_cv_objext
2089 ac_objext=$ac_cv_objext
2091 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2093 # Only perform the check for file, if the check method requires it
2094 case $deplibs_check_method in
2095 file_magic*)
2096 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2097 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2098 echo "configure:2099: checking for ${ac_tool_prefix}file" >&5
2099 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2100 echo $ac_n "(cached) $ac_c" 1>&6
2101 else
2102 case $MAGIC_CMD in
2104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2106 ?:/*)
2107 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2110 ac_save_MAGIC_CMD="$MAGIC_CMD"
2111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2112 ac_dummy="/usr/bin:$PATH"
2113 for ac_dir in $ac_dummy; do
2114 test -z "$ac_dir" && ac_dir=.
2115 if test -f $ac_dir/${ac_tool_prefix}file; then
2116 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2117 if test -n "$file_magic_test_file"; then
2118 case $deplibs_check_method in
2119 "file_magic "*)
2120 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2122 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2123 egrep "$file_magic_regex" > /dev/null; then
2125 else
2126 cat <<EOF 1>&2
2128 *** Warning: the command libtool uses to detect shared libraries,
2129 *** $file_magic_cmd, produces output that libtool cannot recognize.
2130 *** The result is that libtool may fail to recognize shared libraries
2131 *** as such. This will affect the creation of libtool libraries that
2132 *** depend on shared libraries, but programs linked with such libtool
2133 *** libraries will work regardless of this problem. Nevertheless, you
2134 *** may want to report the problem to your system manager and/or to
2135 *** bug-libtool@gnu.org
2138 fi ;;
2139 esac
2141 break
2143 done
2144 IFS="$ac_save_ifs"
2145 MAGIC_CMD="$ac_save_MAGIC_CMD"
2147 esac
2150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2151 if test -n "$MAGIC_CMD"; then
2152 echo "$ac_t""$MAGIC_CMD" 1>&6
2153 else
2154 echo "$ac_t""no" 1>&6
2157 if test -z "$lt_cv_path_MAGIC_CMD"; then
2158 if test -n "$ac_tool_prefix"; then
2159 echo $ac_n "checking for file""... $ac_c" 1>&6
2160 echo "configure:2161: checking for file" >&5
2161 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2163 else
2164 case $MAGIC_CMD in
2166 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2168 ?:/*)
2169 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2172 ac_save_MAGIC_CMD="$MAGIC_CMD"
2173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2174 ac_dummy="/usr/bin:$PATH"
2175 for ac_dir in $ac_dummy; do
2176 test -z "$ac_dir" && ac_dir=.
2177 if test -f $ac_dir/file; then
2178 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2179 if test -n "$file_magic_test_file"; then
2180 case $deplibs_check_method in
2181 "file_magic "*)
2182 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2183 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2184 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2185 egrep "$file_magic_regex" > /dev/null; then
2187 else
2188 cat <<EOF 1>&2
2190 *** Warning: the command libtool uses to detect shared libraries,
2191 *** $file_magic_cmd, produces output that libtool cannot recognize.
2192 *** The result is that libtool may fail to recognize shared libraries
2193 *** as such. This will affect the creation of libtool libraries that
2194 *** depend on shared libraries, but programs linked with such libtool
2195 *** libraries will work regardless of this problem. Nevertheless, you
2196 *** may want to report the problem to your system manager and/or to
2197 *** bug-libtool@gnu.org
2200 fi ;;
2201 esac
2203 break
2205 done
2206 IFS="$ac_save_ifs"
2207 MAGIC_CMD="$ac_save_MAGIC_CMD"
2209 esac
2212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2213 if test -n "$MAGIC_CMD"; then
2214 echo "$ac_t""$MAGIC_CMD" 1>&6
2215 else
2216 echo "$ac_t""no" 1>&6
2219 else
2220 MAGIC_CMD=:
2226 esac
2228 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2229 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2231 echo "configure:2232: checking for $ac_word" >&5
2232 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2234 else
2235 if test -n "$RANLIB"; then
2236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2237 else
2238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2239 ac_dummy="$PATH"
2240 for ac_dir in $ac_dummy; do
2241 test -z "$ac_dir" && ac_dir=.
2242 if test -f $ac_dir/$ac_word; then
2243 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2244 break
2246 done
2247 IFS="$ac_save_ifs"
2250 RANLIB="$ac_cv_prog_RANLIB"
2251 if test -n "$RANLIB"; then
2252 echo "$ac_t""$RANLIB" 1>&6
2253 else
2254 echo "$ac_t""no" 1>&6
2258 if test -z "$ac_cv_prog_RANLIB"; then
2259 if test -n "$ac_tool_prefix"; then
2260 # Extract the first word of "ranlib", so it can be a program name with args.
2261 set dummy ranlib; ac_word=$2
2262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_word" >&5
2264 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2266 else
2267 if test -n "$RANLIB"; then
2268 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2269 else
2270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2271 ac_dummy="$PATH"
2272 for ac_dir in $ac_dummy; do
2273 test -z "$ac_dir" && ac_dir=.
2274 if test -f $ac_dir/$ac_word; then
2275 ac_cv_prog_RANLIB="ranlib"
2276 break
2278 done
2279 IFS="$ac_save_ifs"
2280 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2283 RANLIB="$ac_cv_prog_RANLIB"
2284 if test -n "$RANLIB"; then
2285 echo "$ac_t""$RANLIB" 1>&6
2286 else
2287 echo "$ac_t""no" 1>&6
2290 else
2291 RANLIB=":"
2295 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2296 set dummy ${ac_tool_prefix}strip; ac_word=$2
2297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2298 echo "configure:2299: checking for $ac_word" >&5
2299 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2301 else
2302 if test -n "$STRIP"; then
2303 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2304 else
2305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2306 ac_dummy="$PATH"
2307 for ac_dir in $ac_dummy; do
2308 test -z "$ac_dir" && ac_dir=.
2309 if test -f $ac_dir/$ac_word; then
2310 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2311 break
2313 done
2314 IFS="$ac_save_ifs"
2317 STRIP="$ac_cv_prog_STRIP"
2318 if test -n "$STRIP"; then
2319 echo "$ac_t""$STRIP" 1>&6
2320 else
2321 echo "$ac_t""no" 1>&6
2325 if test -z "$ac_cv_prog_STRIP"; then
2326 if test -n "$ac_tool_prefix"; then
2327 # Extract the first word of "strip", so it can be a program name with args.
2328 set dummy strip; ac_word=$2
2329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_word" >&5
2331 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2333 else
2334 if test -n "$STRIP"; then
2335 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2336 else
2337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2338 ac_dummy="$PATH"
2339 for ac_dir in $ac_dummy; do
2340 test -z "$ac_dir" && ac_dir=.
2341 if test -f $ac_dir/$ac_word; then
2342 ac_cv_prog_STRIP="strip"
2343 break
2345 done
2346 IFS="$ac_save_ifs"
2347 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2350 STRIP="$ac_cv_prog_STRIP"
2351 if test -n "$STRIP"; then
2352 echo "$ac_t""$STRIP" 1>&6
2353 else
2354 echo "$ac_t""no" 1>&6
2357 else
2358 STRIP=":"
2363 # Check for any special flags to pass to ltconfig.
2364 libtool_flags="--cache-file=$cache_file"
2365 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2366 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2367 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2368 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2369 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2370 libtool_flags="$libtool_flags --enable-dlopen"
2372 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2373 if test "${enable_libtool_lock+set}" = set; then
2374 enableval="$enable_libtool_lock"
2378 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2379 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2381 # Check whether --with-pic or --without-pic was given.
2382 if test "${with_pic+set}" = set; then
2383 withval="$with_pic"
2384 pic_mode="$withval"
2385 else
2386 pic_mode=default
2389 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2390 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2392 # Some flags need to be propagated to the compiler or linker for good
2393 # libtool support.
2394 case $host in
2395 *-*-irix6*)
2396 # Find out which ABI we are using.
2397 echo '#line 2398 "configure"' > conftest.$ac_ext
2398 if { (eval echo configure:2399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2399 if test "$lt_cv_prog_gnu_ld" = yes; then
2400 case `/usr/bin/file conftest.$ac_objext` in
2401 *32-bit*)
2402 LD="${LD-ld} -melf32bsmip"
2404 *N32*)
2405 LD="${LD-ld} -melf32bmipn32"
2407 *64-bit*)
2408 LD="${LD-ld} -melf64bmip"
2410 esac
2411 else
2412 case `/usr/bin/file conftest.$ac_objext` in
2413 *32-bit*)
2414 LD="${LD-ld} -32"
2416 *N32*)
2417 LD="${LD-ld} -n32"
2419 *64-bit*)
2420 LD="${LD-ld} -64"
2422 esac
2425 rm -rf conftest*
2428 ia64-*-hpux*)
2429 # Find out which ABI we are using.
2430 echo 'int i;' > conftest.$ac_ext
2431 if { (eval echo configure:2432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2432 case "`/usr/bin/file conftest.o`" in
2433 *ELF-32*)
2434 HPUX_IA64_MODE="32"
2436 *ELF-64*)
2437 HPUX_IA64_MODE="64"
2439 esac
2441 rm -rf conftest*
2444 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2445 # Find out which ABI we are using.
2446 echo 'int i;' > conftest.$ac_ext
2447 if { (eval echo configure:2448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2448 case "`/usr/bin/file conftest.o`" in
2449 *32-bit*)
2450 case $host in
2451 x86_64-*linux*)
2452 LD="${LD-ld} -m elf_i386"
2454 ppc64-*linux*)
2455 LD="${LD-ld} -m elf32ppclinux"
2457 s390x-*linux*)
2458 LD="${LD-ld} -m elf_s390"
2460 sparc64-*linux*)
2461 LD="${LD-ld} -m elf32_sparc"
2463 esac
2465 *64-bit*)
2466 case $host in
2467 x86_64-*linux*)
2468 LD="${LD-ld} -m elf_x86_64"
2470 ppc*-*linux*|powerpc*-*linux*)
2471 LD="${LD-ld} -m elf64ppc"
2473 s390*-*linux*)
2474 LD="${LD-ld} -m elf64_s390"
2476 sparc*-*linux*)
2477 LD="${LD-ld} -m elf64_sparc"
2479 esac
2481 esac
2483 rm -rf conftest*
2486 *-*-sco3.2v5*)
2487 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2488 SAVE_CFLAGS="$CFLAGS"
2489 CFLAGS="$CFLAGS -belf"
2490 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2491 echo "configure:2492: checking whether the C compiler needs -belf" >&5
2492 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2494 else
2496 ac_ext=c
2497 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2500 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2501 cross_compiling=$ac_cv_prog_cc_cross
2503 cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2507 int main() {
2509 ; return 0; }
2511 if { (eval echo configure:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2512 rm -rf conftest*
2513 lt_cv_cc_needs_belf=yes
2514 else
2515 echo "configure: failed program was:" >&5
2516 cat conftest.$ac_ext >&5
2517 rm -rf conftest*
2518 lt_cv_cc_needs_belf=no
2520 rm -f conftest*
2521 ac_ext=c
2522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2523 ac_cpp='$CPP $CPPFLAGS'
2524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2526 cross_compiling=$ac_cv_prog_cc_cross
2530 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2531 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2532 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2533 CFLAGS="$SAVE_CFLAGS"
2538 esac
2540 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2541 echo "configure:2542: checking how to run the C++ preprocessor" >&5
2542 if test -z "$CXXCPP"; then
2543 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2545 else
2546 ac_ext=C
2547 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2548 ac_cpp='$CXXCPP $CPPFLAGS'
2549 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2550 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2551 cross_compiling=$ac_cv_prog_cxx_cross
2552 CXXCPP="${CXX-g++} -E"
2553 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2556 #include <stdlib.h>
2558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2559 { (eval echo configure:2560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2561 if test -z "$ac_err"; then
2563 else
2564 echo "$ac_err" >&5
2565 echo "configure: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2567 rm -rf conftest*
2568 CXXCPP=/lib/cpp
2570 rm -f conftest*
2571 ac_cv_prog_CXXCPP="$CXXCPP"
2572 ac_ext=c
2573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2574 ac_cpp='$CPP $CPPFLAGS'
2575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2577 cross_compiling=$ac_cv_prog_cc_cross
2580 CXXCPP="$ac_cv_prog_CXXCPP"
2581 echo "$ac_t""$CXXCPP" 1>&6
2584 # Save cache, so that ltconfig can load it
2585 cat > confcache <<\EOF
2586 # This file is a shell script that caches the results of configure
2587 # tests run on this system so they can be shared between configure
2588 # scripts and configure runs. It is not useful on other systems.
2589 # If it contains results you don't want to keep, you may remove or edit it.
2591 # By default, configure uses ./config.cache as the cache file,
2592 # creating it if it does not exist already. You can give configure
2593 # the --cache-file=FILE option to use a different cache file; that is
2594 # what configure does when it calls configure scripts in
2595 # subdirectories, so they share the cache.
2596 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2597 # config.status only pays attention to the cache file if you give it the
2598 # --recheck option to rerun configure.
2601 # The following way of writing the cache mishandles newlines in values,
2602 # but we know of no workaround that is simple, portable, and efficient.
2603 # So, don't put newlines in cache variables' values.
2604 # Ultrix sh set writes to stderr and can't be redirected directly,
2605 # and sets the high bit in the cache file unless we assign to the vars.
2606 (set) 2>&1 |
2607 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2608 *ac_space=\ *)
2609 # `set' does not quote correctly, so add quotes (double-quote substitution
2610 # turns \\\\ into \\, and sed turns \\ into \).
2611 sed -n \
2612 -e "s/'/'\\\\''/g" \
2613 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2616 # `set' quotes correctly as required by POSIX, so do not add quotes.
2617 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2619 esac >> confcache
2620 if cmp -s $cache_file confcache; then
2622 else
2623 if test -w $cache_file; then
2624 echo "updating cache $cache_file"
2625 cat confcache > $cache_file
2626 else
2627 echo "not updating unwritable cache $cache_file"
2630 rm -f confcache
2633 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2634 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2635 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2636 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2637 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2638 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2639 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2640 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2641 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2642 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2644 # Reload cache, that may have been modified by ltconfig
2645 if test -r "$cache_file"; then
2646 echo "loading cache $cache_file"
2647 . $cache_file
2648 else
2649 echo "creating cache $cache_file"
2650 > $cache_file
2654 # This can be used to rebuild libtool when needed
2655 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2657 # Always use our own libtool.
2658 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2660 # Redirect the config.log output again, so that the ltconfig log is not
2661 # clobbered by the next message.
2662 exec 5>>./config.log
2666 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2667 lt_save_CC="$CC"
2668 lt_save_CFLAGS="$CFLAGS"
2669 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2670 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2671 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2672 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2673 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2674 deplibs_check_method="$deplibs_check_method" \
2675 file_magic_cmd="$file_magic_cmd" \
2676 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2677 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2678 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2679 CC="$lt_save_CC"
2680 CFLAGS="$lt_save_CFLAGS"
2682 # Redirect the config.log output again, so that the ltconfig log is not
2683 # clobbered by the next message.
2684 exec 5>>./config.log
2694 # Check for c++ or library specific bits that don't require linking.
2695 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2696 echo "configure:2697: checking for GNU make" >&5
2697 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2699 else
2700 _cv_gnu_make_command='' ;
2701 for a in "${MAKE-make}" make gmake gnumake ; do
2702 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2703 then
2704 _cv_gnu_make_command=$a ;
2705 break;
2707 done ;
2711 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2712 if test "x$_cv_gnu_make_command" != "x" ; then
2713 ifGNUmake='' ;
2714 else
2715 ifGNUmake='#' ;
2719 #GLIBCPP_CHECK_COMPILER_VERSION
2721 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2722 ac_save_CXXFLAGS="$CXXFLAGS"
2723 CXXFLAGS='-Werror -Winvalid-pch -Wno-deprecated -x c++-header'
2725 echo $ac_n "checking for compiler that seems to compile .gch files""... $ac_c" 1>&6
2726 echo "configure:2727: checking for compiler that seems to compile .gch files" >&5
2727 if test x${glibcpp_pch_comp+set} != xset; then
2728 if eval "test \"`echo '$''{'glibcpp_pch_comp'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2730 else
2733 ac_ext=C
2734 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2735 ac_cpp='$CXXCPP $CPPFLAGS'
2736 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2737 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2738 cross_compiling=$ac_cv_prog_cxx_cross
2740 cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2743 #include <math.h>
2745 int main() {
2746 (0);
2747 ; return 0; }
2749 if { (eval echo configure:2750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2750 rm -rf conftest*
2751 glibcpp_pch_comp=yes
2752 else
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 rm -rf conftest*
2756 glibcpp_pch_comp=no
2758 rm -f conftest*
2759 ac_ext=c
2760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2763 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2764 cross_compiling=$ac_cv_prog_cc_cross
2770 echo "$ac_t""$glibcpp_pch_comp" 1>&6
2772 CXXFLAGS="$ac_save_CXXFLAGS"
2775 if test "$glibcpp_pch_comp" = yes; then
2776 GLIBCPP_BUILD_PCH_TRUE=
2777 GLIBCPP_BUILD_PCH_FALSE='#'
2778 else
2779 GLIBCPP_BUILD_PCH_TRUE='#'
2780 GLIBCPP_BUILD_PCH_FALSE=
2784 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2785 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2786 echo "configure:2787: checking how to run the C preprocessor" >&5
2787 # On Suns, sometimes $CPP names a directory.
2788 if test -n "$CPP" && test -d "$CPP"; then
2789 CPP=
2791 if test -z "$CPP"; then
2792 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2794 else
2795 # This must be in double quotes, not single quotes, because CPP may get
2796 # substituted into the Makefile and "${CC-cc}" will confuse make.
2797 CPP="${CC-cc} -E"
2798 # On the NeXT, cc -E runs the code through the compiler's parser,
2799 # not just through cpp.
2800 cat > conftest.$ac_ext <<EOF
2801 #line 2802 "configure"
2802 #include "confdefs.h"
2803 #include <assert.h>
2804 Syntax Error
2806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2807 { (eval echo configure:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2809 if test -z "$ac_err"; then
2811 else
2812 echo "$ac_err" >&5
2813 echo "configure: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2815 rm -rf conftest*
2816 CPP="${CC-cc} -E -traditional-cpp"
2817 cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2820 #include <assert.h>
2821 Syntax Error
2823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2824 { (eval echo configure:2825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2826 if test -z "$ac_err"; then
2828 else
2829 echo "$ac_err" >&5
2830 echo "configure: failed program was:" >&5
2831 cat conftest.$ac_ext >&5
2832 rm -rf conftest*
2833 CPP="${CC-cc} -nologo -E"
2834 cat > conftest.$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2837 #include <assert.h>
2838 Syntax Error
2840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2841 { (eval echo configure:2842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2843 if test -z "$ac_err"; then
2845 else
2846 echo "$ac_err" >&5
2847 echo "configure: failed program was:" >&5
2848 cat conftest.$ac_ext >&5
2849 rm -rf conftest*
2850 CPP=/lib/cpp
2852 rm -f conftest*
2854 rm -f conftest*
2856 rm -f conftest*
2857 ac_cv_prog_CPP="$CPP"
2859 CPP="$ac_cv_prog_CPP"
2860 else
2861 ac_cv_prog_CPP="$CPP"
2863 echo "$ac_t""$CPP" 1>&6
2866 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2867 echo "configure:2868: checking for cstdio to use" >&5
2868 # Check whether --enable-cstdio or --disable-cstdio was given.
2869 if test "${enable_cstdio+set}" = set; then
2870 enableval="$enable_cstdio"
2871 if test x$enable_cstdio = xno; then
2872 enable_cstdio=stdio
2874 else
2875 enable_cstdio=stdio
2879 enable_cstdio_flag=$enable_cstdio
2881 case x${enable_cstdio_flag} in
2882 xlibio)
2883 CSTDIO_H=config/io/c_io_libio.h
2884 BASIC_FILE_H=config/io/basic_file_libio.h
2885 BASIC_FILE_CC=config/io/basic_file_libio.cc
2886 echo "$ac_t""libio" 1>&6
2888 # see if we are on a system with libio native (ie, linux)
2889 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2890 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2891 echo "configure:2892: checking for libio.h" >&5
2892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2894 else
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2898 #include <libio.h>
2900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2901 { (eval echo configure:2902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2903 if test -z "$ac_err"; then
2904 rm -rf conftest*
2905 eval "ac_cv_header_$ac_safe=yes"
2906 else
2907 echo "$ac_err" >&5
2908 echo "configure: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2910 rm -rf conftest*
2911 eval "ac_cv_header_$ac_safe=no"
2913 rm -f conftest*
2915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2916 echo "$ac_t""yes" 1>&6
2917 has_libio=yes
2918 else
2919 echo "$ac_t""no" 1>&6
2920 has_libio=no
2924 # Need to check and see what version of glibc is being used. If
2925 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2926 # compile most of libio for linux systems.
2927 if test x$has_libio = x"yes"; then
2928 case "$target" in
2929 *-*-linux*)
2930 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2931 echo "configure:2932: checking for glibc version >= 2.2" >&5
2932 cat > conftest.$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2936 #include <features.h>
2937 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2939 #endif
2942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2943 egrep "ok" >/dev/null 2>&1; then
2944 rm -rf conftest*
2945 glibc_satisfactory=yes
2946 else
2947 rm -rf conftest*
2948 glibc_satisfactory=no
2950 rm -f conftest*
2952 echo "$ac_t""$glibc_satisfactory" 1>&6
2954 esac
2956 # XXX at the moment, admit defeat and force the recompilation
2957 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2958 glibc_satisfactory=no
2960 if test x$glibc_satisfactory = x"yes"; then
2961 need_libio=no
2962 need_wlibio=no
2963 else
2964 need_libio=yes
2965 # bkoz XXX need to add checks to enable this
2966 # pme XXX here's a first pass at such a check
2967 if test x$enable_c_mbchar != xno; then
2968 need_wlibio=yes
2969 else
2970 need_wlibio=no
2974 else
2975 # Using libio, but <libio.h> doesn't exist on the target system. . .
2976 need_libio=yes
2977 # bkoz XXX need to add checks to enable this
2978 # pme XXX here's a first pass at such a check
2979 if test x$enable_c_mbchar != xno; then
2980 need_wlibio=yes
2981 else
2982 need_wlibio=no
2986 xstdio | x | xno | xnone | xyes)
2987 # default
2988 CSTDIO_H=config/io/c_io_stdio.h
2989 BASIC_FILE_H=config/io/basic_file_stdio.h
2990 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2991 echo "$ac_t""stdio" 1>&6
2993 # We're not using stdio.
2994 need_libio=no
2995 need_wlibio=no
2998 echo "$enable_cstdio is an unknown io package" 1>&2
2999 exit 1
3001 esac
3006 # 2000-08-04 bkoz hack
3007 CCODECVT_C=config/io/c_io_libio_codecvt.c
3009 # 2000-08-04 bkoz hack
3013 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3014 GLIBCPP_BUILD_LIBIO_TRUE=
3015 GLIBCPP_BUILD_LIBIO_FALSE='#'
3016 else
3017 GLIBCPP_BUILD_LIBIO_TRUE='#'
3018 GLIBCPP_BUILD_LIBIO_FALSE=
3022 if test "$need_libio" = yes; then
3023 GLIBCPP_NEED_LIBIO_TRUE=
3024 GLIBCPP_NEED_LIBIO_FALSE='#'
3025 else
3026 GLIBCPP_NEED_LIBIO_TRUE='#'
3027 GLIBCPP_NEED_LIBIO_FALSE=
3031 if test "$need_wlibio" = yes; then
3032 GLIBCPP_NEED_WLIBIO_TRUE=
3033 GLIBCPP_NEED_WLIBIO_FALSE='#'
3034 else
3035 GLIBCPP_NEED_WLIBIO_TRUE='#'
3036 GLIBCPP_NEED_WLIBIO_FALSE=
3038 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3039 libio_la=../libio/libio.la
3040 else
3041 libio_la=
3046 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3047 echo "configure:3048: checking for clocale to use" >&5
3048 # Check whether --enable-clocale or --disable-clocale was given.
3049 if test "${enable_clocale+set}" = set; then
3050 enableval="$enable_clocale"
3051 if test x$enable_clocale = xno; then
3052 enable_clocale=no
3054 else
3055 enable_clocale=no
3059 enable_clocale_flag=$enable_clocale
3061 if test x$enable_clocale_flag = xno; then
3062 case x${target_os} in
3063 xlinux* | xgnu*)
3064 cat > conftest.$ac_ext <<EOF
3065 #line 3066 "configure"
3066 #include "confdefs.h"
3068 #include <features.h>
3069 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3070 _GLIBCPP_ok
3071 #endif
3074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3075 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3076 rm -rf conftest*
3077 enable_clocale_flag=gnu
3078 else
3079 rm -rf conftest*
3080 enable_clocale_flag=generic
3082 rm -f conftest*
3085 # Test for bugs early in glibc-2.2.x series
3086 if test x$enable_clocale_flag = xgnu; then
3087 if test "$cross_compiling" = yes; then
3088 enable_clocale_flag=generic
3089 else
3090 cat > conftest.$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3094 #define _GNU_SOURCE 1
3095 #include <locale.h>
3096 #include <string.h>
3097 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3098 extern __typeof(newlocale) __newlocale;
3099 extern __typeof(duplocale) __duplocale;
3100 extern __typeof(strcoll_l) __strcoll_l;
3101 #endif
3102 int main()
3104 const char __one[] = "Äuglein Augmen";
3105 const char __two[] = "Äuglein";
3106 int i;
3107 int j;
3108 __locale_t loc;
3109 __locale_t loc_dup;
3110 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3111 loc_dup = __duplocale(loc);
3112 i = __strcoll_l(__one, __two, loc);
3113 j = __strcoll_l(__one, __two, loc_dup);
3114 return 0;
3118 if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3119 then
3120 enable_clocale_flag=gnu
3121 else
3122 echo "configure: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3124 rm -fr conftest*
3125 enable_clocale_flag=generic
3127 rm -fr conftest*
3132 # ... at some point put __strxfrm_l tests in as well.
3135 enable_clocale_flag=generic
3137 esac
3140 # Check whether --enable-nls or --disable-nls was given.
3141 if test "${enable_nls+set}" = set; then
3142 enableval="$enable_nls"
3144 else
3145 enable_nls=yes
3148 USE_NLS=no
3150 case x${enable_clocale_flag} in
3151 xgeneric)
3152 echo "$ac_t""generic" 1>&6
3154 CLOCALE_H=config/locale/generic/c_locale.h
3155 CLOCALE_CC=config/locale/generic/c_locale.cc
3156 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3157 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3158 CCOLLATE_CC=config/locale/generic/collate_members.cc
3159 CCTYPE_CC=config/locale/generic/ctype_members.cc
3160 CMESSAGES_H=config/locale/generic/messages_members.h
3161 CMESSAGES_CC=config/locale/generic/messages_members.cc
3162 CMONEY_CC=config/locale/generic/monetary_members.cc
3163 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3164 CTIME_H=config/locale/generic/time_members.h
3165 CTIME_CC=config/locale/generic/time_members.cc
3166 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3168 xgnu)
3169 echo "$ac_t""gnu" 1>&6
3171 # Declare intention to use gettext, and add support for specific
3172 # languages.
3173 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3174 ALL_LINGUAS="de fr"
3176 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3177 # Extract the first word of "msgfmt", so it can be a program name with args.
3178 set dummy msgfmt; ac_word=$2
3179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3180 echo "configure:3181: checking for $ac_word" >&5
3181 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3182 echo $ac_n "(cached) $ac_c" 1>&6
3183 else
3184 if test -n "$check_msgfmt"; then
3185 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3186 else
3187 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3188 ac_dummy="$PATH"
3189 for ac_dir in $ac_dummy; do
3190 test -z "$ac_dir" && ac_dir=.
3191 if test -f $ac_dir/$ac_word; then
3192 ac_cv_prog_check_msgfmt="yes"
3193 break
3195 done
3196 IFS="$ac_save_ifs"
3197 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3200 check_msgfmt="$ac_cv_prog_check_msgfmt"
3201 if test -n "$check_msgfmt"; then
3202 echo "$ac_t""$check_msgfmt" 1>&6
3203 else
3204 echo "$ac_t""no" 1>&6
3207 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3208 USE_NLS=yes
3210 # Export the build objects.
3211 for ling in $ALL_LINGUAS; do \
3212 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3213 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3214 done
3218 CLOCALE_H=config/locale/gnu/c_locale.h
3219 CLOCALE_CC=config/locale/gnu/c_locale.cc
3220 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3221 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3222 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3223 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3224 CMESSAGES_H=config/locale/gnu/messages_members.h
3225 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3226 CMONEY_CC=config/locale/gnu/monetary_members.cc
3227 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3228 CTIME_H=config/locale/gnu/time_members.h
3229 CTIME_CC=config/locale/gnu/time_members.cc
3230 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3232 xieee_1003.1-2001)
3233 echo "$ac_t""IEEE 1003.1" 1>&6
3235 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3236 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3237 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3238 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3239 CCOLLATE_CC=config/locale/generic/collate_members.cc
3240 CCTYPE_CC=config/locale/generic/ctype_members.cc
3241 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3242 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3243 CMONEY_CC=config/locale/generic/monetary_members.cc
3244 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3245 CTIME_H=config/locale/generic/time_members.h
3246 CTIME_CC=config/locale/generic/time_members.cc
3247 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3250 echo "$enable_clocale is an unknown locale package" 1>&2
3251 exit 1
3253 esac
3255 # This is where the testsuite looks for locale catalogs, using the
3256 # -DLOCALEDIR define during testsuite compilation.
3257 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3260 # A standalone libintl (e.g., GNU libintl) may be in use.
3261 if test $USE_NLS = yes; then
3263 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
3264 echo "configure:3265: checking for library containing gettext" >&5
3265 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
3266 echo $ac_n "(cached) $ac_c" 1>&6
3267 else
3268 ac_func_search_save_LIBS="$LIBS"
3269 ac_cv_search_gettext="no"
3270 cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3273 /* Override any gcc2 internal prototype to avoid an error. */
3274 /* We use char because int might match the return type of a gcc2
3275 builtin and then its argument prototype would still apply. */
3276 char gettext();
3278 int main() {
3279 gettext()
3280 ; return 0; }
3282 if { (eval echo configure:3283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3283 rm -rf conftest*
3284 ac_cv_search_gettext="none required"
3285 else
3286 echo "configure: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3289 rm -f conftest*
3290 test "$ac_cv_search_gettext" = "no" && for i in intl; do
3291 LIBS="-l$i $ac_func_search_save_LIBS"
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 /* Override any gcc2 internal prototype to avoid an error. */
3296 /* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3298 char gettext();
3300 int main() {
3301 gettext()
3302 ; return 0; }
3304 if { (eval echo configure:3305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3305 rm -rf conftest*
3306 ac_cv_search_gettext="-l$i"
3307 break
3308 else
3309 echo "configure: failed program was:" >&5
3310 cat conftest.$ac_ext >&5
3312 rm -f conftest*
3313 done
3314 LIBS="$ac_func_search_save_LIBS"
3317 echo "$ac_t""$ac_cv_search_gettext" 1>&6
3318 if test "$ac_cv_search_gettext" != "no"; then
3319 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
3321 else :
3322 USE_NLS=no
3341 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3342 echo "configure:3343: checking for c header strategy to use" >&5
3343 # Check whether --enable-cheaders or --disable-cheaders was given.
3344 if test "${enable_cheaders+set}" = set; then
3345 enableval="$enable_cheaders"
3347 case "$enableval" in
3349 enable_cheaders=c
3351 c_std)
3352 enable_cheaders=c_std
3354 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3356 esac
3357 else
3358 enable_cheaders=c_std
3361 echo "$ac_t""$enable_cheaders" 1>&6
3363 case "$enable_cheaders" in
3364 c_std)
3365 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3368 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3370 esac
3375 if test "$enable_cheaders" = c; then
3376 GLIBCPP_C_HEADERS_C_TRUE=
3377 GLIBCPP_C_HEADERS_C_FALSE='#'
3378 else
3379 GLIBCPP_C_HEADERS_C_TRUE='#'
3380 GLIBCPP_C_HEADERS_C_FALSE=
3384 if test "$enable_cheaders" = c_std; then
3385 GLIBCPP_C_HEADERS_C_STD_TRUE=
3386 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3387 else
3388 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3389 GLIBCPP_C_HEADERS_C_STD_FALSE=
3393 if test "$c_compatibility" = yes; then
3394 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3395 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3396 else
3397 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3398 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3401 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3402 if test "${enable_c_mbchar+set}" = set; then
3403 enableval="$enable_c_mbchar"
3404 case "$enableval" in
3405 yes) enable_c_mbchar=yes ;;
3406 no) enable_c_mbchar=no ;;
3407 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3408 esac
3409 else
3410 enable_c_mbchar=yes
3414 # Check whether --enable-c99 or --disable-c99 was given.
3415 if test "${enable_c99+set}" = set; then
3416 enableval="$enable_c99"
3417 case "$enableval" in
3418 yes) enable_c99=yes ;;
3419 no) enable_c99=no ;;
3420 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3421 esac
3422 else
3423 enable_c99=yes
3427 ac_ext=C
3428 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3429 ac_cpp='$CXXCPP $CPPFLAGS'
3430 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3431 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3432 cross_compiling=$ac_cv_prog_cxx_cross
3435 # Check for the existence of <math.h> functions used if C99 is enabled.
3436 ac_c99_math=yes;
3437 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3438 echo "configure:3439: checking for ISO C99 support in <math.h>" >&5
3439 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 #include <math.h>
3443 int main() {
3444 fpclassify(0.0);
3445 ; return 0; }
3447 if { (eval echo configure:3448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3449 else
3450 echo "configure: failed program was:" >&5
3451 cat conftest.$ac_ext >&5
3452 rm -rf conftest*
3453 ac_c99_math=no
3455 rm -f conftest*
3456 cat > conftest.$ac_ext <<EOF
3457 #line 3458 "configure"
3458 #include "confdefs.h"
3459 #include <math.h>
3460 int main() {
3461 isfinite(0.0);
3462 ; return 0; }
3464 if { (eval echo configure:3465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3466 else
3467 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3469 rm -rf conftest*
3470 ac_c99_math=no
3472 rm -f conftest*
3473 cat > conftest.$ac_ext <<EOF
3474 #line 3475 "configure"
3475 #include "confdefs.h"
3476 #include <math.h>
3477 int main() {
3478 isinf(0.0);
3479 ; return 0; }
3481 if { (eval echo configure:3482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3483 else
3484 echo "configure: failed program was:" >&5
3485 cat conftest.$ac_ext >&5
3486 rm -rf conftest*
3487 ac_c99_math=no
3489 rm -f conftest*
3490 cat > conftest.$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3493 #include <math.h>
3494 int main() {
3495 isnan(0.0);
3496 ; return 0; }
3498 if { (eval echo configure:3499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3500 else
3501 echo "configure: failed program was:" >&5
3502 cat conftest.$ac_ext >&5
3503 rm -rf conftest*
3504 ac_c99_math=no
3506 rm -f conftest*
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 #include <math.h>
3511 int main() {
3512 isnormal(0.0);
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_math=no
3523 rm -f conftest*
3524 cat > conftest.$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3527 #include <math.h>
3528 int main() {
3529 signbit(0.0);
3530 ; return 0; }
3532 if { (eval echo configure:3533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3534 else
3535 echo "configure: failed program was:" >&5
3536 cat conftest.$ac_ext >&5
3537 rm -rf conftest*
3538 ac_c99_math=no
3540 rm -f conftest*
3541 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3544 #include <math.h>
3545 int main() {
3546 isgreater(0.0,0.0);
3547 ; return 0; }
3549 if { (eval echo configure:3550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3551 else
3552 echo "configure: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3554 rm -rf conftest*
3555 ac_c99_math=no
3557 rm -f conftest*
3558 cat > conftest.$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 #include <math.h>
3562 int main() {
3563 isgreaterequal(0.0,0.0);
3564 ; return 0; }
3566 if { (eval echo configure:3567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3568 else
3569 echo "configure: failed program was:" >&5
3570 cat conftest.$ac_ext >&5
3571 rm -rf conftest*
3572 ac_c99_math=no
3574 rm -f conftest*
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 #include <math.h>
3579 int main() {
3580 isless(0.0,0.0);
3581 ; return 0; }
3583 if { (eval echo configure:3584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3585 else
3586 echo "configure: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3588 rm -rf conftest*
3589 ac_c99_math=no
3591 rm -f conftest*
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 #include <math.h>
3596 int main() {
3597 islessequal(0.0,0.0);
3598 ; return 0; }
3600 if { (eval echo configure:3601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3602 else
3603 echo "configure: failed program was:" >&5
3604 cat conftest.$ac_ext >&5
3605 rm -rf conftest*
3606 ac_c99_math=no
3608 rm -f conftest*
3609 cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3612 #include <math.h>
3613 int main() {
3614 islessgreater(0.0,0.0);
3615 ; return 0; }
3617 if { (eval echo configure:3618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3619 else
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3622 rm -rf conftest*
3623 ac_c99_math=no
3625 rm -f conftest*
3626 cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3629 #include <math.h>
3630 int main() {
3631 isunordered(0.0,0.0);
3632 ; return 0; }
3634 if { (eval echo configure:3635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3636 else
3637 echo "configure: failed program was:" >&5
3638 cat conftest.$ac_ext >&5
3639 rm -rf conftest*
3640 ac_c99_math=no
3642 rm -f conftest*
3643 echo "$ac_t""$ac_c99_math" 1>&6
3645 # Check for the existence in <stdio.h> of vscanf, et. al.
3646 ac_c99_stdio=yes;
3647 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3648 echo "configure:3649: checking for ISO C99 support in <stdio.h>" >&5
3649 cat > conftest.$ac_ext <<EOF
3650 #line 3651 "configure"
3651 #include "confdefs.h"
3652 #include <stdio.h>
3653 int main() {
3654 snprintf("12", 0, "%i");
3655 ; return 0; }
3657 if { (eval echo configure:3658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3659 else
3660 echo "configure: failed program was:" >&5
3661 cat conftest.$ac_ext >&5
3662 rm -rf conftest*
3663 ac_c99_stdio=no
3665 rm -f conftest*
3666 cat > conftest.$ac_ext <<EOF
3667 #line 3668 "configure"
3668 #include "confdefs.h"
3669 #include <stdio.h>
3670 #include <stdarg.h>
3671 void foo(char* fmt, ...)
3672 {va_list args; va_start(args, fmt);
3673 vfscanf(stderr, "%i", args);}
3674 int main() {
3676 ; return 0; }
3678 if { (eval echo configure:3679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3680 else
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3683 rm -rf conftest*
3684 ac_c99_stdio=no
3686 rm -f conftest*
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 #include <stdio.h>
3691 #include <stdarg.h>
3692 void foo(char* fmt, ...)
3693 {va_list args; va_start(args, fmt);
3694 vscanf("%i", args);}
3695 int main() {
3697 ; return 0; }
3699 if { (eval echo configure:3700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3701 else
3702 echo "configure: failed program was:" >&5
3703 cat conftest.$ac_ext >&5
3704 rm -rf conftest*
3705 ac_c99_stdio=no
3707 rm -f conftest*
3708 cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3711 #include <stdio.h>
3712 #include <stdarg.h>
3713 void foo(char* fmt, ...)
3714 {va_list args; va_start(args, fmt);
3715 vsnprintf(fmt, 0, "%i", args);}
3716 int main() {
3718 ; return 0; }
3720 if { (eval echo configure:3721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3722 else
3723 echo "configure: failed program was:" >&5
3724 cat conftest.$ac_ext >&5
3725 rm -rf conftest*
3726 ac_c99_stdio=no
3728 rm -f conftest*
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3732 #include <stdio.h>
3733 #include <stdarg.h>
3734 void foo(char* fmt, ...)
3735 {va_list args; va_start(args, fmt);
3736 vsscanf(fmt, "%i", args);}
3737 int main() {
3739 ; return 0; }
3741 if { (eval echo configure:3742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3743 else
3744 echo "configure: failed program was:" >&5
3745 cat conftest.$ac_ext >&5
3746 rm -rf conftest*
3747 ac_c99_stdio=no
3749 rm -f conftest*
3750 echo "$ac_t""$ac_c99_stdio" 1>&6
3752 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3753 ac_c99_stdlib=yes;
3754 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3755 echo "configure:3756: checking for lldiv_t declaration" >&5
3756 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3757 echo $ac_n "(cached) $ac_c" 1>&6
3758 else
3760 cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 #include <stdlib.h>
3764 int main() {
3765 lldiv_t mydivt;
3766 ; return 0; }
3768 if { (eval echo configure:3769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3769 rm -rf conftest*
3770 ac_c99_lldiv_t=yes
3771 else
3772 echo "configure: failed program was:" >&5
3773 cat conftest.$ac_ext >&5
3774 rm -rf conftest*
3775 ac_c99_lldiv_t=no
3777 rm -f conftest*
3781 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3783 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3784 echo "configure:3785: checking for ISO C99 support in <stdlib.h>" >&5
3785 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3788 #include <stdlib.h>
3789 int main() {
3790 char* tmp; strtof("gnu", &tmp);
3791 ; return 0; }
3793 if { (eval echo configure:3794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3795 else
3796 echo "configure: failed program was:" >&5
3797 cat conftest.$ac_ext >&5
3798 rm -rf conftest*
3799 ac_c99_stdlib=no
3801 rm -f conftest*
3802 cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3805 #include <stdlib.h>
3806 int main() {
3807 char* tmp; strtold("gnu", &tmp);
3808 ; return 0; }
3810 if { (eval echo configure:3811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3812 else
3813 echo "configure: failed program was:" >&5
3814 cat conftest.$ac_ext >&5
3815 rm -rf conftest*
3816 ac_c99_stdlib=no
3818 rm -f conftest*
3819 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3822 #include <stdlib.h>
3823 int main() {
3824 llabs(10);
3825 ; return 0; }
3827 if { (eval echo configure:3828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3829 else
3830 echo "configure: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3832 rm -rf conftest*
3833 ac_c99_stdlib=no
3835 rm -f conftest*
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 #include <stdlib.h>
3840 int main() {
3841 lldiv(10,1);
3842 ; return 0; }
3844 if { (eval echo configure:3845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3846 else
3847 echo "configure: failed program was:" >&5
3848 cat conftest.$ac_ext >&5
3849 rm -rf conftest*
3850 ac_c99_stdlib=no
3852 rm -f conftest*
3853 cat > conftest.$ac_ext <<EOF
3854 #line 3855 "configure"
3855 #include "confdefs.h"
3856 #include <stdlib.h>
3857 int main() {
3858 atoll("10");
3859 ; return 0; }
3861 if { (eval echo configure:3862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3863 else
3864 echo "configure: failed program was:" >&5
3865 cat conftest.$ac_ext >&5
3866 rm -rf conftest*
3867 ac_c99_stdlib=no
3869 rm -f conftest*
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 #include <stdlib.h>
3874 int main() {
3875 _Exit(0);
3876 ; return 0; }
3878 if { (eval echo configure:3879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3880 else
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3883 rm -rf conftest*
3884 ac_c99_stdlib=no
3886 rm -f conftest*
3887 if test x"$ac_c99_lldiv_t" = x"no"; then
3888 ac_c99_stdlib=no;
3890 echo "$ac_t""$ac_c99_stdlib" 1>&6
3892 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3893 # XXX the wchar.h checks should be rolled into the general C99 bits.
3894 ac_c99_wchar=yes;
3895 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3896 echo "configure:3897: checking for additional ISO C99 support in <wchar.h>" >&5
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3900 #include <wchar.h>
3901 int main() {
3902 wcstold(L"10.0", NULL);
3903 ; return 0; }
3905 if { (eval echo configure:3906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3907 else
3908 echo "configure: failed program was:" >&5
3909 cat conftest.$ac_ext >&5
3910 rm -rf conftest*
3911 ac_c99_wchar=no
3913 rm -f conftest*
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3917 #include <wchar.h>
3918 int main() {
3919 wcstoll(L"10", NULL, 10);
3920 ; return 0; }
3922 if { (eval echo configure:3923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3924 else
3925 echo "configure: failed program was:" >&5
3926 cat conftest.$ac_ext >&5
3927 rm -rf conftest*
3928 ac_c99_wchar=no
3930 rm -f conftest*
3931 cat > conftest.$ac_ext <<EOF
3932 #line 3933 "configure"
3933 #include "confdefs.h"
3934 #include <wchar.h>
3935 int main() {
3936 wcstoull(L"10", NULL, 10);
3937 ; return 0; }
3939 if { (eval echo configure:3940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3941 else
3942 echo "configure: failed program was:" >&5
3943 cat conftest.$ac_ext >&5
3944 rm -rf conftest*
3945 ac_c99_wchar=no
3947 rm -f conftest*
3948 echo "$ac_t""$ac_c99_wchar" 1>&6
3950 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3951 echo "configure:3952: checking for enabled ISO C99 support" >&5
3952 if test x"$ac_c99_math" = x"no" ||
3953 test x"$ac_c99_stdio" = x"no" ||
3954 test x"$ac_c99_stdlib" = x"no" ||
3955 test x"$ac_c99_wchar" = x"no"; then
3956 enable_c99=no;
3958 echo "$ac_t""$enable_c99" 1>&6
3960 # Option parsed, now set things appropriately
3961 if test x"$enable_c99" = x"yes"; then
3962 cat >> confdefs.h <<\EOF
3963 #define _GLIBCPP_USE_C99 1
3968 ac_ext=c
3969 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3972 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3973 cross_compiling=$ac_cv_prog_cc_cross
3977 # Check whether --enable-long-long or --disable-long-long was given.
3978 if test "${enable_long_long+set}" = set; then
3979 enableval="$enable_long_long"
3980 case "$enableval" in
3981 yes) enable_long_long=yes ;;
3982 no) enable_long_long=no ;;
3983 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3984 esac
3985 else
3986 enable_long_long=yes
3990 ac_ext=C
3991 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3992 ac_cpp='$CXXCPP $CPPFLAGS'
3993 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3994 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3995 cross_compiling=$ac_cv_prog_cxx_cross
3998 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3999 echo "configure:4000: checking for enabled long long I/O support" >&5
4000 # iostreams require strtoll, strtoull to compile
4001 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4004 #include <stdlib.h>
4005 int main() {
4006 char* tmp; strtoll("gnu", &tmp, 10);
4007 ; return 0; }
4009 if { (eval echo configure:4010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4011 else
4012 echo "configure: failed program was:" >&5
4013 cat conftest.$ac_ext >&5
4014 rm -rf conftest*
4015 enable_long_long=no
4017 rm -f conftest*
4018 cat > conftest.$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4021 #include <stdlib.h>
4022 int main() {
4023 char* tmp; strtoull("gnu", &tmp, 10);
4024 ; return 0; }
4026 if { (eval echo configure:4027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4028 else
4029 echo "configure: failed program was:" >&5
4030 cat conftest.$ac_ext >&5
4031 rm -rf conftest*
4032 enable_long_long=no
4034 rm -f conftest*
4036 # Option parsed, now set things appropriately
4037 if test x"$enable_long_long" = xyes; then
4038 cat >> confdefs.h <<\EOF
4039 #define _GLIBCPP_USE_LONG_LONG 1
4043 echo "$ac_t""$enable_long_long" 1>&6
4045 ac_ext=c
4046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4049 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4050 cross_compiling=$ac_cv_prog_cc_cross
4054 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
4055 echo "configure:4056: checking for thread model used by GCC" >&5
4056 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4057 echo "$ac_t""$target_thread_file" 1>&6
4059 if test $target_thread_file != single; then
4060 cat >> confdefs.h <<\EOF
4061 #define HAVE_GTHR_DEFAULT 1
4064 cat >> confdefs.h <<\EOF
4065 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
4070 glibcpp_thread_h=gthr-$target_thread_file.h
4074 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
4075 echo "configure:4076: checking for exception model to use" >&5
4077 ac_ext=C
4078 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4079 ac_cpp='$CXXCPP $CPPFLAGS'
4080 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4081 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4082 cross_compiling=$ac_cv_prog_cxx_cross
4084 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4085 if test "${enable_sjlj_exceptions+set}" = set; then
4086 enableval="$enable_sjlj_exceptions"
4088 else
4089 cat > conftest.$ac_ext << EOF
4090 #line 4091 "configure"
4091 struct S { ~S(); };
4092 void bar();
4093 void foo()
4095 S s;
4096 bar();
4099 old_CXXFLAGS="$CXXFLAGS"
4100 CXXFLAGS=-S
4101 if { (eval echo configure:4102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4102 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4103 enable_sjlj_exceptions=yes
4104 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4105 enable_sjlj_exceptions=no
4108 CXXFLAGS="$old_CXXFLAGS"
4109 rm -f conftest*
4112 if test x$enable_sjlj_exceptions = xyes; then
4113 cat >> confdefs.h <<\EOF
4114 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4117 ac_exception_model_name=sjlj
4118 elif test x$enable_sjlj_exceptions = xno; then
4119 ac_exception_model_name="call frame"
4120 else
4121 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4123 ac_ext=c
4124 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4125 ac_cpp='$CPP $CPPFLAGS'
4126 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4127 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4128 cross_compiling=$ac_cv_prog_cc_cross
4130 echo "$ac_t""$ac_exception_model_name" 1>&6
4133 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4134 echo "configure:4135: checking for use of libunwind" >&5
4135 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4136 if test "${enable_libunwind_exceptions+set}" = set; then
4137 enableval="$enable_libunwind_exceptions"
4138 use_libunwind_exceptions=$enableval
4139 else
4140 use_libunwind_exceptions=no
4143 echo "$ac_t""$use_libunwind_exceptions" 1>&6
4144 if test x"$use_libunwind_exceptions" = xyes; then
4145 LIBUNWIND_FLAG="-lunwind"
4146 else
4147 LIBUNWIND_FLAG=""
4151 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4152 if test "${enable_concept_checks+set}" = set; then
4153 enableval="$enable_concept_checks"
4154 case "$enableval" in
4155 yes) enable_concept_checks=yes ;;
4156 no) enable_concept_checks=no ;;
4157 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4158 esac
4159 else
4160 enable_concept_checks=no
4162 if test x"$enable_concept_checks" = xyes; then
4163 cat >> confdefs.h <<\EOF
4164 #define _GLIBCPP_CONCEPT_CHECKS 1
4169 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4170 echo "configure:4171: checking for extra compiler flags for building" >&5
4171 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4172 if test "${enable_cxx_flags+set}" = set; then
4173 enableval="$enable_cxx_flags"
4174 case "x$enable_cxx_flags" in
4175 xyes)
4176 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4177 xno | xnone | x)
4178 enable_cxx_flags='' ;;
4180 enable_cxx_flags="$enableval" ;;
4181 esac
4182 else
4183 enable_cxx_flags=
4187 if test -n "$enable_cxx_flags"; then
4188 for f in $enable_cxx_flags; do
4189 case "$f" in
4190 -fhonor-std) ;;
4191 -*) ;;
4192 *) # and we're trying to pass /what/ exactly?
4193 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4194 esac
4195 done
4197 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4198 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4201 # Check whether --enable-debug or --disable-debug was given.
4202 if test "${enable_debug+set}" = set; then
4203 enableval="$enable_debug"
4204 case "${enableval}" in
4205 yes) enable_debug=yes ;;
4206 no) enable_debug=no ;;
4207 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4208 esac
4209 else
4210 enable_debug=no
4212 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4213 echo "configure:4214: checking for additional debug build" >&5
4214 echo "$ac_t""$enable_debug" 1>&6
4217 if test "$enable_debug" = yes; then
4218 GLIBCPP_BUILD_DEBUG_TRUE=
4219 GLIBCPP_BUILD_DEBUG_FALSE='#'
4220 else
4221 GLIBCPP_BUILD_DEBUG_TRUE='#'
4222 GLIBCPP_BUILD_DEBUG_FALSE=
4225 # Check whether --enable-debug_flags or --disable-debug_flags was given.
4226 if test "${enable_debug_flags+set}" = set; then
4227 enableval="$enable_debug_flags"
4228 case "${enableval}" in
4229 none) ;;
4230 -*) enable_debug_flags="${enableval}" ;;
4231 *) { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4232 esac
4233 else
4234 enable_debug_flags=none
4237 case x"$enable_debug" in
4238 xyes)
4239 case "$enable_debug_flags" in
4240 none)
4241 DEBUG_FLAGS="-g3 -O0";;
4242 -*) #valid input
4243 DEBUG_FLAGS="${enableval}"
4244 esac
4246 xno)
4247 DEBUG_FLAGS=""
4249 esac
4252 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4253 echo "configure:4254: checking for debug build flags" >&5
4254 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4257 # No surprises, no surprises...
4258 if test $ATOMICITYH = cpu/generic ; then
4259 echo "configure: warning: No native atomic operations are provided for this platform." 1>&2
4260 if test $target_thread_file = single; then
4261 echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4262 echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4263 else
4264 echo "configure: warning: They will be faked using a mutex." 1>&2
4265 echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4270 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4272 # We are being configured with some form of cross compiler.
4273 GLIBCPP_IS_CROSS_COMPILING=1
4275 # This lets us hard-code the functionality we know we'll have in the cross
4276 # target environment. "Let" is a sugar-coated word placed on an especially
4277 # dull and tedious hack, actually.
4279 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4280 # that involve linking, can't be used:
4281 # "cannot open sim-crt0.o"
4282 # "cannot open crt0.o"
4283 # etc. All this is because there currently exists no unified, consistent
4284 # way for top level CC information to be passed down to target directories:
4285 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4286 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4287 # crosses can be removed.
4289 # If Canadian cross, then don't pick up tools from the build directory.
4290 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4291 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4292 CANADIAN=yes
4293 else
4294 CANADIAN=no
4297 # Construct crosses by hand, eliminating bits that need ld...
4298 # GLIBCPP_CHECK_COMPILER_FEATURES
4299 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4300 # GLIBCPP_CHECK_MATH_SUPPORT
4302 case "$target" in
4303 *-linux*)
4304 os_include_dir="os/gnu-linux"
4305 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4306 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4307 fp.h locale.h float.h inttypes.h
4309 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4310 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4311 echo "configure:4312: checking for $ac_hdr" >&5
4312 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4313 echo $ac_n "(cached) $ac_c" 1>&6
4314 else
4315 cat > conftest.$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4318 #include <$ac_hdr>
4320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4321 { (eval echo configure:4322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4322 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4323 if test -z "$ac_err"; then
4324 rm -rf conftest*
4325 eval "ac_cv_header_$ac_safe=yes"
4326 else
4327 echo "$ac_err" >&5
4328 echo "configure: failed program was:" >&5
4329 cat conftest.$ac_ext >&5
4330 rm -rf conftest*
4331 eval "ac_cv_header_$ac_safe=no"
4333 rm -f conftest*
4335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4336 echo "$ac_t""yes" 1>&6
4337 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4338 cat >> confdefs.h <<EOF
4339 #define $ac_tr_hdr 1
4342 else
4343 echo "$ac_t""no" 1>&6
4345 done
4347 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4350 # If we're not using GNU ld, then there's no point in even trying these
4351 # tests. Check for that first. We should have already tested for gld
4352 # by now (in libtool), but require it now just to be safe...
4353 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4354 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4357 # The name set by libtool depends on the version of libtool. Shame on us
4358 # for depending on an impl detail, but c'est la vie. Older versions used
4359 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4360 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4361 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4362 # set (hence we're using an older libtool), then set it.
4363 if test x${with_gnu_ld+set} != xset; then
4364 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4365 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4366 with_gnu_ld=no
4367 else
4368 with_gnu_ld=$ac_cv_prog_gnu_ld
4372 # Start by getting the version number. I think the libtool test already
4373 # does some of this, but throws away the result.
4375 ldver=`$LD --version 2>/dev/null | head -1 | \
4376 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4378 glibcpp_gnu_ld_version=`echo $ldver | \
4379 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4381 # Set --gc-sections.
4382 if test "$with_gnu_ld" = "notbroken"; then
4383 # GNU ld it is! Joy and bunny rabbits!
4385 # All these tests are for C++; save the language and the compiler flags.
4386 # Need to do this so that g++ won't try to link in libstdc++
4387 ac_test_CFLAGS="${CFLAGS+set}"
4388 ac_save_CFLAGS="$CFLAGS"
4389 CFLAGS='-x c++ -Wl,--gc-sections'
4391 # Check for -Wl,--gc-sections
4392 # XXX This test is broken at the moment, as symbols required for
4393 # linking are now in libsupc++ (not built yet.....). In addition,
4394 # this test has cored on solaris in the past. In addition,
4395 # --gc-sections doesn't really work at the moment (keeps on discarding
4396 # used sections, first .eh_frame and now some of the glibc sections for
4397 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4398 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4399 echo "configure:4400: checking for ld that supports -Wl,--gc-sections" >&5
4400 if test "$cross_compiling" = yes; then
4401 ac_sectionLDflags=yes
4402 else
4403 cat > conftest.$ac_ext <<EOF
4404 #line 4405 "configure"
4405 #include "confdefs.h"
4407 int main(void)
4409 try { throw 1; }
4410 catch (...) { };
4411 return 0;
4415 if { (eval echo configure:4416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4416 then
4417 ac_sectionLDflags=yes
4418 else
4419 echo "configure: failed program was:" >&5
4420 cat conftest.$ac_ext >&5
4421 rm -fr conftest*
4422 ac_sectionLDflags=no
4424 rm -fr conftest*
4427 if test "$ac_test_CFLAGS" = set; then
4428 CFLAGS="$ac_save_CFLAGS"
4429 else
4430 # this is the suspicious part
4431 CFLAGS=''
4433 if test "$ac_sectionLDflags" = "yes"; then
4434 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4436 echo "$ac_t""$ac_sectionLDflags" 1>&6
4439 # Set linker optimization flags.
4440 if test x"$with_gnu_ld" = x"yes"; then
4441 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4448 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4449 echo "configure:4450: checking for main in -lm" >&5
4450 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4452 echo $ac_n "(cached) $ac_c" 1>&6
4453 else
4454 ac_save_LIBS="$LIBS"
4455 LIBS="-lm $LIBS"
4456 cat > conftest.$ac_ext <<EOF
4457 #line 4458 "configure"
4458 #include "confdefs.h"
4460 int main() {
4461 main()
4462 ; return 0; }
4464 if { (eval echo configure:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4465 rm -rf conftest*
4466 eval "ac_cv_lib_$ac_lib_var=yes"
4467 else
4468 echo "configure: failed program was:" >&5
4469 cat conftest.$ac_ext >&5
4470 rm -rf conftest*
4471 eval "ac_cv_lib_$ac_lib_var=no"
4473 rm -f conftest*
4474 LIBS="$ac_save_LIBS"
4477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4478 echo "$ac_t""yes" 1>&6
4479 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4480 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4481 cat >> confdefs.h <<EOF
4482 #define $ac_tr_lib 1
4485 LIBS="-lm $LIBS"
4487 else
4488 echo "$ac_t""no" 1>&6
4491 for ac_func in nan copysignf
4493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4494 echo "configure:4495: checking for $ac_func" >&5
4495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4497 else
4498 cat > conftest.$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4501 /* System header to define __stub macros and hopefully few prototypes,
4502 which can conflict with char $ac_func(); below. */
4503 #include <assert.h>
4504 /* Override any gcc2 internal prototype to avoid an error. */
4505 /* We use char because int might match the return type of a gcc2
4506 builtin and then its argument prototype would still apply. */
4507 char $ac_func();
4509 int main() {
4511 /* The GNU C library defines this for functions which it implements
4512 to always fail with ENOSYS. Some functions are actually named
4513 something starting with __ and the normal name is an alias. */
4514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4515 choke me
4516 #else
4517 $ac_func();
4518 #endif
4520 ; return 0; }
4522 if { (eval echo configure:4523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4523 rm -rf conftest*
4524 eval "ac_cv_func_$ac_func=yes"
4525 else
4526 echo "configure: failed program was:" >&5
4527 cat conftest.$ac_ext >&5
4528 rm -rf conftest*
4529 eval "ac_cv_func_$ac_func=no"
4531 rm -f conftest*
4534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4535 echo "$ac_t""yes" 1>&6
4536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4537 cat >> confdefs.h <<EOF
4538 #define $ac_tr_func 1
4541 else
4542 echo "$ac_t""no" 1>&6
4543 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4545 done
4548 for ac_func in __signbit
4550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4551 echo "configure:4552: checking for $ac_func" >&5
4552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4553 echo $ac_n "(cached) $ac_c" 1>&6
4554 else
4555 cat > conftest.$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4558 /* System header to define __stub macros and hopefully few prototypes,
4559 which can conflict with char $ac_func(); below. */
4560 #include <assert.h>
4561 /* Override any gcc2 internal prototype to avoid an error. */
4562 /* We use char because int might match the return type of a gcc2
4563 builtin and then its argument prototype would still apply. */
4564 char $ac_func();
4566 int main() {
4568 /* The GNU C library defines this for functions which it implements
4569 to always fail with ENOSYS. Some functions are actually named
4570 something starting with __ and the normal name is an alias. */
4571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4572 choke me
4573 #else
4574 $ac_func();
4575 #endif
4577 ; return 0; }
4579 if { (eval echo configure:4580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4580 rm -rf conftest*
4581 eval "ac_cv_func_$ac_func=yes"
4582 else
4583 echo "configure: failed program was:" >&5
4584 cat conftest.$ac_ext >&5
4585 rm -rf conftest*
4586 eval "ac_cv_func_$ac_func=no"
4588 rm -f conftest*
4591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4592 echo "$ac_t""yes" 1>&6
4593 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4594 cat >> confdefs.h <<EOF
4595 #define $ac_tr_func 1
4598 else
4599 echo "$ac_t""no" 1>&6
4600 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4602 done
4604 for ac_func in __signbitf
4606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4607 echo "configure:4608: checking for $ac_func" >&5
4608 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4609 echo $ac_n "(cached) $ac_c" 1>&6
4610 else
4611 cat > conftest.$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4614 /* System header to define __stub macros and hopefully few prototypes,
4615 which can conflict with char $ac_func(); below. */
4616 #include <assert.h>
4617 /* Override any gcc2 internal prototype to avoid an error. */
4618 /* We use char because int might match the return type of a gcc2
4619 builtin and then its argument prototype would still apply. */
4620 char $ac_func();
4622 int main() {
4624 /* The GNU C library defines this for functions which it implements
4625 to always fail with ENOSYS. Some functions are actually named
4626 something starting with __ and the normal name is an alias. */
4627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4628 choke me
4629 #else
4630 $ac_func();
4631 #endif
4633 ; return 0; }
4635 if { (eval echo configure:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4636 rm -rf conftest*
4637 eval "ac_cv_func_$ac_func=yes"
4638 else
4639 echo "configure: failed program was:" >&5
4640 cat conftest.$ac_ext >&5
4641 rm -rf conftest*
4642 eval "ac_cv_func_$ac_func=no"
4644 rm -f conftest*
4647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4648 echo "$ac_t""yes" 1>&6
4649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4650 cat >> confdefs.h <<EOF
4651 #define $ac_tr_func 1
4654 else
4655 echo "$ac_t""no" 1>&6
4656 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4658 done
4661 if test x$ac_cv_func_copysignl = x"yes"; then
4662 for ac_func in __signbitl
4664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4665 echo "configure:4666: checking for $ac_func" >&5
4666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4667 echo $ac_n "(cached) $ac_c" 1>&6
4668 else
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4672 /* System header to define __stub macros and hopefully few prototypes,
4673 which can conflict with char $ac_func(); below. */
4674 #include <assert.h>
4675 /* Override any gcc2 internal prototype to avoid an error. */
4676 /* We use char because int might match the return type of a gcc2
4677 builtin and then its argument prototype would still apply. */
4678 char $ac_func();
4680 int main() {
4682 /* The GNU C library defines this for functions which it implements
4683 to always fail with ENOSYS. Some functions are actually named
4684 something starting with __ and the normal name is an alias. */
4685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4686 choke me
4687 #else
4688 $ac_func();
4689 #endif
4691 ; return 0; }
4693 if { (eval echo configure:4694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4694 rm -rf conftest*
4695 eval "ac_cv_func_$ac_func=yes"
4696 else
4697 echo "configure: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4699 rm -rf conftest*
4700 eval "ac_cv_func_$ac_func=no"
4702 rm -f conftest*
4705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4706 echo "$ac_t""yes" 1>&6
4707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4708 cat >> confdefs.h <<EOF
4709 #define $ac_tr_func 1
4712 else
4713 echo "$ac_t""no" 1>&6
4714 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4716 done
4720 if test -n "$LIBMATHOBJS"; then
4721 need_libmath=yes
4726 if test "$need_libmath" = yes; then
4727 GLIBCPP_BUILD_LIBMATH_TRUE=
4728 GLIBCPP_BUILD_LIBMATH_FALSE='#'
4729 else
4730 GLIBCPP_BUILD_LIBMATH_TRUE='#'
4731 GLIBCPP_BUILD_LIBMATH_FALSE=
4735 enable_wchar_t=no
4737 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4738 echo "configure:4739: checking for mbstate_t" >&5
4739 cat > conftest.$ac_ext <<EOF
4740 #line 4741 "configure"
4741 #include "confdefs.h"
4742 #include <wchar.h>
4743 int main() {
4744 mbstate_t teststate;
4745 ; return 0; }
4747 if { (eval echo configure:4748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4748 rm -rf conftest*
4749 have_mbstate_t=yes
4750 else
4751 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4753 rm -rf conftest*
4754 have_mbstate_t=no
4756 rm -f conftest*
4757 echo "$ac_t""$have_mbstate_t" 1>&6
4758 if test x"$have_mbstate_t" = xyes; then
4759 cat >> confdefs.h <<\EOF
4760 #define HAVE_MBSTATE_T 1
4765 for ac_hdr in wchar.h
4767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4769 echo "configure:4770: checking for $ac_hdr" >&5
4770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4772 else
4773 cat > conftest.$ac_ext <<EOF
4774 #line 4775 "configure"
4775 #include "confdefs.h"
4776 #include <$ac_hdr>
4778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4779 { (eval echo configure:4780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4781 if test -z "$ac_err"; then
4782 rm -rf conftest*
4783 eval "ac_cv_header_$ac_safe=yes"
4784 else
4785 echo "$ac_err" >&5
4786 echo "configure: failed program was:" >&5
4787 cat conftest.$ac_ext >&5
4788 rm -rf conftest*
4789 eval "ac_cv_header_$ac_safe=no"
4791 rm -f conftest*
4793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4794 echo "$ac_t""yes" 1>&6
4795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4796 cat >> confdefs.h <<EOF
4797 #define $ac_tr_hdr 1
4799 ac_has_wchar_h=yes
4800 else
4801 echo "$ac_t""no" 1>&6
4802 ac_has_wchar_h=no
4804 done
4806 for ac_hdr in wctype.h
4808 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4810 echo "configure:4811: checking for $ac_hdr" >&5
4811 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4812 echo $ac_n "(cached) $ac_c" 1>&6
4813 else
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4817 #include <$ac_hdr>
4819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4820 { (eval echo configure:4821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4822 if test -z "$ac_err"; then
4823 rm -rf conftest*
4824 eval "ac_cv_header_$ac_safe=yes"
4825 else
4826 echo "$ac_err" >&5
4827 echo "configure: failed program was:" >&5
4828 cat conftest.$ac_ext >&5
4829 rm -rf conftest*
4830 eval "ac_cv_header_$ac_safe=no"
4832 rm -f conftest*
4834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4835 echo "$ac_t""yes" 1>&6
4836 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4837 cat >> confdefs.h <<EOF
4838 #define $ac_tr_hdr 1
4840 ac_has_wctype_h=yes
4841 else
4842 echo "$ac_t""no" 1>&6
4843 ac_has_wctype_h=no
4845 done
4848 if test x"$ac_has_wchar_h" = xyes &&
4849 test x"$ac_has_wctype_h" = xyes &&
4850 test x"$enable_c_mbchar" != xno; then
4852 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4853 echo "configure:4854: checking for WCHAR_MIN and WCHAR_MAX" >&5
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4857 #include <wchar.h>
4858 int main() {
4859 int i = WCHAR_MIN; int j = WCHAR_MAX;
4860 ; return 0; }
4862 if { (eval echo configure:4863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4863 rm -rf conftest*
4864 has_wchar_minmax=yes
4865 else
4866 echo "configure: failed program was:" >&5
4867 cat conftest.$ac_ext >&5
4868 rm -rf conftest*
4869 has_wchar_minmax=no
4871 rm -f conftest*
4872 echo "$ac_t""$has_wchar_minmax" 1>&6
4874 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4875 echo "configure:4876: checking for WEOF" >&5
4876 cat > conftest.$ac_ext <<EOF
4877 #line 4878 "configure"
4878 #include "confdefs.h"
4880 #include <wchar.h>
4881 #include <stddef.h>
4882 int main() {
4883 wint_t i = WEOF;
4884 ; return 0; }
4886 if { (eval echo configure:4887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4887 rm -rf conftest*
4888 has_weof=yes
4889 else
4890 echo "configure: failed program was:" >&5
4891 cat conftest.$ac_ext >&5
4892 rm -rf conftest*
4893 has_weof=no
4895 rm -f conftest*
4896 echo "$ac_t""$has_weof" 1>&6
4898 ac_wfuncs=yes
4899 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4902 echo "configure:4903: checking for $ac_func" >&5
4903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4904 echo $ac_n "(cached) $ac_c" 1>&6
4905 else
4906 cat > conftest.$ac_ext <<EOF
4907 #line 4908 "configure"
4908 #include "confdefs.h"
4909 /* System header to define __stub macros and hopefully few prototypes,
4910 which can conflict with char $ac_func(); below. */
4911 #include <assert.h>
4912 /* Override any gcc2 internal prototype to avoid an error. */
4913 /* We use char because int might match the return type of a gcc2
4914 builtin and then its argument prototype would still apply. */
4915 char $ac_func();
4917 int main() {
4919 /* The GNU C library defines this for functions which it implements
4920 to always fail with ENOSYS. Some functions are actually named
4921 something starting with __ and the normal name is an alias. */
4922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4923 choke me
4924 #else
4925 $ac_func();
4926 #endif
4928 ; return 0; }
4930 if { (eval echo configure:4931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4931 rm -rf conftest*
4932 eval "ac_cv_func_$ac_func=yes"
4933 else
4934 echo "configure: failed program was:" >&5
4935 cat conftest.$ac_ext >&5
4936 rm -rf conftest*
4937 eval "ac_cv_func_$ac_func=no"
4939 rm -f conftest*
4942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4943 echo "$ac_t""yes" 1>&6
4944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4945 cat >> confdefs.h <<EOF
4946 #define $ac_tr_func 1
4949 else
4950 echo "$ac_t""no" 1>&6
4952 ac_wfuncs=no
4954 done
4957 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
4958 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4959 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4960 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4961 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4962 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4965 echo "configure:4966: checking for $ac_func" >&5
4966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4967 echo $ac_n "(cached) $ac_c" 1>&6
4968 else
4969 cat > conftest.$ac_ext <<EOF
4970 #line 4971 "configure"
4971 #include "confdefs.h"
4972 /* System header to define __stub macros and hopefully few prototypes,
4973 which can conflict with char $ac_func(); below. */
4974 #include <assert.h>
4975 /* Override any gcc2 internal prototype to avoid an error. */
4976 /* We use char because int might match the return type of a gcc2
4977 builtin and then its argument prototype would still apply. */
4978 char $ac_func();
4980 int main() {
4982 /* The GNU C library defines this for functions which it implements
4983 to always fail with ENOSYS. Some functions are actually named
4984 something starting with __ and the normal name is an alias. */
4985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4986 choke me
4987 #else
4988 $ac_func();
4989 #endif
4991 ; return 0; }
4993 if { (eval echo configure:4994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4994 rm -rf conftest*
4995 eval "ac_cv_func_$ac_func=yes"
4996 else
4997 echo "configure: failed program was:" >&5
4998 cat conftest.$ac_ext >&5
4999 rm -rf conftest*
5000 eval "ac_cv_func_$ac_func=no"
5002 rm -f conftest*
5005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5006 echo "$ac_t""yes" 1>&6
5007 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5008 cat >> confdefs.h <<EOF
5009 #define $ac_tr_func 1
5012 else
5013 echo "$ac_t""no" 1>&6
5015 ac_wfuncs=no
5017 done
5020 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5021 echo "configure:5022: checking for ISO C99 wchar_t support" >&5
5022 if test x"$has_weof" = xyes &&
5023 test x"$has_wchar_minmax" = xyes &&
5024 test x"$ac_wfuncs" = xyes; then
5025 ac_isoC99_wchar_t=yes
5026 else
5027 ac_isoC99_wchar_t=no
5029 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5031 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5032 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5033 echo "configure:5034: checking for iconv.h" >&5
5034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5035 echo $ac_n "(cached) $ac_c" 1>&6
5036 else
5037 cat > conftest.$ac_ext <<EOF
5038 #line 5039 "configure"
5039 #include "confdefs.h"
5040 #include <iconv.h>
5042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5043 { (eval echo configure:5044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5045 if test -z "$ac_err"; then
5046 rm -rf conftest*
5047 eval "ac_cv_header_$ac_safe=yes"
5048 else
5049 echo "$ac_err" >&5
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5052 rm -rf conftest*
5053 eval "ac_cv_header_$ac_safe=no"
5055 rm -f conftest*
5057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5058 echo "$ac_t""yes" 1>&6
5059 ac_has_iconv_h=yes
5060 else
5061 echo "$ac_t""no" 1>&6
5062 ac_has_iconv_h=no
5065 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5066 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5067 echo "configure:5068: checking for langinfo.h" >&5
5068 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5070 else
5071 cat > conftest.$ac_ext <<EOF
5072 #line 5073 "configure"
5073 #include "confdefs.h"
5074 #include <langinfo.h>
5076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5077 { (eval echo configure:5078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5079 if test -z "$ac_err"; then
5080 rm -rf conftest*
5081 eval "ac_cv_header_$ac_safe=yes"
5082 else
5083 echo "$ac_err" >&5
5084 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5086 rm -rf conftest*
5087 eval "ac_cv_header_$ac_safe=no"
5089 rm -f conftest*
5091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5092 echo "$ac_t""yes" 1>&6
5093 ac_has_langinfo_h=yes
5094 else
5095 echo "$ac_t""no" 1>&6
5096 ac_has_langinfo_h=no
5100 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5101 echo "configure:5102: checking for iconv in -liconv" >&5
5102 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5103 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5104 echo $ac_n "(cached) $ac_c" 1>&6
5105 else
5106 ac_save_LIBS="$LIBS"
5107 LIBS="-liconv $LIBS"
5108 cat > conftest.$ac_ext <<EOF
5109 #line 5110 "configure"
5110 #include "confdefs.h"
5111 /* Override any gcc2 internal prototype to avoid an error. */
5112 /* We use char because int might match the return type of a gcc2
5113 builtin and then its argument prototype would still apply. */
5114 char iconv();
5116 int main() {
5117 iconv()
5118 ; return 0; }
5120 if { (eval echo configure:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5121 rm -rf conftest*
5122 eval "ac_cv_lib_$ac_lib_var=yes"
5123 else
5124 echo "configure: failed program was:" >&5
5125 cat conftest.$ac_ext >&5
5126 rm -rf conftest*
5127 eval "ac_cv_lib_$ac_lib_var=no"
5129 rm -f conftest*
5130 LIBS="$ac_save_LIBS"
5133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5134 echo "$ac_t""yes" 1>&6
5135 libiconv="-liconv"
5136 else
5137 echo "$ac_t""no" 1>&6
5140 ac_save_LIBS="$LIBS"
5141 LIBS="$LIBS $libiconv"
5143 for ac_func in iconv_open iconv_close iconv nl_langinfo
5145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5146 echo "configure:5147: checking for $ac_func" >&5
5147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5148 echo $ac_n "(cached) $ac_c" 1>&6
5149 else
5150 cat > conftest.$ac_ext <<EOF
5151 #line 5152 "configure"
5152 #include "confdefs.h"
5153 /* System header to define __stub macros and hopefully few prototypes,
5154 which can conflict with char $ac_func(); below. */
5155 #include <assert.h>
5156 /* Override any gcc2 internal prototype to avoid an error. */
5157 /* We use char because int might match the return type of a gcc2
5158 builtin and then its argument prototype would still apply. */
5159 char $ac_func();
5161 int main() {
5163 /* The GNU C library defines this for functions which it implements
5164 to always fail with ENOSYS. Some functions are actually named
5165 something starting with __ and the normal name is an alias. */
5166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5167 choke me
5168 #else
5169 $ac_func();
5170 #endif
5172 ; return 0; }
5174 if { (eval echo configure:5175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5175 rm -rf conftest*
5176 eval "ac_cv_func_$ac_func=yes"
5177 else
5178 echo "configure: failed program was:" >&5
5179 cat conftest.$ac_ext >&5
5180 rm -rf conftest*
5181 eval "ac_cv_func_$ac_func=no"
5183 rm -f conftest*
5186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5187 echo "$ac_t""yes" 1>&6
5188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5189 cat >> confdefs.h <<EOF
5190 #define $ac_tr_func 1
5193 ac_XPG2funcs=yes
5194 else
5195 echo "$ac_t""no" 1>&6
5196 ac_XPG2funcs=no
5198 done
5201 LIBS="$ac_save_LIBS"
5203 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5204 echo "configure:5205: checking for XPG2 wchar_t support" >&5
5205 if test x"$ac_has_iconv_h" = xyes &&
5206 test x"$ac_has_langinfo_h" = xyes &&
5207 test x"$ac_XPG2funcs" = xyes; then
5208 ac_XPG2_wchar_t=yes
5209 else
5210 ac_XPG2_wchar_t=no
5212 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5214 if test x"$ac_isoC99_wchar_t" = xyes &&
5215 test x"$ac_XPG2_wchar_t" = xyes; then
5216 cat >> confdefs.h <<\EOF
5217 #define _GLIBCPP_USE_WCHAR_T 1
5220 enable_wchar_t=yes
5223 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5224 echo "configure:5225: checking for enabled wchar_t specializations" >&5
5225 echo "$ac_t""$enable_wchar_t" 1>&6
5228 if test "$enable_wchar_t" = yes; then
5229 GLIBCPP_TEST_WCHAR_T_TRUE=
5230 GLIBCPP_TEST_WCHAR_T_FALSE='#'
5231 else
5232 GLIBCPP_TEST_WCHAR_T_TRUE='#'
5233 GLIBCPP_TEST_WCHAR_T_FALSE=
5236 cat >> confdefs.h <<\EOF
5237 #define HAVE_COPYSIGN 1
5240 cat >> confdefs.h <<\EOF
5241 #define HAVE_COPYSIGNF 1
5244 cat >> confdefs.h <<\EOF
5245 #define HAVE_FINITE 1
5248 cat >> confdefs.h <<\EOF
5249 #define HAVE_FINITEF 1
5252 cat >> confdefs.h <<\EOF
5253 #define HAVE_FREXPF 1
5256 cat >> confdefs.h <<\EOF
5257 #define HAVE_HYPOTF 1
5260 cat >> confdefs.h <<\EOF
5261 #define HAVE_ISINF 1
5264 cat >> confdefs.h <<\EOF
5265 #define HAVE_ISINFF 1
5268 cat >> confdefs.h <<\EOF
5269 #define HAVE_ISNAN 1
5272 cat >> confdefs.h <<\EOF
5273 #define HAVE_ISNANF 1
5276 cat >> confdefs.h <<\EOF
5277 #define HAVE_SINCOS 1
5280 cat >> confdefs.h <<\EOF
5281 #define HAVE_SINCOSF 1
5284 if test x"long_double_math_on_this_cpu" = x"yes"; then
5285 cat >> confdefs.h <<\EOF
5286 #define HAVE_FINITEL 1
5289 cat >> confdefs.h <<\EOF
5290 #define HAVE_HYPOTL 1
5293 cat >> confdefs.h <<\EOF
5294 #define HAVE_ISINFL 1
5297 cat >> confdefs.h <<\EOF
5298 #define HAVE_ISNANL 1
5303 *-hpux*)
5304 # Check for available headers.
5305 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5306 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5307 fp.h locale.h float.h inttypes.h
5309 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5310 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5311 echo "configure:5312: checking for $ac_hdr" >&5
5312 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5313 echo $ac_n "(cached) $ac_c" 1>&6
5314 else
5315 cat > conftest.$ac_ext <<EOF
5316 #line 5317 "configure"
5317 #include "confdefs.h"
5318 #include <$ac_hdr>
5320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5321 { (eval echo configure:5322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5322 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5323 if test -z "$ac_err"; then
5324 rm -rf conftest*
5325 eval "ac_cv_header_$ac_safe=yes"
5326 else
5327 echo "$ac_err" >&5
5328 echo "configure: failed program was:" >&5
5329 cat conftest.$ac_ext >&5
5330 rm -rf conftest*
5331 eval "ac_cv_header_$ac_safe=no"
5333 rm -f conftest*
5335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5336 echo "$ac_t""yes" 1>&6
5337 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5338 cat >> confdefs.h <<EOF
5339 #define $ac_tr_hdr 1
5342 else
5343 echo "$ac_t""no" 1>&6
5345 done
5347 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5350 # If we're not using GNU ld, then there's no point in even trying these
5351 # tests. Check for that first. We should have already tested for gld
5352 # by now (in libtool), but require it now just to be safe...
5353 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5354 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5357 # The name set by libtool depends on the version of libtool. Shame on us
5358 # for depending on an impl detail, but c'est la vie. Older versions used
5359 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5360 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5361 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5362 # set (hence we're using an older libtool), then set it.
5363 if test x${with_gnu_ld+set} != xset; then
5364 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5365 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5366 with_gnu_ld=no
5367 else
5368 with_gnu_ld=$ac_cv_prog_gnu_ld
5372 # Start by getting the version number. I think the libtool test already
5373 # does some of this, but throws away the result.
5375 ldver=`$LD --version 2>/dev/null | head -1 | \
5376 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5378 glibcpp_gnu_ld_version=`echo $ldver | \
5379 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5381 # Set --gc-sections.
5382 if test "$with_gnu_ld" = "notbroken"; then
5383 # GNU ld it is! Joy and bunny rabbits!
5385 # All these tests are for C++; save the language and the compiler flags.
5386 # Need to do this so that g++ won't try to link in libstdc++
5387 ac_test_CFLAGS="${CFLAGS+set}"
5388 ac_save_CFLAGS="$CFLAGS"
5389 CFLAGS='-x c++ -Wl,--gc-sections'
5391 # Check for -Wl,--gc-sections
5392 # XXX This test is broken at the moment, as symbols required for
5393 # linking are now in libsupc++ (not built yet.....). In addition,
5394 # this test has cored on solaris in the past. In addition,
5395 # --gc-sections doesn't really work at the moment (keeps on discarding
5396 # used sections, first .eh_frame and now some of the glibc sections for
5397 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5398 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5399 echo "configure:5400: checking for ld that supports -Wl,--gc-sections" >&5
5400 if test "$cross_compiling" = yes; then
5401 ac_sectionLDflags=yes
5402 else
5403 cat > conftest.$ac_ext <<EOF
5404 #line 5405 "configure"
5405 #include "confdefs.h"
5407 int main(void)
5409 try { throw 1; }
5410 catch (...) { };
5411 return 0;
5415 if { (eval echo configure:5416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5416 then
5417 ac_sectionLDflags=yes
5418 else
5419 echo "configure: failed program was:" >&5
5420 cat conftest.$ac_ext >&5
5421 rm -fr conftest*
5422 ac_sectionLDflags=no
5424 rm -fr conftest*
5427 if test "$ac_test_CFLAGS" = set; then
5428 CFLAGS="$ac_save_CFLAGS"
5429 else
5430 # this is the suspicious part
5431 CFLAGS=''
5433 if test "$ac_sectionLDflags" = "yes"; then
5434 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5436 echo "$ac_t""$ac_sectionLDflags" 1>&6
5439 # Set linker optimization flags.
5440 if test x"$with_gnu_ld" = x"yes"; then
5441 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5448 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5449 echo "configure:5450: checking for main in -lm" >&5
5450 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5452 echo $ac_n "(cached) $ac_c" 1>&6
5453 else
5454 ac_save_LIBS="$LIBS"
5455 LIBS="-lm $LIBS"
5456 cat > conftest.$ac_ext <<EOF
5457 #line 5458 "configure"
5458 #include "confdefs.h"
5460 int main() {
5461 main()
5462 ; return 0; }
5464 if { (eval echo configure:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5465 rm -rf conftest*
5466 eval "ac_cv_lib_$ac_lib_var=yes"
5467 else
5468 echo "configure: failed program was:" >&5
5469 cat conftest.$ac_ext >&5
5470 rm -rf conftest*
5471 eval "ac_cv_lib_$ac_lib_var=no"
5473 rm -f conftest*
5474 LIBS="$ac_save_LIBS"
5477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5478 echo "$ac_t""yes" 1>&6
5479 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5480 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5481 cat >> confdefs.h <<EOF
5482 #define $ac_tr_lib 1
5485 LIBS="-lm $LIBS"
5487 else
5488 echo "$ac_t""no" 1>&6
5491 for ac_func in nan copysignf
5493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5494 echo "configure:5495: checking for $ac_func" >&5
5495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5496 echo $ac_n "(cached) $ac_c" 1>&6
5497 else
5498 cat > conftest.$ac_ext <<EOF
5499 #line 5500 "configure"
5500 #include "confdefs.h"
5501 /* System header to define __stub macros and hopefully few prototypes,
5502 which can conflict with char $ac_func(); below. */
5503 #include <assert.h>
5504 /* Override any gcc2 internal prototype to avoid an error. */
5505 /* We use char because int might match the return type of a gcc2
5506 builtin and then its argument prototype would still apply. */
5507 char $ac_func();
5509 int main() {
5511 /* The GNU C library defines this for functions which it implements
5512 to always fail with ENOSYS. Some functions are actually named
5513 something starting with __ and the normal name is an alias. */
5514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5515 choke me
5516 #else
5517 $ac_func();
5518 #endif
5520 ; return 0; }
5522 if { (eval echo configure:5523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5523 rm -rf conftest*
5524 eval "ac_cv_func_$ac_func=yes"
5525 else
5526 echo "configure: failed program was:" >&5
5527 cat conftest.$ac_ext >&5
5528 rm -rf conftest*
5529 eval "ac_cv_func_$ac_func=no"
5531 rm -f conftest*
5534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5535 echo "$ac_t""yes" 1>&6
5536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5537 cat >> confdefs.h <<EOF
5538 #define $ac_tr_func 1
5541 else
5542 echo "$ac_t""no" 1>&6
5543 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5545 done
5548 for ac_func in __signbit
5550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5551 echo "configure:5552: checking for $ac_func" >&5
5552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5553 echo $ac_n "(cached) $ac_c" 1>&6
5554 else
5555 cat > conftest.$ac_ext <<EOF
5556 #line 5557 "configure"
5557 #include "confdefs.h"
5558 /* System header to define __stub macros and hopefully few prototypes,
5559 which can conflict with char $ac_func(); below. */
5560 #include <assert.h>
5561 /* Override any gcc2 internal prototype to avoid an error. */
5562 /* We use char because int might match the return type of a gcc2
5563 builtin and then its argument prototype would still apply. */
5564 char $ac_func();
5566 int main() {
5568 /* The GNU C library defines this for functions which it implements
5569 to always fail with ENOSYS. Some functions are actually named
5570 something starting with __ and the normal name is an alias. */
5571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5572 choke me
5573 #else
5574 $ac_func();
5575 #endif
5577 ; return 0; }
5579 if { (eval echo configure:5580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5580 rm -rf conftest*
5581 eval "ac_cv_func_$ac_func=yes"
5582 else
5583 echo "configure: failed program was:" >&5
5584 cat conftest.$ac_ext >&5
5585 rm -rf conftest*
5586 eval "ac_cv_func_$ac_func=no"
5588 rm -f conftest*
5591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5592 echo "$ac_t""yes" 1>&6
5593 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5594 cat >> confdefs.h <<EOF
5595 #define $ac_tr_func 1
5598 else
5599 echo "$ac_t""no" 1>&6
5600 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5602 done
5604 for ac_func in __signbitf
5606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5607 echo "configure:5608: checking for $ac_func" >&5
5608 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5609 echo $ac_n "(cached) $ac_c" 1>&6
5610 else
5611 cat > conftest.$ac_ext <<EOF
5612 #line 5613 "configure"
5613 #include "confdefs.h"
5614 /* System header to define __stub macros and hopefully few prototypes,
5615 which can conflict with char $ac_func(); below. */
5616 #include <assert.h>
5617 /* Override any gcc2 internal prototype to avoid an error. */
5618 /* We use char because int might match the return type of a gcc2
5619 builtin and then its argument prototype would still apply. */
5620 char $ac_func();
5622 int main() {
5624 /* The GNU C library defines this for functions which it implements
5625 to always fail with ENOSYS. Some functions are actually named
5626 something starting with __ and the normal name is an alias. */
5627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5628 choke me
5629 #else
5630 $ac_func();
5631 #endif
5633 ; return 0; }
5635 if { (eval echo configure:5636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5636 rm -rf conftest*
5637 eval "ac_cv_func_$ac_func=yes"
5638 else
5639 echo "configure: failed program was:" >&5
5640 cat conftest.$ac_ext >&5
5641 rm -rf conftest*
5642 eval "ac_cv_func_$ac_func=no"
5644 rm -f conftest*
5647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5648 echo "$ac_t""yes" 1>&6
5649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5650 cat >> confdefs.h <<EOF
5651 #define $ac_tr_func 1
5654 else
5655 echo "$ac_t""no" 1>&6
5656 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5658 done
5661 if test x$ac_cv_func_copysignl = x"yes"; then
5662 for ac_func in __signbitl
5664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5665 echo "configure:5666: checking for $ac_func" >&5
5666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5667 echo $ac_n "(cached) $ac_c" 1>&6
5668 else
5669 cat > conftest.$ac_ext <<EOF
5670 #line 5671 "configure"
5671 #include "confdefs.h"
5672 /* System header to define __stub macros and hopefully few prototypes,
5673 which can conflict with char $ac_func(); below. */
5674 #include <assert.h>
5675 /* Override any gcc2 internal prototype to avoid an error. */
5676 /* We use char because int might match the return type of a gcc2
5677 builtin and then its argument prototype would still apply. */
5678 char $ac_func();
5680 int main() {
5682 /* The GNU C library defines this for functions which it implements
5683 to always fail with ENOSYS. Some functions are actually named
5684 something starting with __ and the normal name is an alias. */
5685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5686 choke me
5687 #else
5688 $ac_func();
5689 #endif
5691 ; return 0; }
5693 if { (eval echo configure:5694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5694 rm -rf conftest*
5695 eval "ac_cv_func_$ac_func=yes"
5696 else
5697 echo "configure: failed program was:" >&5
5698 cat conftest.$ac_ext >&5
5699 rm -rf conftest*
5700 eval "ac_cv_func_$ac_func=no"
5702 rm -f conftest*
5705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5706 echo "$ac_t""yes" 1>&6
5707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5708 cat >> confdefs.h <<EOF
5709 #define $ac_tr_func 1
5712 else
5713 echo "$ac_t""no" 1>&6
5714 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5716 done
5720 if test -n "$LIBMATHOBJS"; then
5721 need_libmath=yes
5726 if test "$need_libmath" = yes; then
5727 GLIBCPP_BUILD_LIBMATH_TRUE=
5728 GLIBCPP_BUILD_LIBMATH_FALSE='#'
5729 else
5730 GLIBCPP_BUILD_LIBMATH_TRUE='#'
5731 GLIBCPP_BUILD_LIBMATH_FALSE=
5735 enable_wchar_t=no
5737 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5738 echo "configure:5739: checking for mbstate_t" >&5
5739 cat > conftest.$ac_ext <<EOF
5740 #line 5741 "configure"
5741 #include "confdefs.h"
5742 #include <wchar.h>
5743 int main() {
5744 mbstate_t teststate;
5745 ; return 0; }
5747 if { (eval echo configure:5748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5748 rm -rf conftest*
5749 have_mbstate_t=yes
5750 else
5751 echo "configure: failed program was:" >&5
5752 cat conftest.$ac_ext >&5
5753 rm -rf conftest*
5754 have_mbstate_t=no
5756 rm -f conftest*
5757 echo "$ac_t""$have_mbstate_t" 1>&6
5758 if test x"$have_mbstate_t" = xyes; then
5759 cat >> confdefs.h <<\EOF
5760 #define HAVE_MBSTATE_T 1
5765 for ac_hdr in wchar.h
5767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5769 echo "configure:5770: checking for $ac_hdr" >&5
5770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5771 echo $ac_n "(cached) $ac_c" 1>&6
5772 else
5773 cat > conftest.$ac_ext <<EOF
5774 #line 5775 "configure"
5775 #include "confdefs.h"
5776 #include <$ac_hdr>
5778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5779 { (eval echo configure:5780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5781 if test -z "$ac_err"; then
5782 rm -rf conftest*
5783 eval "ac_cv_header_$ac_safe=yes"
5784 else
5785 echo "$ac_err" >&5
5786 echo "configure: failed program was:" >&5
5787 cat conftest.$ac_ext >&5
5788 rm -rf conftest*
5789 eval "ac_cv_header_$ac_safe=no"
5791 rm -f conftest*
5793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5794 echo "$ac_t""yes" 1>&6
5795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5796 cat >> confdefs.h <<EOF
5797 #define $ac_tr_hdr 1
5799 ac_has_wchar_h=yes
5800 else
5801 echo "$ac_t""no" 1>&6
5802 ac_has_wchar_h=no
5804 done
5806 for ac_hdr in wctype.h
5808 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5810 echo "configure:5811: checking for $ac_hdr" >&5
5811 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5812 echo $ac_n "(cached) $ac_c" 1>&6
5813 else
5814 cat > conftest.$ac_ext <<EOF
5815 #line 5816 "configure"
5816 #include "confdefs.h"
5817 #include <$ac_hdr>
5819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5820 { (eval echo configure:5821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5822 if test -z "$ac_err"; then
5823 rm -rf conftest*
5824 eval "ac_cv_header_$ac_safe=yes"
5825 else
5826 echo "$ac_err" >&5
5827 echo "configure: failed program was:" >&5
5828 cat conftest.$ac_ext >&5
5829 rm -rf conftest*
5830 eval "ac_cv_header_$ac_safe=no"
5832 rm -f conftest*
5834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5835 echo "$ac_t""yes" 1>&6
5836 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5837 cat >> confdefs.h <<EOF
5838 #define $ac_tr_hdr 1
5840 ac_has_wctype_h=yes
5841 else
5842 echo "$ac_t""no" 1>&6
5843 ac_has_wctype_h=no
5845 done
5848 if test x"$ac_has_wchar_h" = xyes &&
5849 test x"$ac_has_wctype_h" = xyes &&
5850 test x"$enable_c_mbchar" != xno; then
5852 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5853 echo "configure:5854: checking for WCHAR_MIN and WCHAR_MAX" >&5
5854 cat > conftest.$ac_ext <<EOF
5855 #line 5856 "configure"
5856 #include "confdefs.h"
5857 #include <wchar.h>
5858 int main() {
5859 int i = WCHAR_MIN; int j = WCHAR_MAX;
5860 ; return 0; }
5862 if { (eval echo configure:5863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5863 rm -rf conftest*
5864 has_wchar_minmax=yes
5865 else
5866 echo "configure: failed program was:" >&5
5867 cat conftest.$ac_ext >&5
5868 rm -rf conftest*
5869 has_wchar_minmax=no
5871 rm -f conftest*
5872 echo "$ac_t""$has_wchar_minmax" 1>&6
5874 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5875 echo "configure:5876: checking for WEOF" >&5
5876 cat > conftest.$ac_ext <<EOF
5877 #line 5878 "configure"
5878 #include "confdefs.h"
5880 #include <wchar.h>
5881 #include <stddef.h>
5882 int main() {
5883 wint_t i = WEOF;
5884 ; return 0; }
5886 if { (eval echo configure:5887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5887 rm -rf conftest*
5888 has_weof=yes
5889 else
5890 echo "configure: failed program was:" >&5
5891 cat conftest.$ac_ext >&5
5892 rm -rf conftest*
5893 has_weof=no
5895 rm -f conftest*
5896 echo "$ac_t""$has_weof" 1>&6
5898 ac_wfuncs=yes
5899 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5902 echo "configure:5903: checking for $ac_func" >&5
5903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5904 echo $ac_n "(cached) $ac_c" 1>&6
5905 else
5906 cat > conftest.$ac_ext <<EOF
5907 #line 5908 "configure"
5908 #include "confdefs.h"
5909 /* System header to define __stub macros and hopefully few prototypes,
5910 which can conflict with char $ac_func(); below. */
5911 #include <assert.h>
5912 /* Override any gcc2 internal prototype to avoid an error. */
5913 /* We use char because int might match the return type of a gcc2
5914 builtin and then its argument prototype would still apply. */
5915 char $ac_func();
5917 int main() {
5919 /* The GNU C library defines this for functions which it implements
5920 to always fail with ENOSYS. Some functions are actually named
5921 something starting with __ and the normal name is an alias. */
5922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5923 choke me
5924 #else
5925 $ac_func();
5926 #endif
5928 ; return 0; }
5930 if { (eval echo configure:5931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5931 rm -rf conftest*
5932 eval "ac_cv_func_$ac_func=yes"
5933 else
5934 echo "configure: failed program was:" >&5
5935 cat conftest.$ac_ext >&5
5936 rm -rf conftest*
5937 eval "ac_cv_func_$ac_func=no"
5939 rm -f conftest*
5942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5943 echo "$ac_t""yes" 1>&6
5944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5945 cat >> confdefs.h <<EOF
5946 #define $ac_tr_func 1
5949 else
5950 echo "$ac_t""no" 1>&6
5952 ac_wfuncs=no
5954 done
5957 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5958 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5959 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5960 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5961 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5962 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5965 echo "configure:5966: checking for $ac_func" >&5
5966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5967 echo $ac_n "(cached) $ac_c" 1>&6
5968 else
5969 cat > conftest.$ac_ext <<EOF
5970 #line 5971 "configure"
5971 #include "confdefs.h"
5972 /* System header to define __stub macros and hopefully few prototypes,
5973 which can conflict with char $ac_func(); below. */
5974 #include <assert.h>
5975 /* Override any gcc2 internal prototype to avoid an error. */
5976 /* We use char because int might match the return type of a gcc2
5977 builtin and then its argument prototype would still apply. */
5978 char $ac_func();
5980 int main() {
5982 /* The GNU C library defines this for functions which it implements
5983 to always fail with ENOSYS. Some functions are actually named
5984 something starting with __ and the normal name is an alias. */
5985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5986 choke me
5987 #else
5988 $ac_func();
5989 #endif
5991 ; return 0; }
5993 if { (eval echo configure:5994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5994 rm -rf conftest*
5995 eval "ac_cv_func_$ac_func=yes"
5996 else
5997 echo "configure: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
5999 rm -rf conftest*
6000 eval "ac_cv_func_$ac_func=no"
6002 rm -f conftest*
6005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6006 echo "$ac_t""yes" 1>&6
6007 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6008 cat >> confdefs.h <<EOF
6009 #define $ac_tr_func 1
6012 else
6013 echo "$ac_t""no" 1>&6
6015 ac_wfuncs=no
6017 done
6020 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6021 echo "configure:6022: checking for ISO C99 wchar_t support" >&5
6022 if test x"$has_weof" = xyes &&
6023 test x"$has_wchar_minmax" = xyes &&
6024 test x"$ac_wfuncs" = xyes; then
6025 ac_isoC99_wchar_t=yes
6026 else
6027 ac_isoC99_wchar_t=no
6029 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6031 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6032 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6033 echo "configure:6034: checking for iconv.h" >&5
6034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6035 echo $ac_n "(cached) $ac_c" 1>&6
6036 else
6037 cat > conftest.$ac_ext <<EOF
6038 #line 6039 "configure"
6039 #include "confdefs.h"
6040 #include <iconv.h>
6042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6043 { (eval echo configure:6044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6045 if test -z "$ac_err"; then
6046 rm -rf conftest*
6047 eval "ac_cv_header_$ac_safe=yes"
6048 else
6049 echo "$ac_err" >&5
6050 echo "configure: failed program was:" >&5
6051 cat conftest.$ac_ext >&5
6052 rm -rf conftest*
6053 eval "ac_cv_header_$ac_safe=no"
6055 rm -f conftest*
6057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6058 echo "$ac_t""yes" 1>&6
6059 ac_has_iconv_h=yes
6060 else
6061 echo "$ac_t""no" 1>&6
6062 ac_has_iconv_h=no
6065 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6066 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6067 echo "configure:6068: checking for langinfo.h" >&5
6068 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6069 echo $ac_n "(cached) $ac_c" 1>&6
6070 else
6071 cat > conftest.$ac_ext <<EOF
6072 #line 6073 "configure"
6073 #include "confdefs.h"
6074 #include <langinfo.h>
6076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6077 { (eval echo configure:6078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6079 if test -z "$ac_err"; then
6080 rm -rf conftest*
6081 eval "ac_cv_header_$ac_safe=yes"
6082 else
6083 echo "$ac_err" >&5
6084 echo "configure: failed program was:" >&5
6085 cat conftest.$ac_ext >&5
6086 rm -rf conftest*
6087 eval "ac_cv_header_$ac_safe=no"
6089 rm -f conftest*
6091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6092 echo "$ac_t""yes" 1>&6
6093 ac_has_langinfo_h=yes
6094 else
6095 echo "$ac_t""no" 1>&6
6096 ac_has_langinfo_h=no
6100 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6101 echo "configure:6102: checking for iconv in -liconv" >&5
6102 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6103 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6104 echo $ac_n "(cached) $ac_c" 1>&6
6105 else
6106 ac_save_LIBS="$LIBS"
6107 LIBS="-liconv $LIBS"
6108 cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111 /* Override any gcc2 internal prototype to avoid an error. */
6112 /* We use char because int might match the return type of a gcc2
6113 builtin and then its argument prototype would still apply. */
6114 char iconv();
6116 int main() {
6117 iconv()
6118 ; return 0; }
6120 if { (eval echo configure:6121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6121 rm -rf conftest*
6122 eval "ac_cv_lib_$ac_lib_var=yes"
6123 else
6124 echo "configure: failed program was:" >&5
6125 cat conftest.$ac_ext >&5
6126 rm -rf conftest*
6127 eval "ac_cv_lib_$ac_lib_var=no"
6129 rm -f conftest*
6130 LIBS="$ac_save_LIBS"
6133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6134 echo "$ac_t""yes" 1>&6
6135 libiconv="-liconv"
6136 else
6137 echo "$ac_t""no" 1>&6
6140 ac_save_LIBS="$LIBS"
6141 LIBS="$LIBS $libiconv"
6143 for ac_func in iconv_open iconv_close iconv nl_langinfo
6145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6146 echo "configure:6147: checking for $ac_func" >&5
6147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6148 echo $ac_n "(cached) $ac_c" 1>&6
6149 else
6150 cat > conftest.$ac_ext <<EOF
6151 #line 6152 "configure"
6152 #include "confdefs.h"
6153 /* System header to define __stub macros and hopefully few prototypes,
6154 which can conflict with char $ac_func(); below. */
6155 #include <assert.h>
6156 /* Override any gcc2 internal prototype to avoid an error. */
6157 /* We use char because int might match the return type of a gcc2
6158 builtin and then its argument prototype would still apply. */
6159 char $ac_func();
6161 int main() {
6163 /* The GNU C library defines this for functions which it implements
6164 to always fail with ENOSYS. Some functions are actually named
6165 something starting with __ and the normal name is an alias. */
6166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6167 choke me
6168 #else
6169 $ac_func();
6170 #endif
6172 ; return 0; }
6174 if { (eval echo configure:6175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6175 rm -rf conftest*
6176 eval "ac_cv_func_$ac_func=yes"
6177 else
6178 echo "configure: failed program was:" >&5
6179 cat conftest.$ac_ext >&5
6180 rm -rf conftest*
6181 eval "ac_cv_func_$ac_func=no"
6183 rm -f conftest*
6186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6187 echo "$ac_t""yes" 1>&6
6188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6189 cat >> confdefs.h <<EOF
6190 #define $ac_tr_func 1
6193 ac_XPG2funcs=yes
6194 else
6195 echo "$ac_t""no" 1>&6
6196 ac_XPG2funcs=no
6198 done
6201 LIBS="$ac_save_LIBS"
6203 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6204 echo "configure:6205: checking for XPG2 wchar_t support" >&5
6205 if test x"$ac_has_iconv_h" = xyes &&
6206 test x"$ac_has_langinfo_h" = xyes &&
6207 test x"$ac_XPG2funcs" = xyes; then
6208 ac_XPG2_wchar_t=yes
6209 else
6210 ac_XPG2_wchar_t=no
6212 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6214 if test x"$ac_isoC99_wchar_t" = xyes &&
6215 test x"$ac_XPG2_wchar_t" = xyes; then
6216 cat >> confdefs.h <<\EOF
6217 #define _GLIBCPP_USE_WCHAR_T 1
6220 enable_wchar_t=yes
6223 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6224 echo "configure:6225: checking for enabled wchar_t specializations" >&5
6225 echo "$ac_t""$enable_wchar_t" 1>&6
6228 if test "$enable_wchar_t" = yes; then
6229 GLIBCPP_TEST_WCHAR_T_TRUE=
6230 GLIBCPP_TEST_WCHAR_T_FALSE='#'
6231 else
6232 GLIBCPP_TEST_WCHAR_T_TRUE='#'
6233 GLIBCPP_TEST_WCHAR_T_FALSE=
6236 os_include_dir="os/hpux"
6237 cat >> confdefs.h <<\EOF
6238 #define HAVE_COPYSIGN 1
6241 cat >> confdefs.h <<\EOF
6242 #define HAVE_COPYSIGNF 1
6245 cat >> confdefs.h <<\EOF
6246 #define HAVE_FREXPF 1
6249 cat >> confdefs.h <<\EOF
6250 #define HAVE_HYPOT 1
6253 case "$target" in
6254 *-hpux10*)
6255 cat >> confdefs.h <<\EOF
6256 #define HAVE_FINITE 1
6259 cat >> confdefs.h <<\EOF
6260 #define HAVE_FINITEF 1
6263 cat >> confdefs.h <<\EOF
6264 #define HAVE_ISINF 1
6267 cat >> confdefs.h <<\EOF
6268 #define HAVE_ISINFF 1
6271 cat >> confdefs.h <<\EOF
6272 #define HAVE_ISNAN 1
6275 cat >> confdefs.h <<\EOF
6276 #define HAVE_ISNANF 1
6280 esac
6283 *-netbsd*)
6284 # Check for available headers.
6285 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6286 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6287 fp.h locale.h float.h inttypes.h
6289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6291 echo "configure:6292: checking for $ac_hdr" >&5
6292 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6293 echo $ac_n "(cached) $ac_c" 1>&6
6294 else
6295 cat > conftest.$ac_ext <<EOF
6296 #line 6297 "configure"
6297 #include "confdefs.h"
6298 #include <$ac_hdr>
6300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6301 { (eval echo configure:6302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6303 if test -z "$ac_err"; then
6304 rm -rf conftest*
6305 eval "ac_cv_header_$ac_safe=yes"
6306 else
6307 echo "$ac_err" >&5
6308 echo "configure: failed program was:" >&5
6309 cat conftest.$ac_ext >&5
6310 rm -rf conftest*
6311 eval "ac_cv_header_$ac_safe=no"
6313 rm -f conftest*
6315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6316 echo "$ac_t""yes" 1>&6
6317 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6318 cat >> confdefs.h <<EOF
6319 #define $ac_tr_hdr 1
6322 else
6323 echo "$ac_t""no" 1>&6
6325 done
6327 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6330 # If we're not using GNU ld, then there's no point in even trying these
6331 # tests. Check for that first. We should have already tested for gld
6332 # by now (in libtool), but require it now just to be safe...
6333 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6334 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6337 # The name set by libtool depends on the version of libtool. Shame on us
6338 # for depending on an impl detail, but c'est la vie. Older versions used
6339 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6340 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6341 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6342 # set (hence we're using an older libtool), then set it.
6343 if test x${with_gnu_ld+set} != xset; then
6344 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6345 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6346 with_gnu_ld=no
6347 else
6348 with_gnu_ld=$ac_cv_prog_gnu_ld
6352 # Start by getting the version number. I think the libtool test already
6353 # does some of this, but throws away the result.
6355 ldver=`$LD --version 2>/dev/null | head -1 | \
6356 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6358 glibcpp_gnu_ld_version=`echo $ldver | \
6359 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6361 # Set --gc-sections.
6362 if test "$with_gnu_ld" = "notbroken"; then
6363 # GNU ld it is! Joy and bunny rabbits!
6365 # All these tests are for C++; save the language and the compiler flags.
6366 # Need to do this so that g++ won't try to link in libstdc++
6367 ac_test_CFLAGS="${CFLAGS+set}"
6368 ac_save_CFLAGS="$CFLAGS"
6369 CFLAGS='-x c++ -Wl,--gc-sections'
6371 # Check for -Wl,--gc-sections
6372 # XXX This test is broken at the moment, as symbols required for
6373 # linking are now in libsupc++ (not built yet.....). In addition,
6374 # this test has cored on solaris in the past. In addition,
6375 # --gc-sections doesn't really work at the moment (keeps on discarding
6376 # used sections, first .eh_frame and now some of the glibc sections for
6377 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6378 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6379 echo "configure:6380: checking for ld that supports -Wl,--gc-sections" >&5
6380 if test "$cross_compiling" = yes; then
6381 ac_sectionLDflags=yes
6382 else
6383 cat > conftest.$ac_ext <<EOF
6384 #line 6385 "configure"
6385 #include "confdefs.h"
6387 int main(void)
6389 try { throw 1; }
6390 catch (...) { };
6391 return 0;
6395 if { (eval echo configure:6396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6396 then
6397 ac_sectionLDflags=yes
6398 else
6399 echo "configure: failed program was:" >&5
6400 cat conftest.$ac_ext >&5
6401 rm -fr conftest*
6402 ac_sectionLDflags=no
6404 rm -fr conftest*
6407 if test "$ac_test_CFLAGS" = set; then
6408 CFLAGS="$ac_save_CFLAGS"
6409 else
6410 # this is the suspicious part
6411 CFLAGS=''
6413 if test "$ac_sectionLDflags" = "yes"; then
6414 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6416 echo "$ac_t""$ac_sectionLDflags" 1>&6
6419 # Set linker optimization flags.
6420 if test x"$with_gnu_ld" = x"yes"; then
6421 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6428 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6429 echo "configure:6430: checking for main in -lm" >&5
6430 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6432 echo $ac_n "(cached) $ac_c" 1>&6
6433 else
6434 ac_save_LIBS="$LIBS"
6435 LIBS="-lm $LIBS"
6436 cat > conftest.$ac_ext <<EOF
6437 #line 6438 "configure"
6438 #include "confdefs.h"
6440 int main() {
6441 main()
6442 ; return 0; }
6444 if { (eval echo configure:6445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6445 rm -rf conftest*
6446 eval "ac_cv_lib_$ac_lib_var=yes"
6447 else
6448 echo "configure: failed program was:" >&5
6449 cat conftest.$ac_ext >&5
6450 rm -rf conftest*
6451 eval "ac_cv_lib_$ac_lib_var=no"
6453 rm -f conftest*
6454 LIBS="$ac_save_LIBS"
6457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6458 echo "$ac_t""yes" 1>&6
6459 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6460 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6461 cat >> confdefs.h <<EOF
6462 #define $ac_tr_lib 1
6465 LIBS="-lm $LIBS"
6467 else
6468 echo "$ac_t""no" 1>&6
6471 for ac_func in nan copysignf
6473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6474 echo "configure:6475: checking for $ac_func" >&5
6475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6476 echo $ac_n "(cached) $ac_c" 1>&6
6477 else
6478 cat > conftest.$ac_ext <<EOF
6479 #line 6480 "configure"
6480 #include "confdefs.h"
6481 /* System header to define __stub macros and hopefully few prototypes,
6482 which can conflict with char $ac_func(); below. */
6483 #include <assert.h>
6484 /* Override any gcc2 internal prototype to avoid an error. */
6485 /* We use char because int might match the return type of a gcc2
6486 builtin and then its argument prototype would still apply. */
6487 char $ac_func();
6489 int main() {
6491 /* The GNU C library defines this for functions which it implements
6492 to always fail with ENOSYS. Some functions are actually named
6493 something starting with __ and the normal name is an alias. */
6494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6495 choke me
6496 #else
6497 $ac_func();
6498 #endif
6500 ; return 0; }
6502 if { (eval echo configure:6503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6503 rm -rf conftest*
6504 eval "ac_cv_func_$ac_func=yes"
6505 else
6506 echo "configure: failed program was:" >&5
6507 cat conftest.$ac_ext >&5
6508 rm -rf conftest*
6509 eval "ac_cv_func_$ac_func=no"
6511 rm -f conftest*
6514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6515 echo "$ac_t""yes" 1>&6
6516 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6517 cat >> confdefs.h <<EOF
6518 #define $ac_tr_func 1
6521 else
6522 echo "$ac_t""no" 1>&6
6523 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6525 done
6528 for ac_func in __signbit
6530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6531 echo "configure:6532: checking for $ac_func" >&5
6532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6533 echo $ac_n "(cached) $ac_c" 1>&6
6534 else
6535 cat > conftest.$ac_ext <<EOF
6536 #line 6537 "configure"
6537 #include "confdefs.h"
6538 /* System header to define __stub macros and hopefully few prototypes,
6539 which can conflict with char $ac_func(); below. */
6540 #include <assert.h>
6541 /* Override any gcc2 internal prototype to avoid an error. */
6542 /* We use char because int might match the return type of a gcc2
6543 builtin and then its argument prototype would still apply. */
6544 char $ac_func();
6546 int main() {
6548 /* The GNU C library defines this for functions which it implements
6549 to always fail with ENOSYS. Some functions are actually named
6550 something starting with __ and the normal name is an alias. */
6551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6552 choke me
6553 #else
6554 $ac_func();
6555 #endif
6557 ; return 0; }
6559 if { (eval echo configure:6560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6560 rm -rf conftest*
6561 eval "ac_cv_func_$ac_func=yes"
6562 else
6563 echo "configure: failed program was:" >&5
6564 cat conftest.$ac_ext >&5
6565 rm -rf conftest*
6566 eval "ac_cv_func_$ac_func=no"
6568 rm -f conftest*
6571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6572 echo "$ac_t""yes" 1>&6
6573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6574 cat >> confdefs.h <<EOF
6575 #define $ac_tr_func 1
6578 else
6579 echo "$ac_t""no" 1>&6
6580 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6582 done
6584 for ac_func in __signbitf
6586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6587 echo "configure:6588: checking for $ac_func" >&5
6588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6589 echo $ac_n "(cached) $ac_c" 1>&6
6590 else
6591 cat > conftest.$ac_ext <<EOF
6592 #line 6593 "configure"
6593 #include "confdefs.h"
6594 /* System header to define __stub macros and hopefully few prototypes,
6595 which can conflict with char $ac_func(); below. */
6596 #include <assert.h>
6597 /* Override any gcc2 internal prototype to avoid an error. */
6598 /* We use char because int might match the return type of a gcc2
6599 builtin and then its argument prototype would still apply. */
6600 char $ac_func();
6602 int main() {
6604 /* The GNU C library defines this for functions which it implements
6605 to always fail with ENOSYS. Some functions are actually named
6606 something starting with __ and the normal name is an alias. */
6607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6608 choke me
6609 #else
6610 $ac_func();
6611 #endif
6613 ; return 0; }
6615 if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6616 rm -rf conftest*
6617 eval "ac_cv_func_$ac_func=yes"
6618 else
6619 echo "configure: failed program was:" >&5
6620 cat conftest.$ac_ext >&5
6621 rm -rf conftest*
6622 eval "ac_cv_func_$ac_func=no"
6624 rm -f conftest*
6627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6628 echo "$ac_t""yes" 1>&6
6629 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6630 cat >> confdefs.h <<EOF
6631 #define $ac_tr_func 1
6634 else
6635 echo "$ac_t""no" 1>&6
6636 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6638 done
6641 if test x$ac_cv_func_copysignl = x"yes"; then
6642 for ac_func in __signbitl
6644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6645 echo "configure:6646: checking for $ac_func" >&5
6646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6647 echo $ac_n "(cached) $ac_c" 1>&6
6648 else
6649 cat > conftest.$ac_ext <<EOF
6650 #line 6651 "configure"
6651 #include "confdefs.h"
6652 /* System header to define __stub macros and hopefully few prototypes,
6653 which can conflict with char $ac_func(); below. */
6654 #include <assert.h>
6655 /* Override any gcc2 internal prototype to avoid an error. */
6656 /* We use char because int might match the return type of a gcc2
6657 builtin and then its argument prototype would still apply. */
6658 char $ac_func();
6660 int main() {
6662 /* The GNU C library defines this for functions which it implements
6663 to always fail with ENOSYS. Some functions are actually named
6664 something starting with __ and the normal name is an alias. */
6665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6666 choke me
6667 #else
6668 $ac_func();
6669 #endif
6671 ; return 0; }
6673 if { (eval echo configure:6674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6674 rm -rf conftest*
6675 eval "ac_cv_func_$ac_func=yes"
6676 else
6677 echo "configure: failed program was:" >&5
6678 cat conftest.$ac_ext >&5
6679 rm -rf conftest*
6680 eval "ac_cv_func_$ac_func=no"
6682 rm -f conftest*
6685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6686 echo "$ac_t""yes" 1>&6
6687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6688 cat >> confdefs.h <<EOF
6689 #define $ac_tr_func 1
6692 else
6693 echo "$ac_t""no" 1>&6
6694 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6696 done
6700 if test -n "$LIBMATHOBJS"; then
6701 need_libmath=yes
6706 if test "$need_libmath" = yes; then
6707 GLIBCPP_BUILD_LIBMATH_TRUE=
6708 GLIBCPP_BUILD_LIBMATH_FALSE='#'
6709 else
6710 GLIBCPP_BUILD_LIBMATH_TRUE='#'
6711 GLIBCPP_BUILD_LIBMATH_FALSE=
6715 enable_wchar_t=no
6717 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6718 echo "configure:6719: checking for mbstate_t" >&5
6719 cat > conftest.$ac_ext <<EOF
6720 #line 6721 "configure"
6721 #include "confdefs.h"
6722 #include <wchar.h>
6723 int main() {
6724 mbstate_t teststate;
6725 ; return 0; }
6727 if { (eval echo configure:6728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6728 rm -rf conftest*
6729 have_mbstate_t=yes
6730 else
6731 echo "configure: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6733 rm -rf conftest*
6734 have_mbstate_t=no
6736 rm -f conftest*
6737 echo "$ac_t""$have_mbstate_t" 1>&6
6738 if test x"$have_mbstate_t" = xyes; then
6739 cat >> confdefs.h <<\EOF
6740 #define HAVE_MBSTATE_T 1
6745 for ac_hdr in wchar.h
6747 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6748 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6749 echo "configure:6750: checking for $ac_hdr" >&5
6750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6751 echo $ac_n "(cached) $ac_c" 1>&6
6752 else
6753 cat > conftest.$ac_ext <<EOF
6754 #line 6755 "configure"
6755 #include "confdefs.h"
6756 #include <$ac_hdr>
6758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6759 { (eval echo configure:6760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6761 if test -z "$ac_err"; then
6762 rm -rf conftest*
6763 eval "ac_cv_header_$ac_safe=yes"
6764 else
6765 echo "$ac_err" >&5
6766 echo "configure: failed program was:" >&5
6767 cat conftest.$ac_ext >&5
6768 rm -rf conftest*
6769 eval "ac_cv_header_$ac_safe=no"
6771 rm -f conftest*
6773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6774 echo "$ac_t""yes" 1>&6
6775 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6776 cat >> confdefs.h <<EOF
6777 #define $ac_tr_hdr 1
6779 ac_has_wchar_h=yes
6780 else
6781 echo "$ac_t""no" 1>&6
6782 ac_has_wchar_h=no
6784 done
6786 for ac_hdr in wctype.h
6788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6790 echo "configure:6791: checking for $ac_hdr" >&5
6791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6792 echo $ac_n "(cached) $ac_c" 1>&6
6793 else
6794 cat > conftest.$ac_ext <<EOF
6795 #line 6796 "configure"
6796 #include "confdefs.h"
6797 #include <$ac_hdr>
6799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6800 { (eval echo configure:6801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6802 if test -z "$ac_err"; then
6803 rm -rf conftest*
6804 eval "ac_cv_header_$ac_safe=yes"
6805 else
6806 echo "$ac_err" >&5
6807 echo "configure: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6809 rm -rf conftest*
6810 eval "ac_cv_header_$ac_safe=no"
6812 rm -f conftest*
6814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6815 echo "$ac_t""yes" 1>&6
6816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6817 cat >> confdefs.h <<EOF
6818 #define $ac_tr_hdr 1
6820 ac_has_wctype_h=yes
6821 else
6822 echo "$ac_t""no" 1>&6
6823 ac_has_wctype_h=no
6825 done
6828 if test x"$ac_has_wchar_h" = xyes &&
6829 test x"$ac_has_wctype_h" = xyes &&
6830 test x"$enable_c_mbchar" != xno; then
6832 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6833 echo "configure:6834: checking for WCHAR_MIN and WCHAR_MAX" >&5
6834 cat > conftest.$ac_ext <<EOF
6835 #line 6836 "configure"
6836 #include "confdefs.h"
6837 #include <wchar.h>
6838 int main() {
6839 int i = WCHAR_MIN; int j = WCHAR_MAX;
6840 ; return 0; }
6842 if { (eval echo configure:6843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6843 rm -rf conftest*
6844 has_wchar_minmax=yes
6845 else
6846 echo "configure: failed program was:" >&5
6847 cat conftest.$ac_ext >&5
6848 rm -rf conftest*
6849 has_wchar_minmax=no
6851 rm -f conftest*
6852 echo "$ac_t""$has_wchar_minmax" 1>&6
6854 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6855 echo "configure:6856: checking for WEOF" >&5
6856 cat > conftest.$ac_ext <<EOF
6857 #line 6858 "configure"
6858 #include "confdefs.h"
6860 #include <wchar.h>
6861 #include <stddef.h>
6862 int main() {
6863 wint_t i = WEOF;
6864 ; return 0; }
6866 if { (eval echo configure:6867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6867 rm -rf conftest*
6868 has_weof=yes
6869 else
6870 echo "configure: failed program was:" >&5
6871 cat conftest.$ac_ext >&5
6872 rm -rf conftest*
6873 has_weof=no
6875 rm -f conftest*
6876 echo "$ac_t""$has_weof" 1>&6
6878 ac_wfuncs=yes
6879 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6882 echo "configure:6883: checking for $ac_func" >&5
6883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6884 echo $ac_n "(cached) $ac_c" 1>&6
6885 else
6886 cat > conftest.$ac_ext <<EOF
6887 #line 6888 "configure"
6888 #include "confdefs.h"
6889 /* System header to define __stub macros and hopefully few prototypes,
6890 which can conflict with char $ac_func(); below. */
6891 #include <assert.h>
6892 /* Override any gcc2 internal prototype to avoid an error. */
6893 /* We use char because int might match the return type of a gcc2
6894 builtin and then its argument prototype would still apply. */
6895 char $ac_func();
6897 int main() {
6899 /* The GNU C library defines this for functions which it implements
6900 to always fail with ENOSYS. Some functions are actually named
6901 something starting with __ and the normal name is an alias. */
6902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6903 choke me
6904 #else
6905 $ac_func();
6906 #endif
6908 ; return 0; }
6910 if { (eval echo configure:6911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6911 rm -rf conftest*
6912 eval "ac_cv_func_$ac_func=yes"
6913 else
6914 echo "configure: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6916 rm -rf conftest*
6917 eval "ac_cv_func_$ac_func=no"
6919 rm -f conftest*
6922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6923 echo "$ac_t""yes" 1>&6
6924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6925 cat >> confdefs.h <<EOF
6926 #define $ac_tr_func 1
6929 else
6930 echo "$ac_t""no" 1>&6
6932 ac_wfuncs=no
6934 done
6937 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6938 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6939 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6940 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6941 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6942 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6945 echo "configure:6946: checking for $ac_func" >&5
6946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6947 echo $ac_n "(cached) $ac_c" 1>&6
6948 else
6949 cat > conftest.$ac_ext <<EOF
6950 #line 6951 "configure"
6951 #include "confdefs.h"
6952 /* System header to define __stub macros and hopefully few prototypes,
6953 which can conflict with char $ac_func(); below. */
6954 #include <assert.h>
6955 /* Override any gcc2 internal prototype to avoid an error. */
6956 /* We use char because int might match the return type of a gcc2
6957 builtin and then its argument prototype would still apply. */
6958 char $ac_func();
6960 int main() {
6962 /* The GNU C library defines this for functions which it implements
6963 to always fail with ENOSYS. Some functions are actually named
6964 something starting with __ and the normal name is an alias. */
6965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6966 choke me
6967 #else
6968 $ac_func();
6969 #endif
6971 ; return 0; }
6973 if { (eval echo configure:6974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6974 rm -rf conftest*
6975 eval "ac_cv_func_$ac_func=yes"
6976 else
6977 echo "configure: failed program was:" >&5
6978 cat conftest.$ac_ext >&5
6979 rm -rf conftest*
6980 eval "ac_cv_func_$ac_func=no"
6982 rm -f conftest*
6985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6986 echo "$ac_t""yes" 1>&6
6987 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6988 cat >> confdefs.h <<EOF
6989 #define $ac_tr_func 1
6992 else
6993 echo "$ac_t""no" 1>&6
6995 ac_wfuncs=no
6997 done
7000 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7001 echo "configure:7002: checking for ISO C99 wchar_t support" >&5
7002 if test x"$has_weof" = xyes &&
7003 test x"$has_wchar_minmax" = xyes &&
7004 test x"$ac_wfuncs" = xyes; then
7005 ac_isoC99_wchar_t=yes
7006 else
7007 ac_isoC99_wchar_t=no
7009 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7011 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7012 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7013 echo "configure:7014: checking for iconv.h" >&5
7014 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7015 echo $ac_n "(cached) $ac_c" 1>&6
7016 else
7017 cat > conftest.$ac_ext <<EOF
7018 #line 7019 "configure"
7019 #include "confdefs.h"
7020 #include <iconv.h>
7022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7023 { (eval echo configure:7024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7025 if test -z "$ac_err"; then
7026 rm -rf conftest*
7027 eval "ac_cv_header_$ac_safe=yes"
7028 else
7029 echo "$ac_err" >&5
7030 echo "configure: failed program was:" >&5
7031 cat conftest.$ac_ext >&5
7032 rm -rf conftest*
7033 eval "ac_cv_header_$ac_safe=no"
7035 rm -f conftest*
7037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7038 echo "$ac_t""yes" 1>&6
7039 ac_has_iconv_h=yes
7040 else
7041 echo "$ac_t""no" 1>&6
7042 ac_has_iconv_h=no
7045 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7046 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7047 echo "configure:7048: checking for langinfo.h" >&5
7048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7049 echo $ac_n "(cached) $ac_c" 1>&6
7050 else
7051 cat > conftest.$ac_ext <<EOF
7052 #line 7053 "configure"
7053 #include "confdefs.h"
7054 #include <langinfo.h>
7056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7057 { (eval echo configure:7058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7059 if test -z "$ac_err"; then
7060 rm -rf conftest*
7061 eval "ac_cv_header_$ac_safe=yes"
7062 else
7063 echo "$ac_err" >&5
7064 echo "configure: failed program was:" >&5
7065 cat conftest.$ac_ext >&5
7066 rm -rf conftest*
7067 eval "ac_cv_header_$ac_safe=no"
7069 rm -f conftest*
7071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7072 echo "$ac_t""yes" 1>&6
7073 ac_has_langinfo_h=yes
7074 else
7075 echo "$ac_t""no" 1>&6
7076 ac_has_langinfo_h=no
7080 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7081 echo "configure:7082: checking for iconv in -liconv" >&5
7082 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7084 echo $ac_n "(cached) $ac_c" 1>&6
7085 else
7086 ac_save_LIBS="$LIBS"
7087 LIBS="-liconv $LIBS"
7088 cat > conftest.$ac_ext <<EOF
7089 #line 7090 "configure"
7090 #include "confdefs.h"
7091 /* Override any gcc2 internal prototype to avoid an error. */
7092 /* We use char because int might match the return type of a gcc2
7093 builtin and then its argument prototype would still apply. */
7094 char iconv();
7096 int main() {
7097 iconv()
7098 ; return 0; }
7100 if { (eval echo configure:7101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7101 rm -rf conftest*
7102 eval "ac_cv_lib_$ac_lib_var=yes"
7103 else
7104 echo "configure: failed program was:" >&5
7105 cat conftest.$ac_ext >&5
7106 rm -rf conftest*
7107 eval "ac_cv_lib_$ac_lib_var=no"
7109 rm -f conftest*
7110 LIBS="$ac_save_LIBS"
7113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7114 echo "$ac_t""yes" 1>&6
7115 libiconv="-liconv"
7116 else
7117 echo "$ac_t""no" 1>&6
7120 ac_save_LIBS="$LIBS"
7121 LIBS="$LIBS $libiconv"
7123 for ac_func in iconv_open iconv_close iconv nl_langinfo
7125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7126 echo "configure:7127: checking for $ac_func" >&5
7127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7128 echo $ac_n "(cached) $ac_c" 1>&6
7129 else
7130 cat > conftest.$ac_ext <<EOF
7131 #line 7132 "configure"
7132 #include "confdefs.h"
7133 /* System header to define __stub macros and hopefully few prototypes,
7134 which can conflict with char $ac_func(); below. */
7135 #include <assert.h>
7136 /* Override any gcc2 internal prototype to avoid an error. */
7137 /* We use char because int might match the return type of a gcc2
7138 builtin and then its argument prototype would still apply. */
7139 char $ac_func();
7141 int main() {
7143 /* The GNU C library defines this for functions which it implements
7144 to always fail with ENOSYS. Some functions are actually named
7145 something starting with __ and the normal name is an alias. */
7146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7147 choke me
7148 #else
7149 $ac_func();
7150 #endif
7152 ; return 0; }
7154 if { (eval echo configure:7155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7155 rm -rf conftest*
7156 eval "ac_cv_func_$ac_func=yes"
7157 else
7158 echo "configure: failed program was:" >&5
7159 cat conftest.$ac_ext >&5
7160 rm -rf conftest*
7161 eval "ac_cv_func_$ac_func=no"
7163 rm -f conftest*
7166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7167 echo "$ac_t""yes" 1>&6
7168 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7169 cat >> confdefs.h <<EOF
7170 #define $ac_tr_func 1
7173 ac_XPG2funcs=yes
7174 else
7175 echo "$ac_t""no" 1>&6
7176 ac_XPG2funcs=no
7178 done
7181 LIBS="$ac_save_LIBS"
7183 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7184 echo "configure:7185: checking for XPG2 wchar_t support" >&5
7185 if test x"$ac_has_iconv_h" = xyes &&
7186 test x"$ac_has_langinfo_h" = xyes &&
7187 test x"$ac_XPG2funcs" = xyes; then
7188 ac_XPG2_wchar_t=yes
7189 else
7190 ac_XPG2_wchar_t=no
7192 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7194 if test x"$ac_isoC99_wchar_t" = xyes &&
7195 test x"$ac_XPG2_wchar_t" = xyes; then
7196 cat >> confdefs.h <<\EOF
7197 #define _GLIBCPP_USE_WCHAR_T 1
7200 enable_wchar_t=yes
7203 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7204 echo "configure:7205: checking for enabled wchar_t specializations" >&5
7205 echo "$ac_t""$enable_wchar_t" 1>&6
7208 if test "$enable_wchar_t" = yes; then
7209 GLIBCPP_TEST_WCHAR_T_TRUE=
7210 GLIBCPP_TEST_WCHAR_T_FALSE='#'
7211 else
7212 GLIBCPP_TEST_WCHAR_T_TRUE='#'
7213 GLIBCPP_TEST_WCHAR_T_FALSE=
7216 os_include_dir="os/bsd/netbsd"
7217 cat >> confdefs.h <<\EOF
7218 #define HAVE_COPYSIGN 1
7221 cat >> confdefs.h <<\EOF
7222 #define HAVE_COPYSIGNF 1
7225 cat >> confdefs.h <<\EOF
7226 #define HAVE_FINITEF 1
7229 cat >> confdefs.h <<\EOF
7230 #define HAVE_FINITE 1
7233 cat >> confdefs.h <<\EOF
7234 #define HAVE_FREXPF 1
7237 cat >> confdefs.h <<\EOF
7238 #define HAVE_HYPOTF 1
7241 cat >> confdefs.h <<\EOF
7242 #define HAVE_ISINF 1
7245 cat >> confdefs.h <<\EOF
7246 #define HAVE_ISINFF 1
7249 cat >> confdefs.h <<\EOF
7250 #define HAVE_ISNAN 1
7253 cat >> confdefs.h <<\EOF
7254 #define HAVE_ISNANF 1
7257 if test x"long_double_math_on_this_cpu" = x"yes"; then
7258 cat >> confdefs.h <<\EOF
7259 #define HAVE_FINITEL 1
7262 cat >> confdefs.h <<\EOF
7263 #define HAVE_ISINFL 1
7266 cat >> confdefs.h <<\EOF
7267 #define HAVE_ISNANL 1
7272 *-freebsd*)
7273 # Check for available headers.
7274 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
7275 machine/endian.h machine/param.h sys/machine.h sys/types.h \
7276 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7277 sys/time.h unistd.h
7279 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7280 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7281 echo "configure:7282: checking for $ac_hdr" >&5
7282 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7283 echo $ac_n "(cached) $ac_c" 1>&6
7284 else
7285 cat > conftest.$ac_ext <<EOF
7286 #line 7287 "configure"
7287 #include "confdefs.h"
7288 #include <$ac_hdr>
7290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7291 { (eval echo configure:7292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7293 if test -z "$ac_err"; then
7294 rm -rf conftest*
7295 eval "ac_cv_header_$ac_safe=yes"
7296 else
7297 echo "$ac_err" >&5
7298 echo "configure: failed program was:" >&5
7299 cat conftest.$ac_ext >&5
7300 rm -rf conftest*
7301 eval "ac_cv_header_$ac_safe=no"
7303 rm -f conftest*
7305 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7306 echo "$ac_t""yes" 1>&6
7307 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7308 cat >> confdefs.h <<EOF
7309 #define $ac_tr_hdr 1
7312 else
7313 echo "$ac_t""no" 1>&6
7315 done
7317 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7320 # If we're not using GNU ld, then there's no point in even trying these
7321 # tests. Check for that first. We should have already tested for gld
7322 # by now (in libtool), but require it now just to be safe...
7323 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7324 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7327 # The name set by libtool depends on the version of libtool. Shame on us
7328 # for depending on an impl detail, but c'est la vie. Older versions used
7329 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7330 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7331 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7332 # set (hence we're using an older libtool), then set it.
7333 if test x${with_gnu_ld+set} != xset; then
7334 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7335 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7336 with_gnu_ld=no
7337 else
7338 with_gnu_ld=$ac_cv_prog_gnu_ld
7342 # Start by getting the version number. I think the libtool test already
7343 # does some of this, but throws away the result.
7345 ldver=`$LD --version 2>/dev/null | head -1 | \
7346 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7348 glibcpp_gnu_ld_version=`echo $ldver | \
7349 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7351 # Set --gc-sections.
7352 if test "$with_gnu_ld" = "notbroken"; then
7353 # GNU ld it is! Joy and bunny rabbits!
7355 # All these tests are for C++; save the language and the compiler flags.
7356 # Need to do this so that g++ won't try to link in libstdc++
7357 ac_test_CFLAGS="${CFLAGS+set}"
7358 ac_save_CFLAGS="$CFLAGS"
7359 CFLAGS='-x c++ -Wl,--gc-sections'
7361 # Check for -Wl,--gc-sections
7362 # XXX This test is broken at the moment, as symbols required for
7363 # linking are now in libsupc++ (not built yet.....). In addition,
7364 # this test has cored on solaris in the past. In addition,
7365 # --gc-sections doesn't really work at the moment (keeps on discarding
7366 # used sections, first .eh_frame and now some of the glibc sections for
7367 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7368 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7369 echo "configure:7370: checking for ld that supports -Wl,--gc-sections" >&5
7370 if test "$cross_compiling" = yes; then
7371 ac_sectionLDflags=yes
7372 else
7373 cat > conftest.$ac_ext <<EOF
7374 #line 7375 "configure"
7375 #include "confdefs.h"
7377 int main(void)
7379 try { throw 1; }
7380 catch (...) { };
7381 return 0;
7385 if { (eval echo configure:7386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7386 then
7387 ac_sectionLDflags=yes
7388 else
7389 echo "configure: failed program was:" >&5
7390 cat conftest.$ac_ext >&5
7391 rm -fr conftest*
7392 ac_sectionLDflags=no
7394 rm -fr conftest*
7397 if test "$ac_test_CFLAGS" = set; then
7398 CFLAGS="$ac_save_CFLAGS"
7399 else
7400 # this is the suspicious part
7401 CFLAGS=''
7403 if test "$ac_sectionLDflags" = "yes"; then
7404 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7406 echo "$ac_t""$ac_sectionLDflags" 1>&6
7409 # Set linker optimization flags.
7410 if test x"$with_gnu_ld" = x"yes"; then
7411 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7418 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7419 echo "configure:7420: checking for main in -lm" >&5
7420 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7422 echo $ac_n "(cached) $ac_c" 1>&6
7423 else
7424 ac_save_LIBS="$LIBS"
7425 LIBS="-lm $LIBS"
7426 cat > conftest.$ac_ext <<EOF
7427 #line 7428 "configure"
7428 #include "confdefs.h"
7430 int main() {
7431 main()
7432 ; return 0; }
7434 if { (eval echo configure:7435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7435 rm -rf conftest*
7436 eval "ac_cv_lib_$ac_lib_var=yes"
7437 else
7438 echo "configure: failed program was:" >&5
7439 cat conftest.$ac_ext >&5
7440 rm -rf conftest*
7441 eval "ac_cv_lib_$ac_lib_var=no"
7443 rm -f conftest*
7444 LIBS="$ac_save_LIBS"
7447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7448 echo "$ac_t""yes" 1>&6
7449 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7450 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7451 cat >> confdefs.h <<EOF
7452 #define $ac_tr_lib 1
7455 LIBS="-lm $LIBS"
7457 else
7458 echo "$ac_t""no" 1>&6
7461 for ac_func in nan copysignf
7463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7464 echo "configure:7465: checking for $ac_func" >&5
7465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7466 echo $ac_n "(cached) $ac_c" 1>&6
7467 else
7468 cat > conftest.$ac_ext <<EOF
7469 #line 7470 "configure"
7470 #include "confdefs.h"
7471 /* System header to define __stub macros and hopefully few prototypes,
7472 which can conflict with char $ac_func(); below. */
7473 #include <assert.h>
7474 /* Override any gcc2 internal prototype to avoid an error. */
7475 /* We use char because int might match the return type of a gcc2
7476 builtin and then its argument prototype would still apply. */
7477 char $ac_func();
7479 int main() {
7481 /* The GNU C library defines this for functions which it implements
7482 to always fail with ENOSYS. Some functions are actually named
7483 something starting with __ and the normal name is an alias. */
7484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7485 choke me
7486 #else
7487 $ac_func();
7488 #endif
7490 ; return 0; }
7492 if { (eval echo configure:7493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7493 rm -rf conftest*
7494 eval "ac_cv_func_$ac_func=yes"
7495 else
7496 echo "configure: failed program was:" >&5
7497 cat conftest.$ac_ext >&5
7498 rm -rf conftest*
7499 eval "ac_cv_func_$ac_func=no"
7501 rm -f conftest*
7504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7505 echo "$ac_t""yes" 1>&6
7506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7507 cat >> confdefs.h <<EOF
7508 #define $ac_tr_func 1
7511 else
7512 echo "$ac_t""no" 1>&6
7513 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7515 done
7518 for ac_func in __signbit
7520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7521 echo "configure:7522: checking for $ac_func" >&5
7522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7523 echo $ac_n "(cached) $ac_c" 1>&6
7524 else
7525 cat > conftest.$ac_ext <<EOF
7526 #line 7527 "configure"
7527 #include "confdefs.h"
7528 /* System header to define __stub macros and hopefully few prototypes,
7529 which can conflict with char $ac_func(); below. */
7530 #include <assert.h>
7531 /* Override any gcc2 internal prototype to avoid an error. */
7532 /* We use char because int might match the return type of a gcc2
7533 builtin and then its argument prototype would still apply. */
7534 char $ac_func();
7536 int main() {
7538 /* The GNU C library defines this for functions which it implements
7539 to always fail with ENOSYS. Some functions are actually named
7540 something starting with __ and the normal name is an alias. */
7541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7542 choke me
7543 #else
7544 $ac_func();
7545 #endif
7547 ; return 0; }
7549 if { (eval echo configure:7550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7550 rm -rf conftest*
7551 eval "ac_cv_func_$ac_func=yes"
7552 else
7553 echo "configure: failed program was:" >&5
7554 cat conftest.$ac_ext >&5
7555 rm -rf conftest*
7556 eval "ac_cv_func_$ac_func=no"
7558 rm -f conftest*
7561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7562 echo "$ac_t""yes" 1>&6
7563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7564 cat >> confdefs.h <<EOF
7565 #define $ac_tr_func 1
7568 else
7569 echo "$ac_t""no" 1>&6
7570 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7572 done
7574 for ac_func in __signbitf
7576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7577 echo "configure:7578: checking for $ac_func" >&5
7578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7579 echo $ac_n "(cached) $ac_c" 1>&6
7580 else
7581 cat > conftest.$ac_ext <<EOF
7582 #line 7583 "configure"
7583 #include "confdefs.h"
7584 /* System header to define __stub macros and hopefully few prototypes,
7585 which can conflict with char $ac_func(); below. */
7586 #include <assert.h>
7587 /* Override any gcc2 internal prototype to avoid an error. */
7588 /* We use char because int might match the return type of a gcc2
7589 builtin and then its argument prototype would still apply. */
7590 char $ac_func();
7592 int main() {
7594 /* The GNU C library defines this for functions which it implements
7595 to always fail with ENOSYS. Some functions are actually named
7596 something starting with __ and the normal name is an alias. */
7597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7598 choke me
7599 #else
7600 $ac_func();
7601 #endif
7603 ; return 0; }
7605 if { (eval echo configure:7606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7606 rm -rf conftest*
7607 eval "ac_cv_func_$ac_func=yes"
7608 else
7609 echo "configure: failed program was:" >&5
7610 cat conftest.$ac_ext >&5
7611 rm -rf conftest*
7612 eval "ac_cv_func_$ac_func=no"
7614 rm -f conftest*
7617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7618 echo "$ac_t""yes" 1>&6
7619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7620 cat >> confdefs.h <<EOF
7621 #define $ac_tr_func 1
7624 else
7625 echo "$ac_t""no" 1>&6
7626 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7628 done
7631 if test x$ac_cv_func_copysignl = x"yes"; then
7632 for ac_func in __signbitl
7634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7635 echo "configure:7636: checking for $ac_func" >&5
7636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7637 echo $ac_n "(cached) $ac_c" 1>&6
7638 else
7639 cat > conftest.$ac_ext <<EOF
7640 #line 7641 "configure"
7641 #include "confdefs.h"
7642 /* System header to define __stub macros and hopefully few prototypes,
7643 which can conflict with char $ac_func(); below. */
7644 #include <assert.h>
7645 /* Override any gcc2 internal prototype to avoid an error. */
7646 /* We use char because int might match the return type of a gcc2
7647 builtin and then its argument prototype would still apply. */
7648 char $ac_func();
7650 int main() {
7652 /* The GNU C library defines this for functions which it implements
7653 to always fail with ENOSYS. Some functions are actually named
7654 something starting with __ and the normal name is an alias. */
7655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7656 choke me
7657 #else
7658 $ac_func();
7659 #endif
7661 ; return 0; }
7663 if { (eval echo configure:7664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7664 rm -rf conftest*
7665 eval "ac_cv_func_$ac_func=yes"
7666 else
7667 echo "configure: failed program was:" >&5
7668 cat conftest.$ac_ext >&5
7669 rm -rf conftest*
7670 eval "ac_cv_func_$ac_func=no"
7672 rm -f conftest*
7675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7676 echo "$ac_t""yes" 1>&6
7677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7678 cat >> confdefs.h <<EOF
7679 #define $ac_tr_func 1
7682 else
7683 echo "$ac_t""no" 1>&6
7684 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7686 done
7690 if test -n "$LIBMATHOBJS"; then
7691 need_libmath=yes
7696 if test "$need_libmath" = yes; then
7697 GLIBCPP_BUILD_LIBMATH_TRUE=
7698 GLIBCPP_BUILD_LIBMATH_FALSE='#'
7699 else
7700 GLIBCPP_BUILD_LIBMATH_TRUE='#'
7701 GLIBCPP_BUILD_LIBMATH_FALSE=
7705 enable_wchar_t=no
7707 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7708 echo "configure:7709: checking for mbstate_t" >&5
7709 cat > conftest.$ac_ext <<EOF
7710 #line 7711 "configure"
7711 #include "confdefs.h"
7712 #include <wchar.h>
7713 int main() {
7714 mbstate_t teststate;
7715 ; return 0; }
7717 if { (eval echo configure:7718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7718 rm -rf conftest*
7719 have_mbstate_t=yes
7720 else
7721 echo "configure: failed program was:" >&5
7722 cat conftest.$ac_ext >&5
7723 rm -rf conftest*
7724 have_mbstate_t=no
7726 rm -f conftest*
7727 echo "$ac_t""$have_mbstate_t" 1>&6
7728 if test x"$have_mbstate_t" = xyes; then
7729 cat >> confdefs.h <<\EOF
7730 #define HAVE_MBSTATE_T 1
7735 for ac_hdr in wchar.h
7737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7739 echo "configure:7740: checking for $ac_hdr" >&5
7740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7741 echo $ac_n "(cached) $ac_c" 1>&6
7742 else
7743 cat > conftest.$ac_ext <<EOF
7744 #line 7745 "configure"
7745 #include "confdefs.h"
7746 #include <$ac_hdr>
7748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7749 { (eval echo configure:7750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7751 if test -z "$ac_err"; then
7752 rm -rf conftest*
7753 eval "ac_cv_header_$ac_safe=yes"
7754 else
7755 echo "$ac_err" >&5
7756 echo "configure: failed program was:" >&5
7757 cat conftest.$ac_ext >&5
7758 rm -rf conftest*
7759 eval "ac_cv_header_$ac_safe=no"
7761 rm -f conftest*
7763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7764 echo "$ac_t""yes" 1>&6
7765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7766 cat >> confdefs.h <<EOF
7767 #define $ac_tr_hdr 1
7769 ac_has_wchar_h=yes
7770 else
7771 echo "$ac_t""no" 1>&6
7772 ac_has_wchar_h=no
7774 done
7776 for ac_hdr in wctype.h
7778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7780 echo "configure:7781: checking for $ac_hdr" >&5
7781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7782 echo $ac_n "(cached) $ac_c" 1>&6
7783 else
7784 cat > conftest.$ac_ext <<EOF
7785 #line 7786 "configure"
7786 #include "confdefs.h"
7787 #include <$ac_hdr>
7789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7790 { (eval echo configure:7791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7792 if test -z "$ac_err"; then
7793 rm -rf conftest*
7794 eval "ac_cv_header_$ac_safe=yes"
7795 else
7796 echo "$ac_err" >&5
7797 echo "configure: failed program was:" >&5
7798 cat conftest.$ac_ext >&5
7799 rm -rf conftest*
7800 eval "ac_cv_header_$ac_safe=no"
7802 rm -f conftest*
7804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7805 echo "$ac_t""yes" 1>&6
7806 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7807 cat >> confdefs.h <<EOF
7808 #define $ac_tr_hdr 1
7810 ac_has_wctype_h=yes
7811 else
7812 echo "$ac_t""no" 1>&6
7813 ac_has_wctype_h=no
7815 done
7818 if test x"$ac_has_wchar_h" = xyes &&
7819 test x"$ac_has_wctype_h" = xyes &&
7820 test x"$enable_c_mbchar" != xno; then
7822 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7823 echo "configure:7824: checking for WCHAR_MIN and WCHAR_MAX" >&5
7824 cat > conftest.$ac_ext <<EOF
7825 #line 7826 "configure"
7826 #include "confdefs.h"
7827 #include <wchar.h>
7828 int main() {
7829 int i = WCHAR_MIN; int j = WCHAR_MAX;
7830 ; return 0; }
7832 if { (eval echo configure:7833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7833 rm -rf conftest*
7834 has_wchar_minmax=yes
7835 else
7836 echo "configure: failed program was:" >&5
7837 cat conftest.$ac_ext >&5
7838 rm -rf conftest*
7839 has_wchar_minmax=no
7841 rm -f conftest*
7842 echo "$ac_t""$has_wchar_minmax" 1>&6
7844 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7845 echo "configure:7846: checking for WEOF" >&5
7846 cat > conftest.$ac_ext <<EOF
7847 #line 7848 "configure"
7848 #include "confdefs.h"
7850 #include <wchar.h>
7851 #include <stddef.h>
7852 int main() {
7853 wint_t i = WEOF;
7854 ; return 0; }
7856 if { (eval echo configure:7857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7857 rm -rf conftest*
7858 has_weof=yes
7859 else
7860 echo "configure: failed program was:" >&5
7861 cat conftest.$ac_ext >&5
7862 rm -rf conftest*
7863 has_weof=no
7865 rm -f conftest*
7866 echo "$ac_t""$has_weof" 1>&6
7868 ac_wfuncs=yes
7869 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7872 echo "configure:7873: checking for $ac_func" >&5
7873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7874 echo $ac_n "(cached) $ac_c" 1>&6
7875 else
7876 cat > conftest.$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7879 /* System header to define __stub macros and hopefully few prototypes,
7880 which can conflict with char $ac_func(); below. */
7881 #include <assert.h>
7882 /* Override any gcc2 internal prototype to avoid an error. */
7883 /* We use char because int might match the return type of a gcc2
7884 builtin and then its argument prototype would still apply. */
7885 char $ac_func();
7887 int main() {
7889 /* The GNU C library defines this for functions which it implements
7890 to always fail with ENOSYS. Some functions are actually named
7891 something starting with __ and the normal name is an alias. */
7892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7893 choke me
7894 #else
7895 $ac_func();
7896 #endif
7898 ; return 0; }
7900 if { (eval echo configure:7901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7901 rm -rf conftest*
7902 eval "ac_cv_func_$ac_func=yes"
7903 else
7904 echo "configure: failed program was:" >&5
7905 cat conftest.$ac_ext >&5
7906 rm -rf conftest*
7907 eval "ac_cv_func_$ac_func=no"
7909 rm -f conftest*
7912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7913 echo "$ac_t""yes" 1>&6
7914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7915 cat >> confdefs.h <<EOF
7916 #define $ac_tr_func 1
7919 else
7920 echo "$ac_t""no" 1>&6
7922 ac_wfuncs=no
7924 done
7927 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7928 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7929 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7930 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7931 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7932 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7935 echo "configure:7936: checking for $ac_func" >&5
7936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7937 echo $ac_n "(cached) $ac_c" 1>&6
7938 else
7939 cat > conftest.$ac_ext <<EOF
7940 #line 7941 "configure"
7941 #include "confdefs.h"
7942 /* System header to define __stub macros and hopefully few prototypes,
7943 which can conflict with char $ac_func(); below. */
7944 #include <assert.h>
7945 /* Override any gcc2 internal prototype to avoid an error. */
7946 /* We use char because int might match the return type of a gcc2
7947 builtin and then its argument prototype would still apply. */
7948 char $ac_func();
7950 int main() {
7952 /* The GNU C library defines this for functions which it implements
7953 to always fail with ENOSYS. Some functions are actually named
7954 something starting with __ and the normal name is an alias. */
7955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7956 choke me
7957 #else
7958 $ac_func();
7959 #endif
7961 ; return 0; }
7963 if { (eval echo configure:7964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7964 rm -rf conftest*
7965 eval "ac_cv_func_$ac_func=yes"
7966 else
7967 echo "configure: failed program was:" >&5
7968 cat conftest.$ac_ext >&5
7969 rm -rf conftest*
7970 eval "ac_cv_func_$ac_func=no"
7972 rm -f conftest*
7975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7976 echo "$ac_t""yes" 1>&6
7977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7978 cat >> confdefs.h <<EOF
7979 #define $ac_tr_func 1
7982 else
7983 echo "$ac_t""no" 1>&6
7985 ac_wfuncs=no
7987 done
7990 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7991 echo "configure:7992: checking for ISO C99 wchar_t support" >&5
7992 if test x"$has_weof" = xyes &&
7993 test x"$has_wchar_minmax" = xyes &&
7994 test x"$ac_wfuncs" = xyes; then
7995 ac_isoC99_wchar_t=yes
7996 else
7997 ac_isoC99_wchar_t=no
7999 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8001 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8002 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8003 echo "configure:8004: checking for iconv.h" >&5
8004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8005 echo $ac_n "(cached) $ac_c" 1>&6
8006 else
8007 cat > conftest.$ac_ext <<EOF
8008 #line 8009 "configure"
8009 #include "confdefs.h"
8010 #include <iconv.h>
8012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8013 { (eval echo configure:8014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8015 if test -z "$ac_err"; then
8016 rm -rf conftest*
8017 eval "ac_cv_header_$ac_safe=yes"
8018 else
8019 echo "$ac_err" >&5
8020 echo "configure: failed program was:" >&5
8021 cat conftest.$ac_ext >&5
8022 rm -rf conftest*
8023 eval "ac_cv_header_$ac_safe=no"
8025 rm -f conftest*
8027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8028 echo "$ac_t""yes" 1>&6
8029 ac_has_iconv_h=yes
8030 else
8031 echo "$ac_t""no" 1>&6
8032 ac_has_iconv_h=no
8035 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8036 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8037 echo "configure:8038: checking for langinfo.h" >&5
8038 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8039 echo $ac_n "(cached) $ac_c" 1>&6
8040 else
8041 cat > conftest.$ac_ext <<EOF
8042 #line 8043 "configure"
8043 #include "confdefs.h"
8044 #include <langinfo.h>
8046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8047 { (eval echo configure:8048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8049 if test -z "$ac_err"; then
8050 rm -rf conftest*
8051 eval "ac_cv_header_$ac_safe=yes"
8052 else
8053 echo "$ac_err" >&5
8054 echo "configure: failed program was:" >&5
8055 cat conftest.$ac_ext >&5
8056 rm -rf conftest*
8057 eval "ac_cv_header_$ac_safe=no"
8059 rm -f conftest*
8061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8062 echo "$ac_t""yes" 1>&6
8063 ac_has_langinfo_h=yes
8064 else
8065 echo "$ac_t""no" 1>&6
8066 ac_has_langinfo_h=no
8070 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8071 echo "configure:8072: checking for iconv in -liconv" >&5
8072 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8073 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8074 echo $ac_n "(cached) $ac_c" 1>&6
8075 else
8076 ac_save_LIBS="$LIBS"
8077 LIBS="-liconv $LIBS"
8078 cat > conftest.$ac_ext <<EOF
8079 #line 8080 "configure"
8080 #include "confdefs.h"
8081 /* Override any gcc2 internal prototype to avoid an error. */
8082 /* We use char because int might match the return type of a gcc2
8083 builtin and then its argument prototype would still apply. */
8084 char iconv();
8086 int main() {
8087 iconv()
8088 ; return 0; }
8090 if { (eval echo configure:8091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8091 rm -rf conftest*
8092 eval "ac_cv_lib_$ac_lib_var=yes"
8093 else
8094 echo "configure: failed program was:" >&5
8095 cat conftest.$ac_ext >&5
8096 rm -rf conftest*
8097 eval "ac_cv_lib_$ac_lib_var=no"
8099 rm -f conftest*
8100 LIBS="$ac_save_LIBS"
8103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8104 echo "$ac_t""yes" 1>&6
8105 libiconv="-liconv"
8106 else
8107 echo "$ac_t""no" 1>&6
8110 ac_save_LIBS="$LIBS"
8111 LIBS="$LIBS $libiconv"
8113 for ac_func in iconv_open iconv_close iconv nl_langinfo
8115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8116 echo "configure:8117: checking for $ac_func" >&5
8117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8118 echo $ac_n "(cached) $ac_c" 1>&6
8119 else
8120 cat > conftest.$ac_ext <<EOF
8121 #line 8122 "configure"
8122 #include "confdefs.h"
8123 /* System header to define __stub macros and hopefully few prototypes,
8124 which can conflict with char $ac_func(); below. */
8125 #include <assert.h>
8126 /* Override any gcc2 internal prototype to avoid an error. */
8127 /* We use char because int might match the return type of a gcc2
8128 builtin and then its argument prototype would still apply. */
8129 char $ac_func();
8131 int main() {
8133 /* The GNU C library defines this for functions which it implements
8134 to always fail with ENOSYS. Some functions are actually named
8135 something starting with __ and the normal name is an alias. */
8136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8137 choke me
8138 #else
8139 $ac_func();
8140 #endif
8142 ; return 0; }
8144 if { (eval echo configure:8145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8145 rm -rf conftest*
8146 eval "ac_cv_func_$ac_func=yes"
8147 else
8148 echo "configure: failed program was:" >&5
8149 cat conftest.$ac_ext >&5
8150 rm -rf conftest*
8151 eval "ac_cv_func_$ac_func=no"
8153 rm -f conftest*
8156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8157 echo "$ac_t""yes" 1>&6
8158 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8159 cat >> confdefs.h <<EOF
8160 #define $ac_tr_func 1
8163 ac_XPG2funcs=yes
8164 else
8165 echo "$ac_t""no" 1>&6
8166 ac_XPG2funcs=no
8168 done
8171 LIBS="$ac_save_LIBS"
8173 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8174 echo "configure:8175: checking for XPG2 wchar_t support" >&5
8175 if test x"$ac_has_iconv_h" = xyes &&
8176 test x"$ac_has_langinfo_h" = xyes &&
8177 test x"$ac_XPG2funcs" = xyes; then
8178 ac_XPG2_wchar_t=yes
8179 else
8180 ac_XPG2_wchar_t=no
8182 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8184 if test x"$ac_isoC99_wchar_t" = xyes &&
8185 test x"$ac_XPG2_wchar_t" = xyes; then
8186 cat >> confdefs.h <<\EOF
8187 #define _GLIBCPP_USE_WCHAR_T 1
8190 enable_wchar_t=yes
8193 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8194 echo "configure:8195: checking for enabled wchar_t specializations" >&5
8195 echo "$ac_t""$enable_wchar_t" 1>&6
8198 if test "$enable_wchar_t" = yes; then
8199 GLIBCPP_TEST_WCHAR_T_TRUE=
8200 GLIBCPP_TEST_WCHAR_T_FALSE='#'
8201 else
8202 GLIBCPP_TEST_WCHAR_T_TRUE='#'
8203 GLIBCPP_TEST_WCHAR_T_FALSE=
8206 os_include_dir="os/bsd/freebsd"
8207 cat >> confdefs.h <<\EOF
8208 #define HAVE_LC_MESSAGES 1
8211 cat >> confdefs.h <<\EOF
8212 #define HAVE_DRAND48 1
8215 cat >> confdefs.h <<\EOF
8216 #define HAVE_GETPAGESIZE 1
8219 cat >> confdefs.h <<\EOF
8220 #define HAVE_SETENV 1
8223 cat >> confdefs.h <<\EOF
8224 #define HAVE_SIGSETJMP 1
8227 cat >> confdefs.h <<\EOF
8228 #define HAVE_COPYSIGN 1
8231 cat >> confdefs.h <<\EOF
8232 #define HAVE_COPYSIGNF 1
8235 cat >> confdefs.h <<\EOF
8236 #define HAVE_FINITEF 1
8239 cat >> confdefs.h <<\EOF
8240 #define HAVE_FINITE 1
8243 cat >> confdefs.h <<\EOF
8244 #define HAVE_FREXPF 1
8247 cat >> confdefs.h <<\EOF
8248 #define HAVE_HYPOT 1
8251 cat >> confdefs.h <<\EOF
8252 #define HAVE_HYPOTF 1
8255 cat >> confdefs.h <<\EOF
8256 #define HAVE_ISINF 1
8259 cat >> confdefs.h <<\EOF
8260 #define HAVE_ISNAN 1
8263 cat >> confdefs.h <<\EOF
8264 #define HAVE_ISNANF 1
8267 if test x"long_double_math_on_this_cpu" = x"yes"; then
8268 cat >> confdefs.h <<\EOF
8269 #define HAVE_FINITEL 1
8272 cat >> confdefs.h <<\EOF
8273 #define HAVE_ISINFL 1
8276 cat >> confdefs.h <<\EOF
8277 #define HAVE_ISNANL 1
8282 *-mingw32*)
8283 for ac_hdr in sys/types.h locale.h float.h
8285 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8286 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8287 echo "configure:8288: checking for $ac_hdr" >&5
8288 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8289 echo $ac_n "(cached) $ac_c" 1>&6
8290 else
8291 cat > conftest.$ac_ext <<EOF
8292 #line 8293 "configure"
8293 #include "confdefs.h"
8294 #include <$ac_hdr>
8296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8297 { (eval echo configure:8298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8299 if test -z "$ac_err"; then
8300 rm -rf conftest*
8301 eval "ac_cv_header_$ac_safe=yes"
8302 else
8303 echo "$ac_err" >&5
8304 echo "configure: failed program was:" >&5
8305 cat conftest.$ac_ext >&5
8306 rm -rf conftest*
8307 eval "ac_cv_header_$ac_safe=no"
8309 rm -f conftest*
8311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8312 echo "$ac_t""yes" 1>&6
8313 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8314 cat >> confdefs.h <<EOF
8315 #define $ac_tr_hdr 1
8318 else
8319 echo "$ac_t""no" 1>&6
8321 done
8324 # If we're not using GNU ld, then there's no point in even trying these
8325 # tests. Check for that first. We should have already tested for gld
8326 # by now (in libtool), but require it now just to be safe...
8327 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8328 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8331 # The name set by libtool depends on the version of libtool. Shame on us
8332 # for depending on an impl detail, but c'est la vie. Older versions used
8333 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8334 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8335 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8336 # set (hence we're using an older libtool), then set it.
8337 if test x${with_gnu_ld+set} != xset; then
8338 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8339 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8340 with_gnu_ld=no
8341 else
8342 with_gnu_ld=$ac_cv_prog_gnu_ld
8346 # Start by getting the version number. I think the libtool test already
8347 # does some of this, but throws away the result.
8349 ldver=`$LD --version 2>/dev/null | head -1 | \
8350 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8352 glibcpp_gnu_ld_version=`echo $ldver | \
8353 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8355 # Set --gc-sections.
8356 if test "$with_gnu_ld" = "notbroken"; then
8357 # GNU ld it is! Joy and bunny rabbits!
8359 # All these tests are for C++; save the language and the compiler flags.
8360 # Need to do this so that g++ won't try to link in libstdc++
8361 ac_test_CFLAGS="${CFLAGS+set}"
8362 ac_save_CFLAGS="$CFLAGS"
8363 CFLAGS='-x c++ -Wl,--gc-sections'
8365 # Check for -Wl,--gc-sections
8366 # XXX This test is broken at the moment, as symbols required for
8367 # linking are now in libsupc++ (not built yet.....). In addition,
8368 # this test has cored on solaris in the past. In addition,
8369 # --gc-sections doesn't really work at the moment (keeps on discarding
8370 # used sections, first .eh_frame and now some of the glibc sections for
8371 # iconv). Bzzzzt. Thanks for playing, maybe next time.
8372 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8373 echo "configure:8374: checking for ld that supports -Wl,--gc-sections" >&5
8374 if test "$cross_compiling" = yes; then
8375 ac_sectionLDflags=yes
8376 else
8377 cat > conftest.$ac_ext <<EOF
8378 #line 8379 "configure"
8379 #include "confdefs.h"
8381 int main(void)
8383 try { throw 1; }
8384 catch (...) { };
8385 return 0;
8389 if { (eval echo configure:8390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8390 then
8391 ac_sectionLDflags=yes
8392 else
8393 echo "configure: failed program was:" >&5
8394 cat conftest.$ac_ext >&5
8395 rm -fr conftest*
8396 ac_sectionLDflags=no
8398 rm -fr conftest*
8401 if test "$ac_test_CFLAGS" = set; then
8402 CFLAGS="$ac_save_CFLAGS"
8403 else
8404 # this is the suspicious part
8405 CFLAGS=''
8407 if test "$ac_sectionLDflags" = "yes"; then
8408 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8410 echo "$ac_t""$ac_sectionLDflags" 1>&6
8413 # Set linker optimization flags.
8414 if test x"$with_gnu_ld" = x"yes"; then
8415 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8422 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8423 echo "configure:8424: checking for main in -lm" >&5
8424 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8426 echo $ac_n "(cached) $ac_c" 1>&6
8427 else
8428 ac_save_LIBS="$LIBS"
8429 LIBS="-lm $LIBS"
8430 cat > conftest.$ac_ext <<EOF
8431 #line 8432 "configure"
8432 #include "confdefs.h"
8434 int main() {
8435 main()
8436 ; return 0; }
8438 if { (eval echo configure:8439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8439 rm -rf conftest*
8440 eval "ac_cv_lib_$ac_lib_var=yes"
8441 else
8442 echo "configure: failed program was:" >&5
8443 cat conftest.$ac_ext >&5
8444 rm -rf conftest*
8445 eval "ac_cv_lib_$ac_lib_var=no"
8447 rm -f conftest*
8448 LIBS="$ac_save_LIBS"
8451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8452 echo "$ac_t""yes" 1>&6
8453 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8454 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8455 cat >> confdefs.h <<EOF
8456 #define $ac_tr_lib 1
8459 LIBS="-lm $LIBS"
8461 else
8462 echo "$ac_t""no" 1>&6
8465 for ac_func in nan copysignf
8467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8468 echo "configure:8469: checking for $ac_func" >&5
8469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8470 echo $ac_n "(cached) $ac_c" 1>&6
8471 else
8472 cat > conftest.$ac_ext <<EOF
8473 #line 8474 "configure"
8474 #include "confdefs.h"
8475 /* System header to define __stub macros and hopefully few prototypes,
8476 which can conflict with char $ac_func(); below. */
8477 #include <assert.h>
8478 /* Override any gcc2 internal prototype to avoid an error. */
8479 /* We use char because int might match the return type of a gcc2
8480 builtin and then its argument prototype would still apply. */
8481 char $ac_func();
8483 int main() {
8485 /* The GNU C library defines this for functions which it implements
8486 to always fail with ENOSYS. Some functions are actually named
8487 something starting with __ and the normal name is an alias. */
8488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8489 choke me
8490 #else
8491 $ac_func();
8492 #endif
8494 ; return 0; }
8496 if { (eval echo configure:8497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8497 rm -rf conftest*
8498 eval "ac_cv_func_$ac_func=yes"
8499 else
8500 echo "configure: failed program was:" >&5
8501 cat conftest.$ac_ext >&5
8502 rm -rf conftest*
8503 eval "ac_cv_func_$ac_func=no"
8505 rm -f conftest*
8508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8509 echo "$ac_t""yes" 1>&6
8510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8511 cat >> confdefs.h <<EOF
8512 #define $ac_tr_func 1
8515 else
8516 echo "$ac_t""no" 1>&6
8517 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8519 done
8522 for ac_func in __signbit
8524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8525 echo "configure:8526: checking for $ac_func" >&5
8526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8527 echo $ac_n "(cached) $ac_c" 1>&6
8528 else
8529 cat > conftest.$ac_ext <<EOF
8530 #line 8531 "configure"
8531 #include "confdefs.h"
8532 /* System header to define __stub macros and hopefully few prototypes,
8533 which can conflict with char $ac_func(); below. */
8534 #include <assert.h>
8535 /* Override any gcc2 internal prototype to avoid an error. */
8536 /* We use char because int might match the return type of a gcc2
8537 builtin and then its argument prototype would still apply. */
8538 char $ac_func();
8540 int main() {
8542 /* The GNU C library defines this for functions which it implements
8543 to always fail with ENOSYS. Some functions are actually named
8544 something starting with __ and the normal name is an alias. */
8545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8546 choke me
8547 #else
8548 $ac_func();
8549 #endif
8551 ; return 0; }
8553 if { (eval echo configure:8554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8554 rm -rf conftest*
8555 eval "ac_cv_func_$ac_func=yes"
8556 else
8557 echo "configure: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8559 rm -rf conftest*
8560 eval "ac_cv_func_$ac_func=no"
8562 rm -f conftest*
8565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8566 echo "$ac_t""yes" 1>&6
8567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8568 cat >> confdefs.h <<EOF
8569 #define $ac_tr_func 1
8572 else
8573 echo "$ac_t""no" 1>&6
8574 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8576 done
8578 for ac_func in __signbitf
8580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8581 echo "configure:8582: checking for $ac_func" >&5
8582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8583 echo $ac_n "(cached) $ac_c" 1>&6
8584 else
8585 cat > conftest.$ac_ext <<EOF
8586 #line 8587 "configure"
8587 #include "confdefs.h"
8588 /* System header to define __stub macros and hopefully few prototypes,
8589 which can conflict with char $ac_func(); below. */
8590 #include <assert.h>
8591 /* Override any gcc2 internal prototype to avoid an error. */
8592 /* We use char because int might match the return type of a gcc2
8593 builtin and then its argument prototype would still apply. */
8594 char $ac_func();
8596 int main() {
8598 /* The GNU C library defines this for functions which it implements
8599 to always fail with ENOSYS. Some functions are actually named
8600 something starting with __ and the normal name is an alias. */
8601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8602 choke me
8603 #else
8604 $ac_func();
8605 #endif
8607 ; return 0; }
8609 if { (eval echo configure:8610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8610 rm -rf conftest*
8611 eval "ac_cv_func_$ac_func=yes"
8612 else
8613 echo "configure: failed program was:" >&5
8614 cat conftest.$ac_ext >&5
8615 rm -rf conftest*
8616 eval "ac_cv_func_$ac_func=no"
8618 rm -f conftest*
8621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8622 echo "$ac_t""yes" 1>&6
8623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8624 cat >> confdefs.h <<EOF
8625 #define $ac_tr_func 1
8628 else
8629 echo "$ac_t""no" 1>&6
8630 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8632 done
8635 if test x$ac_cv_func_copysignl = x"yes"; then
8636 for ac_func in __signbitl
8638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8639 echo "configure:8640: checking for $ac_func" >&5
8640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8641 echo $ac_n "(cached) $ac_c" 1>&6
8642 else
8643 cat > conftest.$ac_ext <<EOF
8644 #line 8645 "configure"
8645 #include "confdefs.h"
8646 /* System header to define __stub macros and hopefully few prototypes,
8647 which can conflict with char $ac_func(); below. */
8648 #include <assert.h>
8649 /* Override any gcc2 internal prototype to avoid an error. */
8650 /* We use char because int might match the return type of a gcc2
8651 builtin and then its argument prototype would still apply. */
8652 char $ac_func();
8654 int main() {
8656 /* The GNU C library defines this for functions which it implements
8657 to always fail with ENOSYS. Some functions are actually named
8658 something starting with __ and the normal name is an alias. */
8659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8660 choke me
8661 #else
8662 $ac_func();
8663 #endif
8665 ; return 0; }
8667 if { (eval echo configure:8668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8668 rm -rf conftest*
8669 eval "ac_cv_func_$ac_func=yes"
8670 else
8671 echo "configure: failed program was:" >&5
8672 cat conftest.$ac_ext >&5
8673 rm -rf conftest*
8674 eval "ac_cv_func_$ac_func=no"
8676 rm -f conftest*
8679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8680 echo "$ac_t""yes" 1>&6
8681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8682 cat >> confdefs.h <<EOF
8683 #define $ac_tr_func 1
8686 else
8687 echo "$ac_t""no" 1>&6
8688 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8690 done
8694 if test -n "$LIBMATHOBJS"; then
8695 need_libmath=yes
8700 if test "$need_libmath" = yes; then
8701 GLIBCPP_BUILD_LIBMATH_TRUE=
8702 GLIBCPP_BUILD_LIBMATH_FALSE='#'
8703 else
8704 GLIBCPP_BUILD_LIBMATH_TRUE='#'
8705 GLIBCPP_BUILD_LIBMATH_FALSE=
8709 enable_wchar_t=no
8711 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8712 echo "configure:8713: checking for mbstate_t" >&5
8713 cat > conftest.$ac_ext <<EOF
8714 #line 8715 "configure"
8715 #include "confdefs.h"
8716 #include <wchar.h>
8717 int main() {
8718 mbstate_t teststate;
8719 ; return 0; }
8721 if { (eval echo configure:8722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8722 rm -rf conftest*
8723 have_mbstate_t=yes
8724 else
8725 echo "configure: failed program was:" >&5
8726 cat conftest.$ac_ext >&5
8727 rm -rf conftest*
8728 have_mbstate_t=no
8730 rm -f conftest*
8731 echo "$ac_t""$have_mbstate_t" 1>&6
8732 if test x"$have_mbstate_t" = xyes; then
8733 cat >> confdefs.h <<\EOF
8734 #define HAVE_MBSTATE_T 1
8739 for ac_hdr in wchar.h
8741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8743 echo "configure:8744: checking for $ac_hdr" >&5
8744 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8745 echo $ac_n "(cached) $ac_c" 1>&6
8746 else
8747 cat > conftest.$ac_ext <<EOF
8748 #line 8749 "configure"
8749 #include "confdefs.h"
8750 #include <$ac_hdr>
8752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8753 { (eval echo configure:8754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8755 if test -z "$ac_err"; then
8756 rm -rf conftest*
8757 eval "ac_cv_header_$ac_safe=yes"
8758 else
8759 echo "$ac_err" >&5
8760 echo "configure: failed program was:" >&5
8761 cat conftest.$ac_ext >&5
8762 rm -rf conftest*
8763 eval "ac_cv_header_$ac_safe=no"
8765 rm -f conftest*
8767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8768 echo "$ac_t""yes" 1>&6
8769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8770 cat >> confdefs.h <<EOF
8771 #define $ac_tr_hdr 1
8773 ac_has_wchar_h=yes
8774 else
8775 echo "$ac_t""no" 1>&6
8776 ac_has_wchar_h=no
8778 done
8780 for ac_hdr in wctype.h
8782 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8784 echo "configure:8785: checking for $ac_hdr" >&5
8785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8786 echo $ac_n "(cached) $ac_c" 1>&6
8787 else
8788 cat > conftest.$ac_ext <<EOF
8789 #line 8790 "configure"
8790 #include "confdefs.h"
8791 #include <$ac_hdr>
8793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8794 { (eval echo configure:8795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8796 if test -z "$ac_err"; then
8797 rm -rf conftest*
8798 eval "ac_cv_header_$ac_safe=yes"
8799 else
8800 echo "$ac_err" >&5
8801 echo "configure: failed program was:" >&5
8802 cat conftest.$ac_ext >&5
8803 rm -rf conftest*
8804 eval "ac_cv_header_$ac_safe=no"
8806 rm -f conftest*
8808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8809 echo "$ac_t""yes" 1>&6
8810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8811 cat >> confdefs.h <<EOF
8812 #define $ac_tr_hdr 1
8814 ac_has_wctype_h=yes
8815 else
8816 echo "$ac_t""no" 1>&6
8817 ac_has_wctype_h=no
8819 done
8822 if test x"$ac_has_wchar_h" = xyes &&
8823 test x"$ac_has_wctype_h" = xyes &&
8824 test x"$enable_c_mbchar" != xno; then
8826 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8827 echo "configure:8828: checking for WCHAR_MIN and WCHAR_MAX" >&5
8828 cat > conftest.$ac_ext <<EOF
8829 #line 8830 "configure"
8830 #include "confdefs.h"
8831 #include <wchar.h>
8832 int main() {
8833 int i = WCHAR_MIN; int j = WCHAR_MAX;
8834 ; return 0; }
8836 if { (eval echo configure:8837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8837 rm -rf conftest*
8838 has_wchar_minmax=yes
8839 else
8840 echo "configure: failed program was:" >&5
8841 cat conftest.$ac_ext >&5
8842 rm -rf conftest*
8843 has_wchar_minmax=no
8845 rm -f conftest*
8846 echo "$ac_t""$has_wchar_minmax" 1>&6
8848 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8849 echo "configure:8850: checking for WEOF" >&5
8850 cat > conftest.$ac_ext <<EOF
8851 #line 8852 "configure"
8852 #include "confdefs.h"
8854 #include <wchar.h>
8855 #include <stddef.h>
8856 int main() {
8857 wint_t i = WEOF;
8858 ; return 0; }
8860 if { (eval echo configure:8861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8861 rm -rf conftest*
8862 has_weof=yes
8863 else
8864 echo "configure: failed program was:" >&5
8865 cat conftest.$ac_ext >&5
8866 rm -rf conftest*
8867 has_weof=no
8869 rm -f conftest*
8870 echo "$ac_t""$has_weof" 1>&6
8872 ac_wfuncs=yes
8873 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8876 echo "configure:8877: checking for $ac_func" >&5
8877 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8878 echo $ac_n "(cached) $ac_c" 1>&6
8879 else
8880 cat > conftest.$ac_ext <<EOF
8881 #line 8882 "configure"
8882 #include "confdefs.h"
8883 /* System header to define __stub macros and hopefully few prototypes,
8884 which can conflict with char $ac_func(); below. */
8885 #include <assert.h>
8886 /* Override any gcc2 internal prototype to avoid an error. */
8887 /* We use char because int might match the return type of a gcc2
8888 builtin and then its argument prototype would still apply. */
8889 char $ac_func();
8891 int main() {
8893 /* The GNU C library defines this for functions which it implements
8894 to always fail with ENOSYS. Some functions are actually named
8895 something starting with __ and the normal name is an alias. */
8896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8897 choke me
8898 #else
8899 $ac_func();
8900 #endif
8902 ; return 0; }
8904 if { (eval echo configure:8905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8905 rm -rf conftest*
8906 eval "ac_cv_func_$ac_func=yes"
8907 else
8908 echo "configure: failed program was:" >&5
8909 cat conftest.$ac_ext >&5
8910 rm -rf conftest*
8911 eval "ac_cv_func_$ac_func=no"
8913 rm -f conftest*
8916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8917 echo "$ac_t""yes" 1>&6
8918 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8919 cat >> confdefs.h <<EOF
8920 #define $ac_tr_func 1
8923 else
8924 echo "$ac_t""no" 1>&6
8926 ac_wfuncs=no
8928 done
8931 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8932 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8933 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8934 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8935 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8936 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8939 echo "configure:8940: checking for $ac_func" >&5
8940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8941 echo $ac_n "(cached) $ac_c" 1>&6
8942 else
8943 cat > conftest.$ac_ext <<EOF
8944 #line 8945 "configure"
8945 #include "confdefs.h"
8946 /* System header to define __stub macros and hopefully few prototypes,
8947 which can conflict with char $ac_func(); below. */
8948 #include <assert.h>
8949 /* Override any gcc2 internal prototype to avoid an error. */
8950 /* We use char because int might match the return type of a gcc2
8951 builtin and then its argument prototype would still apply. */
8952 char $ac_func();
8954 int main() {
8956 /* The GNU C library defines this for functions which it implements
8957 to always fail with ENOSYS. Some functions are actually named
8958 something starting with __ and the normal name is an alias. */
8959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8960 choke me
8961 #else
8962 $ac_func();
8963 #endif
8965 ; return 0; }
8967 if { (eval echo configure:8968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8968 rm -rf conftest*
8969 eval "ac_cv_func_$ac_func=yes"
8970 else
8971 echo "configure: failed program was:" >&5
8972 cat conftest.$ac_ext >&5
8973 rm -rf conftest*
8974 eval "ac_cv_func_$ac_func=no"
8976 rm -f conftest*
8979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8980 echo "$ac_t""yes" 1>&6
8981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8982 cat >> confdefs.h <<EOF
8983 #define $ac_tr_func 1
8986 else
8987 echo "$ac_t""no" 1>&6
8989 ac_wfuncs=no
8991 done
8994 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8995 echo "configure:8996: checking for ISO C99 wchar_t support" >&5
8996 if test x"$has_weof" = xyes &&
8997 test x"$has_wchar_minmax" = xyes &&
8998 test x"$ac_wfuncs" = xyes; then
8999 ac_isoC99_wchar_t=yes
9000 else
9001 ac_isoC99_wchar_t=no
9003 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9005 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9006 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9007 echo "configure:9008: checking for iconv.h" >&5
9008 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9009 echo $ac_n "(cached) $ac_c" 1>&6
9010 else
9011 cat > conftest.$ac_ext <<EOF
9012 #line 9013 "configure"
9013 #include "confdefs.h"
9014 #include <iconv.h>
9016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9017 { (eval echo configure:9018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9019 if test -z "$ac_err"; then
9020 rm -rf conftest*
9021 eval "ac_cv_header_$ac_safe=yes"
9022 else
9023 echo "$ac_err" >&5
9024 echo "configure: failed program was:" >&5
9025 cat conftest.$ac_ext >&5
9026 rm -rf conftest*
9027 eval "ac_cv_header_$ac_safe=no"
9029 rm -f conftest*
9031 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9032 echo "$ac_t""yes" 1>&6
9033 ac_has_iconv_h=yes
9034 else
9035 echo "$ac_t""no" 1>&6
9036 ac_has_iconv_h=no
9039 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9040 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9041 echo "configure:9042: checking for langinfo.h" >&5
9042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9043 echo $ac_n "(cached) $ac_c" 1>&6
9044 else
9045 cat > conftest.$ac_ext <<EOF
9046 #line 9047 "configure"
9047 #include "confdefs.h"
9048 #include <langinfo.h>
9050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9051 { (eval echo configure:9052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9053 if test -z "$ac_err"; then
9054 rm -rf conftest*
9055 eval "ac_cv_header_$ac_safe=yes"
9056 else
9057 echo "$ac_err" >&5
9058 echo "configure: failed program was:" >&5
9059 cat conftest.$ac_ext >&5
9060 rm -rf conftest*
9061 eval "ac_cv_header_$ac_safe=no"
9063 rm -f conftest*
9065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9066 echo "$ac_t""yes" 1>&6
9067 ac_has_langinfo_h=yes
9068 else
9069 echo "$ac_t""no" 1>&6
9070 ac_has_langinfo_h=no
9074 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9075 echo "configure:9076: checking for iconv in -liconv" >&5
9076 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9077 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9078 echo $ac_n "(cached) $ac_c" 1>&6
9079 else
9080 ac_save_LIBS="$LIBS"
9081 LIBS="-liconv $LIBS"
9082 cat > conftest.$ac_ext <<EOF
9083 #line 9084 "configure"
9084 #include "confdefs.h"
9085 /* Override any gcc2 internal prototype to avoid an error. */
9086 /* We use char because int might match the return type of a gcc2
9087 builtin and then its argument prototype would still apply. */
9088 char iconv();
9090 int main() {
9091 iconv()
9092 ; return 0; }
9094 if { (eval echo configure:9095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9095 rm -rf conftest*
9096 eval "ac_cv_lib_$ac_lib_var=yes"
9097 else
9098 echo "configure: failed program was:" >&5
9099 cat conftest.$ac_ext >&5
9100 rm -rf conftest*
9101 eval "ac_cv_lib_$ac_lib_var=no"
9103 rm -f conftest*
9104 LIBS="$ac_save_LIBS"
9107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9108 echo "$ac_t""yes" 1>&6
9109 libiconv="-liconv"
9110 else
9111 echo "$ac_t""no" 1>&6
9114 ac_save_LIBS="$LIBS"
9115 LIBS="$LIBS $libiconv"
9117 for ac_func in iconv_open iconv_close iconv nl_langinfo
9119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9120 echo "configure:9121: checking for $ac_func" >&5
9121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9122 echo $ac_n "(cached) $ac_c" 1>&6
9123 else
9124 cat > conftest.$ac_ext <<EOF
9125 #line 9126 "configure"
9126 #include "confdefs.h"
9127 /* System header to define __stub macros and hopefully few prototypes,
9128 which can conflict with char $ac_func(); below. */
9129 #include <assert.h>
9130 /* Override any gcc2 internal prototype to avoid an error. */
9131 /* We use char because int might match the return type of a gcc2
9132 builtin and then its argument prototype would still apply. */
9133 char $ac_func();
9135 int main() {
9137 /* The GNU C library defines this for functions which it implements
9138 to always fail with ENOSYS. Some functions are actually named
9139 something starting with __ and the normal name is an alias. */
9140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9141 choke me
9142 #else
9143 $ac_func();
9144 #endif
9146 ; return 0; }
9148 if { (eval echo configure:9149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9149 rm -rf conftest*
9150 eval "ac_cv_func_$ac_func=yes"
9151 else
9152 echo "configure: failed program was:" >&5
9153 cat conftest.$ac_ext >&5
9154 rm -rf conftest*
9155 eval "ac_cv_func_$ac_func=no"
9157 rm -f conftest*
9160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9161 echo "$ac_t""yes" 1>&6
9162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9163 cat >> confdefs.h <<EOF
9164 #define $ac_tr_func 1
9167 ac_XPG2funcs=yes
9168 else
9169 echo "$ac_t""no" 1>&6
9170 ac_XPG2funcs=no
9172 done
9175 LIBS="$ac_save_LIBS"
9177 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9178 echo "configure:9179: checking for XPG2 wchar_t support" >&5
9179 if test x"$ac_has_iconv_h" = xyes &&
9180 test x"$ac_has_langinfo_h" = xyes &&
9181 test x"$ac_XPG2funcs" = xyes; then
9182 ac_XPG2_wchar_t=yes
9183 else
9184 ac_XPG2_wchar_t=no
9186 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9188 if test x"$ac_isoC99_wchar_t" = xyes &&
9189 test x"$ac_XPG2_wchar_t" = xyes; then
9190 cat >> confdefs.h <<\EOF
9191 #define _GLIBCPP_USE_WCHAR_T 1
9194 enable_wchar_t=yes
9197 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9198 echo "configure:9199: checking for enabled wchar_t specializations" >&5
9199 echo "$ac_t""$enable_wchar_t" 1>&6
9202 if test "$enable_wchar_t" = yes; then
9203 GLIBCPP_TEST_WCHAR_T_TRUE=
9204 GLIBCPP_TEST_WCHAR_T_FALSE='#'
9205 else
9206 GLIBCPP_TEST_WCHAR_T_TRUE='#'
9207 GLIBCPP_TEST_WCHAR_T_FALSE=
9210 os_include_dir="os/mingw32"
9212 *-windiss*)
9213 os_include_dir="os/windiss"
9215 *-qnx6.[12]*)
9216 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9219 # If we're not using GNU ld, then there's no point in even trying these
9220 # tests. Check for that first. We should have already tested for gld
9221 # by now (in libtool), but require it now just to be safe...
9222 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9223 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9226 # The name set by libtool depends on the version of libtool. Shame on us
9227 # for depending on an impl detail, but c'est la vie. Older versions used
9228 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9229 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9230 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9231 # set (hence we're using an older libtool), then set it.
9232 if test x${with_gnu_ld+set} != xset; then
9233 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9234 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9235 with_gnu_ld=no
9236 else
9237 with_gnu_ld=$ac_cv_prog_gnu_ld
9241 # Start by getting the version number. I think the libtool test already
9242 # does some of this, but throws away the result.
9244 ldver=`$LD --version 2>/dev/null | head -1 | \
9245 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9247 glibcpp_gnu_ld_version=`echo $ldver | \
9248 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9250 # Set --gc-sections.
9251 if test "$with_gnu_ld" = "notbroken"; then
9252 # GNU ld it is! Joy and bunny rabbits!
9254 # All these tests are for C++; save the language and the compiler flags.
9255 # Need to do this so that g++ won't try to link in libstdc++
9256 ac_test_CFLAGS="${CFLAGS+set}"
9257 ac_save_CFLAGS="$CFLAGS"
9258 CFLAGS='-x c++ -Wl,--gc-sections'
9260 # Check for -Wl,--gc-sections
9261 # XXX This test is broken at the moment, as symbols required for
9262 # linking are now in libsupc++ (not built yet.....). In addition,
9263 # this test has cored on solaris in the past. In addition,
9264 # --gc-sections doesn't really work at the moment (keeps on discarding
9265 # used sections, first .eh_frame and now some of the glibc sections for
9266 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9267 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9268 echo "configure:9269: checking for ld that supports -Wl,--gc-sections" >&5
9269 if test "$cross_compiling" = yes; then
9270 ac_sectionLDflags=yes
9271 else
9272 cat > conftest.$ac_ext <<EOF
9273 #line 9274 "configure"
9274 #include "confdefs.h"
9276 int main(void)
9278 try { throw 1; }
9279 catch (...) { };
9280 return 0;
9284 if { (eval echo configure:9285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9285 then
9286 ac_sectionLDflags=yes
9287 else
9288 echo "configure: failed program was:" >&5
9289 cat conftest.$ac_ext >&5
9290 rm -fr conftest*
9291 ac_sectionLDflags=no
9293 rm -fr conftest*
9296 if test "$ac_test_CFLAGS" = set; then
9297 CFLAGS="$ac_save_CFLAGS"
9298 else
9299 # this is the suspicious part
9300 CFLAGS=''
9302 if test "$ac_sectionLDflags" = "yes"; then
9303 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9305 echo "$ac_t""$ac_sectionLDflags" 1>&6
9308 # Set linker optimization flags.
9309 if test x"$with_gnu_ld" = x"yes"; then
9310 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9317 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9318 echo "configure:9319: checking for main in -lm" >&5
9319 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9321 echo $ac_n "(cached) $ac_c" 1>&6
9322 else
9323 ac_save_LIBS="$LIBS"
9324 LIBS="-lm $LIBS"
9325 cat > conftest.$ac_ext <<EOF
9326 #line 9327 "configure"
9327 #include "confdefs.h"
9329 int main() {
9330 main()
9331 ; return 0; }
9333 if { (eval echo configure:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9334 rm -rf conftest*
9335 eval "ac_cv_lib_$ac_lib_var=yes"
9336 else
9337 echo "configure: failed program was:" >&5
9338 cat conftest.$ac_ext >&5
9339 rm -rf conftest*
9340 eval "ac_cv_lib_$ac_lib_var=no"
9342 rm -f conftest*
9343 LIBS="$ac_save_LIBS"
9346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9347 echo "$ac_t""yes" 1>&6
9348 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9349 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9350 cat >> confdefs.h <<EOF
9351 #define $ac_tr_lib 1
9354 LIBS="-lm $LIBS"
9356 else
9357 echo "$ac_t""no" 1>&6
9360 for ac_func in nan copysignf
9362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9363 echo "configure:9364: checking for $ac_func" >&5
9364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9365 echo $ac_n "(cached) $ac_c" 1>&6
9366 else
9367 cat > conftest.$ac_ext <<EOF
9368 #line 9369 "configure"
9369 #include "confdefs.h"
9370 /* System header to define __stub macros and hopefully few prototypes,
9371 which can conflict with char $ac_func(); below. */
9372 #include <assert.h>
9373 /* Override any gcc2 internal prototype to avoid an error. */
9374 /* We use char because int might match the return type of a gcc2
9375 builtin and then its argument prototype would still apply. */
9376 char $ac_func();
9378 int main() {
9380 /* The GNU C library defines this for functions which it implements
9381 to always fail with ENOSYS. Some functions are actually named
9382 something starting with __ and the normal name is an alias. */
9383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9384 choke me
9385 #else
9386 $ac_func();
9387 #endif
9389 ; return 0; }
9391 if { (eval echo configure:9392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9392 rm -rf conftest*
9393 eval "ac_cv_func_$ac_func=yes"
9394 else
9395 echo "configure: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9397 rm -rf conftest*
9398 eval "ac_cv_func_$ac_func=no"
9400 rm -f conftest*
9403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9404 echo "$ac_t""yes" 1>&6
9405 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9406 cat >> confdefs.h <<EOF
9407 #define $ac_tr_func 1
9410 else
9411 echo "$ac_t""no" 1>&6
9412 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9414 done
9417 for ac_func in __signbit
9419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9420 echo "configure:9421: checking for $ac_func" >&5
9421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9422 echo $ac_n "(cached) $ac_c" 1>&6
9423 else
9424 cat > conftest.$ac_ext <<EOF
9425 #line 9426 "configure"
9426 #include "confdefs.h"
9427 /* System header to define __stub macros and hopefully few prototypes,
9428 which can conflict with char $ac_func(); below. */
9429 #include <assert.h>
9430 /* Override any gcc2 internal prototype to avoid an error. */
9431 /* We use char because int might match the return type of a gcc2
9432 builtin and then its argument prototype would still apply. */
9433 char $ac_func();
9435 int main() {
9437 /* The GNU C library defines this for functions which it implements
9438 to always fail with ENOSYS. Some functions are actually named
9439 something starting with __ and the normal name is an alias. */
9440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9441 choke me
9442 #else
9443 $ac_func();
9444 #endif
9446 ; return 0; }
9448 if { (eval echo configure:9449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9449 rm -rf conftest*
9450 eval "ac_cv_func_$ac_func=yes"
9451 else
9452 echo "configure: failed program was:" >&5
9453 cat conftest.$ac_ext >&5
9454 rm -rf conftest*
9455 eval "ac_cv_func_$ac_func=no"
9457 rm -f conftest*
9460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9461 echo "$ac_t""yes" 1>&6
9462 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9463 cat >> confdefs.h <<EOF
9464 #define $ac_tr_func 1
9467 else
9468 echo "$ac_t""no" 1>&6
9469 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9471 done
9473 for ac_func in __signbitf
9475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9476 echo "configure:9477: checking for $ac_func" >&5
9477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9478 echo $ac_n "(cached) $ac_c" 1>&6
9479 else
9480 cat > conftest.$ac_ext <<EOF
9481 #line 9482 "configure"
9482 #include "confdefs.h"
9483 /* System header to define __stub macros and hopefully few prototypes,
9484 which can conflict with char $ac_func(); below. */
9485 #include <assert.h>
9486 /* Override any gcc2 internal prototype to avoid an error. */
9487 /* We use char because int might match the return type of a gcc2
9488 builtin and then its argument prototype would still apply. */
9489 char $ac_func();
9491 int main() {
9493 /* The GNU C library defines this for functions which it implements
9494 to always fail with ENOSYS. Some functions are actually named
9495 something starting with __ and the normal name is an alias. */
9496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9497 choke me
9498 #else
9499 $ac_func();
9500 #endif
9502 ; return 0; }
9504 if { (eval echo configure:9505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9505 rm -rf conftest*
9506 eval "ac_cv_func_$ac_func=yes"
9507 else
9508 echo "configure: failed program was:" >&5
9509 cat conftest.$ac_ext >&5
9510 rm -rf conftest*
9511 eval "ac_cv_func_$ac_func=no"
9513 rm -f conftest*
9516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9517 echo "$ac_t""yes" 1>&6
9518 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9519 cat >> confdefs.h <<EOF
9520 #define $ac_tr_func 1
9523 else
9524 echo "$ac_t""no" 1>&6
9525 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9527 done
9530 if test x$ac_cv_func_copysignl = x"yes"; then
9531 for ac_func in __signbitl
9533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9534 echo "configure:9535: checking for $ac_func" >&5
9535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9536 echo $ac_n "(cached) $ac_c" 1>&6
9537 else
9538 cat > conftest.$ac_ext <<EOF
9539 #line 9540 "configure"
9540 #include "confdefs.h"
9541 /* System header to define __stub macros and hopefully few prototypes,
9542 which can conflict with char $ac_func(); below. */
9543 #include <assert.h>
9544 /* Override any gcc2 internal prototype to avoid an error. */
9545 /* We use char because int might match the return type of a gcc2
9546 builtin and then its argument prototype would still apply. */
9547 char $ac_func();
9549 int main() {
9551 /* The GNU C library defines this for functions which it implements
9552 to always fail with ENOSYS. Some functions are actually named
9553 something starting with __ and the normal name is an alias. */
9554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9555 choke me
9556 #else
9557 $ac_func();
9558 #endif
9560 ; return 0; }
9562 if { (eval echo configure:9563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9563 rm -rf conftest*
9564 eval "ac_cv_func_$ac_func=yes"
9565 else
9566 echo "configure: failed program was:" >&5
9567 cat conftest.$ac_ext >&5
9568 rm -rf conftest*
9569 eval "ac_cv_func_$ac_func=no"
9571 rm -f conftest*
9574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9575 echo "$ac_t""yes" 1>&6
9576 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9577 cat >> confdefs.h <<EOF
9578 #define $ac_tr_func 1
9581 else
9582 echo "$ac_t""no" 1>&6
9583 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9585 done
9589 if test -n "$LIBMATHOBJS"; then
9590 need_libmath=yes
9595 if test "$need_libmath" = yes; then
9596 GLIBCPP_BUILD_LIBMATH_TRUE=
9597 GLIBCPP_BUILD_LIBMATH_FALSE='#'
9598 else
9599 GLIBCPP_BUILD_LIBMATH_TRUE='#'
9600 GLIBCPP_BUILD_LIBMATH_FALSE=
9604 enable_wchar_t=no
9606 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9607 echo "configure:9608: checking for mbstate_t" >&5
9608 cat > conftest.$ac_ext <<EOF
9609 #line 9610 "configure"
9610 #include "confdefs.h"
9611 #include <wchar.h>
9612 int main() {
9613 mbstate_t teststate;
9614 ; return 0; }
9616 if { (eval echo configure:9617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9617 rm -rf conftest*
9618 have_mbstate_t=yes
9619 else
9620 echo "configure: failed program was:" >&5
9621 cat conftest.$ac_ext >&5
9622 rm -rf conftest*
9623 have_mbstate_t=no
9625 rm -f conftest*
9626 echo "$ac_t""$have_mbstate_t" 1>&6
9627 if test x"$have_mbstate_t" = xyes; then
9628 cat >> confdefs.h <<\EOF
9629 #define HAVE_MBSTATE_T 1
9634 for ac_hdr in wchar.h
9636 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9637 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9638 echo "configure:9639: checking for $ac_hdr" >&5
9639 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9640 echo $ac_n "(cached) $ac_c" 1>&6
9641 else
9642 cat > conftest.$ac_ext <<EOF
9643 #line 9644 "configure"
9644 #include "confdefs.h"
9645 #include <$ac_hdr>
9647 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9648 { (eval echo configure:9649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9649 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9650 if test -z "$ac_err"; then
9651 rm -rf conftest*
9652 eval "ac_cv_header_$ac_safe=yes"
9653 else
9654 echo "$ac_err" >&5
9655 echo "configure: failed program was:" >&5
9656 cat conftest.$ac_ext >&5
9657 rm -rf conftest*
9658 eval "ac_cv_header_$ac_safe=no"
9660 rm -f conftest*
9662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9663 echo "$ac_t""yes" 1>&6
9664 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9665 cat >> confdefs.h <<EOF
9666 #define $ac_tr_hdr 1
9668 ac_has_wchar_h=yes
9669 else
9670 echo "$ac_t""no" 1>&6
9671 ac_has_wchar_h=no
9673 done
9675 for ac_hdr in wctype.h
9677 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9678 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9679 echo "configure:9680: checking for $ac_hdr" >&5
9680 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9681 echo $ac_n "(cached) $ac_c" 1>&6
9682 else
9683 cat > conftest.$ac_ext <<EOF
9684 #line 9685 "configure"
9685 #include "confdefs.h"
9686 #include <$ac_hdr>
9688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9689 { (eval echo configure:9690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9691 if test -z "$ac_err"; then
9692 rm -rf conftest*
9693 eval "ac_cv_header_$ac_safe=yes"
9694 else
9695 echo "$ac_err" >&5
9696 echo "configure: failed program was:" >&5
9697 cat conftest.$ac_ext >&5
9698 rm -rf conftest*
9699 eval "ac_cv_header_$ac_safe=no"
9701 rm -f conftest*
9703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9704 echo "$ac_t""yes" 1>&6
9705 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9706 cat >> confdefs.h <<EOF
9707 #define $ac_tr_hdr 1
9709 ac_has_wctype_h=yes
9710 else
9711 echo "$ac_t""no" 1>&6
9712 ac_has_wctype_h=no
9714 done
9717 if test x"$ac_has_wchar_h" = xyes &&
9718 test x"$ac_has_wctype_h" = xyes &&
9719 test x"$enable_c_mbchar" != xno; then
9721 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9722 echo "configure:9723: checking for WCHAR_MIN and WCHAR_MAX" >&5
9723 cat > conftest.$ac_ext <<EOF
9724 #line 9725 "configure"
9725 #include "confdefs.h"
9726 #include <wchar.h>
9727 int main() {
9728 int i = WCHAR_MIN; int j = WCHAR_MAX;
9729 ; return 0; }
9731 if { (eval echo configure:9732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9732 rm -rf conftest*
9733 has_wchar_minmax=yes
9734 else
9735 echo "configure: failed program was:" >&5
9736 cat conftest.$ac_ext >&5
9737 rm -rf conftest*
9738 has_wchar_minmax=no
9740 rm -f conftest*
9741 echo "$ac_t""$has_wchar_minmax" 1>&6
9743 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9744 echo "configure:9745: checking for WEOF" >&5
9745 cat > conftest.$ac_ext <<EOF
9746 #line 9747 "configure"
9747 #include "confdefs.h"
9749 #include <wchar.h>
9750 #include <stddef.h>
9751 int main() {
9752 wint_t i = WEOF;
9753 ; return 0; }
9755 if { (eval echo configure:9756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9756 rm -rf conftest*
9757 has_weof=yes
9758 else
9759 echo "configure: failed program was:" >&5
9760 cat conftest.$ac_ext >&5
9761 rm -rf conftest*
9762 has_weof=no
9764 rm -f conftest*
9765 echo "$ac_t""$has_weof" 1>&6
9767 ac_wfuncs=yes
9768 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9771 echo "configure:9772: checking for $ac_func" >&5
9772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9773 echo $ac_n "(cached) $ac_c" 1>&6
9774 else
9775 cat > conftest.$ac_ext <<EOF
9776 #line 9777 "configure"
9777 #include "confdefs.h"
9778 /* System header to define __stub macros and hopefully few prototypes,
9779 which can conflict with char $ac_func(); below. */
9780 #include <assert.h>
9781 /* Override any gcc2 internal prototype to avoid an error. */
9782 /* We use char because int might match the return type of a gcc2
9783 builtin and then its argument prototype would still apply. */
9784 char $ac_func();
9786 int main() {
9788 /* The GNU C library defines this for functions which it implements
9789 to always fail with ENOSYS. Some functions are actually named
9790 something starting with __ and the normal name is an alias. */
9791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9792 choke me
9793 #else
9794 $ac_func();
9795 #endif
9797 ; return 0; }
9799 if { (eval echo configure:9800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9800 rm -rf conftest*
9801 eval "ac_cv_func_$ac_func=yes"
9802 else
9803 echo "configure: failed program was:" >&5
9804 cat conftest.$ac_ext >&5
9805 rm -rf conftest*
9806 eval "ac_cv_func_$ac_func=no"
9808 rm -f conftest*
9811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9812 echo "$ac_t""yes" 1>&6
9813 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9814 cat >> confdefs.h <<EOF
9815 #define $ac_tr_func 1
9818 else
9819 echo "$ac_t""no" 1>&6
9821 ac_wfuncs=no
9823 done
9826 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9827 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9828 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9829 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9830 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9831 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9833 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9834 echo "configure:9835: checking for $ac_func" >&5
9835 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9836 echo $ac_n "(cached) $ac_c" 1>&6
9837 else
9838 cat > conftest.$ac_ext <<EOF
9839 #line 9840 "configure"
9840 #include "confdefs.h"
9841 /* System header to define __stub macros and hopefully few prototypes,
9842 which can conflict with char $ac_func(); below. */
9843 #include <assert.h>
9844 /* Override any gcc2 internal prototype to avoid an error. */
9845 /* We use char because int might match the return type of a gcc2
9846 builtin and then its argument prototype would still apply. */
9847 char $ac_func();
9849 int main() {
9851 /* The GNU C library defines this for functions which it implements
9852 to always fail with ENOSYS. Some functions are actually named
9853 something starting with __ and the normal name is an alias. */
9854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9855 choke me
9856 #else
9857 $ac_func();
9858 #endif
9860 ; return 0; }
9862 if { (eval echo configure:9863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9863 rm -rf conftest*
9864 eval "ac_cv_func_$ac_func=yes"
9865 else
9866 echo "configure: failed program was:" >&5
9867 cat conftest.$ac_ext >&5
9868 rm -rf conftest*
9869 eval "ac_cv_func_$ac_func=no"
9871 rm -f conftest*
9874 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9875 echo "$ac_t""yes" 1>&6
9876 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9877 cat >> confdefs.h <<EOF
9878 #define $ac_tr_func 1
9881 else
9882 echo "$ac_t""no" 1>&6
9884 ac_wfuncs=no
9886 done
9889 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9890 echo "configure:9891: checking for ISO C99 wchar_t support" >&5
9891 if test x"$has_weof" = xyes &&
9892 test x"$has_wchar_minmax" = xyes &&
9893 test x"$ac_wfuncs" = xyes; then
9894 ac_isoC99_wchar_t=yes
9895 else
9896 ac_isoC99_wchar_t=no
9898 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9900 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9901 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9902 echo "configure:9903: checking for iconv.h" >&5
9903 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9904 echo $ac_n "(cached) $ac_c" 1>&6
9905 else
9906 cat > conftest.$ac_ext <<EOF
9907 #line 9908 "configure"
9908 #include "confdefs.h"
9909 #include <iconv.h>
9911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9912 { (eval echo configure:9913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9914 if test -z "$ac_err"; then
9915 rm -rf conftest*
9916 eval "ac_cv_header_$ac_safe=yes"
9917 else
9918 echo "$ac_err" >&5
9919 echo "configure: failed program was:" >&5
9920 cat conftest.$ac_ext >&5
9921 rm -rf conftest*
9922 eval "ac_cv_header_$ac_safe=no"
9924 rm -f conftest*
9926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9927 echo "$ac_t""yes" 1>&6
9928 ac_has_iconv_h=yes
9929 else
9930 echo "$ac_t""no" 1>&6
9931 ac_has_iconv_h=no
9934 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9935 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9936 echo "configure:9937: checking for langinfo.h" >&5
9937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9938 echo $ac_n "(cached) $ac_c" 1>&6
9939 else
9940 cat > conftest.$ac_ext <<EOF
9941 #line 9942 "configure"
9942 #include "confdefs.h"
9943 #include <langinfo.h>
9945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9946 { (eval echo configure:9947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9948 if test -z "$ac_err"; then
9949 rm -rf conftest*
9950 eval "ac_cv_header_$ac_safe=yes"
9951 else
9952 echo "$ac_err" >&5
9953 echo "configure: failed program was:" >&5
9954 cat conftest.$ac_ext >&5
9955 rm -rf conftest*
9956 eval "ac_cv_header_$ac_safe=no"
9958 rm -f conftest*
9960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9961 echo "$ac_t""yes" 1>&6
9962 ac_has_langinfo_h=yes
9963 else
9964 echo "$ac_t""no" 1>&6
9965 ac_has_langinfo_h=no
9969 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9970 echo "configure:9971: checking for iconv in -liconv" >&5
9971 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9973 echo $ac_n "(cached) $ac_c" 1>&6
9974 else
9975 ac_save_LIBS="$LIBS"
9976 LIBS="-liconv $LIBS"
9977 cat > conftest.$ac_ext <<EOF
9978 #line 9979 "configure"
9979 #include "confdefs.h"
9980 /* Override any gcc2 internal prototype to avoid an error. */
9981 /* We use char because int might match the return type of a gcc2
9982 builtin and then its argument prototype would still apply. */
9983 char iconv();
9985 int main() {
9986 iconv()
9987 ; return 0; }
9989 if { (eval echo configure:9990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9990 rm -rf conftest*
9991 eval "ac_cv_lib_$ac_lib_var=yes"
9992 else
9993 echo "configure: failed program was:" >&5
9994 cat conftest.$ac_ext >&5
9995 rm -rf conftest*
9996 eval "ac_cv_lib_$ac_lib_var=no"
9998 rm -f conftest*
9999 LIBS="$ac_save_LIBS"
10002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10003 echo "$ac_t""yes" 1>&6
10004 libiconv="-liconv"
10005 else
10006 echo "$ac_t""no" 1>&6
10009 ac_save_LIBS="$LIBS"
10010 LIBS="$LIBS $libiconv"
10012 for ac_func in iconv_open iconv_close iconv nl_langinfo
10014 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10015 echo "configure:10016: checking for $ac_func" >&5
10016 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10017 echo $ac_n "(cached) $ac_c" 1>&6
10018 else
10019 cat > conftest.$ac_ext <<EOF
10020 #line 10021 "configure"
10021 #include "confdefs.h"
10022 /* System header to define __stub macros and hopefully few prototypes,
10023 which can conflict with char $ac_func(); below. */
10024 #include <assert.h>
10025 /* Override any gcc2 internal prototype to avoid an error. */
10026 /* We use char because int might match the return type of a gcc2
10027 builtin and then its argument prototype would still apply. */
10028 char $ac_func();
10030 int main() {
10032 /* The GNU C library defines this for functions which it implements
10033 to always fail with ENOSYS. Some functions are actually named
10034 something starting with __ and the normal name is an alias. */
10035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10036 choke me
10037 #else
10038 $ac_func();
10039 #endif
10041 ; return 0; }
10043 if { (eval echo configure:10044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10044 rm -rf conftest*
10045 eval "ac_cv_func_$ac_func=yes"
10046 else
10047 echo "configure: failed program was:" >&5
10048 cat conftest.$ac_ext >&5
10049 rm -rf conftest*
10050 eval "ac_cv_func_$ac_func=no"
10052 rm -f conftest*
10055 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10056 echo "$ac_t""yes" 1>&6
10057 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10058 cat >> confdefs.h <<EOF
10059 #define $ac_tr_func 1
10062 ac_XPG2funcs=yes
10063 else
10064 echo "$ac_t""no" 1>&6
10065 ac_XPG2funcs=no
10067 done
10070 LIBS="$ac_save_LIBS"
10072 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
10073 echo "configure:10074: checking for XPG2 wchar_t support" >&5
10074 if test x"$ac_has_iconv_h" = xyes &&
10075 test x"$ac_has_langinfo_h" = xyes &&
10076 test x"$ac_XPG2funcs" = xyes; then
10077 ac_XPG2_wchar_t=yes
10078 else
10079 ac_XPG2_wchar_t=no
10081 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
10083 if test x"$ac_isoC99_wchar_t" = xyes &&
10084 test x"$ac_XPG2_wchar_t" = xyes; then
10085 cat >> confdefs.h <<\EOF
10086 #define _GLIBCPP_USE_WCHAR_T 1
10089 enable_wchar_t=yes
10092 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
10093 echo "configure:10094: checking for enabled wchar_t specializations" >&5
10094 echo "$ac_t""$enable_wchar_t" 1>&6
10097 if test "$enable_wchar_t" = yes; then
10098 GLIBCPP_TEST_WCHAR_T_TRUE=
10099 GLIBCPP_TEST_WCHAR_T_FALSE='#'
10100 else
10101 GLIBCPP_TEST_WCHAR_T_TRUE='#'
10102 GLIBCPP_TEST_WCHAR_T_FALSE=
10105 os_include_dir="os/qnx/qnx6.1"
10106 cat >> confdefs.h <<\EOF
10107 #define HAVE_COSF 1
10110 cat >> confdefs.h <<\EOF
10111 #define HAVE_COSL 1
10114 cat >> confdefs.h <<\EOF
10115 #define HAVE_COSHF 1
10118 cat >> confdefs.h <<\EOF
10119 #define HAVE_COSHL 1
10122 cat >> confdefs.h <<\EOF
10123 #define HAVE_LOGF 1
10126 cat >> confdefs.h <<\EOF
10127 #define HAVE_LOGL 1
10130 cat >> confdefs.h <<\EOF
10131 #define HAVE_LOG10F 1
10134 cat >> confdefs.h <<\EOF
10135 #define HAVE_LOG10L 1
10138 cat >> confdefs.h <<\EOF
10139 #define HAVE_SINF 1
10142 cat >> confdefs.h <<\EOF
10143 #define HAVE_SINL 1
10146 cat >> confdefs.h <<\EOF
10147 #define HAVE_SINHF 1
10150 cat >> confdefs.h <<\EOF
10151 #define HAVE_SINHL 1
10156 os_include_dir="os/newlib"
10157 cat >> confdefs.h <<\EOF
10158 #define HAVE_HYPOT 1
10162 esac
10164 case "$target" in
10165 *-mingw32*)
10167 *-windiss*)
10168 cat >> confdefs.h <<\EOF
10169 #define HAVE_ACOSF 1
10172 cat >> confdefs.h <<\EOF
10173 #define HAVE_ASINF 1
10176 cat >> confdefs.h <<\EOF
10177 #define HAVE_ATAN2F 1
10180 cat >> confdefs.h <<\EOF
10181 #define HAVE_ATANF 1
10184 cat >> confdefs.h <<\EOF
10185 #define HAVE_CEILF 1
10188 cat >> confdefs.h <<\EOF
10189 #define HAVE_COPYSIGN 1
10192 cat >> confdefs.h <<\EOF
10193 #define HAVE_COPYSIGNF 1
10196 cat >> confdefs.h <<\EOF
10197 #define HAVE_COSF 1
10200 cat >> confdefs.h <<\EOF
10201 #define HAVE_COSHF 1
10204 cat >> confdefs.h <<\EOF
10205 #define HAVE_EXPF 1
10208 cat >> confdefs.h <<\EOF
10209 #define HAVE_FABSF 1
10212 cat >> confdefs.h <<\EOF
10213 #define HAVE_FLOORF 1
10216 cat >> confdefs.h <<\EOF
10217 #define HAVE_FMODF 1
10220 cat >> confdefs.h <<\EOF
10221 #define HAVE_FREXPF 1
10224 cat >> confdefs.h <<\EOF
10225 #define HAVE_LDEXPF 1
10228 cat >> confdefs.h <<\EOF
10229 #define HAVE_LOG10F 1
10232 cat >> confdefs.h <<\EOF
10233 #define HAVE_LOGF 1
10236 cat >> confdefs.h <<\EOF
10237 #define HAVE_MODFF 1
10240 cat >> confdefs.h <<\EOF
10241 #define HAVE_POWF 1
10244 cat >> confdefs.h <<\EOF
10245 #define HAVE_SINF 1
10248 cat >> confdefs.h <<\EOF
10249 #define HAVE_SINHF 1
10252 cat >> confdefs.h <<\EOF
10253 #define HAVE_SQRTF 1
10256 cat >> confdefs.h <<\EOF
10257 #define HAVE_TANF 1
10260 cat >> confdefs.h <<\EOF
10261 #define HAVE_TANHF 1
10265 *-freebsd*)
10266 # Must replicate generic section since we don't have strtof or strtold.
10267 cat >> confdefs.h <<\EOF
10268 #define HAVE_MMAP 1
10271 cat >> confdefs.h <<\EOF
10272 #define HAVE_ACOSF 1
10275 cat >> confdefs.h <<\EOF
10276 #define HAVE_ASINF 1
10279 cat >> confdefs.h <<\EOF
10280 #define HAVE_ATAN2F 1
10283 cat >> confdefs.h <<\EOF
10284 #define HAVE_ATANF 1
10287 cat >> confdefs.h <<\EOF
10288 #define HAVE_CEILF 1
10291 cat >> confdefs.h <<\EOF
10292 #define HAVE_COPYSIGN 1
10295 cat >> confdefs.h <<\EOF
10296 #define HAVE_COPYSIGNF 1
10299 cat >> confdefs.h <<\EOF
10300 #define HAVE_COSF 1
10303 cat >> confdefs.h <<\EOF
10304 #define HAVE_COSHF 1
10307 cat >> confdefs.h <<\EOF
10308 #define HAVE_EXPF 1
10311 cat >> confdefs.h <<\EOF
10312 #define HAVE_FABSF 1
10315 cat >> confdefs.h <<\EOF
10316 #define HAVE_FLOORF 1
10319 cat >> confdefs.h <<\EOF
10320 #define HAVE_FMODF 1
10323 cat >> confdefs.h <<\EOF
10324 #define HAVE_FREXPF 1
10327 cat >> confdefs.h <<\EOF
10328 #define HAVE_LDEXPF 1
10331 cat >> confdefs.h <<\EOF
10332 #define HAVE_LOG10F 1
10335 cat >> confdefs.h <<\EOF
10336 #define HAVE_LOGF 1
10339 cat >> confdefs.h <<\EOF
10340 #define HAVE_MODFF 1
10343 cat >> confdefs.h <<\EOF
10344 #define HAVE_POWF 1
10347 cat >> confdefs.h <<\EOF
10348 #define HAVE_SINF 1
10351 cat >> confdefs.h <<\EOF
10352 #define HAVE_SINHF 1
10355 cat >> confdefs.h <<\EOF
10356 #define HAVE_SQRTF 1
10359 cat >> confdefs.h <<\EOF
10360 #define HAVE_TANF 1
10363 cat >> confdefs.h <<\EOF
10364 #define HAVE_TANHF 1
10369 # GLIBCPP_CHECK_STDLIB_SUPPORT
10370 cat >> confdefs.h <<\EOF
10371 #define HAVE_STRTOF 1
10374 cat >> confdefs.h <<\EOF
10375 #define HAVE_STRTOLD 1
10378 # AC_FUNC_MMAP
10379 cat >> confdefs.h <<\EOF
10380 #define HAVE_MMAP 1
10384 cat >> confdefs.h <<\EOF
10385 #define HAVE_ACOSF 1
10388 cat >> confdefs.h <<\EOF
10389 #define HAVE_ASINF 1
10392 cat >> confdefs.h <<\EOF
10393 #define HAVE_ATAN2F 1
10396 cat >> confdefs.h <<\EOF
10397 #define HAVE_ATANF 1
10400 cat >> confdefs.h <<\EOF
10401 #define HAVE_CEILF 1
10404 cat >> confdefs.h <<\EOF
10405 #define HAVE_COPYSIGN 1
10408 cat >> confdefs.h <<\EOF
10409 #define HAVE_COPYSIGNF 1
10412 cat >> confdefs.h <<\EOF
10413 #define HAVE_COSF 1
10416 cat >> confdefs.h <<\EOF
10417 #define HAVE_COSHF 1
10420 cat >> confdefs.h <<\EOF
10421 #define HAVE_EXPF 1
10424 cat >> confdefs.h <<\EOF
10425 #define HAVE_FABSF 1
10428 cat >> confdefs.h <<\EOF
10429 #define HAVE_FLOORF 1
10432 cat >> confdefs.h <<\EOF
10433 #define HAVE_FMODF 1
10436 cat >> confdefs.h <<\EOF
10437 #define HAVE_FREXPF 1
10440 cat >> confdefs.h <<\EOF
10441 #define HAVE_LDEXPF 1
10444 cat >> confdefs.h <<\EOF
10445 #define HAVE_LOG10F 1
10448 cat >> confdefs.h <<\EOF
10449 #define HAVE_LOGF 1
10452 cat >> confdefs.h <<\EOF
10453 #define HAVE_MODFF 1
10456 cat >> confdefs.h <<\EOF
10457 #define HAVE_POWF 1
10460 cat >> confdefs.h <<\EOF
10461 #define HAVE_SINF 1
10464 cat >> confdefs.h <<\EOF
10465 #define HAVE_SINHF 1
10468 cat >> confdefs.h <<\EOF
10469 #define HAVE_SQRTF 1
10472 cat >> confdefs.h <<\EOF
10473 #define HAVE_TANF 1
10476 cat >> confdefs.h <<\EOF
10477 #define HAVE_TANHF 1
10481 esac
10483 # At some point, we should differentiate between architectures
10484 # like x86, which have long double versions, and alpha/powerpc/etc.,
10485 # which don't. For the time being, punt.
10486 if test x"long_double_math_on_this_cpu" = x"yes"; then
10487 cat >> confdefs.h <<\EOF
10488 #define HAVE_ACOSL 1
10491 cat >> confdefs.h <<\EOF
10492 #define HAVE_ASINL 1
10495 cat >> confdefs.h <<\EOF
10496 #define HAVE_ATAN2L 1
10499 cat >> confdefs.h <<\EOF
10500 #define HAVE_ATANL 1
10503 cat >> confdefs.h <<\EOF
10504 #define HAVE_CEILL 1
10507 cat >> confdefs.h <<\EOF
10508 #define HAVE_COPYSIGNL 1
10511 cat >> confdefs.h <<\EOF
10512 #define HAVE_COSL 1
10515 cat >> confdefs.h <<\EOF
10516 #define HAVE_COSHL 1
10519 cat >> confdefs.h <<\EOF
10520 #define HAVE_EXPL 1
10523 cat >> confdefs.h <<\EOF
10524 #define HAVE_FABSL 1
10527 cat >> confdefs.h <<\EOF
10528 #define HAVE_FLOORL 1
10531 cat >> confdefs.h <<\EOF
10532 #define HAVE_FMODL 1
10535 cat >> confdefs.h <<\EOF
10536 #define HAVE_FREXPL 1
10539 cat >> confdefs.h <<\EOF
10540 #define HAVE_LDEXPL 1
10543 cat >> confdefs.h <<\EOF
10544 #define HAVE_LOG10L 1
10547 cat >> confdefs.h <<\EOF
10548 #define HAVE_LOGL 1
10551 cat >> confdefs.h <<\EOF
10552 #define HAVE_MODFL 1
10555 cat >> confdefs.h <<\EOF
10556 #define HAVE_POWL 1
10559 cat >> confdefs.h <<\EOF
10560 #define HAVE_SINCOSL 1
10563 cat >> confdefs.h <<\EOF
10564 #define HAVE_SINL 1
10567 cat >> confdefs.h <<\EOF
10568 #define HAVE_SINHL 1
10571 cat >> confdefs.h <<\EOF
10572 #define HAVE_SQRTL 1
10575 cat >> confdefs.h <<\EOF
10576 #define HAVE_TANL 1
10579 cat >> confdefs.h <<\EOF
10580 #define HAVE_TANHL 1
10585 else
10587 # We are being configured natively. We can do more elaborate tests
10588 # that include AC_TRY_COMPILE now, as the linker is assumed to be
10589 # working.
10590 GLIBCPP_IS_CROSS_COMPILING=0
10591 CANADIAN=no
10593 # Check for available headers.
10594 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10595 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
10596 sys/types.h libintl.h
10598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10600 echo "configure:10601: checking for $ac_hdr" >&5
10601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10602 echo $ac_n "(cached) $ac_c" 1>&6
10603 else
10604 cat > conftest.$ac_ext <<EOF
10605 #line 10606 "configure"
10606 #include "confdefs.h"
10607 #include <$ac_hdr>
10609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10610 { (eval echo configure:10611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10612 if test -z "$ac_err"; then
10613 rm -rf conftest*
10614 eval "ac_cv_header_$ac_safe=yes"
10615 else
10616 echo "$ac_err" >&5
10617 echo "configure: failed program was:" >&5
10618 cat conftest.$ac_ext >&5
10619 rm -rf conftest*
10620 eval "ac_cv_header_$ac_safe=no"
10622 rm -f conftest*
10624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10625 echo "$ac_t""yes" 1>&6
10626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10627 cat >> confdefs.h <<EOF
10628 #define $ac_tr_hdr 1
10631 else
10632 echo "$ac_t""no" 1>&6
10634 done
10638 # All these tests are for C++; save the language and the compiler flags.
10639 # The CXXFLAGS thing is suspicious, but based on similar bits previously
10640 # found in GLIBCPP_CONFIGURE.
10642 ac_ext=C
10643 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10644 ac_cpp='$CXXCPP $CPPFLAGS'
10645 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10646 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10647 cross_compiling=$ac_cv_prog_cxx_cross
10649 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10650 ac_save_CXXFLAGS="$CXXFLAGS"
10652 # Check for maintainer-mode bits.
10653 if test x"$USE_MAINTAINER_MODE" = xno; then
10654 WERROR=''
10655 else
10656 WERROR='-Werror'
10659 # Check for -ffunction-sections -fdata-sections
10660 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10661 echo "configure:10662: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10662 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10663 cat > conftest.$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10667 int main() {
10668 int foo;
10670 ; return 0; }
10672 if { (eval echo configure:10673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10673 rm -rf conftest*
10674 ac_fdsections=yes
10675 else
10676 echo "configure: failed program was:" >&5
10677 cat conftest.$ac_ext >&5
10678 rm -rf conftest*
10679 ac_fdsections=no
10681 rm -f conftest*
10682 if test "$ac_test_CXXFLAGS" = set; then
10683 CXXFLAGS="$ac_save_CXXFLAGS"
10684 else
10685 # this is the suspicious part
10686 CXXFLAGS=''
10688 if test x"$ac_fdsections" = x"yes"; then
10689 SECTION_FLAGS='-ffunction-sections -fdata-sections'
10691 echo "$ac_t""$ac_fdsections" 1>&6
10693 ac_ext=c
10694 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10695 ac_cpp='$CPP $CPPFLAGS'
10696 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10697 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10698 cross_compiling=$ac_cv_prog_cc_cross
10704 # If we're not using GNU ld, then there's no point in even trying these
10705 # tests. Check for that first. We should have already tested for gld
10706 # by now (in libtool), but require it now just to be safe...
10707 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10708 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10711 # The name set by libtool depends on the version of libtool. Shame on us
10712 # for depending on an impl detail, but c'est la vie. Older versions used
10713 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10714 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10715 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
10716 # set (hence we're using an older libtool), then set it.
10717 if test x${with_gnu_ld+set} != xset; then
10718 if test x${ac_cv_prog_gnu_ld+set} != xset; then
10719 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
10720 with_gnu_ld=no
10721 else
10722 with_gnu_ld=$ac_cv_prog_gnu_ld
10726 # Start by getting the version number. I think the libtool test already
10727 # does some of this, but throws away the result.
10729 ldver=`$LD --version 2>/dev/null | head -1 | \
10730 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10732 glibcpp_gnu_ld_version=`echo $ldver | \
10733 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10735 # Set --gc-sections.
10736 if test "$with_gnu_ld" = "notbroken"; then
10737 # GNU ld it is! Joy and bunny rabbits!
10739 # All these tests are for C++; save the language and the compiler flags.
10740 # Need to do this so that g++ won't try to link in libstdc++
10741 ac_test_CFLAGS="${CFLAGS+set}"
10742 ac_save_CFLAGS="$CFLAGS"
10743 CFLAGS='-x c++ -Wl,--gc-sections'
10745 # Check for -Wl,--gc-sections
10746 # XXX This test is broken at the moment, as symbols required for
10747 # linking are now in libsupc++ (not built yet.....). In addition,
10748 # this test has cored on solaris in the past. In addition,
10749 # --gc-sections doesn't really work at the moment (keeps on discarding
10750 # used sections, first .eh_frame and now some of the glibc sections for
10751 # iconv). Bzzzzt. Thanks for playing, maybe next time.
10752 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10753 echo "configure:10754: checking for ld that supports -Wl,--gc-sections" >&5
10754 if test "$cross_compiling" = yes; then
10755 ac_sectionLDflags=yes
10756 else
10757 cat > conftest.$ac_ext <<EOF
10758 #line 10759 "configure"
10759 #include "confdefs.h"
10761 int main(void)
10763 try { throw 1; }
10764 catch (...) { };
10765 return 0;
10769 if { (eval echo configure:10770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10770 then
10771 ac_sectionLDflags=yes
10772 else
10773 echo "configure: failed program was:" >&5
10774 cat conftest.$ac_ext >&5
10775 rm -fr conftest*
10776 ac_sectionLDflags=no
10778 rm -fr conftest*
10781 if test "$ac_test_CFLAGS" = set; then
10782 CFLAGS="$ac_save_CFLAGS"
10783 else
10784 # this is the suspicious part
10785 CFLAGS=''
10787 if test "$ac_sectionLDflags" = "yes"; then
10788 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10790 echo "$ac_t""$ac_sectionLDflags" 1>&6
10793 # Set linker optimization flags.
10794 if test x"$with_gnu_ld" = x"yes"; then
10795 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10802 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10803 ac_save_CXXFLAGS="$CXXFLAGS"
10804 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10806 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10807 echo "configure:10808: checking for sin in -lm" >&5
10808 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10810 echo $ac_n "(cached) $ac_c" 1>&6
10811 else
10812 ac_save_LIBS="$LIBS"
10813 LIBS="-lm $LIBS"
10814 cat > conftest.$ac_ext <<EOF
10815 #line 10816 "configure"
10816 #include "confdefs.h"
10817 /* Override any gcc2 internal prototype to avoid an error. */
10818 /* We use char because int might match the return type of a gcc2
10819 builtin and then its argument prototype would still apply. */
10820 char sin();
10822 int main() {
10823 sin()
10824 ; return 0; }
10826 if { (eval echo configure:10827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10827 rm -rf conftest*
10828 eval "ac_cv_lib_$ac_lib_var=yes"
10829 else
10830 echo "configure: failed program was:" >&5
10831 cat conftest.$ac_ext >&5
10832 rm -rf conftest*
10833 eval "ac_cv_lib_$ac_lib_var=no"
10835 rm -f conftest*
10836 LIBS="$ac_save_LIBS"
10839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10840 echo "$ac_t""yes" 1>&6
10841 libm="-lm"
10842 else
10843 echo "$ac_t""no" 1>&6
10846 ac_save_LIBS="$LIBS"
10847 LIBS="$LIBS $libm"
10851 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10852 echo "configure:10853: checking for isinf declaration" >&5
10853 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10854 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10855 echo $ac_n "(cached) $ac_c" 1>&6
10856 else
10859 ac_ext=C
10860 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10861 ac_cpp='$CXXCPP $CPPFLAGS'
10862 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10863 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10864 cross_compiling=$ac_cv_prog_cxx_cross
10866 cat > conftest.$ac_ext <<EOF
10867 #line 10868 "configure"
10868 #include "confdefs.h"
10869 #include <math.h>
10870 #ifdef HAVE_IEEEFP_H
10871 #include <ieeefp.h>
10872 #endif
10874 int main() {
10875 isinf(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_isinf_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_isinf_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_isinf_use" 1>&6
10901 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10902 for ac_func in isinf
10904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10905 echo "configure:10906: checking for $ac_func" >&5
10906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10907 echo $ac_n "(cached) $ac_c" 1>&6
10908 else
10909 cat > conftest.$ac_ext <<EOF
10910 #line 10911 "configure"
10911 #include "confdefs.h"
10912 /* System header to define __stub macros and hopefully few prototypes,
10913 which can conflict with char $ac_func(); below. */
10914 #include <assert.h>
10915 /* Override any gcc2 internal prototype to avoid an error. */
10916 /* We use char because int might match the return type of a gcc2
10917 builtin and then its argument prototype would still apply. */
10918 char $ac_func();
10920 int main() {
10922 /* The GNU C library defines this for functions which it implements
10923 to always fail with ENOSYS. Some functions are actually named
10924 something starting with __ and the normal name is an alias. */
10925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10926 choke me
10927 #else
10928 $ac_func();
10929 #endif
10931 ; return 0; }
10933 if { (eval echo configure:10934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10934 rm -rf conftest*
10935 eval "ac_cv_func_$ac_func=yes"
10936 else
10937 echo "configure: failed program was:" >&5
10938 cat conftest.$ac_ext >&5
10939 rm -rf conftest*
10940 eval "ac_cv_func_$ac_func=no"
10942 rm -f conftest*
10945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10946 echo "$ac_t""yes" 1>&6
10947 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10948 cat >> confdefs.h <<EOF
10949 #define $ac_tr_func 1
10952 else
10953 echo "$ac_t""no" 1>&6
10955 done
10957 else
10959 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10960 echo "configure:10961: checking for _isinf declaration" >&5
10961 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10962 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10963 echo $ac_n "(cached) $ac_c" 1>&6
10964 else
10967 ac_ext=C
10968 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10969 ac_cpp='$CXXCPP $CPPFLAGS'
10970 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10971 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10972 cross_compiling=$ac_cv_prog_cxx_cross
10974 cat > conftest.$ac_ext <<EOF
10975 #line 10976 "configure"
10976 #include "confdefs.h"
10977 #include <math.h>
10978 #ifdef HAVE_IEEEFP_H
10979 #include <ieeefp.h>
10980 #endif
10982 int main() {
10983 _isinf(0);
10984 ; return 0; }
10986 if { (eval echo configure:10987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10987 rm -rf conftest*
10988 glibcpp_cv_func__isinf_use=yes
10989 else
10990 echo "configure: failed program was:" >&5
10991 cat conftest.$ac_ext >&5
10992 rm -rf conftest*
10993 glibcpp_cv_func__isinf_use=no
10995 rm -f conftest*
10996 ac_ext=c
10997 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10998 ac_cpp='$CPP $CPPFLAGS'
10999 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11000 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11001 cross_compiling=$ac_cv_prog_cc_cross
11007 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
11009 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
11010 for ac_func in _isinf
11012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11013 echo "configure:11014: checking for $ac_func" >&5
11014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11015 echo $ac_n "(cached) $ac_c" 1>&6
11016 else
11017 cat > conftest.$ac_ext <<EOF
11018 #line 11019 "configure"
11019 #include "confdefs.h"
11020 /* System header to define __stub macros and hopefully few prototypes,
11021 which can conflict with char $ac_func(); below. */
11022 #include <assert.h>
11023 /* Override any gcc2 internal prototype to avoid an error. */
11024 /* We use char because int might match the return type of a gcc2
11025 builtin and then its argument prototype would still apply. */
11026 char $ac_func();
11028 int main() {
11030 /* The GNU C library defines this for functions which it implements
11031 to always fail with ENOSYS. Some functions are actually named
11032 something starting with __ and the normal name is an alias. */
11033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11034 choke me
11035 #else
11036 $ac_func();
11037 #endif
11039 ; return 0; }
11041 if { (eval echo configure:11042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11042 rm -rf conftest*
11043 eval "ac_cv_func_$ac_func=yes"
11044 else
11045 echo "configure: failed program was:" >&5
11046 cat conftest.$ac_ext >&5
11047 rm -rf conftest*
11048 eval "ac_cv_func_$ac_func=no"
11050 rm -f conftest*
11053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11054 echo "$ac_t""yes" 1>&6
11055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11056 cat >> confdefs.h <<EOF
11057 #define $ac_tr_func 1
11060 else
11061 echo "$ac_t""no" 1>&6
11063 done
11070 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
11071 echo "configure:11072: checking for isnan declaration" >&5
11072 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
11073 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
11074 echo $ac_n "(cached) $ac_c" 1>&6
11075 else
11078 ac_ext=C
11079 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11080 ac_cpp='$CXXCPP $CPPFLAGS'
11081 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11082 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11083 cross_compiling=$ac_cv_prog_cxx_cross
11085 cat > conftest.$ac_ext <<EOF
11086 #line 11087 "configure"
11087 #include "confdefs.h"
11088 #include <math.h>
11089 #ifdef HAVE_IEEEFP_H
11090 #include <ieeefp.h>
11091 #endif
11093 int main() {
11094 isnan(0);
11095 ; return 0; }
11097 if { (eval echo configure:11098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11098 rm -rf conftest*
11099 glibcpp_cv_func_isnan_use=yes
11100 else
11101 echo "configure: failed program was:" >&5
11102 cat conftest.$ac_ext >&5
11103 rm -rf conftest*
11104 glibcpp_cv_func_isnan_use=no
11106 rm -f conftest*
11107 ac_ext=c
11108 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11109 ac_cpp='$CPP $CPPFLAGS'
11110 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11111 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11112 cross_compiling=$ac_cv_prog_cc_cross
11118 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
11120 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
11121 for ac_func in isnan
11123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11124 echo "configure:11125: checking for $ac_func" >&5
11125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11126 echo $ac_n "(cached) $ac_c" 1>&6
11127 else
11128 cat > conftest.$ac_ext <<EOF
11129 #line 11130 "configure"
11130 #include "confdefs.h"
11131 /* System header to define __stub macros and hopefully few prototypes,
11132 which can conflict with char $ac_func(); below. */
11133 #include <assert.h>
11134 /* Override any gcc2 internal prototype to avoid an error. */
11135 /* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11137 char $ac_func();
11139 int main() {
11141 /* The GNU C library defines this for functions which it implements
11142 to always fail with ENOSYS. Some functions are actually named
11143 something starting with __ and the normal name is an alias. */
11144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11145 choke me
11146 #else
11147 $ac_func();
11148 #endif
11150 ; return 0; }
11152 if { (eval echo configure:11153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11153 rm -rf conftest*
11154 eval "ac_cv_func_$ac_func=yes"
11155 else
11156 echo "configure: failed program was:" >&5
11157 cat conftest.$ac_ext >&5
11158 rm -rf conftest*
11159 eval "ac_cv_func_$ac_func=no"
11161 rm -f conftest*
11164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11165 echo "$ac_t""yes" 1>&6
11166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11167 cat >> confdefs.h <<EOF
11168 #define $ac_tr_func 1
11171 else
11172 echo "$ac_t""no" 1>&6
11174 done
11176 else
11178 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11179 echo "configure:11180: checking for _isnan declaration" >&5
11180 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11181 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11182 echo $ac_n "(cached) $ac_c" 1>&6
11183 else
11186 ac_ext=C
11187 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11188 ac_cpp='$CXXCPP $CPPFLAGS'
11189 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11190 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11191 cross_compiling=$ac_cv_prog_cxx_cross
11193 cat > conftest.$ac_ext <<EOF
11194 #line 11195 "configure"
11195 #include "confdefs.h"
11196 #include <math.h>
11197 #ifdef HAVE_IEEEFP_H
11198 #include <ieeefp.h>
11199 #endif
11201 int main() {
11202 _isnan(0);
11203 ; return 0; }
11205 if { (eval echo configure:11206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11206 rm -rf conftest*
11207 glibcpp_cv_func__isnan_use=yes
11208 else
11209 echo "configure: failed program was:" >&5
11210 cat conftest.$ac_ext >&5
11211 rm -rf conftest*
11212 glibcpp_cv_func__isnan_use=no
11214 rm -f conftest*
11215 ac_ext=c
11216 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11217 ac_cpp='$CPP $CPPFLAGS'
11218 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11219 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11220 cross_compiling=$ac_cv_prog_cc_cross
11226 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11228 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11229 for ac_func in _isnan
11231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11232 echo "configure:11233: checking for $ac_func" >&5
11233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11234 echo $ac_n "(cached) $ac_c" 1>&6
11235 else
11236 cat > conftest.$ac_ext <<EOF
11237 #line 11238 "configure"
11238 #include "confdefs.h"
11239 /* System header to define __stub macros and hopefully few prototypes,
11240 which can conflict with char $ac_func(); below. */
11241 #include <assert.h>
11242 /* Override any gcc2 internal prototype to avoid an error. */
11243 /* We use char because int might match the return type of a gcc2
11244 builtin and then its argument prototype would still apply. */
11245 char $ac_func();
11247 int main() {
11249 /* The GNU C library defines this for functions which it implements
11250 to always fail with ENOSYS. Some functions are actually named
11251 something starting with __ and the normal name is an alias. */
11252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11253 choke me
11254 #else
11255 $ac_func();
11256 #endif
11258 ; return 0; }
11260 if { (eval echo configure:11261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11261 rm -rf conftest*
11262 eval "ac_cv_func_$ac_func=yes"
11263 else
11264 echo "configure: failed program was:" >&5
11265 cat conftest.$ac_ext >&5
11266 rm -rf conftest*
11267 eval "ac_cv_func_$ac_func=no"
11269 rm -f conftest*
11272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11273 echo "$ac_t""yes" 1>&6
11274 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11275 cat >> confdefs.h <<EOF
11276 #define $ac_tr_func 1
11279 else
11280 echo "$ac_t""no" 1>&6
11282 done
11289 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11290 echo "configure:11291: checking for finite declaration" >&5
11291 if test x${glibcpp_cv_func_finite_use+set} != xset; then
11292 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11293 echo $ac_n "(cached) $ac_c" 1>&6
11294 else
11297 ac_ext=C
11298 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11299 ac_cpp='$CXXCPP $CPPFLAGS'
11300 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11301 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11302 cross_compiling=$ac_cv_prog_cxx_cross
11304 cat > conftest.$ac_ext <<EOF
11305 #line 11306 "configure"
11306 #include "confdefs.h"
11307 #include <math.h>
11308 #ifdef HAVE_IEEEFP_H
11309 #include <ieeefp.h>
11310 #endif
11312 int main() {
11313 finite(0);
11314 ; return 0; }
11316 if { (eval echo configure:11317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11317 rm -rf conftest*
11318 glibcpp_cv_func_finite_use=yes
11319 else
11320 echo "configure: failed program was:" >&5
11321 cat conftest.$ac_ext >&5
11322 rm -rf conftest*
11323 glibcpp_cv_func_finite_use=no
11325 rm -f conftest*
11326 ac_ext=c
11327 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11328 ac_cpp='$CPP $CPPFLAGS'
11329 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11330 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11331 cross_compiling=$ac_cv_prog_cc_cross
11337 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11339 if test x$glibcpp_cv_func_finite_use = x"yes"; then
11340 for ac_func in finite
11342 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11343 echo "configure:11344: checking for $ac_func" >&5
11344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11345 echo $ac_n "(cached) $ac_c" 1>&6
11346 else
11347 cat > conftest.$ac_ext <<EOF
11348 #line 11349 "configure"
11349 #include "confdefs.h"
11350 /* System header to define __stub macros and hopefully few prototypes,
11351 which can conflict with char $ac_func(); below. */
11352 #include <assert.h>
11353 /* Override any gcc2 internal prototype to avoid an error. */
11354 /* We use char because int might match the return type of a gcc2
11355 builtin and then its argument prototype would still apply. */
11356 char $ac_func();
11358 int main() {
11360 /* The GNU C library defines this for functions which it implements
11361 to always fail with ENOSYS. Some functions are actually named
11362 something starting with __ and the normal name is an alias. */
11363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11364 choke me
11365 #else
11366 $ac_func();
11367 #endif
11369 ; return 0; }
11371 if { (eval echo configure:11372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11372 rm -rf conftest*
11373 eval "ac_cv_func_$ac_func=yes"
11374 else
11375 echo "configure: failed program was:" >&5
11376 cat conftest.$ac_ext >&5
11377 rm -rf conftest*
11378 eval "ac_cv_func_$ac_func=no"
11380 rm -f conftest*
11383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11384 echo "$ac_t""yes" 1>&6
11385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11386 cat >> confdefs.h <<EOF
11387 #define $ac_tr_func 1
11390 else
11391 echo "$ac_t""no" 1>&6
11393 done
11395 else
11397 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11398 echo "configure:11399: checking for _finite declaration" >&5
11399 if test x${glibcpp_cv_func__finite_use+set} != xset; then
11400 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11401 echo $ac_n "(cached) $ac_c" 1>&6
11402 else
11405 ac_ext=C
11406 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11407 ac_cpp='$CXXCPP $CPPFLAGS'
11408 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11409 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11410 cross_compiling=$ac_cv_prog_cxx_cross
11412 cat > conftest.$ac_ext <<EOF
11413 #line 11414 "configure"
11414 #include "confdefs.h"
11415 #include <math.h>
11416 #ifdef HAVE_IEEEFP_H
11417 #include <ieeefp.h>
11418 #endif
11420 int main() {
11421 _finite(0);
11422 ; return 0; }
11424 if { (eval echo configure:11425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11425 rm -rf conftest*
11426 glibcpp_cv_func__finite_use=yes
11427 else
11428 echo "configure: failed program was:" >&5
11429 cat conftest.$ac_ext >&5
11430 rm -rf conftest*
11431 glibcpp_cv_func__finite_use=no
11433 rm -f conftest*
11434 ac_ext=c
11435 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11436 ac_cpp='$CPP $CPPFLAGS'
11437 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11438 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11439 cross_compiling=$ac_cv_prog_cc_cross
11445 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11447 if test x$glibcpp_cv_func__finite_use = x"yes"; then
11448 for ac_func in _finite
11450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11451 echo "configure:11452: checking for $ac_func" >&5
11452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11453 echo $ac_n "(cached) $ac_c" 1>&6
11454 else
11455 cat > conftest.$ac_ext <<EOF
11456 #line 11457 "configure"
11457 #include "confdefs.h"
11458 /* System header to define __stub macros and hopefully few prototypes,
11459 which can conflict with char $ac_func(); below. */
11460 #include <assert.h>
11461 /* Override any gcc2 internal prototype to avoid an error. */
11462 /* We use char because int might match the return type of a gcc2
11463 builtin and then its argument prototype would still apply. */
11464 char $ac_func();
11466 int main() {
11468 /* The GNU C library defines this for functions which it implements
11469 to always fail with ENOSYS. Some functions are actually named
11470 something starting with __ and the normal name is an alias. */
11471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11472 choke me
11473 #else
11474 $ac_func();
11475 #endif
11477 ; return 0; }
11479 if { (eval echo configure:11480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11480 rm -rf conftest*
11481 eval "ac_cv_func_$ac_func=yes"
11482 else
11483 echo "configure: failed program was:" >&5
11484 cat conftest.$ac_ext >&5
11485 rm -rf conftest*
11486 eval "ac_cv_func_$ac_func=no"
11488 rm -f conftest*
11491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11492 echo "$ac_t""yes" 1>&6
11493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11494 cat >> confdefs.h <<EOF
11495 #define $ac_tr_func 1
11498 else
11499 echo "$ac_t""no" 1>&6
11501 done
11508 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11509 echo "configure:11510: checking for copysign declaration" >&5
11510 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11511 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11512 echo $ac_n "(cached) $ac_c" 1>&6
11513 else
11516 ac_ext=C
11517 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11518 ac_cpp='$CXXCPP $CPPFLAGS'
11519 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11520 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11521 cross_compiling=$ac_cv_prog_cxx_cross
11523 cat > conftest.$ac_ext <<EOF
11524 #line 11525 "configure"
11525 #include "confdefs.h"
11526 #include <math.h>
11527 int main() {
11528 copysign(0, 0);
11529 ; return 0; }
11531 if { (eval echo configure:11532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11532 rm -rf conftest*
11533 glibcpp_cv_func_copysign_use=yes
11534 else
11535 echo "configure: failed program was:" >&5
11536 cat conftest.$ac_ext >&5
11537 rm -rf conftest*
11538 glibcpp_cv_func_copysign_use=no
11540 rm -f conftest*
11541 ac_ext=c
11542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11543 ac_cpp='$CPP $CPPFLAGS'
11544 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11545 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11546 cross_compiling=$ac_cv_prog_cc_cross
11552 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11554 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11555 for ac_func in copysign
11557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11558 echo "configure:11559: checking for $ac_func" >&5
11559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11560 echo $ac_n "(cached) $ac_c" 1>&6
11561 else
11562 cat > conftest.$ac_ext <<EOF
11563 #line 11564 "configure"
11564 #include "confdefs.h"
11565 /* System header to define __stub macros and hopefully few prototypes,
11566 which can conflict with char $ac_func(); below. */
11567 #include <assert.h>
11568 /* Override any gcc2 internal prototype to avoid an error. */
11569 /* We use char because int might match the return type of a gcc2
11570 builtin and then its argument prototype would still apply. */
11571 char $ac_func();
11573 int main() {
11575 /* The GNU C library defines this for functions which it implements
11576 to always fail with ENOSYS. Some functions are actually named
11577 something starting with __ and the normal name is an alias. */
11578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11579 choke me
11580 #else
11581 $ac_func();
11582 #endif
11584 ; return 0; }
11586 if { (eval echo configure:11587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11587 rm -rf conftest*
11588 eval "ac_cv_func_$ac_func=yes"
11589 else
11590 echo "configure: failed program was:" >&5
11591 cat conftest.$ac_ext >&5
11592 rm -rf conftest*
11593 eval "ac_cv_func_$ac_func=no"
11595 rm -f conftest*
11598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11599 echo "$ac_t""yes" 1>&6
11600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11601 cat >> confdefs.h <<EOF
11602 #define $ac_tr_func 1
11605 else
11606 echo "$ac_t""no" 1>&6
11608 done
11610 else
11612 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11613 echo "configure:11614: checking for _copysign declaration" >&5
11614 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11615 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11616 echo $ac_n "(cached) $ac_c" 1>&6
11617 else
11620 ac_ext=C
11621 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11622 ac_cpp='$CXXCPP $CPPFLAGS'
11623 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11624 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11625 cross_compiling=$ac_cv_prog_cxx_cross
11627 cat > conftest.$ac_ext <<EOF
11628 #line 11629 "configure"
11629 #include "confdefs.h"
11630 #include <math.h>
11631 int main() {
11632 _copysign(0, 0);
11633 ; return 0; }
11635 if { (eval echo configure:11636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11636 rm -rf conftest*
11637 glibcpp_cv_func__copysign_use=yes
11638 else
11639 echo "configure: failed program was:" >&5
11640 cat conftest.$ac_ext >&5
11641 rm -rf conftest*
11642 glibcpp_cv_func__copysign_use=no
11644 rm -f conftest*
11645 ac_ext=c
11646 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11647 ac_cpp='$CPP $CPPFLAGS'
11648 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11649 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11650 cross_compiling=$ac_cv_prog_cc_cross
11656 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11658 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11659 for ac_func in _copysign
11661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11662 echo "configure:11663: checking for $ac_func" >&5
11663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11664 echo $ac_n "(cached) $ac_c" 1>&6
11665 else
11666 cat > conftest.$ac_ext <<EOF
11667 #line 11668 "configure"
11668 #include "confdefs.h"
11669 /* System header to define __stub macros and hopefully few prototypes,
11670 which can conflict with char $ac_func(); below. */
11671 #include <assert.h>
11672 /* Override any gcc2 internal prototype to avoid an error. */
11673 /* We use char because int might match the return type of a gcc2
11674 builtin and then its argument prototype would still apply. */
11675 char $ac_func();
11677 int main() {
11679 /* The GNU C library defines this for functions which it implements
11680 to always fail with ENOSYS. Some functions are actually named
11681 something starting with __ and the normal name is an alias. */
11682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11683 choke me
11684 #else
11685 $ac_func();
11686 #endif
11688 ; return 0; }
11690 if { (eval echo configure:11691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11691 rm -rf conftest*
11692 eval "ac_cv_func_$ac_func=yes"
11693 else
11694 echo "configure: failed program was:" >&5
11695 cat conftest.$ac_ext >&5
11696 rm -rf conftest*
11697 eval "ac_cv_func_$ac_func=no"
11699 rm -f conftest*
11702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11703 echo "$ac_t""yes" 1>&6
11704 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11705 cat >> confdefs.h <<EOF
11706 #define $ac_tr_func 1
11709 else
11710 echo "$ac_t""no" 1>&6
11712 done
11719 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11720 echo "configure:11721: checking for sincos declaration" >&5
11721 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11722 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11723 echo $ac_n "(cached) $ac_c" 1>&6
11724 else
11727 ac_ext=C
11728 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11729 ac_cpp='$CXXCPP $CPPFLAGS'
11730 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11731 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11732 cross_compiling=$ac_cv_prog_cxx_cross
11734 cat > conftest.$ac_ext <<EOF
11735 #line 11736 "configure"
11736 #include "confdefs.h"
11737 #include <math.h>
11738 int main() {
11739 sincos(0, 0, 0);
11740 ; return 0; }
11742 if { (eval echo configure:11743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11743 rm -rf conftest*
11744 glibcpp_cv_func_sincos_use=yes
11745 else
11746 echo "configure: failed program was:" >&5
11747 cat conftest.$ac_ext >&5
11748 rm -rf conftest*
11749 glibcpp_cv_func_sincos_use=no
11751 rm -f conftest*
11752 ac_ext=c
11753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11754 ac_cpp='$CPP $CPPFLAGS'
11755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11757 cross_compiling=$ac_cv_prog_cc_cross
11763 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11765 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11766 for ac_func in sincos
11768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11769 echo "configure:11770: checking for $ac_func" >&5
11770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11771 echo $ac_n "(cached) $ac_c" 1>&6
11772 else
11773 cat > conftest.$ac_ext <<EOF
11774 #line 11775 "configure"
11775 #include "confdefs.h"
11776 /* System header to define __stub macros and hopefully few prototypes,
11777 which can conflict with char $ac_func(); below. */
11778 #include <assert.h>
11779 /* Override any gcc2 internal prototype to avoid an error. */
11780 /* We use char because int might match the return type of a gcc2
11781 builtin and then its argument prototype would still apply. */
11782 char $ac_func();
11784 int main() {
11786 /* The GNU C library defines this for functions which it implements
11787 to always fail with ENOSYS. Some functions are actually named
11788 something starting with __ and the normal name is an alias. */
11789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11790 choke me
11791 #else
11792 $ac_func();
11793 #endif
11795 ; return 0; }
11797 if { (eval echo configure:11798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11798 rm -rf conftest*
11799 eval "ac_cv_func_$ac_func=yes"
11800 else
11801 echo "configure: failed program was:" >&5
11802 cat conftest.$ac_ext >&5
11803 rm -rf conftest*
11804 eval "ac_cv_func_$ac_func=no"
11806 rm -f conftest*
11809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11810 echo "$ac_t""yes" 1>&6
11811 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11812 cat >> confdefs.h <<EOF
11813 #define $ac_tr_func 1
11816 else
11817 echo "$ac_t""no" 1>&6
11819 done
11821 else
11823 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11824 echo "configure:11825: checking for _sincos declaration" >&5
11825 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11826 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11827 echo $ac_n "(cached) $ac_c" 1>&6
11828 else
11831 ac_ext=C
11832 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11833 ac_cpp='$CXXCPP $CPPFLAGS'
11834 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11835 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11836 cross_compiling=$ac_cv_prog_cxx_cross
11838 cat > conftest.$ac_ext <<EOF
11839 #line 11840 "configure"
11840 #include "confdefs.h"
11841 #include <math.h>
11842 int main() {
11843 _sincos(0, 0, 0);
11844 ; return 0; }
11846 if { (eval echo configure:11847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11847 rm -rf conftest*
11848 glibcpp_cv_func__sincos_use=yes
11849 else
11850 echo "configure: failed program was:" >&5
11851 cat conftest.$ac_ext >&5
11852 rm -rf conftest*
11853 glibcpp_cv_func__sincos_use=no
11855 rm -f conftest*
11856 ac_ext=c
11857 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11858 ac_cpp='$CPP $CPPFLAGS'
11859 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11860 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11861 cross_compiling=$ac_cv_prog_cc_cross
11867 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11869 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11870 for ac_func in _sincos
11872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11873 echo "configure:11874: checking for $ac_func" >&5
11874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11875 echo $ac_n "(cached) $ac_c" 1>&6
11876 else
11877 cat > conftest.$ac_ext <<EOF
11878 #line 11879 "configure"
11879 #include "confdefs.h"
11880 /* System header to define __stub macros and hopefully few prototypes,
11881 which can conflict with char $ac_func(); below. */
11882 #include <assert.h>
11883 /* Override any gcc2 internal prototype to avoid an error. */
11884 /* We use char because int might match the return type of a gcc2
11885 builtin and then its argument prototype would still apply. */
11886 char $ac_func();
11888 int main() {
11890 /* The GNU C library defines this for functions which it implements
11891 to always fail with ENOSYS. Some functions are actually named
11892 something starting with __ and the normal name is an alias. */
11893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11894 choke me
11895 #else
11896 $ac_func();
11897 #endif
11899 ; return 0; }
11901 if { (eval echo configure:11902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11902 rm -rf conftest*
11903 eval "ac_cv_func_$ac_func=yes"
11904 else
11905 echo "configure: failed program was:" >&5
11906 cat conftest.$ac_ext >&5
11907 rm -rf conftest*
11908 eval "ac_cv_func_$ac_func=no"
11910 rm -f conftest*
11913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11914 echo "$ac_t""yes" 1>&6
11915 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11916 cat >> confdefs.h <<EOF
11917 #define $ac_tr_func 1
11920 else
11921 echo "$ac_t""no" 1>&6
11923 done
11930 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11931 echo "configure:11932: checking for fpclass declaration" >&5
11932 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11933 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11934 echo $ac_n "(cached) $ac_c" 1>&6
11935 else
11938 ac_ext=C
11939 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11940 ac_cpp='$CXXCPP $CPPFLAGS'
11941 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11942 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11943 cross_compiling=$ac_cv_prog_cxx_cross
11945 cat > conftest.$ac_ext <<EOF
11946 #line 11947 "configure"
11947 #include "confdefs.h"
11948 #include <math.h>
11949 #ifdef HAVE_IEEEFP_H
11950 #include <ieeefp.h>
11951 #endif
11953 int main() {
11954 fpclass(0);
11955 ; return 0; }
11957 if { (eval echo configure:11958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11958 rm -rf conftest*
11959 glibcpp_cv_func_fpclass_use=yes
11960 else
11961 echo "configure: failed program was:" >&5
11962 cat conftest.$ac_ext >&5
11963 rm -rf conftest*
11964 glibcpp_cv_func_fpclass_use=no
11966 rm -f conftest*
11967 ac_ext=c
11968 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11969 ac_cpp='$CPP $CPPFLAGS'
11970 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11971 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11972 cross_compiling=$ac_cv_prog_cc_cross
11978 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11980 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11981 for ac_func in fpclass
11983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11984 echo "configure:11985: checking for $ac_func" >&5
11985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11986 echo $ac_n "(cached) $ac_c" 1>&6
11987 else
11988 cat > conftest.$ac_ext <<EOF
11989 #line 11990 "configure"
11990 #include "confdefs.h"
11991 /* System header to define __stub macros and hopefully few prototypes,
11992 which can conflict with char $ac_func(); below. */
11993 #include <assert.h>
11994 /* Override any gcc2 internal prototype to avoid an error. */
11995 /* We use char because int might match the return type of a gcc2
11996 builtin and then its argument prototype would still apply. */
11997 char $ac_func();
11999 int main() {
12001 /* The GNU C library defines this for functions which it implements
12002 to always fail with ENOSYS. Some functions are actually named
12003 something starting with __ and the normal name is an alias. */
12004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12005 choke me
12006 #else
12007 $ac_func();
12008 #endif
12010 ; return 0; }
12012 if { (eval echo configure:12013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12013 rm -rf conftest*
12014 eval "ac_cv_func_$ac_func=yes"
12015 else
12016 echo "configure: failed program was:" >&5
12017 cat conftest.$ac_ext >&5
12018 rm -rf conftest*
12019 eval "ac_cv_func_$ac_func=no"
12021 rm -f conftest*
12024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12025 echo "$ac_t""yes" 1>&6
12026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12027 cat >> confdefs.h <<EOF
12028 #define $ac_tr_func 1
12031 else
12032 echo "$ac_t""no" 1>&6
12034 done
12036 else
12038 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
12039 echo "configure:12040: checking for _fpclass declaration" >&5
12040 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
12041 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
12042 echo $ac_n "(cached) $ac_c" 1>&6
12043 else
12046 ac_ext=C
12047 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12048 ac_cpp='$CXXCPP $CPPFLAGS'
12049 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12050 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12051 cross_compiling=$ac_cv_prog_cxx_cross
12053 cat > conftest.$ac_ext <<EOF
12054 #line 12055 "configure"
12055 #include "confdefs.h"
12056 #include <math.h>
12057 #ifdef HAVE_IEEEFP_H
12058 #include <ieeefp.h>
12059 #endif
12061 int main() {
12062 _fpclass(0);
12063 ; return 0; }
12065 if { (eval echo configure:12066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12066 rm -rf conftest*
12067 glibcpp_cv_func__fpclass_use=yes
12068 else
12069 echo "configure: failed program was:" >&5
12070 cat conftest.$ac_ext >&5
12071 rm -rf conftest*
12072 glibcpp_cv_func__fpclass_use=no
12074 rm -f conftest*
12075 ac_ext=c
12076 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12077 ac_cpp='$CPP $CPPFLAGS'
12078 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12079 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12080 cross_compiling=$ac_cv_prog_cc_cross
12086 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
12088 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
12089 for ac_func in _fpclass
12091 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12092 echo "configure:12093: checking for $ac_func" >&5
12093 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12094 echo $ac_n "(cached) $ac_c" 1>&6
12095 else
12096 cat > conftest.$ac_ext <<EOF
12097 #line 12098 "configure"
12098 #include "confdefs.h"
12099 /* System header to define __stub macros and hopefully few prototypes,
12100 which can conflict with char $ac_func(); below. */
12101 #include <assert.h>
12102 /* Override any gcc2 internal prototype to avoid an error. */
12103 /* We use char because int might match the return type of a gcc2
12104 builtin and then its argument prototype would still apply. */
12105 char $ac_func();
12107 int main() {
12109 /* The GNU C library defines this for functions which it implements
12110 to always fail with ENOSYS. Some functions are actually named
12111 something starting with __ and the normal name is an alias. */
12112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12113 choke me
12114 #else
12115 $ac_func();
12116 #endif
12118 ; return 0; }
12120 if { (eval echo configure:12121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12121 rm -rf conftest*
12122 eval "ac_cv_func_$ac_func=yes"
12123 else
12124 echo "configure: failed program was:" >&5
12125 cat conftest.$ac_ext >&5
12126 rm -rf conftest*
12127 eval "ac_cv_func_$ac_func=no"
12129 rm -f conftest*
12132 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12133 echo "$ac_t""yes" 1>&6
12134 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12135 cat >> confdefs.h <<EOF
12136 #define $ac_tr_func 1
12139 else
12140 echo "$ac_t""no" 1>&6
12142 done
12149 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12150 echo "configure:12151: checking for qfpclass declaration" >&5
12151 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12152 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12153 echo $ac_n "(cached) $ac_c" 1>&6
12154 else
12157 ac_ext=C
12158 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12159 ac_cpp='$CXXCPP $CPPFLAGS'
12160 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12161 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12162 cross_compiling=$ac_cv_prog_cxx_cross
12164 cat > conftest.$ac_ext <<EOF
12165 #line 12166 "configure"
12166 #include "confdefs.h"
12167 #include <math.h>
12168 #ifdef HAVE_IEEEFP_H
12169 #include <ieeefp.h>
12170 #endif
12172 int main() {
12173 qfpclass(0);
12174 ; return 0; }
12176 if { (eval echo configure:12177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12177 rm -rf conftest*
12178 glibcpp_cv_func_qfpclass_use=yes
12179 else
12180 echo "configure: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12182 rm -rf conftest*
12183 glibcpp_cv_func_qfpclass_use=no
12185 rm -f conftest*
12186 ac_ext=c
12187 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12188 ac_cpp='$CPP $CPPFLAGS'
12189 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12190 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12191 cross_compiling=$ac_cv_prog_cc_cross
12197 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12199 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12200 for ac_func in qfpclass
12202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12203 echo "configure:12204: checking for $ac_func" >&5
12204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12205 echo $ac_n "(cached) $ac_c" 1>&6
12206 else
12207 cat > conftest.$ac_ext <<EOF
12208 #line 12209 "configure"
12209 #include "confdefs.h"
12210 /* System header to define __stub macros and hopefully few prototypes,
12211 which can conflict with char $ac_func(); below. */
12212 #include <assert.h>
12213 /* Override any gcc2 internal prototype to avoid an error. */
12214 /* We use char because int might match the return type of a gcc2
12215 builtin and then its argument prototype would still apply. */
12216 char $ac_func();
12218 int main() {
12220 /* The GNU C library defines this for functions which it implements
12221 to always fail with ENOSYS. Some functions are actually named
12222 something starting with __ and the normal name is an alias. */
12223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12224 choke me
12225 #else
12226 $ac_func();
12227 #endif
12229 ; return 0; }
12231 if { (eval echo configure:12232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12232 rm -rf conftest*
12233 eval "ac_cv_func_$ac_func=yes"
12234 else
12235 echo "configure: failed program was:" >&5
12236 cat conftest.$ac_ext >&5
12237 rm -rf conftest*
12238 eval "ac_cv_func_$ac_func=no"
12240 rm -f conftest*
12243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12244 echo "$ac_t""yes" 1>&6
12245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12246 cat >> confdefs.h <<EOF
12247 #define $ac_tr_func 1
12250 else
12251 echo "$ac_t""no" 1>&6
12253 done
12255 else
12257 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12258 echo "configure:12259: checking for _qfpclass declaration" >&5
12259 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12260 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12261 echo $ac_n "(cached) $ac_c" 1>&6
12262 else
12265 ac_ext=C
12266 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12267 ac_cpp='$CXXCPP $CPPFLAGS'
12268 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12269 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12270 cross_compiling=$ac_cv_prog_cxx_cross
12272 cat > conftest.$ac_ext <<EOF
12273 #line 12274 "configure"
12274 #include "confdefs.h"
12275 #include <math.h>
12276 #ifdef HAVE_IEEEFP_H
12277 #include <ieeefp.h>
12278 #endif
12280 int main() {
12281 _qfpclass(0);
12282 ; return 0; }
12284 if { (eval echo configure:12285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12285 rm -rf conftest*
12286 glibcpp_cv_func__qfpclass_use=yes
12287 else
12288 echo "configure: failed program was:" >&5
12289 cat conftest.$ac_ext >&5
12290 rm -rf conftest*
12291 glibcpp_cv_func__qfpclass_use=no
12293 rm -f conftest*
12294 ac_ext=c
12295 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12296 ac_cpp='$CPP $CPPFLAGS'
12297 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12298 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12299 cross_compiling=$ac_cv_prog_cc_cross
12305 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12307 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12308 for ac_func in _qfpclass
12310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12311 echo "configure:12312: checking for $ac_func" >&5
12312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12313 echo $ac_n "(cached) $ac_c" 1>&6
12314 else
12315 cat > conftest.$ac_ext <<EOF
12316 #line 12317 "configure"
12317 #include "confdefs.h"
12318 /* System header to define __stub macros and hopefully few prototypes,
12319 which can conflict with char $ac_func(); below. */
12320 #include <assert.h>
12321 /* Override any gcc2 internal prototype to avoid an error. */
12322 /* We use char because int might match the return type of a gcc2
12323 builtin and then its argument prototype would still apply. */
12324 char $ac_func();
12326 int main() {
12328 /* The GNU C library defines this for functions which it implements
12329 to always fail with ENOSYS. Some functions are actually named
12330 something starting with __ and the normal name is an alias. */
12331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12332 choke me
12333 #else
12334 $ac_func();
12335 #endif
12337 ; return 0; }
12339 if { (eval echo configure:12340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12340 rm -rf conftest*
12341 eval "ac_cv_func_$ac_func=yes"
12342 else
12343 echo "configure: failed program was:" >&5
12344 cat conftest.$ac_ext >&5
12345 rm -rf conftest*
12346 eval "ac_cv_func_$ac_func=no"
12348 rm -f conftest*
12351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12352 echo "$ac_t""yes" 1>&6
12353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12354 cat >> confdefs.h <<EOF
12355 #define $ac_tr_func 1
12358 else
12359 echo "$ac_t""no" 1>&6
12361 done
12368 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12369 echo "configure:12370: checking for hypot declaration" >&5
12370 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12371 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12372 echo $ac_n "(cached) $ac_c" 1>&6
12373 else
12376 ac_ext=C
12377 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12378 ac_cpp='$CXXCPP $CPPFLAGS'
12379 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12380 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12381 cross_compiling=$ac_cv_prog_cxx_cross
12383 cat > conftest.$ac_ext <<EOF
12384 #line 12385 "configure"
12385 #include "confdefs.h"
12386 #include <math.h>
12387 int main() {
12388 hypot(0, 0);
12389 ; return 0; }
12391 if { (eval echo configure:12392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12392 rm -rf conftest*
12393 glibcpp_cv_func_hypot_use=yes
12394 else
12395 echo "configure: failed program was:" >&5
12396 cat conftest.$ac_ext >&5
12397 rm -rf conftest*
12398 glibcpp_cv_func_hypot_use=no
12400 rm -f conftest*
12401 ac_ext=c
12402 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12403 ac_cpp='$CPP $CPPFLAGS'
12404 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12405 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12406 cross_compiling=$ac_cv_prog_cc_cross
12412 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12414 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12415 for ac_func in hypot
12417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12418 echo "configure:12419: checking for $ac_func" >&5
12419 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12420 echo $ac_n "(cached) $ac_c" 1>&6
12421 else
12422 cat > conftest.$ac_ext <<EOF
12423 #line 12424 "configure"
12424 #include "confdefs.h"
12425 /* System header to define __stub macros and hopefully few prototypes,
12426 which can conflict with char $ac_func(); below. */
12427 #include <assert.h>
12428 /* Override any gcc2 internal prototype to avoid an error. */
12429 /* We use char because int might match the return type of a gcc2
12430 builtin and then its argument prototype would still apply. */
12431 char $ac_func();
12433 int main() {
12435 /* The GNU C library defines this for functions which it implements
12436 to always fail with ENOSYS. Some functions are actually named
12437 something starting with __ and the normal name is an alias. */
12438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12439 choke me
12440 #else
12441 $ac_func();
12442 #endif
12444 ; return 0; }
12446 if { (eval echo configure:12447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12447 rm -rf conftest*
12448 eval "ac_cv_func_$ac_func=yes"
12449 else
12450 echo "configure: failed program was:" >&5
12451 cat conftest.$ac_ext >&5
12452 rm -rf conftest*
12453 eval "ac_cv_func_$ac_func=no"
12455 rm -f conftest*
12458 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12459 echo "$ac_t""yes" 1>&6
12460 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12461 cat >> confdefs.h <<EOF
12462 #define $ac_tr_func 1
12465 else
12466 echo "$ac_t""no" 1>&6
12468 done
12470 else
12472 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12473 echo "configure:12474: checking for _hypot declaration" >&5
12474 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12475 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12476 echo $ac_n "(cached) $ac_c" 1>&6
12477 else
12480 ac_ext=C
12481 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12482 ac_cpp='$CXXCPP $CPPFLAGS'
12483 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12484 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12485 cross_compiling=$ac_cv_prog_cxx_cross
12487 cat > conftest.$ac_ext <<EOF
12488 #line 12489 "configure"
12489 #include "confdefs.h"
12490 #include <math.h>
12491 int main() {
12492 _hypot(0, 0);
12493 ; return 0; }
12495 if { (eval echo configure:12496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12496 rm -rf conftest*
12497 glibcpp_cv_func__hypot_use=yes
12498 else
12499 echo "configure: failed program was:" >&5
12500 cat conftest.$ac_ext >&5
12501 rm -rf conftest*
12502 glibcpp_cv_func__hypot_use=no
12504 rm -f conftest*
12505 ac_ext=c
12506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12507 ac_cpp='$CPP $CPPFLAGS'
12508 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12509 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12510 cross_compiling=$ac_cv_prog_cc_cross
12516 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12518 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12519 for ac_func in _hypot
12521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12522 echo "configure:12523: checking for $ac_func" >&5
12523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12524 echo $ac_n "(cached) $ac_c" 1>&6
12525 else
12526 cat > conftest.$ac_ext <<EOF
12527 #line 12528 "configure"
12528 #include "confdefs.h"
12529 /* System header to define __stub macros and hopefully few prototypes,
12530 which can conflict with char $ac_func(); below. */
12531 #include <assert.h>
12532 /* Override any gcc2 internal prototype to avoid an error. */
12533 /* We use char because int might match the return type of a gcc2
12534 builtin and then its argument prototype would still apply. */
12535 char $ac_func();
12537 int main() {
12539 /* The GNU C library defines this for functions which it implements
12540 to always fail with ENOSYS. Some functions are actually named
12541 something starting with __ and the normal name is an alias. */
12542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12543 choke me
12544 #else
12545 $ac_func();
12546 #endif
12548 ; return 0; }
12550 if { (eval echo configure:12551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12551 rm -rf conftest*
12552 eval "ac_cv_func_$ac_func=yes"
12553 else
12554 echo "configure: failed program was:" >&5
12555 cat conftest.$ac_ext >&5
12556 rm -rf conftest*
12557 eval "ac_cv_func_$ac_func=no"
12559 rm -f conftest*
12562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12563 echo "$ac_t""yes" 1>&6
12564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12565 cat >> confdefs.h <<EOF
12566 #define $ac_tr_func 1
12569 else
12570 echo "$ac_t""no" 1>&6
12572 done
12579 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12580 echo "configure:12581: checking for float trig functions" >&5
12581 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12582 echo $ac_n "(cached) $ac_c" 1>&6
12583 else
12586 ac_ext=C
12587 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12588 ac_cpp='$CXXCPP $CPPFLAGS'
12589 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12590 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12591 cross_compiling=$ac_cv_prog_cxx_cross
12593 cat > conftest.$ac_ext <<EOF
12594 #line 12595 "configure"
12595 #include "confdefs.h"
12596 #include <math.h>
12597 int main() {
12598 `for x in acosf asinf atanf \
12599 cosf sinf tanf \
12600 coshf sinhf tanhf; do echo "$x (0);"; done`
12601 ; return 0; }
12603 if { (eval echo configure:12604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12604 rm -rf conftest*
12605 glibcpp_cv_func_float_trig_use=yes
12606 else
12607 echo "configure: failed program was:" >&5
12608 cat conftest.$ac_ext >&5
12609 rm -rf conftest*
12610 glibcpp_cv_func_float_trig_use=no
12612 rm -f conftest*
12613 ac_ext=c
12614 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12615 ac_cpp='$CPP $CPPFLAGS'
12616 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12617 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12618 cross_compiling=$ac_cv_prog_cc_cross
12622 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12623 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12624 for ac_func in acosf asinf atanf \
12625 cosf sinf tanf \
12626 coshf sinhf tanhf
12628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12629 echo "configure:12630: checking for $ac_func" >&5
12630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12631 echo $ac_n "(cached) $ac_c" 1>&6
12632 else
12633 cat > conftest.$ac_ext <<EOF
12634 #line 12635 "configure"
12635 #include "confdefs.h"
12636 /* System header to define __stub macros and hopefully few prototypes,
12637 which can conflict with char $ac_func(); below. */
12638 #include <assert.h>
12639 /* Override any gcc2 internal prototype to avoid an error. */
12640 /* We use char because int might match the return type of a gcc2
12641 builtin and then its argument prototype would still apply. */
12642 char $ac_func();
12644 int main() {
12646 /* The GNU C library defines this for functions which it implements
12647 to always fail with ENOSYS. Some functions are actually named
12648 something starting with __ and the normal name is an alias. */
12649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12650 choke me
12651 #else
12652 $ac_func();
12653 #endif
12655 ; return 0; }
12657 if { (eval echo configure:12658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12658 rm -rf conftest*
12659 eval "ac_cv_func_$ac_func=yes"
12660 else
12661 echo "configure: failed program was:" >&5
12662 cat conftest.$ac_ext >&5
12663 rm -rf conftest*
12664 eval "ac_cv_func_$ac_func=no"
12666 rm -f conftest*
12669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12670 echo "$ac_t""yes" 1>&6
12671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12672 cat >> confdefs.h <<EOF
12673 #define $ac_tr_func 1
12676 else
12677 echo "$ac_t""no" 1>&6
12679 done
12684 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12685 echo "configure:12686: checking for float round functions" >&5
12686 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12687 echo $ac_n "(cached) $ac_c" 1>&6
12688 else
12691 ac_ext=C
12692 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12693 ac_cpp='$CXXCPP $CPPFLAGS'
12694 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12695 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12696 cross_compiling=$ac_cv_prog_cxx_cross
12698 cat > conftest.$ac_ext <<EOF
12699 #line 12700 "configure"
12700 #include "confdefs.h"
12701 #include <math.h>
12702 int main() {
12703 `for x in ceilf floorf; do echo "$x (0);"; done`
12704 ; return 0; }
12706 if { (eval echo configure:12707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12707 rm -rf conftest*
12708 glibcpp_cv_func_float_round_use=yes
12709 else
12710 echo "configure: failed program was:" >&5
12711 cat conftest.$ac_ext >&5
12712 rm -rf conftest*
12713 glibcpp_cv_func_float_round_use=no
12715 rm -f conftest*
12716 ac_ext=c
12717 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12718 ac_cpp='$CPP $CPPFLAGS'
12719 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12720 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12721 cross_compiling=$ac_cv_prog_cc_cross
12725 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12726 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12727 for ac_func in ceilf floorf
12729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12730 echo "configure:12731: checking for $ac_func" >&5
12731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12732 echo $ac_n "(cached) $ac_c" 1>&6
12733 else
12734 cat > conftest.$ac_ext <<EOF
12735 #line 12736 "configure"
12736 #include "confdefs.h"
12737 /* System header to define __stub macros and hopefully few prototypes,
12738 which can conflict with char $ac_func(); below. */
12739 #include <assert.h>
12740 /* Override any gcc2 internal prototype to avoid an error. */
12741 /* We use char because int might match the return type of a gcc2
12742 builtin and then its argument prototype would still apply. */
12743 char $ac_func();
12745 int main() {
12747 /* The GNU C library defines this for functions which it implements
12748 to always fail with ENOSYS. Some functions are actually named
12749 something starting with __ and the normal name is an alias. */
12750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12751 choke me
12752 #else
12753 $ac_func();
12754 #endif
12756 ; return 0; }
12758 if { (eval echo configure:12759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12759 rm -rf conftest*
12760 eval "ac_cv_func_$ac_func=yes"
12761 else
12762 echo "configure: failed program was:" >&5
12763 cat conftest.$ac_ext >&5
12764 rm -rf conftest*
12765 eval "ac_cv_func_$ac_func=no"
12767 rm -f conftest*
12770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12771 echo "$ac_t""yes" 1>&6
12772 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12773 cat >> confdefs.h <<EOF
12774 #define $ac_tr_func 1
12777 else
12778 echo "$ac_t""no" 1>&6
12780 done
12786 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12787 echo "configure:12788: checking for expf declaration" >&5
12788 if test x${glibcpp_cv_func_expf_use+set} != xset; then
12789 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12790 echo $ac_n "(cached) $ac_c" 1>&6
12791 else
12794 ac_ext=C
12795 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12796 ac_cpp='$CXXCPP $CPPFLAGS'
12797 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12798 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12799 cross_compiling=$ac_cv_prog_cxx_cross
12801 cat > conftest.$ac_ext <<EOF
12802 #line 12803 "configure"
12803 #include "confdefs.h"
12804 #include <math.h>
12805 #ifdef HAVE_IEEEFP_H
12806 #include <ieeefp.h>
12807 #endif
12809 int main() {
12810 expf(0);
12811 ; return 0; }
12813 if { (eval echo configure:12814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12814 rm -rf conftest*
12815 glibcpp_cv_func_expf_use=yes
12816 else
12817 echo "configure: failed program was:" >&5
12818 cat conftest.$ac_ext >&5
12819 rm -rf conftest*
12820 glibcpp_cv_func_expf_use=no
12822 rm -f conftest*
12823 ac_ext=c
12824 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12825 ac_cpp='$CPP $CPPFLAGS'
12826 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12827 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12828 cross_compiling=$ac_cv_prog_cc_cross
12834 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12836 if test x$glibcpp_cv_func_expf_use = x"yes"; then
12837 for ac_func in expf
12839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12840 echo "configure:12841: checking for $ac_func" >&5
12841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12842 echo $ac_n "(cached) $ac_c" 1>&6
12843 else
12844 cat > conftest.$ac_ext <<EOF
12845 #line 12846 "configure"
12846 #include "confdefs.h"
12847 /* System header to define __stub macros and hopefully few prototypes,
12848 which can conflict with char $ac_func(); below. */
12849 #include <assert.h>
12850 /* Override any gcc2 internal prototype to avoid an error. */
12851 /* We use char because int might match the return type of a gcc2
12852 builtin and then its argument prototype would still apply. */
12853 char $ac_func();
12855 int main() {
12857 /* The GNU C library defines this for functions which it implements
12858 to always fail with ENOSYS. Some functions are actually named
12859 something starting with __ and the normal name is an alias. */
12860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12861 choke me
12862 #else
12863 $ac_func();
12864 #endif
12866 ; return 0; }
12868 if { (eval echo configure:12869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12869 rm -rf conftest*
12870 eval "ac_cv_func_$ac_func=yes"
12871 else
12872 echo "configure: failed program was:" >&5
12873 cat conftest.$ac_ext >&5
12874 rm -rf conftest*
12875 eval "ac_cv_func_$ac_func=no"
12877 rm -f conftest*
12880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12881 echo "$ac_t""yes" 1>&6
12882 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12883 cat >> confdefs.h <<EOF
12884 #define $ac_tr_func 1
12887 else
12888 echo "$ac_t""no" 1>&6
12890 done
12892 else
12894 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12895 echo "configure:12896: checking for _expf declaration" >&5
12896 if test x${glibcpp_cv_func__expf_use+set} != xset; then
12897 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12898 echo $ac_n "(cached) $ac_c" 1>&6
12899 else
12902 ac_ext=C
12903 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12904 ac_cpp='$CXXCPP $CPPFLAGS'
12905 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12906 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12907 cross_compiling=$ac_cv_prog_cxx_cross
12909 cat > conftest.$ac_ext <<EOF
12910 #line 12911 "configure"
12911 #include "confdefs.h"
12912 #include <math.h>
12913 #ifdef HAVE_IEEEFP_H
12914 #include <ieeefp.h>
12915 #endif
12917 int main() {
12918 _expf(0);
12919 ; return 0; }
12921 if { (eval echo configure:12922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12922 rm -rf conftest*
12923 glibcpp_cv_func__expf_use=yes
12924 else
12925 echo "configure: failed program was:" >&5
12926 cat conftest.$ac_ext >&5
12927 rm -rf conftest*
12928 glibcpp_cv_func__expf_use=no
12930 rm -f conftest*
12931 ac_ext=c
12932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12933 ac_cpp='$CPP $CPPFLAGS'
12934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12936 cross_compiling=$ac_cv_prog_cc_cross
12942 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12944 if test x$glibcpp_cv_func__expf_use = x"yes"; then
12945 for ac_func in _expf
12947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12948 echo "configure:12949: checking for $ac_func" >&5
12949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12950 echo $ac_n "(cached) $ac_c" 1>&6
12951 else
12952 cat > conftest.$ac_ext <<EOF
12953 #line 12954 "configure"
12954 #include "confdefs.h"
12955 /* System header to define __stub macros and hopefully few prototypes,
12956 which can conflict with char $ac_func(); below. */
12957 #include <assert.h>
12958 /* Override any gcc2 internal prototype to avoid an error. */
12959 /* We use char because int might match the return type of a gcc2
12960 builtin and then its argument prototype would still apply. */
12961 char $ac_func();
12963 int main() {
12965 /* The GNU C library defines this for functions which it implements
12966 to always fail with ENOSYS. Some functions are actually named
12967 something starting with __ and the normal name is an alias. */
12968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12969 choke me
12970 #else
12971 $ac_func();
12972 #endif
12974 ; return 0; }
12976 if { (eval echo configure:12977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12977 rm -rf conftest*
12978 eval "ac_cv_func_$ac_func=yes"
12979 else
12980 echo "configure: failed program was:" >&5
12981 cat conftest.$ac_ext >&5
12982 rm -rf conftest*
12983 eval "ac_cv_func_$ac_func=no"
12985 rm -f conftest*
12988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12989 echo "$ac_t""yes" 1>&6
12990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12991 cat >> confdefs.h <<EOF
12992 #define $ac_tr_func 1
12995 else
12996 echo "$ac_t""no" 1>&6
12998 done
13005 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
13006 echo "configure:13007: checking for isnanf declaration" >&5
13007 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
13008 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
13009 echo $ac_n "(cached) $ac_c" 1>&6
13010 else
13013 ac_ext=C
13014 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13015 ac_cpp='$CXXCPP $CPPFLAGS'
13016 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13017 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13018 cross_compiling=$ac_cv_prog_cxx_cross
13020 cat > conftest.$ac_ext <<EOF
13021 #line 13022 "configure"
13022 #include "confdefs.h"
13023 #include <math.h>
13024 #ifdef HAVE_IEEEFP_H
13025 #include <ieeefp.h>
13026 #endif
13028 int main() {
13029 isnanf(0);
13030 ; return 0; }
13032 if { (eval echo configure:13033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13033 rm -rf conftest*
13034 glibcpp_cv_func_isnanf_use=yes
13035 else
13036 echo "configure: failed program was:" >&5
13037 cat conftest.$ac_ext >&5
13038 rm -rf conftest*
13039 glibcpp_cv_func_isnanf_use=no
13041 rm -f conftest*
13042 ac_ext=c
13043 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13044 ac_cpp='$CPP $CPPFLAGS'
13045 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13046 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13047 cross_compiling=$ac_cv_prog_cc_cross
13053 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
13055 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
13056 for ac_func in isnanf
13058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13059 echo "configure:13060: checking for $ac_func" >&5
13060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13061 echo $ac_n "(cached) $ac_c" 1>&6
13062 else
13063 cat > conftest.$ac_ext <<EOF
13064 #line 13065 "configure"
13065 #include "confdefs.h"
13066 /* System header to define __stub macros and hopefully few prototypes,
13067 which can conflict with char $ac_func(); below. */
13068 #include <assert.h>
13069 /* Override any gcc2 internal prototype to avoid an error. */
13070 /* We use char because int might match the return type of a gcc2
13071 builtin and then its argument prototype would still apply. */
13072 char $ac_func();
13074 int main() {
13076 /* The GNU C library defines this for functions which it implements
13077 to always fail with ENOSYS. Some functions are actually named
13078 something starting with __ and the normal name is an alias. */
13079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13080 choke me
13081 #else
13082 $ac_func();
13083 #endif
13085 ; return 0; }
13087 if { (eval echo configure:13088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13088 rm -rf conftest*
13089 eval "ac_cv_func_$ac_func=yes"
13090 else
13091 echo "configure: failed program was:" >&5
13092 cat conftest.$ac_ext >&5
13093 rm -rf conftest*
13094 eval "ac_cv_func_$ac_func=no"
13096 rm -f conftest*
13099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13100 echo "$ac_t""yes" 1>&6
13101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13102 cat >> confdefs.h <<EOF
13103 #define $ac_tr_func 1
13106 else
13107 echo "$ac_t""no" 1>&6
13109 done
13111 else
13113 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
13114 echo "configure:13115: checking for _isnanf declaration" >&5
13115 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
13116 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
13117 echo $ac_n "(cached) $ac_c" 1>&6
13118 else
13121 ac_ext=C
13122 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13123 ac_cpp='$CXXCPP $CPPFLAGS'
13124 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13125 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13126 cross_compiling=$ac_cv_prog_cxx_cross
13128 cat > conftest.$ac_ext <<EOF
13129 #line 13130 "configure"
13130 #include "confdefs.h"
13131 #include <math.h>
13132 #ifdef HAVE_IEEEFP_H
13133 #include <ieeefp.h>
13134 #endif
13136 int main() {
13137 _isnanf(0);
13138 ; return 0; }
13140 if { (eval echo configure:13141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13141 rm -rf conftest*
13142 glibcpp_cv_func__isnanf_use=yes
13143 else
13144 echo "configure: failed program was:" >&5
13145 cat conftest.$ac_ext >&5
13146 rm -rf conftest*
13147 glibcpp_cv_func__isnanf_use=no
13149 rm -f conftest*
13150 ac_ext=c
13151 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13152 ac_cpp='$CPP $CPPFLAGS'
13153 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13154 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13155 cross_compiling=$ac_cv_prog_cc_cross
13161 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13163 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13164 for ac_func in _isnanf
13166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13167 echo "configure:13168: checking for $ac_func" >&5
13168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13169 echo $ac_n "(cached) $ac_c" 1>&6
13170 else
13171 cat > conftest.$ac_ext <<EOF
13172 #line 13173 "configure"
13173 #include "confdefs.h"
13174 /* System header to define __stub macros and hopefully few prototypes,
13175 which can conflict with char $ac_func(); below. */
13176 #include <assert.h>
13177 /* Override any gcc2 internal prototype to avoid an error. */
13178 /* We use char because int might match the return type of a gcc2
13179 builtin and then its argument prototype would still apply. */
13180 char $ac_func();
13182 int main() {
13184 /* The GNU C library defines this for functions which it implements
13185 to always fail with ENOSYS. Some functions are actually named
13186 something starting with __ and the normal name is an alias. */
13187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13188 choke me
13189 #else
13190 $ac_func();
13191 #endif
13193 ; return 0; }
13195 if { (eval echo configure:13196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13196 rm -rf conftest*
13197 eval "ac_cv_func_$ac_func=yes"
13198 else
13199 echo "configure: failed program was:" >&5
13200 cat conftest.$ac_ext >&5
13201 rm -rf conftest*
13202 eval "ac_cv_func_$ac_func=no"
13204 rm -f conftest*
13207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13208 echo "$ac_t""yes" 1>&6
13209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13210 cat >> confdefs.h <<EOF
13211 #define $ac_tr_func 1
13214 else
13215 echo "$ac_t""no" 1>&6
13217 done
13224 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13225 echo "configure:13226: checking for isinff declaration" >&5
13226 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13227 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13228 echo $ac_n "(cached) $ac_c" 1>&6
13229 else
13232 ac_ext=C
13233 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13234 ac_cpp='$CXXCPP $CPPFLAGS'
13235 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13236 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13237 cross_compiling=$ac_cv_prog_cxx_cross
13239 cat > conftest.$ac_ext <<EOF
13240 #line 13241 "configure"
13241 #include "confdefs.h"
13242 #include <math.h>
13243 #ifdef HAVE_IEEEFP_H
13244 #include <ieeefp.h>
13245 #endif
13247 int main() {
13248 isinff(0);
13249 ; return 0; }
13251 if { (eval echo configure:13252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13252 rm -rf conftest*
13253 glibcpp_cv_func_isinff_use=yes
13254 else
13255 echo "configure: failed program was:" >&5
13256 cat conftest.$ac_ext >&5
13257 rm -rf conftest*
13258 glibcpp_cv_func_isinff_use=no
13260 rm -f conftest*
13261 ac_ext=c
13262 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13263 ac_cpp='$CPP $CPPFLAGS'
13264 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13265 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13266 cross_compiling=$ac_cv_prog_cc_cross
13272 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13274 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13275 for ac_func in isinff
13277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13278 echo "configure:13279: checking for $ac_func" >&5
13279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13280 echo $ac_n "(cached) $ac_c" 1>&6
13281 else
13282 cat > conftest.$ac_ext <<EOF
13283 #line 13284 "configure"
13284 #include "confdefs.h"
13285 /* System header to define __stub macros and hopefully few prototypes,
13286 which can conflict with char $ac_func(); below. */
13287 #include <assert.h>
13288 /* Override any gcc2 internal prototype to avoid an error. */
13289 /* We use char because int might match the return type of a gcc2
13290 builtin and then its argument prototype would still apply. */
13291 char $ac_func();
13293 int main() {
13295 /* The GNU C library defines this for functions which it implements
13296 to always fail with ENOSYS. Some functions are actually named
13297 something starting with __ and the normal name is an alias. */
13298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13299 choke me
13300 #else
13301 $ac_func();
13302 #endif
13304 ; return 0; }
13306 if { (eval echo configure:13307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13307 rm -rf conftest*
13308 eval "ac_cv_func_$ac_func=yes"
13309 else
13310 echo "configure: failed program was:" >&5
13311 cat conftest.$ac_ext >&5
13312 rm -rf conftest*
13313 eval "ac_cv_func_$ac_func=no"
13315 rm -f conftest*
13318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13319 echo "$ac_t""yes" 1>&6
13320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13321 cat >> confdefs.h <<EOF
13322 #define $ac_tr_func 1
13325 else
13326 echo "$ac_t""no" 1>&6
13328 done
13330 else
13332 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13333 echo "configure:13334: checking for _isinff declaration" >&5
13334 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13335 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13336 echo $ac_n "(cached) $ac_c" 1>&6
13337 else
13340 ac_ext=C
13341 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13342 ac_cpp='$CXXCPP $CPPFLAGS'
13343 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13344 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13345 cross_compiling=$ac_cv_prog_cxx_cross
13347 cat > conftest.$ac_ext <<EOF
13348 #line 13349 "configure"
13349 #include "confdefs.h"
13350 #include <math.h>
13351 #ifdef HAVE_IEEEFP_H
13352 #include <ieeefp.h>
13353 #endif
13355 int main() {
13356 _isinff(0);
13357 ; return 0; }
13359 if { (eval echo configure:13360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13360 rm -rf conftest*
13361 glibcpp_cv_func__isinff_use=yes
13362 else
13363 echo "configure: failed program was:" >&5
13364 cat conftest.$ac_ext >&5
13365 rm -rf conftest*
13366 glibcpp_cv_func__isinff_use=no
13368 rm -f conftest*
13369 ac_ext=c
13370 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13371 ac_cpp='$CPP $CPPFLAGS'
13372 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13373 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13374 cross_compiling=$ac_cv_prog_cc_cross
13380 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13382 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13383 for ac_func in _isinff
13385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13386 echo "configure:13387: checking for $ac_func" >&5
13387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13388 echo $ac_n "(cached) $ac_c" 1>&6
13389 else
13390 cat > conftest.$ac_ext <<EOF
13391 #line 13392 "configure"
13392 #include "confdefs.h"
13393 /* System header to define __stub macros and hopefully few prototypes,
13394 which can conflict with char $ac_func(); below. */
13395 #include <assert.h>
13396 /* Override any gcc2 internal prototype to avoid an error. */
13397 /* We use char because int might match the return type of a gcc2
13398 builtin and then its argument prototype would still apply. */
13399 char $ac_func();
13401 int main() {
13403 /* The GNU C library defines this for functions which it implements
13404 to always fail with ENOSYS. Some functions are actually named
13405 something starting with __ and the normal name is an alias. */
13406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13407 choke me
13408 #else
13409 $ac_func();
13410 #endif
13412 ; return 0; }
13414 if { (eval echo configure:13415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13415 rm -rf conftest*
13416 eval "ac_cv_func_$ac_func=yes"
13417 else
13418 echo "configure: failed program was:" >&5
13419 cat conftest.$ac_ext >&5
13420 rm -rf conftest*
13421 eval "ac_cv_func_$ac_func=no"
13423 rm -f conftest*
13426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13427 echo "$ac_t""yes" 1>&6
13428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13429 cat >> confdefs.h <<EOF
13430 #define $ac_tr_func 1
13433 else
13434 echo "$ac_t""no" 1>&6
13436 done
13443 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13444 echo "configure:13445: checking for atan2f declaration" >&5
13445 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13446 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13447 echo $ac_n "(cached) $ac_c" 1>&6
13448 else
13451 ac_ext=C
13452 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13453 ac_cpp='$CXXCPP $CPPFLAGS'
13454 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13455 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13456 cross_compiling=$ac_cv_prog_cxx_cross
13458 cat > conftest.$ac_ext <<EOF
13459 #line 13460 "configure"
13460 #include "confdefs.h"
13461 #include <math.h>
13462 int main() {
13463 atan2f(0, 0);
13464 ; return 0; }
13466 if { (eval echo configure:13467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13467 rm -rf conftest*
13468 glibcpp_cv_func_atan2f_use=yes
13469 else
13470 echo "configure: failed program was:" >&5
13471 cat conftest.$ac_ext >&5
13472 rm -rf conftest*
13473 glibcpp_cv_func_atan2f_use=no
13475 rm -f conftest*
13476 ac_ext=c
13477 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13478 ac_cpp='$CPP $CPPFLAGS'
13479 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13480 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13481 cross_compiling=$ac_cv_prog_cc_cross
13487 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13489 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13490 for ac_func in atan2f
13492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13493 echo "configure:13494: checking for $ac_func" >&5
13494 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13495 echo $ac_n "(cached) $ac_c" 1>&6
13496 else
13497 cat > conftest.$ac_ext <<EOF
13498 #line 13499 "configure"
13499 #include "confdefs.h"
13500 /* System header to define __stub macros and hopefully few prototypes,
13501 which can conflict with char $ac_func(); below. */
13502 #include <assert.h>
13503 /* Override any gcc2 internal prototype to avoid an error. */
13504 /* We use char because int might match the return type of a gcc2
13505 builtin and then its argument prototype would still apply. */
13506 char $ac_func();
13508 int main() {
13510 /* The GNU C library defines this for functions which it implements
13511 to always fail with ENOSYS. Some functions are actually named
13512 something starting with __ and the normal name is an alias. */
13513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13514 choke me
13515 #else
13516 $ac_func();
13517 #endif
13519 ; return 0; }
13521 if { (eval echo configure:13522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13522 rm -rf conftest*
13523 eval "ac_cv_func_$ac_func=yes"
13524 else
13525 echo "configure: failed program was:" >&5
13526 cat conftest.$ac_ext >&5
13527 rm -rf conftest*
13528 eval "ac_cv_func_$ac_func=no"
13530 rm -f conftest*
13533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13534 echo "$ac_t""yes" 1>&6
13535 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13536 cat >> confdefs.h <<EOF
13537 #define $ac_tr_func 1
13540 else
13541 echo "$ac_t""no" 1>&6
13543 done
13545 else
13547 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13548 echo "configure:13549: checking for _atan2f declaration" >&5
13549 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13550 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13551 echo $ac_n "(cached) $ac_c" 1>&6
13552 else
13555 ac_ext=C
13556 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13557 ac_cpp='$CXXCPP $CPPFLAGS'
13558 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13559 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13560 cross_compiling=$ac_cv_prog_cxx_cross
13562 cat > conftest.$ac_ext <<EOF
13563 #line 13564 "configure"
13564 #include "confdefs.h"
13565 #include <math.h>
13566 int main() {
13567 _atan2f(0, 0);
13568 ; return 0; }
13570 if { (eval echo configure:13571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13571 rm -rf conftest*
13572 glibcpp_cv_func__atan2f_use=yes
13573 else
13574 echo "configure: failed program was:" >&5
13575 cat conftest.$ac_ext >&5
13576 rm -rf conftest*
13577 glibcpp_cv_func__atan2f_use=no
13579 rm -f conftest*
13580 ac_ext=c
13581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13582 ac_cpp='$CPP $CPPFLAGS'
13583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13585 cross_compiling=$ac_cv_prog_cc_cross
13591 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13593 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13594 for ac_func in _atan2f
13596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13597 echo "configure:13598: checking for $ac_func" >&5
13598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13599 echo $ac_n "(cached) $ac_c" 1>&6
13600 else
13601 cat > conftest.$ac_ext <<EOF
13602 #line 13603 "configure"
13603 #include "confdefs.h"
13604 /* System header to define __stub macros and hopefully few prototypes,
13605 which can conflict with char $ac_func(); below. */
13606 #include <assert.h>
13607 /* Override any gcc2 internal prototype to avoid an error. */
13608 /* We use char because int might match the return type of a gcc2
13609 builtin and then its argument prototype would still apply. */
13610 char $ac_func();
13612 int main() {
13614 /* The GNU C library defines this for functions which it implements
13615 to always fail with ENOSYS. Some functions are actually named
13616 something starting with __ and the normal name is an alias. */
13617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13618 choke me
13619 #else
13620 $ac_func();
13621 #endif
13623 ; return 0; }
13625 if { (eval echo configure:13626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13626 rm -rf conftest*
13627 eval "ac_cv_func_$ac_func=yes"
13628 else
13629 echo "configure: failed program was:" >&5
13630 cat conftest.$ac_ext >&5
13631 rm -rf conftest*
13632 eval "ac_cv_func_$ac_func=no"
13634 rm -f conftest*
13637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13638 echo "$ac_t""yes" 1>&6
13639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13640 cat >> confdefs.h <<EOF
13641 #define $ac_tr_func 1
13644 else
13645 echo "$ac_t""no" 1>&6
13647 done
13654 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13655 echo "configure:13656: checking for fabsf declaration" >&5
13656 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13657 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13658 echo $ac_n "(cached) $ac_c" 1>&6
13659 else
13662 ac_ext=C
13663 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13664 ac_cpp='$CXXCPP $CPPFLAGS'
13665 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13666 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13667 cross_compiling=$ac_cv_prog_cxx_cross
13669 cat > conftest.$ac_ext <<EOF
13670 #line 13671 "configure"
13671 #include "confdefs.h"
13672 #include <math.h>
13673 #ifdef HAVE_IEEEFP_H
13674 #include <ieeefp.h>
13675 #endif
13677 int main() {
13678 fabsf(0);
13679 ; return 0; }
13681 if { (eval echo configure:13682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13682 rm -rf conftest*
13683 glibcpp_cv_func_fabsf_use=yes
13684 else
13685 echo "configure: failed program was:" >&5
13686 cat conftest.$ac_ext >&5
13687 rm -rf conftest*
13688 glibcpp_cv_func_fabsf_use=no
13690 rm -f conftest*
13691 ac_ext=c
13692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13693 ac_cpp='$CPP $CPPFLAGS'
13694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13696 cross_compiling=$ac_cv_prog_cc_cross
13702 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13704 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13705 for ac_func in fabsf
13707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13708 echo "configure:13709: checking for $ac_func" >&5
13709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13710 echo $ac_n "(cached) $ac_c" 1>&6
13711 else
13712 cat > conftest.$ac_ext <<EOF
13713 #line 13714 "configure"
13714 #include "confdefs.h"
13715 /* System header to define __stub macros and hopefully few prototypes,
13716 which can conflict with char $ac_func(); below. */
13717 #include <assert.h>
13718 /* Override any gcc2 internal prototype to avoid an error. */
13719 /* We use char because int might match the return type of a gcc2
13720 builtin and then its argument prototype would still apply. */
13721 char $ac_func();
13723 int main() {
13725 /* The GNU C library defines this for functions which it implements
13726 to always fail with ENOSYS. Some functions are actually named
13727 something starting with __ and the normal name is an alias. */
13728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13729 choke me
13730 #else
13731 $ac_func();
13732 #endif
13734 ; return 0; }
13736 if { (eval echo configure:13737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13737 rm -rf conftest*
13738 eval "ac_cv_func_$ac_func=yes"
13739 else
13740 echo "configure: failed program was:" >&5
13741 cat conftest.$ac_ext >&5
13742 rm -rf conftest*
13743 eval "ac_cv_func_$ac_func=no"
13745 rm -f conftest*
13748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13749 echo "$ac_t""yes" 1>&6
13750 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13751 cat >> confdefs.h <<EOF
13752 #define $ac_tr_func 1
13755 else
13756 echo "$ac_t""no" 1>&6
13758 done
13760 else
13762 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13763 echo "configure:13764: checking for _fabsf declaration" >&5
13764 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13765 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13766 echo $ac_n "(cached) $ac_c" 1>&6
13767 else
13770 ac_ext=C
13771 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13772 ac_cpp='$CXXCPP $CPPFLAGS'
13773 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13774 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13775 cross_compiling=$ac_cv_prog_cxx_cross
13777 cat > conftest.$ac_ext <<EOF
13778 #line 13779 "configure"
13779 #include "confdefs.h"
13780 #include <math.h>
13781 #ifdef HAVE_IEEEFP_H
13782 #include <ieeefp.h>
13783 #endif
13785 int main() {
13786 _fabsf(0);
13787 ; return 0; }
13789 if { (eval echo configure:13790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13790 rm -rf conftest*
13791 glibcpp_cv_func__fabsf_use=yes
13792 else
13793 echo "configure: failed program was:" >&5
13794 cat conftest.$ac_ext >&5
13795 rm -rf conftest*
13796 glibcpp_cv_func__fabsf_use=no
13798 rm -f conftest*
13799 ac_ext=c
13800 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13801 ac_cpp='$CPP $CPPFLAGS'
13802 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13803 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13804 cross_compiling=$ac_cv_prog_cc_cross
13810 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13812 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13813 for ac_func in _fabsf
13815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13816 echo "configure:13817: checking for $ac_func" >&5
13817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13818 echo $ac_n "(cached) $ac_c" 1>&6
13819 else
13820 cat > conftest.$ac_ext <<EOF
13821 #line 13822 "configure"
13822 #include "confdefs.h"
13823 /* System header to define __stub macros and hopefully few prototypes,
13824 which can conflict with char $ac_func(); below. */
13825 #include <assert.h>
13826 /* Override any gcc2 internal prototype to avoid an error. */
13827 /* We use char because int might match the return type of a gcc2
13828 builtin and then its argument prototype would still apply. */
13829 char $ac_func();
13831 int main() {
13833 /* The GNU C library defines this for functions which it implements
13834 to always fail with ENOSYS. Some functions are actually named
13835 something starting with __ and the normal name is an alias. */
13836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13837 choke me
13838 #else
13839 $ac_func();
13840 #endif
13842 ; return 0; }
13844 if { (eval echo configure:13845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13845 rm -rf conftest*
13846 eval "ac_cv_func_$ac_func=yes"
13847 else
13848 echo "configure: failed program was:" >&5
13849 cat conftest.$ac_ext >&5
13850 rm -rf conftest*
13851 eval "ac_cv_func_$ac_func=no"
13853 rm -f conftest*
13856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13857 echo "$ac_t""yes" 1>&6
13858 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13859 cat >> confdefs.h <<EOF
13860 #define $ac_tr_func 1
13863 else
13864 echo "$ac_t""no" 1>&6
13866 done
13873 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13874 echo "configure:13875: checking for fmodf declaration" >&5
13875 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13876 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13877 echo $ac_n "(cached) $ac_c" 1>&6
13878 else
13881 ac_ext=C
13882 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13883 ac_cpp='$CXXCPP $CPPFLAGS'
13884 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13885 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13886 cross_compiling=$ac_cv_prog_cxx_cross
13888 cat > conftest.$ac_ext <<EOF
13889 #line 13890 "configure"
13890 #include "confdefs.h"
13891 #include <math.h>
13892 int main() {
13893 fmodf(0, 0);
13894 ; return 0; }
13896 if { (eval echo configure:13897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13897 rm -rf conftest*
13898 glibcpp_cv_func_fmodf_use=yes
13899 else
13900 echo "configure: failed program was:" >&5
13901 cat conftest.$ac_ext >&5
13902 rm -rf conftest*
13903 glibcpp_cv_func_fmodf_use=no
13905 rm -f conftest*
13906 ac_ext=c
13907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13908 ac_cpp='$CPP $CPPFLAGS'
13909 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13910 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13911 cross_compiling=$ac_cv_prog_cc_cross
13917 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13919 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13920 for ac_func in fmodf
13922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13923 echo "configure:13924: checking for $ac_func" >&5
13924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13925 echo $ac_n "(cached) $ac_c" 1>&6
13926 else
13927 cat > conftest.$ac_ext <<EOF
13928 #line 13929 "configure"
13929 #include "confdefs.h"
13930 /* System header to define __stub macros and hopefully few prototypes,
13931 which can conflict with char $ac_func(); below. */
13932 #include <assert.h>
13933 /* Override any gcc2 internal prototype to avoid an error. */
13934 /* We use char because int might match the return type of a gcc2
13935 builtin and then its argument prototype would still apply. */
13936 char $ac_func();
13938 int main() {
13940 /* The GNU C library defines this for functions which it implements
13941 to always fail with ENOSYS. Some functions are actually named
13942 something starting with __ and the normal name is an alias. */
13943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13944 choke me
13945 #else
13946 $ac_func();
13947 #endif
13949 ; return 0; }
13951 if { (eval echo configure:13952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13952 rm -rf conftest*
13953 eval "ac_cv_func_$ac_func=yes"
13954 else
13955 echo "configure: failed program was:" >&5
13956 cat conftest.$ac_ext >&5
13957 rm -rf conftest*
13958 eval "ac_cv_func_$ac_func=no"
13960 rm -f conftest*
13963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13964 echo "$ac_t""yes" 1>&6
13965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13966 cat >> confdefs.h <<EOF
13967 #define $ac_tr_func 1
13970 else
13971 echo "$ac_t""no" 1>&6
13973 done
13975 else
13977 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13978 echo "configure:13979: checking for _fmodf declaration" >&5
13979 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13980 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13981 echo $ac_n "(cached) $ac_c" 1>&6
13982 else
13985 ac_ext=C
13986 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13987 ac_cpp='$CXXCPP $CPPFLAGS'
13988 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13989 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13990 cross_compiling=$ac_cv_prog_cxx_cross
13992 cat > conftest.$ac_ext <<EOF
13993 #line 13994 "configure"
13994 #include "confdefs.h"
13995 #include <math.h>
13996 int main() {
13997 _fmodf(0, 0);
13998 ; return 0; }
14000 if { (eval echo configure:14001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14001 rm -rf conftest*
14002 glibcpp_cv_func__fmodf_use=yes
14003 else
14004 echo "configure: failed program was:" >&5
14005 cat conftest.$ac_ext >&5
14006 rm -rf conftest*
14007 glibcpp_cv_func__fmodf_use=no
14009 rm -f conftest*
14010 ac_ext=c
14011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14012 ac_cpp='$CPP $CPPFLAGS'
14013 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14014 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14015 cross_compiling=$ac_cv_prog_cc_cross
14021 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
14023 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
14024 for ac_func in _fmodf
14026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14027 echo "configure:14028: checking for $ac_func" >&5
14028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14029 echo $ac_n "(cached) $ac_c" 1>&6
14030 else
14031 cat > conftest.$ac_ext <<EOF
14032 #line 14033 "configure"
14033 #include "confdefs.h"
14034 /* System header to define __stub macros and hopefully few prototypes,
14035 which can conflict with char $ac_func(); below. */
14036 #include <assert.h>
14037 /* Override any gcc2 internal prototype to avoid an error. */
14038 /* We use char because int might match the return type of a gcc2
14039 builtin and then its argument prototype would still apply. */
14040 char $ac_func();
14042 int main() {
14044 /* The GNU C library defines this for functions which it implements
14045 to always fail with ENOSYS. Some functions are actually named
14046 something starting with __ and the normal name is an alias. */
14047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14048 choke me
14049 #else
14050 $ac_func();
14051 #endif
14053 ; return 0; }
14055 if { (eval echo configure:14056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14056 rm -rf conftest*
14057 eval "ac_cv_func_$ac_func=yes"
14058 else
14059 echo "configure: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14061 rm -rf conftest*
14062 eval "ac_cv_func_$ac_func=no"
14064 rm -f conftest*
14067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14068 echo "$ac_t""yes" 1>&6
14069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14070 cat >> confdefs.h <<EOF
14071 #define $ac_tr_func 1
14074 else
14075 echo "$ac_t""no" 1>&6
14077 done
14084 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
14085 echo "configure:14086: checking for frexpf declaration" >&5
14086 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
14087 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
14088 echo $ac_n "(cached) $ac_c" 1>&6
14089 else
14092 ac_ext=C
14093 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14094 ac_cpp='$CXXCPP $CPPFLAGS'
14095 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14096 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14097 cross_compiling=$ac_cv_prog_cxx_cross
14099 cat > conftest.$ac_ext <<EOF
14100 #line 14101 "configure"
14101 #include "confdefs.h"
14102 #include <math.h>
14103 int main() {
14104 frexpf(0, 0);
14105 ; return 0; }
14107 if { (eval echo configure:14108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14108 rm -rf conftest*
14109 glibcpp_cv_func_frexpf_use=yes
14110 else
14111 echo "configure: failed program was:" >&5
14112 cat conftest.$ac_ext >&5
14113 rm -rf conftest*
14114 glibcpp_cv_func_frexpf_use=no
14116 rm -f conftest*
14117 ac_ext=c
14118 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14119 ac_cpp='$CPP $CPPFLAGS'
14120 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14121 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14122 cross_compiling=$ac_cv_prog_cc_cross
14128 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
14130 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
14131 for ac_func in frexpf
14133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14134 echo "configure:14135: checking for $ac_func" >&5
14135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14136 echo $ac_n "(cached) $ac_c" 1>&6
14137 else
14138 cat > conftest.$ac_ext <<EOF
14139 #line 14140 "configure"
14140 #include "confdefs.h"
14141 /* System header to define __stub macros and hopefully few prototypes,
14142 which can conflict with char $ac_func(); below. */
14143 #include <assert.h>
14144 /* Override any gcc2 internal prototype to avoid an error. */
14145 /* We use char because int might match the return type of a gcc2
14146 builtin and then its argument prototype would still apply. */
14147 char $ac_func();
14149 int main() {
14151 /* The GNU C library defines this for functions which it implements
14152 to always fail with ENOSYS. Some functions are actually named
14153 something starting with __ and the normal name is an alias. */
14154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14155 choke me
14156 #else
14157 $ac_func();
14158 #endif
14160 ; return 0; }
14162 if { (eval echo configure:14163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14163 rm -rf conftest*
14164 eval "ac_cv_func_$ac_func=yes"
14165 else
14166 echo "configure: failed program was:" >&5
14167 cat conftest.$ac_ext >&5
14168 rm -rf conftest*
14169 eval "ac_cv_func_$ac_func=no"
14171 rm -f conftest*
14174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14175 echo "$ac_t""yes" 1>&6
14176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14177 cat >> confdefs.h <<EOF
14178 #define $ac_tr_func 1
14181 else
14182 echo "$ac_t""no" 1>&6
14184 done
14186 else
14188 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14189 echo "configure:14190: checking for _frexpf declaration" >&5
14190 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14191 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14192 echo $ac_n "(cached) $ac_c" 1>&6
14193 else
14196 ac_ext=C
14197 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14198 ac_cpp='$CXXCPP $CPPFLAGS'
14199 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14200 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14201 cross_compiling=$ac_cv_prog_cxx_cross
14203 cat > conftest.$ac_ext <<EOF
14204 #line 14205 "configure"
14205 #include "confdefs.h"
14206 #include <math.h>
14207 int main() {
14208 _frexpf(0, 0);
14209 ; return 0; }
14211 if { (eval echo configure:14212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14212 rm -rf conftest*
14213 glibcpp_cv_func__frexpf_use=yes
14214 else
14215 echo "configure: failed program was:" >&5
14216 cat conftest.$ac_ext >&5
14217 rm -rf conftest*
14218 glibcpp_cv_func__frexpf_use=no
14220 rm -f conftest*
14221 ac_ext=c
14222 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14223 ac_cpp='$CPP $CPPFLAGS'
14224 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14225 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14226 cross_compiling=$ac_cv_prog_cc_cross
14232 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14234 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14235 for ac_func in _frexpf
14237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14238 echo "configure:14239: checking for $ac_func" >&5
14239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14240 echo $ac_n "(cached) $ac_c" 1>&6
14241 else
14242 cat > conftest.$ac_ext <<EOF
14243 #line 14244 "configure"
14244 #include "confdefs.h"
14245 /* System header to define __stub macros and hopefully few prototypes,
14246 which can conflict with char $ac_func(); below. */
14247 #include <assert.h>
14248 /* Override any gcc2 internal prototype to avoid an error. */
14249 /* We use char because int might match the return type of a gcc2
14250 builtin and then its argument prototype would still apply. */
14251 char $ac_func();
14253 int main() {
14255 /* The GNU C library defines this for functions which it implements
14256 to always fail with ENOSYS. Some functions are actually named
14257 something starting with __ and the normal name is an alias. */
14258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14259 choke me
14260 #else
14261 $ac_func();
14262 #endif
14264 ; return 0; }
14266 if { (eval echo configure:14267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14267 rm -rf conftest*
14268 eval "ac_cv_func_$ac_func=yes"
14269 else
14270 echo "configure: failed program was:" >&5
14271 cat conftest.$ac_ext >&5
14272 rm -rf conftest*
14273 eval "ac_cv_func_$ac_func=no"
14275 rm -f conftest*
14278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14279 echo "$ac_t""yes" 1>&6
14280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14281 cat >> confdefs.h <<EOF
14282 #define $ac_tr_func 1
14285 else
14286 echo "$ac_t""no" 1>&6
14288 done
14295 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14296 echo "configure:14297: checking for hypotf declaration" >&5
14297 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14298 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14299 echo $ac_n "(cached) $ac_c" 1>&6
14300 else
14303 ac_ext=C
14304 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14305 ac_cpp='$CXXCPP $CPPFLAGS'
14306 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14307 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14308 cross_compiling=$ac_cv_prog_cxx_cross
14310 cat > conftest.$ac_ext <<EOF
14311 #line 14312 "configure"
14312 #include "confdefs.h"
14313 #include <math.h>
14314 int main() {
14315 hypotf(0, 0);
14316 ; return 0; }
14318 if { (eval echo configure:14319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14319 rm -rf conftest*
14320 glibcpp_cv_func_hypotf_use=yes
14321 else
14322 echo "configure: failed program was:" >&5
14323 cat conftest.$ac_ext >&5
14324 rm -rf conftest*
14325 glibcpp_cv_func_hypotf_use=no
14327 rm -f conftest*
14328 ac_ext=c
14329 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14330 ac_cpp='$CPP $CPPFLAGS'
14331 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14332 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14333 cross_compiling=$ac_cv_prog_cc_cross
14339 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14341 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14342 for ac_func in hypotf
14344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14345 echo "configure:14346: checking for $ac_func" >&5
14346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14347 echo $ac_n "(cached) $ac_c" 1>&6
14348 else
14349 cat > conftest.$ac_ext <<EOF
14350 #line 14351 "configure"
14351 #include "confdefs.h"
14352 /* System header to define __stub macros and hopefully few prototypes,
14353 which can conflict with char $ac_func(); below. */
14354 #include <assert.h>
14355 /* Override any gcc2 internal prototype to avoid an error. */
14356 /* We use char because int might match the return type of a gcc2
14357 builtin and then its argument prototype would still apply. */
14358 char $ac_func();
14360 int main() {
14362 /* The GNU C library defines this for functions which it implements
14363 to always fail with ENOSYS. Some functions are actually named
14364 something starting with __ and the normal name is an alias. */
14365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14366 choke me
14367 #else
14368 $ac_func();
14369 #endif
14371 ; return 0; }
14373 if { (eval echo configure:14374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14374 rm -rf conftest*
14375 eval "ac_cv_func_$ac_func=yes"
14376 else
14377 echo "configure: failed program was:" >&5
14378 cat conftest.$ac_ext >&5
14379 rm -rf conftest*
14380 eval "ac_cv_func_$ac_func=no"
14382 rm -f conftest*
14385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14386 echo "$ac_t""yes" 1>&6
14387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14388 cat >> confdefs.h <<EOF
14389 #define $ac_tr_func 1
14392 else
14393 echo "$ac_t""no" 1>&6
14395 done
14397 else
14399 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14400 echo "configure:14401: checking for _hypotf declaration" >&5
14401 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14402 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14403 echo $ac_n "(cached) $ac_c" 1>&6
14404 else
14407 ac_ext=C
14408 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14409 ac_cpp='$CXXCPP $CPPFLAGS'
14410 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14411 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14412 cross_compiling=$ac_cv_prog_cxx_cross
14414 cat > conftest.$ac_ext <<EOF
14415 #line 14416 "configure"
14416 #include "confdefs.h"
14417 #include <math.h>
14418 int main() {
14419 _hypotf(0, 0);
14420 ; return 0; }
14422 if { (eval echo configure:14423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14423 rm -rf conftest*
14424 glibcpp_cv_func__hypotf_use=yes
14425 else
14426 echo "configure: failed program was:" >&5
14427 cat conftest.$ac_ext >&5
14428 rm -rf conftest*
14429 glibcpp_cv_func__hypotf_use=no
14431 rm -f conftest*
14432 ac_ext=c
14433 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14434 ac_cpp='$CPP $CPPFLAGS'
14435 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14436 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14437 cross_compiling=$ac_cv_prog_cc_cross
14443 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14445 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14446 for ac_func in _hypotf
14448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14449 echo "configure:14450: checking for $ac_func" >&5
14450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14451 echo $ac_n "(cached) $ac_c" 1>&6
14452 else
14453 cat > conftest.$ac_ext <<EOF
14454 #line 14455 "configure"
14455 #include "confdefs.h"
14456 /* System header to define __stub macros and hopefully few prototypes,
14457 which can conflict with char $ac_func(); below. */
14458 #include <assert.h>
14459 /* Override any gcc2 internal prototype to avoid an error. */
14460 /* We use char because int might match the return type of a gcc2
14461 builtin and then its argument prototype would still apply. */
14462 char $ac_func();
14464 int main() {
14466 /* The GNU C library defines this for functions which it implements
14467 to always fail with ENOSYS. Some functions are actually named
14468 something starting with __ and the normal name is an alias. */
14469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14470 choke me
14471 #else
14472 $ac_func();
14473 #endif
14475 ; return 0; }
14477 if { (eval echo configure:14478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14478 rm -rf conftest*
14479 eval "ac_cv_func_$ac_func=yes"
14480 else
14481 echo "configure: failed program was:" >&5
14482 cat conftest.$ac_ext >&5
14483 rm -rf conftest*
14484 eval "ac_cv_func_$ac_func=no"
14486 rm -f conftest*
14489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14490 echo "$ac_t""yes" 1>&6
14491 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14492 cat >> confdefs.h <<EOF
14493 #define $ac_tr_func 1
14496 else
14497 echo "$ac_t""no" 1>&6
14499 done
14506 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14507 echo "configure:14508: checking for ldexpf declaration" >&5
14508 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14509 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14510 echo $ac_n "(cached) $ac_c" 1>&6
14511 else
14514 ac_ext=C
14515 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14516 ac_cpp='$CXXCPP $CPPFLAGS'
14517 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14518 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14519 cross_compiling=$ac_cv_prog_cxx_cross
14521 cat > conftest.$ac_ext <<EOF
14522 #line 14523 "configure"
14523 #include "confdefs.h"
14524 #include <math.h>
14525 int main() {
14526 ldexpf(0, 0);
14527 ; return 0; }
14529 if { (eval echo configure:14530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14530 rm -rf conftest*
14531 glibcpp_cv_func_ldexpf_use=yes
14532 else
14533 echo "configure: failed program was:" >&5
14534 cat conftest.$ac_ext >&5
14535 rm -rf conftest*
14536 glibcpp_cv_func_ldexpf_use=no
14538 rm -f conftest*
14539 ac_ext=c
14540 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14541 ac_cpp='$CPP $CPPFLAGS'
14542 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14543 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14544 cross_compiling=$ac_cv_prog_cc_cross
14550 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14552 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14553 for ac_func in ldexpf
14555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14556 echo "configure:14557: checking for $ac_func" >&5
14557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14558 echo $ac_n "(cached) $ac_c" 1>&6
14559 else
14560 cat > conftest.$ac_ext <<EOF
14561 #line 14562 "configure"
14562 #include "confdefs.h"
14563 /* System header to define __stub macros and hopefully few prototypes,
14564 which can conflict with char $ac_func(); below. */
14565 #include <assert.h>
14566 /* Override any gcc2 internal prototype to avoid an error. */
14567 /* We use char because int might match the return type of a gcc2
14568 builtin and then its argument prototype would still apply. */
14569 char $ac_func();
14571 int main() {
14573 /* The GNU C library defines this for functions which it implements
14574 to always fail with ENOSYS. Some functions are actually named
14575 something starting with __ and the normal name is an alias. */
14576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14577 choke me
14578 #else
14579 $ac_func();
14580 #endif
14582 ; return 0; }
14584 if { (eval echo configure:14585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14585 rm -rf conftest*
14586 eval "ac_cv_func_$ac_func=yes"
14587 else
14588 echo "configure: failed program was:" >&5
14589 cat conftest.$ac_ext >&5
14590 rm -rf conftest*
14591 eval "ac_cv_func_$ac_func=no"
14593 rm -f conftest*
14596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14597 echo "$ac_t""yes" 1>&6
14598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14599 cat >> confdefs.h <<EOF
14600 #define $ac_tr_func 1
14603 else
14604 echo "$ac_t""no" 1>&6
14606 done
14608 else
14610 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14611 echo "configure:14612: checking for _ldexpf declaration" >&5
14612 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14613 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14614 echo $ac_n "(cached) $ac_c" 1>&6
14615 else
14618 ac_ext=C
14619 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14620 ac_cpp='$CXXCPP $CPPFLAGS'
14621 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14622 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14623 cross_compiling=$ac_cv_prog_cxx_cross
14625 cat > conftest.$ac_ext <<EOF
14626 #line 14627 "configure"
14627 #include "confdefs.h"
14628 #include <math.h>
14629 int main() {
14630 _ldexpf(0, 0);
14631 ; return 0; }
14633 if { (eval echo configure:14634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14634 rm -rf conftest*
14635 glibcpp_cv_func__ldexpf_use=yes
14636 else
14637 echo "configure: failed program was:" >&5
14638 cat conftest.$ac_ext >&5
14639 rm -rf conftest*
14640 glibcpp_cv_func__ldexpf_use=no
14642 rm -f conftest*
14643 ac_ext=c
14644 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14645 ac_cpp='$CPP $CPPFLAGS'
14646 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14647 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14648 cross_compiling=$ac_cv_prog_cc_cross
14654 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14656 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14657 for ac_func in _ldexpf
14659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14660 echo "configure:14661: checking for $ac_func" >&5
14661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14662 echo $ac_n "(cached) $ac_c" 1>&6
14663 else
14664 cat > conftest.$ac_ext <<EOF
14665 #line 14666 "configure"
14666 #include "confdefs.h"
14667 /* System header to define __stub macros and hopefully few prototypes,
14668 which can conflict with char $ac_func(); below. */
14669 #include <assert.h>
14670 /* Override any gcc2 internal prototype to avoid an error. */
14671 /* We use char because int might match the return type of a gcc2
14672 builtin and then its argument prototype would still apply. */
14673 char $ac_func();
14675 int main() {
14677 /* The GNU C library defines this for functions which it implements
14678 to always fail with ENOSYS. Some functions are actually named
14679 something starting with __ and the normal name is an alias. */
14680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14681 choke me
14682 #else
14683 $ac_func();
14684 #endif
14686 ; return 0; }
14688 if { (eval echo configure:14689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14689 rm -rf conftest*
14690 eval "ac_cv_func_$ac_func=yes"
14691 else
14692 echo "configure: failed program was:" >&5
14693 cat conftest.$ac_ext >&5
14694 rm -rf conftest*
14695 eval "ac_cv_func_$ac_func=no"
14697 rm -f conftest*
14700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14701 echo "$ac_t""yes" 1>&6
14702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14703 cat >> confdefs.h <<EOF
14704 #define $ac_tr_func 1
14707 else
14708 echo "$ac_t""no" 1>&6
14710 done
14717 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14718 echo "configure:14719: checking for logf declaration" >&5
14719 if test x${glibcpp_cv_func_logf_use+set} != xset; then
14720 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14721 echo $ac_n "(cached) $ac_c" 1>&6
14722 else
14725 ac_ext=C
14726 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14727 ac_cpp='$CXXCPP $CPPFLAGS'
14728 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14729 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14730 cross_compiling=$ac_cv_prog_cxx_cross
14732 cat > conftest.$ac_ext <<EOF
14733 #line 14734 "configure"
14734 #include "confdefs.h"
14735 #include <math.h>
14736 #ifdef HAVE_IEEEFP_H
14737 #include <ieeefp.h>
14738 #endif
14740 int main() {
14741 logf(0);
14742 ; return 0; }
14744 if { (eval echo configure:14745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14745 rm -rf conftest*
14746 glibcpp_cv_func_logf_use=yes
14747 else
14748 echo "configure: failed program was:" >&5
14749 cat conftest.$ac_ext >&5
14750 rm -rf conftest*
14751 glibcpp_cv_func_logf_use=no
14753 rm -f conftest*
14754 ac_ext=c
14755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14756 ac_cpp='$CPP $CPPFLAGS'
14757 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14758 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14759 cross_compiling=$ac_cv_prog_cc_cross
14765 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14767 if test x$glibcpp_cv_func_logf_use = x"yes"; then
14768 for ac_func in logf
14770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14771 echo "configure:14772: checking for $ac_func" >&5
14772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14773 echo $ac_n "(cached) $ac_c" 1>&6
14774 else
14775 cat > conftest.$ac_ext <<EOF
14776 #line 14777 "configure"
14777 #include "confdefs.h"
14778 /* System header to define __stub macros and hopefully few prototypes,
14779 which can conflict with char $ac_func(); below. */
14780 #include <assert.h>
14781 /* Override any gcc2 internal prototype to avoid an error. */
14782 /* We use char because int might match the return type of a gcc2
14783 builtin and then its argument prototype would still apply. */
14784 char $ac_func();
14786 int main() {
14788 /* The GNU C library defines this for functions which it implements
14789 to always fail with ENOSYS. Some functions are actually named
14790 something starting with __ and the normal name is an alias. */
14791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14792 choke me
14793 #else
14794 $ac_func();
14795 #endif
14797 ; return 0; }
14799 if { (eval echo configure:14800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14800 rm -rf conftest*
14801 eval "ac_cv_func_$ac_func=yes"
14802 else
14803 echo "configure: failed program was:" >&5
14804 cat conftest.$ac_ext >&5
14805 rm -rf conftest*
14806 eval "ac_cv_func_$ac_func=no"
14808 rm -f conftest*
14811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14812 echo "$ac_t""yes" 1>&6
14813 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14814 cat >> confdefs.h <<EOF
14815 #define $ac_tr_func 1
14818 else
14819 echo "$ac_t""no" 1>&6
14821 done
14823 else
14825 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14826 echo "configure:14827: checking for _logf declaration" >&5
14827 if test x${glibcpp_cv_func__logf_use+set} != xset; then
14828 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14829 echo $ac_n "(cached) $ac_c" 1>&6
14830 else
14833 ac_ext=C
14834 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14835 ac_cpp='$CXXCPP $CPPFLAGS'
14836 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14837 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14838 cross_compiling=$ac_cv_prog_cxx_cross
14840 cat > conftest.$ac_ext <<EOF
14841 #line 14842 "configure"
14842 #include "confdefs.h"
14843 #include <math.h>
14844 #ifdef HAVE_IEEEFP_H
14845 #include <ieeefp.h>
14846 #endif
14848 int main() {
14849 _logf(0);
14850 ; return 0; }
14852 if { (eval echo configure:14853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14853 rm -rf conftest*
14854 glibcpp_cv_func__logf_use=yes
14855 else
14856 echo "configure: failed program was:" >&5
14857 cat conftest.$ac_ext >&5
14858 rm -rf conftest*
14859 glibcpp_cv_func__logf_use=no
14861 rm -f conftest*
14862 ac_ext=c
14863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14864 ac_cpp='$CPP $CPPFLAGS'
14865 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14866 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14867 cross_compiling=$ac_cv_prog_cc_cross
14873 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14875 if test x$glibcpp_cv_func__logf_use = x"yes"; then
14876 for ac_func in _logf
14878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14879 echo "configure:14880: checking for $ac_func" >&5
14880 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14881 echo $ac_n "(cached) $ac_c" 1>&6
14882 else
14883 cat > conftest.$ac_ext <<EOF
14884 #line 14885 "configure"
14885 #include "confdefs.h"
14886 /* System header to define __stub macros and hopefully few prototypes,
14887 which can conflict with char $ac_func(); below. */
14888 #include <assert.h>
14889 /* Override any gcc2 internal prototype to avoid an error. */
14890 /* We use char because int might match the return type of a gcc2
14891 builtin and then its argument prototype would still apply. */
14892 char $ac_func();
14894 int main() {
14896 /* The GNU C library defines this for functions which it implements
14897 to always fail with ENOSYS. Some functions are actually named
14898 something starting with __ and the normal name is an alias. */
14899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14900 choke me
14901 #else
14902 $ac_func();
14903 #endif
14905 ; return 0; }
14907 if { (eval echo configure:14908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14908 rm -rf conftest*
14909 eval "ac_cv_func_$ac_func=yes"
14910 else
14911 echo "configure: failed program was:" >&5
14912 cat conftest.$ac_ext >&5
14913 rm -rf conftest*
14914 eval "ac_cv_func_$ac_func=no"
14916 rm -f conftest*
14919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14920 echo "$ac_t""yes" 1>&6
14921 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14922 cat >> confdefs.h <<EOF
14923 #define $ac_tr_func 1
14926 else
14927 echo "$ac_t""no" 1>&6
14929 done
14936 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14937 echo "configure:14938: checking for log10f declaration" >&5
14938 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14939 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14940 echo $ac_n "(cached) $ac_c" 1>&6
14941 else
14944 ac_ext=C
14945 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14946 ac_cpp='$CXXCPP $CPPFLAGS'
14947 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14948 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14949 cross_compiling=$ac_cv_prog_cxx_cross
14951 cat > conftest.$ac_ext <<EOF
14952 #line 14953 "configure"
14953 #include "confdefs.h"
14954 #include <math.h>
14955 #ifdef HAVE_IEEEFP_H
14956 #include <ieeefp.h>
14957 #endif
14959 int main() {
14960 log10f(0);
14961 ; return 0; }
14963 if { (eval echo configure:14964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14964 rm -rf conftest*
14965 glibcpp_cv_func_log10f_use=yes
14966 else
14967 echo "configure: failed program was:" >&5
14968 cat conftest.$ac_ext >&5
14969 rm -rf conftest*
14970 glibcpp_cv_func_log10f_use=no
14972 rm -f conftest*
14973 ac_ext=c
14974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14975 ac_cpp='$CPP $CPPFLAGS'
14976 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14977 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14978 cross_compiling=$ac_cv_prog_cc_cross
14984 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14986 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14987 for ac_func in log10f
14989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14990 echo "configure:14991: checking for $ac_func" >&5
14991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14992 echo $ac_n "(cached) $ac_c" 1>&6
14993 else
14994 cat > conftest.$ac_ext <<EOF
14995 #line 14996 "configure"
14996 #include "confdefs.h"
14997 /* System header to define __stub macros and hopefully few prototypes,
14998 which can conflict with char $ac_func(); below. */
14999 #include <assert.h>
15000 /* Override any gcc2 internal prototype to avoid an error. */
15001 /* We use char because int might match the return type of a gcc2
15002 builtin and then its argument prototype would still apply. */
15003 char $ac_func();
15005 int main() {
15007 /* The GNU C library defines this for functions which it implements
15008 to always fail with ENOSYS. Some functions are actually named
15009 something starting with __ and the normal name is an alias. */
15010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15011 choke me
15012 #else
15013 $ac_func();
15014 #endif
15016 ; return 0; }
15018 if { (eval echo configure:15019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15019 rm -rf conftest*
15020 eval "ac_cv_func_$ac_func=yes"
15021 else
15022 echo "configure: failed program was:" >&5
15023 cat conftest.$ac_ext >&5
15024 rm -rf conftest*
15025 eval "ac_cv_func_$ac_func=no"
15027 rm -f conftest*
15030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15031 echo "$ac_t""yes" 1>&6
15032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15033 cat >> confdefs.h <<EOF
15034 #define $ac_tr_func 1
15037 else
15038 echo "$ac_t""no" 1>&6
15040 done
15042 else
15044 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
15045 echo "configure:15046: checking for _log10f declaration" >&5
15046 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
15047 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
15048 echo $ac_n "(cached) $ac_c" 1>&6
15049 else
15052 ac_ext=C
15053 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15054 ac_cpp='$CXXCPP $CPPFLAGS'
15055 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15056 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15057 cross_compiling=$ac_cv_prog_cxx_cross
15059 cat > conftest.$ac_ext <<EOF
15060 #line 15061 "configure"
15061 #include "confdefs.h"
15062 #include <math.h>
15063 #ifdef HAVE_IEEEFP_H
15064 #include <ieeefp.h>
15065 #endif
15067 int main() {
15068 _log10f(0);
15069 ; return 0; }
15071 if { (eval echo configure:15072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15072 rm -rf conftest*
15073 glibcpp_cv_func__log10f_use=yes
15074 else
15075 echo "configure: failed program was:" >&5
15076 cat conftest.$ac_ext >&5
15077 rm -rf conftest*
15078 glibcpp_cv_func__log10f_use=no
15080 rm -f conftest*
15081 ac_ext=c
15082 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15083 ac_cpp='$CPP $CPPFLAGS'
15084 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15085 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15086 cross_compiling=$ac_cv_prog_cc_cross
15092 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
15094 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
15095 for ac_func in _log10f
15097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15098 echo "configure:15099: checking for $ac_func" >&5
15099 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15100 echo $ac_n "(cached) $ac_c" 1>&6
15101 else
15102 cat > conftest.$ac_ext <<EOF
15103 #line 15104 "configure"
15104 #include "confdefs.h"
15105 /* System header to define __stub macros and hopefully few prototypes,
15106 which can conflict with char $ac_func(); below. */
15107 #include <assert.h>
15108 /* Override any gcc2 internal prototype to avoid an error. */
15109 /* We use char because int might match the return type of a gcc2
15110 builtin and then its argument prototype would still apply. */
15111 char $ac_func();
15113 int main() {
15115 /* The GNU C library defines this for functions which it implements
15116 to always fail with ENOSYS. Some functions are actually named
15117 something starting with __ and the normal name is an alias. */
15118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15119 choke me
15120 #else
15121 $ac_func();
15122 #endif
15124 ; return 0; }
15126 if { (eval echo configure:15127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15127 rm -rf conftest*
15128 eval "ac_cv_func_$ac_func=yes"
15129 else
15130 echo "configure: failed program was:" >&5
15131 cat conftest.$ac_ext >&5
15132 rm -rf conftest*
15133 eval "ac_cv_func_$ac_func=no"
15135 rm -f conftest*
15138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15139 echo "$ac_t""yes" 1>&6
15140 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15141 cat >> confdefs.h <<EOF
15142 #define $ac_tr_func 1
15145 else
15146 echo "$ac_t""no" 1>&6
15148 done
15155 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15156 echo "configure:15157: checking for modff declaration" >&5
15157 if test x${glibcpp_cv_func_modff_use+set} != xset; then
15158 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15159 echo $ac_n "(cached) $ac_c" 1>&6
15160 else
15163 ac_ext=C
15164 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15165 ac_cpp='$CXXCPP $CPPFLAGS'
15166 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15167 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15168 cross_compiling=$ac_cv_prog_cxx_cross
15170 cat > conftest.$ac_ext <<EOF
15171 #line 15172 "configure"
15172 #include "confdefs.h"
15173 #include <math.h>
15174 int main() {
15175 modff(0, 0);
15176 ; return 0; }
15178 if { (eval echo configure:15179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15179 rm -rf conftest*
15180 glibcpp_cv_func_modff_use=yes
15181 else
15182 echo "configure: failed program was:" >&5
15183 cat conftest.$ac_ext >&5
15184 rm -rf conftest*
15185 glibcpp_cv_func_modff_use=no
15187 rm -f conftest*
15188 ac_ext=c
15189 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15190 ac_cpp='$CPP $CPPFLAGS'
15191 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15192 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15193 cross_compiling=$ac_cv_prog_cc_cross
15199 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15201 if test x$glibcpp_cv_func_modff_use = x"yes"; then
15202 for ac_func in modff
15204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15205 echo "configure:15206: checking for $ac_func" >&5
15206 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15207 echo $ac_n "(cached) $ac_c" 1>&6
15208 else
15209 cat > conftest.$ac_ext <<EOF
15210 #line 15211 "configure"
15211 #include "confdefs.h"
15212 /* System header to define __stub macros and hopefully few prototypes,
15213 which can conflict with char $ac_func(); below. */
15214 #include <assert.h>
15215 /* Override any gcc2 internal prototype to avoid an error. */
15216 /* We use char because int might match the return type of a gcc2
15217 builtin and then its argument prototype would still apply. */
15218 char $ac_func();
15220 int main() {
15222 /* The GNU C library defines this for functions which it implements
15223 to always fail with ENOSYS. Some functions are actually named
15224 something starting with __ and the normal name is an alias. */
15225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15226 choke me
15227 #else
15228 $ac_func();
15229 #endif
15231 ; return 0; }
15233 if { (eval echo configure:15234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15234 rm -rf conftest*
15235 eval "ac_cv_func_$ac_func=yes"
15236 else
15237 echo "configure: failed program was:" >&5
15238 cat conftest.$ac_ext >&5
15239 rm -rf conftest*
15240 eval "ac_cv_func_$ac_func=no"
15242 rm -f conftest*
15245 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15246 echo "$ac_t""yes" 1>&6
15247 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15248 cat >> confdefs.h <<EOF
15249 #define $ac_tr_func 1
15252 else
15253 echo "$ac_t""no" 1>&6
15255 done
15257 else
15259 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15260 echo "configure:15261: checking for _modff declaration" >&5
15261 if test x${glibcpp_cv_func__modff_use+set} != xset; then
15262 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15263 echo $ac_n "(cached) $ac_c" 1>&6
15264 else
15267 ac_ext=C
15268 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15269 ac_cpp='$CXXCPP $CPPFLAGS'
15270 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15271 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15272 cross_compiling=$ac_cv_prog_cxx_cross
15274 cat > conftest.$ac_ext <<EOF
15275 #line 15276 "configure"
15276 #include "confdefs.h"
15277 #include <math.h>
15278 int main() {
15279 _modff(0, 0);
15280 ; return 0; }
15282 if { (eval echo configure:15283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15283 rm -rf conftest*
15284 glibcpp_cv_func__modff_use=yes
15285 else
15286 echo "configure: failed program was:" >&5
15287 cat conftest.$ac_ext >&5
15288 rm -rf conftest*
15289 glibcpp_cv_func__modff_use=no
15291 rm -f conftest*
15292 ac_ext=c
15293 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15294 ac_cpp='$CPP $CPPFLAGS'
15295 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15296 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15297 cross_compiling=$ac_cv_prog_cc_cross
15303 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15305 if test x$glibcpp_cv_func__modff_use = x"yes"; then
15306 for ac_func in _modff
15308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15309 echo "configure:15310: checking for $ac_func" >&5
15310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15311 echo $ac_n "(cached) $ac_c" 1>&6
15312 else
15313 cat > conftest.$ac_ext <<EOF
15314 #line 15315 "configure"
15315 #include "confdefs.h"
15316 /* System header to define __stub macros and hopefully few prototypes,
15317 which can conflict with char $ac_func(); below. */
15318 #include <assert.h>
15319 /* Override any gcc2 internal prototype to avoid an error. */
15320 /* We use char because int might match the return type of a gcc2
15321 builtin and then its argument prototype would still apply. */
15322 char $ac_func();
15324 int main() {
15326 /* The GNU C library defines this for functions which it implements
15327 to always fail with ENOSYS. Some functions are actually named
15328 something starting with __ and the normal name is an alias. */
15329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15330 choke me
15331 #else
15332 $ac_func();
15333 #endif
15335 ; return 0; }
15337 if { (eval echo configure:15338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15338 rm -rf conftest*
15339 eval "ac_cv_func_$ac_func=yes"
15340 else
15341 echo "configure: failed program was:" >&5
15342 cat conftest.$ac_ext >&5
15343 rm -rf conftest*
15344 eval "ac_cv_func_$ac_func=no"
15346 rm -f conftest*
15349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15350 echo "$ac_t""yes" 1>&6
15351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15352 cat >> confdefs.h <<EOF
15353 #define $ac_tr_func 1
15356 else
15357 echo "$ac_t""no" 1>&6
15359 done
15366 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15367 echo "configure:15368: checking for powf declaration" >&5
15368 if test x${glibcpp_cv_func_powf_use+set} != xset; then
15369 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15370 echo $ac_n "(cached) $ac_c" 1>&6
15371 else
15374 ac_ext=C
15375 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15376 ac_cpp='$CXXCPP $CPPFLAGS'
15377 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15378 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15379 cross_compiling=$ac_cv_prog_cxx_cross
15381 cat > conftest.$ac_ext <<EOF
15382 #line 15383 "configure"
15383 #include "confdefs.h"
15384 #include <math.h>
15385 int main() {
15386 powf(0, 0);
15387 ; return 0; }
15389 if { (eval echo configure:15390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15390 rm -rf conftest*
15391 glibcpp_cv_func_powf_use=yes
15392 else
15393 echo "configure: failed program was:" >&5
15394 cat conftest.$ac_ext >&5
15395 rm -rf conftest*
15396 glibcpp_cv_func_powf_use=no
15398 rm -f conftest*
15399 ac_ext=c
15400 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15401 ac_cpp='$CPP $CPPFLAGS'
15402 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15403 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15404 cross_compiling=$ac_cv_prog_cc_cross
15410 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15412 if test x$glibcpp_cv_func_powf_use = x"yes"; then
15413 for ac_func in powf
15415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15416 echo "configure:15417: checking for $ac_func" >&5
15417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15418 echo $ac_n "(cached) $ac_c" 1>&6
15419 else
15420 cat > conftest.$ac_ext <<EOF
15421 #line 15422 "configure"
15422 #include "confdefs.h"
15423 /* System header to define __stub macros and hopefully few prototypes,
15424 which can conflict with char $ac_func(); below. */
15425 #include <assert.h>
15426 /* Override any gcc2 internal prototype to avoid an error. */
15427 /* We use char because int might match the return type of a gcc2
15428 builtin and then its argument prototype would still apply. */
15429 char $ac_func();
15431 int main() {
15433 /* The GNU C library defines this for functions which it implements
15434 to always fail with ENOSYS. Some functions are actually named
15435 something starting with __ and the normal name is an alias. */
15436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15437 choke me
15438 #else
15439 $ac_func();
15440 #endif
15442 ; return 0; }
15444 if { (eval echo configure:15445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15445 rm -rf conftest*
15446 eval "ac_cv_func_$ac_func=yes"
15447 else
15448 echo "configure: failed program was:" >&5
15449 cat conftest.$ac_ext >&5
15450 rm -rf conftest*
15451 eval "ac_cv_func_$ac_func=no"
15453 rm -f conftest*
15456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15457 echo "$ac_t""yes" 1>&6
15458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15459 cat >> confdefs.h <<EOF
15460 #define $ac_tr_func 1
15463 else
15464 echo "$ac_t""no" 1>&6
15466 done
15468 else
15470 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15471 echo "configure:15472: checking for _powf declaration" >&5
15472 if test x${glibcpp_cv_func__powf_use+set} != xset; then
15473 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15474 echo $ac_n "(cached) $ac_c" 1>&6
15475 else
15478 ac_ext=C
15479 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15480 ac_cpp='$CXXCPP $CPPFLAGS'
15481 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15482 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15483 cross_compiling=$ac_cv_prog_cxx_cross
15485 cat > conftest.$ac_ext <<EOF
15486 #line 15487 "configure"
15487 #include "confdefs.h"
15488 #include <math.h>
15489 int main() {
15490 _powf(0, 0);
15491 ; return 0; }
15493 if { (eval echo configure:15494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15494 rm -rf conftest*
15495 glibcpp_cv_func__powf_use=yes
15496 else
15497 echo "configure: failed program was:" >&5
15498 cat conftest.$ac_ext >&5
15499 rm -rf conftest*
15500 glibcpp_cv_func__powf_use=no
15502 rm -f conftest*
15503 ac_ext=c
15504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15505 ac_cpp='$CPP $CPPFLAGS'
15506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15508 cross_compiling=$ac_cv_prog_cc_cross
15514 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15516 if test x$glibcpp_cv_func__powf_use = x"yes"; then
15517 for ac_func in _powf
15519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15520 echo "configure:15521: checking for $ac_func" >&5
15521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15522 echo $ac_n "(cached) $ac_c" 1>&6
15523 else
15524 cat > conftest.$ac_ext <<EOF
15525 #line 15526 "configure"
15526 #include "confdefs.h"
15527 /* System header to define __stub macros and hopefully few prototypes,
15528 which can conflict with char $ac_func(); below. */
15529 #include <assert.h>
15530 /* Override any gcc2 internal prototype to avoid an error. */
15531 /* We use char because int might match the return type of a gcc2
15532 builtin and then its argument prototype would still apply. */
15533 char $ac_func();
15535 int main() {
15537 /* The GNU C library defines this for functions which it implements
15538 to always fail with ENOSYS. Some functions are actually named
15539 something starting with __ and the normal name is an alias. */
15540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15541 choke me
15542 #else
15543 $ac_func();
15544 #endif
15546 ; return 0; }
15548 if { (eval echo configure:15549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15549 rm -rf conftest*
15550 eval "ac_cv_func_$ac_func=yes"
15551 else
15552 echo "configure: failed program was:" >&5
15553 cat conftest.$ac_ext >&5
15554 rm -rf conftest*
15555 eval "ac_cv_func_$ac_func=no"
15557 rm -f conftest*
15560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15561 echo "$ac_t""yes" 1>&6
15562 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15563 cat >> confdefs.h <<EOF
15564 #define $ac_tr_func 1
15567 else
15568 echo "$ac_t""no" 1>&6
15570 done
15577 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15578 echo "configure:15579: checking for sqrtf declaration" >&5
15579 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15580 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15581 echo $ac_n "(cached) $ac_c" 1>&6
15582 else
15585 ac_ext=C
15586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15587 ac_cpp='$CXXCPP $CPPFLAGS'
15588 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15589 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15590 cross_compiling=$ac_cv_prog_cxx_cross
15592 cat > conftest.$ac_ext <<EOF
15593 #line 15594 "configure"
15594 #include "confdefs.h"
15595 #include <math.h>
15596 #ifdef HAVE_IEEEFP_H
15597 #include <ieeefp.h>
15598 #endif
15600 int main() {
15601 sqrtf(0);
15602 ; return 0; }
15604 if { (eval echo configure:15605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15605 rm -rf conftest*
15606 glibcpp_cv_func_sqrtf_use=yes
15607 else
15608 echo "configure: failed program was:" >&5
15609 cat conftest.$ac_ext >&5
15610 rm -rf conftest*
15611 glibcpp_cv_func_sqrtf_use=no
15613 rm -f conftest*
15614 ac_ext=c
15615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15616 ac_cpp='$CPP $CPPFLAGS'
15617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15619 cross_compiling=$ac_cv_prog_cc_cross
15625 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15627 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15628 for ac_func in sqrtf
15630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15631 echo "configure:15632: checking for $ac_func" >&5
15632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15633 echo $ac_n "(cached) $ac_c" 1>&6
15634 else
15635 cat > conftest.$ac_ext <<EOF
15636 #line 15637 "configure"
15637 #include "confdefs.h"
15638 /* System header to define __stub macros and hopefully few prototypes,
15639 which can conflict with char $ac_func(); below. */
15640 #include <assert.h>
15641 /* Override any gcc2 internal prototype to avoid an error. */
15642 /* We use char because int might match the return type of a gcc2
15643 builtin and then its argument prototype would still apply. */
15644 char $ac_func();
15646 int main() {
15648 /* The GNU C library defines this for functions which it implements
15649 to always fail with ENOSYS. Some functions are actually named
15650 something starting with __ and the normal name is an alias. */
15651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15652 choke me
15653 #else
15654 $ac_func();
15655 #endif
15657 ; return 0; }
15659 if { (eval echo configure:15660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15660 rm -rf conftest*
15661 eval "ac_cv_func_$ac_func=yes"
15662 else
15663 echo "configure: failed program was:" >&5
15664 cat conftest.$ac_ext >&5
15665 rm -rf conftest*
15666 eval "ac_cv_func_$ac_func=no"
15668 rm -f conftest*
15671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15672 echo "$ac_t""yes" 1>&6
15673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15674 cat >> confdefs.h <<EOF
15675 #define $ac_tr_func 1
15678 else
15679 echo "$ac_t""no" 1>&6
15681 done
15683 else
15685 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15686 echo "configure:15687: checking for _sqrtf declaration" >&5
15687 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15688 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15689 echo $ac_n "(cached) $ac_c" 1>&6
15690 else
15693 ac_ext=C
15694 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15695 ac_cpp='$CXXCPP $CPPFLAGS'
15696 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15697 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15698 cross_compiling=$ac_cv_prog_cxx_cross
15700 cat > conftest.$ac_ext <<EOF
15701 #line 15702 "configure"
15702 #include "confdefs.h"
15703 #include <math.h>
15704 #ifdef HAVE_IEEEFP_H
15705 #include <ieeefp.h>
15706 #endif
15708 int main() {
15709 _sqrtf(0);
15710 ; return 0; }
15712 if { (eval echo configure:15713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15713 rm -rf conftest*
15714 glibcpp_cv_func__sqrtf_use=yes
15715 else
15716 echo "configure: failed program was:" >&5
15717 cat conftest.$ac_ext >&5
15718 rm -rf conftest*
15719 glibcpp_cv_func__sqrtf_use=no
15721 rm -f conftest*
15722 ac_ext=c
15723 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15724 ac_cpp='$CPP $CPPFLAGS'
15725 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15726 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15727 cross_compiling=$ac_cv_prog_cc_cross
15733 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15735 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15736 for ac_func in _sqrtf
15738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15739 echo "configure:15740: checking for $ac_func" >&5
15740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15741 echo $ac_n "(cached) $ac_c" 1>&6
15742 else
15743 cat > conftest.$ac_ext <<EOF
15744 #line 15745 "configure"
15745 #include "confdefs.h"
15746 /* System header to define __stub macros and hopefully few prototypes,
15747 which can conflict with char $ac_func(); below. */
15748 #include <assert.h>
15749 /* Override any gcc2 internal prototype to avoid an error. */
15750 /* We use char because int might match the return type of a gcc2
15751 builtin and then its argument prototype would still apply. */
15752 char $ac_func();
15754 int main() {
15756 /* The GNU C library defines this for functions which it implements
15757 to always fail with ENOSYS. Some functions are actually named
15758 something starting with __ and the normal name is an alias. */
15759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15760 choke me
15761 #else
15762 $ac_func();
15763 #endif
15765 ; return 0; }
15767 if { (eval echo configure:15768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15768 rm -rf conftest*
15769 eval "ac_cv_func_$ac_func=yes"
15770 else
15771 echo "configure: failed program was:" >&5
15772 cat conftest.$ac_ext >&5
15773 rm -rf conftest*
15774 eval "ac_cv_func_$ac_func=no"
15776 rm -f conftest*
15779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15780 echo "$ac_t""yes" 1>&6
15781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15782 cat >> confdefs.h <<EOF
15783 #define $ac_tr_func 1
15786 else
15787 echo "$ac_t""no" 1>&6
15789 done
15796 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15797 echo "configure:15798: checking for sincosf declaration" >&5
15798 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15799 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15800 echo $ac_n "(cached) $ac_c" 1>&6
15801 else
15804 ac_ext=C
15805 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15806 ac_cpp='$CXXCPP $CPPFLAGS'
15807 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15808 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15809 cross_compiling=$ac_cv_prog_cxx_cross
15811 cat > conftest.$ac_ext <<EOF
15812 #line 15813 "configure"
15813 #include "confdefs.h"
15814 #include <math.h>
15815 int main() {
15816 sincosf(0, 0, 0);
15817 ; return 0; }
15819 if { (eval echo configure:15820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15820 rm -rf conftest*
15821 glibcpp_cv_func_sincosf_use=yes
15822 else
15823 echo "configure: failed program was:" >&5
15824 cat conftest.$ac_ext >&5
15825 rm -rf conftest*
15826 glibcpp_cv_func_sincosf_use=no
15828 rm -f conftest*
15829 ac_ext=c
15830 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15831 ac_cpp='$CPP $CPPFLAGS'
15832 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15833 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15834 cross_compiling=$ac_cv_prog_cc_cross
15840 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15842 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15843 for ac_func in sincosf
15845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15846 echo "configure:15847: checking for $ac_func" >&5
15847 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15848 echo $ac_n "(cached) $ac_c" 1>&6
15849 else
15850 cat > conftest.$ac_ext <<EOF
15851 #line 15852 "configure"
15852 #include "confdefs.h"
15853 /* System header to define __stub macros and hopefully few prototypes,
15854 which can conflict with char $ac_func(); below. */
15855 #include <assert.h>
15856 /* Override any gcc2 internal prototype to avoid an error. */
15857 /* We use char because int might match the return type of a gcc2
15858 builtin and then its argument prototype would still apply. */
15859 char $ac_func();
15861 int main() {
15863 /* The GNU C library defines this for functions which it implements
15864 to always fail with ENOSYS. Some functions are actually named
15865 something starting with __ and the normal name is an alias. */
15866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15867 choke me
15868 #else
15869 $ac_func();
15870 #endif
15872 ; return 0; }
15874 if { (eval echo configure:15875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15875 rm -rf conftest*
15876 eval "ac_cv_func_$ac_func=yes"
15877 else
15878 echo "configure: failed program was:" >&5
15879 cat conftest.$ac_ext >&5
15880 rm -rf conftest*
15881 eval "ac_cv_func_$ac_func=no"
15883 rm -f conftest*
15886 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15887 echo "$ac_t""yes" 1>&6
15888 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15889 cat >> confdefs.h <<EOF
15890 #define $ac_tr_func 1
15893 else
15894 echo "$ac_t""no" 1>&6
15896 done
15898 else
15900 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15901 echo "configure:15902: checking for _sincosf declaration" >&5
15902 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15903 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15904 echo $ac_n "(cached) $ac_c" 1>&6
15905 else
15908 ac_ext=C
15909 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15910 ac_cpp='$CXXCPP $CPPFLAGS'
15911 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15912 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15913 cross_compiling=$ac_cv_prog_cxx_cross
15915 cat > conftest.$ac_ext <<EOF
15916 #line 15917 "configure"
15917 #include "confdefs.h"
15918 #include <math.h>
15919 int main() {
15920 _sincosf(0, 0, 0);
15921 ; return 0; }
15923 if { (eval echo configure:15924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15924 rm -rf conftest*
15925 glibcpp_cv_func__sincosf_use=yes
15926 else
15927 echo "configure: failed program was:" >&5
15928 cat conftest.$ac_ext >&5
15929 rm -rf conftest*
15930 glibcpp_cv_func__sincosf_use=no
15932 rm -f conftest*
15933 ac_ext=c
15934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15935 ac_cpp='$CPP $CPPFLAGS'
15936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15938 cross_compiling=$ac_cv_prog_cc_cross
15944 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15946 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15947 for ac_func in _sincosf
15949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15950 echo "configure:15951: checking for $ac_func" >&5
15951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15952 echo $ac_n "(cached) $ac_c" 1>&6
15953 else
15954 cat > conftest.$ac_ext <<EOF
15955 #line 15956 "configure"
15956 #include "confdefs.h"
15957 /* System header to define __stub macros and hopefully few prototypes,
15958 which can conflict with char $ac_func(); below. */
15959 #include <assert.h>
15960 /* Override any gcc2 internal prototype to avoid an error. */
15961 /* We use char because int might match the return type of a gcc2
15962 builtin and then its argument prototype would still apply. */
15963 char $ac_func();
15965 int main() {
15967 /* The GNU C library defines this for functions which it implements
15968 to always fail with ENOSYS. Some functions are actually named
15969 something starting with __ and the normal name is an alias. */
15970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15971 choke me
15972 #else
15973 $ac_func();
15974 #endif
15976 ; return 0; }
15978 if { (eval echo configure:15979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15979 rm -rf conftest*
15980 eval "ac_cv_func_$ac_func=yes"
15981 else
15982 echo "configure: failed program was:" >&5
15983 cat conftest.$ac_ext >&5
15984 rm -rf conftest*
15985 eval "ac_cv_func_$ac_func=no"
15987 rm -f conftest*
15990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15991 echo "$ac_t""yes" 1>&6
15992 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15993 cat >> confdefs.h <<EOF
15994 #define $ac_tr_func 1
15997 else
15998 echo "$ac_t""no" 1>&6
16000 done
16007 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
16008 echo "configure:16009: checking for finitef declaration" >&5
16009 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
16010 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
16011 echo $ac_n "(cached) $ac_c" 1>&6
16012 else
16015 ac_ext=C
16016 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16017 ac_cpp='$CXXCPP $CPPFLAGS'
16018 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16019 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16020 cross_compiling=$ac_cv_prog_cxx_cross
16022 cat > conftest.$ac_ext <<EOF
16023 #line 16024 "configure"
16024 #include "confdefs.h"
16025 #include <math.h>
16026 #ifdef HAVE_IEEEFP_H
16027 #include <ieeefp.h>
16028 #endif
16030 int main() {
16031 finitef(0);
16032 ; return 0; }
16034 if { (eval echo configure:16035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16035 rm -rf conftest*
16036 glibcpp_cv_func_finitef_use=yes
16037 else
16038 echo "configure: failed program was:" >&5
16039 cat conftest.$ac_ext >&5
16040 rm -rf conftest*
16041 glibcpp_cv_func_finitef_use=no
16043 rm -f conftest*
16044 ac_ext=c
16045 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16046 ac_cpp='$CPP $CPPFLAGS'
16047 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16048 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16049 cross_compiling=$ac_cv_prog_cc_cross
16055 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
16057 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
16058 for ac_func in finitef
16060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16061 echo "configure:16062: checking for $ac_func" >&5
16062 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16063 echo $ac_n "(cached) $ac_c" 1>&6
16064 else
16065 cat > conftest.$ac_ext <<EOF
16066 #line 16067 "configure"
16067 #include "confdefs.h"
16068 /* System header to define __stub macros and hopefully few prototypes,
16069 which can conflict with char $ac_func(); below. */
16070 #include <assert.h>
16071 /* Override any gcc2 internal prototype to avoid an error. */
16072 /* We use char because int might match the return type of a gcc2
16073 builtin and then its argument prototype would still apply. */
16074 char $ac_func();
16076 int main() {
16078 /* The GNU C library defines this for functions which it implements
16079 to always fail with ENOSYS. Some functions are actually named
16080 something starting with __ and the normal name is an alias. */
16081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16082 choke me
16083 #else
16084 $ac_func();
16085 #endif
16087 ; return 0; }
16089 if { (eval echo configure:16090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16090 rm -rf conftest*
16091 eval "ac_cv_func_$ac_func=yes"
16092 else
16093 echo "configure: failed program was:" >&5
16094 cat conftest.$ac_ext >&5
16095 rm -rf conftest*
16096 eval "ac_cv_func_$ac_func=no"
16098 rm -f conftest*
16101 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16102 echo "$ac_t""yes" 1>&6
16103 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16104 cat >> confdefs.h <<EOF
16105 #define $ac_tr_func 1
16108 else
16109 echo "$ac_t""no" 1>&6
16111 done
16113 else
16115 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
16116 echo "configure:16117: checking for _finitef declaration" >&5
16117 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
16118 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
16119 echo $ac_n "(cached) $ac_c" 1>&6
16120 else
16123 ac_ext=C
16124 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16125 ac_cpp='$CXXCPP $CPPFLAGS'
16126 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16127 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16128 cross_compiling=$ac_cv_prog_cxx_cross
16130 cat > conftest.$ac_ext <<EOF
16131 #line 16132 "configure"
16132 #include "confdefs.h"
16133 #include <math.h>
16134 #ifdef HAVE_IEEEFP_H
16135 #include <ieeefp.h>
16136 #endif
16138 int main() {
16139 _finitef(0);
16140 ; return 0; }
16142 if { (eval echo configure:16143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16143 rm -rf conftest*
16144 glibcpp_cv_func__finitef_use=yes
16145 else
16146 echo "configure: failed program was:" >&5
16147 cat conftest.$ac_ext >&5
16148 rm -rf conftest*
16149 glibcpp_cv_func__finitef_use=no
16151 rm -f conftest*
16152 ac_ext=c
16153 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16154 ac_cpp='$CPP $CPPFLAGS'
16155 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16156 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16157 cross_compiling=$ac_cv_prog_cc_cross
16163 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16165 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16166 for ac_func in _finitef
16168 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16169 echo "configure:16170: checking for $ac_func" >&5
16170 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16171 echo $ac_n "(cached) $ac_c" 1>&6
16172 else
16173 cat > conftest.$ac_ext <<EOF
16174 #line 16175 "configure"
16175 #include "confdefs.h"
16176 /* System header to define __stub macros and hopefully few prototypes,
16177 which can conflict with char $ac_func(); below. */
16178 #include <assert.h>
16179 /* Override any gcc2 internal prototype to avoid an error. */
16180 /* We use char because int might match the return type of a gcc2
16181 builtin and then its argument prototype would still apply. */
16182 char $ac_func();
16184 int main() {
16186 /* The GNU C library defines this for functions which it implements
16187 to always fail with ENOSYS. Some functions are actually named
16188 something starting with __ and the normal name is an alias. */
16189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16190 choke me
16191 #else
16192 $ac_func();
16193 #endif
16195 ; return 0; }
16197 if { (eval echo configure:16198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16198 rm -rf conftest*
16199 eval "ac_cv_func_$ac_func=yes"
16200 else
16201 echo "configure: failed program was:" >&5
16202 cat conftest.$ac_ext >&5
16203 rm -rf conftest*
16204 eval "ac_cv_func_$ac_func=no"
16206 rm -f conftest*
16209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16210 echo "$ac_t""yes" 1>&6
16211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16212 cat >> confdefs.h <<EOF
16213 #define $ac_tr_func 1
16216 else
16217 echo "$ac_t""no" 1>&6
16219 done
16226 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16227 echo "configure:16228: checking for long double trig functions" >&5
16228 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16229 echo $ac_n "(cached) $ac_c" 1>&6
16230 else
16233 ac_ext=C
16234 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16235 ac_cpp='$CXXCPP $CPPFLAGS'
16236 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16237 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16238 cross_compiling=$ac_cv_prog_cxx_cross
16240 cat > conftest.$ac_ext <<EOF
16241 #line 16242 "configure"
16242 #include "confdefs.h"
16243 #include <math.h>
16244 int main() {
16245 `for x in acosl asinl atanl \
16246 cosl sinl tanl \
16247 coshl sinhl tanhl; do echo "$x (0);"; done`
16248 ; return 0; }
16250 if { (eval echo configure:16251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16251 rm -rf conftest*
16252 glibcpp_cv_func_long_double_trig_use=yes
16253 else
16254 echo "configure: failed program was:" >&5
16255 cat conftest.$ac_ext >&5
16256 rm -rf conftest*
16257 glibcpp_cv_func_long_double_trig_use=no
16259 rm -f conftest*
16260 ac_ext=c
16261 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16262 ac_cpp='$CPP $CPPFLAGS'
16263 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16264 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16265 cross_compiling=$ac_cv_prog_cc_cross
16269 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16270 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16271 for ac_func in acosl asinl atanl \
16272 cosl sinl tanl \
16273 coshl sinhl tanhl
16275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16276 echo "configure:16277: checking for $ac_func" >&5
16277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16278 echo $ac_n "(cached) $ac_c" 1>&6
16279 else
16280 cat > conftest.$ac_ext <<EOF
16281 #line 16282 "configure"
16282 #include "confdefs.h"
16283 /* System header to define __stub macros and hopefully few prototypes,
16284 which can conflict with char $ac_func(); below. */
16285 #include <assert.h>
16286 /* Override any gcc2 internal prototype to avoid an error. */
16287 /* We use char because int might match the return type of a gcc2
16288 builtin and then its argument prototype would still apply. */
16289 char $ac_func();
16291 int main() {
16293 /* The GNU C library defines this for functions which it implements
16294 to always fail with ENOSYS. Some functions are actually named
16295 something starting with __ and the normal name is an alias. */
16296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16297 choke me
16298 #else
16299 $ac_func();
16300 #endif
16302 ; return 0; }
16304 if { (eval echo configure:16305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16305 rm -rf conftest*
16306 eval "ac_cv_func_$ac_func=yes"
16307 else
16308 echo "configure: failed program was:" >&5
16309 cat conftest.$ac_ext >&5
16310 rm -rf conftest*
16311 eval "ac_cv_func_$ac_func=no"
16313 rm -f conftest*
16316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16317 echo "$ac_t""yes" 1>&6
16318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16319 cat >> confdefs.h <<EOF
16320 #define $ac_tr_func 1
16323 else
16324 echo "$ac_t""no" 1>&6
16326 done
16331 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16332 echo "configure:16333: checking for long double round functions" >&5
16333 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16334 echo $ac_n "(cached) $ac_c" 1>&6
16335 else
16338 ac_ext=C
16339 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16340 ac_cpp='$CXXCPP $CPPFLAGS'
16341 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16342 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16343 cross_compiling=$ac_cv_prog_cxx_cross
16345 cat > conftest.$ac_ext <<EOF
16346 #line 16347 "configure"
16347 #include "confdefs.h"
16348 #include <math.h>
16349 int main() {
16350 `for x in ceill floorl; do echo "$x (0);"; done`
16351 ; return 0; }
16353 if { (eval echo configure:16354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16354 rm -rf conftest*
16355 glibcpp_cv_func_long_double_round_use=yes
16356 else
16357 echo "configure: failed program was:" >&5
16358 cat conftest.$ac_ext >&5
16359 rm -rf conftest*
16360 glibcpp_cv_func_long_double_round_use=no
16362 rm -f conftest*
16363 ac_ext=c
16364 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16365 ac_cpp='$CPP $CPPFLAGS'
16366 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16367 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16368 cross_compiling=$ac_cv_prog_cc_cross
16372 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16373 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16374 for ac_func in ceill floorl
16376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16377 echo "configure:16378: checking for $ac_func" >&5
16378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16379 echo $ac_n "(cached) $ac_c" 1>&6
16380 else
16381 cat > conftest.$ac_ext <<EOF
16382 #line 16383 "configure"
16383 #include "confdefs.h"
16384 /* System header to define __stub macros and hopefully few prototypes,
16385 which can conflict with char $ac_func(); below. */
16386 #include <assert.h>
16387 /* Override any gcc2 internal prototype to avoid an error. */
16388 /* We use char because int might match the return type of a gcc2
16389 builtin and then its argument prototype would still apply. */
16390 char $ac_func();
16392 int main() {
16394 /* The GNU C library defines this for functions which it implements
16395 to always fail with ENOSYS. Some functions are actually named
16396 something starting with __ and the normal name is an alias. */
16397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16398 choke me
16399 #else
16400 $ac_func();
16401 #endif
16403 ; return 0; }
16405 if { (eval echo configure:16406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16406 rm -rf conftest*
16407 eval "ac_cv_func_$ac_func=yes"
16408 else
16409 echo "configure: failed program was:" >&5
16410 cat conftest.$ac_ext >&5
16411 rm -rf conftest*
16412 eval "ac_cv_func_$ac_func=no"
16414 rm -f conftest*
16417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16418 echo "$ac_t""yes" 1>&6
16419 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16420 cat >> confdefs.h <<EOF
16421 #define $ac_tr_func 1
16424 else
16425 echo "$ac_t""no" 1>&6
16427 done
16433 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16434 echo "configure:16435: checking for isnanl declaration" >&5
16435 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16436 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16437 echo $ac_n "(cached) $ac_c" 1>&6
16438 else
16441 ac_ext=C
16442 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16443 ac_cpp='$CXXCPP $CPPFLAGS'
16444 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16445 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16446 cross_compiling=$ac_cv_prog_cxx_cross
16448 cat > conftest.$ac_ext <<EOF
16449 #line 16450 "configure"
16450 #include "confdefs.h"
16451 #include <math.h>
16452 #ifdef HAVE_IEEEFP_H
16453 #include <ieeefp.h>
16454 #endif
16456 int main() {
16457 isnanl(0);
16458 ; return 0; }
16460 if { (eval echo configure:16461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16461 rm -rf conftest*
16462 glibcpp_cv_func_isnanl_use=yes
16463 else
16464 echo "configure: failed program was:" >&5
16465 cat conftest.$ac_ext >&5
16466 rm -rf conftest*
16467 glibcpp_cv_func_isnanl_use=no
16469 rm -f conftest*
16470 ac_ext=c
16471 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16472 ac_cpp='$CPP $CPPFLAGS'
16473 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16474 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16475 cross_compiling=$ac_cv_prog_cc_cross
16481 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16483 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16484 for ac_func in isnanl
16486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16487 echo "configure:16488: checking for $ac_func" >&5
16488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16489 echo $ac_n "(cached) $ac_c" 1>&6
16490 else
16491 cat > conftest.$ac_ext <<EOF
16492 #line 16493 "configure"
16493 #include "confdefs.h"
16494 /* System header to define __stub macros and hopefully few prototypes,
16495 which can conflict with char $ac_func(); below. */
16496 #include <assert.h>
16497 /* Override any gcc2 internal prototype to avoid an error. */
16498 /* We use char because int might match the return type of a gcc2
16499 builtin and then its argument prototype would still apply. */
16500 char $ac_func();
16502 int main() {
16504 /* The GNU C library defines this for functions which it implements
16505 to always fail with ENOSYS. Some functions are actually named
16506 something starting with __ and the normal name is an alias. */
16507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16508 choke me
16509 #else
16510 $ac_func();
16511 #endif
16513 ; return 0; }
16515 if { (eval echo configure:16516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16516 rm -rf conftest*
16517 eval "ac_cv_func_$ac_func=yes"
16518 else
16519 echo "configure: failed program was:" >&5
16520 cat conftest.$ac_ext >&5
16521 rm -rf conftest*
16522 eval "ac_cv_func_$ac_func=no"
16524 rm -f conftest*
16527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16528 echo "$ac_t""yes" 1>&6
16529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16530 cat >> confdefs.h <<EOF
16531 #define $ac_tr_func 1
16534 else
16535 echo "$ac_t""no" 1>&6
16537 done
16539 else
16541 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16542 echo "configure:16543: checking for _isnanl declaration" >&5
16543 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16544 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16545 echo $ac_n "(cached) $ac_c" 1>&6
16546 else
16549 ac_ext=C
16550 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16551 ac_cpp='$CXXCPP $CPPFLAGS'
16552 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16553 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16554 cross_compiling=$ac_cv_prog_cxx_cross
16556 cat > conftest.$ac_ext <<EOF
16557 #line 16558 "configure"
16558 #include "confdefs.h"
16559 #include <math.h>
16560 #ifdef HAVE_IEEEFP_H
16561 #include <ieeefp.h>
16562 #endif
16564 int main() {
16565 _isnanl(0);
16566 ; return 0; }
16568 if { (eval echo configure:16569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16569 rm -rf conftest*
16570 glibcpp_cv_func__isnanl_use=yes
16571 else
16572 echo "configure: failed program was:" >&5
16573 cat conftest.$ac_ext >&5
16574 rm -rf conftest*
16575 glibcpp_cv_func__isnanl_use=no
16577 rm -f conftest*
16578 ac_ext=c
16579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16580 ac_cpp='$CPP $CPPFLAGS'
16581 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16582 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16583 cross_compiling=$ac_cv_prog_cc_cross
16589 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16591 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16592 for ac_func in _isnanl
16594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16595 echo "configure:16596: checking for $ac_func" >&5
16596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16597 echo $ac_n "(cached) $ac_c" 1>&6
16598 else
16599 cat > conftest.$ac_ext <<EOF
16600 #line 16601 "configure"
16601 #include "confdefs.h"
16602 /* System header to define __stub macros and hopefully few prototypes,
16603 which can conflict with char $ac_func(); below. */
16604 #include <assert.h>
16605 /* Override any gcc2 internal prototype to avoid an error. */
16606 /* We use char because int might match the return type of a gcc2
16607 builtin and then its argument prototype would still apply. */
16608 char $ac_func();
16610 int main() {
16612 /* The GNU C library defines this for functions which it implements
16613 to always fail with ENOSYS. Some functions are actually named
16614 something starting with __ and the normal name is an alias. */
16615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16616 choke me
16617 #else
16618 $ac_func();
16619 #endif
16621 ; return 0; }
16623 if { (eval echo configure:16624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16624 rm -rf conftest*
16625 eval "ac_cv_func_$ac_func=yes"
16626 else
16627 echo "configure: failed program was:" >&5
16628 cat conftest.$ac_ext >&5
16629 rm -rf conftest*
16630 eval "ac_cv_func_$ac_func=no"
16632 rm -f conftest*
16635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16636 echo "$ac_t""yes" 1>&6
16637 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16638 cat >> confdefs.h <<EOF
16639 #define $ac_tr_func 1
16642 else
16643 echo "$ac_t""no" 1>&6
16645 done
16652 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16653 echo "configure:16654: checking for isinfl declaration" >&5
16654 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16655 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16656 echo $ac_n "(cached) $ac_c" 1>&6
16657 else
16660 ac_ext=C
16661 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16662 ac_cpp='$CXXCPP $CPPFLAGS'
16663 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16664 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16665 cross_compiling=$ac_cv_prog_cxx_cross
16667 cat > conftest.$ac_ext <<EOF
16668 #line 16669 "configure"
16669 #include "confdefs.h"
16670 #include <math.h>
16671 #ifdef HAVE_IEEEFP_H
16672 #include <ieeefp.h>
16673 #endif
16675 int main() {
16676 isinfl(0);
16677 ; return 0; }
16679 if { (eval echo configure:16680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16680 rm -rf conftest*
16681 glibcpp_cv_func_isinfl_use=yes
16682 else
16683 echo "configure: failed program was:" >&5
16684 cat conftest.$ac_ext >&5
16685 rm -rf conftest*
16686 glibcpp_cv_func_isinfl_use=no
16688 rm -f conftest*
16689 ac_ext=c
16690 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16691 ac_cpp='$CPP $CPPFLAGS'
16692 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16693 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16694 cross_compiling=$ac_cv_prog_cc_cross
16700 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16702 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16703 for ac_func in isinfl
16705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16706 echo "configure:16707: checking for $ac_func" >&5
16707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16708 echo $ac_n "(cached) $ac_c" 1>&6
16709 else
16710 cat > conftest.$ac_ext <<EOF
16711 #line 16712 "configure"
16712 #include "confdefs.h"
16713 /* System header to define __stub macros and hopefully few prototypes,
16714 which can conflict with char $ac_func(); below. */
16715 #include <assert.h>
16716 /* Override any gcc2 internal prototype to avoid an error. */
16717 /* We use char because int might match the return type of a gcc2
16718 builtin and then its argument prototype would still apply. */
16719 char $ac_func();
16721 int main() {
16723 /* The GNU C library defines this for functions which it implements
16724 to always fail with ENOSYS. Some functions are actually named
16725 something starting with __ and the normal name is an alias. */
16726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16727 choke me
16728 #else
16729 $ac_func();
16730 #endif
16732 ; return 0; }
16734 if { (eval echo configure:16735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16735 rm -rf conftest*
16736 eval "ac_cv_func_$ac_func=yes"
16737 else
16738 echo "configure: failed program was:" >&5
16739 cat conftest.$ac_ext >&5
16740 rm -rf conftest*
16741 eval "ac_cv_func_$ac_func=no"
16743 rm -f conftest*
16746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16747 echo "$ac_t""yes" 1>&6
16748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16749 cat >> confdefs.h <<EOF
16750 #define $ac_tr_func 1
16753 else
16754 echo "$ac_t""no" 1>&6
16756 done
16758 else
16760 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16761 echo "configure:16762: checking for _isinfl declaration" >&5
16762 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16763 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16764 echo $ac_n "(cached) $ac_c" 1>&6
16765 else
16768 ac_ext=C
16769 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16770 ac_cpp='$CXXCPP $CPPFLAGS'
16771 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16772 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16773 cross_compiling=$ac_cv_prog_cxx_cross
16775 cat > conftest.$ac_ext <<EOF
16776 #line 16777 "configure"
16777 #include "confdefs.h"
16778 #include <math.h>
16779 #ifdef HAVE_IEEEFP_H
16780 #include <ieeefp.h>
16781 #endif
16783 int main() {
16784 _isinfl(0);
16785 ; return 0; }
16787 if { (eval echo configure:16788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16788 rm -rf conftest*
16789 glibcpp_cv_func__isinfl_use=yes
16790 else
16791 echo "configure: failed program was:" >&5
16792 cat conftest.$ac_ext >&5
16793 rm -rf conftest*
16794 glibcpp_cv_func__isinfl_use=no
16796 rm -f conftest*
16797 ac_ext=c
16798 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16799 ac_cpp='$CPP $CPPFLAGS'
16800 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16801 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16802 cross_compiling=$ac_cv_prog_cc_cross
16808 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16810 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16811 for ac_func in _isinfl
16813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16814 echo "configure:16815: checking for $ac_func" >&5
16815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16816 echo $ac_n "(cached) $ac_c" 1>&6
16817 else
16818 cat > conftest.$ac_ext <<EOF
16819 #line 16820 "configure"
16820 #include "confdefs.h"
16821 /* System header to define __stub macros and hopefully few prototypes,
16822 which can conflict with char $ac_func(); below. */
16823 #include <assert.h>
16824 /* Override any gcc2 internal prototype to avoid an error. */
16825 /* We use char because int might match the return type of a gcc2
16826 builtin and then its argument prototype would still apply. */
16827 char $ac_func();
16829 int main() {
16831 /* The GNU C library defines this for functions which it implements
16832 to always fail with ENOSYS. Some functions are actually named
16833 something starting with __ and the normal name is an alias. */
16834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16835 choke me
16836 #else
16837 $ac_func();
16838 #endif
16840 ; return 0; }
16842 if { (eval echo configure:16843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16843 rm -rf conftest*
16844 eval "ac_cv_func_$ac_func=yes"
16845 else
16846 echo "configure: failed program was:" >&5
16847 cat conftest.$ac_ext >&5
16848 rm -rf conftest*
16849 eval "ac_cv_func_$ac_func=no"
16851 rm -f conftest*
16854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16855 echo "$ac_t""yes" 1>&6
16856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16857 cat >> confdefs.h <<EOF
16858 #define $ac_tr_func 1
16861 else
16862 echo "$ac_t""no" 1>&6
16864 done
16871 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16872 echo "configure:16873: checking for copysignl declaration" >&5
16873 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16874 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16875 echo $ac_n "(cached) $ac_c" 1>&6
16876 else
16879 ac_ext=C
16880 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16881 ac_cpp='$CXXCPP $CPPFLAGS'
16882 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16883 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16884 cross_compiling=$ac_cv_prog_cxx_cross
16886 cat > conftest.$ac_ext <<EOF
16887 #line 16888 "configure"
16888 #include "confdefs.h"
16889 #include <math.h>
16890 int main() {
16891 copysignl(0, 0);
16892 ; return 0; }
16894 if { (eval echo configure:16895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16895 rm -rf conftest*
16896 glibcpp_cv_func_copysignl_use=yes
16897 else
16898 echo "configure: failed program was:" >&5
16899 cat conftest.$ac_ext >&5
16900 rm -rf conftest*
16901 glibcpp_cv_func_copysignl_use=no
16903 rm -f conftest*
16904 ac_ext=c
16905 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16906 ac_cpp='$CPP $CPPFLAGS'
16907 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16908 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16909 cross_compiling=$ac_cv_prog_cc_cross
16915 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16917 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16918 for ac_func in copysignl
16920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16921 echo "configure:16922: checking for $ac_func" >&5
16922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16923 echo $ac_n "(cached) $ac_c" 1>&6
16924 else
16925 cat > conftest.$ac_ext <<EOF
16926 #line 16927 "configure"
16927 #include "confdefs.h"
16928 /* System header to define __stub macros and hopefully few prototypes,
16929 which can conflict with char $ac_func(); below. */
16930 #include <assert.h>
16931 /* Override any gcc2 internal prototype to avoid an error. */
16932 /* We use char because int might match the return type of a gcc2
16933 builtin and then its argument prototype would still apply. */
16934 char $ac_func();
16936 int main() {
16938 /* The GNU C library defines this for functions which it implements
16939 to always fail with ENOSYS. Some functions are actually named
16940 something starting with __ and the normal name is an alias. */
16941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16942 choke me
16943 #else
16944 $ac_func();
16945 #endif
16947 ; return 0; }
16949 if { (eval echo configure:16950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16950 rm -rf conftest*
16951 eval "ac_cv_func_$ac_func=yes"
16952 else
16953 echo "configure: failed program was:" >&5
16954 cat conftest.$ac_ext >&5
16955 rm -rf conftest*
16956 eval "ac_cv_func_$ac_func=no"
16958 rm -f conftest*
16961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16962 echo "$ac_t""yes" 1>&6
16963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16964 cat >> confdefs.h <<EOF
16965 #define $ac_tr_func 1
16968 else
16969 echo "$ac_t""no" 1>&6
16971 done
16973 else
16975 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16976 echo "configure:16977: checking for _copysignl declaration" >&5
16977 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16978 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16979 echo $ac_n "(cached) $ac_c" 1>&6
16980 else
16983 ac_ext=C
16984 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16985 ac_cpp='$CXXCPP $CPPFLAGS'
16986 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16987 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16988 cross_compiling=$ac_cv_prog_cxx_cross
16990 cat > conftest.$ac_ext <<EOF
16991 #line 16992 "configure"
16992 #include "confdefs.h"
16993 #include <math.h>
16994 int main() {
16995 _copysignl(0, 0);
16996 ; return 0; }
16998 if { (eval echo configure:16999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16999 rm -rf conftest*
17000 glibcpp_cv_func__copysignl_use=yes
17001 else
17002 echo "configure: failed program was:" >&5
17003 cat conftest.$ac_ext >&5
17004 rm -rf conftest*
17005 glibcpp_cv_func__copysignl_use=no
17007 rm -f conftest*
17008 ac_ext=c
17009 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17010 ac_cpp='$CPP $CPPFLAGS'
17011 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17012 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17013 cross_compiling=$ac_cv_prog_cc_cross
17019 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
17021 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
17022 for ac_func in _copysignl
17024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17025 echo "configure:17026: checking for $ac_func" >&5
17026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17027 echo $ac_n "(cached) $ac_c" 1>&6
17028 else
17029 cat > conftest.$ac_ext <<EOF
17030 #line 17031 "configure"
17031 #include "confdefs.h"
17032 /* System header to define __stub macros and hopefully few prototypes,
17033 which can conflict with char $ac_func(); below. */
17034 #include <assert.h>
17035 /* Override any gcc2 internal prototype to avoid an error. */
17036 /* We use char because int might match the return type of a gcc2
17037 builtin and then its argument prototype would still apply. */
17038 char $ac_func();
17040 int main() {
17042 /* The GNU C library defines this for functions which it implements
17043 to always fail with ENOSYS. Some functions are actually named
17044 something starting with __ and the normal name is an alias. */
17045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17046 choke me
17047 #else
17048 $ac_func();
17049 #endif
17051 ; return 0; }
17053 if { (eval echo configure:17054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17054 rm -rf conftest*
17055 eval "ac_cv_func_$ac_func=yes"
17056 else
17057 echo "configure: failed program was:" >&5
17058 cat conftest.$ac_ext >&5
17059 rm -rf conftest*
17060 eval "ac_cv_func_$ac_func=no"
17062 rm -f conftest*
17065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17066 echo "$ac_t""yes" 1>&6
17067 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17068 cat >> confdefs.h <<EOF
17069 #define $ac_tr_func 1
17072 else
17073 echo "$ac_t""no" 1>&6
17075 done
17082 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
17083 echo "configure:17084: checking for atan2l declaration" >&5
17084 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
17085 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
17086 echo $ac_n "(cached) $ac_c" 1>&6
17087 else
17090 ac_ext=C
17091 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17092 ac_cpp='$CXXCPP $CPPFLAGS'
17093 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17094 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17095 cross_compiling=$ac_cv_prog_cxx_cross
17097 cat > conftest.$ac_ext <<EOF
17098 #line 17099 "configure"
17099 #include "confdefs.h"
17100 #include <math.h>
17101 int main() {
17102 atan2l(0, 0);
17103 ; return 0; }
17105 if { (eval echo configure:17106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17106 rm -rf conftest*
17107 glibcpp_cv_func_atan2l_use=yes
17108 else
17109 echo "configure: failed program was:" >&5
17110 cat conftest.$ac_ext >&5
17111 rm -rf conftest*
17112 glibcpp_cv_func_atan2l_use=no
17114 rm -f conftest*
17115 ac_ext=c
17116 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17117 ac_cpp='$CPP $CPPFLAGS'
17118 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17119 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17120 cross_compiling=$ac_cv_prog_cc_cross
17126 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
17128 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
17129 for ac_func in atan2l
17131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17132 echo "configure:17133: checking for $ac_func" >&5
17133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17134 echo $ac_n "(cached) $ac_c" 1>&6
17135 else
17136 cat > conftest.$ac_ext <<EOF
17137 #line 17138 "configure"
17138 #include "confdefs.h"
17139 /* System header to define __stub macros and hopefully few prototypes,
17140 which can conflict with char $ac_func(); below. */
17141 #include <assert.h>
17142 /* Override any gcc2 internal prototype to avoid an error. */
17143 /* We use char because int might match the return type of a gcc2
17144 builtin and then its argument prototype would still apply. */
17145 char $ac_func();
17147 int main() {
17149 /* The GNU C library defines this for functions which it implements
17150 to always fail with ENOSYS. Some functions are actually named
17151 something starting with __ and the normal name is an alias. */
17152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17153 choke me
17154 #else
17155 $ac_func();
17156 #endif
17158 ; return 0; }
17160 if { (eval echo configure:17161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17161 rm -rf conftest*
17162 eval "ac_cv_func_$ac_func=yes"
17163 else
17164 echo "configure: failed program was:" >&5
17165 cat conftest.$ac_ext >&5
17166 rm -rf conftest*
17167 eval "ac_cv_func_$ac_func=no"
17169 rm -f conftest*
17172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17173 echo "$ac_t""yes" 1>&6
17174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17175 cat >> confdefs.h <<EOF
17176 #define $ac_tr_func 1
17179 else
17180 echo "$ac_t""no" 1>&6
17182 done
17184 else
17186 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17187 echo "configure:17188: checking for _atan2l declaration" >&5
17188 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17189 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17190 echo $ac_n "(cached) $ac_c" 1>&6
17191 else
17194 ac_ext=C
17195 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17196 ac_cpp='$CXXCPP $CPPFLAGS'
17197 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17198 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17199 cross_compiling=$ac_cv_prog_cxx_cross
17201 cat > conftest.$ac_ext <<EOF
17202 #line 17203 "configure"
17203 #include "confdefs.h"
17204 #include <math.h>
17205 int main() {
17206 _atan2l(0, 0);
17207 ; return 0; }
17209 if { (eval echo configure:17210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17210 rm -rf conftest*
17211 glibcpp_cv_func__atan2l_use=yes
17212 else
17213 echo "configure: failed program was:" >&5
17214 cat conftest.$ac_ext >&5
17215 rm -rf conftest*
17216 glibcpp_cv_func__atan2l_use=no
17218 rm -f conftest*
17219 ac_ext=c
17220 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17221 ac_cpp='$CPP $CPPFLAGS'
17222 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17223 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17224 cross_compiling=$ac_cv_prog_cc_cross
17230 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17232 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17233 for ac_func in _atan2l
17235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17236 echo "configure:17237: checking for $ac_func" >&5
17237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17238 echo $ac_n "(cached) $ac_c" 1>&6
17239 else
17240 cat > conftest.$ac_ext <<EOF
17241 #line 17242 "configure"
17242 #include "confdefs.h"
17243 /* System header to define __stub macros and hopefully few prototypes,
17244 which can conflict with char $ac_func(); below. */
17245 #include <assert.h>
17246 /* Override any gcc2 internal prototype to avoid an error. */
17247 /* We use char because int might match the return type of a gcc2
17248 builtin and then its argument prototype would still apply. */
17249 char $ac_func();
17251 int main() {
17253 /* The GNU C library defines this for functions which it implements
17254 to always fail with ENOSYS. Some functions are actually named
17255 something starting with __ and the normal name is an alias. */
17256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17257 choke me
17258 #else
17259 $ac_func();
17260 #endif
17262 ; return 0; }
17264 if { (eval echo configure:17265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17265 rm -rf conftest*
17266 eval "ac_cv_func_$ac_func=yes"
17267 else
17268 echo "configure: failed program was:" >&5
17269 cat conftest.$ac_ext >&5
17270 rm -rf conftest*
17271 eval "ac_cv_func_$ac_func=no"
17273 rm -f conftest*
17276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17277 echo "$ac_t""yes" 1>&6
17278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17279 cat >> confdefs.h <<EOF
17280 #define $ac_tr_func 1
17283 else
17284 echo "$ac_t""no" 1>&6
17286 done
17293 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17294 echo "configure:17295: checking for expl declaration" >&5
17295 if test x${glibcpp_cv_func_expl_use+set} != xset; then
17296 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17297 echo $ac_n "(cached) $ac_c" 1>&6
17298 else
17301 ac_ext=C
17302 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17303 ac_cpp='$CXXCPP $CPPFLAGS'
17304 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17305 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17306 cross_compiling=$ac_cv_prog_cxx_cross
17308 cat > conftest.$ac_ext <<EOF
17309 #line 17310 "configure"
17310 #include "confdefs.h"
17311 #include <math.h>
17312 #ifdef HAVE_IEEEFP_H
17313 #include <ieeefp.h>
17314 #endif
17316 int main() {
17317 expl(0);
17318 ; return 0; }
17320 if { (eval echo configure:17321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17321 rm -rf conftest*
17322 glibcpp_cv_func_expl_use=yes
17323 else
17324 echo "configure: failed program was:" >&5
17325 cat conftest.$ac_ext >&5
17326 rm -rf conftest*
17327 glibcpp_cv_func_expl_use=no
17329 rm -f conftest*
17330 ac_ext=c
17331 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17332 ac_cpp='$CPP $CPPFLAGS'
17333 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17334 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17335 cross_compiling=$ac_cv_prog_cc_cross
17341 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17343 if test x$glibcpp_cv_func_expl_use = x"yes"; then
17344 for ac_func in expl
17346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17347 echo "configure:17348: checking for $ac_func" >&5
17348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17349 echo $ac_n "(cached) $ac_c" 1>&6
17350 else
17351 cat > conftest.$ac_ext <<EOF
17352 #line 17353 "configure"
17353 #include "confdefs.h"
17354 /* System header to define __stub macros and hopefully few prototypes,
17355 which can conflict with char $ac_func(); below. */
17356 #include <assert.h>
17357 /* Override any gcc2 internal prototype to avoid an error. */
17358 /* We use char because int might match the return type of a gcc2
17359 builtin and then its argument prototype would still apply. */
17360 char $ac_func();
17362 int main() {
17364 /* The GNU C library defines this for functions which it implements
17365 to always fail with ENOSYS. Some functions are actually named
17366 something starting with __ and the normal name is an alias. */
17367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17368 choke me
17369 #else
17370 $ac_func();
17371 #endif
17373 ; return 0; }
17375 if { (eval echo configure:17376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17376 rm -rf conftest*
17377 eval "ac_cv_func_$ac_func=yes"
17378 else
17379 echo "configure: failed program was:" >&5
17380 cat conftest.$ac_ext >&5
17381 rm -rf conftest*
17382 eval "ac_cv_func_$ac_func=no"
17384 rm -f conftest*
17387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17388 echo "$ac_t""yes" 1>&6
17389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17390 cat >> confdefs.h <<EOF
17391 #define $ac_tr_func 1
17394 else
17395 echo "$ac_t""no" 1>&6
17397 done
17399 else
17401 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17402 echo "configure:17403: checking for _expl declaration" >&5
17403 if test x${glibcpp_cv_func__expl_use+set} != xset; then
17404 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17405 echo $ac_n "(cached) $ac_c" 1>&6
17406 else
17409 ac_ext=C
17410 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17411 ac_cpp='$CXXCPP $CPPFLAGS'
17412 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17413 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17414 cross_compiling=$ac_cv_prog_cxx_cross
17416 cat > conftest.$ac_ext <<EOF
17417 #line 17418 "configure"
17418 #include "confdefs.h"
17419 #include <math.h>
17420 #ifdef HAVE_IEEEFP_H
17421 #include <ieeefp.h>
17422 #endif
17424 int main() {
17425 _expl(0);
17426 ; return 0; }
17428 if { (eval echo configure:17429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17429 rm -rf conftest*
17430 glibcpp_cv_func__expl_use=yes
17431 else
17432 echo "configure: failed program was:" >&5
17433 cat conftest.$ac_ext >&5
17434 rm -rf conftest*
17435 glibcpp_cv_func__expl_use=no
17437 rm -f conftest*
17438 ac_ext=c
17439 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17440 ac_cpp='$CPP $CPPFLAGS'
17441 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17442 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17443 cross_compiling=$ac_cv_prog_cc_cross
17449 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17451 if test x$glibcpp_cv_func__expl_use = x"yes"; then
17452 for ac_func in _expl
17454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17455 echo "configure:17456: checking for $ac_func" >&5
17456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17457 echo $ac_n "(cached) $ac_c" 1>&6
17458 else
17459 cat > conftest.$ac_ext <<EOF
17460 #line 17461 "configure"
17461 #include "confdefs.h"
17462 /* System header to define __stub macros and hopefully few prototypes,
17463 which can conflict with char $ac_func(); below. */
17464 #include <assert.h>
17465 /* Override any gcc2 internal prototype to avoid an error. */
17466 /* We use char because int might match the return type of a gcc2
17467 builtin and then its argument prototype would still apply. */
17468 char $ac_func();
17470 int main() {
17472 /* The GNU C library defines this for functions which it implements
17473 to always fail with ENOSYS. Some functions are actually named
17474 something starting with __ and the normal name is an alias. */
17475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17476 choke me
17477 #else
17478 $ac_func();
17479 #endif
17481 ; return 0; }
17483 if { (eval echo configure:17484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17484 rm -rf conftest*
17485 eval "ac_cv_func_$ac_func=yes"
17486 else
17487 echo "configure: failed program was:" >&5
17488 cat conftest.$ac_ext >&5
17489 rm -rf conftest*
17490 eval "ac_cv_func_$ac_func=no"
17492 rm -f conftest*
17495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17496 echo "$ac_t""yes" 1>&6
17497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17498 cat >> confdefs.h <<EOF
17499 #define $ac_tr_func 1
17502 else
17503 echo "$ac_t""no" 1>&6
17505 done
17512 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17513 echo "configure:17514: checking for fabsl declaration" >&5
17514 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17515 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17516 echo $ac_n "(cached) $ac_c" 1>&6
17517 else
17520 ac_ext=C
17521 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17522 ac_cpp='$CXXCPP $CPPFLAGS'
17523 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17524 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17525 cross_compiling=$ac_cv_prog_cxx_cross
17527 cat > conftest.$ac_ext <<EOF
17528 #line 17529 "configure"
17529 #include "confdefs.h"
17530 #include <math.h>
17531 #ifdef HAVE_IEEEFP_H
17532 #include <ieeefp.h>
17533 #endif
17535 int main() {
17536 fabsl(0);
17537 ; return 0; }
17539 if { (eval echo configure:17540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17540 rm -rf conftest*
17541 glibcpp_cv_func_fabsl_use=yes
17542 else
17543 echo "configure: failed program was:" >&5
17544 cat conftest.$ac_ext >&5
17545 rm -rf conftest*
17546 glibcpp_cv_func_fabsl_use=no
17548 rm -f conftest*
17549 ac_ext=c
17550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17551 ac_cpp='$CPP $CPPFLAGS'
17552 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17553 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17554 cross_compiling=$ac_cv_prog_cc_cross
17560 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17562 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17563 for ac_func in fabsl
17565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17566 echo "configure:17567: checking for $ac_func" >&5
17567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17568 echo $ac_n "(cached) $ac_c" 1>&6
17569 else
17570 cat > conftest.$ac_ext <<EOF
17571 #line 17572 "configure"
17572 #include "confdefs.h"
17573 /* System header to define __stub macros and hopefully few prototypes,
17574 which can conflict with char $ac_func(); below. */
17575 #include <assert.h>
17576 /* Override any gcc2 internal prototype to avoid an error. */
17577 /* We use char because int might match the return type of a gcc2
17578 builtin and then its argument prototype would still apply. */
17579 char $ac_func();
17581 int main() {
17583 /* The GNU C library defines this for functions which it implements
17584 to always fail with ENOSYS. Some functions are actually named
17585 something starting with __ and the normal name is an alias. */
17586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17587 choke me
17588 #else
17589 $ac_func();
17590 #endif
17592 ; return 0; }
17594 if { (eval echo configure:17595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17595 rm -rf conftest*
17596 eval "ac_cv_func_$ac_func=yes"
17597 else
17598 echo "configure: failed program was:" >&5
17599 cat conftest.$ac_ext >&5
17600 rm -rf conftest*
17601 eval "ac_cv_func_$ac_func=no"
17603 rm -f conftest*
17606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17607 echo "$ac_t""yes" 1>&6
17608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17609 cat >> confdefs.h <<EOF
17610 #define $ac_tr_func 1
17613 else
17614 echo "$ac_t""no" 1>&6
17616 done
17618 else
17620 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17621 echo "configure:17622: checking for _fabsl declaration" >&5
17622 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17623 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17624 echo $ac_n "(cached) $ac_c" 1>&6
17625 else
17628 ac_ext=C
17629 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17630 ac_cpp='$CXXCPP $CPPFLAGS'
17631 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17632 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17633 cross_compiling=$ac_cv_prog_cxx_cross
17635 cat > conftest.$ac_ext <<EOF
17636 #line 17637 "configure"
17637 #include "confdefs.h"
17638 #include <math.h>
17639 #ifdef HAVE_IEEEFP_H
17640 #include <ieeefp.h>
17641 #endif
17643 int main() {
17644 _fabsl(0);
17645 ; return 0; }
17647 if { (eval echo configure:17648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17648 rm -rf conftest*
17649 glibcpp_cv_func__fabsl_use=yes
17650 else
17651 echo "configure: failed program was:" >&5
17652 cat conftest.$ac_ext >&5
17653 rm -rf conftest*
17654 glibcpp_cv_func__fabsl_use=no
17656 rm -f conftest*
17657 ac_ext=c
17658 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17659 ac_cpp='$CPP $CPPFLAGS'
17660 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17661 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17662 cross_compiling=$ac_cv_prog_cc_cross
17668 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17670 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17671 for ac_func in _fabsl
17673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17674 echo "configure:17675: checking for $ac_func" >&5
17675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17676 echo $ac_n "(cached) $ac_c" 1>&6
17677 else
17678 cat > conftest.$ac_ext <<EOF
17679 #line 17680 "configure"
17680 #include "confdefs.h"
17681 /* System header to define __stub macros and hopefully few prototypes,
17682 which can conflict with char $ac_func(); below. */
17683 #include <assert.h>
17684 /* Override any gcc2 internal prototype to avoid an error. */
17685 /* We use char because int might match the return type of a gcc2
17686 builtin and then its argument prototype would still apply. */
17687 char $ac_func();
17689 int main() {
17691 /* The GNU C library defines this for functions which it implements
17692 to always fail with ENOSYS. Some functions are actually named
17693 something starting with __ and the normal name is an alias. */
17694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17695 choke me
17696 #else
17697 $ac_func();
17698 #endif
17700 ; return 0; }
17702 if { (eval echo configure:17703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17703 rm -rf conftest*
17704 eval "ac_cv_func_$ac_func=yes"
17705 else
17706 echo "configure: failed program was:" >&5
17707 cat conftest.$ac_ext >&5
17708 rm -rf conftest*
17709 eval "ac_cv_func_$ac_func=no"
17711 rm -f conftest*
17714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17715 echo "$ac_t""yes" 1>&6
17716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17717 cat >> confdefs.h <<EOF
17718 #define $ac_tr_func 1
17721 else
17722 echo "$ac_t""no" 1>&6
17724 done
17731 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17732 echo "configure:17733: checking for fmodl declaration" >&5
17733 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17734 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17735 echo $ac_n "(cached) $ac_c" 1>&6
17736 else
17739 ac_ext=C
17740 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17741 ac_cpp='$CXXCPP $CPPFLAGS'
17742 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17743 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17744 cross_compiling=$ac_cv_prog_cxx_cross
17746 cat > conftest.$ac_ext <<EOF
17747 #line 17748 "configure"
17748 #include "confdefs.h"
17749 #include <math.h>
17750 int main() {
17751 fmodl(0, 0);
17752 ; return 0; }
17754 if { (eval echo configure:17755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17755 rm -rf conftest*
17756 glibcpp_cv_func_fmodl_use=yes
17757 else
17758 echo "configure: failed program was:" >&5
17759 cat conftest.$ac_ext >&5
17760 rm -rf conftest*
17761 glibcpp_cv_func_fmodl_use=no
17763 rm -f conftest*
17764 ac_ext=c
17765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17766 ac_cpp='$CPP $CPPFLAGS'
17767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17769 cross_compiling=$ac_cv_prog_cc_cross
17775 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17777 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17778 for ac_func in fmodl
17780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17781 echo "configure:17782: checking for $ac_func" >&5
17782 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17783 echo $ac_n "(cached) $ac_c" 1>&6
17784 else
17785 cat > conftest.$ac_ext <<EOF
17786 #line 17787 "configure"
17787 #include "confdefs.h"
17788 /* System header to define __stub macros and hopefully few prototypes,
17789 which can conflict with char $ac_func(); below. */
17790 #include <assert.h>
17791 /* Override any gcc2 internal prototype to avoid an error. */
17792 /* We use char because int might match the return type of a gcc2
17793 builtin and then its argument prototype would still apply. */
17794 char $ac_func();
17796 int main() {
17798 /* The GNU C library defines this for functions which it implements
17799 to always fail with ENOSYS. Some functions are actually named
17800 something starting with __ and the normal name is an alias. */
17801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17802 choke me
17803 #else
17804 $ac_func();
17805 #endif
17807 ; return 0; }
17809 if { (eval echo configure:17810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17810 rm -rf conftest*
17811 eval "ac_cv_func_$ac_func=yes"
17812 else
17813 echo "configure: failed program was:" >&5
17814 cat conftest.$ac_ext >&5
17815 rm -rf conftest*
17816 eval "ac_cv_func_$ac_func=no"
17818 rm -f conftest*
17821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17822 echo "$ac_t""yes" 1>&6
17823 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17824 cat >> confdefs.h <<EOF
17825 #define $ac_tr_func 1
17828 else
17829 echo "$ac_t""no" 1>&6
17831 done
17833 else
17835 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17836 echo "configure:17837: checking for _fmodl declaration" >&5
17837 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17838 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17839 echo $ac_n "(cached) $ac_c" 1>&6
17840 else
17843 ac_ext=C
17844 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17845 ac_cpp='$CXXCPP $CPPFLAGS'
17846 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17847 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17848 cross_compiling=$ac_cv_prog_cxx_cross
17850 cat > conftest.$ac_ext <<EOF
17851 #line 17852 "configure"
17852 #include "confdefs.h"
17853 #include <math.h>
17854 int main() {
17855 _fmodl(0, 0);
17856 ; return 0; }
17858 if { (eval echo configure:17859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17859 rm -rf conftest*
17860 glibcpp_cv_func__fmodl_use=yes
17861 else
17862 echo "configure: failed program was:" >&5
17863 cat conftest.$ac_ext >&5
17864 rm -rf conftest*
17865 glibcpp_cv_func__fmodl_use=no
17867 rm -f conftest*
17868 ac_ext=c
17869 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17870 ac_cpp='$CPP $CPPFLAGS'
17871 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17872 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17873 cross_compiling=$ac_cv_prog_cc_cross
17879 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17881 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17882 for ac_func in _fmodl
17884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17885 echo "configure:17886: checking for $ac_func" >&5
17886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17887 echo $ac_n "(cached) $ac_c" 1>&6
17888 else
17889 cat > conftest.$ac_ext <<EOF
17890 #line 17891 "configure"
17891 #include "confdefs.h"
17892 /* System header to define __stub macros and hopefully few prototypes,
17893 which can conflict with char $ac_func(); below. */
17894 #include <assert.h>
17895 /* Override any gcc2 internal prototype to avoid an error. */
17896 /* We use char because int might match the return type of a gcc2
17897 builtin and then its argument prototype would still apply. */
17898 char $ac_func();
17900 int main() {
17902 /* The GNU C library defines this for functions which it implements
17903 to always fail with ENOSYS. Some functions are actually named
17904 something starting with __ and the normal name is an alias. */
17905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17906 choke me
17907 #else
17908 $ac_func();
17909 #endif
17911 ; return 0; }
17913 if { (eval echo configure:17914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17914 rm -rf conftest*
17915 eval "ac_cv_func_$ac_func=yes"
17916 else
17917 echo "configure: failed program was:" >&5
17918 cat conftest.$ac_ext >&5
17919 rm -rf conftest*
17920 eval "ac_cv_func_$ac_func=no"
17922 rm -f conftest*
17925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17926 echo "$ac_t""yes" 1>&6
17927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17928 cat >> confdefs.h <<EOF
17929 #define $ac_tr_func 1
17932 else
17933 echo "$ac_t""no" 1>&6
17935 done
17942 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17943 echo "configure:17944: checking for frexpl declaration" >&5
17944 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17945 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17946 echo $ac_n "(cached) $ac_c" 1>&6
17947 else
17950 ac_ext=C
17951 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17952 ac_cpp='$CXXCPP $CPPFLAGS'
17953 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17954 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17955 cross_compiling=$ac_cv_prog_cxx_cross
17957 cat > conftest.$ac_ext <<EOF
17958 #line 17959 "configure"
17959 #include "confdefs.h"
17960 #include <math.h>
17961 int main() {
17962 frexpl(0, 0);
17963 ; return 0; }
17965 if { (eval echo configure:17966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17966 rm -rf conftest*
17967 glibcpp_cv_func_frexpl_use=yes
17968 else
17969 echo "configure: failed program was:" >&5
17970 cat conftest.$ac_ext >&5
17971 rm -rf conftest*
17972 glibcpp_cv_func_frexpl_use=no
17974 rm -f conftest*
17975 ac_ext=c
17976 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17977 ac_cpp='$CPP $CPPFLAGS'
17978 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17979 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17980 cross_compiling=$ac_cv_prog_cc_cross
17986 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17988 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17989 for ac_func in frexpl
17991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17992 echo "configure:17993: checking for $ac_func" >&5
17993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17994 echo $ac_n "(cached) $ac_c" 1>&6
17995 else
17996 cat > conftest.$ac_ext <<EOF
17997 #line 17998 "configure"
17998 #include "confdefs.h"
17999 /* System header to define __stub macros and hopefully few prototypes,
18000 which can conflict with char $ac_func(); below. */
18001 #include <assert.h>
18002 /* Override any gcc2 internal prototype to avoid an error. */
18003 /* We use char because int might match the return type of a gcc2
18004 builtin and then its argument prototype would still apply. */
18005 char $ac_func();
18007 int main() {
18009 /* The GNU C library defines this for functions which it implements
18010 to always fail with ENOSYS. Some functions are actually named
18011 something starting with __ and the normal name is an alias. */
18012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18013 choke me
18014 #else
18015 $ac_func();
18016 #endif
18018 ; return 0; }
18020 if { (eval echo configure:18021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18021 rm -rf conftest*
18022 eval "ac_cv_func_$ac_func=yes"
18023 else
18024 echo "configure: failed program was:" >&5
18025 cat conftest.$ac_ext >&5
18026 rm -rf conftest*
18027 eval "ac_cv_func_$ac_func=no"
18029 rm -f conftest*
18032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18033 echo "$ac_t""yes" 1>&6
18034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18035 cat >> confdefs.h <<EOF
18036 #define $ac_tr_func 1
18039 else
18040 echo "$ac_t""no" 1>&6
18042 done
18044 else
18046 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
18047 echo "configure:18048: checking for _frexpl declaration" >&5
18048 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
18049 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
18050 echo $ac_n "(cached) $ac_c" 1>&6
18051 else
18054 ac_ext=C
18055 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18056 ac_cpp='$CXXCPP $CPPFLAGS'
18057 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18058 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18059 cross_compiling=$ac_cv_prog_cxx_cross
18061 cat > conftest.$ac_ext <<EOF
18062 #line 18063 "configure"
18063 #include "confdefs.h"
18064 #include <math.h>
18065 int main() {
18066 _frexpl(0, 0);
18067 ; return 0; }
18069 if { (eval echo configure:18070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18070 rm -rf conftest*
18071 glibcpp_cv_func__frexpl_use=yes
18072 else
18073 echo "configure: failed program was:" >&5
18074 cat conftest.$ac_ext >&5
18075 rm -rf conftest*
18076 glibcpp_cv_func__frexpl_use=no
18078 rm -f conftest*
18079 ac_ext=c
18080 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18081 ac_cpp='$CPP $CPPFLAGS'
18082 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18083 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18084 cross_compiling=$ac_cv_prog_cc_cross
18090 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
18092 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
18093 for ac_func in _frexpl
18095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18096 echo "configure:18097: checking for $ac_func" >&5
18097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18098 echo $ac_n "(cached) $ac_c" 1>&6
18099 else
18100 cat > conftest.$ac_ext <<EOF
18101 #line 18102 "configure"
18102 #include "confdefs.h"
18103 /* System header to define __stub macros and hopefully few prototypes,
18104 which can conflict with char $ac_func(); below. */
18105 #include <assert.h>
18106 /* Override any gcc2 internal prototype to avoid an error. */
18107 /* We use char because int might match the return type of a gcc2
18108 builtin and then its argument prototype would still apply. */
18109 char $ac_func();
18111 int main() {
18113 /* The GNU C library defines this for functions which it implements
18114 to always fail with ENOSYS. Some functions are actually named
18115 something starting with __ and the normal name is an alias. */
18116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18117 choke me
18118 #else
18119 $ac_func();
18120 #endif
18122 ; return 0; }
18124 if { (eval echo configure:18125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18125 rm -rf conftest*
18126 eval "ac_cv_func_$ac_func=yes"
18127 else
18128 echo "configure: failed program was:" >&5
18129 cat conftest.$ac_ext >&5
18130 rm -rf conftest*
18131 eval "ac_cv_func_$ac_func=no"
18133 rm -f conftest*
18136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18137 echo "$ac_t""yes" 1>&6
18138 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18139 cat >> confdefs.h <<EOF
18140 #define $ac_tr_func 1
18143 else
18144 echo "$ac_t""no" 1>&6
18146 done
18153 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18154 echo "configure:18155: checking for hypotl declaration" >&5
18155 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18156 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18157 echo $ac_n "(cached) $ac_c" 1>&6
18158 else
18161 ac_ext=C
18162 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18163 ac_cpp='$CXXCPP $CPPFLAGS'
18164 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18165 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18166 cross_compiling=$ac_cv_prog_cxx_cross
18168 cat > conftest.$ac_ext <<EOF
18169 #line 18170 "configure"
18170 #include "confdefs.h"
18171 #include <math.h>
18172 int main() {
18173 hypotl(0, 0);
18174 ; return 0; }
18176 if { (eval echo configure:18177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18177 rm -rf conftest*
18178 glibcpp_cv_func_hypotl_use=yes
18179 else
18180 echo "configure: failed program was:" >&5
18181 cat conftest.$ac_ext >&5
18182 rm -rf conftest*
18183 glibcpp_cv_func_hypotl_use=no
18185 rm -f conftest*
18186 ac_ext=c
18187 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18188 ac_cpp='$CPP $CPPFLAGS'
18189 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18190 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18191 cross_compiling=$ac_cv_prog_cc_cross
18197 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18199 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18200 for ac_func in hypotl
18202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18203 echo "configure:18204: checking for $ac_func" >&5
18204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18205 echo $ac_n "(cached) $ac_c" 1>&6
18206 else
18207 cat > conftest.$ac_ext <<EOF
18208 #line 18209 "configure"
18209 #include "confdefs.h"
18210 /* System header to define __stub macros and hopefully few prototypes,
18211 which can conflict with char $ac_func(); below. */
18212 #include <assert.h>
18213 /* Override any gcc2 internal prototype to avoid an error. */
18214 /* We use char because int might match the return type of a gcc2
18215 builtin and then its argument prototype would still apply. */
18216 char $ac_func();
18218 int main() {
18220 /* The GNU C library defines this for functions which it implements
18221 to always fail with ENOSYS. Some functions are actually named
18222 something starting with __ and the normal name is an alias. */
18223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18224 choke me
18225 #else
18226 $ac_func();
18227 #endif
18229 ; return 0; }
18231 if { (eval echo configure:18232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18232 rm -rf conftest*
18233 eval "ac_cv_func_$ac_func=yes"
18234 else
18235 echo "configure: failed program was:" >&5
18236 cat conftest.$ac_ext >&5
18237 rm -rf conftest*
18238 eval "ac_cv_func_$ac_func=no"
18240 rm -f conftest*
18243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18244 echo "$ac_t""yes" 1>&6
18245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18246 cat >> confdefs.h <<EOF
18247 #define $ac_tr_func 1
18250 else
18251 echo "$ac_t""no" 1>&6
18253 done
18255 else
18257 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18258 echo "configure:18259: checking for _hypotl declaration" >&5
18259 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18260 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18261 echo $ac_n "(cached) $ac_c" 1>&6
18262 else
18265 ac_ext=C
18266 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18267 ac_cpp='$CXXCPP $CPPFLAGS'
18268 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18269 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18270 cross_compiling=$ac_cv_prog_cxx_cross
18272 cat > conftest.$ac_ext <<EOF
18273 #line 18274 "configure"
18274 #include "confdefs.h"
18275 #include <math.h>
18276 int main() {
18277 _hypotl(0, 0);
18278 ; return 0; }
18280 if { (eval echo configure:18281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18281 rm -rf conftest*
18282 glibcpp_cv_func__hypotl_use=yes
18283 else
18284 echo "configure: failed program was:" >&5
18285 cat conftest.$ac_ext >&5
18286 rm -rf conftest*
18287 glibcpp_cv_func__hypotl_use=no
18289 rm -f conftest*
18290 ac_ext=c
18291 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18292 ac_cpp='$CPP $CPPFLAGS'
18293 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18294 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18295 cross_compiling=$ac_cv_prog_cc_cross
18301 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18303 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18304 for ac_func in _hypotl
18306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18307 echo "configure:18308: checking for $ac_func" >&5
18308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18309 echo $ac_n "(cached) $ac_c" 1>&6
18310 else
18311 cat > conftest.$ac_ext <<EOF
18312 #line 18313 "configure"
18313 #include "confdefs.h"
18314 /* System header to define __stub macros and hopefully few prototypes,
18315 which can conflict with char $ac_func(); below. */
18316 #include <assert.h>
18317 /* Override any gcc2 internal prototype to avoid an error. */
18318 /* We use char because int might match the return type of a gcc2
18319 builtin and then its argument prototype would still apply. */
18320 char $ac_func();
18322 int main() {
18324 /* The GNU C library defines this for functions which it implements
18325 to always fail with ENOSYS. Some functions are actually named
18326 something starting with __ and the normal name is an alias. */
18327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18328 choke me
18329 #else
18330 $ac_func();
18331 #endif
18333 ; return 0; }
18335 if { (eval echo configure:18336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18336 rm -rf conftest*
18337 eval "ac_cv_func_$ac_func=yes"
18338 else
18339 echo "configure: failed program was:" >&5
18340 cat conftest.$ac_ext >&5
18341 rm -rf conftest*
18342 eval "ac_cv_func_$ac_func=no"
18344 rm -f conftest*
18347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18348 echo "$ac_t""yes" 1>&6
18349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18350 cat >> confdefs.h <<EOF
18351 #define $ac_tr_func 1
18354 else
18355 echo "$ac_t""no" 1>&6
18357 done
18364 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18365 echo "configure:18366: checking for ldexpl declaration" >&5
18366 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18367 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18368 echo $ac_n "(cached) $ac_c" 1>&6
18369 else
18372 ac_ext=C
18373 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18374 ac_cpp='$CXXCPP $CPPFLAGS'
18375 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18376 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18377 cross_compiling=$ac_cv_prog_cxx_cross
18379 cat > conftest.$ac_ext <<EOF
18380 #line 18381 "configure"
18381 #include "confdefs.h"
18382 #include <math.h>
18383 int main() {
18384 ldexpl(0, 0);
18385 ; return 0; }
18387 if { (eval echo configure:18388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18388 rm -rf conftest*
18389 glibcpp_cv_func_ldexpl_use=yes
18390 else
18391 echo "configure: failed program was:" >&5
18392 cat conftest.$ac_ext >&5
18393 rm -rf conftest*
18394 glibcpp_cv_func_ldexpl_use=no
18396 rm -f conftest*
18397 ac_ext=c
18398 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18399 ac_cpp='$CPP $CPPFLAGS'
18400 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18401 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18402 cross_compiling=$ac_cv_prog_cc_cross
18408 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18410 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18411 for ac_func in ldexpl
18413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18414 echo "configure:18415: checking for $ac_func" >&5
18415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18416 echo $ac_n "(cached) $ac_c" 1>&6
18417 else
18418 cat > conftest.$ac_ext <<EOF
18419 #line 18420 "configure"
18420 #include "confdefs.h"
18421 /* System header to define __stub macros and hopefully few prototypes,
18422 which can conflict with char $ac_func(); below. */
18423 #include <assert.h>
18424 /* Override any gcc2 internal prototype to avoid an error. */
18425 /* We use char because int might match the return type of a gcc2
18426 builtin and then its argument prototype would still apply. */
18427 char $ac_func();
18429 int main() {
18431 /* The GNU C library defines this for functions which it implements
18432 to always fail with ENOSYS. Some functions are actually named
18433 something starting with __ and the normal name is an alias. */
18434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18435 choke me
18436 #else
18437 $ac_func();
18438 #endif
18440 ; return 0; }
18442 if { (eval echo configure:18443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18443 rm -rf conftest*
18444 eval "ac_cv_func_$ac_func=yes"
18445 else
18446 echo "configure: failed program was:" >&5
18447 cat conftest.$ac_ext >&5
18448 rm -rf conftest*
18449 eval "ac_cv_func_$ac_func=no"
18451 rm -f conftest*
18454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18455 echo "$ac_t""yes" 1>&6
18456 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18457 cat >> confdefs.h <<EOF
18458 #define $ac_tr_func 1
18461 else
18462 echo "$ac_t""no" 1>&6
18464 done
18466 else
18468 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18469 echo "configure:18470: checking for _ldexpl declaration" >&5
18470 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18471 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18472 echo $ac_n "(cached) $ac_c" 1>&6
18473 else
18476 ac_ext=C
18477 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18478 ac_cpp='$CXXCPP $CPPFLAGS'
18479 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18480 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18481 cross_compiling=$ac_cv_prog_cxx_cross
18483 cat > conftest.$ac_ext <<EOF
18484 #line 18485 "configure"
18485 #include "confdefs.h"
18486 #include <math.h>
18487 int main() {
18488 _ldexpl(0, 0);
18489 ; return 0; }
18491 if { (eval echo configure:18492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18492 rm -rf conftest*
18493 glibcpp_cv_func__ldexpl_use=yes
18494 else
18495 echo "configure: failed program was:" >&5
18496 cat conftest.$ac_ext >&5
18497 rm -rf conftest*
18498 glibcpp_cv_func__ldexpl_use=no
18500 rm -f conftest*
18501 ac_ext=c
18502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18503 ac_cpp='$CPP $CPPFLAGS'
18504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18506 cross_compiling=$ac_cv_prog_cc_cross
18512 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18514 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18515 for ac_func in _ldexpl
18517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18518 echo "configure:18519: checking for $ac_func" >&5
18519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18520 echo $ac_n "(cached) $ac_c" 1>&6
18521 else
18522 cat > conftest.$ac_ext <<EOF
18523 #line 18524 "configure"
18524 #include "confdefs.h"
18525 /* System header to define __stub macros and hopefully few prototypes,
18526 which can conflict with char $ac_func(); below. */
18527 #include <assert.h>
18528 /* Override any gcc2 internal prototype to avoid an error. */
18529 /* We use char because int might match the return type of a gcc2
18530 builtin and then its argument prototype would still apply. */
18531 char $ac_func();
18533 int main() {
18535 /* The GNU C library defines this for functions which it implements
18536 to always fail with ENOSYS. Some functions are actually named
18537 something starting with __ and the normal name is an alias. */
18538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18539 choke me
18540 #else
18541 $ac_func();
18542 #endif
18544 ; return 0; }
18546 if { (eval echo configure:18547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18547 rm -rf conftest*
18548 eval "ac_cv_func_$ac_func=yes"
18549 else
18550 echo "configure: failed program was:" >&5
18551 cat conftest.$ac_ext >&5
18552 rm -rf conftest*
18553 eval "ac_cv_func_$ac_func=no"
18555 rm -f conftest*
18558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18559 echo "$ac_t""yes" 1>&6
18560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18561 cat >> confdefs.h <<EOF
18562 #define $ac_tr_func 1
18565 else
18566 echo "$ac_t""no" 1>&6
18568 done
18575 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18576 echo "configure:18577: checking for logl declaration" >&5
18577 if test x${glibcpp_cv_func_logl_use+set} != xset; then
18578 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18579 echo $ac_n "(cached) $ac_c" 1>&6
18580 else
18583 ac_ext=C
18584 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18585 ac_cpp='$CXXCPP $CPPFLAGS'
18586 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18587 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18588 cross_compiling=$ac_cv_prog_cxx_cross
18590 cat > conftest.$ac_ext <<EOF
18591 #line 18592 "configure"
18592 #include "confdefs.h"
18593 #include <math.h>
18594 #ifdef HAVE_IEEEFP_H
18595 #include <ieeefp.h>
18596 #endif
18598 int main() {
18599 logl(0);
18600 ; return 0; }
18602 if { (eval echo configure:18603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18603 rm -rf conftest*
18604 glibcpp_cv_func_logl_use=yes
18605 else
18606 echo "configure: failed program was:" >&5
18607 cat conftest.$ac_ext >&5
18608 rm -rf conftest*
18609 glibcpp_cv_func_logl_use=no
18611 rm -f conftest*
18612 ac_ext=c
18613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18614 ac_cpp='$CPP $CPPFLAGS'
18615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18617 cross_compiling=$ac_cv_prog_cc_cross
18623 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18625 if test x$glibcpp_cv_func_logl_use = x"yes"; then
18626 for ac_func in logl
18628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18629 echo "configure:18630: checking for $ac_func" >&5
18630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18631 echo $ac_n "(cached) $ac_c" 1>&6
18632 else
18633 cat > conftest.$ac_ext <<EOF
18634 #line 18635 "configure"
18635 #include "confdefs.h"
18636 /* System header to define __stub macros and hopefully few prototypes,
18637 which can conflict with char $ac_func(); below. */
18638 #include <assert.h>
18639 /* Override any gcc2 internal prototype to avoid an error. */
18640 /* We use char because int might match the return type of a gcc2
18641 builtin and then its argument prototype would still apply. */
18642 char $ac_func();
18644 int main() {
18646 /* The GNU C library defines this for functions which it implements
18647 to always fail with ENOSYS. Some functions are actually named
18648 something starting with __ and the normal name is an alias. */
18649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18650 choke me
18651 #else
18652 $ac_func();
18653 #endif
18655 ; return 0; }
18657 if { (eval echo configure:18658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18658 rm -rf conftest*
18659 eval "ac_cv_func_$ac_func=yes"
18660 else
18661 echo "configure: failed program was:" >&5
18662 cat conftest.$ac_ext >&5
18663 rm -rf conftest*
18664 eval "ac_cv_func_$ac_func=no"
18666 rm -f conftest*
18669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18670 echo "$ac_t""yes" 1>&6
18671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18672 cat >> confdefs.h <<EOF
18673 #define $ac_tr_func 1
18676 else
18677 echo "$ac_t""no" 1>&6
18679 done
18681 else
18683 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18684 echo "configure:18685: checking for _logl declaration" >&5
18685 if test x${glibcpp_cv_func__logl_use+set} != xset; then
18686 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18687 echo $ac_n "(cached) $ac_c" 1>&6
18688 else
18691 ac_ext=C
18692 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18693 ac_cpp='$CXXCPP $CPPFLAGS'
18694 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18695 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18696 cross_compiling=$ac_cv_prog_cxx_cross
18698 cat > conftest.$ac_ext <<EOF
18699 #line 18700 "configure"
18700 #include "confdefs.h"
18701 #include <math.h>
18702 #ifdef HAVE_IEEEFP_H
18703 #include <ieeefp.h>
18704 #endif
18706 int main() {
18707 _logl(0);
18708 ; return 0; }
18710 if { (eval echo configure:18711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18711 rm -rf conftest*
18712 glibcpp_cv_func__logl_use=yes
18713 else
18714 echo "configure: failed program was:" >&5
18715 cat conftest.$ac_ext >&5
18716 rm -rf conftest*
18717 glibcpp_cv_func__logl_use=no
18719 rm -f conftest*
18720 ac_ext=c
18721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18722 ac_cpp='$CPP $CPPFLAGS'
18723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18724 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18725 cross_compiling=$ac_cv_prog_cc_cross
18731 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18733 if test x$glibcpp_cv_func__logl_use = x"yes"; then
18734 for ac_func in _logl
18736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18737 echo "configure:18738: checking for $ac_func" >&5
18738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18739 echo $ac_n "(cached) $ac_c" 1>&6
18740 else
18741 cat > conftest.$ac_ext <<EOF
18742 #line 18743 "configure"
18743 #include "confdefs.h"
18744 /* System header to define __stub macros and hopefully few prototypes,
18745 which can conflict with char $ac_func(); below. */
18746 #include <assert.h>
18747 /* Override any gcc2 internal prototype to avoid an error. */
18748 /* We use char because int might match the return type of a gcc2
18749 builtin and then its argument prototype would still apply. */
18750 char $ac_func();
18752 int main() {
18754 /* The GNU C library defines this for functions which it implements
18755 to always fail with ENOSYS. Some functions are actually named
18756 something starting with __ and the normal name is an alias. */
18757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18758 choke me
18759 #else
18760 $ac_func();
18761 #endif
18763 ; return 0; }
18765 if { (eval echo configure:18766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18766 rm -rf conftest*
18767 eval "ac_cv_func_$ac_func=yes"
18768 else
18769 echo "configure: failed program was:" >&5
18770 cat conftest.$ac_ext >&5
18771 rm -rf conftest*
18772 eval "ac_cv_func_$ac_func=no"
18774 rm -f conftest*
18777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18778 echo "$ac_t""yes" 1>&6
18779 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18780 cat >> confdefs.h <<EOF
18781 #define $ac_tr_func 1
18784 else
18785 echo "$ac_t""no" 1>&6
18787 done
18794 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18795 echo "configure:18796: checking for log10l declaration" >&5
18796 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18797 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18798 echo $ac_n "(cached) $ac_c" 1>&6
18799 else
18802 ac_ext=C
18803 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18804 ac_cpp='$CXXCPP $CPPFLAGS'
18805 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18806 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18807 cross_compiling=$ac_cv_prog_cxx_cross
18809 cat > conftest.$ac_ext <<EOF
18810 #line 18811 "configure"
18811 #include "confdefs.h"
18812 #include <math.h>
18813 #ifdef HAVE_IEEEFP_H
18814 #include <ieeefp.h>
18815 #endif
18817 int main() {
18818 log10l(0);
18819 ; return 0; }
18821 if { (eval echo configure:18822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18822 rm -rf conftest*
18823 glibcpp_cv_func_log10l_use=yes
18824 else
18825 echo "configure: failed program was:" >&5
18826 cat conftest.$ac_ext >&5
18827 rm -rf conftest*
18828 glibcpp_cv_func_log10l_use=no
18830 rm -f conftest*
18831 ac_ext=c
18832 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18833 ac_cpp='$CPP $CPPFLAGS'
18834 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18835 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18836 cross_compiling=$ac_cv_prog_cc_cross
18842 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18844 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18845 for ac_func in log10l
18847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18848 echo "configure:18849: checking for $ac_func" >&5
18849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18850 echo $ac_n "(cached) $ac_c" 1>&6
18851 else
18852 cat > conftest.$ac_ext <<EOF
18853 #line 18854 "configure"
18854 #include "confdefs.h"
18855 /* System header to define __stub macros and hopefully few prototypes,
18856 which can conflict with char $ac_func(); below. */
18857 #include <assert.h>
18858 /* Override any gcc2 internal prototype to avoid an error. */
18859 /* We use char because int might match the return type of a gcc2
18860 builtin and then its argument prototype would still apply. */
18861 char $ac_func();
18863 int main() {
18865 /* The GNU C library defines this for functions which it implements
18866 to always fail with ENOSYS. Some functions are actually named
18867 something starting with __ and the normal name is an alias. */
18868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18869 choke me
18870 #else
18871 $ac_func();
18872 #endif
18874 ; return 0; }
18876 if { (eval echo configure:18877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18877 rm -rf conftest*
18878 eval "ac_cv_func_$ac_func=yes"
18879 else
18880 echo "configure: failed program was:" >&5
18881 cat conftest.$ac_ext >&5
18882 rm -rf conftest*
18883 eval "ac_cv_func_$ac_func=no"
18885 rm -f conftest*
18888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18889 echo "$ac_t""yes" 1>&6
18890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18891 cat >> confdefs.h <<EOF
18892 #define $ac_tr_func 1
18895 else
18896 echo "$ac_t""no" 1>&6
18898 done
18900 else
18902 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18903 echo "configure:18904: checking for _log10l declaration" >&5
18904 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18905 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18906 echo $ac_n "(cached) $ac_c" 1>&6
18907 else
18910 ac_ext=C
18911 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18912 ac_cpp='$CXXCPP $CPPFLAGS'
18913 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18914 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18915 cross_compiling=$ac_cv_prog_cxx_cross
18917 cat > conftest.$ac_ext <<EOF
18918 #line 18919 "configure"
18919 #include "confdefs.h"
18920 #include <math.h>
18921 #ifdef HAVE_IEEEFP_H
18922 #include <ieeefp.h>
18923 #endif
18925 int main() {
18926 _log10l(0);
18927 ; return 0; }
18929 if { (eval echo configure:18930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18930 rm -rf conftest*
18931 glibcpp_cv_func__log10l_use=yes
18932 else
18933 echo "configure: failed program was:" >&5
18934 cat conftest.$ac_ext >&5
18935 rm -rf conftest*
18936 glibcpp_cv_func__log10l_use=no
18938 rm -f conftest*
18939 ac_ext=c
18940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18941 ac_cpp='$CPP $CPPFLAGS'
18942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18944 cross_compiling=$ac_cv_prog_cc_cross
18950 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18952 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18953 for ac_func in _log10l
18955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18956 echo "configure:18957: checking for $ac_func" >&5
18957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18958 echo $ac_n "(cached) $ac_c" 1>&6
18959 else
18960 cat > conftest.$ac_ext <<EOF
18961 #line 18962 "configure"
18962 #include "confdefs.h"
18963 /* System header to define __stub macros and hopefully few prototypes,
18964 which can conflict with char $ac_func(); below. */
18965 #include <assert.h>
18966 /* Override any gcc2 internal prototype to avoid an error. */
18967 /* We use char because int might match the return type of a gcc2
18968 builtin and then its argument prototype would still apply. */
18969 char $ac_func();
18971 int main() {
18973 /* The GNU C library defines this for functions which it implements
18974 to always fail with ENOSYS. Some functions are actually named
18975 something starting with __ and the normal name is an alias. */
18976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18977 choke me
18978 #else
18979 $ac_func();
18980 #endif
18982 ; return 0; }
18984 if { (eval echo configure:18985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18985 rm -rf conftest*
18986 eval "ac_cv_func_$ac_func=yes"
18987 else
18988 echo "configure: failed program was:" >&5
18989 cat conftest.$ac_ext >&5
18990 rm -rf conftest*
18991 eval "ac_cv_func_$ac_func=no"
18993 rm -f conftest*
18996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18997 echo "$ac_t""yes" 1>&6
18998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18999 cat >> confdefs.h <<EOF
19000 #define $ac_tr_func 1
19003 else
19004 echo "$ac_t""no" 1>&6
19006 done
19013 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
19014 echo "configure:19015: checking for modfl declaration" >&5
19015 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
19016 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
19017 echo $ac_n "(cached) $ac_c" 1>&6
19018 else
19021 ac_ext=C
19022 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19023 ac_cpp='$CXXCPP $CPPFLAGS'
19024 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19025 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19026 cross_compiling=$ac_cv_prog_cxx_cross
19028 cat > conftest.$ac_ext <<EOF
19029 #line 19030 "configure"
19030 #include "confdefs.h"
19031 #include <math.h>
19032 int main() {
19033 modfl(0, 0);
19034 ; return 0; }
19036 if { (eval echo configure:19037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19037 rm -rf conftest*
19038 glibcpp_cv_func_modfl_use=yes
19039 else
19040 echo "configure: failed program was:" >&5
19041 cat conftest.$ac_ext >&5
19042 rm -rf conftest*
19043 glibcpp_cv_func_modfl_use=no
19045 rm -f conftest*
19046 ac_ext=c
19047 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19048 ac_cpp='$CPP $CPPFLAGS'
19049 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19050 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19051 cross_compiling=$ac_cv_prog_cc_cross
19057 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
19059 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
19060 for ac_func in modfl
19062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19063 echo "configure:19064: checking for $ac_func" >&5
19064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19065 echo $ac_n "(cached) $ac_c" 1>&6
19066 else
19067 cat > conftest.$ac_ext <<EOF
19068 #line 19069 "configure"
19069 #include "confdefs.h"
19070 /* System header to define __stub macros and hopefully few prototypes,
19071 which can conflict with char $ac_func(); below. */
19072 #include <assert.h>
19073 /* Override any gcc2 internal prototype to avoid an error. */
19074 /* We use char because int might match the return type of a gcc2
19075 builtin and then its argument prototype would still apply. */
19076 char $ac_func();
19078 int main() {
19080 /* The GNU C library defines this for functions which it implements
19081 to always fail with ENOSYS. Some functions are actually named
19082 something starting with __ and the normal name is an alias. */
19083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19084 choke me
19085 #else
19086 $ac_func();
19087 #endif
19089 ; return 0; }
19091 if { (eval echo configure:19092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19092 rm -rf conftest*
19093 eval "ac_cv_func_$ac_func=yes"
19094 else
19095 echo "configure: failed program was:" >&5
19096 cat conftest.$ac_ext >&5
19097 rm -rf conftest*
19098 eval "ac_cv_func_$ac_func=no"
19100 rm -f conftest*
19103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19104 echo "$ac_t""yes" 1>&6
19105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19106 cat >> confdefs.h <<EOF
19107 #define $ac_tr_func 1
19110 else
19111 echo "$ac_t""no" 1>&6
19113 done
19115 else
19117 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
19118 echo "configure:19119: checking for _modfl declaration" >&5
19119 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
19120 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
19121 echo $ac_n "(cached) $ac_c" 1>&6
19122 else
19125 ac_ext=C
19126 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19127 ac_cpp='$CXXCPP $CPPFLAGS'
19128 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19129 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19130 cross_compiling=$ac_cv_prog_cxx_cross
19132 cat > conftest.$ac_ext <<EOF
19133 #line 19134 "configure"
19134 #include "confdefs.h"
19135 #include <math.h>
19136 int main() {
19137 _modfl(0, 0);
19138 ; return 0; }
19140 if { (eval echo configure:19141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19141 rm -rf conftest*
19142 glibcpp_cv_func__modfl_use=yes
19143 else
19144 echo "configure: failed program was:" >&5
19145 cat conftest.$ac_ext >&5
19146 rm -rf conftest*
19147 glibcpp_cv_func__modfl_use=no
19149 rm -f conftest*
19150 ac_ext=c
19151 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19152 ac_cpp='$CPP $CPPFLAGS'
19153 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19154 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19155 cross_compiling=$ac_cv_prog_cc_cross
19161 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19163 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19164 for ac_func in _modfl
19166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19167 echo "configure:19168: checking for $ac_func" >&5
19168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19169 echo $ac_n "(cached) $ac_c" 1>&6
19170 else
19171 cat > conftest.$ac_ext <<EOF
19172 #line 19173 "configure"
19173 #include "confdefs.h"
19174 /* System header to define __stub macros and hopefully few prototypes,
19175 which can conflict with char $ac_func(); below. */
19176 #include <assert.h>
19177 /* Override any gcc2 internal prototype to avoid an error. */
19178 /* We use char because int might match the return type of a gcc2
19179 builtin and then its argument prototype would still apply. */
19180 char $ac_func();
19182 int main() {
19184 /* The GNU C library defines this for functions which it implements
19185 to always fail with ENOSYS. Some functions are actually named
19186 something starting with __ and the normal name is an alias. */
19187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19188 choke me
19189 #else
19190 $ac_func();
19191 #endif
19193 ; return 0; }
19195 if { (eval echo configure:19196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19196 rm -rf conftest*
19197 eval "ac_cv_func_$ac_func=yes"
19198 else
19199 echo "configure: failed program was:" >&5
19200 cat conftest.$ac_ext >&5
19201 rm -rf conftest*
19202 eval "ac_cv_func_$ac_func=no"
19204 rm -f conftest*
19207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19208 echo "$ac_t""yes" 1>&6
19209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19210 cat >> confdefs.h <<EOF
19211 #define $ac_tr_func 1
19214 else
19215 echo "$ac_t""no" 1>&6
19217 done
19224 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19225 echo "configure:19226: checking for powl declaration" >&5
19226 if test x${glibcpp_cv_func_powl_use+set} != xset; then
19227 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19228 echo $ac_n "(cached) $ac_c" 1>&6
19229 else
19232 ac_ext=C
19233 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19234 ac_cpp='$CXXCPP $CPPFLAGS'
19235 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19236 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19237 cross_compiling=$ac_cv_prog_cxx_cross
19239 cat > conftest.$ac_ext <<EOF
19240 #line 19241 "configure"
19241 #include "confdefs.h"
19242 #include <math.h>
19243 int main() {
19244 powl(0, 0);
19245 ; return 0; }
19247 if { (eval echo configure:19248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19248 rm -rf conftest*
19249 glibcpp_cv_func_powl_use=yes
19250 else
19251 echo "configure: failed program was:" >&5
19252 cat conftest.$ac_ext >&5
19253 rm -rf conftest*
19254 glibcpp_cv_func_powl_use=no
19256 rm -f conftest*
19257 ac_ext=c
19258 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19259 ac_cpp='$CPP $CPPFLAGS'
19260 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19261 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19262 cross_compiling=$ac_cv_prog_cc_cross
19268 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19270 if test x$glibcpp_cv_func_powl_use = x"yes"; then
19271 for ac_func in powl
19273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19274 echo "configure:19275: checking for $ac_func" >&5
19275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19276 echo $ac_n "(cached) $ac_c" 1>&6
19277 else
19278 cat > conftest.$ac_ext <<EOF
19279 #line 19280 "configure"
19280 #include "confdefs.h"
19281 /* System header to define __stub macros and hopefully few prototypes,
19282 which can conflict with char $ac_func(); below. */
19283 #include <assert.h>
19284 /* Override any gcc2 internal prototype to avoid an error. */
19285 /* We use char because int might match the return type of a gcc2
19286 builtin and then its argument prototype would still apply. */
19287 char $ac_func();
19289 int main() {
19291 /* The GNU C library defines this for functions which it implements
19292 to always fail with ENOSYS. Some functions are actually named
19293 something starting with __ and the normal name is an alias. */
19294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19295 choke me
19296 #else
19297 $ac_func();
19298 #endif
19300 ; return 0; }
19302 if { (eval echo configure:19303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19303 rm -rf conftest*
19304 eval "ac_cv_func_$ac_func=yes"
19305 else
19306 echo "configure: failed program was:" >&5
19307 cat conftest.$ac_ext >&5
19308 rm -rf conftest*
19309 eval "ac_cv_func_$ac_func=no"
19311 rm -f conftest*
19314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19315 echo "$ac_t""yes" 1>&6
19316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19317 cat >> confdefs.h <<EOF
19318 #define $ac_tr_func 1
19321 else
19322 echo "$ac_t""no" 1>&6
19324 done
19326 else
19328 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19329 echo "configure:19330: checking for _powl declaration" >&5
19330 if test x${glibcpp_cv_func__powl_use+set} != xset; then
19331 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19332 echo $ac_n "(cached) $ac_c" 1>&6
19333 else
19336 ac_ext=C
19337 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19338 ac_cpp='$CXXCPP $CPPFLAGS'
19339 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19340 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19341 cross_compiling=$ac_cv_prog_cxx_cross
19343 cat > conftest.$ac_ext <<EOF
19344 #line 19345 "configure"
19345 #include "confdefs.h"
19346 #include <math.h>
19347 int main() {
19348 _powl(0, 0);
19349 ; return 0; }
19351 if { (eval echo configure:19352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19352 rm -rf conftest*
19353 glibcpp_cv_func__powl_use=yes
19354 else
19355 echo "configure: failed program was:" >&5
19356 cat conftest.$ac_ext >&5
19357 rm -rf conftest*
19358 glibcpp_cv_func__powl_use=no
19360 rm -f conftest*
19361 ac_ext=c
19362 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19363 ac_cpp='$CPP $CPPFLAGS'
19364 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19365 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19366 cross_compiling=$ac_cv_prog_cc_cross
19372 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19374 if test x$glibcpp_cv_func__powl_use = x"yes"; then
19375 for ac_func in _powl
19377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19378 echo "configure:19379: checking for $ac_func" >&5
19379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19380 echo $ac_n "(cached) $ac_c" 1>&6
19381 else
19382 cat > conftest.$ac_ext <<EOF
19383 #line 19384 "configure"
19384 #include "confdefs.h"
19385 /* System header to define __stub macros and hopefully few prototypes,
19386 which can conflict with char $ac_func(); below. */
19387 #include <assert.h>
19388 /* Override any gcc2 internal prototype to avoid an error. */
19389 /* We use char because int might match the return type of a gcc2
19390 builtin and then its argument prototype would still apply. */
19391 char $ac_func();
19393 int main() {
19395 /* The GNU C library defines this for functions which it implements
19396 to always fail with ENOSYS. Some functions are actually named
19397 something starting with __ and the normal name is an alias. */
19398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19399 choke me
19400 #else
19401 $ac_func();
19402 #endif
19404 ; return 0; }
19406 if { (eval echo configure:19407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19407 rm -rf conftest*
19408 eval "ac_cv_func_$ac_func=yes"
19409 else
19410 echo "configure: failed program was:" >&5
19411 cat conftest.$ac_ext >&5
19412 rm -rf conftest*
19413 eval "ac_cv_func_$ac_func=no"
19415 rm -f conftest*
19418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19419 echo "$ac_t""yes" 1>&6
19420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19421 cat >> confdefs.h <<EOF
19422 #define $ac_tr_func 1
19425 else
19426 echo "$ac_t""no" 1>&6
19428 done
19435 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19436 echo "configure:19437: checking for sqrtl declaration" >&5
19437 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19438 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19439 echo $ac_n "(cached) $ac_c" 1>&6
19440 else
19443 ac_ext=C
19444 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19445 ac_cpp='$CXXCPP $CPPFLAGS'
19446 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19447 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19448 cross_compiling=$ac_cv_prog_cxx_cross
19450 cat > conftest.$ac_ext <<EOF
19451 #line 19452 "configure"
19452 #include "confdefs.h"
19453 #include <math.h>
19454 #ifdef HAVE_IEEEFP_H
19455 #include <ieeefp.h>
19456 #endif
19458 int main() {
19459 sqrtl(0);
19460 ; return 0; }
19462 if { (eval echo configure:19463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19463 rm -rf conftest*
19464 glibcpp_cv_func_sqrtl_use=yes
19465 else
19466 echo "configure: failed program was:" >&5
19467 cat conftest.$ac_ext >&5
19468 rm -rf conftest*
19469 glibcpp_cv_func_sqrtl_use=no
19471 rm -f conftest*
19472 ac_ext=c
19473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19474 ac_cpp='$CPP $CPPFLAGS'
19475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19477 cross_compiling=$ac_cv_prog_cc_cross
19483 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19485 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19486 for ac_func in sqrtl
19488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19489 echo "configure:19490: checking for $ac_func" >&5
19490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19491 echo $ac_n "(cached) $ac_c" 1>&6
19492 else
19493 cat > conftest.$ac_ext <<EOF
19494 #line 19495 "configure"
19495 #include "confdefs.h"
19496 /* System header to define __stub macros and hopefully few prototypes,
19497 which can conflict with char $ac_func(); below. */
19498 #include <assert.h>
19499 /* Override any gcc2 internal prototype to avoid an error. */
19500 /* We use char because int might match the return type of a gcc2
19501 builtin and then its argument prototype would still apply. */
19502 char $ac_func();
19504 int main() {
19506 /* The GNU C library defines this for functions which it implements
19507 to always fail with ENOSYS. Some functions are actually named
19508 something starting with __ and the normal name is an alias. */
19509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19510 choke me
19511 #else
19512 $ac_func();
19513 #endif
19515 ; return 0; }
19517 if { (eval echo configure:19518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19518 rm -rf conftest*
19519 eval "ac_cv_func_$ac_func=yes"
19520 else
19521 echo "configure: failed program was:" >&5
19522 cat conftest.$ac_ext >&5
19523 rm -rf conftest*
19524 eval "ac_cv_func_$ac_func=no"
19526 rm -f conftest*
19529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19530 echo "$ac_t""yes" 1>&6
19531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19532 cat >> confdefs.h <<EOF
19533 #define $ac_tr_func 1
19536 else
19537 echo "$ac_t""no" 1>&6
19539 done
19541 else
19543 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19544 echo "configure:19545: checking for _sqrtl declaration" >&5
19545 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19546 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19547 echo $ac_n "(cached) $ac_c" 1>&6
19548 else
19551 ac_ext=C
19552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19553 ac_cpp='$CXXCPP $CPPFLAGS'
19554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19556 cross_compiling=$ac_cv_prog_cxx_cross
19558 cat > conftest.$ac_ext <<EOF
19559 #line 19560 "configure"
19560 #include "confdefs.h"
19561 #include <math.h>
19562 #ifdef HAVE_IEEEFP_H
19563 #include <ieeefp.h>
19564 #endif
19566 int main() {
19567 _sqrtl(0);
19568 ; return 0; }
19570 if { (eval echo configure:19571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19571 rm -rf conftest*
19572 glibcpp_cv_func__sqrtl_use=yes
19573 else
19574 echo "configure: failed program was:" >&5
19575 cat conftest.$ac_ext >&5
19576 rm -rf conftest*
19577 glibcpp_cv_func__sqrtl_use=no
19579 rm -f conftest*
19580 ac_ext=c
19581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19582 ac_cpp='$CPP $CPPFLAGS'
19583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19585 cross_compiling=$ac_cv_prog_cc_cross
19591 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19593 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19594 for ac_func in _sqrtl
19596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19597 echo "configure:19598: checking for $ac_func" >&5
19598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19599 echo $ac_n "(cached) $ac_c" 1>&6
19600 else
19601 cat > conftest.$ac_ext <<EOF
19602 #line 19603 "configure"
19603 #include "confdefs.h"
19604 /* System header to define __stub macros and hopefully few prototypes,
19605 which can conflict with char $ac_func(); below. */
19606 #include <assert.h>
19607 /* Override any gcc2 internal prototype to avoid an error. */
19608 /* We use char because int might match the return type of a gcc2
19609 builtin and then its argument prototype would still apply. */
19610 char $ac_func();
19612 int main() {
19614 /* The GNU C library defines this for functions which it implements
19615 to always fail with ENOSYS. Some functions are actually named
19616 something starting with __ and the normal name is an alias. */
19617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19618 choke me
19619 #else
19620 $ac_func();
19621 #endif
19623 ; return 0; }
19625 if { (eval echo configure:19626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19626 rm -rf conftest*
19627 eval "ac_cv_func_$ac_func=yes"
19628 else
19629 echo "configure: failed program was:" >&5
19630 cat conftest.$ac_ext >&5
19631 rm -rf conftest*
19632 eval "ac_cv_func_$ac_func=no"
19634 rm -f conftest*
19637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19638 echo "$ac_t""yes" 1>&6
19639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19640 cat >> confdefs.h <<EOF
19641 #define $ac_tr_func 1
19644 else
19645 echo "$ac_t""no" 1>&6
19647 done
19654 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19655 echo "configure:19656: checking for sincosl declaration" >&5
19656 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19657 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19658 echo $ac_n "(cached) $ac_c" 1>&6
19659 else
19662 ac_ext=C
19663 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19664 ac_cpp='$CXXCPP $CPPFLAGS'
19665 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19666 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19667 cross_compiling=$ac_cv_prog_cxx_cross
19669 cat > conftest.$ac_ext <<EOF
19670 #line 19671 "configure"
19671 #include "confdefs.h"
19672 #include <math.h>
19673 int main() {
19674 sincosl(0, 0, 0);
19675 ; return 0; }
19677 if { (eval echo configure:19678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19678 rm -rf conftest*
19679 glibcpp_cv_func_sincosl_use=yes
19680 else
19681 echo "configure: failed program was:" >&5
19682 cat conftest.$ac_ext >&5
19683 rm -rf conftest*
19684 glibcpp_cv_func_sincosl_use=no
19686 rm -f conftest*
19687 ac_ext=c
19688 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19689 ac_cpp='$CPP $CPPFLAGS'
19690 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19691 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19692 cross_compiling=$ac_cv_prog_cc_cross
19698 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19700 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19701 for ac_func in sincosl
19703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19704 echo "configure:19705: checking for $ac_func" >&5
19705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19706 echo $ac_n "(cached) $ac_c" 1>&6
19707 else
19708 cat > conftest.$ac_ext <<EOF
19709 #line 19710 "configure"
19710 #include "confdefs.h"
19711 /* System header to define __stub macros and hopefully few prototypes,
19712 which can conflict with char $ac_func(); below. */
19713 #include <assert.h>
19714 /* Override any gcc2 internal prototype to avoid an error. */
19715 /* We use char because int might match the return type of a gcc2
19716 builtin and then its argument prototype would still apply. */
19717 char $ac_func();
19719 int main() {
19721 /* The GNU C library defines this for functions which it implements
19722 to always fail with ENOSYS. Some functions are actually named
19723 something starting with __ and the normal name is an alias. */
19724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19725 choke me
19726 #else
19727 $ac_func();
19728 #endif
19730 ; return 0; }
19732 if { (eval echo configure:19733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19733 rm -rf conftest*
19734 eval "ac_cv_func_$ac_func=yes"
19735 else
19736 echo "configure: failed program was:" >&5
19737 cat conftest.$ac_ext >&5
19738 rm -rf conftest*
19739 eval "ac_cv_func_$ac_func=no"
19741 rm -f conftest*
19744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19745 echo "$ac_t""yes" 1>&6
19746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19747 cat >> confdefs.h <<EOF
19748 #define $ac_tr_func 1
19751 else
19752 echo "$ac_t""no" 1>&6
19754 done
19756 else
19758 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19759 echo "configure:19760: checking for _sincosl declaration" >&5
19760 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19761 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19762 echo $ac_n "(cached) $ac_c" 1>&6
19763 else
19766 ac_ext=C
19767 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19768 ac_cpp='$CXXCPP $CPPFLAGS'
19769 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19770 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19771 cross_compiling=$ac_cv_prog_cxx_cross
19773 cat > conftest.$ac_ext <<EOF
19774 #line 19775 "configure"
19775 #include "confdefs.h"
19776 #include <math.h>
19777 int main() {
19778 _sincosl(0, 0, 0);
19779 ; return 0; }
19781 if { (eval echo configure:19782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19782 rm -rf conftest*
19783 glibcpp_cv_func__sincosl_use=yes
19784 else
19785 echo "configure: failed program was:" >&5
19786 cat conftest.$ac_ext >&5
19787 rm -rf conftest*
19788 glibcpp_cv_func__sincosl_use=no
19790 rm -f conftest*
19791 ac_ext=c
19792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19793 ac_cpp='$CPP $CPPFLAGS'
19794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19796 cross_compiling=$ac_cv_prog_cc_cross
19802 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19804 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19805 for ac_func in _sincosl
19807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19808 echo "configure:19809: checking for $ac_func" >&5
19809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19810 echo $ac_n "(cached) $ac_c" 1>&6
19811 else
19812 cat > conftest.$ac_ext <<EOF
19813 #line 19814 "configure"
19814 #include "confdefs.h"
19815 /* System header to define __stub macros and hopefully few prototypes,
19816 which can conflict with char $ac_func(); below. */
19817 #include <assert.h>
19818 /* Override any gcc2 internal prototype to avoid an error. */
19819 /* We use char because int might match the return type of a gcc2
19820 builtin and then its argument prototype would still apply. */
19821 char $ac_func();
19823 int main() {
19825 /* The GNU C library defines this for functions which it implements
19826 to always fail with ENOSYS. Some functions are actually named
19827 something starting with __ and the normal name is an alias. */
19828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19829 choke me
19830 #else
19831 $ac_func();
19832 #endif
19834 ; return 0; }
19836 if { (eval echo configure:19837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19837 rm -rf conftest*
19838 eval "ac_cv_func_$ac_func=yes"
19839 else
19840 echo "configure: failed program was:" >&5
19841 cat conftest.$ac_ext >&5
19842 rm -rf conftest*
19843 eval "ac_cv_func_$ac_func=no"
19845 rm -f conftest*
19848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19849 echo "$ac_t""yes" 1>&6
19850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19851 cat >> confdefs.h <<EOF
19852 #define $ac_tr_func 1
19855 else
19856 echo "$ac_t""no" 1>&6
19858 done
19865 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19866 echo "configure:19867: checking for finitel declaration" >&5
19867 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19868 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19869 echo $ac_n "(cached) $ac_c" 1>&6
19870 else
19873 ac_ext=C
19874 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19875 ac_cpp='$CXXCPP $CPPFLAGS'
19876 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19877 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19878 cross_compiling=$ac_cv_prog_cxx_cross
19880 cat > conftest.$ac_ext <<EOF
19881 #line 19882 "configure"
19882 #include "confdefs.h"
19883 #include <math.h>
19884 #ifdef HAVE_IEEEFP_H
19885 #include <ieeefp.h>
19886 #endif
19888 int main() {
19889 finitel(0);
19890 ; return 0; }
19892 if { (eval echo configure:19893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19893 rm -rf conftest*
19894 glibcpp_cv_func_finitel_use=yes
19895 else
19896 echo "configure: failed program was:" >&5
19897 cat conftest.$ac_ext >&5
19898 rm -rf conftest*
19899 glibcpp_cv_func_finitel_use=no
19901 rm -f conftest*
19902 ac_ext=c
19903 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19904 ac_cpp='$CPP $CPPFLAGS'
19905 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19906 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19907 cross_compiling=$ac_cv_prog_cc_cross
19913 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19915 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19916 for ac_func in finitel
19918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19919 echo "configure:19920: checking for $ac_func" >&5
19920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19921 echo $ac_n "(cached) $ac_c" 1>&6
19922 else
19923 cat > conftest.$ac_ext <<EOF
19924 #line 19925 "configure"
19925 #include "confdefs.h"
19926 /* System header to define __stub macros and hopefully few prototypes,
19927 which can conflict with char $ac_func(); below. */
19928 #include <assert.h>
19929 /* Override any gcc2 internal prototype to avoid an error. */
19930 /* We use char because int might match the return type of a gcc2
19931 builtin and then its argument prototype would still apply. */
19932 char $ac_func();
19934 int main() {
19936 /* The GNU C library defines this for functions which it implements
19937 to always fail with ENOSYS. Some functions are actually named
19938 something starting with __ and the normal name is an alias. */
19939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19940 choke me
19941 #else
19942 $ac_func();
19943 #endif
19945 ; return 0; }
19947 if { (eval echo configure:19948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19948 rm -rf conftest*
19949 eval "ac_cv_func_$ac_func=yes"
19950 else
19951 echo "configure: failed program was:" >&5
19952 cat conftest.$ac_ext >&5
19953 rm -rf conftest*
19954 eval "ac_cv_func_$ac_func=no"
19956 rm -f conftest*
19959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19960 echo "$ac_t""yes" 1>&6
19961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19962 cat >> confdefs.h <<EOF
19963 #define $ac_tr_func 1
19966 else
19967 echo "$ac_t""no" 1>&6
19969 done
19971 else
19973 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19974 echo "configure:19975: checking for _finitel declaration" >&5
19975 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19976 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19977 echo $ac_n "(cached) $ac_c" 1>&6
19978 else
19981 ac_ext=C
19982 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19983 ac_cpp='$CXXCPP $CPPFLAGS'
19984 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19985 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19986 cross_compiling=$ac_cv_prog_cxx_cross
19988 cat > conftest.$ac_ext <<EOF
19989 #line 19990 "configure"
19990 #include "confdefs.h"
19991 #include <math.h>
19992 #ifdef HAVE_IEEEFP_H
19993 #include <ieeefp.h>
19994 #endif
19996 int main() {
19997 _finitel(0);
19998 ; return 0; }
20000 if { (eval echo configure:20001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20001 rm -rf conftest*
20002 glibcpp_cv_func__finitel_use=yes
20003 else
20004 echo "configure: failed program was:" >&5
20005 cat conftest.$ac_ext >&5
20006 rm -rf conftest*
20007 glibcpp_cv_func__finitel_use=no
20009 rm -f conftest*
20010 ac_ext=c
20011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20012 ac_cpp='$CPP $CPPFLAGS'
20013 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20014 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20015 cross_compiling=$ac_cv_prog_cc_cross
20021 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
20023 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
20024 for ac_func in _finitel
20026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20027 echo "configure:20028: checking for $ac_func" >&5
20028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20029 echo $ac_n "(cached) $ac_c" 1>&6
20030 else
20031 cat > conftest.$ac_ext <<EOF
20032 #line 20033 "configure"
20033 #include "confdefs.h"
20034 /* System header to define __stub macros and hopefully few prototypes,
20035 which can conflict with char $ac_func(); below. */
20036 #include <assert.h>
20037 /* Override any gcc2 internal prototype to avoid an error. */
20038 /* We use char because int might match the return type of a gcc2
20039 builtin and then its argument prototype would still apply. */
20040 char $ac_func();
20042 int main() {
20044 /* The GNU C library defines this for functions which it implements
20045 to always fail with ENOSYS. Some functions are actually named
20046 something starting with __ and the normal name is an alias. */
20047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20048 choke me
20049 #else
20050 $ac_func();
20051 #endif
20053 ; return 0; }
20055 if { (eval echo configure:20056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20056 rm -rf conftest*
20057 eval "ac_cv_func_$ac_func=yes"
20058 else
20059 echo "configure: failed program was:" >&5
20060 cat conftest.$ac_ext >&5
20061 rm -rf conftest*
20062 eval "ac_cv_func_$ac_func=no"
20064 rm -f conftest*
20067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20068 echo "$ac_t""yes" 1>&6
20069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20070 cat >> confdefs.h <<EOF
20071 #define $ac_tr_func 1
20074 else
20075 echo "$ac_t""no" 1>&6
20077 done
20085 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
20086 echo "configure:20087: checking for _float trig functions" >&5
20087 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
20088 echo $ac_n "(cached) $ac_c" 1>&6
20089 else
20092 ac_ext=C
20093 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20094 ac_cpp='$CXXCPP $CPPFLAGS'
20095 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20096 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20097 cross_compiling=$ac_cv_prog_cxx_cross
20099 cat > conftest.$ac_ext <<EOF
20100 #line 20101 "configure"
20101 #include "confdefs.h"
20102 #include <math.h>
20103 int main() {
20104 `for x in _acosf _asinf _atanf \
20105 _cosf _sinf _tanf \
20106 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
20107 ; return 0; }
20109 if { (eval echo configure:20110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20110 rm -rf conftest*
20111 glibcpp_cv_func__float_trig_use=yes
20112 else
20113 echo "configure: failed program was:" >&5
20114 cat conftest.$ac_ext >&5
20115 rm -rf conftest*
20116 glibcpp_cv_func__float_trig_use=no
20118 rm -f conftest*
20119 ac_ext=c
20120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20121 ac_cpp='$CPP $CPPFLAGS'
20122 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20123 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20124 cross_compiling=$ac_cv_prog_cc_cross
20128 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
20129 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
20130 for ac_func in _acosf _asinf _atanf \
20131 _cosf _sinf _tanf \
20132 _coshf _sinhf _tanhf
20134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20135 echo "configure:20136: checking for $ac_func" >&5
20136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20137 echo $ac_n "(cached) $ac_c" 1>&6
20138 else
20139 cat > conftest.$ac_ext <<EOF
20140 #line 20141 "configure"
20141 #include "confdefs.h"
20142 /* System header to define __stub macros and hopefully few prototypes,
20143 which can conflict with char $ac_func(); below. */
20144 #include <assert.h>
20145 /* Override any gcc2 internal prototype to avoid an error. */
20146 /* We use char because int might match the return type of a gcc2
20147 builtin and then its argument prototype would still apply. */
20148 char $ac_func();
20150 int main() {
20152 /* The GNU C library defines this for functions which it implements
20153 to always fail with ENOSYS. Some functions are actually named
20154 something starting with __ and the normal name is an alias. */
20155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20156 choke me
20157 #else
20158 $ac_func();
20159 #endif
20161 ; return 0; }
20163 if { (eval echo configure:20164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20164 rm -rf conftest*
20165 eval "ac_cv_func_$ac_func=yes"
20166 else
20167 echo "configure: failed program was:" >&5
20168 cat conftest.$ac_ext >&5
20169 rm -rf conftest*
20170 eval "ac_cv_func_$ac_func=no"
20172 rm -f conftest*
20175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20176 echo "$ac_t""yes" 1>&6
20177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20178 cat >> confdefs.h <<EOF
20179 #define $ac_tr_func 1
20182 else
20183 echo "$ac_t""no" 1>&6
20185 done
20190 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20191 echo "configure:20192: checking for _float round functions" >&5
20192 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20193 echo $ac_n "(cached) $ac_c" 1>&6
20194 else
20197 ac_ext=C
20198 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20199 ac_cpp='$CXXCPP $CPPFLAGS'
20200 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20201 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20202 cross_compiling=$ac_cv_prog_cxx_cross
20204 cat > conftest.$ac_ext <<EOF
20205 #line 20206 "configure"
20206 #include "confdefs.h"
20207 #include <math.h>
20208 int main() {
20209 `for x in _ceilf _floorf; do echo "$x (0);"; done`
20210 ; return 0; }
20212 if { (eval echo configure:20213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20213 rm -rf conftest*
20214 glibcpp_cv_func__float_round_use=yes
20215 else
20216 echo "configure: failed program was:" >&5
20217 cat conftest.$ac_ext >&5
20218 rm -rf conftest*
20219 glibcpp_cv_func__float_round_use=no
20221 rm -f conftest*
20222 ac_ext=c
20223 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20224 ac_cpp='$CPP $CPPFLAGS'
20225 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20226 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20227 cross_compiling=$ac_cv_prog_cc_cross
20231 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20232 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20233 for ac_func in _ceilf _floorf
20235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20236 echo "configure:20237: checking for $ac_func" >&5
20237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20238 echo $ac_n "(cached) $ac_c" 1>&6
20239 else
20240 cat > conftest.$ac_ext <<EOF
20241 #line 20242 "configure"
20242 #include "confdefs.h"
20243 /* System header to define __stub macros and hopefully few prototypes,
20244 which can conflict with char $ac_func(); below. */
20245 #include <assert.h>
20246 /* Override any gcc2 internal prototype to avoid an error. */
20247 /* We use char because int might match the return type of a gcc2
20248 builtin and then its argument prototype would still apply. */
20249 char $ac_func();
20251 int main() {
20253 /* The GNU C library defines this for functions which it implements
20254 to always fail with ENOSYS. Some functions are actually named
20255 something starting with __ and the normal name is an alias. */
20256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20257 choke me
20258 #else
20259 $ac_func();
20260 #endif
20262 ; return 0; }
20264 if { (eval echo configure:20265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20265 rm -rf conftest*
20266 eval "ac_cv_func_$ac_func=yes"
20267 else
20268 echo "configure: failed program was:" >&5
20269 cat conftest.$ac_ext >&5
20270 rm -rf conftest*
20271 eval "ac_cv_func_$ac_func=no"
20273 rm -f conftest*
20276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20277 echo "$ac_t""yes" 1>&6
20278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20279 cat >> confdefs.h <<EOF
20280 #define $ac_tr_func 1
20283 else
20284 echo "$ac_t""no" 1>&6
20286 done
20292 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20293 echo "configure:20294: checking for _long double trig functions" >&5
20294 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20295 echo $ac_n "(cached) $ac_c" 1>&6
20296 else
20299 ac_ext=C
20300 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20301 ac_cpp='$CXXCPP $CPPFLAGS'
20302 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20303 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20304 cross_compiling=$ac_cv_prog_cxx_cross
20306 cat > conftest.$ac_ext <<EOF
20307 #line 20308 "configure"
20308 #include "confdefs.h"
20309 #include <math.h>
20310 int main() {
20311 `for x in _acosl _asinl _atanl \
20312 _cosl _sinl _tanl \
20313 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
20314 ; return 0; }
20316 if { (eval echo configure:20317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20317 rm -rf conftest*
20318 glibcpp_cv_func__long_double_trig_use=yes
20319 else
20320 echo "configure: failed program was:" >&5
20321 cat conftest.$ac_ext >&5
20322 rm -rf conftest*
20323 glibcpp_cv_func__long_double_trig_use=no
20325 rm -f conftest*
20326 ac_ext=c
20327 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20328 ac_cpp='$CPP $CPPFLAGS'
20329 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20330 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20331 cross_compiling=$ac_cv_prog_cc_cross
20335 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20336 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20337 for ac_func in _acosl _asinl _atanl \
20338 _cosl _sinl _tanl \
20339 _coshl _sinhl _tanhl
20341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20342 echo "configure:20343: checking for $ac_func" >&5
20343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20344 echo $ac_n "(cached) $ac_c" 1>&6
20345 else
20346 cat > conftest.$ac_ext <<EOF
20347 #line 20348 "configure"
20348 #include "confdefs.h"
20349 /* System header to define __stub macros and hopefully few prototypes,
20350 which can conflict with char $ac_func(); below. */
20351 #include <assert.h>
20352 /* Override any gcc2 internal prototype to avoid an error. */
20353 /* We use char because int might match the return type of a gcc2
20354 builtin and then its argument prototype would still apply. */
20355 char $ac_func();
20357 int main() {
20359 /* The GNU C library defines this for functions which it implements
20360 to always fail with ENOSYS. Some functions are actually named
20361 something starting with __ and the normal name is an alias. */
20362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20363 choke me
20364 #else
20365 $ac_func();
20366 #endif
20368 ; return 0; }
20370 if { (eval echo configure:20371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20371 rm -rf conftest*
20372 eval "ac_cv_func_$ac_func=yes"
20373 else
20374 echo "configure: failed program was:" >&5
20375 cat conftest.$ac_ext >&5
20376 rm -rf conftest*
20377 eval "ac_cv_func_$ac_func=no"
20379 rm -f conftest*
20382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20383 echo "$ac_t""yes" 1>&6
20384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20385 cat >> confdefs.h <<EOF
20386 #define $ac_tr_func 1
20389 else
20390 echo "$ac_t""no" 1>&6
20392 done
20397 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20398 echo "configure:20399: checking for _long double round functions" >&5
20399 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20400 echo $ac_n "(cached) $ac_c" 1>&6
20401 else
20404 ac_ext=C
20405 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20406 ac_cpp='$CXXCPP $CPPFLAGS'
20407 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20408 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20409 cross_compiling=$ac_cv_prog_cxx_cross
20411 cat > conftest.$ac_ext <<EOF
20412 #line 20413 "configure"
20413 #include "confdefs.h"
20414 #include <math.h>
20415 int main() {
20416 `for x in _ceill _floorl; do echo "$x (0);"; done`
20417 ; return 0; }
20419 if { (eval echo configure:20420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20420 rm -rf conftest*
20421 glibcpp_cv_func__long_double_round_use=yes
20422 else
20423 echo "configure: failed program was:" >&5
20424 cat conftest.$ac_ext >&5
20425 rm -rf conftest*
20426 glibcpp_cv_func__long_double_round_use=no
20428 rm -f conftest*
20429 ac_ext=c
20430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20431 ac_cpp='$CPP $CPPFLAGS'
20432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20434 cross_compiling=$ac_cv_prog_cc_cross
20438 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20439 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20440 for ac_func in _ceill _floorl
20442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20443 echo "configure:20444: checking for $ac_func" >&5
20444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20445 echo $ac_n "(cached) $ac_c" 1>&6
20446 else
20447 cat > conftest.$ac_ext <<EOF
20448 #line 20449 "configure"
20449 #include "confdefs.h"
20450 /* System header to define __stub macros and hopefully few prototypes,
20451 which can conflict with char $ac_func(); below. */
20452 #include <assert.h>
20453 /* Override any gcc2 internal prototype to avoid an error. */
20454 /* We use char because int might match the return type of a gcc2
20455 builtin and then its argument prototype would still apply. */
20456 char $ac_func();
20458 int main() {
20460 /* The GNU C library defines this for functions which it implements
20461 to always fail with ENOSYS. Some functions are actually named
20462 something starting with __ and the normal name is an alias. */
20463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20464 choke me
20465 #else
20466 $ac_func();
20467 #endif
20469 ; return 0; }
20471 if { (eval echo configure:20472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20472 rm -rf conftest*
20473 eval "ac_cv_func_$ac_func=yes"
20474 else
20475 echo "configure: failed program was:" >&5
20476 cat conftest.$ac_ext >&5
20477 rm -rf conftest*
20478 eval "ac_cv_func_$ac_func=no"
20480 rm -f conftest*
20483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20484 echo "$ac_t""yes" 1>&6
20485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20486 cat >> confdefs.h <<EOF
20487 #define $ac_tr_func 1
20490 else
20491 echo "$ac_t""no" 1>&6
20493 done
20498 LIBS="$ac_save_LIBS"
20499 CXXFLAGS="$ac_save_CXXFLAGS"
20503 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
20504 echo "configure:20505: checking for __builtin_abs declaration" >&5
20505 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
20506 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
20507 echo $ac_n "(cached) $ac_c" 1>&6
20508 else
20511 ac_ext=C
20512 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20513 ac_cpp='$CXXCPP $CPPFLAGS'
20514 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20515 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20516 cross_compiling=$ac_cv_prog_cxx_cross
20518 cat > conftest.$ac_ext <<EOF
20519 #line 20520 "configure"
20520 #include "confdefs.h"
20521 #include <math.h>
20522 int main() {
20523 __builtin_abs(0);
20524 ; return 0; }
20526 if { (eval echo configure:20527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20527 rm -rf conftest*
20528 glibcpp_cv_func___builtin_abs_use=yes
20529 else
20530 echo "configure: failed program was:" >&5
20531 cat conftest.$ac_ext >&5
20532 rm -rf conftest*
20533 glibcpp_cv_func___builtin_abs_use=no
20535 rm -f conftest*
20536 ac_ext=c
20537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20538 ac_cpp='$CPP $CPPFLAGS'
20539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20541 cross_compiling=$ac_cv_prog_cc_cross
20547 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
20548 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
20549 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
20550 echo "configure:20551: checking for __builtin_abs linkage" >&5
20551 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
20552 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
20553 echo $ac_n "(cached) $ac_c" 1>&6
20554 else
20556 cat > conftest.$ac_ext <<EOF
20557 #line 20558 "configure"
20558 #include "confdefs.h"
20559 #include <math.h>
20560 int main() {
20561 __builtin_abs(0);
20562 ; return 0; }
20564 if { (eval echo configure:20565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20565 rm -rf conftest*
20566 glibcpp_cv_func___builtin_abs_link=yes
20567 else
20568 echo "configure: failed program was:" >&5
20569 cat conftest.$ac_ext >&5
20570 rm -rf conftest*
20571 glibcpp_cv_func___builtin_abs_link=no
20573 rm -f conftest*
20578 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
20579 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
20580 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20581 cat >> confdefs.h <<EOF
20582 #define ${ac_tr_func} 1
20589 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
20590 echo "configure:20591: checking for __builtin_fabsf declaration" >&5
20591 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
20592 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
20593 echo $ac_n "(cached) $ac_c" 1>&6
20594 else
20597 ac_ext=C
20598 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20599 ac_cpp='$CXXCPP $CPPFLAGS'
20600 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20601 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20602 cross_compiling=$ac_cv_prog_cxx_cross
20604 cat > conftest.$ac_ext <<EOF
20605 #line 20606 "configure"
20606 #include "confdefs.h"
20607 #include <math.h>
20608 int main() {
20609 __builtin_fabsf(0);
20610 ; return 0; }
20612 if { (eval echo configure:20613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20613 rm -rf conftest*
20614 glibcpp_cv_func___builtin_fabsf_use=yes
20615 else
20616 echo "configure: failed program was:" >&5
20617 cat conftest.$ac_ext >&5
20618 rm -rf conftest*
20619 glibcpp_cv_func___builtin_fabsf_use=no
20621 rm -f conftest*
20622 ac_ext=c
20623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20624 ac_cpp='$CPP $CPPFLAGS'
20625 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20626 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20627 cross_compiling=$ac_cv_prog_cc_cross
20633 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
20634 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
20635 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
20636 echo "configure:20637: checking for __builtin_fabsf linkage" >&5
20637 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
20638 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
20639 echo $ac_n "(cached) $ac_c" 1>&6
20640 else
20642 cat > conftest.$ac_ext <<EOF
20643 #line 20644 "configure"
20644 #include "confdefs.h"
20645 #include <math.h>
20646 int main() {
20647 __builtin_fabsf(0);
20648 ; return 0; }
20650 if { (eval echo configure:20651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20651 rm -rf conftest*
20652 glibcpp_cv_func___builtin_fabsf_link=yes
20653 else
20654 echo "configure: failed program was:" >&5
20655 cat conftest.$ac_ext >&5
20656 rm -rf conftest*
20657 glibcpp_cv_func___builtin_fabsf_link=no
20659 rm -f conftest*
20664 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
20665 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
20666 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20667 cat >> confdefs.h <<EOF
20668 #define ${ac_tr_func} 1
20675 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
20676 echo "configure:20677: checking for __builtin_fabs declaration" >&5
20677 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
20678 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
20679 echo $ac_n "(cached) $ac_c" 1>&6
20680 else
20683 ac_ext=C
20684 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20685 ac_cpp='$CXXCPP $CPPFLAGS'
20686 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20687 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20688 cross_compiling=$ac_cv_prog_cxx_cross
20690 cat > conftest.$ac_ext <<EOF
20691 #line 20692 "configure"
20692 #include "confdefs.h"
20693 #include <math.h>
20694 int main() {
20695 __builtin_fabs(0);
20696 ; return 0; }
20698 if { (eval echo configure:20699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20699 rm -rf conftest*
20700 glibcpp_cv_func___builtin_fabs_use=yes
20701 else
20702 echo "configure: failed program was:" >&5
20703 cat conftest.$ac_ext >&5
20704 rm -rf conftest*
20705 glibcpp_cv_func___builtin_fabs_use=no
20707 rm -f conftest*
20708 ac_ext=c
20709 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20710 ac_cpp='$CPP $CPPFLAGS'
20711 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20712 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20713 cross_compiling=$ac_cv_prog_cc_cross
20719 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
20720 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
20721 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
20722 echo "configure:20723: checking for __builtin_fabs linkage" >&5
20723 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
20724 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
20725 echo $ac_n "(cached) $ac_c" 1>&6
20726 else
20728 cat > conftest.$ac_ext <<EOF
20729 #line 20730 "configure"
20730 #include "confdefs.h"
20731 #include <math.h>
20732 int main() {
20733 __builtin_fabs(0);
20734 ; return 0; }
20736 if { (eval echo configure:20737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20737 rm -rf conftest*
20738 glibcpp_cv_func___builtin_fabs_link=yes
20739 else
20740 echo "configure: failed program was:" >&5
20741 cat conftest.$ac_ext >&5
20742 rm -rf conftest*
20743 glibcpp_cv_func___builtin_fabs_link=no
20745 rm -f conftest*
20750 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
20751 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
20752 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20753 cat >> confdefs.h <<EOF
20754 #define ${ac_tr_func} 1
20761 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
20762 echo "configure:20763: checking for __builtin_fabsl declaration" >&5
20763 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
20764 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
20765 echo $ac_n "(cached) $ac_c" 1>&6
20766 else
20769 ac_ext=C
20770 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20771 ac_cpp='$CXXCPP $CPPFLAGS'
20772 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20773 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20774 cross_compiling=$ac_cv_prog_cxx_cross
20776 cat > conftest.$ac_ext <<EOF
20777 #line 20778 "configure"
20778 #include "confdefs.h"
20779 #include <math.h>
20780 int main() {
20781 __builtin_fabsl(0);
20782 ; return 0; }
20784 if { (eval echo configure:20785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20785 rm -rf conftest*
20786 glibcpp_cv_func___builtin_fabsl_use=yes
20787 else
20788 echo "configure: failed program was:" >&5
20789 cat conftest.$ac_ext >&5
20790 rm -rf conftest*
20791 glibcpp_cv_func___builtin_fabsl_use=no
20793 rm -f conftest*
20794 ac_ext=c
20795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20796 ac_cpp='$CPP $CPPFLAGS'
20797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20799 cross_compiling=$ac_cv_prog_cc_cross
20805 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
20806 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
20807 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
20808 echo "configure:20809: checking for __builtin_fabsl linkage" >&5
20809 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
20810 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
20811 echo $ac_n "(cached) $ac_c" 1>&6
20812 else
20814 cat > conftest.$ac_ext <<EOF
20815 #line 20816 "configure"
20816 #include "confdefs.h"
20817 #include <math.h>
20818 int main() {
20819 __builtin_fabsl(0);
20820 ; return 0; }
20822 if { (eval echo configure:20823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20823 rm -rf conftest*
20824 glibcpp_cv_func___builtin_fabsl_link=yes
20825 else
20826 echo "configure: failed program was:" >&5
20827 cat conftest.$ac_ext >&5
20828 rm -rf conftest*
20829 glibcpp_cv_func___builtin_fabsl_link=no
20831 rm -f conftest*
20836 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
20837 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
20838 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20839 cat >> confdefs.h <<EOF
20840 #define ${ac_tr_func} 1
20847 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
20848 echo "configure:20849: checking for __builtin_labs declaration" >&5
20849 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
20850 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
20851 echo $ac_n "(cached) $ac_c" 1>&6
20852 else
20855 ac_ext=C
20856 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20857 ac_cpp='$CXXCPP $CPPFLAGS'
20858 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20859 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20860 cross_compiling=$ac_cv_prog_cxx_cross
20862 cat > conftest.$ac_ext <<EOF
20863 #line 20864 "configure"
20864 #include "confdefs.h"
20865 #include <math.h>
20866 int main() {
20867 __builtin_labs(0);
20868 ; return 0; }
20870 if { (eval echo configure:20871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20871 rm -rf conftest*
20872 glibcpp_cv_func___builtin_labs_use=yes
20873 else
20874 echo "configure: failed program was:" >&5
20875 cat conftest.$ac_ext >&5
20876 rm -rf conftest*
20877 glibcpp_cv_func___builtin_labs_use=no
20879 rm -f conftest*
20880 ac_ext=c
20881 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20882 ac_cpp='$CPP $CPPFLAGS'
20883 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20884 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20885 cross_compiling=$ac_cv_prog_cc_cross
20891 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
20892 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
20893 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
20894 echo "configure:20895: checking for __builtin_labs linkage" >&5
20895 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
20896 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
20897 echo $ac_n "(cached) $ac_c" 1>&6
20898 else
20900 cat > conftest.$ac_ext <<EOF
20901 #line 20902 "configure"
20902 #include "confdefs.h"
20903 #include <math.h>
20904 int main() {
20905 __builtin_labs(0);
20906 ; return 0; }
20908 if { (eval echo configure:20909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20909 rm -rf conftest*
20910 glibcpp_cv_func___builtin_labs_link=yes
20911 else
20912 echo "configure: failed program was:" >&5
20913 cat conftest.$ac_ext >&5
20914 rm -rf conftest*
20915 glibcpp_cv_func___builtin_labs_link=no
20917 rm -f conftest*
20922 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
20923 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
20924 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20925 cat >> confdefs.h <<EOF
20926 #define ${ac_tr_func} 1
20934 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
20935 echo "configure:20936: checking for __builtin_sqrtf declaration" >&5
20936 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
20937 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
20938 echo $ac_n "(cached) $ac_c" 1>&6
20939 else
20942 ac_ext=C
20943 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20944 ac_cpp='$CXXCPP $CPPFLAGS'
20945 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20946 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20947 cross_compiling=$ac_cv_prog_cxx_cross
20949 cat > conftest.$ac_ext <<EOF
20950 #line 20951 "configure"
20951 #include "confdefs.h"
20952 #include <math.h>
20953 int main() {
20954 __builtin_sqrtf(0);
20955 ; return 0; }
20957 if { (eval echo configure:20958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20958 rm -rf conftest*
20959 glibcpp_cv_func___builtin_sqrtf_use=yes
20960 else
20961 echo "configure: failed program was:" >&5
20962 cat conftest.$ac_ext >&5
20963 rm -rf conftest*
20964 glibcpp_cv_func___builtin_sqrtf_use=no
20966 rm -f conftest*
20967 ac_ext=c
20968 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20969 ac_cpp='$CPP $CPPFLAGS'
20970 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20971 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20972 cross_compiling=$ac_cv_prog_cc_cross
20978 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
20979 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
20980 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
20981 echo "configure:20982: checking for __builtin_sqrtf linkage" >&5
20982 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
20983 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
20984 echo $ac_n "(cached) $ac_c" 1>&6
20985 else
20987 cat > conftest.$ac_ext <<EOF
20988 #line 20989 "configure"
20989 #include "confdefs.h"
20990 #include <math.h>
20991 int main() {
20992 __builtin_sqrtf(0);
20993 ; return 0; }
20995 if { (eval echo configure:20996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20996 rm -rf conftest*
20997 glibcpp_cv_func___builtin_sqrtf_link=yes
20998 else
20999 echo "configure: failed program was:" >&5
21000 cat conftest.$ac_ext >&5
21001 rm -rf conftest*
21002 glibcpp_cv_func___builtin_sqrtf_link=no
21004 rm -f conftest*
21009 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
21010 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
21011 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21012 cat >> confdefs.h <<EOF
21013 #define ${ac_tr_func} 1
21020 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
21021 echo "configure:21022: checking for __builtin_sqrt declaration" >&5
21022 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
21023 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
21024 echo $ac_n "(cached) $ac_c" 1>&6
21025 else
21028 ac_ext=C
21029 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21030 ac_cpp='$CXXCPP $CPPFLAGS'
21031 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21032 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21033 cross_compiling=$ac_cv_prog_cxx_cross
21035 cat > conftest.$ac_ext <<EOF
21036 #line 21037 "configure"
21037 #include "confdefs.h"
21038 #include <math.h>
21039 int main() {
21040 __builtin_sqrt(0);
21041 ; return 0; }
21043 if { (eval echo configure:21044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21044 rm -rf conftest*
21045 glibcpp_cv_func___builtin_sqrt_use=yes
21046 else
21047 echo "configure: failed program was:" >&5
21048 cat conftest.$ac_ext >&5
21049 rm -rf conftest*
21050 glibcpp_cv_func___builtin_sqrt_use=no
21052 rm -f conftest*
21053 ac_ext=c
21054 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21055 ac_cpp='$CPP $CPPFLAGS'
21056 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21057 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21058 cross_compiling=$ac_cv_prog_cc_cross
21064 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
21065 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
21066 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
21067 echo "configure:21068: checking for __builtin_sqrt linkage" >&5
21068 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
21069 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
21070 echo $ac_n "(cached) $ac_c" 1>&6
21071 else
21073 cat > conftest.$ac_ext <<EOF
21074 #line 21075 "configure"
21075 #include "confdefs.h"
21076 #include <math.h>
21077 int main() {
21078 __builtin_sqrt(0);
21079 ; return 0; }
21081 if { (eval echo configure:21082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21082 rm -rf conftest*
21083 glibcpp_cv_func___builtin_sqrt_link=yes
21084 else
21085 echo "configure: failed program was:" >&5
21086 cat conftest.$ac_ext >&5
21087 rm -rf conftest*
21088 glibcpp_cv_func___builtin_sqrt_link=no
21090 rm -f conftest*
21095 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
21096 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
21097 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21098 cat >> confdefs.h <<EOF
21099 #define ${ac_tr_func} 1
21106 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
21107 echo "configure:21108: checking for __builtin_sqrtl declaration" >&5
21108 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
21109 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
21110 echo $ac_n "(cached) $ac_c" 1>&6
21111 else
21114 ac_ext=C
21115 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21116 ac_cpp='$CXXCPP $CPPFLAGS'
21117 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21118 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21119 cross_compiling=$ac_cv_prog_cxx_cross
21121 cat > conftest.$ac_ext <<EOF
21122 #line 21123 "configure"
21123 #include "confdefs.h"
21124 #include <math.h>
21125 int main() {
21126 __builtin_sqrtl(0);
21127 ; return 0; }
21129 if { (eval echo configure:21130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21130 rm -rf conftest*
21131 glibcpp_cv_func___builtin_sqrtl_use=yes
21132 else
21133 echo "configure: failed program was:" >&5
21134 cat conftest.$ac_ext >&5
21135 rm -rf conftest*
21136 glibcpp_cv_func___builtin_sqrtl_use=no
21138 rm -f conftest*
21139 ac_ext=c
21140 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21141 ac_cpp='$CPP $CPPFLAGS'
21142 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21143 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21144 cross_compiling=$ac_cv_prog_cc_cross
21150 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
21151 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
21152 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
21153 echo "configure:21154: checking for __builtin_sqrtl linkage" >&5
21154 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
21155 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
21156 echo $ac_n "(cached) $ac_c" 1>&6
21157 else
21159 cat > conftest.$ac_ext <<EOF
21160 #line 21161 "configure"
21161 #include "confdefs.h"
21162 #include <math.h>
21163 int main() {
21164 __builtin_sqrtl(0);
21165 ; return 0; }
21167 if { (eval echo configure:21168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21168 rm -rf conftest*
21169 glibcpp_cv_func___builtin_sqrtl_link=yes
21170 else
21171 echo "configure: failed program was:" >&5
21172 cat conftest.$ac_ext >&5
21173 rm -rf conftest*
21174 glibcpp_cv_func___builtin_sqrtl_link=no
21176 rm -f conftest*
21181 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
21182 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
21183 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21184 cat >> confdefs.h <<EOF
21185 #define ${ac_tr_func} 1
21193 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
21194 echo "configure:21195: checking for __builtin_sinf declaration" >&5
21195 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
21196 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
21197 echo $ac_n "(cached) $ac_c" 1>&6
21198 else
21201 ac_ext=C
21202 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21203 ac_cpp='$CXXCPP $CPPFLAGS'
21204 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21205 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21206 cross_compiling=$ac_cv_prog_cxx_cross
21208 cat > conftest.$ac_ext <<EOF
21209 #line 21210 "configure"
21210 #include "confdefs.h"
21211 #include <math.h>
21212 int main() {
21213 __builtin_sinf(0);
21214 ; return 0; }
21216 if { (eval echo configure:21217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21217 rm -rf conftest*
21218 glibcpp_cv_func___builtin_sinf_use=yes
21219 else
21220 echo "configure: failed program was:" >&5
21221 cat conftest.$ac_ext >&5
21222 rm -rf conftest*
21223 glibcpp_cv_func___builtin_sinf_use=no
21225 rm -f conftest*
21226 ac_ext=c
21227 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21228 ac_cpp='$CPP $CPPFLAGS'
21229 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21230 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21231 cross_compiling=$ac_cv_prog_cc_cross
21237 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
21238 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
21239 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
21240 echo "configure:21241: checking for __builtin_sinf linkage" >&5
21241 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
21242 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
21243 echo $ac_n "(cached) $ac_c" 1>&6
21244 else
21246 cat > conftest.$ac_ext <<EOF
21247 #line 21248 "configure"
21248 #include "confdefs.h"
21249 #include <math.h>
21250 int main() {
21251 __builtin_sinf(0);
21252 ; return 0; }
21254 if { (eval echo configure:21255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21255 rm -rf conftest*
21256 glibcpp_cv_func___builtin_sinf_link=yes
21257 else
21258 echo "configure: failed program was:" >&5
21259 cat conftest.$ac_ext >&5
21260 rm -rf conftest*
21261 glibcpp_cv_func___builtin_sinf_link=no
21263 rm -f conftest*
21268 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
21269 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
21270 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21271 cat >> confdefs.h <<EOF
21272 #define ${ac_tr_func} 1
21279 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
21280 echo "configure:21281: checking for __builtin_sin declaration" >&5
21281 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
21282 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
21283 echo $ac_n "(cached) $ac_c" 1>&6
21284 else
21287 ac_ext=C
21288 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21289 ac_cpp='$CXXCPP $CPPFLAGS'
21290 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21291 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21292 cross_compiling=$ac_cv_prog_cxx_cross
21294 cat > conftest.$ac_ext <<EOF
21295 #line 21296 "configure"
21296 #include "confdefs.h"
21297 #include <math.h>
21298 int main() {
21299 __builtin_sin(0);
21300 ; return 0; }
21302 if { (eval echo configure:21303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21303 rm -rf conftest*
21304 glibcpp_cv_func___builtin_sin_use=yes
21305 else
21306 echo "configure: failed program was:" >&5
21307 cat conftest.$ac_ext >&5
21308 rm -rf conftest*
21309 glibcpp_cv_func___builtin_sin_use=no
21311 rm -f conftest*
21312 ac_ext=c
21313 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21314 ac_cpp='$CPP $CPPFLAGS'
21315 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21316 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21317 cross_compiling=$ac_cv_prog_cc_cross
21323 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
21324 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
21325 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
21326 echo "configure:21327: checking for __builtin_sin linkage" >&5
21327 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
21328 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
21329 echo $ac_n "(cached) $ac_c" 1>&6
21330 else
21332 cat > conftest.$ac_ext <<EOF
21333 #line 21334 "configure"
21334 #include "confdefs.h"
21335 #include <math.h>
21336 int main() {
21337 __builtin_sin(0);
21338 ; return 0; }
21340 if { (eval echo configure:21341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21341 rm -rf conftest*
21342 glibcpp_cv_func___builtin_sin_link=yes
21343 else
21344 echo "configure: failed program was:" >&5
21345 cat conftest.$ac_ext >&5
21346 rm -rf conftest*
21347 glibcpp_cv_func___builtin_sin_link=no
21349 rm -f conftest*
21354 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
21355 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
21356 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21357 cat >> confdefs.h <<EOF
21358 #define ${ac_tr_func} 1
21365 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
21366 echo "configure:21367: checking for __builtin_sinl declaration" >&5
21367 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
21368 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
21369 echo $ac_n "(cached) $ac_c" 1>&6
21370 else
21373 ac_ext=C
21374 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21375 ac_cpp='$CXXCPP $CPPFLAGS'
21376 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21377 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21378 cross_compiling=$ac_cv_prog_cxx_cross
21380 cat > conftest.$ac_ext <<EOF
21381 #line 21382 "configure"
21382 #include "confdefs.h"
21383 #include <math.h>
21384 int main() {
21385 __builtin_sinl(0);
21386 ; return 0; }
21388 if { (eval echo configure:21389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21389 rm -rf conftest*
21390 glibcpp_cv_func___builtin_sinl_use=yes
21391 else
21392 echo "configure: failed program was:" >&5
21393 cat conftest.$ac_ext >&5
21394 rm -rf conftest*
21395 glibcpp_cv_func___builtin_sinl_use=no
21397 rm -f conftest*
21398 ac_ext=c
21399 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21400 ac_cpp='$CPP $CPPFLAGS'
21401 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21402 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21403 cross_compiling=$ac_cv_prog_cc_cross
21409 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
21410 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
21411 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
21412 echo "configure:21413: checking for __builtin_sinl linkage" >&5
21413 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
21414 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
21415 echo $ac_n "(cached) $ac_c" 1>&6
21416 else
21418 cat > conftest.$ac_ext <<EOF
21419 #line 21420 "configure"
21420 #include "confdefs.h"
21421 #include <math.h>
21422 int main() {
21423 __builtin_sinl(0);
21424 ; return 0; }
21426 if { (eval echo configure:21427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21427 rm -rf conftest*
21428 glibcpp_cv_func___builtin_sinl_link=yes
21429 else
21430 echo "configure: failed program was:" >&5
21431 cat conftest.$ac_ext >&5
21432 rm -rf conftest*
21433 glibcpp_cv_func___builtin_sinl_link=no
21435 rm -f conftest*
21440 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
21441 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
21442 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21443 cat >> confdefs.h <<EOF
21444 #define ${ac_tr_func} 1
21452 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
21453 echo "configure:21454: checking for __builtin_cosf declaration" >&5
21454 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
21455 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
21456 echo $ac_n "(cached) $ac_c" 1>&6
21457 else
21460 ac_ext=C
21461 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21462 ac_cpp='$CXXCPP $CPPFLAGS'
21463 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21464 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21465 cross_compiling=$ac_cv_prog_cxx_cross
21467 cat > conftest.$ac_ext <<EOF
21468 #line 21469 "configure"
21469 #include "confdefs.h"
21470 #include <math.h>
21471 int main() {
21472 __builtin_cosf(0);
21473 ; return 0; }
21475 if { (eval echo configure:21476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21476 rm -rf conftest*
21477 glibcpp_cv_func___builtin_cosf_use=yes
21478 else
21479 echo "configure: failed program was:" >&5
21480 cat conftest.$ac_ext >&5
21481 rm -rf conftest*
21482 glibcpp_cv_func___builtin_cosf_use=no
21484 rm -f conftest*
21485 ac_ext=c
21486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21487 ac_cpp='$CPP $CPPFLAGS'
21488 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21489 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21490 cross_compiling=$ac_cv_prog_cc_cross
21496 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
21497 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
21498 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
21499 echo "configure:21500: checking for __builtin_cosf linkage" >&5
21500 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
21501 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
21502 echo $ac_n "(cached) $ac_c" 1>&6
21503 else
21505 cat > conftest.$ac_ext <<EOF
21506 #line 21507 "configure"
21507 #include "confdefs.h"
21508 #include <math.h>
21509 int main() {
21510 __builtin_cosf(0);
21511 ; return 0; }
21513 if { (eval echo configure:21514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21514 rm -rf conftest*
21515 glibcpp_cv_func___builtin_cosf_link=yes
21516 else
21517 echo "configure: failed program was:" >&5
21518 cat conftest.$ac_ext >&5
21519 rm -rf conftest*
21520 glibcpp_cv_func___builtin_cosf_link=no
21522 rm -f conftest*
21527 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
21528 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
21529 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21530 cat >> confdefs.h <<EOF
21531 #define ${ac_tr_func} 1
21538 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
21539 echo "configure:21540: checking for __builtin_cos declaration" >&5
21540 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
21541 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
21542 echo $ac_n "(cached) $ac_c" 1>&6
21543 else
21546 ac_ext=C
21547 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21548 ac_cpp='$CXXCPP $CPPFLAGS'
21549 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21550 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21551 cross_compiling=$ac_cv_prog_cxx_cross
21553 cat > conftest.$ac_ext <<EOF
21554 #line 21555 "configure"
21555 #include "confdefs.h"
21556 #include <math.h>
21557 int main() {
21558 __builtin_cos(0);
21559 ; return 0; }
21561 if { (eval echo configure:21562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21562 rm -rf conftest*
21563 glibcpp_cv_func___builtin_cos_use=yes
21564 else
21565 echo "configure: failed program was:" >&5
21566 cat conftest.$ac_ext >&5
21567 rm -rf conftest*
21568 glibcpp_cv_func___builtin_cos_use=no
21570 rm -f conftest*
21571 ac_ext=c
21572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21573 ac_cpp='$CPP $CPPFLAGS'
21574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21576 cross_compiling=$ac_cv_prog_cc_cross
21582 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
21583 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
21584 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
21585 echo "configure:21586: checking for __builtin_cos linkage" >&5
21586 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
21587 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
21588 echo $ac_n "(cached) $ac_c" 1>&6
21589 else
21591 cat > conftest.$ac_ext <<EOF
21592 #line 21593 "configure"
21593 #include "confdefs.h"
21594 #include <math.h>
21595 int main() {
21596 __builtin_cos(0);
21597 ; return 0; }
21599 if { (eval echo configure:21600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21600 rm -rf conftest*
21601 glibcpp_cv_func___builtin_cos_link=yes
21602 else
21603 echo "configure: failed program was:" >&5
21604 cat conftest.$ac_ext >&5
21605 rm -rf conftest*
21606 glibcpp_cv_func___builtin_cos_link=no
21608 rm -f conftest*
21613 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
21614 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
21615 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21616 cat >> confdefs.h <<EOF
21617 #define ${ac_tr_func} 1
21624 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
21625 echo "configure:21626: checking for __builtin_cosl declaration" >&5
21626 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
21627 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
21628 echo $ac_n "(cached) $ac_c" 1>&6
21629 else
21632 ac_ext=C
21633 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21634 ac_cpp='$CXXCPP $CPPFLAGS'
21635 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21636 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21637 cross_compiling=$ac_cv_prog_cxx_cross
21639 cat > conftest.$ac_ext <<EOF
21640 #line 21641 "configure"
21641 #include "confdefs.h"
21642 #include <math.h>
21643 int main() {
21644 __builtin_cosl(0);
21645 ; return 0; }
21647 if { (eval echo configure:21648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21648 rm -rf conftest*
21649 glibcpp_cv_func___builtin_cosl_use=yes
21650 else
21651 echo "configure: failed program was:" >&5
21652 cat conftest.$ac_ext >&5
21653 rm -rf conftest*
21654 glibcpp_cv_func___builtin_cosl_use=no
21656 rm -f conftest*
21657 ac_ext=c
21658 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21659 ac_cpp='$CPP $CPPFLAGS'
21660 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21661 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21662 cross_compiling=$ac_cv_prog_cc_cross
21668 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
21669 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
21670 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
21671 echo "configure:21672: checking for __builtin_cosl linkage" >&5
21672 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
21673 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
21674 echo $ac_n "(cached) $ac_c" 1>&6
21675 else
21677 cat > conftest.$ac_ext <<EOF
21678 #line 21679 "configure"
21679 #include "confdefs.h"
21680 #include <math.h>
21681 int main() {
21682 __builtin_cosl(0);
21683 ; return 0; }
21685 if { (eval echo configure:21686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21686 rm -rf conftest*
21687 glibcpp_cv_func___builtin_cosl_link=yes
21688 else
21689 echo "configure: failed program was:" >&5
21690 cat conftest.$ac_ext >&5
21691 rm -rf conftest*
21692 glibcpp_cv_func___builtin_cosl_link=no
21694 rm -f conftest*
21699 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
21700 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
21701 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21702 cat >> confdefs.h <<EOF
21703 #define ${ac_tr_func} 1
21710 dummyvar=no
21711 if test x$dummyvar = x"yes"; then
21712 cat >> confdefs.h <<\EOF
21713 #define HAVE___BUILTIN_ABS 1
21716 cat >> confdefs.h <<\EOF
21717 #define HAVE___BUILTIN_LABS 1
21720 cat >> confdefs.h <<\EOF
21721 #define HAVE___BUILTIN_COS 1
21724 cat >> confdefs.h <<\EOF
21725 #define HAVE___BUILTIN_COSF 1
21728 cat >> confdefs.h <<\EOF
21729 #define HAVE___BUILTIN_COSL 1
21732 cat >> confdefs.h <<\EOF
21733 #define HAVE___BUILTIN_FABS 1
21736 cat >> confdefs.h <<\EOF
21737 #define HAVE___BUILTIN_FABSF 1
21740 cat >> confdefs.h <<\EOF
21741 #define HAVE___BUILTIN_FABSL 1
21744 cat >> confdefs.h <<\EOF
21745 #define HAVE___BUILTIN_SIN 1
21748 cat >> confdefs.h <<\EOF
21749 #define HAVE___BUILTIN_SINF 1
21752 cat >> confdefs.h <<\EOF
21753 #define HAVE___BUILTIN_SINL 1
21756 cat >> confdefs.h <<\EOF
21757 #define HAVE___BUILTIN_SQRT 1
21760 cat >> confdefs.h <<\EOF
21761 #define HAVE___BUILTIN_SQRTF 1
21764 cat >> confdefs.h <<\EOF
21765 #define HAVE___BUILTIN_SQRTL 1
21771 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21772 echo "configure:21773: checking for main in -lm" >&5
21773 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21775 echo $ac_n "(cached) $ac_c" 1>&6
21776 else
21777 ac_save_LIBS="$LIBS"
21778 LIBS="-lm $LIBS"
21779 cat > conftest.$ac_ext <<EOF
21780 #line 21781 "configure"
21781 #include "confdefs.h"
21783 int main() {
21784 main()
21785 ; return 0; }
21787 if { (eval echo configure:21788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21788 rm -rf conftest*
21789 eval "ac_cv_lib_$ac_lib_var=yes"
21790 else
21791 echo "configure: failed program was:" >&5
21792 cat conftest.$ac_ext >&5
21793 rm -rf conftest*
21794 eval "ac_cv_lib_$ac_lib_var=no"
21796 rm -f conftest*
21797 LIBS="$ac_save_LIBS"
21800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21801 echo "$ac_t""yes" 1>&6
21802 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21803 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21804 cat >> confdefs.h <<EOF
21805 #define $ac_tr_lib 1
21808 LIBS="-lm $LIBS"
21810 else
21811 echo "$ac_t""no" 1>&6
21814 for ac_func in nan copysignf
21816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21817 echo "configure:21818: checking for $ac_func" >&5
21818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21819 echo $ac_n "(cached) $ac_c" 1>&6
21820 else
21821 cat > conftest.$ac_ext <<EOF
21822 #line 21823 "configure"
21823 #include "confdefs.h"
21824 /* System header to define __stub macros and hopefully few prototypes,
21825 which can conflict with char $ac_func(); below. */
21826 #include <assert.h>
21827 /* Override any gcc2 internal prototype to avoid an error. */
21828 /* We use char because int might match the return type of a gcc2
21829 builtin and then its argument prototype would still apply. */
21830 char $ac_func();
21832 int main() {
21834 /* The GNU C library defines this for functions which it implements
21835 to always fail with ENOSYS. Some functions are actually named
21836 something starting with __ and the normal name is an alias. */
21837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21838 choke me
21839 #else
21840 $ac_func();
21841 #endif
21843 ; return 0; }
21845 if { (eval echo configure:21846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21846 rm -rf conftest*
21847 eval "ac_cv_func_$ac_func=yes"
21848 else
21849 echo "configure: failed program was:" >&5
21850 cat conftest.$ac_ext >&5
21851 rm -rf conftest*
21852 eval "ac_cv_func_$ac_func=no"
21854 rm -f conftest*
21857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21858 echo "$ac_t""yes" 1>&6
21859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21860 cat >> confdefs.h <<EOF
21861 #define $ac_tr_func 1
21864 else
21865 echo "$ac_t""no" 1>&6
21866 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21868 done
21871 for ac_func in __signbit
21873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21874 echo "configure:21875: checking for $ac_func" >&5
21875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21876 echo $ac_n "(cached) $ac_c" 1>&6
21877 else
21878 cat > conftest.$ac_ext <<EOF
21879 #line 21880 "configure"
21880 #include "confdefs.h"
21881 /* System header to define __stub macros and hopefully few prototypes,
21882 which can conflict with char $ac_func(); below. */
21883 #include <assert.h>
21884 /* Override any gcc2 internal prototype to avoid an error. */
21885 /* We use char because int might match the return type of a gcc2
21886 builtin and then its argument prototype would still apply. */
21887 char $ac_func();
21889 int main() {
21891 /* The GNU C library defines this for functions which it implements
21892 to always fail with ENOSYS. Some functions are actually named
21893 something starting with __ and the normal name is an alias. */
21894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21895 choke me
21896 #else
21897 $ac_func();
21898 #endif
21900 ; return 0; }
21902 if { (eval echo configure:21903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21903 rm -rf conftest*
21904 eval "ac_cv_func_$ac_func=yes"
21905 else
21906 echo "configure: failed program was:" >&5
21907 cat conftest.$ac_ext >&5
21908 rm -rf conftest*
21909 eval "ac_cv_func_$ac_func=no"
21911 rm -f conftest*
21914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21915 echo "$ac_t""yes" 1>&6
21916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21917 cat >> confdefs.h <<EOF
21918 #define $ac_tr_func 1
21921 else
21922 echo "$ac_t""no" 1>&6
21923 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21925 done
21927 for ac_func in __signbitf
21929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21930 echo "configure:21931: checking for $ac_func" >&5
21931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21932 echo $ac_n "(cached) $ac_c" 1>&6
21933 else
21934 cat > conftest.$ac_ext <<EOF
21935 #line 21936 "configure"
21936 #include "confdefs.h"
21937 /* System header to define __stub macros and hopefully few prototypes,
21938 which can conflict with char $ac_func(); below. */
21939 #include <assert.h>
21940 /* Override any gcc2 internal prototype to avoid an error. */
21941 /* We use char because int might match the return type of a gcc2
21942 builtin and then its argument prototype would still apply. */
21943 char $ac_func();
21945 int main() {
21947 /* The GNU C library defines this for functions which it implements
21948 to always fail with ENOSYS. Some functions are actually named
21949 something starting with __ and the normal name is an alias. */
21950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21951 choke me
21952 #else
21953 $ac_func();
21954 #endif
21956 ; return 0; }
21958 if { (eval echo configure:21959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21959 rm -rf conftest*
21960 eval "ac_cv_func_$ac_func=yes"
21961 else
21962 echo "configure: failed program was:" >&5
21963 cat conftest.$ac_ext >&5
21964 rm -rf conftest*
21965 eval "ac_cv_func_$ac_func=no"
21967 rm -f conftest*
21970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21971 echo "$ac_t""yes" 1>&6
21972 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21973 cat >> confdefs.h <<EOF
21974 #define $ac_tr_func 1
21977 else
21978 echo "$ac_t""no" 1>&6
21979 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21981 done
21984 if test x$ac_cv_func_copysignl = x"yes"; then
21985 for ac_func in __signbitl
21987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21988 echo "configure:21989: checking for $ac_func" >&5
21989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21990 echo $ac_n "(cached) $ac_c" 1>&6
21991 else
21992 cat > conftest.$ac_ext <<EOF
21993 #line 21994 "configure"
21994 #include "confdefs.h"
21995 /* System header to define __stub macros and hopefully few prototypes,
21996 which can conflict with char $ac_func(); below. */
21997 #include <assert.h>
21998 /* Override any gcc2 internal prototype to avoid an error. */
21999 /* We use char because int might match the return type of a gcc2
22000 builtin and then its argument prototype would still apply. */
22001 char $ac_func();
22003 int main() {
22005 /* The GNU C library defines this for functions which it implements
22006 to always fail with ENOSYS. Some functions are actually named
22007 something starting with __ and the normal name is an alias. */
22008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22009 choke me
22010 #else
22011 $ac_func();
22012 #endif
22014 ; return 0; }
22016 if { (eval echo configure:22017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22017 rm -rf conftest*
22018 eval "ac_cv_func_$ac_func=yes"
22019 else
22020 echo "configure: failed program was:" >&5
22021 cat conftest.$ac_ext >&5
22022 rm -rf conftest*
22023 eval "ac_cv_func_$ac_func=no"
22025 rm -f conftest*
22028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22029 echo "$ac_t""yes" 1>&6
22030 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22031 cat >> confdefs.h <<EOF
22032 #define $ac_tr_func 1
22035 else
22036 echo "$ac_t""no" 1>&6
22037 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
22039 done
22043 if test -n "$LIBMATHOBJS"; then
22044 need_libmath=yes
22049 if test "$need_libmath" = yes; then
22050 GLIBCPP_BUILD_LIBMATH_TRUE=
22051 GLIBCPP_BUILD_LIBMATH_FALSE='#'
22052 else
22053 GLIBCPP_BUILD_LIBMATH_TRUE='#'
22054 GLIBCPP_BUILD_LIBMATH_FALSE=
22058 enable_wchar_t=no
22060 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
22061 echo "configure:22062: checking for mbstate_t" >&5
22062 cat > conftest.$ac_ext <<EOF
22063 #line 22064 "configure"
22064 #include "confdefs.h"
22065 #include <wchar.h>
22066 int main() {
22067 mbstate_t teststate;
22068 ; return 0; }
22070 if { (eval echo configure:22071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22071 rm -rf conftest*
22072 have_mbstate_t=yes
22073 else
22074 echo "configure: failed program was:" >&5
22075 cat conftest.$ac_ext >&5
22076 rm -rf conftest*
22077 have_mbstate_t=no
22079 rm -f conftest*
22080 echo "$ac_t""$have_mbstate_t" 1>&6
22081 if test x"$have_mbstate_t" = xyes; then
22082 cat >> confdefs.h <<\EOF
22083 #define HAVE_MBSTATE_T 1
22088 for ac_hdr in wchar.h
22090 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22091 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22092 echo "configure:22093: checking for $ac_hdr" >&5
22093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22094 echo $ac_n "(cached) $ac_c" 1>&6
22095 else
22096 cat > conftest.$ac_ext <<EOF
22097 #line 22098 "configure"
22098 #include "confdefs.h"
22099 #include <$ac_hdr>
22101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22102 { (eval echo configure:22103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22104 if test -z "$ac_err"; then
22105 rm -rf conftest*
22106 eval "ac_cv_header_$ac_safe=yes"
22107 else
22108 echo "$ac_err" >&5
22109 echo "configure: failed program was:" >&5
22110 cat conftest.$ac_ext >&5
22111 rm -rf conftest*
22112 eval "ac_cv_header_$ac_safe=no"
22114 rm -f conftest*
22116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22117 echo "$ac_t""yes" 1>&6
22118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22119 cat >> confdefs.h <<EOF
22120 #define $ac_tr_hdr 1
22122 ac_has_wchar_h=yes
22123 else
22124 echo "$ac_t""no" 1>&6
22125 ac_has_wchar_h=no
22127 done
22129 for ac_hdr in wctype.h
22131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22132 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22133 echo "configure:22134: checking for $ac_hdr" >&5
22134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22135 echo $ac_n "(cached) $ac_c" 1>&6
22136 else
22137 cat > conftest.$ac_ext <<EOF
22138 #line 22139 "configure"
22139 #include "confdefs.h"
22140 #include <$ac_hdr>
22142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22143 { (eval echo configure:22144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22145 if test -z "$ac_err"; then
22146 rm -rf conftest*
22147 eval "ac_cv_header_$ac_safe=yes"
22148 else
22149 echo "$ac_err" >&5
22150 echo "configure: failed program was:" >&5
22151 cat conftest.$ac_ext >&5
22152 rm -rf conftest*
22153 eval "ac_cv_header_$ac_safe=no"
22155 rm -f conftest*
22157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22158 echo "$ac_t""yes" 1>&6
22159 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22160 cat >> confdefs.h <<EOF
22161 #define $ac_tr_hdr 1
22163 ac_has_wctype_h=yes
22164 else
22165 echo "$ac_t""no" 1>&6
22166 ac_has_wctype_h=no
22168 done
22171 if test x"$ac_has_wchar_h" = xyes &&
22172 test x"$ac_has_wctype_h" = xyes &&
22173 test x"$enable_c_mbchar" != xno; then
22175 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22176 echo "configure:22177: checking for WCHAR_MIN and WCHAR_MAX" >&5
22177 cat > conftest.$ac_ext <<EOF
22178 #line 22179 "configure"
22179 #include "confdefs.h"
22180 #include <wchar.h>
22181 int main() {
22182 int i = WCHAR_MIN; int j = WCHAR_MAX;
22183 ; return 0; }
22185 if { (eval echo configure:22186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22186 rm -rf conftest*
22187 has_wchar_minmax=yes
22188 else
22189 echo "configure: failed program was:" >&5
22190 cat conftest.$ac_ext >&5
22191 rm -rf conftest*
22192 has_wchar_minmax=no
22194 rm -f conftest*
22195 echo "$ac_t""$has_wchar_minmax" 1>&6
22197 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22198 echo "configure:22199: checking for WEOF" >&5
22199 cat > conftest.$ac_ext <<EOF
22200 #line 22201 "configure"
22201 #include "confdefs.h"
22203 #include <wchar.h>
22204 #include <stddef.h>
22205 int main() {
22206 wint_t i = WEOF;
22207 ; return 0; }
22209 if { (eval echo configure:22210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22210 rm -rf conftest*
22211 has_weof=yes
22212 else
22213 echo "configure: failed program was:" >&5
22214 cat conftest.$ac_ext >&5
22215 rm -rf conftest*
22216 has_weof=no
22218 rm -f conftest*
22219 echo "$ac_t""$has_weof" 1>&6
22221 ac_wfuncs=yes
22222 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22225 echo "configure:22226: checking for $ac_func" >&5
22226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22227 echo $ac_n "(cached) $ac_c" 1>&6
22228 else
22229 cat > conftest.$ac_ext <<EOF
22230 #line 22231 "configure"
22231 #include "confdefs.h"
22232 /* System header to define __stub macros and hopefully few prototypes,
22233 which can conflict with char $ac_func(); below. */
22234 #include <assert.h>
22235 /* Override any gcc2 internal prototype to avoid an error. */
22236 /* We use char because int might match the return type of a gcc2
22237 builtin and then its argument prototype would still apply. */
22238 char $ac_func();
22240 int main() {
22242 /* The GNU C library defines this for functions which it implements
22243 to always fail with ENOSYS. Some functions are actually named
22244 something starting with __ and the normal name is an alias. */
22245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22246 choke me
22247 #else
22248 $ac_func();
22249 #endif
22251 ; return 0; }
22253 if { (eval echo configure:22254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22254 rm -rf conftest*
22255 eval "ac_cv_func_$ac_func=yes"
22256 else
22257 echo "configure: failed program was:" >&5
22258 cat conftest.$ac_ext >&5
22259 rm -rf conftest*
22260 eval "ac_cv_func_$ac_func=no"
22262 rm -f conftest*
22265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22266 echo "$ac_t""yes" 1>&6
22267 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22268 cat >> confdefs.h <<EOF
22269 #define $ac_tr_func 1
22272 else
22273 echo "$ac_t""no" 1>&6
22275 ac_wfuncs=no
22277 done
22280 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22281 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22282 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22283 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22284 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22285 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22288 echo "configure:22289: checking for $ac_func" >&5
22289 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22290 echo $ac_n "(cached) $ac_c" 1>&6
22291 else
22292 cat > conftest.$ac_ext <<EOF
22293 #line 22294 "configure"
22294 #include "confdefs.h"
22295 /* System header to define __stub macros and hopefully few prototypes,
22296 which can conflict with char $ac_func(); below. */
22297 #include <assert.h>
22298 /* Override any gcc2 internal prototype to avoid an error. */
22299 /* We use char because int might match the return type of a gcc2
22300 builtin and then its argument prototype would still apply. */
22301 char $ac_func();
22303 int main() {
22305 /* The GNU C library defines this for functions which it implements
22306 to always fail with ENOSYS. Some functions are actually named
22307 something starting with __ and the normal name is an alias. */
22308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22309 choke me
22310 #else
22311 $ac_func();
22312 #endif
22314 ; return 0; }
22316 if { (eval echo configure:22317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22317 rm -rf conftest*
22318 eval "ac_cv_func_$ac_func=yes"
22319 else
22320 echo "configure: failed program was:" >&5
22321 cat conftest.$ac_ext >&5
22322 rm -rf conftest*
22323 eval "ac_cv_func_$ac_func=no"
22325 rm -f conftest*
22328 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22329 echo "$ac_t""yes" 1>&6
22330 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22331 cat >> confdefs.h <<EOF
22332 #define $ac_tr_func 1
22335 else
22336 echo "$ac_t""no" 1>&6
22338 ac_wfuncs=no
22340 done
22343 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22344 echo "configure:22345: checking for ISO C99 wchar_t support" >&5
22345 if test x"$has_weof" = xyes &&
22346 test x"$has_wchar_minmax" = xyes &&
22347 test x"$ac_wfuncs" = xyes; then
22348 ac_isoC99_wchar_t=yes
22349 else
22350 ac_isoC99_wchar_t=no
22352 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22354 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22355 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22356 echo "configure:22357: checking for iconv.h" >&5
22357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22358 echo $ac_n "(cached) $ac_c" 1>&6
22359 else
22360 cat > conftest.$ac_ext <<EOF
22361 #line 22362 "configure"
22362 #include "confdefs.h"
22363 #include <iconv.h>
22365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22366 { (eval echo configure:22367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22368 if test -z "$ac_err"; then
22369 rm -rf conftest*
22370 eval "ac_cv_header_$ac_safe=yes"
22371 else
22372 echo "$ac_err" >&5
22373 echo "configure: failed program was:" >&5
22374 cat conftest.$ac_ext >&5
22375 rm -rf conftest*
22376 eval "ac_cv_header_$ac_safe=no"
22378 rm -f conftest*
22380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22381 echo "$ac_t""yes" 1>&6
22382 ac_has_iconv_h=yes
22383 else
22384 echo "$ac_t""no" 1>&6
22385 ac_has_iconv_h=no
22388 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22389 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22390 echo "configure:22391: checking for langinfo.h" >&5
22391 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22392 echo $ac_n "(cached) $ac_c" 1>&6
22393 else
22394 cat > conftest.$ac_ext <<EOF
22395 #line 22396 "configure"
22396 #include "confdefs.h"
22397 #include <langinfo.h>
22399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22400 { (eval echo configure:22401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22402 if test -z "$ac_err"; then
22403 rm -rf conftest*
22404 eval "ac_cv_header_$ac_safe=yes"
22405 else
22406 echo "$ac_err" >&5
22407 echo "configure: failed program was:" >&5
22408 cat conftest.$ac_ext >&5
22409 rm -rf conftest*
22410 eval "ac_cv_header_$ac_safe=no"
22412 rm -f conftest*
22414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22415 echo "$ac_t""yes" 1>&6
22416 ac_has_langinfo_h=yes
22417 else
22418 echo "$ac_t""no" 1>&6
22419 ac_has_langinfo_h=no
22423 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22424 echo "configure:22425: checking for iconv in -liconv" >&5
22425 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22426 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22427 echo $ac_n "(cached) $ac_c" 1>&6
22428 else
22429 ac_save_LIBS="$LIBS"
22430 LIBS="-liconv $LIBS"
22431 cat > conftest.$ac_ext <<EOF
22432 #line 22433 "configure"
22433 #include "confdefs.h"
22434 /* Override any gcc2 internal prototype to avoid an error. */
22435 /* We use char because int might match the return type of a gcc2
22436 builtin and then its argument prototype would still apply. */
22437 char iconv();
22439 int main() {
22440 iconv()
22441 ; return 0; }
22443 if { (eval echo configure:22444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22444 rm -rf conftest*
22445 eval "ac_cv_lib_$ac_lib_var=yes"
22446 else
22447 echo "configure: failed program was:" >&5
22448 cat conftest.$ac_ext >&5
22449 rm -rf conftest*
22450 eval "ac_cv_lib_$ac_lib_var=no"
22452 rm -f conftest*
22453 LIBS="$ac_save_LIBS"
22456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22457 echo "$ac_t""yes" 1>&6
22458 libiconv="-liconv"
22459 else
22460 echo "$ac_t""no" 1>&6
22463 ac_save_LIBS="$LIBS"
22464 LIBS="$LIBS $libiconv"
22466 for ac_func in iconv_open iconv_close iconv nl_langinfo
22468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22469 echo "configure:22470: checking for $ac_func" >&5
22470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22471 echo $ac_n "(cached) $ac_c" 1>&6
22472 else
22473 cat > conftest.$ac_ext <<EOF
22474 #line 22475 "configure"
22475 #include "confdefs.h"
22476 /* System header to define __stub macros and hopefully few prototypes,
22477 which can conflict with char $ac_func(); below. */
22478 #include <assert.h>
22479 /* Override any gcc2 internal prototype to avoid an error. */
22480 /* We use char because int might match the return type of a gcc2
22481 builtin and then its argument prototype would still apply. */
22482 char $ac_func();
22484 int main() {
22486 /* The GNU C library defines this for functions which it implements
22487 to always fail with ENOSYS. Some functions are actually named
22488 something starting with __ and the normal name is an alias. */
22489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22490 choke me
22491 #else
22492 $ac_func();
22493 #endif
22495 ; return 0; }
22497 if { (eval echo configure:22498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22498 rm -rf conftest*
22499 eval "ac_cv_func_$ac_func=yes"
22500 else
22501 echo "configure: failed program was:" >&5
22502 cat conftest.$ac_ext >&5
22503 rm -rf conftest*
22504 eval "ac_cv_func_$ac_func=no"
22506 rm -f conftest*
22509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22510 echo "$ac_t""yes" 1>&6
22511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22512 cat >> confdefs.h <<EOF
22513 #define $ac_tr_func 1
22516 ac_XPG2funcs=yes
22517 else
22518 echo "$ac_t""no" 1>&6
22519 ac_XPG2funcs=no
22521 done
22524 LIBS="$ac_save_LIBS"
22526 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22527 echo "configure:22528: checking for XPG2 wchar_t support" >&5
22528 if test x"$ac_has_iconv_h" = xyes &&
22529 test x"$ac_has_langinfo_h" = xyes &&
22530 test x"$ac_XPG2funcs" = xyes; then
22531 ac_XPG2_wchar_t=yes
22532 else
22533 ac_XPG2_wchar_t=no
22535 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22537 if test x"$ac_isoC99_wchar_t" = xyes &&
22538 test x"$ac_XPG2_wchar_t" = xyes; then
22539 cat >> confdefs.h <<\EOF
22540 #define _GLIBCPP_USE_WCHAR_T 1
22543 enable_wchar_t=yes
22546 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22547 echo "configure:22548: checking for enabled wchar_t specializations" >&5
22548 echo "$ac_t""$enable_wchar_t" 1>&6
22551 if test "$enable_wchar_t" = yes; then
22552 GLIBCPP_TEST_WCHAR_T_TRUE=
22553 GLIBCPP_TEST_WCHAR_T_FALSE='#'
22554 else
22555 GLIBCPP_TEST_WCHAR_T_TRUE='#'
22556 GLIBCPP_TEST_WCHAR_T_FALSE=
22560 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22561 ac_save_CXXFLAGS="$CXXFLAGS"
22562 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22565 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22566 echo "configure:22567: checking for strtold declaration" >&5
22567 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22568 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22569 echo $ac_n "(cached) $ac_c" 1>&6
22570 else
22573 ac_ext=C
22574 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22575 ac_cpp='$CXXCPP $CPPFLAGS'
22576 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22577 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22578 cross_compiling=$ac_cv_prog_cxx_cross
22580 cat > conftest.$ac_ext <<EOF
22581 #line 22582 "configure"
22582 #include "confdefs.h"
22583 #include <stdlib.h>
22584 int main() {
22585 strtold(0, 0);
22586 ; return 0; }
22588 if { (eval echo configure:22589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22589 rm -rf conftest*
22590 glibcpp_cv_func_strtold_use=yes
22591 else
22592 echo "configure: failed program was:" >&5
22593 cat conftest.$ac_ext >&5
22594 rm -rf conftest*
22595 glibcpp_cv_func_strtold_use=no
22597 rm -f conftest*
22598 ac_ext=c
22599 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22600 ac_cpp='$CPP $CPPFLAGS'
22601 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22602 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22603 cross_compiling=$ac_cv_prog_cc_cross
22609 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22610 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22611 for ac_func in strtold
22613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22614 echo "configure:22615: checking for $ac_func" >&5
22615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22616 echo $ac_n "(cached) $ac_c" 1>&6
22617 else
22618 cat > conftest.$ac_ext <<EOF
22619 #line 22620 "configure"
22620 #include "confdefs.h"
22621 /* System header to define __stub macros and hopefully few prototypes,
22622 which can conflict with char $ac_func(); below. */
22623 #include <assert.h>
22624 /* Override any gcc2 internal prototype to avoid an error. */
22625 /* We use char because int might match the return type of a gcc2
22626 builtin and then its argument prototype would still apply. */
22627 char $ac_func();
22629 int main() {
22631 /* The GNU C library defines this for functions which it implements
22632 to always fail with ENOSYS. Some functions are actually named
22633 something starting with __ and the normal name is an alias. */
22634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22635 choke me
22636 #else
22637 $ac_func();
22638 #endif
22640 ; return 0; }
22642 if { (eval echo configure:22643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22643 rm -rf conftest*
22644 eval "ac_cv_func_$ac_func=yes"
22645 else
22646 echo "configure: failed program was:" >&5
22647 cat conftest.$ac_ext >&5
22648 rm -rf conftest*
22649 eval "ac_cv_func_$ac_func=no"
22651 rm -f conftest*
22654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22655 echo "$ac_t""yes" 1>&6
22656 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22657 cat >> confdefs.h <<EOF
22658 #define $ac_tr_func 1
22661 else
22662 echo "$ac_t""no" 1>&6
22664 done
22669 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22670 echo "configure:22671: checking for strtof declaration" >&5
22671 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22672 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22673 echo $ac_n "(cached) $ac_c" 1>&6
22674 else
22677 ac_ext=C
22678 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22679 ac_cpp='$CXXCPP $CPPFLAGS'
22680 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22681 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22682 cross_compiling=$ac_cv_prog_cxx_cross
22684 cat > conftest.$ac_ext <<EOF
22685 #line 22686 "configure"
22686 #include "confdefs.h"
22687 #include <stdlib.h>
22688 int main() {
22689 strtof(0, 0);
22690 ; return 0; }
22692 if { (eval echo configure:22693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22693 rm -rf conftest*
22694 glibcpp_cv_func_strtof_use=yes
22695 else
22696 echo "configure: failed program was:" >&5
22697 cat conftest.$ac_ext >&5
22698 rm -rf conftest*
22699 glibcpp_cv_func_strtof_use=no
22701 rm -f conftest*
22702 ac_ext=c
22703 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22704 ac_cpp='$CPP $CPPFLAGS'
22705 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22706 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22707 cross_compiling=$ac_cv_prog_cc_cross
22713 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22714 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22715 for ac_func in strtof
22717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22718 echo "configure:22719: checking for $ac_func" >&5
22719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22720 echo $ac_n "(cached) $ac_c" 1>&6
22721 else
22722 cat > conftest.$ac_ext <<EOF
22723 #line 22724 "configure"
22724 #include "confdefs.h"
22725 /* System header to define __stub macros and hopefully few prototypes,
22726 which can conflict with char $ac_func(); below. */
22727 #include <assert.h>
22728 /* Override any gcc2 internal prototype to avoid an error. */
22729 /* We use char because int might match the return type of a gcc2
22730 builtin and then its argument prototype would still apply. */
22731 char $ac_func();
22733 int main() {
22735 /* The GNU C library defines this for functions which it implements
22736 to always fail with ENOSYS. Some functions are actually named
22737 something starting with __ and the normal name is an alias. */
22738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22739 choke me
22740 #else
22741 $ac_func();
22742 #endif
22744 ; return 0; }
22746 if { (eval echo configure:22747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22747 rm -rf conftest*
22748 eval "ac_cv_func_$ac_func=yes"
22749 else
22750 echo "configure: failed program was:" >&5
22751 cat conftest.$ac_ext >&5
22752 rm -rf conftest*
22753 eval "ac_cv_func_$ac_func=no"
22755 rm -f conftest*
22758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22759 echo "$ac_t""yes" 1>&6
22760 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22761 cat >> confdefs.h <<EOF
22762 #define $ac_tr_func 1
22765 else
22766 echo "$ac_t""no" 1>&6
22768 done
22772 for ac_func in drand48
22774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22775 echo "configure:22776: checking for $ac_func" >&5
22776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22777 echo $ac_n "(cached) $ac_c" 1>&6
22778 else
22779 cat > conftest.$ac_ext <<EOF
22780 #line 22781 "configure"
22781 #include "confdefs.h"
22782 /* System header to define __stub macros and hopefully few prototypes,
22783 which can conflict with char $ac_func(); below. */
22784 #include <assert.h>
22785 /* Override any gcc2 internal prototype to avoid an error. */
22786 /* We use char because int might match the return type of a gcc2
22787 builtin and then its argument prototype would still apply. */
22788 char $ac_func();
22790 int main() {
22792 /* The GNU C library defines this for functions which it implements
22793 to always fail with ENOSYS. Some functions are actually named
22794 something starting with __ and the normal name is an alias. */
22795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22796 choke me
22797 #else
22798 $ac_func();
22799 #endif
22801 ; return 0; }
22803 if { (eval echo configure:22804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22804 rm -rf conftest*
22805 eval "ac_cv_func_$ac_func=yes"
22806 else
22807 echo "configure: failed program was:" >&5
22808 cat conftest.$ac_ext >&5
22809 rm -rf conftest*
22810 eval "ac_cv_func_$ac_func=no"
22812 rm -f conftest*
22815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22816 echo "$ac_t""yes" 1>&6
22817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22818 cat >> confdefs.h <<EOF
22819 #define $ac_tr_func 1
22822 else
22823 echo "$ac_t""no" 1>&6
22825 done
22828 CXXFLAGS="$ac_save_CXXFLAGS"
22831 # For showmanyc_helper().
22832 for ac_hdr in sys/ioctl.h sys/filio.h
22834 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22835 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22836 echo "configure:22837: checking for $ac_hdr" >&5
22837 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22838 echo $ac_n "(cached) $ac_c" 1>&6
22839 else
22840 cat > conftest.$ac_ext <<EOF
22841 #line 22842 "configure"
22842 #include "confdefs.h"
22843 #include <$ac_hdr>
22845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22846 { (eval echo configure:22847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22848 if test -z "$ac_err"; then
22849 rm -rf conftest*
22850 eval "ac_cv_header_$ac_safe=yes"
22851 else
22852 echo "$ac_err" >&5
22853 echo "configure: failed program was:" >&5
22854 cat conftest.$ac_ext >&5
22855 rm -rf conftest*
22856 eval "ac_cv_header_$ac_safe=no"
22858 rm -f conftest*
22860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22861 echo "$ac_t""yes" 1>&6
22862 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22863 cat >> confdefs.h <<EOF
22864 #define $ac_tr_hdr 1
22867 else
22868 echo "$ac_t""no" 1>&6
22870 done
22873 if eval "test \"`echo '$''{'glibcpp_cv_POLL'+set}'`\" = set"; then
22874 echo $ac_n "(cached) $ac_c" 1>&6
22875 else
22877 cat > conftest.$ac_ext <<EOF
22878 #line 22879 "configure"
22879 #include "confdefs.h"
22880 #include <poll.h>
22881 int main() {
22882 struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0);
22883 ; return 0; }
22885 if { (eval echo configure:22886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22886 rm -rf conftest*
22887 glibcpp_cv_POLL=yes
22888 else
22889 echo "configure: failed program was:" >&5
22890 cat conftest.$ac_ext >&5
22891 rm -rf conftest*
22892 glibcpp_cv_POLL=no
22894 rm -f conftest*
22898 if test x$glibcpp_cv_POLL = xyes; then
22899 cat >> confdefs.h <<\EOF
22900 #define HAVE_POLL 1
22906 if eval "test \"`echo '$''{'glibcpp_cv_S_ISREG'+set}'`\" = set"; then
22907 echo $ac_n "(cached) $ac_c" 1>&6
22908 else
22910 cat > conftest.$ac_ext <<EOF
22911 #line 22912 "configure"
22912 #include "confdefs.h"
22913 #include <sys/stat.h>
22914 int main() {
22915 struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode);
22916 ; return 0; }
22918 if { (eval echo configure:22919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22919 rm -rf conftest*
22920 glibcpp_cv_S_ISREG=yes
22921 else
22922 echo "configure: failed program was:" >&5
22923 cat conftest.$ac_ext >&5
22924 rm -rf conftest*
22925 glibcpp_cv_S_ISREG=no
22927 rm -f conftest*
22931 if eval "test \"`echo '$''{'glibcpp_cv_S_IFREG'+set}'`\" = set"; then
22932 echo $ac_n "(cached) $ac_c" 1>&6
22933 else
22935 cat > conftest.$ac_ext <<EOF
22936 #line 22937 "configure"
22937 #include "confdefs.h"
22938 #include <sys/stat.h>
22939 int main() {
22940 struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode;
22941 ; return 0; }
22943 if { (eval echo configure:22944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22944 rm -rf conftest*
22945 glibcpp_cv_S_IFREG=yes
22946 else
22947 echo "configure: failed program was:" >&5
22948 cat conftest.$ac_ext >&5
22949 rm -rf conftest*
22950 glibcpp_cv_S_IFREG=no
22952 rm -f conftest*
22956 if test x$glibcpp_cv_S_ISREG = xyes; then
22957 cat >> confdefs.h <<\EOF
22958 #define HAVE_S_ISREG 1
22961 elif test x$glibcpp_cv_S_IFREG = xyes; then
22962 cat >> confdefs.h <<\EOF
22963 #define HAVE_S_IFREG 1
22970 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22971 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22972 echo "configure:22973: checking for locale.h" >&5
22973 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22974 echo $ac_n "(cached) $ac_c" 1>&6
22975 else
22976 cat > conftest.$ac_ext <<EOF
22977 #line 22978 "configure"
22978 #include "confdefs.h"
22979 #include <locale.h>
22981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22982 { (eval echo configure:22983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22984 if test -z "$ac_err"; then
22985 rm -rf conftest*
22986 eval "ac_cv_header_$ac_safe=yes"
22987 else
22988 echo "$ac_err" >&5
22989 echo "configure: failed program was:" >&5
22990 cat conftest.$ac_ext >&5
22991 rm -rf conftest*
22992 eval "ac_cv_header_$ac_safe=no"
22994 rm -f conftest*
22996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22997 echo "$ac_t""yes" 1>&6
22999 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
23000 echo "configure:23001: checking for LC_MESSAGES" >&5
23001 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
23002 echo $ac_n "(cached) $ac_c" 1>&6
23003 else
23004 cat > conftest.$ac_ext <<EOF
23005 #line 23006 "configure"
23006 #include "confdefs.h"
23007 #include <locale.h>
23008 int main() {
23009 return LC_MESSAGES
23010 ; return 0; }
23012 if { (eval echo configure:23013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23013 rm -rf conftest*
23014 ac_cv_val_LC_MESSAGES=yes
23015 else
23016 echo "configure: failed program was:" >&5
23017 cat conftest.$ac_ext >&5
23018 rm -rf conftest*
23019 ac_cv_val_LC_MESSAGES=no
23021 rm -f conftest*
23024 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
23025 if test $ac_cv_val_LC_MESSAGES = yes; then
23026 cat >> confdefs.h <<\EOF
23027 #define HAVE_LC_MESSAGES 1
23032 else
23033 echo "$ac_t""no" 1>&6
23038 cat > conftest.$ac_ext <<EOF
23039 #line 23040 "configure"
23040 #include "confdefs.h"
23042 #include <setjmp.h>
23044 int main() {
23045 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
23046 ; return 0; }
23048 if { (eval echo configure:23049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23049 rm -rf conftest*
23050 cat >> confdefs.h <<\EOF
23051 #define HAVE_SIGSETJMP 1
23055 else
23056 echo "configure: failed program was:" >&5
23057 cat conftest.$ac_ext >&5
23059 rm -f conftest*
23061 for ac_hdr in unistd.h
23063 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23064 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23065 echo "configure:23066: checking for $ac_hdr" >&5
23066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23067 echo $ac_n "(cached) $ac_c" 1>&6
23068 else
23069 cat > conftest.$ac_ext <<EOF
23070 #line 23071 "configure"
23071 #include "confdefs.h"
23072 #include <$ac_hdr>
23074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23075 { (eval echo configure:23076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23077 if test -z "$ac_err"; then
23078 rm -rf conftest*
23079 eval "ac_cv_header_$ac_safe=yes"
23080 else
23081 echo "$ac_err" >&5
23082 echo "configure: failed program was:" >&5
23083 cat conftest.$ac_ext >&5
23084 rm -rf conftest*
23085 eval "ac_cv_header_$ac_safe=no"
23087 rm -f conftest*
23089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23090 echo "$ac_t""yes" 1>&6
23091 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23092 cat >> confdefs.h <<EOF
23093 #define $ac_tr_hdr 1
23096 else
23097 echo "$ac_t""no" 1>&6
23099 done
23101 for ac_func in getpagesize
23103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23104 echo "configure:23105: checking for $ac_func" >&5
23105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23106 echo $ac_n "(cached) $ac_c" 1>&6
23107 else
23108 cat > conftest.$ac_ext <<EOF
23109 #line 23110 "configure"
23110 #include "confdefs.h"
23111 /* System header to define __stub macros and hopefully few prototypes,
23112 which can conflict with char $ac_func(); below. */
23113 #include <assert.h>
23114 /* Override any gcc2 internal prototype to avoid an error. */
23115 /* We use char because int might match the return type of a gcc2
23116 builtin and then its argument prototype would still apply. */
23117 char $ac_func();
23119 int main() {
23121 /* The GNU C library defines this for functions which it implements
23122 to always fail with ENOSYS. Some functions are actually named
23123 something starting with __ and the normal name is an alias. */
23124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23125 choke me
23126 #else
23127 $ac_func();
23128 #endif
23130 ; return 0; }
23132 if { (eval echo configure:23133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23133 rm -rf conftest*
23134 eval "ac_cv_func_$ac_func=yes"
23135 else
23136 echo "configure: failed program was:" >&5
23137 cat conftest.$ac_ext >&5
23138 rm -rf conftest*
23139 eval "ac_cv_func_$ac_func=no"
23141 rm -f conftest*
23144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23145 echo "$ac_t""yes" 1>&6
23146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23147 cat >> confdefs.h <<EOF
23148 #define $ac_tr_func 1
23151 else
23152 echo "$ac_t""no" 1>&6
23154 done
23156 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23157 echo "configure:23158: checking for working mmap" >&5
23158 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23159 echo $ac_n "(cached) $ac_c" 1>&6
23160 else
23161 if test "$cross_compiling" = yes; then
23162 ac_cv_func_mmap_fixed_mapped=no
23163 else
23164 cat > conftest.$ac_ext <<EOF
23165 #line 23166 "configure"
23166 #include "confdefs.h"
23168 /* Thanks to Mike Haertel and Jim Avera for this test.
23169 Here is a matrix of mmap possibilities:
23170 mmap private not fixed
23171 mmap private fixed at somewhere currently unmapped
23172 mmap private fixed at somewhere already mapped
23173 mmap shared not fixed
23174 mmap shared fixed at somewhere currently unmapped
23175 mmap shared fixed at somewhere already mapped
23176 For private mappings, we should verify that changes cannot be read()
23177 back from the file, nor mmap's back from the file at a different
23178 address. (There have been systems where private was not correctly
23179 implemented like the infamous i386 svr4.0, and systems where the
23180 VM page cache was not coherent with the filesystem buffer cache
23181 like early versions of FreeBSD and possibly contemporary NetBSD.)
23182 For shared mappings, we should conversely verify that changes get
23183 propogated back to all the places they're supposed to be.
23185 Grep wants private fixed already mapped.
23186 The main things grep needs to know about mmap are:
23187 * does it exist and is it safe to write into the mmap'd area
23188 * how to use it (BSD variants) */
23189 #include <sys/types.h>
23190 #include <fcntl.h>
23191 #include <sys/mman.h>
23193 /* This mess was copied from the GNU getpagesize.h. */
23194 #ifndef HAVE_GETPAGESIZE
23195 # ifdef HAVE_UNISTD_H
23196 # include <unistd.h>
23197 # endif
23199 /* Assume that all systems that can run configure have sys/param.h. */
23200 # ifndef HAVE_SYS_PARAM_H
23201 # define HAVE_SYS_PARAM_H 1
23202 # endif
23204 # ifdef _SC_PAGESIZE
23205 # define getpagesize() sysconf(_SC_PAGESIZE)
23206 # else /* no _SC_PAGESIZE */
23207 # ifdef HAVE_SYS_PARAM_H
23208 # include <sys/param.h>
23209 # ifdef EXEC_PAGESIZE
23210 # define getpagesize() EXEC_PAGESIZE
23211 # else /* no EXEC_PAGESIZE */
23212 # ifdef NBPG
23213 # define getpagesize() NBPG * CLSIZE
23214 # ifndef CLSIZE
23215 # define CLSIZE 1
23216 # endif /* no CLSIZE */
23217 # else /* no NBPG */
23218 # ifdef NBPC
23219 # define getpagesize() NBPC
23220 # else /* no NBPC */
23221 # ifdef PAGESIZE
23222 # define getpagesize() PAGESIZE
23223 # endif /* PAGESIZE */
23224 # endif /* no NBPC */
23225 # endif /* no NBPG */
23226 # endif /* no EXEC_PAGESIZE */
23227 # else /* no HAVE_SYS_PARAM_H */
23228 # define getpagesize() 8192 /* punt totally */
23229 # endif /* no HAVE_SYS_PARAM_H */
23230 # endif /* no _SC_PAGESIZE */
23232 #endif /* no HAVE_GETPAGESIZE */
23234 #ifdef __cplusplus
23235 extern "C" { void *malloc(unsigned); }
23236 #else
23237 char *malloc();
23238 #endif
23241 main()
23243 char *data, *data2, *data3;
23244 int i, pagesize;
23245 int fd;
23247 pagesize = getpagesize();
23250 * First, make a file with some known garbage in it.
23252 data = malloc(pagesize);
23253 if (!data)
23254 exit(1);
23255 for (i = 0; i < pagesize; ++i)
23256 *(data + i) = rand();
23257 umask(0);
23258 fd = creat("conftestmmap", 0600);
23259 if (fd < 0)
23260 exit(1);
23261 if (write(fd, data, pagesize) != pagesize)
23262 exit(1);
23263 close(fd);
23266 * Next, try to mmap the file at a fixed address which
23267 * already has something else allocated at it. If we can,
23268 * also make sure that we see the same garbage.
23270 fd = open("conftestmmap", O_RDWR);
23271 if (fd < 0)
23272 exit(1);
23273 data2 = malloc(2 * pagesize);
23274 if (!data2)
23275 exit(1);
23276 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23277 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23278 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23279 exit(1);
23280 for (i = 0; i < pagesize; ++i)
23281 if (*(data + i) != *(data2 + i))
23282 exit(1);
23285 * Finally, make sure that changes to the mapped area
23286 * do not percolate back to the file as seen by read().
23287 * (This is a bug on some variants of i386 svr4.0.)
23289 for (i = 0; i < pagesize; ++i)
23290 *(data2 + i) = *(data2 + i) + 1;
23291 data3 = malloc(pagesize);
23292 if (!data3)
23293 exit(1);
23294 if (read(fd, data3, pagesize) != pagesize)
23295 exit(1);
23296 for (i = 0; i < pagesize; ++i)
23297 if (*(data + i) != *(data3 + i))
23298 exit(1);
23299 close(fd);
23300 unlink("conftestmmap");
23301 exit(0);
23305 if { (eval echo configure:23306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23306 then
23307 ac_cv_func_mmap_fixed_mapped=yes
23308 else
23309 echo "configure: failed program was:" >&5
23310 cat conftest.$ac_ext >&5
23311 rm -fr conftest*
23312 ac_cv_func_mmap_fixed_mapped=no
23314 rm -fr conftest*
23319 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23320 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23321 cat >> confdefs.h <<\EOF
23322 #define HAVE_MMAP 1
23328 # Establish limits on memory usage during 'make check'
23331 setrlimit_have_headers=yes
23332 for ac_hdr in unistd.h sys/time.h sys/resource.h
23334 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23335 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23336 echo "configure:23337: checking for $ac_hdr" >&5
23337 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23338 echo $ac_n "(cached) $ac_c" 1>&6
23339 else
23340 cat > conftest.$ac_ext <<EOF
23341 #line 23342 "configure"
23342 #include "confdefs.h"
23343 #include <$ac_hdr>
23345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23346 { (eval echo configure:23347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23348 if test -z "$ac_err"; then
23349 rm -rf conftest*
23350 eval "ac_cv_header_$ac_safe=yes"
23351 else
23352 echo "$ac_err" >&5
23353 echo "configure: failed program was:" >&5
23354 cat conftest.$ac_ext >&5
23355 rm -rf conftest*
23356 eval "ac_cv_header_$ac_safe=no"
23358 rm -f conftest*
23360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23361 echo "$ac_t""yes" 1>&6
23362 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23363 cat >> confdefs.h <<EOF
23364 #define $ac_tr_hdr 1
23367 else
23368 echo "$ac_t""no" 1>&6
23369 setrlimit_have_headers=no
23371 done
23373 # If don't have the headers, then we can't run the tests now, and we
23374 # won't be seeing any of these during testsuite compilation.
23375 if test $setrlimit_have_headers = yes; then
23376 # Can't do these in a loop, else the resulting syntax is wrong.
23378 cat > conftest.$ac_ext <<EOF
23379 #line 23380 "configure"
23380 #include "confdefs.h"
23381 #include <unistd.h>
23382 #include <sys/time.h>
23383 #include <sys/resource.h>
23385 int main() {
23386 int f = RLIMIT_DATA ;
23387 ; return 0; }
23389 if { (eval echo configure:23390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23390 rm -rf conftest*
23391 glibcpp_mresult=1
23392 else
23393 echo "configure: failed program was:" >&5
23394 cat conftest.$ac_ext >&5
23395 rm -rf conftest*
23396 glibcpp_mresult=0
23398 rm -f conftest*
23399 cat >> confdefs.h <<EOF
23400 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23405 cat > conftest.$ac_ext <<EOF
23406 #line 23407 "configure"
23407 #include "confdefs.h"
23408 #include <unistd.h>
23409 #include <sys/time.h>
23410 #include <sys/resource.h>
23412 int main() {
23413 int f = RLIMIT_RSS ;
23414 ; return 0; }
23416 if { (eval echo configure:23417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23417 rm -rf conftest*
23418 glibcpp_mresult=1
23419 else
23420 echo "configure: failed program was:" >&5
23421 cat conftest.$ac_ext >&5
23422 rm -rf conftest*
23423 glibcpp_mresult=0
23425 rm -f conftest*
23426 cat >> confdefs.h <<EOF
23427 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23432 cat > conftest.$ac_ext <<EOF
23433 #line 23434 "configure"
23434 #include "confdefs.h"
23435 #include <unistd.h>
23436 #include <sys/time.h>
23437 #include <sys/resource.h>
23439 int main() {
23440 int f = RLIMIT_VMEM ;
23441 ; return 0; }
23443 if { (eval echo configure:23444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23444 rm -rf conftest*
23445 glibcpp_mresult=1
23446 else
23447 echo "configure: failed program was:" >&5
23448 cat conftest.$ac_ext >&5
23449 rm -rf conftest*
23450 glibcpp_mresult=0
23452 rm -f conftest*
23453 cat >> confdefs.h <<EOF
23454 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23459 cat > conftest.$ac_ext <<EOF
23460 #line 23461 "configure"
23461 #include "confdefs.h"
23462 #include <unistd.h>
23463 #include <sys/time.h>
23464 #include <sys/resource.h>
23466 int main() {
23467 int f = RLIMIT_AS ;
23468 ; return 0; }
23470 if { (eval echo configure:23471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23471 rm -rf conftest*
23472 glibcpp_mresult=1
23473 else
23474 echo "configure: failed program was:" >&5
23475 cat conftest.$ac_ext >&5
23476 rm -rf conftest*
23477 glibcpp_mresult=0
23479 rm -f conftest*
23480 cat >> confdefs.h <<EOF
23481 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23486 # Check for rlimit, setrlimit.
23487 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23488 echo $ac_n "(cached) $ac_c" 1>&6
23489 else
23491 cat > conftest.$ac_ext <<EOF
23492 #line 23493 "configure"
23493 #include "confdefs.h"
23494 #include <unistd.h>
23495 #include <sys/time.h>
23496 #include <sys/resource.h>
23498 int main() {
23499 struct rlimit r; setrlimit(0, &r);
23500 ; return 0; }
23502 if { (eval echo configure:23503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23503 rm -rf conftest*
23504 ac_setrlimit=yes
23505 else
23506 echo "configure: failed program was:" >&5
23507 cat conftest.$ac_ext >&5
23508 rm -rf conftest*
23509 ac_setrlimit=no
23511 rm -f conftest*
23517 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23518 echo "configure:23519: checking for testsuite memory limit support" >&5
23519 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23520 ac_mem_limits=yes
23521 cat >> confdefs.h <<\EOF
23522 #define _GLIBCPP_MEM_LIMITS 1
23525 else
23526 ac_mem_limits=no
23528 echo "$ac_t""$ac_mem_limits" 1>&6
23531 # Look for setenv, so that extended locale tests can be performed.
23533 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23534 echo "configure:23535: checking for setenv declaration" >&5
23535 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23536 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23537 echo $ac_n "(cached) $ac_c" 1>&6
23538 else
23541 ac_ext=C
23542 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23543 ac_cpp='$CXXCPP $CPPFLAGS'
23544 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23545 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23546 cross_compiling=$ac_cv_prog_cxx_cross
23548 cat > conftest.$ac_ext <<EOF
23549 #line 23550 "configure"
23550 #include "confdefs.h"
23551 #include <stdlib.h>
23552 int main() {
23553 setenv(0, 0, 0);
23554 ; return 0; }
23556 if { (eval echo configure:23557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23557 rm -rf conftest*
23558 glibcpp_cv_func_setenv_use=yes
23559 else
23560 echo "configure: failed program was:" >&5
23561 cat conftest.$ac_ext >&5
23562 rm -rf conftest*
23563 glibcpp_cv_func_setenv_use=no
23565 rm -f conftest*
23566 ac_ext=c
23567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23568 ac_cpp='$CPP $CPPFLAGS'
23569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23571 cross_compiling=$ac_cv_prog_cc_cross
23577 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23578 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23579 for ac_func in setenv
23581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23582 echo "configure:23583: checking for $ac_func" >&5
23583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23584 echo $ac_n "(cached) $ac_c" 1>&6
23585 else
23586 cat > conftest.$ac_ext <<EOF
23587 #line 23588 "configure"
23588 #include "confdefs.h"
23589 /* System header to define __stub macros and hopefully few prototypes,
23590 which can conflict with char $ac_func(); below. */
23591 #include <assert.h>
23592 /* Override any gcc2 internal prototype to avoid an error. */
23593 /* We use char because int might match the return type of a gcc2
23594 builtin and then its argument prototype would still apply. */
23595 char $ac_func();
23597 int main() {
23599 /* The GNU C library defines this for functions which it implements
23600 to always fail with ENOSYS. Some functions are actually named
23601 something starting with __ and the normal name is an alias. */
23602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23603 choke me
23604 #else
23605 $ac_func();
23606 #endif
23608 ; return 0; }
23610 if { (eval echo configure:23611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23611 rm -rf conftest*
23612 eval "ac_cv_func_$ac_func=yes"
23613 else
23614 echo "configure: failed program was:" >&5
23615 cat conftest.$ac_ext >&5
23616 rm -rf conftest*
23617 eval "ac_cv_func_$ac_func=no"
23619 rm -f conftest*
23622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23623 echo "$ac_t""yes" 1>&6
23624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23625 cat >> confdefs.h <<EOF
23626 #define $ac_tr_func 1
23629 else
23630 echo "$ac_t""no" 1>&6
23632 done
23637 # Export file names for ABI checking.
23638 baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23641 case "$target" in
23642 *-*-cygwin* ) enable_abi_check=no ;;
23643 * ) enable_abi_check=yes ;;
23644 esac
23646 # Don't do ABI checking unless native.
23649 if test x"$build" = x"$host" && test -z "$with_cross_host" \
23650 && test "$enable_abi_check" = yes ; then
23651 GLIBCPP_BUILD_ABI_CHECK_TRUE=
23652 GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23653 else
23654 GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23655 GLIBCPP_BUILD_ABI_CHECK_FALSE=
23660 # This depends on the possibly-skipped linker test above.
23661 # Check whether --enable-symvers or --disable-symvers was given.
23662 if test "${enable_symvers+set}" = set; then
23663 enableval="$enable_symvers"
23664 case "$enableval" in
23665 yes) enable_symvers=yes ;;
23666 no) enable_symvers=no ;;
23667 # other names here, just as sanity checks
23668 #gnu|sun|etcetera) enable_symvers=$enableval ;;
23669 gnu) enable_symvers=$enableval ;;
23670 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23671 esac
23672 else
23673 enable_symvers=yes
23676 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23677 # don't know enough about $LD to do tricks...
23678 if test x$enable_shared = xno ||
23679 test "x$LD" = x ||
23680 test x$glibcpp_gnu_ld_version = x; then
23681 enable_symvers=no
23684 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23685 if test $enable_symvers != no; then
23686 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23687 echo "configure:23688: checking for shared libgcc" >&5
23688 ac_save_CFLAGS="$CFLAGS"
23689 CFLAGS=' -lgcc_s'
23690 cat > conftest.$ac_ext <<EOF
23691 #line 23692 "configure"
23692 #include "confdefs.h"
23694 int main() {
23695 return 0
23696 ; return 0; }
23698 if { (eval echo configure:23699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23699 rm -rf conftest*
23700 glibcpp_shared_libgcc=yes
23701 else
23702 echo "configure: failed program was:" >&5
23703 cat conftest.$ac_ext >&5
23704 rm -rf conftest*
23705 glibcpp_shared_libgcc=no
23707 rm -f conftest*
23708 CFLAGS="$ac_save_CFLAGS"
23709 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23712 # For GNU ld, we need at least this version. It's 2.12 in the same format
23713 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
23714 glibcpp_min_gnu_ld_version=21200
23716 # Check to see if unspecified "yes" value can win, given results
23717 # above.
23718 if test $enable_symvers = yes ; then
23719 if test $with_gnu_ld = yes &&
23720 test $glibcpp_shared_libgcc = yes ;
23721 then
23722 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23723 enable_symvers=gnu
23724 else
23725 ac_test_CFLAGS="${CFLAGS+set}"
23726 ac_save_CFLAGS="$CFLAGS"
23727 CFLAGS='-shared -Wl,--version-script,conftest.map'
23728 enable_symvers=no
23730 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23732 cat > conftest.$ac_ext <<EOF
23733 #line 23734 "configure"
23734 #include "confdefs.h"
23735 int foo;
23736 int main() {
23738 ; return 0; }
23740 if { (eval echo configure:23741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23741 rm -rf conftest*
23742 enable_symvers=gnu
23743 else
23744 echo "configure: failed program was:" >&5
23745 cat conftest.$ac_ext >&5
23747 rm -f conftest*
23748 if test "$ac_test_CFLAGS" = set; then
23749 CFLAGS="$ac_save_CFLAGS"
23750 else
23751 # this is the suspicious part
23752 CFLAGS=''
23754 rm -f conftest.map
23756 else
23757 # just fail for now
23758 enable_symvers=no
23762 case $enable_symvers in
23764 SYMVER_MAP=config/linker-map.dummy
23766 gnu)
23767 SYMVER_MAP=config/linker-map.gnu
23768 cat >> confdefs.h <<\EOF
23769 #define _GLIBCPP_SYMVER 1
23773 esac
23778 if test $enable_symvers != no; then
23779 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23780 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23781 else
23782 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23783 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23785 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23786 echo "configure:23787: checking versioning on shared library symbols" >&5
23787 echo "$ac_t""$enable_symvers" 1>&6
23790 # Propagate the target-specific source directories through the build chain.
23791 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
23792 # uses it, and it only gets used in this file.)
23793 OS_INC_SRCDIR=config/${os_include_dir}
23794 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23798 # Set up cross-compile flags
23801 if test "$CANADIAN" = yes; then
23802 CANADIAN_TRUE=
23803 CANADIAN_FALSE='#'
23804 else
23805 CANADIAN_TRUE='#'
23806 CANADIAN_FALSE=
23809 cat > confcache <<\EOF
23810 # This file is a shell script that caches the results of configure
23811 # tests run on this system so they can be shared between configure
23812 # scripts and configure runs. It is not useful on other systems.
23813 # If it contains results you don't want to keep, you may remove or edit it.
23815 # By default, configure uses ./config.cache as the cache file,
23816 # creating it if it does not exist already. You can give configure
23817 # the --cache-file=FILE option to use a different cache file; that is
23818 # what configure does when it calls configure scripts in
23819 # subdirectories, so they share the cache.
23820 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23821 # config.status only pays attention to the cache file if you give it the
23822 # --recheck option to rerun configure.
23825 # The following way of writing the cache mishandles newlines in values,
23826 # but we know of no workaround that is simple, portable, and efficient.
23827 # So, don't put newlines in cache variables' values.
23828 # Ultrix sh set writes to stderr and can't be redirected directly,
23829 # and sets the high bit in the cache file unless we assign to the vars.
23830 (set) 2>&1 |
23831 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23832 *ac_space=\ *)
23833 # `set' does not quote correctly, so add quotes (double-quote substitution
23834 # turns \\\\ into \\, and sed turns \\ into \).
23835 sed -n \
23836 -e "s/'/'\\\\''/g" \
23837 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23840 # `set' quotes correctly as required by POSIX, so do not add quotes.
23841 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23843 esac >> confcache
23844 if cmp -s $cache_file confcache; then
23846 else
23847 if test -w $cache_file; then
23848 echo "updating cache $cache_file"
23849 cat confcache > $cache_file
23850 else
23851 echo "not updating unwritable cache $cache_file"
23854 rm -f confcache
23857 if test "${multilib}" = "yes"; then
23858 multilib_arg="--enable-multilib"
23859 else
23860 multilib_arg=
23863 # Export all the install information
23865 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23866 # exported correctly in GLIBCPP_CONFIGURE.
23867 glibcpp_toolexecdir=no
23868 glibcpp_toolexeclibdir=no
23869 glibcpp_prefixdir=${prefix}
23871 # Process the option --with-gxx-include-dir=<path to include-files directory>
23872 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23873 echo "configure:23874: checking for --with-gxx-include-dir" >&5
23874 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23875 if test "${with_gxx_include_dir+set}" = set; then
23876 withval="$with_gxx_include_dir"
23877 case "${withval}" in
23878 yes)
23879 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23880 gxx_include_dir=no
23883 gxx_include_dir=no
23886 gxx_include_dir=${withval}
23888 esac
23889 else
23890 gxx_include_dir=no
23893 echo "$ac_t""$gxx_include_dir" 1>&6
23895 # Process the option "--enable-version-specific-runtime-libs"
23896 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23897 echo "configure:23898: checking for --enable-version-specific-runtime-libs" >&5
23898 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23899 if test "${enable_version_specific_runtime_libs+set}" = set; then
23900 enableval="$enable_version_specific_runtime_libs"
23901 case "$enableval" in
23902 yes) version_specific_libs=yes ;;
23903 no) version_specific_libs=no ;;
23904 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23905 esac
23906 else
23907 version_specific_libs=no
23909 # Option set, now we can test it.
23910 echo "$ac_t""$version_specific_libs" 1>&6
23912 # Default case for install directory for include files.
23913 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23914 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23917 # Version-specific runtime libs processing.
23918 if test $version_specific_libs = yes; then
23919 # Need the gcc compiler version to know where to install libraries
23920 # and header files if --enable-version-specific-runtime-libs option
23921 # is selected.
23922 if test x"$gxx_include_dir" = x"no"; then
23923 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23925 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23926 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23929 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23930 # Install a library built with a cross compiler in tooldir, not libdir.
23931 if test x"$glibcpp_toolexecdir" = x"no"; then
23932 if test -n "$with_cross_host" &&
23933 test x"$with_cross_host" != x"no"; then
23934 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23935 glibcpp_toolexeclibdir='$(toolexecdir)/lib'
23936 else
23937 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23938 glibcpp_toolexeclibdir='$(libdir)'
23940 multi_os_directory=`$CC -print-multi-os-directory`
23941 case $multi_os_directory in
23942 .) ;; # Avoid trailing /.
23943 *) glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/$multi_os_directory ;;
23944 esac
23947 echo $ac_n "checking for install location""... $ac_c" 1>&6
23948 echo "configure:23949: checking for install location" >&5
23949 echo "$ac_t""$gxx_include_dir" 1>&6
23957 # Export all the include and flag information to Makefiles.
23959 # Root level of the build directory include sources.
23960 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
23962 # Passed down for canadian crosses.
23963 if test x"$CANADIAN" = xyes; then
23964 TOPLEVEL_INCLUDES='-I$(includedir)'
23967 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23969 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23971 if test x"$need_libio" = xyes; then
23972 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
23976 # Now, export this to all the little Makefiles....
23983 # Optimization flags that are probably a good idea for thrill-seekers. Just
23984 # uncomment the lines below and make, everything else is ready to go...
23985 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
23986 OPTIMIZE_CXXFLAGS=
23989 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
23993 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23994 grep "enable shared" > /dev/null; then
23995 LIBSUPCXX_PICFLAGS=-prefer-pic
23996 else
23997 LIBSUPCXX_PICFLAGS=
24001 # Generate the various Makefiles, include files, and scripts.
24002 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
24003 # and libsupc++/Makefile.am so that multilib installs will end up
24004 # installed in the correct place. To work around this not being passed
24005 # down from config-ml.in -> top_srcdir/Makefile.am ->
24006 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
24007 trap '' 1 2 15
24008 cat > confcache <<\EOF
24009 # This file is a shell script that caches the results of configure
24010 # tests run on this system so they can be shared between configure
24011 # scripts and configure runs. It is not useful on other systems.
24012 # If it contains results you don't want to keep, you may remove or edit it.
24014 # By default, configure uses ./config.cache as the cache file,
24015 # creating it if it does not exist already. You can give configure
24016 # the --cache-file=FILE option to use a different cache file; that is
24017 # what configure does when it calls configure scripts in
24018 # subdirectories, so they share the cache.
24019 # Giving --cache-file=/dev/null disables caching, for debugging configure.
24020 # config.status only pays attention to the cache file if you give it the
24021 # --recheck option to rerun configure.
24024 # The following way of writing the cache mishandles newlines in values,
24025 # but we know of no workaround that is simple, portable, and efficient.
24026 # So, don't put newlines in cache variables' values.
24027 # Ultrix sh set writes to stderr and can't be redirected directly,
24028 # and sets the high bit in the cache file unless we assign to the vars.
24029 (set) 2>&1 |
24030 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24031 *ac_space=\ *)
24032 # `set' does not quote correctly, so add quotes (double-quote substitution
24033 # turns \\\\ into \\, and sed turns \\ into \).
24034 sed -n \
24035 -e "s/'/'\\\\''/g" \
24036 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
24039 # `set' quotes correctly as required by POSIX, so do not add quotes.
24040 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
24042 esac >> confcache
24043 if cmp -s $cache_file confcache; then
24045 else
24046 if test -w $cache_file; then
24047 echo "updating cache $cache_file"
24048 cat confcache > $cache_file
24049 else
24050 echo "not updating unwritable cache $cache_file"
24053 rm -f confcache
24055 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24057 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24058 # Let make expand exec_prefix.
24059 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24061 # Any assignment to VPATH causes Sun make to only execute
24062 # the first set of double-colon rules, so remove it if not needed.
24063 # If there is a colon in the path, we need to keep it.
24064 if test "x$srcdir" = x.; then
24065 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
24068 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24070 DEFS=-DHAVE_CONFIG_H
24072 # Without the "./", some shells look in PATH for config.status.
24073 : ${CONFIG_STATUS=./config.status}
24075 echo creating $CONFIG_STATUS
24076 rm -f $CONFIG_STATUS
24077 cat > $CONFIG_STATUS <<EOF
24078 #! /bin/sh
24079 # Generated automatically by configure.
24080 # Run this file to recreate the current configuration.
24081 # This directory was configured as follows,
24082 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24084 # $0 $ac_configure_args
24086 # Compiler output produced by configure, useful for debugging
24087 # configure, is in ./config.log if it exists.
24089 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24090 for ac_option
24092 case "\$ac_option" in
24093 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24094 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24095 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24096 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24097 echo "$CONFIG_STATUS generated by autoconf version 2.13"
24098 exit 0 ;;
24099 -help | --help | --hel | --he | --h)
24100 echo "\$ac_cs_usage"; exit 0 ;;
24101 *) echo "\$ac_cs_usage"; exit 1 ;;
24102 esac
24103 done
24105 ac_given_srcdir=$srcdir
24106 ac_given_INSTALL="$INSTALL"
24108 trap 'rm -fr `echo "Makefile \
24109 include/Makefile src/Makefile \
24110 libmath/Makefile libio/Makefile libsupc++/Makefile \
24111 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24113 cat >> $CONFIG_STATUS <<EOF
24115 # Protect against being on the right side of a sed subst in config.status.
24116 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24117 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24118 $ac_vpsub
24119 $extrasub
24120 s%@SHELL@%$SHELL%g
24121 s%@CFLAGS@%$CFLAGS%g
24122 s%@CPPFLAGS@%$CPPFLAGS%g
24123 s%@CXXFLAGS@%$CXXFLAGS%g
24124 s%@FFLAGS@%$FFLAGS%g
24125 s%@DEFS@%$DEFS%g
24126 s%@LDFLAGS@%$LDFLAGS%g
24127 s%@LIBS@%$LIBS%g
24128 s%@exec_prefix@%$exec_prefix%g
24129 s%@prefix@%$prefix%g
24130 s%@program_transform_name@%$program_transform_name%g
24131 s%@bindir@%$bindir%g
24132 s%@sbindir@%$sbindir%g
24133 s%@libexecdir@%$libexecdir%g
24134 s%@datadir@%$datadir%g
24135 s%@sysconfdir@%$sysconfdir%g
24136 s%@sharedstatedir@%$sharedstatedir%g
24137 s%@localstatedir@%$localstatedir%g
24138 s%@libdir@%$libdir%g
24139 s%@includedir@%$includedir%g
24140 s%@oldincludedir@%$oldincludedir%g
24141 s%@infodir@%$infodir%g
24142 s%@mandir@%$mandir%g
24143 s%@PACKAGE@%$PACKAGE%g
24144 s%@libtool_VERSION@%$libtool_VERSION%g
24145 s%@toplevel_srcdir@%$toplevel_srcdir%g
24146 s%@host@%$host%g
24147 s%@host_alias@%$host_alias%g
24148 s%@host_cpu@%$host_cpu%g
24149 s%@host_vendor@%$host_vendor%g
24150 s%@host_os@%$host_os%g
24151 s%@target@%$target%g
24152 s%@target_alias@%$target_alias%g
24153 s%@target_cpu@%$target_cpu%g
24154 s%@target_vendor@%$target_vendor%g
24155 s%@target_os@%$target_os%g
24156 s%@build@%$build%g
24157 s%@build_alias@%$build_alias%g
24158 s%@build_cpu@%$build_cpu%g
24159 s%@build_vendor@%$build_vendor%g
24160 s%@build_os@%$build_os%g
24161 s%@glibcpp_builddir@%$glibcpp_builddir%g
24162 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
24163 s%@AWK@%$AWK%g
24164 s%@LN_S@%$LN_S%g
24165 s%@glibcpp_basedir@%$glibcpp_basedir%g
24166 s%@CC@%$CC%g
24167 s%@glibcpp_CXX@%$glibcpp_CXX%g
24168 s%@AS@%$AS%g
24169 s%@AR@%$AR%g
24170 s%@RANLIB@%$RANLIB%g
24171 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24172 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24173 s%@INSTALL_DATA@%$INSTALL_DATA%g
24174 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24175 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24176 s%@MAINT@%$MAINT%g
24177 s%@EXEEXT@%$EXEEXT%g
24178 s%@VERSION@%$VERSION%g
24179 s%@ACLOCAL@%$ACLOCAL%g
24180 s%@AUTOCONF@%$AUTOCONF%g
24181 s%@AUTOMAKE@%$AUTOMAKE%g
24182 s%@AUTOHEADER@%$AUTOHEADER%g
24183 s%@MAKEINFO@%$MAKEINFO%g
24184 s%@SET_MAKE@%$SET_MAKE%g
24185 s%@OBJEXT@%$OBJEXT%g
24186 s%@STRIP@%$STRIP%g
24187 s%@LIBTOOL@%$LIBTOOL%g
24188 s%@CXXCPP@%$CXXCPP%g
24189 s%@enable_shared@%$enable_shared%g
24190 s%@enable_static@%$enable_static%g
24191 s%@ifGNUmake@%$ifGNUmake%g
24192 s%@GLIBCPP_BUILD_PCH_TRUE@%$GLIBCPP_BUILD_PCH_TRUE%g
24193 s%@GLIBCPP_BUILD_PCH_FALSE@%$GLIBCPP_BUILD_PCH_FALSE%g
24194 s%@CPP@%$CPP%g
24195 s%@CSTDIO_H@%$CSTDIO_H%g
24196 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24197 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24198 s%@CCODECVT_C@%$CCODECVT_C%g
24199 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
24200 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
24201 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
24202 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
24203 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
24204 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
24205 s%@libio_la@%$libio_la%g
24206 s%@check_msgfmt@%$check_msgfmt%g
24207 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24208 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24209 s%@glibcpp_localedir@%$glibcpp_localedir%g
24210 s%@USE_NLS@%$USE_NLS%g
24211 s%@CLOCALE_H@%$CLOCALE_H%g
24212 s%@CCODECVT_H@%$CCODECVT_H%g
24213 s%@CMESSAGES_H@%$CMESSAGES_H%g
24214 s%@CCODECVT_CC@%$CCODECVT_CC%g
24215 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24216 s%@CCTYPE_CC@%$CCTYPE_CC%g
24217 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24218 s%@CMONEY_CC@%$CMONEY_CC%g
24219 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24220 s%@CTIME_H@%$CTIME_H%g
24221 s%@CTIME_CC@%$CTIME_CC%g
24222 s%@CLOCALE_CC@%$CLOCALE_CC%g
24223 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24224 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24225 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24226 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24227 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24228 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24229 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24230 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24231 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24232 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24233 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24234 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24235 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24236 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24237 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24238 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24239 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24240 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24241 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24242 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24243 s%@GLIBCPP_TEST_WCHAR_T_TRUE@%$GLIBCPP_TEST_WCHAR_T_TRUE%g
24244 s%@GLIBCPP_TEST_WCHAR_T_FALSE@%$GLIBCPP_TEST_WCHAR_T_FALSE%g
24245 s%@WERROR@%$WERROR%g
24246 s%@baseline_file@%$baseline_file%g
24247 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
24248 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
24249 s%@SYMVER_MAP@%$SYMVER_MAP%g
24250 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24251 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24252 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24253 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24254 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24255 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24256 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24257 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24258 s%@gxx_include_dir@%$gxx_include_dir%g
24259 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24260 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24261 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
24262 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24263 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24264 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24265 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24266 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24267 s%@WARN_FLAGS@%$WARN_FLAGS%g
24268 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24270 CEOF
24273 cat >> $CONFIG_STATUS <<\EOF
24275 # Split the substitutions into bite-sized pieces for seds with
24276 # small command number limits, like on Digital OSF/1 and HP-UX.
24277 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24278 ac_file=1 # Number of current file.
24279 ac_beg=1 # First line for current file.
24280 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24281 ac_more_lines=:
24282 ac_sed_cmds=""
24283 while $ac_more_lines; do
24284 if test $ac_beg -gt 1; then
24285 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24286 else
24287 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24289 if test ! -s conftest.s$ac_file; then
24290 ac_more_lines=false
24291 rm -f conftest.s$ac_file
24292 else
24293 if test -z "$ac_sed_cmds"; then
24294 ac_sed_cmds="sed -f conftest.s$ac_file"
24295 else
24296 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24298 ac_file=`expr $ac_file + 1`
24299 ac_beg=$ac_end
24300 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24302 done
24303 if test -z "$ac_sed_cmds"; then
24304 ac_sed_cmds=cat
24308 cat >> $CONFIG_STATUS <<EOF
24310 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24311 include/Makefile src/Makefile \
24312 libmath/Makefile libio/Makefile libsupc++/Makefile \
24313 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
24315 cat >> $CONFIG_STATUS <<\EOF
24316 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24317 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24318 case "$ac_file" in
24319 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24320 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24321 *) ac_file_in="${ac_file}.in" ;;
24322 esac
24324 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24326 # Remove last slash and all that follows it. Not all systems have dirname.
24327 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24328 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24329 # The file is in a subdirectory.
24330 test ! -d "$ac_dir" && mkdir "$ac_dir"
24331 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24332 # A "../" for each directory in $ac_dir_suffix.
24333 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24334 else
24335 ac_dir_suffix= ac_dots=
24338 case "$ac_given_srcdir" in
24339 .) srcdir=.
24340 if test -z "$ac_dots"; then top_srcdir=.
24341 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24342 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24343 *) # Relative path.
24344 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24345 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24346 esac
24348 case "$ac_given_INSTALL" in
24349 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24350 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24351 esac
24353 echo creating "$ac_file"
24354 rm -f "$ac_file"
24355 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24356 case "$ac_file" in
24357 *Makefile*) ac_comsub="1i\\
24358 # $configure_input" ;;
24359 *) ac_comsub= ;;
24360 esac
24362 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24363 sed -e "$ac_comsub
24364 s%@configure_input@%$configure_input%g
24365 s%@srcdir@%$srcdir%g
24366 s%@top_srcdir@%$top_srcdir%g
24367 s%@INSTALL@%$INSTALL%g
24368 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24369 fi; done
24370 rm -f conftest.s*
24372 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24373 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24375 # ac_d sets the value in "#define NAME VALUE" lines.
24376 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24377 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24378 ac_dC='\3'
24379 ac_dD='%g'
24380 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24381 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24382 ac_uB='\([ ]\)%\1#\2define\3'
24383 ac_uC=' '
24384 ac_uD='\4%g'
24385 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24386 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24387 ac_eB='$%\1#\2define\3'
24388 ac_eC=' '
24389 ac_eD='%g'
24391 if test "${CONFIG_HEADERS+set}" != set; then
24393 cat >> $CONFIG_STATUS <<EOF
24394 CONFIG_HEADERS="config.h"
24396 cat >> $CONFIG_STATUS <<\EOF
24398 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24399 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24400 case "$ac_file" in
24401 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24402 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24403 *) ac_file_in="${ac_file}.in" ;;
24404 esac
24406 echo creating $ac_file
24408 rm -f conftest.frag conftest.in conftest.out
24409 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24410 cat $ac_file_inputs > conftest.in
24414 # Transform confdefs.h into a sed script conftest.vals that substitutes
24415 # the proper values into config.h.in to produce config.h. And first:
24416 # Protect against being on the right side of a sed subst in config.status.
24417 # Protect against being in an unquoted here document in config.status.
24418 rm -f conftest.vals
24419 cat > conftest.hdr <<\EOF
24420 s/[\\&%]/\\&/g
24421 s%[\\$`]%\\&%g
24422 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24423 s%ac_d%ac_u%gp
24424 s%ac_u%ac_e%gp
24426 sed -n -f conftest.hdr confdefs.h > conftest.vals
24427 rm -f conftest.hdr
24429 # This sed command replaces #undef with comments. This is necessary, for
24430 # example, in the case of _POSIX_SOURCE, which is predefined and required
24431 # on some systems where configure will not decide to define it.
24432 cat >> conftest.vals <<\EOF
24433 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24436 # Break up conftest.vals because some shells have a limit on
24437 # the size of here documents, and old seds have small limits too.
24439 rm -f conftest.tail
24440 while :
24442 ac_lines=`grep -c . conftest.vals`
24443 # grep -c gives empty output for an empty file on some AIX systems.
24444 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24445 # Write a limited-size here document to conftest.frag.
24446 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24447 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24448 echo 'CEOF
24449 sed -f conftest.frag conftest.in > conftest.out
24450 rm -f conftest.in
24451 mv conftest.out conftest.in
24452 ' >> $CONFIG_STATUS
24453 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24454 rm -f conftest.vals
24455 mv conftest.tail conftest.vals
24456 done
24457 rm -f conftest.vals
24459 cat >> $CONFIG_STATUS <<\EOF
24460 rm -f conftest.frag conftest.h
24461 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24462 cat conftest.in >> conftest.h
24463 rm -f conftest.in
24464 if cmp -s $ac_file conftest.h 2>/dev/null; then
24465 echo "$ac_file is unchanged"
24466 rm -f conftest.h
24467 else
24468 # Remove last slash and all that follows it. Not all systems have dirname.
24469 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24470 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24471 # The file is in a subdirectory.
24472 test ! -d "$ac_dir" && mkdir "$ac_dir"
24474 rm -f $ac_file
24475 mv conftest.h $ac_file
24477 fi; done
24480 cat >> $CONFIG_STATUS <<EOF
24482 srcdir=${srcdir}
24483 host=${host}
24484 target=${target}
24485 with_target_subdir=${with_target_subdir}
24486 with_build_subdir=${with_build_subdir}
24487 with_multisubdir=${with_multisubdir}
24488 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24489 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24490 glibcpp_basedir=${glibcpp_basedir}
24491 CC="${CC}"
24492 CXX="${CXX}"
24493 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24496 cat >> $CONFIG_STATUS <<\EOF
24497 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24498 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24499 if test -n "$CONFIG_FILES"; then
24500 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24501 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24502 # Ony modify Makefiles that are just being created.
24503 case " $CONFIG_FILES" in
24504 *" Makefile"*)
24505 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24507 esac
24508 case $CONFIG_FILES in
24509 *src/Makefile*)
24510 grep '^MULTISUBDIR =' Makefile >> src/Makefile
24512 esac
24513 case $CONFIG_FILES in
24514 *libsupc++/Makefile*)
24515 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24517 esac
24520 chmod +x mkcheck
24521 chmod +x testsuite_flags
24522 exit 0
24524 chmod +x $CONFIG_STATUS
24525 rm -fr confdefs* $ac_clean_files
24526 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24530 # Sanity checking & User-visible messages.
24531 # Checks down here, otherwise they get scrolled off before
24532 # the user will notice.
24534 # Trying to get more people to read documentation. Possibly remove
24535 # check and warn all the time. There is no "informational" AC_MSG_
24536 # macro, so these are going to be printed even when --quiet/--silent
24537 # is given.
24538 if test ! -f stamp-sanity-warned; then
24539 touch stamp-sanity-warned
24540 echo ""
24541 echo "Please make certain that you read the installation information here:"
24542 echo " faster => ${srcdir}/docs/html/install.html"
24543 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24544 echo ""
24545 echo "and the configuration information here:"
24546 echo " faster => ${srcdir}/docs/html/configopts.html"
24547 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24548 echo ""
24549 echo "before proceeding with ${_cv_gnu_make_command}."
24550 echo ""