cp:
[official-gcc.git] / libstdc++-v3 / configure
blob8d58e67ab3d32d000c60ddfbc55daf3fd635ec17
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 gawk mawk 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 *.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 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1505 echo "configure:1506: checking whether build environment is sane" >&5
1506 # Just in case
1507 sleep 1
1508 echo timestamp > conftestfile
1509 # Do `set' in a subshell so we don't clobber the current shell's
1510 # arguments. Must try -L first in case configure is actually a
1511 # symlink; some systems play weird games with the mod time of symlinks
1512 # (eg FreeBSD returns the mod time of the symlink's containing
1513 # directory).
1514 if (
1515 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1516 if test "$*" = "X"; then
1517 # -L didn't work.
1518 set X `ls -t $srcdir/configure conftestfile`
1520 if test "$*" != "X $srcdir/configure conftestfile" \
1521 && test "$*" != "X conftestfile $srcdir/configure"; then
1523 # If neither matched, then we have a broken ls. This can happen
1524 # if, for instance, CONFIG_SHELL is bash and it inherits a
1525 # broken ls alias from the environment. This has actually
1526 # happened. Such a system could not be considered "sane".
1527 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1528 alias in your environment" 1>&2; exit 1; }
1531 test "$2" = conftestfile
1533 then
1534 # Ok.
1536 else
1537 { echo "configure: error: newly created file is older than distributed files!
1538 Check your system clock" 1>&2; exit 1; }
1540 rm -f conftest*
1541 echo "$ac_t""yes" 1>&6
1542 if test "$program_transform_name" = s,x,x,; then
1543 program_transform_name=
1544 else
1545 # Double any \ or $. echo might interpret backslashes.
1546 cat <<\EOF_SED > conftestsed
1547 s,\\,\\\\,g; s,\$,$$,g
1548 EOF_SED
1549 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1550 rm -f conftestsed
1552 test "$program_prefix" != NONE &&
1553 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1554 # Use a double $ so make ignores it.
1555 test "$program_suffix" != NONE &&
1556 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1558 # sed with no file args requires a program.
1559 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1561 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1562 echo "configure:1563: checking whether ${MAKE-make} sets \${MAKE}" >&5
1563 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1564 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1566 else
1567 cat > conftestmake <<\EOF
1568 all:
1569 @echo 'ac_maketemp="${MAKE}"'
1571 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1572 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1573 if test -n "$ac_maketemp"; then
1574 eval ac_cv_prog_make_${ac_make}_set=yes
1575 else
1576 eval ac_cv_prog_make_${ac_make}_set=no
1578 rm -f conftestmake
1580 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1581 echo "$ac_t""yes" 1>&6
1582 SET_MAKE=
1583 else
1584 echo "$ac_t""no" 1>&6
1585 SET_MAKE="MAKE=${MAKE-make}"
1589 PACKAGE=$PACKAGE
1591 VERSION=$gcc_version
1593 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1594 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1596 cat >> confdefs.h <<EOF
1597 #define PACKAGE "$PACKAGE"
1600 cat >> confdefs.h <<EOF
1601 #define VERSION "$VERSION"
1606 missing_dir=`cd $ac_aux_dir && pwd`
1607 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1608 echo "configure:1609: checking for working aclocal" >&5
1609 # Run test in a subshell; some versions of sh will print an error if
1610 # an executable is not found, even if stderr is redirected.
1611 # Redirect stdin to placate older versions of autoconf. Sigh.
1612 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1613 ACLOCAL=aclocal
1614 echo "$ac_t""found" 1>&6
1615 else
1616 ACLOCAL="$missing_dir/missing aclocal"
1617 echo "$ac_t""missing" 1>&6
1620 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1621 echo "configure:1622: checking for working autoconf" >&5
1622 # Run test in a subshell; some versions of sh will print an error if
1623 # an executable is not found, even if stderr is redirected.
1624 # Redirect stdin to placate older versions of autoconf. Sigh.
1625 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1626 AUTOCONF=autoconf
1627 echo "$ac_t""found" 1>&6
1628 else
1629 AUTOCONF="$missing_dir/missing autoconf"
1630 echo "$ac_t""missing" 1>&6
1633 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1634 echo "configure:1635: checking for working automake" >&5
1635 # Run test in a subshell; some versions of sh will print an error if
1636 # an executable is not found, even if stderr is redirected.
1637 # Redirect stdin to placate older versions of autoconf. Sigh.
1638 if (automake --version) < /dev/null > /dev/null 2>&1; then
1639 AUTOMAKE=automake
1640 echo "$ac_t""found" 1>&6
1641 else
1642 AUTOMAKE="$missing_dir/missing automake"
1643 echo "$ac_t""missing" 1>&6
1646 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1647 echo "configure:1648: checking for working autoheader" >&5
1648 # Run test in a subshell; some versions of sh will print an error if
1649 # an executable is not found, even if stderr is redirected.
1650 # Redirect stdin to placate older versions of autoconf. Sigh.
1651 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1652 AUTOHEADER=autoheader
1653 echo "$ac_t""found" 1>&6
1654 else
1655 AUTOHEADER="$missing_dir/missing autoheader"
1656 echo "$ac_t""missing" 1>&6
1659 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1660 echo "configure:1661: checking for working makeinfo" >&5
1661 # Run test in a subshell; some versions of sh will print an error if
1662 # an executable is not found, even if stderr is redirected.
1663 # Redirect stdin to placate older versions of autoconf. Sigh.
1664 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1665 MAKEINFO=makeinfo
1666 echo "$ac_t""found" 1>&6
1667 else
1668 MAKEINFO="$missing_dir/missing makeinfo"
1669 echo "$ac_t""missing" 1>&6
1678 # Check whether --enable-shared or --disable-shared was given.
1679 if test "${enable_shared+set}" = set; then
1680 enableval="$enable_shared"
1681 p=${PACKAGE-default}
1682 case $enableval in
1683 yes) enable_shared=yes ;;
1684 no) enable_shared=no ;;
1686 enable_shared=no
1687 # Look at the argument we got. We use all the common list separators.
1688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1689 for pkg in $enableval; do
1690 if test "X$pkg" = "X$p"; then
1691 enable_shared=yes
1693 done
1694 IFS="$ac_save_ifs"
1696 esac
1697 else
1698 enable_shared=yes
1701 # Check whether --enable-static or --disable-static was given.
1702 if test "${enable_static+set}" = set; then
1703 enableval="$enable_static"
1704 p=${PACKAGE-default}
1705 case $enableval in
1706 yes) enable_static=yes ;;
1707 no) enable_static=no ;;
1709 enable_static=no
1710 # Look at the argument we got. We use all the common list separators.
1711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1712 for pkg in $enableval; do
1713 if test "X$pkg" = "X$p"; then
1714 enable_static=yes
1716 done
1717 IFS="$ac_save_ifs"
1719 esac
1720 else
1721 enable_static=yes
1724 # Check whether --enable-fast-install or --disable-fast-install was given.
1725 if test "${enable_fast_install+set}" = set; then
1726 enableval="$enable_fast_install"
1727 p=${PACKAGE-default}
1728 case $enableval in
1729 yes) enable_fast_install=yes ;;
1730 no) enable_fast_install=no ;;
1732 enable_fast_install=no
1733 # Look at the argument we got. We use all the common list separators.
1734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1735 for pkg in $enableval; do
1736 if test "X$pkg" = "X$p"; then
1737 enable_fast_install=yes
1739 done
1740 IFS="$ac_save_ifs"
1742 esac
1743 else
1744 enable_fast_install=yes
1747 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1748 if test "${with_gnu_ld+set}" = set; then
1749 withval="$with_gnu_ld"
1750 test "$withval" = no || with_gnu_ld=yes
1751 else
1752 with_gnu_ld=no
1755 ac_prog=ld
1756 if test "$GCC" = yes; then
1757 # Check if gcc -print-prog-name=ld gives a path.
1758 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1759 echo "configure:1760: checking for ld used by GCC" >&5
1760 case $host in
1761 *-*-mingw*)
1762 # gcc leaves a trailing carriage return which upsets mingw
1763 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1765 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1766 esac
1767 case $ac_prog in
1768 # Accept absolute paths.
1769 [\\/]* | [A-Za-z]:[\\/]*)
1770 re_direlt='/[^/][^/]*/\.\./'
1771 # Canonicalize the path of ld
1772 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1773 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1774 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1775 done
1776 test -z "$LD" && LD="$ac_prog"
1779 # If it fails, then pretend we aren't using GCC.
1780 ac_prog=ld
1783 # If it is relative, then search for the first ld in PATH.
1784 with_gnu_ld=unknown
1786 esac
1787 elif test "$with_gnu_ld" = yes; then
1788 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1789 echo "configure:1790: checking for GNU ld" >&5
1790 else
1791 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1792 echo "configure:1793: checking for non-GNU ld" >&5
1794 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1796 else
1797 if test -z "$LD"; then
1798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1799 for ac_dir in $PATH; do
1800 test -z "$ac_dir" && ac_dir=.
1801 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1802 lt_cv_path_LD="$ac_dir/$ac_prog"
1803 # Check to see if the program is GNU ld. I'd rather use --version,
1804 # but apparently some GNU ld's only accept -v.
1805 # Break only if it was the GNU/non-GNU ld that we prefer.
1806 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1807 test "$with_gnu_ld" != no && break
1808 else
1809 test "$with_gnu_ld" != yes && break
1812 done
1813 IFS="$ac_save_ifs"
1814 else
1815 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1819 LD="$lt_cv_path_LD"
1820 if test -n "$LD"; then
1821 echo "$ac_t""$LD" 1>&6
1822 else
1823 echo "$ac_t""no" 1>&6
1825 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1826 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1827 echo "configure:1828: checking if the linker ($LD) is GNU ld" >&5
1828 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1830 else
1831 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1832 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1833 lt_cv_prog_gnu_ld=yes
1834 else
1835 lt_cv_prog_gnu_ld=no
1839 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1840 with_gnu_ld=$lt_cv_prog_gnu_ld
1843 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1844 echo "configure:1845: checking for $LD option to reload object files" >&5
1845 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1847 else
1848 lt_cv_ld_reload_flag='-r'
1851 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1852 reload_flag=$lt_cv_ld_reload_flag
1853 test -n "$reload_flag" && reload_flag=" $reload_flag"
1855 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1856 echo "configure:1857: checking for BSD-compatible nm" >&5
1857 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1859 else
1860 if test -n "$NM"; then
1861 # Let the user override the test.
1862 lt_cv_path_NM="$NM"
1863 else
1864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1865 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1866 test -z "$ac_dir" && ac_dir=.
1867 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1868 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1869 # Check to see if the nm accepts a BSD-compat flag.
1870 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1871 # nm: unknown option "B" ignored
1872 # Tru64's nm complains that /dev/null is an invalid object file
1873 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1874 lt_cv_path_NM="$tmp_nm -B"
1875 break
1876 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1877 lt_cv_path_NM="$tmp_nm -p"
1878 break
1879 else
1880 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1881 continue # so that we can try to find one that supports BSD flags
1884 done
1885 IFS="$ac_save_ifs"
1886 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1890 NM="$lt_cv_path_NM"
1891 echo "$ac_t""$NM" 1>&6
1893 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1894 echo "configure:1895: checking how to recognise dependant libraries" >&5
1895 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898 lt_cv_file_magic_cmd='$MAGIC_CMD'
1899 lt_cv_file_magic_test_file=
1900 lt_cv_deplibs_check_method='unknown'
1901 # Need to set the preceding variable on all platforms that support
1902 # interlibrary dependencies.
1903 # 'none' -- dependencies not supported.
1904 # `unknown' -- same as none, but documents that we really don't know.
1905 # 'pass_all' -- all dependencies passed with no checks.
1906 # 'test_compile' -- check by making test program.
1907 # 'file_magic [regex]' -- check by looking for files in library path
1908 # which responds to the $file_magic_cmd with a given egrep regex.
1909 # If you have `file' or equivalent on your system and you're not sure
1910 # whether `pass_all' will *always* work, you probably want this one.
1912 case $host_os in
1913 aix*)
1914 lt_cv_deplibs_check_method=pass_all
1917 beos*)
1918 lt_cv_deplibs_check_method=pass_all
1921 bsdi4*)
1922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1923 lt_cv_file_magic_cmd='/usr/bin/file -L'
1924 lt_cv_file_magic_test_file=/shlib/libc.so
1927 cygwin* | mingw* |pw32*)
1928 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1929 lt_cv_file_magic_cmd='$OBJDUMP -f'
1932 darwin* | rhapsody*)
1933 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1934 lt_cv_file_magic_cmd='/usr/bin/file -L'
1935 case "$host_os" in
1936 rhapsody* | darwin1.012)
1937 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1939 *) # Darwin 1.3 on
1940 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1942 esac
1945 freebsd* )
1946 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1947 case $host_cpu in
1948 i*86 )
1949 # Not sure whether the presence of OpenBSD here was a mistake.
1950 # Let's accept both of them until this is cleared up.
1951 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1952 lt_cv_file_magic_cmd=/usr/bin/file
1953 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1955 esac
1956 else
1957 lt_cv_deplibs_check_method=pass_all
1961 gnu*)
1962 lt_cv_deplibs_check_method=pass_all
1965 hpux10.20*|hpux11*)
1966 case $host_cpu in
1967 hppa*)
1968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1969 lt_cv_file_magic_cmd=/usr/bin/file
1970 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1972 ia64*)
1973 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1974 lt_cv_file_magic_cmd=/usr/bin/file
1975 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1977 esac
1980 irix5* | irix6*)
1981 case $host_os in
1982 irix5*)
1983 # this will be overridden with pass_all, but let us keep it just in case
1984 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1987 case $LD in
1988 *-32|*"-32 ") libmagic=32-bit;;
1989 *-n32|*"-n32 ") libmagic=N32;;
1990 *-64|*"-64 ") libmagic=64-bit;;
1991 *) libmagic=never-match;;
1992 esac
1993 # this will be overridden with pass_all, but let us keep it just in case
1994 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1996 esac
1997 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1998 lt_cv_deplibs_check_method=pass_all
2001 # This must be Linux ELF.
2002 linux-gnu*)
2003 case $host_cpu in
2004 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2005 lt_cv_deplibs_check_method=pass_all ;;
2007 # glibc up to 2.1.1 does not perform some relocations on ARM
2008 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2009 esac
2010 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2013 netbsd*)
2014 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2015 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2016 else
2017 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2021 newsos6)
2022 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2023 lt_cv_file_magic_cmd=/usr/bin/file
2024 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2027 osf3* | osf4* | osf5*)
2028 # this will be overridden with pass_all, but let us keep it just in case
2029 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2030 lt_cv_file_magic_test_file=/shlib/libc.so
2031 lt_cv_deplibs_check_method=pass_all
2034 sco3.2v5*)
2035 lt_cv_deplibs_check_method=pass_all
2038 solaris*)
2039 lt_cv_deplibs_check_method=pass_all
2040 lt_cv_file_magic_test_file=/lib/libc.so
2043 sysv5uw[78]* | sysv4*uw2*)
2044 lt_cv_deplibs_check_method=pass_all
2047 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2048 case $host_vendor in
2049 ncr)
2050 lt_cv_deplibs_check_method=pass_all
2052 motorola)
2053 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]'
2054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2056 esac
2058 esac
2062 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2063 file_magic_cmd=$lt_cv_file_magic_cmd
2064 deplibs_check_method=$lt_cv_deplibs_check_method
2066 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2067 echo "configure:2068: checking for object suffix" >&5
2068 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2070 else
2071 rm -f conftest*
2072 echo 'int i = 1;' > conftest.$ac_ext
2073 if { (eval echo configure:2074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2074 for ac_file in conftest.*; do
2075 case $ac_file in
2076 *.c) ;;
2077 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2078 esac
2079 done
2080 else
2081 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2083 rm -f conftest*
2086 echo "$ac_t""$ac_cv_objext" 1>&6
2087 OBJEXT=$ac_cv_objext
2088 ac_objext=$ac_cv_objext
2090 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2092 # Only perform the check for file, if the check method requires it
2093 case $deplibs_check_method in
2094 file_magic*)
2095 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2096 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2097 echo "configure:2098: checking for ${ac_tool_prefix}file" >&5
2098 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2100 else
2101 case $MAGIC_CMD in
2103 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2105 ?:/*)
2106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2109 ac_save_MAGIC_CMD="$MAGIC_CMD"
2110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2111 ac_dummy="/usr/bin:$PATH"
2112 for ac_dir in $ac_dummy; do
2113 test -z "$ac_dir" && ac_dir=.
2114 if test -f $ac_dir/${ac_tool_prefix}file; then
2115 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2116 if test -n "$file_magic_test_file"; then
2117 case $deplibs_check_method in
2118 "file_magic "*)
2119 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2120 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2121 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2122 egrep "$file_magic_regex" > /dev/null; then
2124 else
2125 cat <<EOF 1>&2
2127 *** Warning: the command libtool uses to detect shared libraries,
2128 *** $file_magic_cmd, produces output that libtool cannot recognize.
2129 *** The result is that libtool may fail to recognize shared libraries
2130 *** as such. This will affect the creation of libtool libraries that
2131 *** depend on shared libraries, but programs linked with such libtool
2132 *** libraries will work regardless of this problem. Nevertheless, you
2133 *** may want to report the problem to your system manager and/or to
2134 *** bug-libtool@gnu.org
2137 fi ;;
2138 esac
2140 break
2142 done
2143 IFS="$ac_save_ifs"
2144 MAGIC_CMD="$ac_save_MAGIC_CMD"
2146 esac
2149 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2150 if test -n "$MAGIC_CMD"; then
2151 echo "$ac_t""$MAGIC_CMD" 1>&6
2152 else
2153 echo "$ac_t""no" 1>&6
2156 if test -z "$lt_cv_path_MAGIC_CMD"; then
2157 if test -n "$ac_tool_prefix"; then
2158 echo $ac_n "checking for file""... $ac_c" 1>&6
2159 echo "configure:2160: checking for file" >&5
2160 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2162 else
2163 case $MAGIC_CMD in
2165 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2167 ?:/*)
2168 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2171 ac_save_MAGIC_CMD="$MAGIC_CMD"
2172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2173 ac_dummy="/usr/bin:$PATH"
2174 for ac_dir in $ac_dummy; do
2175 test -z "$ac_dir" && ac_dir=.
2176 if test -f $ac_dir/file; then
2177 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2178 if test -n "$file_magic_test_file"; then
2179 case $deplibs_check_method in
2180 "file_magic "*)
2181 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2184 egrep "$file_magic_regex" > /dev/null; then
2186 else
2187 cat <<EOF 1>&2
2189 *** Warning: the command libtool uses to detect shared libraries,
2190 *** $file_magic_cmd, produces output that libtool cannot recognize.
2191 *** The result is that libtool may fail to recognize shared libraries
2192 *** as such. This will affect the creation of libtool libraries that
2193 *** depend on shared libraries, but programs linked with such libtool
2194 *** libraries will work regardless of this problem. Nevertheless, you
2195 *** may want to report the problem to your system manager and/or to
2196 *** bug-libtool@gnu.org
2199 fi ;;
2200 esac
2202 break
2204 done
2205 IFS="$ac_save_ifs"
2206 MAGIC_CMD="$ac_save_MAGIC_CMD"
2208 esac
2211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2212 if test -n "$MAGIC_CMD"; then
2213 echo "$ac_t""$MAGIC_CMD" 1>&6
2214 else
2215 echo "$ac_t""no" 1>&6
2218 else
2219 MAGIC_CMD=:
2225 esac
2227 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2228 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2230 echo "configure:2231: checking for $ac_word" >&5
2231 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2233 else
2234 if test -n "$RANLIB"; then
2235 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2236 else
2237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2238 ac_dummy="$PATH"
2239 for ac_dir in $ac_dummy; do
2240 test -z "$ac_dir" && ac_dir=.
2241 if test -f $ac_dir/$ac_word; then
2242 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2243 break
2245 done
2246 IFS="$ac_save_ifs"
2249 RANLIB="$ac_cv_prog_RANLIB"
2250 if test -n "$RANLIB"; then
2251 echo "$ac_t""$RANLIB" 1>&6
2252 else
2253 echo "$ac_t""no" 1>&6
2257 if test -z "$ac_cv_prog_RANLIB"; then
2258 if test -n "$ac_tool_prefix"; then
2259 # Extract the first word of "ranlib", so it can be a program name with args.
2260 set dummy ranlib; ac_word=$2
2261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2262 echo "configure:2263: checking for $ac_word" >&5
2263 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2264 echo $ac_n "(cached) $ac_c" 1>&6
2265 else
2266 if test -n "$RANLIB"; then
2267 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2268 else
2269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2270 ac_dummy="$PATH"
2271 for ac_dir in $ac_dummy; do
2272 test -z "$ac_dir" && ac_dir=.
2273 if test -f $ac_dir/$ac_word; then
2274 ac_cv_prog_RANLIB="ranlib"
2275 break
2277 done
2278 IFS="$ac_save_ifs"
2279 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2282 RANLIB="$ac_cv_prog_RANLIB"
2283 if test -n "$RANLIB"; then
2284 echo "$ac_t""$RANLIB" 1>&6
2285 else
2286 echo "$ac_t""no" 1>&6
2289 else
2290 RANLIB=":"
2294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2295 set dummy ${ac_tool_prefix}strip; ac_word=$2
2296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_word" >&5
2298 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2300 else
2301 if test -n "$STRIP"; then
2302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2303 else
2304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2305 ac_dummy="$PATH"
2306 for ac_dir in $ac_dummy; do
2307 test -z "$ac_dir" && ac_dir=.
2308 if test -f $ac_dir/$ac_word; then
2309 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2310 break
2312 done
2313 IFS="$ac_save_ifs"
2316 STRIP="$ac_cv_prog_STRIP"
2317 if test -n "$STRIP"; then
2318 echo "$ac_t""$STRIP" 1>&6
2319 else
2320 echo "$ac_t""no" 1>&6
2324 if test -z "$ac_cv_prog_STRIP"; then
2325 if test -n "$ac_tool_prefix"; then
2326 # Extract the first word of "strip", so it can be a program name with args.
2327 set dummy strip; ac_word=$2
2328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2329 echo "configure:2330: checking for $ac_word" >&5
2330 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2332 else
2333 if test -n "$STRIP"; then
2334 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2335 else
2336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2337 ac_dummy="$PATH"
2338 for ac_dir in $ac_dummy; do
2339 test -z "$ac_dir" && ac_dir=.
2340 if test -f $ac_dir/$ac_word; then
2341 ac_cv_prog_STRIP="strip"
2342 break
2344 done
2345 IFS="$ac_save_ifs"
2346 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2349 STRIP="$ac_cv_prog_STRIP"
2350 if test -n "$STRIP"; then
2351 echo "$ac_t""$STRIP" 1>&6
2352 else
2353 echo "$ac_t""no" 1>&6
2356 else
2357 STRIP=":"
2362 # Check for any special flags to pass to ltconfig.
2363 libtool_flags="--cache-file=$cache_file"
2364 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2365 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2366 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2367 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2368 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2369 libtool_flags="$libtool_flags --enable-dlopen"
2371 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2372 if test "${enable_libtool_lock+set}" = set; then
2373 enableval="$enable_libtool_lock"
2377 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2378 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2380 # Check whether --with-pic or --without-pic was given.
2381 if test "${with_pic+set}" = set; then
2382 withval="$with_pic"
2383 pic_mode="$withval"
2384 else
2385 pic_mode=default
2388 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2389 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2391 # Some flags need to be propagated to the compiler or linker for good
2392 # libtool support.
2393 case $host in
2394 *-*-irix6*)
2395 # Find out which ABI we are using.
2396 echo '#line 2397 "configure"' > conftest.$ac_ext
2397 if { (eval echo configure:2398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2398 if test "$lt_cv_prog_gnu_ld" = yes; then
2399 case `/usr/bin/file conftest.$ac_objext` in
2400 *32-bit*)
2401 LD="${LD-ld} -melf32bsmip"
2403 *N32*)
2404 LD="${LD-ld} -melf32bmipn32"
2406 *64-bit*)
2407 LD="${LD-ld} -melf64bmip"
2409 esac
2410 else
2411 case `/usr/bin/file conftest.$ac_objext` in
2412 *32-bit*)
2413 LD="${LD-ld} -32"
2415 *N32*)
2416 LD="${LD-ld} -n32"
2418 *64-bit*)
2419 LD="${LD-ld} -64"
2421 esac
2424 rm -rf conftest*
2427 ia64-*-hpux*)
2428 # Find out which ABI we are using.
2429 echo 'int i;' > conftest.$ac_ext
2430 if { (eval echo configure:2431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2431 case "`/usr/bin/file conftest.o`" in
2432 *ELF-32*)
2433 HPUX_IA64_MODE="32"
2435 *ELF-64*)
2436 HPUX_IA64_MODE="64"
2438 esac
2440 rm -rf conftest*
2443 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2444 # Find out which ABI we are using.
2445 echo 'int i;' > conftest.$ac_ext
2446 if { (eval echo configure:2447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2447 case "`/usr/bin/file conftest.o`" in
2448 *32-bit*)
2449 case $host in
2450 x86_64-*linux*)
2451 LD="${LD-ld} -m elf_i386"
2453 ppc64-*linux*)
2454 LD="${LD-ld} -m elf32ppclinux"
2456 s390x-*linux*)
2457 LD="${LD-ld} -m elf_s390"
2459 sparc64-*linux*)
2460 LD="${LD-ld} -m elf32_sparc"
2462 esac
2464 *64-bit*)
2465 case $host in
2466 x86_64-*linux*)
2467 LD="${LD-ld} -m elf_x86_64"
2469 ppc*-*linux*|powerpc*-*linux*)
2470 LD="${LD-ld} -m elf64ppc"
2472 s390*-*linux*)
2473 LD="${LD-ld} -m elf64_s390"
2475 sparc*-*linux*)
2476 LD="${LD-ld} -m elf64_sparc"
2478 esac
2480 esac
2482 rm -rf conftest*
2485 *-*-sco3.2v5*)
2486 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2487 SAVE_CFLAGS="$CFLAGS"
2488 CFLAGS="$CFLAGS -belf"
2489 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2490 echo "configure:2491: checking whether the C compiler needs -belf" >&5
2491 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2493 else
2495 ac_ext=c
2496 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2497 ac_cpp='$CPP $CPPFLAGS'
2498 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2499 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2500 cross_compiling=$ac_cv_prog_cc_cross
2502 cat > conftest.$ac_ext <<EOF
2503 #line 2504 "configure"
2504 #include "confdefs.h"
2506 int main() {
2508 ; return 0; }
2510 if { (eval echo configure:2511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2511 rm -rf conftest*
2512 lt_cv_cc_needs_belf=yes
2513 else
2514 echo "configure: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2516 rm -rf conftest*
2517 lt_cv_cc_needs_belf=no
2519 rm -f conftest*
2520 ac_ext=c
2521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2522 ac_cpp='$CPP $CPPFLAGS'
2523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2525 cross_compiling=$ac_cv_prog_cc_cross
2529 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2530 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2531 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2532 CFLAGS="$SAVE_CFLAGS"
2537 esac
2539 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2540 echo "configure:2541: checking how to run the C++ preprocessor" >&5
2541 if test -z "$CXXCPP"; then
2542 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2544 else
2545 ac_ext=C
2546 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2547 ac_cpp='$CXXCPP $CPPFLAGS'
2548 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2549 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2550 cross_compiling=$ac_cv_prog_cxx_cross
2551 CXXCPP="${CXX-g++} -E"
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 #include <stdlib.h>
2557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2558 { (eval echo configure:2559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2560 if test -z "$ac_err"; then
2562 else
2563 echo "$ac_err" >&5
2564 echo "configure: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2566 rm -rf conftest*
2567 CXXCPP=/lib/cpp
2569 rm -f conftest*
2570 ac_cv_prog_CXXCPP="$CXXCPP"
2571 ac_ext=c
2572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2573 ac_cpp='$CPP $CPPFLAGS'
2574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2576 cross_compiling=$ac_cv_prog_cc_cross
2579 CXXCPP="$ac_cv_prog_CXXCPP"
2580 echo "$ac_t""$CXXCPP" 1>&6
2583 # Save cache, so that ltconfig can load it
2584 cat > confcache <<\EOF
2585 # This file is a shell script that caches the results of configure
2586 # tests run on this system so they can be shared between configure
2587 # scripts and configure runs. It is not useful on other systems.
2588 # If it contains results you don't want to keep, you may remove or edit it.
2590 # By default, configure uses ./config.cache as the cache file,
2591 # creating it if it does not exist already. You can give configure
2592 # the --cache-file=FILE option to use a different cache file; that is
2593 # what configure does when it calls configure scripts in
2594 # subdirectories, so they share the cache.
2595 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2596 # config.status only pays attention to the cache file if you give it the
2597 # --recheck option to rerun configure.
2600 # The following way of writing the cache mishandles newlines in values,
2601 # but we know of no workaround that is simple, portable, and efficient.
2602 # So, don't put newlines in cache variables' values.
2603 # Ultrix sh set writes to stderr and can't be redirected directly,
2604 # and sets the high bit in the cache file unless we assign to the vars.
2605 (set) 2>&1 |
2606 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2607 *ac_space=\ *)
2608 # `set' does not quote correctly, so add quotes (double-quote substitution
2609 # turns \\\\ into \\, and sed turns \\ into \).
2610 sed -n \
2611 -e "s/'/'\\\\''/g" \
2612 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2615 # `set' quotes correctly as required by POSIX, so do not add quotes.
2616 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2618 esac >> confcache
2619 if cmp -s $cache_file confcache; then
2621 else
2622 if test -w $cache_file; then
2623 echo "updating cache $cache_file"
2624 cat confcache > $cache_file
2625 else
2626 echo "not updating unwritable cache $cache_file"
2629 rm -f confcache
2632 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2633 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2634 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2635 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2636 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2637 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2638 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2639 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2640 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2641 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2643 # Reload cache, that may have been modified by ltconfig
2644 if test -r "$cache_file"; then
2645 echo "loading cache $cache_file"
2646 . $cache_file
2647 else
2648 echo "creating cache $cache_file"
2649 > $cache_file
2653 # This can be used to rebuild libtool when needed
2654 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2656 # Always use our own libtool.
2657 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2659 # Redirect the config.log output again, so that the ltconfig log is not
2660 # clobbered by the next message.
2661 exec 5>>./config.log
2665 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2666 lt_save_CC="$CC"
2667 lt_save_CFLAGS="$CFLAGS"
2668 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2669 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2670 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2671 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2672 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2673 deplibs_check_method="$deplibs_check_method" \
2674 file_magic_cmd="$file_magic_cmd" \
2675 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2676 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2677 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2678 CC="$lt_save_CC"
2679 CFLAGS="$lt_save_CFLAGS"
2681 # Redirect the config.log output again, so that the ltconfig log is not
2682 # clobbered by the next message.
2683 exec 5>>./config.log
2693 # Check for c++ or library specific bits that don't require linking.
2694 #GLIBCPP_CHECK_COMPILER_VERSION
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='#' ;
2720 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2721 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2722 echo "configure:2723: checking how to run the C preprocessor" >&5
2723 # On Suns, sometimes $CPP names a directory.
2724 if test -n "$CPP" && test -d "$CPP"; then
2725 CPP=
2727 if test -z "$CPP"; then
2728 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2730 else
2731 # This must be in double quotes, not single quotes, because CPP may get
2732 # substituted into the Makefile and "${CC-cc}" will confuse make.
2733 CPP="${CC-cc} -E"
2734 # On the NeXT, cc -E runs the code through the compiler's parser,
2735 # not just through cpp.
2736 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2739 #include <assert.h>
2740 Syntax Error
2742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2743 { (eval echo configure:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2745 if test -z "$ac_err"; then
2747 else
2748 echo "$ac_err" >&5
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2751 rm -rf conftest*
2752 CPP="${CC-cc} -E -traditional-cpp"
2753 cat > conftest.$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2756 #include <assert.h>
2757 Syntax Error
2759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2760 { (eval echo configure:2761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2762 if test -z "$ac_err"; then
2764 else
2765 echo "$ac_err" >&5
2766 echo "configure: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2768 rm -rf conftest*
2769 CPP="${CC-cc} -nologo -E"
2770 cat > conftest.$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2773 #include <assert.h>
2774 Syntax Error
2776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2777 { (eval echo configure:2778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2779 if test -z "$ac_err"; then
2781 else
2782 echo "$ac_err" >&5
2783 echo "configure: failed program was:" >&5
2784 cat conftest.$ac_ext >&5
2785 rm -rf conftest*
2786 CPP=/lib/cpp
2788 rm -f conftest*
2790 rm -f conftest*
2792 rm -f conftest*
2793 ac_cv_prog_CPP="$CPP"
2795 CPP="$ac_cv_prog_CPP"
2796 else
2797 ac_cv_prog_CPP="$CPP"
2799 echo "$ac_t""$CPP" 1>&6
2802 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2803 echo "configure:2804: checking for cstdio to use" >&5
2804 # Check whether --enable-cstdio or --disable-cstdio was given.
2805 if test "${enable_cstdio+set}" = set; then
2806 enableval="$enable_cstdio"
2807 if test x$enable_cstdio = xno; then
2808 enable_cstdio=stdio
2810 else
2811 enable_cstdio=stdio
2815 enable_cstdio_flag=$enable_cstdio
2817 case x${enable_cstdio_flag} in
2818 xlibio)
2819 CSTDIO_H=config/io/c_io_libio.h
2820 BASIC_FILE_H=config/io/basic_file_libio.h
2821 BASIC_FILE_CC=config/io/basic_file_libio.cc
2822 echo "$ac_t""libio" 1>&6
2824 # see if we are on a system with libio native (ie, linux)
2825 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2826 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2827 echo "configure:2828: checking for libio.h" >&5
2828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2830 else
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 #include <libio.h>
2836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2837 { (eval echo configure:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2839 if test -z "$ac_err"; then
2840 rm -rf conftest*
2841 eval "ac_cv_header_$ac_safe=yes"
2842 else
2843 echo "$ac_err" >&5
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2846 rm -rf conftest*
2847 eval "ac_cv_header_$ac_safe=no"
2849 rm -f conftest*
2851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 has_libio=yes
2854 else
2855 echo "$ac_t""no" 1>&6
2856 has_libio=no
2860 # Need to check and see what version of glibc is being used. If
2861 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2862 # compile most of libio for linux systems.
2863 if test x$has_libio = x"yes"; then
2864 case "$target" in
2865 *-*-linux*)
2866 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2867 echo "configure:2868: checking for glibc version >= 2.2" >&5
2868 cat > conftest.$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2872 #include <features.h>
2873 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2875 #endif
2878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2879 egrep "ok" >/dev/null 2>&1; then
2880 rm -rf conftest*
2881 glibc_satisfactory=yes
2882 else
2883 rm -rf conftest*
2884 glibc_satisfactory=no
2886 rm -f conftest*
2888 echo "$ac_t""$glibc_satisfactory" 1>&6
2890 esac
2892 # XXX at the moment, admit defeat and force the recompilation
2893 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2894 glibc_satisfactory=no
2896 if test x$glibc_satisfactory = x"yes"; then
2897 need_libio=no
2898 need_wlibio=no
2899 else
2900 need_libio=yes
2901 # bkoz XXX need to add checks to enable this
2902 # pme XXX here's a first pass at such a check
2903 if test x$enable_c_mbchar != xno; then
2904 need_wlibio=yes
2905 else
2906 need_wlibio=no
2910 else
2911 # Using libio, but <libio.h> doesn't exist on the target system. . .
2912 need_libio=yes
2913 # bkoz XXX need to add checks to enable this
2914 # pme XXX here's a first pass at such a check
2915 if test x$enable_c_mbchar != xno; then
2916 need_wlibio=yes
2917 else
2918 need_wlibio=no
2922 xstdio | x | xno | xnone | xyes)
2923 # default
2924 CSTDIO_H=config/io/c_io_stdio.h
2925 BASIC_FILE_H=config/io/basic_file_stdio.h
2926 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2927 echo "$ac_t""stdio" 1>&6
2929 # We're not using stdio.
2930 need_libio=no
2931 need_wlibio=no
2934 echo "$enable_cstdio is an unknown io package" 1>&2
2935 exit 1
2937 esac
2942 # 2000-08-04 bkoz hack
2943 CCODECVT_C=config/io/c_io_libio_codecvt.c
2945 # 2000-08-04 bkoz hack
2949 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2950 GLIBCPP_BUILD_LIBIO_TRUE=
2951 GLIBCPP_BUILD_LIBIO_FALSE='#'
2952 else
2953 GLIBCPP_BUILD_LIBIO_TRUE='#'
2954 GLIBCPP_BUILD_LIBIO_FALSE=
2958 if test "$need_libio" = yes; then
2959 GLIBCPP_NEED_LIBIO_TRUE=
2960 GLIBCPP_NEED_LIBIO_FALSE='#'
2961 else
2962 GLIBCPP_NEED_LIBIO_TRUE='#'
2963 GLIBCPP_NEED_LIBIO_FALSE=
2967 if test "$need_wlibio" = yes; then
2968 GLIBCPP_NEED_WLIBIO_TRUE=
2969 GLIBCPP_NEED_WLIBIO_FALSE='#'
2970 else
2971 GLIBCPP_NEED_WLIBIO_TRUE='#'
2972 GLIBCPP_NEED_WLIBIO_FALSE=
2974 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2975 libio_la=../libio/libio.la
2976 else
2977 libio_la=
2982 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2983 echo "configure:2984: checking for clocale to use" >&5
2984 # Check whether --enable-clocale or --disable-clocale was given.
2985 if test "${enable_clocale+set}" = set; then
2986 enableval="$enable_clocale"
2987 if test x$enable_clocale = xno; then
2988 enable_clocale=no
2990 else
2991 enable_clocale=no
2995 enable_clocale_flag=$enable_clocale
2997 if test x$enable_clocale_flag = xno; then
2998 case x${target_os} in
2999 xlinux* | xgnu*)
3000 cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3004 #include <features.h>
3005 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3006 _GLIBCPP_ok
3007 #endif
3010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3011 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3012 rm -rf conftest*
3013 enable_clocale_flag=gnu
3014 else
3015 rm -rf conftest*
3016 enable_clocale_flag=generic
3018 rm -f conftest*
3021 # Test for bugs early in glibc-2.2.x series
3022 if test x$enable_clocale_flag = xgnu; then
3023 if test "$cross_compiling" = yes; then
3024 enable_clocale_flag=generic
3025 else
3026 cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3030 #define _GNU_SOURCE 1
3031 #include <locale.h>
3032 #include <string.h>
3033 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3034 extern __typeof(newlocale) __newlocale;
3035 extern __typeof(duplocale) __duplocale;
3036 extern __typeof(strcoll_l) __strcoll_l;
3037 #endif
3038 int main()
3040 const char __one[] = "Äuglein Augmen";
3041 const char __two[] = "Äuglein";
3042 int i;
3043 int j;
3044 __locale_t loc;
3045 __locale_t loc_dup;
3046 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3047 loc_dup = __duplocale(loc);
3048 i = __strcoll_l(__one, __two, loc);
3049 j = __strcoll_l(__one, __two, loc_dup);
3050 return 0;
3054 if { (eval echo configure:3055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3055 then
3056 enable_clocale_flag=gnu
3057 else
3058 echo "configure: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3060 rm -fr conftest*
3061 enable_clocale_flag=generic
3063 rm -fr conftest*
3068 # ... at some point put __strxfrm_l tests in as well.
3071 enable_clocale_flag=generic
3073 esac
3076 # Check whether --enable-nls or --disable-nls was given.
3077 if test "${enable_nls+set}" = set; then
3078 enableval="$enable_nls"
3080 else
3081 enable_nls=yes
3084 USE_NLS=no
3086 case x${enable_clocale_flag} in
3087 xgeneric)
3088 echo "$ac_t""generic" 1>&6
3090 CLOCALE_H=config/locale/generic/c_locale.h
3091 CLOCALE_CC=config/locale/generic/c_locale.cc
3092 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3093 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3094 CCOLLATE_CC=config/locale/generic/collate_members.cc
3095 CCTYPE_CC=config/locale/generic/ctype_members.cc
3096 CMESSAGES_H=config/locale/generic/messages_members.h
3097 CMESSAGES_CC=config/locale/generic/messages_members.cc
3098 CMONEY_CC=config/locale/generic/monetary_members.cc
3099 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3100 CTIME_H=config/locale/generic/time_members.h
3101 CTIME_CC=config/locale/generic/time_members.cc
3102 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3104 xgnu)
3105 echo "$ac_t""gnu" 1>&6
3107 # Declare intention to use gettext, and add support for specific
3108 # languages.
3109 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3110 ALL_LINGUAS="de fr"
3112 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3113 # Extract the first word of "msgfmt", so it can be a program name with args.
3114 set dummy msgfmt; ac_word=$2
3115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3116 echo "configure:3117: checking for $ac_word" >&5
3117 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3119 else
3120 if test -n "$check_msgfmt"; then
3121 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3122 else
3123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3124 ac_dummy="$PATH"
3125 for ac_dir in $ac_dummy; do
3126 test -z "$ac_dir" && ac_dir=.
3127 if test -f $ac_dir/$ac_word; then
3128 ac_cv_prog_check_msgfmt="yes"
3129 break
3131 done
3132 IFS="$ac_save_ifs"
3133 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3136 check_msgfmt="$ac_cv_prog_check_msgfmt"
3137 if test -n "$check_msgfmt"; then
3138 echo "$ac_t""$check_msgfmt" 1>&6
3139 else
3140 echo "$ac_t""no" 1>&6
3143 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3144 USE_NLS=yes
3146 # Export the build objects.
3147 for ling in $ALL_LINGUAS; do \
3148 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3149 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3150 done
3154 CLOCALE_H=config/locale/gnu/c_locale.h
3155 CLOCALE_CC=config/locale/gnu/c_locale.cc
3156 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3157 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3158 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3159 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3160 CMESSAGES_H=config/locale/gnu/messages_members.h
3161 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3162 CMONEY_CC=config/locale/gnu/monetary_members.cc
3163 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3164 CTIME_H=config/locale/gnu/time_members.h
3165 CTIME_CC=config/locale/gnu/time_members.cc
3166 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3168 xieee_1003.1-2001)
3169 echo "$ac_t""generic" 1>&6
3171 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3172 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3173 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3174 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3175 CCOLLATE_CC=config/locale/generic/collate_members.cc
3176 CCTYPE_CC=config/locale/generic/ctype_members.cc
3177 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3178 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3179 CMONEY_CC=config/locale/generic/monetary_members.cc
3180 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3181 CTIME_H=config/locale/generic/time_members.h
3182 CTIME_CC=config/locale/generic/time_members.cc
3183 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3186 echo "$enable_clocale is an unknown locale package" 1>&2
3187 exit 1
3189 esac
3191 # This is where the testsuite looks for locale catalogs, using the
3192 # -DLOCALEDIR define during testsuite compilation.
3193 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3211 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3212 echo "configure:3213: checking for c header strategy to use" >&5
3213 # Check whether --enable-cheaders or --disable-cheaders was given.
3214 if test "${enable_cheaders+set}" = set; then
3215 enableval="$enable_cheaders"
3217 case "$enableval" in
3219 enable_cheaders=c
3221 c_std)
3222 enable_cheaders=c_std
3224 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3226 esac
3227 else
3228 enable_cheaders=c_std
3231 echo "$ac_t""$enable_cheaders" 1>&6
3233 case "$enable_cheaders" in
3234 c_std)
3235 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3238 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3240 esac
3245 if test "$enable_cheaders" = c; then
3246 GLIBCPP_C_HEADERS_C_TRUE=
3247 GLIBCPP_C_HEADERS_C_FALSE='#'
3248 else
3249 GLIBCPP_C_HEADERS_C_TRUE='#'
3250 GLIBCPP_C_HEADERS_C_FALSE=
3254 if test "$enable_cheaders" = c_std; then
3255 GLIBCPP_C_HEADERS_C_STD_TRUE=
3256 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3257 else
3258 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3259 GLIBCPP_C_HEADERS_C_STD_FALSE=
3263 if test "$c_compatibility" = yes; then
3264 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3265 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3266 else
3267 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3268 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3271 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3272 if test "${enable_c_mbchar+set}" = set; then
3273 enableval="$enable_c_mbchar"
3274 case "$enableval" in
3275 yes) enable_c_mbchar=yes ;;
3276 no) enable_c_mbchar=no ;;
3277 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3278 esac
3279 else
3280 enable_c_mbchar=yes
3284 # Check whether --enable-c99 or --disable-c99 was given.
3285 if test "${enable_c99+set}" = set; then
3286 enableval="$enable_c99"
3287 case "$enableval" in
3288 yes) enable_c99=yes ;;
3289 no) enable_c99=no ;;
3290 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3291 esac
3292 else
3293 enable_c99=yes
3297 ac_ext=C
3298 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3299 ac_cpp='$CXXCPP $CPPFLAGS'
3300 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3301 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3302 cross_compiling=$ac_cv_prog_cxx_cross
3305 # Check for the existence of <math.h> functions used if C99 is enabled.
3306 ac_c99_math=yes;
3307 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3308 echo "configure:3309: checking for ISO C99 support in <math.h>" >&5
3309 cat > conftest.$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3312 #include <math.h>
3313 int main() {
3314 fpclassify(0.0);
3315 ; return 0; }
3317 if { (eval echo configure:3318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3319 else
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3322 rm -rf conftest*
3323 ac_c99_math=no
3325 rm -f conftest*
3326 cat > conftest.$ac_ext <<EOF
3327 #line 3328 "configure"
3328 #include "confdefs.h"
3329 #include <math.h>
3330 int main() {
3331 isfinite(0.0);
3332 ; return 0; }
3334 if { (eval echo configure:3335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3336 else
3337 echo "configure: failed program was:" >&5
3338 cat conftest.$ac_ext >&5
3339 rm -rf conftest*
3340 ac_c99_math=no
3342 rm -f conftest*
3343 cat > conftest.$ac_ext <<EOF
3344 #line 3345 "configure"
3345 #include "confdefs.h"
3346 #include <math.h>
3347 int main() {
3348 isinf(0.0);
3349 ; return 0; }
3351 if { (eval echo configure:3352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3353 else
3354 echo "configure: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3356 rm -rf conftest*
3357 ac_c99_math=no
3359 rm -f conftest*
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3363 #include <math.h>
3364 int main() {
3365 isnan(0.0);
3366 ; return 0; }
3368 if { (eval echo configure:3369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3370 else
3371 echo "configure: failed program was:" >&5
3372 cat conftest.$ac_ext >&5
3373 rm -rf conftest*
3374 ac_c99_math=no
3376 rm -f conftest*
3377 cat > conftest.$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3380 #include <math.h>
3381 int main() {
3382 isnormal(0.0);
3383 ; return 0; }
3385 if { (eval echo configure:3386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3387 else
3388 echo "configure: failed program was:" >&5
3389 cat conftest.$ac_ext >&5
3390 rm -rf conftest*
3391 ac_c99_math=no
3393 rm -f conftest*
3394 cat > conftest.$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3397 #include <math.h>
3398 int main() {
3399 signbit(0.0);
3400 ; return 0; }
3402 if { (eval echo configure:3403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3404 else
3405 echo "configure: failed program was:" >&5
3406 cat conftest.$ac_ext >&5
3407 rm -rf conftest*
3408 ac_c99_math=no
3410 rm -f conftest*
3411 cat > conftest.$ac_ext <<EOF
3412 #line 3413 "configure"
3413 #include "confdefs.h"
3414 #include <math.h>
3415 int main() {
3416 isgreater(0.0,0.0);
3417 ; return 0; }
3419 if { (eval echo configure:3420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3421 else
3422 echo "configure: failed program was:" >&5
3423 cat conftest.$ac_ext >&5
3424 rm -rf conftest*
3425 ac_c99_math=no
3427 rm -f conftest*
3428 cat > conftest.$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3431 #include <math.h>
3432 int main() {
3433 isgreaterequal(0.0,0.0);
3434 ; return 0; }
3436 if { (eval echo configure:3437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3438 else
3439 echo "configure: failed program was:" >&5
3440 cat conftest.$ac_ext >&5
3441 rm -rf conftest*
3442 ac_c99_math=no
3444 rm -f conftest*
3445 cat > conftest.$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3448 #include <math.h>
3449 int main() {
3450 isless(0.0,0.0);
3451 ; return 0; }
3453 if { (eval echo configure:3454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3455 else
3456 echo "configure: failed program was:" >&5
3457 cat conftest.$ac_ext >&5
3458 rm -rf conftest*
3459 ac_c99_math=no
3461 rm -f conftest*
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 #include <math.h>
3466 int main() {
3467 islessequal(0.0,0.0);
3468 ; return 0; }
3470 if { (eval echo configure:3471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3472 else
3473 echo "configure: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3475 rm -rf conftest*
3476 ac_c99_math=no
3478 rm -f conftest*
3479 cat > conftest.$ac_ext <<EOF
3480 #line 3481 "configure"
3481 #include "confdefs.h"
3482 #include <math.h>
3483 int main() {
3484 islessgreater(0.0,0.0);
3485 ; return 0; }
3487 if { (eval echo configure:3488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3489 else
3490 echo "configure: failed program was:" >&5
3491 cat conftest.$ac_ext >&5
3492 rm -rf conftest*
3493 ac_c99_math=no
3495 rm -f conftest*
3496 cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 #include <math.h>
3500 int main() {
3501 isunordered(0.0,0.0);
3502 ; return 0; }
3504 if { (eval echo configure:3505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3506 else
3507 echo "configure: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3509 rm -rf conftest*
3510 ac_c99_math=no
3512 rm -f conftest*
3513 echo "$ac_t""$ac_c99_math" 1>&6
3515 # Check for the existence in <stdio.h> of vscanf, et. al.
3516 ac_c99_stdio=yes;
3517 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3518 echo "configure:3519: checking for ISO C99 support in <stdio.h>" >&5
3519 cat > conftest.$ac_ext <<EOF
3520 #line 3521 "configure"
3521 #include "confdefs.h"
3522 #include <stdio.h>
3523 int main() {
3524 snprintf("12", 0, "%i");
3525 ; return 0; }
3527 if { (eval echo configure:3528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3529 else
3530 echo "configure: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3532 rm -rf conftest*
3533 ac_c99_stdio=no
3535 rm -f conftest*
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 #include <stdio.h>
3540 #include <stdarg.h>
3541 void foo(char* fmt, ...)
3542 {va_list args; va_start(args, fmt);
3543 vfscanf(stderr, "%i", args);}
3544 int main() {
3546 ; return 0; }
3548 if { (eval echo configure:3549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3550 else
3551 echo "configure: failed program was:" >&5
3552 cat conftest.$ac_ext >&5
3553 rm -rf conftest*
3554 ac_c99_stdio=no
3556 rm -f conftest*
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 #include <stdio.h>
3561 #include <stdarg.h>
3562 void foo(char* fmt, ...)
3563 {va_list args; va_start(args, fmt);
3564 vscanf("%i", args);}
3565 int main() {
3567 ; return 0; }
3569 if { (eval echo configure:3570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3571 else
3572 echo "configure: failed program was:" >&5
3573 cat conftest.$ac_ext >&5
3574 rm -rf conftest*
3575 ac_c99_stdio=no
3577 rm -f conftest*
3578 cat > conftest.$ac_ext <<EOF
3579 #line 3580 "configure"
3580 #include "confdefs.h"
3581 #include <stdio.h>
3582 #include <stdarg.h>
3583 void foo(char* fmt, ...)
3584 {va_list args; va_start(args, fmt);
3585 vsnprintf(fmt, 0, "%i", args);}
3586 int main() {
3588 ; return 0; }
3590 if { (eval echo configure:3591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3592 else
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3595 rm -rf conftest*
3596 ac_c99_stdio=no
3598 rm -f conftest*
3599 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3602 #include <stdio.h>
3603 #include <stdarg.h>
3604 void foo(char* fmt, ...)
3605 {va_list args; va_start(args, fmt);
3606 vsscanf(fmt, "%i", args);}
3607 int main() {
3609 ; return 0; }
3611 if { (eval echo configure:3612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3613 else
3614 echo "configure: failed program was:" >&5
3615 cat conftest.$ac_ext >&5
3616 rm -rf conftest*
3617 ac_c99_stdio=no
3619 rm -f conftest*
3620 echo "$ac_t""$ac_c99_stdio" 1>&6
3622 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3623 ac_c99_stdlib=yes;
3624 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3625 echo "configure:3626: checking for lldiv_t declaration" >&5
3626 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3628 else
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 #include <stdlib.h>
3634 int main() {
3635 lldiv_t mydivt;
3636 ; return 0; }
3638 if { (eval echo configure:3639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3639 rm -rf conftest*
3640 ac_c99_lldiv_t=yes
3641 else
3642 echo "configure: failed program was:" >&5
3643 cat conftest.$ac_ext >&5
3644 rm -rf conftest*
3645 ac_c99_lldiv_t=no
3647 rm -f conftest*
3651 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3653 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3654 echo "configure:3655: checking for ISO C99 support in <stdlib.h>" >&5
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 #include <stdlib.h>
3659 int main() {
3660 char* tmp; strtof("gnu", &tmp);
3661 ; return 0; }
3663 if { (eval echo configure:3664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3665 else
3666 echo "configure: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3668 rm -rf conftest*
3669 ac_c99_stdlib=no
3671 rm -f conftest*
3672 cat > conftest.$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3675 #include <stdlib.h>
3676 int main() {
3677 char* tmp; strtold("gnu", &tmp);
3678 ; return 0; }
3680 if { (eval echo configure:3681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3682 else
3683 echo "configure: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3685 rm -rf conftest*
3686 ac_c99_stdlib=no
3688 rm -f conftest*
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692 #include <stdlib.h>
3693 int main() {
3694 llabs(10);
3695 ; return 0; }
3697 if { (eval echo configure:3698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3699 else
3700 echo "configure: failed program was:" >&5
3701 cat conftest.$ac_ext >&5
3702 rm -rf conftest*
3703 ac_c99_stdlib=no
3705 rm -f conftest*
3706 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3709 #include <stdlib.h>
3710 int main() {
3711 lldiv(10,1);
3712 ; return 0; }
3714 if { (eval echo configure:3715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3716 else
3717 echo "configure: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3719 rm -rf conftest*
3720 ac_c99_stdlib=no
3722 rm -f conftest*
3723 cat > conftest.$ac_ext <<EOF
3724 #line 3725 "configure"
3725 #include "confdefs.h"
3726 #include <stdlib.h>
3727 int main() {
3728 atoll("10");
3729 ; return 0; }
3731 if { (eval echo configure:3732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3733 else
3734 echo "configure: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3736 rm -rf conftest*
3737 ac_c99_stdlib=no
3739 rm -f conftest*
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 #include <stdlib.h>
3744 int main() {
3745 _Exit(0);
3746 ; return 0; }
3748 if { (eval echo configure:3749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3750 else
3751 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3753 rm -rf conftest*
3754 ac_c99_stdlib=no
3756 rm -f conftest*
3757 if test x"$ac_c99_lldiv_t" = x"no"; then
3758 ac_c99_stdlib=no;
3760 echo "$ac_t""$ac_c99_stdlib" 1>&6
3762 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3763 # XXX the wchar.h checks should be rolled into the general C99 bits.
3764 ac_c99_wchar=yes;
3765 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3766 echo "configure:3767: checking for additional ISO C99 support in <wchar.h>" >&5
3767 cat > conftest.$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3770 #include <wchar.h>
3771 int main() {
3772 wcstold(L"10.0", NULL);
3773 ; return 0; }
3775 if { (eval echo configure:3776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3777 else
3778 echo "configure: failed program was:" >&5
3779 cat conftest.$ac_ext >&5
3780 rm -rf conftest*
3781 ac_c99_wchar=no
3783 rm -f conftest*
3784 cat > conftest.$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3787 #include <wchar.h>
3788 int main() {
3789 wcstoll(L"10", NULL, 10);
3790 ; return 0; }
3792 if { (eval echo configure:3793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3794 else
3795 echo "configure: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3797 rm -rf conftest*
3798 ac_c99_wchar=no
3800 rm -f conftest*
3801 cat > conftest.$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 #include <wchar.h>
3805 int main() {
3806 wcstoull(L"10", NULL, 10);
3807 ; return 0; }
3809 if { (eval echo configure:3810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3811 else
3812 echo "configure: failed program was:" >&5
3813 cat conftest.$ac_ext >&5
3814 rm -rf conftest*
3815 ac_c99_wchar=no
3817 rm -f conftest*
3818 echo "$ac_t""$ac_c99_wchar" 1>&6
3820 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3821 echo "configure:3822: checking for enabled ISO C99 support" >&5
3822 if test x"$ac_c99_math" = x"no" ||
3823 test x"$ac_c99_stdio" = x"no" ||
3824 test x"$ac_c99_stdlib" = x"no" ||
3825 test x"$ac_c99_wchar" = x"no"; then
3826 enable_c99=no;
3828 echo "$ac_t""$enable_c99" 1>&6
3830 # Option parsed, now set things appropriately
3831 if test x"$enable_c99" = x"yes"; then
3832 cat >> confdefs.h <<\EOF
3833 #define _GLIBCPP_USE_C99 1
3838 ac_ext=c
3839 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3840 ac_cpp='$CPP $CPPFLAGS'
3841 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3842 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3843 cross_compiling=$ac_cv_prog_cc_cross
3847 # Check whether --enable-long-long or --disable-long-long was given.
3848 if test "${enable_long_long+set}" = set; then
3849 enableval="$enable_long_long"
3850 case "$enableval" in
3851 yes) enable_long_long=yes ;;
3852 no) enable_long_long=no ;;
3853 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3854 esac
3855 else
3856 enable_long_long=yes
3860 ac_ext=C
3861 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3862 ac_cpp='$CXXCPP $CPPFLAGS'
3863 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3864 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3865 cross_compiling=$ac_cv_prog_cxx_cross
3868 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3869 echo "configure:3870: checking for enabled long long I/O support" >&5
3870 # iostreams require strtoll, strtoull to compile
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 #include <stdlib.h>
3875 int main() {
3876 char* tmp; strtoll("gnu", &tmp, 10);
3877 ; return 0; }
3879 if { (eval echo configure:3880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3881 else
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3884 rm -rf conftest*
3885 enable_long_long=no
3887 rm -f conftest*
3888 cat > conftest.$ac_ext <<EOF
3889 #line 3890 "configure"
3890 #include "confdefs.h"
3891 #include <stdlib.h>
3892 int main() {
3893 char* tmp; strtoull("gnu", &tmp, 10);
3894 ; return 0; }
3896 if { (eval echo configure:3897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3898 else
3899 echo "configure: failed program was:" >&5
3900 cat conftest.$ac_ext >&5
3901 rm -rf conftest*
3902 enable_long_long=no
3904 rm -f conftest*
3906 # Option parsed, now set things appropriately
3907 if test x"$enable_long_long" = xyes; then
3908 cat >> confdefs.h <<\EOF
3909 #define _GLIBCPP_USE_LONG_LONG 1
3913 echo "$ac_t""$enable_long_long" 1>&6
3915 ac_ext=c
3916 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3919 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3920 cross_compiling=$ac_cv_prog_cc_cross
3924 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3925 echo "configure:3926: checking for thread model used by GCC" >&5
3926 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3927 echo "$ac_t""$target_thread_file" 1>&6
3929 if test $target_thread_file != single; then
3930 cat >> confdefs.h <<\EOF
3931 #define HAVE_GTHR_DEFAULT 1
3934 cat >> confdefs.h <<\EOF
3935 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3940 glibcpp_thread_h=gthr-$target_thread_file.h
3944 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3945 echo "configure:3946: checking for exception model to use" >&5
3947 ac_ext=C
3948 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3949 ac_cpp='$CXXCPP $CPPFLAGS'
3950 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3951 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3952 cross_compiling=$ac_cv_prog_cxx_cross
3954 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3955 if test "${enable_sjlj_exceptions+set}" = set; then
3956 enableval="$enable_sjlj_exceptions"
3958 else
3959 cat > conftest.$ac_ext << EOF
3960 #line 3961 "configure"
3961 struct S { ~S(); };
3962 void bar();
3963 void foo()
3965 S s;
3966 bar();
3969 old_CXXFLAGS="$CXXFLAGS"
3970 CXXFLAGS=-S
3971 if { (eval echo configure:3972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3972 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3973 enable_sjlj_exceptions=yes
3974 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3975 enable_sjlj_exceptions=no
3978 CXXFLAGS="$old_CXXFLAGS"
3979 rm -f conftest*
3982 if test x$enable_sjlj_exceptions = xyes; then
3983 cat >> confdefs.h <<\EOF
3984 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3987 ac_exception_model_name=sjlj
3988 elif test x$enable_sjlj_exceptions = xno; then
3989 ac_exception_model_name="call frame"
3990 else
3991 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3993 ac_ext=c
3994 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3997 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3998 cross_compiling=$ac_cv_prog_cc_cross
4000 echo "$ac_t""$ac_exception_model_name" 1>&6
4003 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4004 echo "configure:4005: checking for use of libunwind" >&5
4005 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4006 if test "${enable_libunwind_exceptions+set}" = set; then
4007 enableval="$enable_libunwind_exceptions"
4008 use_libunwind_exceptions=$enableval
4009 else
4010 use_libunwind_exceptions=no
4013 echo "$ac_t""$use_libunwind_exceptions" 1>&6
4014 if test x"$use_libunwind_exceptions" = xyes; then
4015 LIBUNWIND_FLAG="-lunwind"
4016 else
4017 LIBUNWIND_FLAG=""
4021 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4022 if test "${enable_concept_checks+set}" = set; then
4023 enableval="$enable_concept_checks"
4024 case "$enableval" in
4025 yes) enable_concept_checks=yes ;;
4026 no) enable_concept_checks=no ;;
4027 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4028 esac
4029 else
4030 enable_concept_checks=no
4032 if test x"$enable_concept_checks" = xyes; then
4033 cat >> confdefs.h <<\EOF
4034 #define _GLIBCPP_CONCEPT_CHECKS 1
4039 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4040 echo "configure:4041: checking for extra compiler flags for building" >&5
4041 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4042 if test "${enable_cxx_flags+set}" = set; then
4043 enableval="$enable_cxx_flags"
4044 case "x$enable_cxx_flags" in
4045 xyes)
4046 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4047 xno | xnone | x)
4048 enable_cxx_flags='' ;;
4050 enable_cxx_flags="$enableval" ;;
4051 esac
4052 else
4053 enable_cxx_flags=
4057 if test -n "$enable_cxx_flags"; then
4058 for f in $enable_cxx_flags; do
4059 case "$f" in
4060 -fhonor-std) ;;
4061 -*) ;;
4062 *) # and we're trying to pass /what/ exactly?
4063 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4064 esac
4065 done
4067 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4068 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4071 # Check whether --enable-debug or --disable-debug was given.
4072 if test "${enable_debug+set}" = set; then
4073 enableval="$enable_debug"
4074 case "${enableval}" in
4075 yes) enable_debug=yes ;;
4076 no) enable_debug=no ;;
4077 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4078 esac
4079 else
4080 enable_debug=no
4082 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4083 echo "configure:4084: checking for additional debug build" >&5
4084 echo "$ac_t""$enable_debug" 1>&6
4087 if test "$enable_debug" = yes; then
4088 GLIBCPP_BUILD_DEBUG_TRUE=
4089 GLIBCPP_BUILD_DEBUG_FALSE='#'
4090 else
4091 GLIBCPP_BUILD_DEBUG_TRUE='#'
4092 GLIBCPP_BUILD_DEBUG_FALSE=
4095 # Check whether --enable-debug_flags or --disable-debug_flags was given.
4096 if test "${enable_debug_flags+set}" = set; then
4097 enableval="$enable_debug_flags"
4098 case "${enableval}" in
4099 none) ;;
4100 -*) enable_debug_flags="${enableval}" ;;
4101 *) { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4102 esac
4103 else
4104 enable_debug_flags=none
4107 case x"$enable_debug" in
4108 xyes)
4109 case "$enable_debug_flags" in
4110 none)
4111 DEBUG_FLAGS="-g3 -O0";;
4112 -*) #valid input
4113 DEBUG_FLAGS="${enableval}"
4114 esac
4116 xno)
4117 DEBUG_FLAGS=""
4119 esac
4122 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4123 echo "configure:4124: checking for debug build flags" >&5
4124 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4127 # No surprises, no surprises...
4128 if test $ATOMICITYH = cpu/generic ; then
4129 echo "configure: warning: No native atomic operations are provided for this platform." 1>&2
4130 if test $target_thread_file = single; then
4131 echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4132 echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4133 else
4134 echo "configure: warning: They will be faked using a mutex." 1>&2
4135 echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4140 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4142 # We are being configured with some form of cross compiler.
4143 GLIBCPP_IS_CROSS_COMPILING=1
4145 # This lets us hard-code the functionality we know we'll have in the cross
4146 # target environment. "Let" is a sugar-coated word placed on an especially
4147 # dull and tedious hack, actually.
4149 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4150 # that involve linking, can't be used:
4151 # "cannot open sim-crt0.o"
4152 # "cannot open crt0.o"
4153 # etc. All this is because there currently exists no unified, consistent
4154 # way for top level CC information to be passed down to target directories:
4155 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4156 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4157 # crosses can be removed.
4159 # If Canadian cross, then don't pick up tools from the build directory.
4160 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4161 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4162 CANADIAN=yes
4163 else
4164 CANADIAN=no
4167 # Construct crosses by hand, eliminating bits that need ld...
4168 # GLIBCPP_CHECK_COMPILER_FEATURES
4169 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4170 # GLIBCPP_CHECK_MATH_SUPPORT
4172 case "$target" in
4173 *-linux*)
4174 os_include_dir="os/gnu-linux"
4175 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4176 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4177 fp.h locale.h float.h inttypes.h
4179 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4180 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4181 echo "configure:4182: checking for $ac_hdr" >&5
4182 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4184 else
4185 cat > conftest.$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4188 #include <$ac_hdr>
4190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4191 { (eval echo configure:4192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4192 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4193 if test -z "$ac_err"; then
4194 rm -rf conftest*
4195 eval "ac_cv_header_$ac_safe=yes"
4196 else
4197 echo "$ac_err" >&5
4198 echo "configure: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4200 rm -rf conftest*
4201 eval "ac_cv_header_$ac_safe=no"
4203 rm -f conftest*
4205 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4206 echo "$ac_t""yes" 1>&6
4207 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4208 cat >> confdefs.h <<EOF
4209 #define $ac_tr_hdr 1
4212 else
4213 echo "$ac_t""no" 1>&6
4215 done
4217 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4220 # If we're not using GNU ld, then there's no point in even trying these
4221 # tests. Check for that first. We should have already tested for gld
4222 # by now (in libtool), but require it now just to be safe...
4223 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4224 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4227 # The name set by libtool depends on the version of libtool. Shame on us
4228 # for depending on an impl detail, but c'est la vie. Older versions used
4229 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4230 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4231 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4232 # set (hence we're using an older libtool), then set it.
4233 if test x${with_gnu_ld+set} != xset; then
4234 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4235 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4236 with_gnu_ld=no
4237 else
4238 with_gnu_ld=$ac_cv_prog_gnu_ld
4242 # Start by getting the version number. I think the libtool test already
4243 # does some of this, but throws away the result.
4245 ldver=`$LD --version 2>/dev/null | head -1 | \
4246 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4248 glibcpp_gnu_ld_version=`echo $ldver | \
4249 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4251 # Set --gc-sections.
4252 if test "$with_gnu_ld" = "notbroken"; then
4253 # GNU ld it is! Joy and bunny rabbits!
4255 # All these tests are for C++; save the language and the compiler flags.
4256 # Need to do this so that g++ won't try to link in libstdc++
4257 ac_test_CFLAGS="${CFLAGS+set}"
4258 ac_save_CFLAGS="$CFLAGS"
4259 CFLAGS='-x c++ -Wl,--gc-sections'
4261 # Check for -Wl,--gc-sections
4262 # XXX This test is broken at the moment, as symbols required for
4263 # linking are now in libsupc++ (not built yet.....). In addition,
4264 # this test has cored on solaris in the past. In addition,
4265 # --gc-sections doesn't really work at the moment (keeps on discarding
4266 # used sections, first .eh_frame and now some of the glibc sections for
4267 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4268 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4269 echo "configure:4270: checking for ld that supports -Wl,--gc-sections" >&5
4270 if test "$cross_compiling" = yes; then
4271 ac_sectionLDflags=yes
4272 else
4273 cat > conftest.$ac_ext <<EOF
4274 #line 4275 "configure"
4275 #include "confdefs.h"
4277 int main(void)
4279 try { throw 1; }
4280 catch (...) { };
4281 return 0;
4285 if { (eval echo configure:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4286 then
4287 ac_sectionLDflags=yes
4288 else
4289 echo "configure: failed program was:" >&5
4290 cat conftest.$ac_ext >&5
4291 rm -fr conftest*
4292 ac_sectionLDflags=no
4294 rm -fr conftest*
4297 if test "$ac_test_CFLAGS" = set; then
4298 CFLAGS="$ac_save_CFLAGS"
4299 else
4300 # this is the suspicious part
4301 CFLAGS=''
4303 if test "$ac_sectionLDflags" = "yes"; then
4304 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4306 echo "$ac_t""$ac_sectionLDflags" 1>&6
4309 # Set linker optimization flags.
4310 if test x"$with_gnu_ld" = x"yes"; then
4311 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4318 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4319 echo "configure:4320: checking for main in -lm" >&5
4320 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4323 else
4324 ac_save_LIBS="$LIBS"
4325 LIBS="-lm $LIBS"
4326 cat > conftest.$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4330 int main() {
4331 main()
4332 ; return 0; }
4334 if { (eval echo configure:4335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4335 rm -rf conftest*
4336 eval "ac_cv_lib_$ac_lib_var=yes"
4337 else
4338 echo "configure: failed program was:" >&5
4339 cat conftest.$ac_ext >&5
4340 rm -rf conftest*
4341 eval "ac_cv_lib_$ac_lib_var=no"
4343 rm -f conftest*
4344 LIBS="$ac_save_LIBS"
4347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4348 echo "$ac_t""yes" 1>&6
4349 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4351 cat >> confdefs.h <<EOF
4352 #define $ac_tr_lib 1
4355 LIBS="-lm $LIBS"
4357 else
4358 echo "$ac_t""no" 1>&6
4361 for ac_func in nan copysignf
4363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4364 echo "configure:4365: checking for $ac_func" >&5
4365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4367 else
4368 cat > conftest.$ac_ext <<EOF
4369 #line 4370 "configure"
4370 #include "confdefs.h"
4371 /* System header to define __stub macros and hopefully few prototypes,
4372 which can conflict with char $ac_func(); below. */
4373 #include <assert.h>
4374 /* Override any gcc2 internal prototype to avoid an error. */
4375 /* We use char because int might match the return type of a gcc2
4376 builtin and then its argument prototype would still apply. */
4377 char $ac_func();
4379 int main() {
4381 /* The GNU C library defines this for functions which it implements
4382 to always fail with ENOSYS. Some functions are actually named
4383 something starting with __ and the normal name is an alias. */
4384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4385 choke me
4386 #else
4387 $ac_func();
4388 #endif
4390 ; return 0; }
4392 if { (eval echo configure:4393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4393 rm -rf conftest*
4394 eval "ac_cv_func_$ac_func=yes"
4395 else
4396 echo "configure: failed program was:" >&5
4397 cat conftest.$ac_ext >&5
4398 rm -rf conftest*
4399 eval "ac_cv_func_$ac_func=no"
4401 rm -f conftest*
4404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4405 echo "$ac_t""yes" 1>&6
4406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4407 cat >> confdefs.h <<EOF
4408 #define $ac_tr_func 1
4411 else
4412 echo "$ac_t""no" 1>&6
4413 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4415 done
4418 for ac_func in __signbit
4420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4421 echo "configure:4422: checking for $ac_func" >&5
4422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4423 echo $ac_n "(cached) $ac_c" 1>&6
4424 else
4425 cat > conftest.$ac_ext <<EOF
4426 #line 4427 "configure"
4427 #include "confdefs.h"
4428 /* System header to define __stub macros and hopefully few prototypes,
4429 which can conflict with char $ac_func(); below. */
4430 #include <assert.h>
4431 /* Override any gcc2 internal prototype to avoid an error. */
4432 /* We use char because int might match the return type of a gcc2
4433 builtin and then its argument prototype would still apply. */
4434 char $ac_func();
4436 int main() {
4438 /* The GNU C library defines this for functions which it implements
4439 to always fail with ENOSYS. Some functions are actually named
4440 something starting with __ and the normal name is an alias. */
4441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4442 choke me
4443 #else
4444 $ac_func();
4445 #endif
4447 ; return 0; }
4449 if { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4450 rm -rf conftest*
4451 eval "ac_cv_func_$ac_func=yes"
4452 else
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4455 rm -rf conftest*
4456 eval "ac_cv_func_$ac_func=no"
4458 rm -f conftest*
4461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4462 echo "$ac_t""yes" 1>&6
4463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4464 cat >> confdefs.h <<EOF
4465 #define $ac_tr_func 1
4468 else
4469 echo "$ac_t""no" 1>&6
4470 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4472 done
4474 for ac_func in __signbitf
4476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4477 echo "configure:4478: checking for $ac_func" >&5
4478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4479 echo $ac_n "(cached) $ac_c" 1>&6
4480 else
4481 cat > conftest.$ac_ext <<EOF
4482 #line 4483 "configure"
4483 #include "confdefs.h"
4484 /* System header to define __stub macros and hopefully few prototypes,
4485 which can conflict with char $ac_func(); below. */
4486 #include <assert.h>
4487 /* Override any gcc2 internal prototype to avoid an error. */
4488 /* We use char because int might match the return type of a gcc2
4489 builtin and then its argument prototype would still apply. */
4490 char $ac_func();
4492 int main() {
4494 /* The GNU C library defines this for functions which it implements
4495 to always fail with ENOSYS. Some functions are actually named
4496 something starting with __ and the normal name is an alias. */
4497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4498 choke me
4499 #else
4500 $ac_func();
4501 #endif
4503 ; return 0; }
4505 if { (eval echo configure:4506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4506 rm -rf conftest*
4507 eval "ac_cv_func_$ac_func=yes"
4508 else
4509 echo "configure: failed program was:" >&5
4510 cat conftest.$ac_ext >&5
4511 rm -rf conftest*
4512 eval "ac_cv_func_$ac_func=no"
4514 rm -f conftest*
4517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4518 echo "$ac_t""yes" 1>&6
4519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4520 cat >> confdefs.h <<EOF
4521 #define $ac_tr_func 1
4524 else
4525 echo "$ac_t""no" 1>&6
4526 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4528 done
4531 if test x$ac_cv_func_copysignl = x"yes"; then
4532 for ac_func in __signbitl
4534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4535 echo "configure:4536: checking for $ac_func" >&5
4536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4537 echo $ac_n "(cached) $ac_c" 1>&6
4538 else
4539 cat > conftest.$ac_ext <<EOF
4540 #line 4541 "configure"
4541 #include "confdefs.h"
4542 /* System header to define __stub macros and hopefully few prototypes,
4543 which can conflict with char $ac_func(); below. */
4544 #include <assert.h>
4545 /* Override any gcc2 internal prototype to avoid an error. */
4546 /* We use char because int might match the return type of a gcc2
4547 builtin and then its argument prototype would still apply. */
4548 char $ac_func();
4550 int main() {
4552 /* The GNU C library defines this for functions which it implements
4553 to always fail with ENOSYS. Some functions are actually named
4554 something starting with __ and the normal name is an alias. */
4555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4556 choke me
4557 #else
4558 $ac_func();
4559 #endif
4561 ; return 0; }
4563 if { (eval echo configure:4564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4564 rm -rf conftest*
4565 eval "ac_cv_func_$ac_func=yes"
4566 else
4567 echo "configure: failed program was:" >&5
4568 cat conftest.$ac_ext >&5
4569 rm -rf conftest*
4570 eval "ac_cv_func_$ac_func=no"
4572 rm -f conftest*
4575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4576 echo "$ac_t""yes" 1>&6
4577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4578 cat >> confdefs.h <<EOF
4579 #define $ac_tr_func 1
4582 else
4583 echo "$ac_t""no" 1>&6
4584 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4586 done
4590 if test -n "$LIBMATHOBJS"; then
4591 need_libmath=yes
4596 if test "$need_libmath" = yes; then
4597 GLIBCPP_BUILD_LIBMATH_TRUE=
4598 GLIBCPP_BUILD_LIBMATH_FALSE='#'
4599 else
4600 GLIBCPP_BUILD_LIBMATH_TRUE='#'
4601 GLIBCPP_BUILD_LIBMATH_FALSE=
4605 enable_wchar_t=no
4607 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4608 echo "configure:4609: checking for mbstate_t" >&5
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 #include <wchar.h>
4613 int main() {
4614 mbstate_t teststate;
4615 ; return 0; }
4617 if { (eval echo configure:4618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4618 rm -rf conftest*
4619 have_mbstate_t=yes
4620 else
4621 echo "configure: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4623 rm -rf conftest*
4624 have_mbstate_t=no
4626 rm -f conftest*
4627 echo "$ac_t""$have_mbstate_t" 1>&6
4628 if test x"$have_mbstate_t" = xyes; then
4629 cat >> confdefs.h <<\EOF
4630 #define HAVE_MBSTATE_T 1
4635 for ac_hdr in wchar.h
4637 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4638 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4639 echo "configure:4640: checking for $ac_hdr" >&5
4640 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4641 echo $ac_n "(cached) $ac_c" 1>&6
4642 else
4643 cat > conftest.$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4646 #include <$ac_hdr>
4648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4649 { (eval echo configure:4650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4651 if test -z "$ac_err"; then
4652 rm -rf conftest*
4653 eval "ac_cv_header_$ac_safe=yes"
4654 else
4655 echo "$ac_err" >&5
4656 echo "configure: failed program was:" >&5
4657 cat conftest.$ac_ext >&5
4658 rm -rf conftest*
4659 eval "ac_cv_header_$ac_safe=no"
4661 rm -f conftest*
4663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4664 echo "$ac_t""yes" 1>&6
4665 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4666 cat >> confdefs.h <<EOF
4667 #define $ac_tr_hdr 1
4669 ac_has_wchar_h=yes
4670 else
4671 echo "$ac_t""no" 1>&6
4672 ac_has_wchar_h=no
4674 done
4676 for ac_hdr in wctype.h
4678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4679 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4680 echo "configure:4681: checking for $ac_hdr" >&5
4681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4682 echo $ac_n "(cached) $ac_c" 1>&6
4683 else
4684 cat > conftest.$ac_ext <<EOF
4685 #line 4686 "configure"
4686 #include "confdefs.h"
4687 #include <$ac_hdr>
4689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4690 { (eval echo configure:4691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4692 if test -z "$ac_err"; then
4693 rm -rf conftest*
4694 eval "ac_cv_header_$ac_safe=yes"
4695 else
4696 echo "$ac_err" >&5
4697 echo "configure: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4699 rm -rf conftest*
4700 eval "ac_cv_header_$ac_safe=no"
4702 rm -f conftest*
4704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4705 echo "$ac_t""yes" 1>&6
4706 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4707 cat >> confdefs.h <<EOF
4708 #define $ac_tr_hdr 1
4710 ac_has_wctype_h=yes
4711 else
4712 echo "$ac_t""no" 1>&6
4713 ac_has_wctype_h=no
4715 done
4718 if test x"$ac_has_wchar_h" = xyes &&
4719 test x"$ac_has_wctype_h" = xyes &&
4720 test x"$enable_c_mbchar" != xno; then
4722 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4723 echo "configure:4724: checking for WCHAR_MIN and WCHAR_MAX" >&5
4724 cat > conftest.$ac_ext <<EOF
4725 #line 4726 "configure"
4726 #include "confdefs.h"
4727 #include <wchar.h>
4728 int main() {
4729 int i = WCHAR_MIN; int j = WCHAR_MAX;
4730 ; return 0; }
4732 if { (eval echo configure:4733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4733 rm -rf conftest*
4734 has_wchar_minmax=yes
4735 else
4736 echo "configure: failed program was:" >&5
4737 cat conftest.$ac_ext >&5
4738 rm -rf conftest*
4739 has_wchar_minmax=no
4741 rm -f conftest*
4742 echo "$ac_t""$has_wchar_minmax" 1>&6
4744 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4745 echo "configure:4746: checking for WEOF" >&5
4746 cat > conftest.$ac_ext <<EOF
4747 #line 4748 "configure"
4748 #include "confdefs.h"
4750 #include <wchar.h>
4751 #include <stddef.h>
4752 int main() {
4753 wint_t i = WEOF;
4754 ; return 0; }
4756 if { (eval echo configure:4757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4757 rm -rf conftest*
4758 has_weof=yes
4759 else
4760 echo "configure: failed program was:" >&5
4761 cat conftest.$ac_ext >&5
4762 rm -rf conftest*
4763 has_weof=no
4765 rm -f conftest*
4766 echo "$ac_t""$has_weof" 1>&6
4768 ac_wfuncs=yes
4769 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4772 echo "configure:4773: checking for $ac_func" >&5
4773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4774 echo $ac_n "(cached) $ac_c" 1>&6
4775 else
4776 cat > conftest.$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4779 /* System header to define __stub macros and hopefully few prototypes,
4780 which can conflict with char $ac_func(); below. */
4781 #include <assert.h>
4782 /* Override any gcc2 internal prototype to avoid an error. */
4783 /* We use char because int might match the return type of a gcc2
4784 builtin and then its argument prototype would still apply. */
4785 char $ac_func();
4787 int main() {
4789 /* The GNU C library defines this for functions which it implements
4790 to always fail with ENOSYS. Some functions are actually named
4791 something starting with __ and the normal name is an alias. */
4792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4793 choke me
4794 #else
4795 $ac_func();
4796 #endif
4798 ; return 0; }
4800 if { (eval echo configure:4801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4801 rm -rf conftest*
4802 eval "ac_cv_func_$ac_func=yes"
4803 else
4804 echo "configure: failed program was:" >&5
4805 cat conftest.$ac_ext >&5
4806 rm -rf conftest*
4807 eval "ac_cv_func_$ac_func=no"
4809 rm -f conftest*
4812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4813 echo "$ac_t""yes" 1>&6
4814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4815 cat >> confdefs.h <<EOF
4816 #define $ac_tr_func 1
4819 else
4820 echo "$ac_t""no" 1>&6
4822 ac_wfuncs=no
4824 done
4827 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
4828 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4829 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4830 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4831 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4832 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4835 echo "configure:4836: checking for $ac_func" >&5
4836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4838 else
4839 cat > conftest.$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4842 /* System header to define __stub macros and hopefully few prototypes,
4843 which can conflict with char $ac_func(); below. */
4844 #include <assert.h>
4845 /* Override any gcc2 internal prototype to avoid an error. */
4846 /* We use char because int might match the return type of a gcc2
4847 builtin and then its argument prototype would still apply. */
4848 char $ac_func();
4850 int main() {
4852 /* The GNU C library defines this for functions which it implements
4853 to always fail with ENOSYS. Some functions are actually named
4854 something starting with __ and the normal name is an alias. */
4855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4856 choke me
4857 #else
4858 $ac_func();
4859 #endif
4861 ; return 0; }
4863 if { (eval echo configure:4864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4864 rm -rf conftest*
4865 eval "ac_cv_func_$ac_func=yes"
4866 else
4867 echo "configure: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
4869 rm -rf conftest*
4870 eval "ac_cv_func_$ac_func=no"
4872 rm -f conftest*
4875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4876 echo "$ac_t""yes" 1>&6
4877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4878 cat >> confdefs.h <<EOF
4879 #define $ac_tr_func 1
4882 else
4883 echo "$ac_t""no" 1>&6
4885 ac_wfuncs=no
4887 done
4890 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4891 echo "configure:4892: checking for ISO C99 wchar_t support" >&5
4892 if test x"$has_weof" = xyes &&
4893 test x"$has_wchar_minmax" = xyes &&
4894 test x"$ac_wfuncs" = xyes; then
4895 ac_isoC99_wchar_t=yes
4896 else
4897 ac_isoC99_wchar_t=no
4899 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4901 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4902 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4903 echo "configure:4904: checking for iconv.h" >&5
4904 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4905 echo $ac_n "(cached) $ac_c" 1>&6
4906 else
4907 cat > conftest.$ac_ext <<EOF
4908 #line 4909 "configure"
4909 #include "confdefs.h"
4910 #include <iconv.h>
4912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4913 { (eval echo configure:4914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4915 if test -z "$ac_err"; then
4916 rm -rf conftest*
4917 eval "ac_cv_header_$ac_safe=yes"
4918 else
4919 echo "$ac_err" >&5
4920 echo "configure: failed program was:" >&5
4921 cat conftest.$ac_ext >&5
4922 rm -rf conftest*
4923 eval "ac_cv_header_$ac_safe=no"
4925 rm -f conftest*
4927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4928 echo "$ac_t""yes" 1>&6
4929 ac_has_iconv_h=yes
4930 else
4931 echo "$ac_t""no" 1>&6
4932 ac_has_iconv_h=no
4935 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4936 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4937 echo "configure:4938: checking for langinfo.h" >&5
4938 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4939 echo $ac_n "(cached) $ac_c" 1>&6
4940 else
4941 cat > conftest.$ac_ext <<EOF
4942 #line 4943 "configure"
4943 #include "confdefs.h"
4944 #include <langinfo.h>
4946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4947 { (eval echo configure:4948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4949 if test -z "$ac_err"; then
4950 rm -rf conftest*
4951 eval "ac_cv_header_$ac_safe=yes"
4952 else
4953 echo "$ac_err" >&5
4954 echo "configure: failed program was:" >&5
4955 cat conftest.$ac_ext >&5
4956 rm -rf conftest*
4957 eval "ac_cv_header_$ac_safe=no"
4959 rm -f conftest*
4961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4962 echo "$ac_t""yes" 1>&6
4963 ac_has_langinfo_h=yes
4964 else
4965 echo "$ac_t""no" 1>&6
4966 ac_has_langinfo_h=no
4970 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4971 echo "configure:4972: checking for iconv in -liconv" >&5
4972 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4973 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4975 else
4976 ac_save_LIBS="$LIBS"
4977 LIBS="-liconv $LIBS"
4978 cat > conftest.$ac_ext <<EOF
4979 #line 4980 "configure"
4980 #include "confdefs.h"
4981 /* Override any gcc2 internal prototype to avoid an error. */
4982 /* We use char because int might match the return type of a gcc2
4983 builtin and then its argument prototype would still apply. */
4984 char iconv();
4986 int main() {
4987 iconv()
4988 ; return 0; }
4990 if { (eval echo configure:4991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4991 rm -rf conftest*
4992 eval "ac_cv_lib_$ac_lib_var=yes"
4993 else
4994 echo "configure: failed program was:" >&5
4995 cat conftest.$ac_ext >&5
4996 rm -rf conftest*
4997 eval "ac_cv_lib_$ac_lib_var=no"
4999 rm -f conftest*
5000 LIBS="$ac_save_LIBS"
5003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5004 echo "$ac_t""yes" 1>&6
5005 libiconv="-liconv"
5006 else
5007 echo "$ac_t""no" 1>&6
5010 ac_save_LIBS="$LIBS"
5011 LIBS="$LIBS $libiconv"
5013 for ac_func in iconv_open iconv_close iconv nl_langinfo
5015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5016 echo "configure:5017: checking for $ac_func" >&5
5017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5018 echo $ac_n "(cached) $ac_c" 1>&6
5019 else
5020 cat > conftest.$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5023 /* System header to define __stub macros and hopefully few prototypes,
5024 which can conflict with char $ac_func(); below. */
5025 #include <assert.h>
5026 /* Override any gcc2 internal prototype to avoid an error. */
5027 /* We use char because int might match the return type of a gcc2
5028 builtin and then its argument prototype would still apply. */
5029 char $ac_func();
5031 int main() {
5033 /* The GNU C library defines this for functions which it implements
5034 to always fail with ENOSYS. Some functions are actually named
5035 something starting with __ and the normal name is an alias. */
5036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5037 choke me
5038 #else
5039 $ac_func();
5040 #endif
5042 ; return 0; }
5044 if { (eval echo configure:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5045 rm -rf conftest*
5046 eval "ac_cv_func_$ac_func=yes"
5047 else
5048 echo "configure: failed program was:" >&5
5049 cat conftest.$ac_ext >&5
5050 rm -rf conftest*
5051 eval "ac_cv_func_$ac_func=no"
5053 rm -f conftest*
5056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5057 echo "$ac_t""yes" 1>&6
5058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5059 cat >> confdefs.h <<EOF
5060 #define $ac_tr_func 1
5063 ac_XPG2funcs=yes
5064 else
5065 echo "$ac_t""no" 1>&6
5066 ac_XPG2funcs=no
5068 done
5071 LIBS="$ac_save_LIBS"
5073 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5074 echo "configure:5075: checking for XPG2 wchar_t support" >&5
5075 if test x"$ac_has_iconv_h" = xyes &&
5076 test x"$ac_has_langinfo_h" = xyes &&
5077 test x"$ac_XPG2funcs" = xyes; then
5078 ac_XPG2_wchar_t=yes
5079 else
5080 ac_XPG2_wchar_t=no
5082 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5084 if test x"$ac_isoC99_wchar_t" = xyes &&
5085 test x"$ac_XPG2_wchar_t" = xyes; then
5086 cat >> confdefs.h <<\EOF
5087 #define _GLIBCPP_USE_WCHAR_T 1
5090 enable_wchar_t=yes
5093 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5094 echo "configure:5095: checking for enabled wchar_t specializations" >&5
5095 echo "$ac_t""$enable_wchar_t" 1>&6
5098 if test "$enable_wchar_t" = yes; then
5099 GLIBCPP_TEST_WCHAR_T_TRUE=
5100 GLIBCPP_TEST_WCHAR_T_FALSE='#'
5101 else
5102 GLIBCPP_TEST_WCHAR_T_TRUE='#'
5103 GLIBCPP_TEST_WCHAR_T_FALSE=
5106 cat >> confdefs.h <<\EOF
5107 #define HAVE_COPYSIGN 1
5110 cat >> confdefs.h <<\EOF
5111 #define HAVE_COPYSIGNF 1
5114 cat >> confdefs.h <<\EOF
5115 #define HAVE_FINITE 1
5118 cat >> confdefs.h <<\EOF
5119 #define HAVE_FINITEF 1
5122 cat >> confdefs.h <<\EOF
5123 #define HAVE_FREXPF 1
5126 cat >> confdefs.h <<\EOF
5127 #define HAVE_HYPOTF 1
5130 cat >> confdefs.h <<\EOF
5131 #define HAVE_ISINF 1
5134 cat >> confdefs.h <<\EOF
5135 #define HAVE_ISINFF 1
5138 cat >> confdefs.h <<\EOF
5139 #define HAVE_ISNAN 1
5142 cat >> confdefs.h <<\EOF
5143 #define HAVE_ISNANF 1
5146 cat >> confdefs.h <<\EOF
5147 #define HAVE_SINCOS 1
5150 cat >> confdefs.h <<\EOF
5151 #define HAVE_SINCOSF 1
5154 if test x"long_double_math_on_this_cpu" = x"yes"; then
5155 cat >> confdefs.h <<\EOF
5156 #define HAVE_FINITEL 1
5159 cat >> confdefs.h <<\EOF
5160 #define HAVE_HYPOTL 1
5163 cat >> confdefs.h <<\EOF
5164 #define HAVE_ISINFL 1
5167 cat >> confdefs.h <<\EOF
5168 #define HAVE_ISNANL 1
5173 *-hpux*)
5174 # Check for available headers.
5175 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5176 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5177 fp.h locale.h float.h inttypes.h
5179 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5180 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5181 echo "configure:5182: checking for $ac_hdr" >&5
5182 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5183 echo $ac_n "(cached) $ac_c" 1>&6
5184 else
5185 cat > conftest.$ac_ext <<EOF
5186 #line 5187 "configure"
5187 #include "confdefs.h"
5188 #include <$ac_hdr>
5190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5191 { (eval echo configure:5192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5192 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5193 if test -z "$ac_err"; then
5194 rm -rf conftest*
5195 eval "ac_cv_header_$ac_safe=yes"
5196 else
5197 echo "$ac_err" >&5
5198 echo "configure: failed program was:" >&5
5199 cat conftest.$ac_ext >&5
5200 rm -rf conftest*
5201 eval "ac_cv_header_$ac_safe=no"
5203 rm -f conftest*
5205 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5206 echo "$ac_t""yes" 1>&6
5207 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5208 cat >> confdefs.h <<EOF
5209 #define $ac_tr_hdr 1
5212 else
5213 echo "$ac_t""no" 1>&6
5215 done
5217 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5220 # If we're not using GNU ld, then there's no point in even trying these
5221 # tests. Check for that first. We should have already tested for gld
5222 # by now (in libtool), but require it now just to be safe...
5223 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5224 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5227 # The name set by libtool depends on the version of libtool. Shame on us
5228 # for depending on an impl detail, but c'est la vie. Older versions used
5229 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5230 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5231 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5232 # set (hence we're using an older libtool), then set it.
5233 if test x${with_gnu_ld+set} != xset; then
5234 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5235 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5236 with_gnu_ld=no
5237 else
5238 with_gnu_ld=$ac_cv_prog_gnu_ld
5242 # Start by getting the version number. I think the libtool test already
5243 # does some of this, but throws away the result.
5245 ldver=`$LD --version 2>/dev/null | head -1 | \
5246 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5248 glibcpp_gnu_ld_version=`echo $ldver | \
5249 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5251 # Set --gc-sections.
5252 if test "$with_gnu_ld" = "notbroken"; then
5253 # GNU ld it is! Joy and bunny rabbits!
5255 # All these tests are for C++; save the language and the compiler flags.
5256 # Need to do this so that g++ won't try to link in libstdc++
5257 ac_test_CFLAGS="${CFLAGS+set}"
5258 ac_save_CFLAGS="$CFLAGS"
5259 CFLAGS='-x c++ -Wl,--gc-sections'
5261 # Check for -Wl,--gc-sections
5262 # XXX This test is broken at the moment, as symbols required for
5263 # linking are now in libsupc++ (not built yet.....). In addition,
5264 # this test has cored on solaris in the past. In addition,
5265 # --gc-sections doesn't really work at the moment (keeps on discarding
5266 # used sections, first .eh_frame and now some of the glibc sections for
5267 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5268 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5269 echo "configure:5270: checking for ld that supports -Wl,--gc-sections" >&5
5270 if test "$cross_compiling" = yes; then
5271 ac_sectionLDflags=yes
5272 else
5273 cat > conftest.$ac_ext <<EOF
5274 #line 5275 "configure"
5275 #include "confdefs.h"
5277 int main(void)
5279 try { throw 1; }
5280 catch (...) { };
5281 return 0;
5285 if { (eval echo configure:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5286 then
5287 ac_sectionLDflags=yes
5288 else
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5291 rm -fr conftest*
5292 ac_sectionLDflags=no
5294 rm -fr conftest*
5297 if test "$ac_test_CFLAGS" = set; then
5298 CFLAGS="$ac_save_CFLAGS"
5299 else
5300 # this is the suspicious part
5301 CFLAGS=''
5303 if test "$ac_sectionLDflags" = "yes"; then
5304 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5306 echo "$ac_t""$ac_sectionLDflags" 1>&6
5309 # Set linker optimization flags.
5310 if test x"$with_gnu_ld" = x"yes"; then
5311 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5318 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5319 echo "configure:5320: checking for main in -lm" >&5
5320 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5322 echo $ac_n "(cached) $ac_c" 1>&6
5323 else
5324 ac_save_LIBS="$LIBS"
5325 LIBS="-lm $LIBS"
5326 cat > conftest.$ac_ext <<EOF
5327 #line 5328 "configure"
5328 #include "confdefs.h"
5330 int main() {
5331 main()
5332 ; return 0; }
5334 if { (eval echo configure:5335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5335 rm -rf conftest*
5336 eval "ac_cv_lib_$ac_lib_var=yes"
5337 else
5338 echo "configure: failed program was:" >&5
5339 cat conftest.$ac_ext >&5
5340 rm -rf conftest*
5341 eval "ac_cv_lib_$ac_lib_var=no"
5343 rm -f conftest*
5344 LIBS="$ac_save_LIBS"
5347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5348 echo "$ac_t""yes" 1>&6
5349 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5351 cat >> confdefs.h <<EOF
5352 #define $ac_tr_lib 1
5355 LIBS="-lm $LIBS"
5357 else
5358 echo "$ac_t""no" 1>&6
5361 for ac_func in nan copysignf
5363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5364 echo "configure:5365: checking for $ac_func" >&5
5365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5366 echo $ac_n "(cached) $ac_c" 1>&6
5367 else
5368 cat > conftest.$ac_ext <<EOF
5369 #line 5370 "configure"
5370 #include "confdefs.h"
5371 /* System header to define __stub macros and hopefully few prototypes,
5372 which can conflict with char $ac_func(); below. */
5373 #include <assert.h>
5374 /* Override any gcc2 internal prototype to avoid an error. */
5375 /* We use char because int might match the return type of a gcc2
5376 builtin and then its argument prototype would still apply. */
5377 char $ac_func();
5379 int main() {
5381 /* The GNU C library defines this for functions which it implements
5382 to always fail with ENOSYS. Some functions are actually named
5383 something starting with __ and the normal name is an alias. */
5384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5385 choke me
5386 #else
5387 $ac_func();
5388 #endif
5390 ; return 0; }
5392 if { (eval echo configure:5393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5393 rm -rf conftest*
5394 eval "ac_cv_func_$ac_func=yes"
5395 else
5396 echo "configure: failed program was:" >&5
5397 cat conftest.$ac_ext >&5
5398 rm -rf conftest*
5399 eval "ac_cv_func_$ac_func=no"
5401 rm -f conftest*
5404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5405 echo "$ac_t""yes" 1>&6
5406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5407 cat >> confdefs.h <<EOF
5408 #define $ac_tr_func 1
5411 else
5412 echo "$ac_t""no" 1>&6
5413 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5415 done
5418 for ac_func in __signbit
5420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5421 echo "configure:5422: checking for $ac_func" >&5
5422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5423 echo $ac_n "(cached) $ac_c" 1>&6
5424 else
5425 cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5428 /* System header to define __stub macros and hopefully few prototypes,
5429 which can conflict with char $ac_func(); below. */
5430 #include <assert.h>
5431 /* Override any gcc2 internal prototype to avoid an error. */
5432 /* We use char because int might match the return type of a gcc2
5433 builtin and then its argument prototype would still apply. */
5434 char $ac_func();
5436 int main() {
5438 /* The GNU C library defines this for functions which it implements
5439 to always fail with ENOSYS. Some functions are actually named
5440 something starting with __ and the normal name is an alias. */
5441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5442 choke me
5443 #else
5444 $ac_func();
5445 #endif
5447 ; return 0; }
5449 if { (eval echo configure:5450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5450 rm -rf conftest*
5451 eval "ac_cv_func_$ac_func=yes"
5452 else
5453 echo "configure: failed program was:" >&5
5454 cat conftest.$ac_ext >&5
5455 rm -rf conftest*
5456 eval "ac_cv_func_$ac_func=no"
5458 rm -f conftest*
5461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5462 echo "$ac_t""yes" 1>&6
5463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5464 cat >> confdefs.h <<EOF
5465 #define $ac_tr_func 1
5468 else
5469 echo "$ac_t""no" 1>&6
5470 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5472 done
5474 for ac_func in __signbitf
5476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5477 echo "configure:5478: checking for $ac_func" >&5
5478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5479 echo $ac_n "(cached) $ac_c" 1>&6
5480 else
5481 cat > conftest.$ac_ext <<EOF
5482 #line 5483 "configure"
5483 #include "confdefs.h"
5484 /* System header to define __stub macros and hopefully few prototypes,
5485 which can conflict with char $ac_func(); below. */
5486 #include <assert.h>
5487 /* Override any gcc2 internal prototype to avoid an error. */
5488 /* We use char because int might match the return type of a gcc2
5489 builtin and then its argument prototype would still apply. */
5490 char $ac_func();
5492 int main() {
5494 /* The GNU C library defines this for functions which it implements
5495 to always fail with ENOSYS. Some functions are actually named
5496 something starting with __ and the normal name is an alias. */
5497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5498 choke me
5499 #else
5500 $ac_func();
5501 #endif
5503 ; return 0; }
5505 if { (eval echo configure:5506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5506 rm -rf conftest*
5507 eval "ac_cv_func_$ac_func=yes"
5508 else
5509 echo "configure: failed program was:" >&5
5510 cat conftest.$ac_ext >&5
5511 rm -rf conftest*
5512 eval "ac_cv_func_$ac_func=no"
5514 rm -f conftest*
5517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5518 echo "$ac_t""yes" 1>&6
5519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5520 cat >> confdefs.h <<EOF
5521 #define $ac_tr_func 1
5524 else
5525 echo "$ac_t""no" 1>&6
5526 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5528 done
5531 if test x$ac_cv_func_copysignl = x"yes"; then
5532 for ac_func in __signbitl
5534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5535 echo "configure:5536: checking for $ac_func" >&5
5536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5538 else
5539 cat > conftest.$ac_ext <<EOF
5540 #line 5541 "configure"
5541 #include "confdefs.h"
5542 /* System header to define __stub macros and hopefully few prototypes,
5543 which can conflict with char $ac_func(); below. */
5544 #include <assert.h>
5545 /* Override any gcc2 internal prototype to avoid an error. */
5546 /* We use char because int might match the return type of a gcc2
5547 builtin and then its argument prototype would still apply. */
5548 char $ac_func();
5550 int main() {
5552 /* The GNU C library defines this for functions which it implements
5553 to always fail with ENOSYS. Some functions are actually named
5554 something starting with __ and the normal name is an alias. */
5555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5556 choke me
5557 #else
5558 $ac_func();
5559 #endif
5561 ; return 0; }
5563 if { (eval echo configure:5564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5564 rm -rf conftest*
5565 eval "ac_cv_func_$ac_func=yes"
5566 else
5567 echo "configure: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5569 rm -rf conftest*
5570 eval "ac_cv_func_$ac_func=no"
5572 rm -f conftest*
5575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5576 echo "$ac_t""yes" 1>&6
5577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5578 cat >> confdefs.h <<EOF
5579 #define $ac_tr_func 1
5582 else
5583 echo "$ac_t""no" 1>&6
5584 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5586 done
5590 if test -n "$LIBMATHOBJS"; then
5591 need_libmath=yes
5596 if test "$need_libmath" = yes; then
5597 GLIBCPP_BUILD_LIBMATH_TRUE=
5598 GLIBCPP_BUILD_LIBMATH_FALSE='#'
5599 else
5600 GLIBCPP_BUILD_LIBMATH_TRUE='#'
5601 GLIBCPP_BUILD_LIBMATH_FALSE=
5605 enable_wchar_t=no
5607 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5608 echo "configure:5609: checking for mbstate_t" >&5
5609 cat > conftest.$ac_ext <<EOF
5610 #line 5611 "configure"
5611 #include "confdefs.h"
5612 #include <wchar.h>
5613 int main() {
5614 mbstate_t teststate;
5615 ; return 0; }
5617 if { (eval echo configure:5618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5618 rm -rf conftest*
5619 have_mbstate_t=yes
5620 else
5621 echo "configure: failed program was:" >&5
5622 cat conftest.$ac_ext >&5
5623 rm -rf conftest*
5624 have_mbstate_t=no
5626 rm -f conftest*
5627 echo "$ac_t""$have_mbstate_t" 1>&6
5628 if test x"$have_mbstate_t" = xyes; then
5629 cat >> confdefs.h <<\EOF
5630 #define HAVE_MBSTATE_T 1
5635 for ac_hdr in wchar.h
5637 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5638 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5639 echo "configure:5640: checking for $ac_hdr" >&5
5640 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5641 echo $ac_n "(cached) $ac_c" 1>&6
5642 else
5643 cat > conftest.$ac_ext <<EOF
5644 #line 5645 "configure"
5645 #include "confdefs.h"
5646 #include <$ac_hdr>
5648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5649 { (eval echo configure:5650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5651 if test -z "$ac_err"; then
5652 rm -rf conftest*
5653 eval "ac_cv_header_$ac_safe=yes"
5654 else
5655 echo "$ac_err" >&5
5656 echo "configure: failed program was:" >&5
5657 cat conftest.$ac_ext >&5
5658 rm -rf conftest*
5659 eval "ac_cv_header_$ac_safe=no"
5661 rm -f conftest*
5663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5664 echo "$ac_t""yes" 1>&6
5665 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5666 cat >> confdefs.h <<EOF
5667 #define $ac_tr_hdr 1
5669 ac_has_wchar_h=yes
5670 else
5671 echo "$ac_t""no" 1>&6
5672 ac_has_wchar_h=no
5674 done
5676 for ac_hdr in wctype.h
5678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5679 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5680 echo "configure:5681: checking for $ac_hdr" >&5
5681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5682 echo $ac_n "(cached) $ac_c" 1>&6
5683 else
5684 cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5687 #include <$ac_hdr>
5689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5690 { (eval echo configure:5691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5692 if test -z "$ac_err"; then
5693 rm -rf conftest*
5694 eval "ac_cv_header_$ac_safe=yes"
5695 else
5696 echo "$ac_err" >&5
5697 echo "configure: failed program was:" >&5
5698 cat conftest.$ac_ext >&5
5699 rm -rf conftest*
5700 eval "ac_cv_header_$ac_safe=no"
5702 rm -f conftest*
5704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5705 echo "$ac_t""yes" 1>&6
5706 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5707 cat >> confdefs.h <<EOF
5708 #define $ac_tr_hdr 1
5710 ac_has_wctype_h=yes
5711 else
5712 echo "$ac_t""no" 1>&6
5713 ac_has_wctype_h=no
5715 done
5718 if test x"$ac_has_wchar_h" = xyes &&
5719 test x"$ac_has_wctype_h" = xyes &&
5720 test x"$enable_c_mbchar" != xno; then
5722 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5723 echo "configure:5724: checking for WCHAR_MIN and WCHAR_MAX" >&5
5724 cat > conftest.$ac_ext <<EOF
5725 #line 5726 "configure"
5726 #include "confdefs.h"
5727 #include <wchar.h>
5728 int main() {
5729 int i = WCHAR_MIN; int j = WCHAR_MAX;
5730 ; return 0; }
5732 if { (eval echo configure:5733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5733 rm -rf conftest*
5734 has_wchar_minmax=yes
5735 else
5736 echo "configure: failed program was:" >&5
5737 cat conftest.$ac_ext >&5
5738 rm -rf conftest*
5739 has_wchar_minmax=no
5741 rm -f conftest*
5742 echo "$ac_t""$has_wchar_minmax" 1>&6
5744 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5745 echo "configure:5746: checking for WEOF" >&5
5746 cat > conftest.$ac_ext <<EOF
5747 #line 5748 "configure"
5748 #include "confdefs.h"
5750 #include <wchar.h>
5751 #include <stddef.h>
5752 int main() {
5753 wint_t i = WEOF;
5754 ; return 0; }
5756 if { (eval echo configure:5757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5757 rm -rf conftest*
5758 has_weof=yes
5759 else
5760 echo "configure: failed program was:" >&5
5761 cat conftest.$ac_ext >&5
5762 rm -rf conftest*
5763 has_weof=no
5765 rm -f conftest*
5766 echo "$ac_t""$has_weof" 1>&6
5768 ac_wfuncs=yes
5769 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5772 echo "configure:5773: checking for $ac_func" >&5
5773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5774 echo $ac_n "(cached) $ac_c" 1>&6
5775 else
5776 cat > conftest.$ac_ext <<EOF
5777 #line 5778 "configure"
5778 #include "confdefs.h"
5779 /* System header to define __stub macros and hopefully few prototypes,
5780 which can conflict with char $ac_func(); below. */
5781 #include <assert.h>
5782 /* Override any gcc2 internal prototype to avoid an error. */
5783 /* We use char because int might match the return type of a gcc2
5784 builtin and then its argument prototype would still apply. */
5785 char $ac_func();
5787 int main() {
5789 /* The GNU C library defines this for functions which it implements
5790 to always fail with ENOSYS. Some functions are actually named
5791 something starting with __ and the normal name is an alias. */
5792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5793 choke me
5794 #else
5795 $ac_func();
5796 #endif
5798 ; return 0; }
5800 if { (eval echo configure:5801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5801 rm -rf conftest*
5802 eval "ac_cv_func_$ac_func=yes"
5803 else
5804 echo "configure: failed program was:" >&5
5805 cat conftest.$ac_ext >&5
5806 rm -rf conftest*
5807 eval "ac_cv_func_$ac_func=no"
5809 rm -f conftest*
5812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5813 echo "$ac_t""yes" 1>&6
5814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5815 cat >> confdefs.h <<EOF
5816 #define $ac_tr_func 1
5819 else
5820 echo "$ac_t""no" 1>&6
5822 ac_wfuncs=no
5824 done
5827 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5828 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5829 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5830 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5831 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5832 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5835 echo "configure:5836: checking for $ac_func" >&5
5836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5837 echo $ac_n "(cached) $ac_c" 1>&6
5838 else
5839 cat > conftest.$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5842 /* System header to define __stub macros and hopefully few prototypes,
5843 which can conflict with char $ac_func(); below. */
5844 #include <assert.h>
5845 /* Override any gcc2 internal prototype to avoid an error. */
5846 /* We use char because int might match the return type of a gcc2
5847 builtin and then its argument prototype would still apply. */
5848 char $ac_func();
5850 int main() {
5852 /* The GNU C library defines this for functions which it implements
5853 to always fail with ENOSYS. Some functions are actually named
5854 something starting with __ and the normal name is an alias. */
5855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5856 choke me
5857 #else
5858 $ac_func();
5859 #endif
5861 ; return 0; }
5863 if { (eval echo configure:5864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5864 rm -rf conftest*
5865 eval "ac_cv_func_$ac_func=yes"
5866 else
5867 echo "configure: failed program was:" >&5
5868 cat conftest.$ac_ext >&5
5869 rm -rf conftest*
5870 eval "ac_cv_func_$ac_func=no"
5872 rm -f conftest*
5875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5876 echo "$ac_t""yes" 1>&6
5877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5878 cat >> confdefs.h <<EOF
5879 #define $ac_tr_func 1
5882 else
5883 echo "$ac_t""no" 1>&6
5885 ac_wfuncs=no
5887 done
5890 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5891 echo "configure:5892: checking for ISO C99 wchar_t support" >&5
5892 if test x"$has_weof" = xyes &&
5893 test x"$has_wchar_minmax" = xyes &&
5894 test x"$ac_wfuncs" = xyes; then
5895 ac_isoC99_wchar_t=yes
5896 else
5897 ac_isoC99_wchar_t=no
5899 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5901 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5902 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5903 echo "configure:5904: checking for iconv.h" >&5
5904 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5905 echo $ac_n "(cached) $ac_c" 1>&6
5906 else
5907 cat > conftest.$ac_ext <<EOF
5908 #line 5909 "configure"
5909 #include "confdefs.h"
5910 #include <iconv.h>
5912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5913 { (eval echo configure:5914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5915 if test -z "$ac_err"; then
5916 rm -rf conftest*
5917 eval "ac_cv_header_$ac_safe=yes"
5918 else
5919 echo "$ac_err" >&5
5920 echo "configure: failed program was:" >&5
5921 cat conftest.$ac_ext >&5
5922 rm -rf conftest*
5923 eval "ac_cv_header_$ac_safe=no"
5925 rm -f conftest*
5927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5928 echo "$ac_t""yes" 1>&6
5929 ac_has_iconv_h=yes
5930 else
5931 echo "$ac_t""no" 1>&6
5932 ac_has_iconv_h=no
5935 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5936 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5937 echo "configure:5938: checking for langinfo.h" >&5
5938 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5939 echo $ac_n "(cached) $ac_c" 1>&6
5940 else
5941 cat > conftest.$ac_ext <<EOF
5942 #line 5943 "configure"
5943 #include "confdefs.h"
5944 #include <langinfo.h>
5946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5947 { (eval echo configure:5948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5949 if test -z "$ac_err"; then
5950 rm -rf conftest*
5951 eval "ac_cv_header_$ac_safe=yes"
5952 else
5953 echo "$ac_err" >&5
5954 echo "configure: failed program was:" >&5
5955 cat conftest.$ac_ext >&5
5956 rm -rf conftest*
5957 eval "ac_cv_header_$ac_safe=no"
5959 rm -f conftest*
5961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5962 echo "$ac_t""yes" 1>&6
5963 ac_has_langinfo_h=yes
5964 else
5965 echo "$ac_t""no" 1>&6
5966 ac_has_langinfo_h=no
5970 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5971 echo "configure:5972: checking for iconv in -liconv" >&5
5972 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5973 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5974 echo $ac_n "(cached) $ac_c" 1>&6
5975 else
5976 ac_save_LIBS="$LIBS"
5977 LIBS="-liconv $LIBS"
5978 cat > conftest.$ac_ext <<EOF
5979 #line 5980 "configure"
5980 #include "confdefs.h"
5981 /* Override any gcc2 internal prototype to avoid an error. */
5982 /* We use char because int might match the return type of a gcc2
5983 builtin and then its argument prototype would still apply. */
5984 char iconv();
5986 int main() {
5987 iconv()
5988 ; return 0; }
5990 if { (eval echo configure:5991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5991 rm -rf conftest*
5992 eval "ac_cv_lib_$ac_lib_var=yes"
5993 else
5994 echo "configure: failed program was:" >&5
5995 cat conftest.$ac_ext >&5
5996 rm -rf conftest*
5997 eval "ac_cv_lib_$ac_lib_var=no"
5999 rm -f conftest*
6000 LIBS="$ac_save_LIBS"
6003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6004 echo "$ac_t""yes" 1>&6
6005 libiconv="-liconv"
6006 else
6007 echo "$ac_t""no" 1>&6
6010 ac_save_LIBS="$LIBS"
6011 LIBS="$LIBS $libiconv"
6013 for ac_func in iconv_open iconv_close iconv nl_langinfo
6015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6016 echo "configure:6017: checking for $ac_func" >&5
6017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6018 echo $ac_n "(cached) $ac_c" 1>&6
6019 else
6020 cat > conftest.$ac_ext <<EOF
6021 #line 6022 "configure"
6022 #include "confdefs.h"
6023 /* System header to define __stub macros and hopefully few prototypes,
6024 which can conflict with char $ac_func(); below. */
6025 #include <assert.h>
6026 /* Override any gcc2 internal prototype to avoid an error. */
6027 /* We use char because int might match the return type of a gcc2
6028 builtin and then its argument prototype would still apply. */
6029 char $ac_func();
6031 int main() {
6033 /* The GNU C library defines this for functions which it implements
6034 to always fail with ENOSYS. Some functions are actually named
6035 something starting with __ and the normal name is an alias. */
6036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6037 choke me
6038 #else
6039 $ac_func();
6040 #endif
6042 ; return 0; }
6044 if { (eval echo configure:6045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6045 rm -rf conftest*
6046 eval "ac_cv_func_$ac_func=yes"
6047 else
6048 echo "configure: failed program was:" >&5
6049 cat conftest.$ac_ext >&5
6050 rm -rf conftest*
6051 eval "ac_cv_func_$ac_func=no"
6053 rm -f conftest*
6056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6057 echo "$ac_t""yes" 1>&6
6058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6059 cat >> confdefs.h <<EOF
6060 #define $ac_tr_func 1
6063 ac_XPG2funcs=yes
6064 else
6065 echo "$ac_t""no" 1>&6
6066 ac_XPG2funcs=no
6068 done
6071 LIBS="$ac_save_LIBS"
6073 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6074 echo "configure:6075: checking for XPG2 wchar_t support" >&5
6075 if test x"$ac_has_iconv_h" = xyes &&
6076 test x"$ac_has_langinfo_h" = xyes &&
6077 test x"$ac_XPG2funcs" = xyes; then
6078 ac_XPG2_wchar_t=yes
6079 else
6080 ac_XPG2_wchar_t=no
6082 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6084 if test x"$ac_isoC99_wchar_t" = xyes &&
6085 test x"$ac_XPG2_wchar_t" = xyes; then
6086 cat >> confdefs.h <<\EOF
6087 #define _GLIBCPP_USE_WCHAR_T 1
6090 enable_wchar_t=yes
6093 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6094 echo "configure:6095: checking for enabled wchar_t specializations" >&5
6095 echo "$ac_t""$enable_wchar_t" 1>&6
6098 if test "$enable_wchar_t" = yes; then
6099 GLIBCPP_TEST_WCHAR_T_TRUE=
6100 GLIBCPP_TEST_WCHAR_T_FALSE='#'
6101 else
6102 GLIBCPP_TEST_WCHAR_T_TRUE='#'
6103 GLIBCPP_TEST_WCHAR_T_FALSE=
6106 os_include_dir="os/hpux"
6107 cat >> confdefs.h <<\EOF
6108 #define HAVE_COPYSIGN 1
6111 cat >> confdefs.h <<\EOF
6112 #define HAVE_COPYSIGNF 1
6115 cat >> confdefs.h <<\EOF
6116 #define HAVE_FREXPF 1
6119 cat >> confdefs.h <<\EOF
6120 #define HAVE_HYPOT 1
6123 case "$target" in
6124 *-hpux10*)
6125 cat >> confdefs.h <<\EOF
6126 #define HAVE_FINITE 1
6129 cat >> confdefs.h <<\EOF
6130 #define HAVE_FINITEF 1
6133 cat >> confdefs.h <<\EOF
6134 #define HAVE_ISINF 1
6137 cat >> confdefs.h <<\EOF
6138 #define HAVE_ISINFF 1
6141 cat >> confdefs.h <<\EOF
6142 #define HAVE_ISNAN 1
6145 cat >> confdefs.h <<\EOF
6146 #define HAVE_ISNANF 1
6150 esac
6153 *-netbsd*)
6154 # Check for available headers.
6155 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6156 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6157 fp.h locale.h float.h inttypes.h
6159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6160 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6161 echo "configure:6162: checking for $ac_hdr" >&5
6162 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6163 echo $ac_n "(cached) $ac_c" 1>&6
6164 else
6165 cat > conftest.$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6168 #include <$ac_hdr>
6170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6171 { (eval echo configure:6172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6173 if test -z "$ac_err"; then
6174 rm -rf conftest*
6175 eval "ac_cv_header_$ac_safe=yes"
6176 else
6177 echo "$ac_err" >&5
6178 echo "configure: failed program was:" >&5
6179 cat conftest.$ac_ext >&5
6180 rm -rf conftest*
6181 eval "ac_cv_header_$ac_safe=no"
6183 rm -f conftest*
6185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6186 echo "$ac_t""yes" 1>&6
6187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6188 cat >> confdefs.h <<EOF
6189 #define $ac_tr_hdr 1
6192 else
6193 echo "$ac_t""no" 1>&6
6195 done
6197 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6200 # If we're not using GNU ld, then there's no point in even trying these
6201 # tests. Check for that first. We should have already tested for gld
6202 # by now (in libtool), but require it now just to be safe...
6203 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6204 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6207 # The name set by libtool depends on the version of libtool. Shame on us
6208 # for depending on an impl detail, but c'est la vie. Older versions used
6209 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6210 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6211 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6212 # set (hence we're using an older libtool), then set it.
6213 if test x${with_gnu_ld+set} != xset; then
6214 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6215 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6216 with_gnu_ld=no
6217 else
6218 with_gnu_ld=$ac_cv_prog_gnu_ld
6222 # Start by getting the version number. I think the libtool test already
6223 # does some of this, but throws away the result.
6225 ldver=`$LD --version 2>/dev/null | head -1 | \
6226 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6228 glibcpp_gnu_ld_version=`echo $ldver | \
6229 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6231 # Set --gc-sections.
6232 if test "$with_gnu_ld" = "notbroken"; then
6233 # GNU ld it is! Joy and bunny rabbits!
6235 # All these tests are for C++; save the language and the compiler flags.
6236 # Need to do this so that g++ won't try to link in libstdc++
6237 ac_test_CFLAGS="${CFLAGS+set}"
6238 ac_save_CFLAGS="$CFLAGS"
6239 CFLAGS='-x c++ -Wl,--gc-sections'
6241 # Check for -Wl,--gc-sections
6242 # XXX This test is broken at the moment, as symbols required for
6243 # linking are now in libsupc++ (not built yet.....). In addition,
6244 # this test has cored on solaris in the past. In addition,
6245 # --gc-sections doesn't really work at the moment (keeps on discarding
6246 # used sections, first .eh_frame and now some of the glibc sections for
6247 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6248 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6249 echo "configure:6250: checking for ld that supports -Wl,--gc-sections" >&5
6250 if test "$cross_compiling" = yes; then
6251 ac_sectionLDflags=yes
6252 else
6253 cat > conftest.$ac_ext <<EOF
6254 #line 6255 "configure"
6255 #include "confdefs.h"
6257 int main(void)
6259 try { throw 1; }
6260 catch (...) { };
6261 return 0;
6265 if { (eval echo configure:6266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6266 then
6267 ac_sectionLDflags=yes
6268 else
6269 echo "configure: failed program was:" >&5
6270 cat conftest.$ac_ext >&5
6271 rm -fr conftest*
6272 ac_sectionLDflags=no
6274 rm -fr conftest*
6277 if test "$ac_test_CFLAGS" = set; then
6278 CFLAGS="$ac_save_CFLAGS"
6279 else
6280 # this is the suspicious part
6281 CFLAGS=''
6283 if test "$ac_sectionLDflags" = "yes"; then
6284 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6286 echo "$ac_t""$ac_sectionLDflags" 1>&6
6289 # Set linker optimization flags.
6290 if test x"$with_gnu_ld" = x"yes"; then
6291 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6298 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6299 echo "configure:6300: checking for main in -lm" >&5
6300 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6302 echo $ac_n "(cached) $ac_c" 1>&6
6303 else
6304 ac_save_LIBS="$LIBS"
6305 LIBS="-lm $LIBS"
6306 cat > conftest.$ac_ext <<EOF
6307 #line 6308 "configure"
6308 #include "confdefs.h"
6310 int main() {
6311 main()
6312 ; return 0; }
6314 if { (eval echo configure:6315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6315 rm -rf conftest*
6316 eval "ac_cv_lib_$ac_lib_var=yes"
6317 else
6318 echo "configure: failed program was:" >&5
6319 cat conftest.$ac_ext >&5
6320 rm -rf conftest*
6321 eval "ac_cv_lib_$ac_lib_var=no"
6323 rm -f conftest*
6324 LIBS="$ac_save_LIBS"
6327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6328 echo "$ac_t""yes" 1>&6
6329 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6330 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6331 cat >> confdefs.h <<EOF
6332 #define $ac_tr_lib 1
6335 LIBS="-lm $LIBS"
6337 else
6338 echo "$ac_t""no" 1>&6
6341 for ac_func in nan copysignf
6343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6344 echo "configure:6345: checking for $ac_func" >&5
6345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6346 echo $ac_n "(cached) $ac_c" 1>&6
6347 else
6348 cat > conftest.$ac_ext <<EOF
6349 #line 6350 "configure"
6350 #include "confdefs.h"
6351 /* System header to define __stub macros and hopefully few prototypes,
6352 which can conflict with char $ac_func(); below. */
6353 #include <assert.h>
6354 /* Override any gcc2 internal prototype to avoid an error. */
6355 /* We use char because int might match the return type of a gcc2
6356 builtin and then its argument prototype would still apply. */
6357 char $ac_func();
6359 int main() {
6361 /* The GNU C library defines this for functions which it implements
6362 to always fail with ENOSYS. Some functions are actually named
6363 something starting with __ and the normal name is an alias. */
6364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6365 choke me
6366 #else
6367 $ac_func();
6368 #endif
6370 ; return 0; }
6372 if { (eval echo configure:6373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6373 rm -rf conftest*
6374 eval "ac_cv_func_$ac_func=yes"
6375 else
6376 echo "configure: failed program was:" >&5
6377 cat conftest.$ac_ext >&5
6378 rm -rf conftest*
6379 eval "ac_cv_func_$ac_func=no"
6381 rm -f conftest*
6384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6385 echo "$ac_t""yes" 1>&6
6386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6387 cat >> confdefs.h <<EOF
6388 #define $ac_tr_func 1
6391 else
6392 echo "$ac_t""no" 1>&6
6393 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6395 done
6398 for ac_func in __signbit
6400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6401 echo "configure:6402: checking for $ac_func" >&5
6402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6403 echo $ac_n "(cached) $ac_c" 1>&6
6404 else
6405 cat > conftest.$ac_ext <<EOF
6406 #line 6407 "configure"
6407 #include "confdefs.h"
6408 /* System header to define __stub macros and hopefully few prototypes,
6409 which can conflict with char $ac_func(); below. */
6410 #include <assert.h>
6411 /* Override any gcc2 internal prototype to avoid an error. */
6412 /* We use char because int might match the return type of a gcc2
6413 builtin and then its argument prototype would still apply. */
6414 char $ac_func();
6416 int main() {
6418 /* The GNU C library defines this for functions which it implements
6419 to always fail with ENOSYS. Some functions are actually named
6420 something starting with __ and the normal name is an alias. */
6421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6422 choke me
6423 #else
6424 $ac_func();
6425 #endif
6427 ; return 0; }
6429 if { (eval echo configure:6430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6430 rm -rf conftest*
6431 eval "ac_cv_func_$ac_func=yes"
6432 else
6433 echo "configure: failed program was:" >&5
6434 cat conftest.$ac_ext >&5
6435 rm -rf conftest*
6436 eval "ac_cv_func_$ac_func=no"
6438 rm -f conftest*
6441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6442 echo "$ac_t""yes" 1>&6
6443 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6444 cat >> confdefs.h <<EOF
6445 #define $ac_tr_func 1
6448 else
6449 echo "$ac_t""no" 1>&6
6450 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6452 done
6454 for ac_func in __signbitf
6456 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6457 echo "configure:6458: checking for $ac_func" >&5
6458 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6459 echo $ac_n "(cached) $ac_c" 1>&6
6460 else
6461 cat > conftest.$ac_ext <<EOF
6462 #line 6463 "configure"
6463 #include "confdefs.h"
6464 /* System header to define __stub macros and hopefully few prototypes,
6465 which can conflict with char $ac_func(); below. */
6466 #include <assert.h>
6467 /* Override any gcc2 internal prototype to avoid an error. */
6468 /* We use char because int might match the return type of a gcc2
6469 builtin and then its argument prototype would still apply. */
6470 char $ac_func();
6472 int main() {
6474 /* The GNU C library defines this for functions which it implements
6475 to always fail with ENOSYS. Some functions are actually named
6476 something starting with __ and the normal name is an alias. */
6477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6478 choke me
6479 #else
6480 $ac_func();
6481 #endif
6483 ; return 0; }
6485 if { (eval echo configure:6486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6486 rm -rf conftest*
6487 eval "ac_cv_func_$ac_func=yes"
6488 else
6489 echo "configure: failed program was:" >&5
6490 cat conftest.$ac_ext >&5
6491 rm -rf conftest*
6492 eval "ac_cv_func_$ac_func=no"
6494 rm -f conftest*
6497 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6498 echo "$ac_t""yes" 1>&6
6499 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6500 cat >> confdefs.h <<EOF
6501 #define $ac_tr_func 1
6504 else
6505 echo "$ac_t""no" 1>&6
6506 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6508 done
6511 if test x$ac_cv_func_copysignl = x"yes"; then
6512 for ac_func in __signbitl
6514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6515 echo "configure:6516: checking for $ac_func" >&5
6516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6517 echo $ac_n "(cached) $ac_c" 1>&6
6518 else
6519 cat > conftest.$ac_ext <<EOF
6520 #line 6521 "configure"
6521 #include "confdefs.h"
6522 /* System header to define __stub macros and hopefully few prototypes,
6523 which can conflict with char $ac_func(); below. */
6524 #include <assert.h>
6525 /* Override any gcc2 internal prototype to avoid an error. */
6526 /* We use char because int might match the return type of a gcc2
6527 builtin and then its argument prototype would still apply. */
6528 char $ac_func();
6530 int main() {
6532 /* The GNU C library defines this for functions which it implements
6533 to always fail with ENOSYS. Some functions are actually named
6534 something starting with __ and the normal name is an alias. */
6535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6536 choke me
6537 #else
6538 $ac_func();
6539 #endif
6541 ; return 0; }
6543 if { (eval echo configure:6544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6544 rm -rf conftest*
6545 eval "ac_cv_func_$ac_func=yes"
6546 else
6547 echo "configure: failed program was:" >&5
6548 cat conftest.$ac_ext >&5
6549 rm -rf conftest*
6550 eval "ac_cv_func_$ac_func=no"
6552 rm -f conftest*
6555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6556 echo "$ac_t""yes" 1>&6
6557 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6558 cat >> confdefs.h <<EOF
6559 #define $ac_tr_func 1
6562 else
6563 echo "$ac_t""no" 1>&6
6564 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6566 done
6570 if test -n "$LIBMATHOBJS"; then
6571 need_libmath=yes
6576 if test "$need_libmath" = yes; then
6577 GLIBCPP_BUILD_LIBMATH_TRUE=
6578 GLIBCPP_BUILD_LIBMATH_FALSE='#'
6579 else
6580 GLIBCPP_BUILD_LIBMATH_TRUE='#'
6581 GLIBCPP_BUILD_LIBMATH_FALSE=
6585 enable_wchar_t=no
6587 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6588 echo "configure:6589: checking for mbstate_t" >&5
6589 cat > conftest.$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6592 #include <wchar.h>
6593 int main() {
6594 mbstate_t teststate;
6595 ; return 0; }
6597 if { (eval echo configure:6598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6598 rm -rf conftest*
6599 have_mbstate_t=yes
6600 else
6601 echo "configure: failed program was:" >&5
6602 cat conftest.$ac_ext >&5
6603 rm -rf conftest*
6604 have_mbstate_t=no
6606 rm -f conftest*
6607 echo "$ac_t""$have_mbstate_t" 1>&6
6608 if test x"$have_mbstate_t" = xyes; then
6609 cat >> confdefs.h <<\EOF
6610 #define HAVE_MBSTATE_T 1
6615 for ac_hdr in wchar.h
6617 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6618 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6619 echo "configure:6620: checking for $ac_hdr" >&5
6620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6621 echo $ac_n "(cached) $ac_c" 1>&6
6622 else
6623 cat > conftest.$ac_ext <<EOF
6624 #line 6625 "configure"
6625 #include "confdefs.h"
6626 #include <$ac_hdr>
6628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6629 { (eval echo configure:6630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6631 if test -z "$ac_err"; then
6632 rm -rf conftest*
6633 eval "ac_cv_header_$ac_safe=yes"
6634 else
6635 echo "$ac_err" >&5
6636 echo "configure: failed program was:" >&5
6637 cat conftest.$ac_ext >&5
6638 rm -rf conftest*
6639 eval "ac_cv_header_$ac_safe=no"
6641 rm -f conftest*
6643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6644 echo "$ac_t""yes" 1>&6
6645 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6646 cat >> confdefs.h <<EOF
6647 #define $ac_tr_hdr 1
6649 ac_has_wchar_h=yes
6650 else
6651 echo "$ac_t""no" 1>&6
6652 ac_has_wchar_h=no
6654 done
6656 for ac_hdr in wctype.h
6658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6660 echo "configure:6661: checking for $ac_hdr" >&5
6661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6
6663 else
6664 cat > conftest.$ac_ext <<EOF
6665 #line 6666 "configure"
6666 #include "confdefs.h"
6667 #include <$ac_hdr>
6669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6670 { (eval echo configure:6671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6672 if test -z "$ac_err"; then
6673 rm -rf conftest*
6674 eval "ac_cv_header_$ac_safe=yes"
6675 else
6676 echo "$ac_err" >&5
6677 echo "configure: failed program was:" >&5
6678 cat conftest.$ac_ext >&5
6679 rm -rf conftest*
6680 eval "ac_cv_header_$ac_safe=no"
6682 rm -f conftest*
6684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6685 echo "$ac_t""yes" 1>&6
6686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6687 cat >> confdefs.h <<EOF
6688 #define $ac_tr_hdr 1
6690 ac_has_wctype_h=yes
6691 else
6692 echo "$ac_t""no" 1>&6
6693 ac_has_wctype_h=no
6695 done
6698 if test x"$ac_has_wchar_h" = xyes &&
6699 test x"$ac_has_wctype_h" = xyes &&
6700 test x"$enable_c_mbchar" != xno; then
6702 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6703 echo "configure:6704: checking for WCHAR_MIN and WCHAR_MAX" >&5
6704 cat > conftest.$ac_ext <<EOF
6705 #line 6706 "configure"
6706 #include "confdefs.h"
6707 #include <wchar.h>
6708 int main() {
6709 int i = WCHAR_MIN; int j = WCHAR_MAX;
6710 ; return 0; }
6712 if { (eval echo configure:6713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6713 rm -rf conftest*
6714 has_wchar_minmax=yes
6715 else
6716 echo "configure: failed program was:" >&5
6717 cat conftest.$ac_ext >&5
6718 rm -rf conftest*
6719 has_wchar_minmax=no
6721 rm -f conftest*
6722 echo "$ac_t""$has_wchar_minmax" 1>&6
6724 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6725 echo "configure:6726: checking for WEOF" >&5
6726 cat > conftest.$ac_ext <<EOF
6727 #line 6728 "configure"
6728 #include "confdefs.h"
6730 #include <wchar.h>
6731 #include <stddef.h>
6732 int main() {
6733 wint_t i = WEOF;
6734 ; return 0; }
6736 if { (eval echo configure:6737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6737 rm -rf conftest*
6738 has_weof=yes
6739 else
6740 echo "configure: failed program was:" >&5
6741 cat conftest.$ac_ext >&5
6742 rm -rf conftest*
6743 has_weof=no
6745 rm -f conftest*
6746 echo "$ac_t""$has_weof" 1>&6
6748 ac_wfuncs=yes
6749 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6752 echo "configure:6753: checking for $ac_func" >&5
6753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6754 echo $ac_n "(cached) $ac_c" 1>&6
6755 else
6756 cat > conftest.$ac_ext <<EOF
6757 #line 6758 "configure"
6758 #include "confdefs.h"
6759 /* System header to define __stub macros and hopefully few prototypes,
6760 which can conflict with char $ac_func(); below. */
6761 #include <assert.h>
6762 /* Override any gcc2 internal prototype to avoid an error. */
6763 /* We use char because int might match the return type of a gcc2
6764 builtin and then its argument prototype would still apply. */
6765 char $ac_func();
6767 int main() {
6769 /* The GNU C library defines this for functions which it implements
6770 to always fail with ENOSYS. Some functions are actually named
6771 something starting with __ and the normal name is an alias. */
6772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6773 choke me
6774 #else
6775 $ac_func();
6776 #endif
6778 ; return 0; }
6780 if { (eval echo configure:6781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6781 rm -rf conftest*
6782 eval "ac_cv_func_$ac_func=yes"
6783 else
6784 echo "configure: failed program was:" >&5
6785 cat conftest.$ac_ext >&5
6786 rm -rf conftest*
6787 eval "ac_cv_func_$ac_func=no"
6789 rm -f conftest*
6792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6793 echo "$ac_t""yes" 1>&6
6794 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6795 cat >> confdefs.h <<EOF
6796 #define $ac_tr_func 1
6799 else
6800 echo "$ac_t""no" 1>&6
6802 ac_wfuncs=no
6804 done
6807 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6808 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6809 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6810 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6811 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6812 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6815 echo "configure:6816: checking for $ac_func" >&5
6816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6
6818 else
6819 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure"
6821 #include "confdefs.h"
6822 /* System header to define __stub macros and hopefully few prototypes,
6823 which can conflict with char $ac_func(); below. */
6824 #include <assert.h>
6825 /* Override any gcc2 internal prototype to avoid an error. */
6826 /* We use char because int might match the return type of a gcc2
6827 builtin and then its argument prototype would still apply. */
6828 char $ac_func();
6830 int main() {
6832 /* The GNU C library defines this for functions which it implements
6833 to always fail with ENOSYS. Some functions are actually named
6834 something starting with __ and the normal name is an alias. */
6835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6836 choke me
6837 #else
6838 $ac_func();
6839 #endif
6841 ; return 0; }
6843 if { (eval echo configure:6844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6844 rm -rf conftest*
6845 eval "ac_cv_func_$ac_func=yes"
6846 else
6847 echo "configure: failed program was:" >&5
6848 cat conftest.$ac_ext >&5
6849 rm -rf conftest*
6850 eval "ac_cv_func_$ac_func=no"
6852 rm -f conftest*
6855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6856 echo "$ac_t""yes" 1>&6
6857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6858 cat >> confdefs.h <<EOF
6859 #define $ac_tr_func 1
6862 else
6863 echo "$ac_t""no" 1>&6
6865 ac_wfuncs=no
6867 done
6870 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6871 echo "configure:6872: checking for ISO C99 wchar_t support" >&5
6872 if test x"$has_weof" = xyes &&
6873 test x"$has_wchar_minmax" = xyes &&
6874 test x"$ac_wfuncs" = xyes; then
6875 ac_isoC99_wchar_t=yes
6876 else
6877 ac_isoC99_wchar_t=no
6879 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6881 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6882 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6883 echo "configure:6884: checking for iconv.h" >&5
6884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6885 echo $ac_n "(cached) $ac_c" 1>&6
6886 else
6887 cat > conftest.$ac_ext <<EOF
6888 #line 6889 "configure"
6889 #include "confdefs.h"
6890 #include <iconv.h>
6892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6893 { (eval echo configure:6894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6895 if test -z "$ac_err"; then
6896 rm -rf conftest*
6897 eval "ac_cv_header_$ac_safe=yes"
6898 else
6899 echo "$ac_err" >&5
6900 echo "configure: failed program was:" >&5
6901 cat conftest.$ac_ext >&5
6902 rm -rf conftest*
6903 eval "ac_cv_header_$ac_safe=no"
6905 rm -f conftest*
6907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6908 echo "$ac_t""yes" 1>&6
6909 ac_has_iconv_h=yes
6910 else
6911 echo "$ac_t""no" 1>&6
6912 ac_has_iconv_h=no
6915 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6916 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6917 echo "configure:6918: checking for langinfo.h" >&5
6918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6919 echo $ac_n "(cached) $ac_c" 1>&6
6920 else
6921 cat > conftest.$ac_ext <<EOF
6922 #line 6923 "configure"
6923 #include "confdefs.h"
6924 #include <langinfo.h>
6926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6927 { (eval echo configure:6928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6929 if test -z "$ac_err"; then
6930 rm -rf conftest*
6931 eval "ac_cv_header_$ac_safe=yes"
6932 else
6933 echo "$ac_err" >&5
6934 echo "configure: failed program was:" >&5
6935 cat conftest.$ac_ext >&5
6936 rm -rf conftest*
6937 eval "ac_cv_header_$ac_safe=no"
6939 rm -f conftest*
6941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6942 echo "$ac_t""yes" 1>&6
6943 ac_has_langinfo_h=yes
6944 else
6945 echo "$ac_t""no" 1>&6
6946 ac_has_langinfo_h=no
6950 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6951 echo "configure:6952: checking for iconv in -liconv" >&5
6952 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6954 echo $ac_n "(cached) $ac_c" 1>&6
6955 else
6956 ac_save_LIBS="$LIBS"
6957 LIBS="-liconv $LIBS"
6958 cat > conftest.$ac_ext <<EOF
6959 #line 6960 "configure"
6960 #include "confdefs.h"
6961 /* Override any gcc2 internal prototype to avoid an error. */
6962 /* We use char because int might match the return type of a gcc2
6963 builtin and then its argument prototype would still apply. */
6964 char iconv();
6966 int main() {
6967 iconv()
6968 ; return 0; }
6970 if { (eval echo configure:6971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6971 rm -rf conftest*
6972 eval "ac_cv_lib_$ac_lib_var=yes"
6973 else
6974 echo "configure: failed program was:" >&5
6975 cat conftest.$ac_ext >&5
6976 rm -rf conftest*
6977 eval "ac_cv_lib_$ac_lib_var=no"
6979 rm -f conftest*
6980 LIBS="$ac_save_LIBS"
6983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6984 echo "$ac_t""yes" 1>&6
6985 libiconv="-liconv"
6986 else
6987 echo "$ac_t""no" 1>&6
6990 ac_save_LIBS="$LIBS"
6991 LIBS="$LIBS $libiconv"
6993 for ac_func in iconv_open iconv_close iconv nl_langinfo
6995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6996 echo "configure:6997: checking for $ac_func" >&5
6997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6998 echo $ac_n "(cached) $ac_c" 1>&6
6999 else
7000 cat > conftest.$ac_ext <<EOF
7001 #line 7002 "configure"
7002 #include "confdefs.h"
7003 /* System header to define __stub macros and hopefully few prototypes,
7004 which can conflict with char $ac_func(); below. */
7005 #include <assert.h>
7006 /* Override any gcc2 internal prototype to avoid an error. */
7007 /* We use char because int might match the return type of a gcc2
7008 builtin and then its argument prototype would still apply. */
7009 char $ac_func();
7011 int main() {
7013 /* The GNU C library defines this for functions which it implements
7014 to always fail with ENOSYS. Some functions are actually named
7015 something starting with __ and the normal name is an alias. */
7016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7017 choke me
7018 #else
7019 $ac_func();
7020 #endif
7022 ; return 0; }
7024 if { (eval echo configure:7025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7025 rm -rf conftest*
7026 eval "ac_cv_func_$ac_func=yes"
7027 else
7028 echo "configure: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7030 rm -rf conftest*
7031 eval "ac_cv_func_$ac_func=no"
7033 rm -f conftest*
7036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7037 echo "$ac_t""yes" 1>&6
7038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7039 cat >> confdefs.h <<EOF
7040 #define $ac_tr_func 1
7043 ac_XPG2funcs=yes
7044 else
7045 echo "$ac_t""no" 1>&6
7046 ac_XPG2funcs=no
7048 done
7051 LIBS="$ac_save_LIBS"
7053 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7054 echo "configure:7055: checking for XPG2 wchar_t support" >&5
7055 if test x"$ac_has_iconv_h" = xyes &&
7056 test x"$ac_has_langinfo_h" = xyes &&
7057 test x"$ac_XPG2funcs" = xyes; then
7058 ac_XPG2_wchar_t=yes
7059 else
7060 ac_XPG2_wchar_t=no
7062 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7064 if test x"$ac_isoC99_wchar_t" = xyes &&
7065 test x"$ac_XPG2_wchar_t" = xyes; then
7066 cat >> confdefs.h <<\EOF
7067 #define _GLIBCPP_USE_WCHAR_T 1
7070 enable_wchar_t=yes
7073 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7074 echo "configure:7075: checking for enabled wchar_t specializations" >&5
7075 echo "$ac_t""$enable_wchar_t" 1>&6
7078 if test "$enable_wchar_t" = yes; then
7079 GLIBCPP_TEST_WCHAR_T_TRUE=
7080 GLIBCPP_TEST_WCHAR_T_FALSE='#'
7081 else
7082 GLIBCPP_TEST_WCHAR_T_TRUE='#'
7083 GLIBCPP_TEST_WCHAR_T_FALSE=
7086 os_include_dir="os/bsd/netbsd"
7087 cat >> confdefs.h <<\EOF
7088 #define HAVE_COPYSIGN 1
7091 cat >> confdefs.h <<\EOF
7092 #define HAVE_COPYSIGNF 1
7095 cat >> confdefs.h <<\EOF
7096 #define HAVE_FINITEF 1
7099 cat >> confdefs.h <<\EOF
7100 #define HAVE_FINITE 1
7103 cat >> confdefs.h <<\EOF
7104 #define HAVE_FREXPF 1
7107 cat >> confdefs.h <<\EOF
7108 #define HAVE_HYPOTF 1
7111 cat >> confdefs.h <<\EOF
7112 #define HAVE_ISINF 1
7115 cat >> confdefs.h <<\EOF
7116 #define HAVE_ISINFF 1
7119 cat >> confdefs.h <<\EOF
7120 #define HAVE_ISNAN 1
7123 cat >> confdefs.h <<\EOF
7124 #define HAVE_ISNANF 1
7127 if test x"long_double_math_on_this_cpu" = x"yes"; then
7128 cat >> confdefs.h <<\EOF
7129 #define HAVE_FINITEL 1
7132 cat >> confdefs.h <<\EOF
7133 #define HAVE_ISINFL 1
7136 cat >> confdefs.h <<\EOF
7137 #define HAVE_ISNANL 1
7142 *-freebsd*)
7143 # Check for available headers.
7144 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
7145 machine/endian.h machine/param.h sys/machine.h sys/types.h \
7146 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7147 sys/time.h unistd.h
7149 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7151 echo "configure:7152: checking for $ac_hdr" >&5
7152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7153 echo $ac_n "(cached) $ac_c" 1>&6
7154 else
7155 cat > conftest.$ac_ext <<EOF
7156 #line 7157 "configure"
7157 #include "confdefs.h"
7158 #include <$ac_hdr>
7160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7161 { (eval echo configure:7162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7163 if test -z "$ac_err"; then
7164 rm -rf conftest*
7165 eval "ac_cv_header_$ac_safe=yes"
7166 else
7167 echo "$ac_err" >&5
7168 echo "configure: failed program was:" >&5
7169 cat conftest.$ac_ext >&5
7170 rm -rf conftest*
7171 eval "ac_cv_header_$ac_safe=no"
7173 rm -f conftest*
7175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7176 echo "$ac_t""yes" 1>&6
7177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7178 cat >> confdefs.h <<EOF
7179 #define $ac_tr_hdr 1
7182 else
7183 echo "$ac_t""no" 1>&6
7185 done
7187 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7190 # If we're not using GNU ld, then there's no point in even trying these
7191 # tests. Check for that first. We should have already tested for gld
7192 # by now (in libtool), but require it now just to be safe...
7193 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7194 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7197 # The name set by libtool depends on the version of libtool. Shame on us
7198 # for depending on an impl detail, but c'est la vie. Older versions used
7199 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7200 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7201 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7202 # set (hence we're using an older libtool), then set it.
7203 if test x${with_gnu_ld+set} != xset; then
7204 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7205 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7206 with_gnu_ld=no
7207 else
7208 with_gnu_ld=$ac_cv_prog_gnu_ld
7212 # Start by getting the version number. I think the libtool test already
7213 # does some of this, but throws away the result.
7215 ldver=`$LD --version 2>/dev/null | head -1 | \
7216 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7218 glibcpp_gnu_ld_version=`echo $ldver | \
7219 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7221 # Set --gc-sections.
7222 if test "$with_gnu_ld" = "notbroken"; then
7223 # GNU ld it is! Joy and bunny rabbits!
7225 # All these tests are for C++; save the language and the compiler flags.
7226 # Need to do this so that g++ won't try to link in libstdc++
7227 ac_test_CFLAGS="${CFLAGS+set}"
7228 ac_save_CFLAGS="$CFLAGS"
7229 CFLAGS='-x c++ -Wl,--gc-sections'
7231 # Check for -Wl,--gc-sections
7232 # XXX This test is broken at the moment, as symbols required for
7233 # linking are now in libsupc++ (not built yet.....). In addition,
7234 # this test has cored on solaris in the past. In addition,
7235 # --gc-sections doesn't really work at the moment (keeps on discarding
7236 # used sections, first .eh_frame and now some of the glibc sections for
7237 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7238 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7239 echo "configure:7240: checking for ld that supports -Wl,--gc-sections" >&5
7240 if test "$cross_compiling" = yes; then
7241 ac_sectionLDflags=yes
7242 else
7243 cat > conftest.$ac_ext <<EOF
7244 #line 7245 "configure"
7245 #include "confdefs.h"
7247 int main(void)
7249 try { throw 1; }
7250 catch (...) { };
7251 return 0;
7255 if { (eval echo configure:7256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7256 then
7257 ac_sectionLDflags=yes
7258 else
7259 echo "configure: failed program was:" >&5
7260 cat conftest.$ac_ext >&5
7261 rm -fr conftest*
7262 ac_sectionLDflags=no
7264 rm -fr conftest*
7267 if test "$ac_test_CFLAGS" = set; then
7268 CFLAGS="$ac_save_CFLAGS"
7269 else
7270 # this is the suspicious part
7271 CFLAGS=''
7273 if test "$ac_sectionLDflags" = "yes"; then
7274 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7276 echo "$ac_t""$ac_sectionLDflags" 1>&6
7279 # Set linker optimization flags.
7280 if test x"$with_gnu_ld" = x"yes"; then
7281 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7288 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7289 echo "configure:7290: checking for main in -lm" >&5
7290 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7292 echo $ac_n "(cached) $ac_c" 1>&6
7293 else
7294 ac_save_LIBS="$LIBS"
7295 LIBS="-lm $LIBS"
7296 cat > conftest.$ac_ext <<EOF
7297 #line 7298 "configure"
7298 #include "confdefs.h"
7300 int main() {
7301 main()
7302 ; return 0; }
7304 if { (eval echo configure:7305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7305 rm -rf conftest*
7306 eval "ac_cv_lib_$ac_lib_var=yes"
7307 else
7308 echo "configure: failed program was:" >&5
7309 cat conftest.$ac_ext >&5
7310 rm -rf conftest*
7311 eval "ac_cv_lib_$ac_lib_var=no"
7313 rm -f conftest*
7314 LIBS="$ac_save_LIBS"
7317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7318 echo "$ac_t""yes" 1>&6
7319 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7320 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7321 cat >> confdefs.h <<EOF
7322 #define $ac_tr_lib 1
7325 LIBS="-lm $LIBS"
7327 else
7328 echo "$ac_t""no" 1>&6
7331 for ac_func in nan copysignf
7333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7334 echo "configure:7335: checking for $ac_func" >&5
7335 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7336 echo $ac_n "(cached) $ac_c" 1>&6
7337 else
7338 cat > conftest.$ac_ext <<EOF
7339 #line 7340 "configure"
7340 #include "confdefs.h"
7341 /* System header to define __stub macros and hopefully few prototypes,
7342 which can conflict with char $ac_func(); below. */
7343 #include <assert.h>
7344 /* Override any gcc2 internal prototype to avoid an error. */
7345 /* We use char because int might match the return type of a gcc2
7346 builtin and then its argument prototype would still apply. */
7347 char $ac_func();
7349 int main() {
7351 /* The GNU C library defines this for functions which it implements
7352 to always fail with ENOSYS. Some functions are actually named
7353 something starting with __ and the normal name is an alias. */
7354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7355 choke me
7356 #else
7357 $ac_func();
7358 #endif
7360 ; return 0; }
7362 if { (eval echo configure:7363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7363 rm -rf conftest*
7364 eval "ac_cv_func_$ac_func=yes"
7365 else
7366 echo "configure: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7368 rm -rf conftest*
7369 eval "ac_cv_func_$ac_func=no"
7371 rm -f conftest*
7374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7375 echo "$ac_t""yes" 1>&6
7376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7377 cat >> confdefs.h <<EOF
7378 #define $ac_tr_func 1
7381 else
7382 echo "$ac_t""no" 1>&6
7383 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7385 done
7388 for ac_func in __signbit
7390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7391 echo "configure:7392: checking for $ac_func" >&5
7392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7393 echo $ac_n "(cached) $ac_c" 1>&6
7394 else
7395 cat > conftest.$ac_ext <<EOF
7396 #line 7397 "configure"
7397 #include "confdefs.h"
7398 /* System header to define __stub macros and hopefully few prototypes,
7399 which can conflict with char $ac_func(); below. */
7400 #include <assert.h>
7401 /* Override any gcc2 internal prototype to avoid an error. */
7402 /* We use char because int might match the return type of a gcc2
7403 builtin and then its argument prototype would still apply. */
7404 char $ac_func();
7406 int main() {
7408 /* The GNU C library defines this for functions which it implements
7409 to always fail with ENOSYS. Some functions are actually named
7410 something starting with __ and the normal name is an alias. */
7411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7412 choke me
7413 #else
7414 $ac_func();
7415 #endif
7417 ; return 0; }
7419 if { (eval echo configure:7420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7420 rm -rf conftest*
7421 eval "ac_cv_func_$ac_func=yes"
7422 else
7423 echo "configure: failed program was:" >&5
7424 cat conftest.$ac_ext >&5
7425 rm -rf conftest*
7426 eval "ac_cv_func_$ac_func=no"
7428 rm -f conftest*
7431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7432 echo "$ac_t""yes" 1>&6
7433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7434 cat >> confdefs.h <<EOF
7435 #define $ac_tr_func 1
7438 else
7439 echo "$ac_t""no" 1>&6
7440 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7442 done
7444 for ac_func in __signbitf
7446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7447 echo "configure:7448: checking for $ac_func" >&5
7448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7449 echo $ac_n "(cached) $ac_c" 1>&6
7450 else
7451 cat > conftest.$ac_ext <<EOF
7452 #line 7453 "configure"
7453 #include "confdefs.h"
7454 /* System header to define __stub macros and hopefully few prototypes,
7455 which can conflict with char $ac_func(); below. */
7456 #include <assert.h>
7457 /* Override any gcc2 internal prototype to avoid an error. */
7458 /* We use char because int might match the return type of a gcc2
7459 builtin and then its argument prototype would still apply. */
7460 char $ac_func();
7462 int main() {
7464 /* The GNU C library defines this for functions which it implements
7465 to always fail with ENOSYS. Some functions are actually named
7466 something starting with __ and the normal name is an alias. */
7467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7468 choke me
7469 #else
7470 $ac_func();
7471 #endif
7473 ; return 0; }
7475 if { (eval echo configure:7476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7476 rm -rf conftest*
7477 eval "ac_cv_func_$ac_func=yes"
7478 else
7479 echo "configure: failed program was:" >&5
7480 cat conftest.$ac_ext >&5
7481 rm -rf conftest*
7482 eval "ac_cv_func_$ac_func=no"
7484 rm -f conftest*
7487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7488 echo "$ac_t""yes" 1>&6
7489 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7490 cat >> confdefs.h <<EOF
7491 #define $ac_tr_func 1
7494 else
7495 echo "$ac_t""no" 1>&6
7496 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7498 done
7501 if test x$ac_cv_func_copysignl = x"yes"; then
7502 for ac_func in __signbitl
7504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7505 echo "configure:7506: checking for $ac_func" >&5
7506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7507 echo $ac_n "(cached) $ac_c" 1>&6
7508 else
7509 cat > conftest.$ac_ext <<EOF
7510 #line 7511 "configure"
7511 #include "confdefs.h"
7512 /* System header to define __stub macros and hopefully few prototypes,
7513 which can conflict with char $ac_func(); below. */
7514 #include <assert.h>
7515 /* Override any gcc2 internal prototype to avoid an error. */
7516 /* We use char because int might match the return type of a gcc2
7517 builtin and then its argument prototype would still apply. */
7518 char $ac_func();
7520 int main() {
7522 /* The GNU C library defines this for functions which it implements
7523 to always fail with ENOSYS. Some functions are actually named
7524 something starting with __ and the normal name is an alias. */
7525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7526 choke me
7527 #else
7528 $ac_func();
7529 #endif
7531 ; return 0; }
7533 if { (eval echo configure:7534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7534 rm -rf conftest*
7535 eval "ac_cv_func_$ac_func=yes"
7536 else
7537 echo "configure: failed program was:" >&5
7538 cat conftest.$ac_ext >&5
7539 rm -rf conftest*
7540 eval "ac_cv_func_$ac_func=no"
7542 rm -f conftest*
7545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7546 echo "$ac_t""yes" 1>&6
7547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7548 cat >> confdefs.h <<EOF
7549 #define $ac_tr_func 1
7552 else
7553 echo "$ac_t""no" 1>&6
7554 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7556 done
7560 if test -n "$LIBMATHOBJS"; then
7561 need_libmath=yes
7566 if test "$need_libmath" = yes; then
7567 GLIBCPP_BUILD_LIBMATH_TRUE=
7568 GLIBCPP_BUILD_LIBMATH_FALSE='#'
7569 else
7570 GLIBCPP_BUILD_LIBMATH_TRUE='#'
7571 GLIBCPP_BUILD_LIBMATH_FALSE=
7575 enable_wchar_t=no
7577 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7578 echo "configure:7579: checking for mbstate_t" >&5
7579 cat > conftest.$ac_ext <<EOF
7580 #line 7581 "configure"
7581 #include "confdefs.h"
7582 #include <wchar.h>
7583 int main() {
7584 mbstate_t teststate;
7585 ; return 0; }
7587 if { (eval echo configure:7588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7588 rm -rf conftest*
7589 have_mbstate_t=yes
7590 else
7591 echo "configure: failed program was:" >&5
7592 cat conftest.$ac_ext >&5
7593 rm -rf conftest*
7594 have_mbstate_t=no
7596 rm -f conftest*
7597 echo "$ac_t""$have_mbstate_t" 1>&6
7598 if test x"$have_mbstate_t" = xyes; then
7599 cat >> confdefs.h <<\EOF
7600 #define HAVE_MBSTATE_T 1
7605 for ac_hdr in wchar.h
7607 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7609 echo "configure:7610: checking for $ac_hdr" >&5
7610 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7612 else
7613 cat > conftest.$ac_ext <<EOF
7614 #line 7615 "configure"
7615 #include "confdefs.h"
7616 #include <$ac_hdr>
7618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7619 { (eval echo configure:7620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7621 if test -z "$ac_err"; then
7622 rm -rf conftest*
7623 eval "ac_cv_header_$ac_safe=yes"
7624 else
7625 echo "$ac_err" >&5
7626 echo "configure: failed program was:" >&5
7627 cat conftest.$ac_ext >&5
7628 rm -rf conftest*
7629 eval "ac_cv_header_$ac_safe=no"
7631 rm -f conftest*
7633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7634 echo "$ac_t""yes" 1>&6
7635 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7636 cat >> confdefs.h <<EOF
7637 #define $ac_tr_hdr 1
7639 ac_has_wchar_h=yes
7640 else
7641 echo "$ac_t""no" 1>&6
7642 ac_has_wchar_h=no
7644 done
7646 for ac_hdr in wctype.h
7648 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7649 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7650 echo "configure:7651: checking for $ac_hdr" >&5
7651 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7652 echo $ac_n "(cached) $ac_c" 1>&6
7653 else
7654 cat > conftest.$ac_ext <<EOF
7655 #line 7656 "configure"
7656 #include "confdefs.h"
7657 #include <$ac_hdr>
7659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7660 { (eval echo configure:7661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7662 if test -z "$ac_err"; then
7663 rm -rf conftest*
7664 eval "ac_cv_header_$ac_safe=yes"
7665 else
7666 echo "$ac_err" >&5
7667 echo "configure: failed program was:" >&5
7668 cat conftest.$ac_ext >&5
7669 rm -rf conftest*
7670 eval "ac_cv_header_$ac_safe=no"
7672 rm -f conftest*
7674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7675 echo "$ac_t""yes" 1>&6
7676 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7677 cat >> confdefs.h <<EOF
7678 #define $ac_tr_hdr 1
7680 ac_has_wctype_h=yes
7681 else
7682 echo "$ac_t""no" 1>&6
7683 ac_has_wctype_h=no
7685 done
7688 if test x"$ac_has_wchar_h" = xyes &&
7689 test x"$ac_has_wctype_h" = xyes &&
7690 test x"$enable_c_mbchar" != xno; then
7692 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7693 echo "configure:7694: checking for WCHAR_MIN and WCHAR_MAX" >&5
7694 cat > conftest.$ac_ext <<EOF
7695 #line 7696 "configure"
7696 #include "confdefs.h"
7697 #include <wchar.h>
7698 int main() {
7699 int i = WCHAR_MIN; int j = WCHAR_MAX;
7700 ; return 0; }
7702 if { (eval echo configure:7703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7703 rm -rf conftest*
7704 has_wchar_minmax=yes
7705 else
7706 echo "configure: failed program was:" >&5
7707 cat conftest.$ac_ext >&5
7708 rm -rf conftest*
7709 has_wchar_minmax=no
7711 rm -f conftest*
7712 echo "$ac_t""$has_wchar_minmax" 1>&6
7714 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7715 echo "configure:7716: checking for WEOF" >&5
7716 cat > conftest.$ac_ext <<EOF
7717 #line 7718 "configure"
7718 #include "confdefs.h"
7720 #include <wchar.h>
7721 #include <stddef.h>
7722 int main() {
7723 wint_t i = WEOF;
7724 ; return 0; }
7726 if { (eval echo configure:7727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7727 rm -rf conftest*
7728 has_weof=yes
7729 else
7730 echo "configure: failed program was:" >&5
7731 cat conftest.$ac_ext >&5
7732 rm -rf conftest*
7733 has_weof=no
7735 rm -f conftest*
7736 echo "$ac_t""$has_weof" 1>&6
7738 ac_wfuncs=yes
7739 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7742 echo "configure:7743: checking for $ac_func" >&5
7743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7744 echo $ac_n "(cached) $ac_c" 1>&6
7745 else
7746 cat > conftest.$ac_ext <<EOF
7747 #line 7748 "configure"
7748 #include "confdefs.h"
7749 /* System header to define __stub macros and hopefully few prototypes,
7750 which can conflict with char $ac_func(); below. */
7751 #include <assert.h>
7752 /* Override any gcc2 internal prototype to avoid an error. */
7753 /* We use char because int might match the return type of a gcc2
7754 builtin and then its argument prototype would still apply. */
7755 char $ac_func();
7757 int main() {
7759 /* The GNU C library defines this for functions which it implements
7760 to always fail with ENOSYS. Some functions are actually named
7761 something starting with __ and the normal name is an alias. */
7762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7763 choke me
7764 #else
7765 $ac_func();
7766 #endif
7768 ; return 0; }
7770 if { (eval echo configure:7771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7771 rm -rf conftest*
7772 eval "ac_cv_func_$ac_func=yes"
7773 else
7774 echo "configure: failed program was:" >&5
7775 cat conftest.$ac_ext >&5
7776 rm -rf conftest*
7777 eval "ac_cv_func_$ac_func=no"
7779 rm -f conftest*
7782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7783 echo "$ac_t""yes" 1>&6
7784 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7785 cat >> confdefs.h <<EOF
7786 #define $ac_tr_func 1
7789 else
7790 echo "$ac_t""no" 1>&6
7792 ac_wfuncs=no
7794 done
7797 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7798 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7799 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7800 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7801 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7802 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7805 echo "configure:7806: checking for $ac_func" >&5
7806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7807 echo $ac_n "(cached) $ac_c" 1>&6
7808 else
7809 cat > conftest.$ac_ext <<EOF
7810 #line 7811 "configure"
7811 #include "confdefs.h"
7812 /* System header to define __stub macros and hopefully few prototypes,
7813 which can conflict with char $ac_func(); below. */
7814 #include <assert.h>
7815 /* Override any gcc2 internal prototype to avoid an error. */
7816 /* We use char because int might match the return type of a gcc2
7817 builtin and then its argument prototype would still apply. */
7818 char $ac_func();
7820 int main() {
7822 /* The GNU C library defines this for functions which it implements
7823 to always fail with ENOSYS. Some functions are actually named
7824 something starting with __ and the normal name is an alias. */
7825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7826 choke me
7827 #else
7828 $ac_func();
7829 #endif
7831 ; return 0; }
7833 if { (eval echo configure:7834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7834 rm -rf conftest*
7835 eval "ac_cv_func_$ac_func=yes"
7836 else
7837 echo "configure: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7839 rm -rf conftest*
7840 eval "ac_cv_func_$ac_func=no"
7842 rm -f conftest*
7845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7846 echo "$ac_t""yes" 1>&6
7847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7848 cat >> confdefs.h <<EOF
7849 #define $ac_tr_func 1
7852 else
7853 echo "$ac_t""no" 1>&6
7855 ac_wfuncs=no
7857 done
7860 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7861 echo "configure:7862: checking for ISO C99 wchar_t support" >&5
7862 if test x"$has_weof" = xyes &&
7863 test x"$has_wchar_minmax" = xyes &&
7864 test x"$ac_wfuncs" = xyes; then
7865 ac_isoC99_wchar_t=yes
7866 else
7867 ac_isoC99_wchar_t=no
7869 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7871 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7872 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7873 echo "configure:7874: checking for iconv.h" >&5
7874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7875 echo $ac_n "(cached) $ac_c" 1>&6
7876 else
7877 cat > conftest.$ac_ext <<EOF
7878 #line 7879 "configure"
7879 #include "confdefs.h"
7880 #include <iconv.h>
7882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7883 { (eval echo configure:7884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7885 if test -z "$ac_err"; then
7886 rm -rf conftest*
7887 eval "ac_cv_header_$ac_safe=yes"
7888 else
7889 echo "$ac_err" >&5
7890 echo "configure: failed program was:" >&5
7891 cat conftest.$ac_ext >&5
7892 rm -rf conftest*
7893 eval "ac_cv_header_$ac_safe=no"
7895 rm -f conftest*
7897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7898 echo "$ac_t""yes" 1>&6
7899 ac_has_iconv_h=yes
7900 else
7901 echo "$ac_t""no" 1>&6
7902 ac_has_iconv_h=no
7905 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7906 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7907 echo "configure:7908: checking for langinfo.h" >&5
7908 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7909 echo $ac_n "(cached) $ac_c" 1>&6
7910 else
7911 cat > conftest.$ac_ext <<EOF
7912 #line 7913 "configure"
7913 #include "confdefs.h"
7914 #include <langinfo.h>
7916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7917 { (eval echo configure:7918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7919 if test -z "$ac_err"; then
7920 rm -rf conftest*
7921 eval "ac_cv_header_$ac_safe=yes"
7922 else
7923 echo "$ac_err" >&5
7924 echo "configure: failed program was:" >&5
7925 cat conftest.$ac_ext >&5
7926 rm -rf conftest*
7927 eval "ac_cv_header_$ac_safe=no"
7929 rm -f conftest*
7931 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7932 echo "$ac_t""yes" 1>&6
7933 ac_has_langinfo_h=yes
7934 else
7935 echo "$ac_t""no" 1>&6
7936 ac_has_langinfo_h=no
7940 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7941 echo "configure:7942: checking for iconv in -liconv" >&5
7942 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7944 echo $ac_n "(cached) $ac_c" 1>&6
7945 else
7946 ac_save_LIBS="$LIBS"
7947 LIBS="-liconv $LIBS"
7948 cat > conftest.$ac_ext <<EOF
7949 #line 7950 "configure"
7950 #include "confdefs.h"
7951 /* Override any gcc2 internal prototype to avoid an error. */
7952 /* We use char because int might match the return type of a gcc2
7953 builtin and then its argument prototype would still apply. */
7954 char iconv();
7956 int main() {
7957 iconv()
7958 ; return 0; }
7960 if { (eval echo configure:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7961 rm -rf conftest*
7962 eval "ac_cv_lib_$ac_lib_var=yes"
7963 else
7964 echo "configure: failed program was:" >&5
7965 cat conftest.$ac_ext >&5
7966 rm -rf conftest*
7967 eval "ac_cv_lib_$ac_lib_var=no"
7969 rm -f conftest*
7970 LIBS="$ac_save_LIBS"
7973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7974 echo "$ac_t""yes" 1>&6
7975 libiconv="-liconv"
7976 else
7977 echo "$ac_t""no" 1>&6
7980 ac_save_LIBS="$LIBS"
7981 LIBS="$LIBS $libiconv"
7983 for ac_func in iconv_open iconv_close iconv nl_langinfo
7985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7986 echo "configure:7987: checking for $ac_func" >&5
7987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7988 echo $ac_n "(cached) $ac_c" 1>&6
7989 else
7990 cat > conftest.$ac_ext <<EOF
7991 #line 7992 "configure"
7992 #include "confdefs.h"
7993 /* System header to define __stub macros and hopefully few prototypes,
7994 which can conflict with char $ac_func(); below. */
7995 #include <assert.h>
7996 /* Override any gcc2 internal prototype to avoid an error. */
7997 /* We use char because int might match the return type of a gcc2
7998 builtin and then its argument prototype would still apply. */
7999 char $ac_func();
8001 int main() {
8003 /* The GNU C library defines this for functions which it implements
8004 to always fail with ENOSYS. Some functions are actually named
8005 something starting with __ and the normal name is an alias. */
8006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8007 choke me
8008 #else
8009 $ac_func();
8010 #endif
8012 ; return 0; }
8014 if { (eval echo configure:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8015 rm -rf conftest*
8016 eval "ac_cv_func_$ac_func=yes"
8017 else
8018 echo "configure: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8020 rm -rf conftest*
8021 eval "ac_cv_func_$ac_func=no"
8023 rm -f conftest*
8026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8027 echo "$ac_t""yes" 1>&6
8028 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8029 cat >> confdefs.h <<EOF
8030 #define $ac_tr_func 1
8033 ac_XPG2funcs=yes
8034 else
8035 echo "$ac_t""no" 1>&6
8036 ac_XPG2funcs=no
8038 done
8041 LIBS="$ac_save_LIBS"
8043 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8044 echo "configure:8045: checking for XPG2 wchar_t support" >&5
8045 if test x"$ac_has_iconv_h" = xyes &&
8046 test x"$ac_has_langinfo_h" = xyes &&
8047 test x"$ac_XPG2funcs" = xyes; then
8048 ac_XPG2_wchar_t=yes
8049 else
8050 ac_XPG2_wchar_t=no
8052 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8054 if test x"$ac_isoC99_wchar_t" = xyes &&
8055 test x"$ac_XPG2_wchar_t" = xyes; then
8056 cat >> confdefs.h <<\EOF
8057 #define _GLIBCPP_USE_WCHAR_T 1
8060 enable_wchar_t=yes
8063 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8064 echo "configure:8065: checking for enabled wchar_t specializations" >&5
8065 echo "$ac_t""$enable_wchar_t" 1>&6
8068 if test "$enable_wchar_t" = yes; then
8069 GLIBCPP_TEST_WCHAR_T_TRUE=
8070 GLIBCPP_TEST_WCHAR_T_FALSE='#'
8071 else
8072 GLIBCPP_TEST_WCHAR_T_TRUE='#'
8073 GLIBCPP_TEST_WCHAR_T_FALSE=
8076 os_include_dir="os/bsd/freebsd"
8077 cat >> confdefs.h <<\EOF
8078 #define HAVE_LC_MESSAGES 1
8081 cat >> confdefs.h <<\EOF
8082 #define HAVE_DRAND48 1
8085 cat >> confdefs.h <<\EOF
8086 #define HAVE_GETPAGESIZE 1
8089 cat >> confdefs.h <<\EOF
8090 #define HAVE_SETENV 1
8093 cat >> confdefs.h <<\EOF
8094 #define HAVE_SIGSETJMP 1
8097 cat >> confdefs.h <<\EOF
8098 #define HAVE_COPYSIGN 1
8101 cat >> confdefs.h <<\EOF
8102 #define HAVE_COPYSIGNF 1
8105 cat >> confdefs.h <<\EOF
8106 #define HAVE_FINITEF 1
8109 cat >> confdefs.h <<\EOF
8110 #define HAVE_FINITE 1
8113 cat >> confdefs.h <<\EOF
8114 #define HAVE_FREXPF 1
8117 cat >> confdefs.h <<\EOF
8118 #define HAVE_HYPOT 1
8121 cat >> confdefs.h <<\EOF
8122 #define HAVE_HYPOTF 1
8125 cat >> confdefs.h <<\EOF
8126 #define HAVE_ISINF 1
8129 cat >> confdefs.h <<\EOF
8130 #define HAVE_ISNAN 1
8133 cat >> confdefs.h <<\EOF
8134 #define HAVE_ISNANF 1
8137 if test x"long_double_math_on_this_cpu" = x"yes"; then
8138 cat >> confdefs.h <<\EOF
8139 #define HAVE_FINITEL 1
8142 cat >> confdefs.h <<\EOF
8143 #define HAVE_ISINFL 1
8146 cat >> confdefs.h <<\EOF
8147 #define HAVE_ISNANL 1
8152 *-mingw32*)
8153 for ac_hdr in sys/types.h locale.h float.h
8155 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8156 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8157 echo "configure:8158: checking for $ac_hdr" >&5
8158 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8159 echo $ac_n "(cached) $ac_c" 1>&6
8160 else
8161 cat > conftest.$ac_ext <<EOF
8162 #line 8163 "configure"
8163 #include "confdefs.h"
8164 #include <$ac_hdr>
8166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8167 { (eval echo configure:8168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8169 if test -z "$ac_err"; then
8170 rm -rf conftest*
8171 eval "ac_cv_header_$ac_safe=yes"
8172 else
8173 echo "$ac_err" >&5
8174 echo "configure: failed program was:" >&5
8175 cat conftest.$ac_ext >&5
8176 rm -rf conftest*
8177 eval "ac_cv_header_$ac_safe=no"
8179 rm -f conftest*
8181 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8182 echo "$ac_t""yes" 1>&6
8183 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8184 cat >> confdefs.h <<EOF
8185 #define $ac_tr_hdr 1
8188 else
8189 echo "$ac_t""no" 1>&6
8191 done
8194 # If we're not using GNU ld, then there's no point in even trying these
8195 # tests. Check for that first. We should have already tested for gld
8196 # by now (in libtool), but require it now just to be safe...
8197 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8198 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8201 # The name set by libtool depends on the version of libtool. Shame on us
8202 # for depending on an impl detail, but c'est la vie. Older versions used
8203 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8204 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8205 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8206 # set (hence we're using an older libtool), then set it.
8207 if test x${with_gnu_ld+set} != xset; then
8208 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8209 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8210 with_gnu_ld=no
8211 else
8212 with_gnu_ld=$ac_cv_prog_gnu_ld
8216 # Start by getting the version number. I think the libtool test already
8217 # does some of this, but throws away the result.
8219 ldver=`$LD --version 2>/dev/null | head -1 | \
8220 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8222 glibcpp_gnu_ld_version=`echo $ldver | \
8223 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8225 # Set --gc-sections.
8226 if test "$with_gnu_ld" = "notbroken"; then
8227 # GNU ld it is! Joy and bunny rabbits!
8229 # All these tests are for C++; save the language and the compiler flags.
8230 # Need to do this so that g++ won't try to link in libstdc++
8231 ac_test_CFLAGS="${CFLAGS+set}"
8232 ac_save_CFLAGS="$CFLAGS"
8233 CFLAGS='-x c++ -Wl,--gc-sections'
8235 # Check for -Wl,--gc-sections
8236 # XXX This test is broken at the moment, as symbols required for
8237 # linking are now in libsupc++ (not built yet.....). In addition,
8238 # this test has cored on solaris in the past. In addition,
8239 # --gc-sections doesn't really work at the moment (keeps on discarding
8240 # used sections, first .eh_frame and now some of the glibc sections for
8241 # iconv). Bzzzzt. Thanks for playing, maybe next time.
8242 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8243 echo "configure:8244: checking for ld that supports -Wl,--gc-sections" >&5
8244 if test "$cross_compiling" = yes; then
8245 ac_sectionLDflags=yes
8246 else
8247 cat > conftest.$ac_ext <<EOF
8248 #line 8249 "configure"
8249 #include "confdefs.h"
8251 int main(void)
8253 try { throw 1; }
8254 catch (...) { };
8255 return 0;
8259 if { (eval echo configure:8260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8260 then
8261 ac_sectionLDflags=yes
8262 else
8263 echo "configure: failed program was:" >&5
8264 cat conftest.$ac_ext >&5
8265 rm -fr conftest*
8266 ac_sectionLDflags=no
8268 rm -fr conftest*
8271 if test "$ac_test_CFLAGS" = set; then
8272 CFLAGS="$ac_save_CFLAGS"
8273 else
8274 # this is the suspicious part
8275 CFLAGS=''
8277 if test "$ac_sectionLDflags" = "yes"; then
8278 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8280 echo "$ac_t""$ac_sectionLDflags" 1>&6
8283 # Set linker optimization flags.
8284 if test x"$with_gnu_ld" = x"yes"; then
8285 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8292 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8293 echo "configure:8294: checking for main in -lm" >&5
8294 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8296 echo $ac_n "(cached) $ac_c" 1>&6
8297 else
8298 ac_save_LIBS="$LIBS"
8299 LIBS="-lm $LIBS"
8300 cat > conftest.$ac_ext <<EOF
8301 #line 8302 "configure"
8302 #include "confdefs.h"
8304 int main() {
8305 main()
8306 ; return 0; }
8308 if { (eval echo configure:8309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8309 rm -rf conftest*
8310 eval "ac_cv_lib_$ac_lib_var=yes"
8311 else
8312 echo "configure: failed program was:" >&5
8313 cat conftest.$ac_ext >&5
8314 rm -rf conftest*
8315 eval "ac_cv_lib_$ac_lib_var=no"
8317 rm -f conftest*
8318 LIBS="$ac_save_LIBS"
8321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8322 echo "$ac_t""yes" 1>&6
8323 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8324 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8325 cat >> confdefs.h <<EOF
8326 #define $ac_tr_lib 1
8329 LIBS="-lm $LIBS"
8331 else
8332 echo "$ac_t""no" 1>&6
8335 for ac_func in nan copysignf
8337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8338 echo "configure:8339: checking for $ac_func" >&5
8339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8340 echo $ac_n "(cached) $ac_c" 1>&6
8341 else
8342 cat > conftest.$ac_ext <<EOF
8343 #line 8344 "configure"
8344 #include "confdefs.h"
8345 /* System header to define __stub macros and hopefully few prototypes,
8346 which can conflict with char $ac_func(); below. */
8347 #include <assert.h>
8348 /* Override any gcc2 internal prototype to avoid an error. */
8349 /* We use char because int might match the return type of a gcc2
8350 builtin and then its argument prototype would still apply. */
8351 char $ac_func();
8353 int main() {
8355 /* The GNU C library defines this for functions which it implements
8356 to always fail with ENOSYS. Some functions are actually named
8357 something starting with __ and the normal name is an alias. */
8358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8359 choke me
8360 #else
8361 $ac_func();
8362 #endif
8364 ; return 0; }
8366 if { (eval echo configure:8367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8367 rm -rf conftest*
8368 eval "ac_cv_func_$ac_func=yes"
8369 else
8370 echo "configure: failed program was:" >&5
8371 cat conftest.$ac_ext >&5
8372 rm -rf conftest*
8373 eval "ac_cv_func_$ac_func=no"
8375 rm -f conftest*
8378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8379 echo "$ac_t""yes" 1>&6
8380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8381 cat >> confdefs.h <<EOF
8382 #define $ac_tr_func 1
8385 else
8386 echo "$ac_t""no" 1>&6
8387 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8389 done
8392 for ac_func in __signbit
8394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8395 echo "configure:8396: checking for $ac_func" >&5
8396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8397 echo $ac_n "(cached) $ac_c" 1>&6
8398 else
8399 cat > conftest.$ac_ext <<EOF
8400 #line 8401 "configure"
8401 #include "confdefs.h"
8402 /* System header to define __stub macros and hopefully few prototypes,
8403 which can conflict with char $ac_func(); below. */
8404 #include <assert.h>
8405 /* Override any gcc2 internal prototype to avoid an error. */
8406 /* We use char because int might match the return type of a gcc2
8407 builtin and then its argument prototype would still apply. */
8408 char $ac_func();
8410 int main() {
8412 /* The GNU C library defines this for functions which it implements
8413 to always fail with ENOSYS. Some functions are actually named
8414 something starting with __ and the normal name is an alias. */
8415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8416 choke me
8417 #else
8418 $ac_func();
8419 #endif
8421 ; return 0; }
8423 if { (eval echo configure:8424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8424 rm -rf conftest*
8425 eval "ac_cv_func_$ac_func=yes"
8426 else
8427 echo "configure: failed program was:" >&5
8428 cat conftest.$ac_ext >&5
8429 rm -rf conftest*
8430 eval "ac_cv_func_$ac_func=no"
8432 rm -f conftest*
8435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8436 echo "$ac_t""yes" 1>&6
8437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8438 cat >> confdefs.h <<EOF
8439 #define $ac_tr_func 1
8442 else
8443 echo "$ac_t""no" 1>&6
8444 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8446 done
8448 for ac_func in __signbitf
8450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8451 echo "configure:8452: checking for $ac_func" >&5
8452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8453 echo $ac_n "(cached) $ac_c" 1>&6
8454 else
8455 cat > conftest.$ac_ext <<EOF
8456 #line 8457 "configure"
8457 #include "confdefs.h"
8458 /* System header to define __stub macros and hopefully few prototypes,
8459 which can conflict with char $ac_func(); below. */
8460 #include <assert.h>
8461 /* Override any gcc2 internal prototype to avoid an error. */
8462 /* We use char because int might match the return type of a gcc2
8463 builtin and then its argument prototype would still apply. */
8464 char $ac_func();
8466 int main() {
8468 /* The GNU C library defines this for functions which it implements
8469 to always fail with ENOSYS. Some functions are actually named
8470 something starting with __ and the normal name is an alias. */
8471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8472 choke me
8473 #else
8474 $ac_func();
8475 #endif
8477 ; return 0; }
8479 if { (eval echo configure:8480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8480 rm -rf conftest*
8481 eval "ac_cv_func_$ac_func=yes"
8482 else
8483 echo "configure: failed program was:" >&5
8484 cat conftest.$ac_ext >&5
8485 rm -rf conftest*
8486 eval "ac_cv_func_$ac_func=no"
8488 rm -f conftest*
8491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8492 echo "$ac_t""yes" 1>&6
8493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8494 cat >> confdefs.h <<EOF
8495 #define $ac_tr_func 1
8498 else
8499 echo "$ac_t""no" 1>&6
8500 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8502 done
8505 if test x$ac_cv_func_copysignl = x"yes"; then
8506 for ac_func in __signbitl
8508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8509 echo "configure:8510: checking for $ac_func" >&5
8510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8511 echo $ac_n "(cached) $ac_c" 1>&6
8512 else
8513 cat > conftest.$ac_ext <<EOF
8514 #line 8515 "configure"
8515 #include "confdefs.h"
8516 /* System header to define __stub macros and hopefully few prototypes,
8517 which can conflict with char $ac_func(); below. */
8518 #include <assert.h>
8519 /* Override any gcc2 internal prototype to avoid an error. */
8520 /* We use char because int might match the return type of a gcc2
8521 builtin and then its argument prototype would still apply. */
8522 char $ac_func();
8524 int main() {
8526 /* The GNU C library defines this for functions which it implements
8527 to always fail with ENOSYS. Some functions are actually named
8528 something starting with __ and the normal name is an alias. */
8529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8530 choke me
8531 #else
8532 $ac_func();
8533 #endif
8535 ; return 0; }
8537 if { (eval echo configure:8538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8538 rm -rf conftest*
8539 eval "ac_cv_func_$ac_func=yes"
8540 else
8541 echo "configure: failed program was:" >&5
8542 cat conftest.$ac_ext >&5
8543 rm -rf conftest*
8544 eval "ac_cv_func_$ac_func=no"
8546 rm -f conftest*
8549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8550 echo "$ac_t""yes" 1>&6
8551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8552 cat >> confdefs.h <<EOF
8553 #define $ac_tr_func 1
8556 else
8557 echo "$ac_t""no" 1>&6
8558 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8560 done
8564 if test -n "$LIBMATHOBJS"; then
8565 need_libmath=yes
8570 if test "$need_libmath" = yes; then
8571 GLIBCPP_BUILD_LIBMATH_TRUE=
8572 GLIBCPP_BUILD_LIBMATH_FALSE='#'
8573 else
8574 GLIBCPP_BUILD_LIBMATH_TRUE='#'
8575 GLIBCPP_BUILD_LIBMATH_FALSE=
8579 enable_wchar_t=no
8581 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8582 echo "configure:8583: checking for mbstate_t" >&5
8583 cat > conftest.$ac_ext <<EOF
8584 #line 8585 "configure"
8585 #include "confdefs.h"
8586 #include <wchar.h>
8587 int main() {
8588 mbstate_t teststate;
8589 ; return 0; }
8591 if { (eval echo configure:8592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8592 rm -rf conftest*
8593 have_mbstate_t=yes
8594 else
8595 echo "configure: failed program was:" >&5
8596 cat conftest.$ac_ext >&5
8597 rm -rf conftest*
8598 have_mbstate_t=no
8600 rm -f conftest*
8601 echo "$ac_t""$have_mbstate_t" 1>&6
8602 if test x"$have_mbstate_t" = xyes; then
8603 cat >> confdefs.h <<\EOF
8604 #define HAVE_MBSTATE_T 1
8609 for ac_hdr in wchar.h
8611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8613 echo "configure:8614: checking for $ac_hdr" >&5
8614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8615 echo $ac_n "(cached) $ac_c" 1>&6
8616 else
8617 cat > conftest.$ac_ext <<EOF
8618 #line 8619 "configure"
8619 #include "confdefs.h"
8620 #include <$ac_hdr>
8622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8623 { (eval echo configure:8624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8625 if test -z "$ac_err"; then
8626 rm -rf conftest*
8627 eval "ac_cv_header_$ac_safe=yes"
8628 else
8629 echo "$ac_err" >&5
8630 echo "configure: failed program was:" >&5
8631 cat conftest.$ac_ext >&5
8632 rm -rf conftest*
8633 eval "ac_cv_header_$ac_safe=no"
8635 rm -f conftest*
8637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8638 echo "$ac_t""yes" 1>&6
8639 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8640 cat >> confdefs.h <<EOF
8641 #define $ac_tr_hdr 1
8643 ac_has_wchar_h=yes
8644 else
8645 echo "$ac_t""no" 1>&6
8646 ac_has_wchar_h=no
8648 done
8650 for ac_hdr in wctype.h
8652 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8654 echo "configure:8655: checking for $ac_hdr" >&5
8655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8656 echo $ac_n "(cached) $ac_c" 1>&6
8657 else
8658 cat > conftest.$ac_ext <<EOF
8659 #line 8660 "configure"
8660 #include "confdefs.h"
8661 #include <$ac_hdr>
8663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8664 { (eval echo configure:8665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8666 if test -z "$ac_err"; then
8667 rm -rf conftest*
8668 eval "ac_cv_header_$ac_safe=yes"
8669 else
8670 echo "$ac_err" >&5
8671 echo "configure: failed program was:" >&5
8672 cat conftest.$ac_ext >&5
8673 rm -rf conftest*
8674 eval "ac_cv_header_$ac_safe=no"
8676 rm -f conftest*
8678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8679 echo "$ac_t""yes" 1>&6
8680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8681 cat >> confdefs.h <<EOF
8682 #define $ac_tr_hdr 1
8684 ac_has_wctype_h=yes
8685 else
8686 echo "$ac_t""no" 1>&6
8687 ac_has_wctype_h=no
8689 done
8692 if test x"$ac_has_wchar_h" = xyes &&
8693 test x"$ac_has_wctype_h" = xyes &&
8694 test x"$enable_c_mbchar" != xno; then
8696 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8697 echo "configure:8698: checking for WCHAR_MIN and WCHAR_MAX" >&5
8698 cat > conftest.$ac_ext <<EOF
8699 #line 8700 "configure"
8700 #include "confdefs.h"
8701 #include <wchar.h>
8702 int main() {
8703 int i = WCHAR_MIN; int j = WCHAR_MAX;
8704 ; return 0; }
8706 if { (eval echo configure:8707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8707 rm -rf conftest*
8708 has_wchar_minmax=yes
8709 else
8710 echo "configure: failed program was:" >&5
8711 cat conftest.$ac_ext >&5
8712 rm -rf conftest*
8713 has_wchar_minmax=no
8715 rm -f conftest*
8716 echo "$ac_t""$has_wchar_minmax" 1>&6
8718 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8719 echo "configure:8720: checking for WEOF" >&5
8720 cat > conftest.$ac_ext <<EOF
8721 #line 8722 "configure"
8722 #include "confdefs.h"
8724 #include <wchar.h>
8725 #include <stddef.h>
8726 int main() {
8727 wint_t i = WEOF;
8728 ; return 0; }
8730 if { (eval echo configure:8731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8731 rm -rf conftest*
8732 has_weof=yes
8733 else
8734 echo "configure: failed program was:" >&5
8735 cat conftest.$ac_ext >&5
8736 rm -rf conftest*
8737 has_weof=no
8739 rm -f conftest*
8740 echo "$ac_t""$has_weof" 1>&6
8742 ac_wfuncs=yes
8743 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8746 echo "configure:8747: checking for $ac_func" >&5
8747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8748 echo $ac_n "(cached) $ac_c" 1>&6
8749 else
8750 cat > conftest.$ac_ext <<EOF
8751 #line 8752 "configure"
8752 #include "confdefs.h"
8753 /* System header to define __stub macros and hopefully few prototypes,
8754 which can conflict with char $ac_func(); below. */
8755 #include <assert.h>
8756 /* Override any gcc2 internal prototype to avoid an error. */
8757 /* We use char because int might match the return type of a gcc2
8758 builtin and then its argument prototype would still apply. */
8759 char $ac_func();
8761 int main() {
8763 /* The GNU C library defines this for functions which it implements
8764 to always fail with ENOSYS. Some functions are actually named
8765 something starting with __ and the normal name is an alias. */
8766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8767 choke me
8768 #else
8769 $ac_func();
8770 #endif
8772 ; return 0; }
8774 if { (eval echo configure:8775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8775 rm -rf conftest*
8776 eval "ac_cv_func_$ac_func=yes"
8777 else
8778 echo "configure: failed program was:" >&5
8779 cat conftest.$ac_ext >&5
8780 rm -rf conftest*
8781 eval "ac_cv_func_$ac_func=no"
8783 rm -f conftest*
8786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8787 echo "$ac_t""yes" 1>&6
8788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8789 cat >> confdefs.h <<EOF
8790 #define $ac_tr_func 1
8793 else
8794 echo "$ac_t""no" 1>&6
8796 ac_wfuncs=no
8798 done
8801 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8802 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8803 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8804 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8805 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8806 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8809 echo "configure:8810: checking for $ac_func" >&5
8810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8811 echo $ac_n "(cached) $ac_c" 1>&6
8812 else
8813 cat > conftest.$ac_ext <<EOF
8814 #line 8815 "configure"
8815 #include "confdefs.h"
8816 /* System header to define __stub macros and hopefully few prototypes,
8817 which can conflict with char $ac_func(); below. */
8818 #include <assert.h>
8819 /* Override any gcc2 internal prototype to avoid an error. */
8820 /* We use char because int might match the return type of a gcc2
8821 builtin and then its argument prototype would still apply. */
8822 char $ac_func();
8824 int main() {
8826 /* The GNU C library defines this for functions which it implements
8827 to always fail with ENOSYS. Some functions are actually named
8828 something starting with __ and the normal name is an alias. */
8829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8830 choke me
8831 #else
8832 $ac_func();
8833 #endif
8835 ; return 0; }
8837 if { (eval echo configure:8838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8838 rm -rf conftest*
8839 eval "ac_cv_func_$ac_func=yes"
8840 else
8841 echo "configure: failed program was:" >&5
8842 cat conftest.$ac_ext >&5
8843 rm -rf conftest*
8844 eval "ac_cv_func_$ac_func=no"
8846 rm -f conftest*
8849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8850 echo "$ac_t""yes" 1>&6
8851 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8852 cat >> confdefs.h <<EOF
8853 #define $ac_tr_func 1
8856 else
8857 echo "$ac_t""no" 1>&6
8859 ac_wfuncs=no
8861 done
8864 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8865 echo "configure:8866: checking for ISO C99 wchar_t support" >&5
8866 if test x"$has_weof" = xyes &&
8867 test x"$has_wchar_minmax" = xyes &&
8868 test x"$ac_wfuncs" = xyes; then
8869 ac_isoC99_wchar_t=yes
8870 else
8871 ac_isoC99_wchar_t=no
8873 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8875 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8876 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8877 echo "configure:8878: checking for iconv.h" >&5
8878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8879 echo $ac_n "(cached) $ac_c" 1>&6
8880 else
8881 cat > conftest.$ac_ext <<EOF
8882 #line 8883 "configure"
8883 #include "confdefs.h"
8884 #include <iconv.h>
8886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8887 { (eval echo configure:8888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8889 if test -z "$ac_err"; then
8890 rm -rf conftest*
8891 eval "ac_cv_header_$ac_safe=yes"
8892 else
8893 echo "$ac_err" >&5
8894 echo "configure: failed program was:" >&5
8895 cat conftest.$ac_ext >&5
8896 rm -rf conftest*
8897 eval "ac_cv_header_$ac_safe=no"
8899 rm -f conftest*
8901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8902 echo "$ac_t""yes" 1>&6
8903 ac_has_iconv_h=yes
8904 else
8905 echo "$ac_t""no" 1>&6
8906 ac_has_iconv_h=no
8909 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8910 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8911 echo "configure:8912: checking for langinfo.h" >&5
8912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8913 echo $ac_n "(cached) $ac_c" 1>&6
8914 else
8915 cat > conftest.$ac_ext <<EOF
8916 #line 8917 "configure"
8917 #include "confdefs.h"
8918 #include <langinfo.h>
8920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8921 { (eval echo configure:8922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8923 if test -z "$ac_err"; then
8924 rm -rf conftest*
8925 eval "ac_cv_header_$ac_safe=yes"
8926 else
8927 echo "$ac_err" >&5
8928 echo "configure: failed program was:" >&5
8929 cat conftest.$ac_ext >&5
8930 rm -rf conftest*
8931 eval "ac_cv_header_$ac_safe=no"
8933 rm -f conftest*
8935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8936 echo "$ac_t""yes" 1>&6
8937 ac_has_langinfo_h=yes
8938 else
8939 echo "$ac_t""no" 1>&6
8940 ac_has_langinfo_h=no
8944 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8945 echo "configure:8946: checking for iconv in -liconv" >&5
8946 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8948 echo $ac_n "(cached) $ac_c" 1>&6
8949 else
8950 ac_save_LIBS="$LIBS"
8951 LIBS="-liconv $LIBS"
8952 cat > conftest.$ac_ext <<EOF
8953 #line 8954 "configure"
8954 #include "confdefs.h"
8955 /* Override any gcc2 internal prototype to avoid an error. */
8956 /* We use char because int might match the return type of a gcc2
8957 builtin and then its argument prototype would still apply. */
8958 char iconv();
8960 int main() {
8961 iconv()
8962 ; return 0; }
8964 if { (eval echo configure:8965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8965 rm -rf conftest*
8966 eval "ac_cv_lib_$ac_lib_var=yes"
8967 else
8968 echo "configure: failed program was:" >&5
8969 cat conftest.$ac_ext >&5
8970 rm -rf conftest*
8971 eval "ac_cv_lib_$ac_lib_var=no"
8973 rm -f conftest*
8974 LIBS="$ac_save_LIBS"
8977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8978 echo "$ac_t""yes" 1>&6
8979 libiconv="-liconv"
8980 else
8981 echo "$ac_t""no" 1>&6
8984 ac_save_LIBS="$LIBS"
8985 LIBS="$LIBS $libiconv"
8987 for ac_func in iconv_open iconv_close iconv nl_langinfo
8989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8990 echo "configure:8991: checking for $ac_func" >&5
8991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8992 echo $ac_n "(cached) $ac_c" 1>&6
8993 else
8994 cat > conftest.$ac_ext <<EOF
8995 #line 8996 "configure"
8996 #include "confdefs.h"
8997 /* System header to define __stub macros and hopefully few prototypes,
8998 which can conflict with char $ac_func(); below. */
8999 #include <assert.h>
9000 /* Override any gcc2 internal prototype to avoid an error. */
9001 /* We use char because int might match the return type of a gcc2
9002 builtin and then its argument prototype would still apply. */
9003 char $ac_func();
9005 int main() {
9007 /* The GNU C library defines this for functions which it implements
9008 to always fail with ENOSYS. Some functions are actually named
9009 something starting with __ and the normal name is an alias. */
9010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9011 choke me
9012 #else
9013 $ac_func();
9014 #endif
9016 ; return 0; }
9018 if { (eval echo configure:9019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9019 rm -rf conftest*
9020 eval "ac_cv_func_$ac_func=yes"
9021 else
9022 echo "configure: failed program was:" >&5
9023 cat conftest.$ac_ext >&5
9024 rm -rf conftest*
9025 eval "ac_cv_func_$ac_func=no"
9027 rm -f conftest*
9030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9031 echo "$ac_t""yes" 1>&6
9032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9033 cat >> confdefs.h <<EOF
9034 #define $ac_tr_func 1
9037 ac_XPG2funcs=yes
9038 else
9039 echo "$ac_t""no" 1>&6
9040 ac_XPG2funcs=no
9042 done
9045 LIBS="$ac_save_LIBS"
9047 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9048 echo "configure:9049: checking for XPG2 wchar_t support" >&5
9049 if test x"$ac_has_iconv_h" = xyes &&
9050 test x"$ac_has_langinfo_h" = xyes &&
9051 test x"$ac_XPG2funcs" = xyes; then
9052 ac_XPG2_wchar_t=yes
9053 else
9054 ac_XPG2_wchar_t=no
9056 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9058 if test x"$ac_isoC99_wchar_t" = xyes &&
9059 test x"$ac_XPG2_wchar_t" = xyes; then
9060 cat >> confdefs.h <<\EOF
9061 #define _GLIBCPP_USE_WCHAR_T 1
9064 enable_wchar_t=yes
9067 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9068 echo "configure:9069: checking for enabled wchar_t specializations" >&5
9069 echo "$ac_t""$enable_wchar_t" 1>&6
9072 if test "$enable_wchar_t" = yes; then
9073 GLIBCPP_TEST_WCHAR_T_TRUE=
9074 GLIBCPP_TEST_WCHAR_T_FALSE='#'
9075 else
9076 GLIBCPP_TEST_WCHAR_T_TRUE='#'
9077 GLIBCPP_TEST_WCHAR_T_FALSE=
9080 os_include_dir="os/mingw32"
9082 *-windiss*)
9083 os_include_dir="os/windiss"
9085 *-qnx6.[12]*)
9086 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9089 # If we're not using GNU ld, then there's no point in even trying these
9090 # tests. Check for that first. We should have already tested for gld
9091 # by now (in libtool), but require it now just to be safe...
9092 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9093 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9096 # The name set by libtool depends on the version of libtool. Shame on us
9097 # for depending on an impl detail, but c'est la vie. Older versions used
9098 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9099 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9100 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9101 # set (hence we're using an older libtool), then set it.
9102 if test x${with_gnu_ld+set} != xset; then
9103 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9104 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9105 with_gnu_ld=no
9106 else
9107 with_gnu_ld=$ac_cv_prog_gnu_ld
9111 # Start by getting the version number. I think the libtool test already
9112 # does some of this, but throws away the result.
9114 ldver=`$LD --version 2>/dev/null | head -1 | \
9115 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9117 glibcpp_gnu_ld_version=`echo $ldver | \
9118 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9120 # Set --gc-sections.
9121 if test "$with_gnu_ld" = "notbroken"; then
9122 # GNU ld it is! Joy and bunny rabbits!
9124 # All these tests are for C++; save the language and the compiler flags.
9125 # Need to do this so that g++ won't try to link in libstdc++
9126 ac_test_CFLAGS="${CFLAGS+set}"
9127 ac_save_CFLAGS="$CFLAGS"
9128 CFLAGS='-x c++ -Wl,--gc-sections'
9130 # Check for -Wl,--gc-sections
9131 # XXX This test is broken at the moment, as symbols required for
9132 # linking are now in libsupc++ (not built yet.....). In addition,
9133 # this test has cored on solaris in the past. In addition,
9134 # --gc-sections doesn't really work at the moment (keeps on discarding
9135 # used sections, first .eh_frame and now some of the glibc sections for
9136 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9137 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9138 echo "configure:9139: checking for ld that supports -Wl,--gc-sections" >&5
9139 if test "$cross_compiling" = yes; then
9140 ac_sectionLDflags=yes
9141 else
9142 cat > conftest.$ac_ext <<EOF
9143 #line 9144 "configure"
9144 #include "confdefs.h"
9146 int main(void)
9148 try { throw 1; }
9149 catch (...) { };
9150 return 0;
9154 if { (eval echo configure:9155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9155 then
9156 ac_sectionLDflags=yes
9157 else
9158 echo "configure: failed program was:" >&5
9159 cat conftest.$ac_ext >&5
9160 rm -fr conftest*
9161 ac_sectionLDflags=no
9163 rm -fr conftest*
9166 if test "$ac_test_CFLAGS" = set; then
9167 CFLAGS="$ac_save_CFLAGS"
9168 else
9169 # this is the suspicious part
9170 CFLAGS=''
9172 if test "$ac_sectionLDflags" = "yes"; then
9173 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9175 echo "$ac_t""$ac_sectionLDflags" 1>&6
9178 # Set linker optimization flags.
9179 if test x"$with_gnu_ld" = x"yes"; then
9180 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9187 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9188 echo "configure:9189: checking for main in -lm" >&5
9189 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9191 echo $ac_n "(cached) $ac_c" 1>&6
9192 else
9193 ac_save_LIBS="$LIBS"
9194 LIBS="-lm $LIBS"
9195 cat > conftest.$ac_ext <<EOF
9196 #line 9197 "configure"
9197 #include "confdefs.h"
9199 int main() {
9200 main()
9201 ; return 0; }
9203 if { (eval echo configure:9204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9204 rm -rf conftest*
9205 eval "ac_cv_lib_$ac_lib_var=yes"
9206 else
9207 echo "configure: failed program was:" >&5
9208 cat conftest.$ac_ext >&5
9209 rm -rf conftest*
9210 eval "ac_cv_lib_$ac_lib_var=no"
9212 rm -f conftest*
9213 LIBS="$ac_save_LIBS"
9216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9217 echo "$ac_t""yes" 1>&6
9218 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9219 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9220 cat >> confdefs.h <<EOF
9221 #define $ac_tr_lib 1
9224 LIBS="-lm $LIBS"
9226 else
9227 echo "$ac_t""no" 1>&6
9230 for ac_func in nan copysignf
9232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9233 echo "configure:9234: checking for $ac_func" >&5
9234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9235 echo $ac_n "(cached) $ac_c" 1>&6
9236 else
9237 cat > conftest.$ac_ext <<EOF
9238 #line 9239 "configure"
9239 #include "confdefs.h"
9240 /* System header to define __stub macros and hopefully few prototypes,
9241 which can conflict with char $ac_func(); below. */
9242 #include <assert.h>
9243 /* Override any gcc2 internal prototype to avoid an error. */
9244 /* We use char because int might match the return type of a gcc2
9245 builtin and then its argument prototype would still apply. */
9246 char $ac_func();
9248 int main() {
9250 /* The GNU C library defines this for functions which it implements
9251 to always fail with ENOSYS. Some functions are actually named
9252 something starting with __ and the normal name is an alias. */
9253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9254 choke me
9255 #else
9256 $ac_func();
9257 #endif
9259 ; return 0; }
9261 if { (eval echo configure:9262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9262 rm -rf conftest*
9263 eval "ac_cv_func_$ac_func=yes"
9264 else
9265 echo "configure: failed program was:" >&5
9266 cat conftest.$ac_ext >&5
9267 rm -rf conftest*
9268 eval "ac_cv_func_$ac_func=no"
9270 rm -f conftest*
9273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9274 echo "$ac_t""yes" 1>&6
9275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9276 cat >> confdefs.h <<EOF
9277 #define $ac_tr_func 1
9280 else
9281 echo "$ac_t""no" 1>&6
9282 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9284 done
9287 for ac_func in __signbit
9289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9290 echo "configure:9291: checking for $ac_func" >&5
9291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9292 echo $ac_n "(cached) $ac_c" 1>&6
9293 else
9294 cat > conftest.$ac_ext <<EOF
9295 #line 9296 "configure"
9296 #include "confdefs.h"
9297 /* System header to define __stub macros and hopefully few prototypes,
9298 which can conflict with char $ac_func(); below. */
9299 #include <assert.h>
9300 /* Override any gcc2 internal prototype to avoid an error. */
9301 /* We use char because int might match the return type of a gcc2
9302 builtin and then its argument prototype would still apply. */
9303 char $ac_func();
9305 int main() {
9307 /* The GNU C library defines this for functions which it implements
9308 to always fail with ENOSYS. Some functions are actually named
9309 something starting with __ and the normal name is an alias. */
9310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9311 choke me
9312 #else
9313 $ac_func();
9314 #endif
9316 ; return 0; }
9318 if { (eval echo configure:9319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9319 rm -rf conftest*
9320 eval "ac_cv_func_$ac_func=yes"
9321 else
9322 echo "configure: failed program was:" >&5
9323 cat conftest.$ac_ext >&5
9324 rm -rf conftest*
9325 eval "ac_cv_func_$ac_func=no"
9327 rm -f conftest*
9330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9331 echo "$ac_t""yes" 1>&6
9332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9333 cat >> confdefs.h <<EOF
9334 #define $ac_tr_func 1
9337 else
9338 echo "$ac_t""no" 1>&6
9339 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9341 done
9343 for ac_func in __signbitf
9345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9346 echo "configure:9347: checking for $ac_func" >&5
9347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9348 echo $ac_n "(cached) $ac_c" 1>&6
9349 else
9350 cat > conftest.$ac_ext <<EOF
9351 #line 9352 "configure"
9352 #include "confdefs.h"
9353 /* System header to define __stub macros and hopefully few prototypes,
9354 which can conflict with char $ac_func(); below. */
9355 #include <assert.h>
9356 /* Override any gcc2 internal prototype to avoid an error. */
9357 /* We use char because int might match the return type of a gcc2
9358 builtin and then its argument prototype would still apply. */
9359 char $ac_func();
9361 int main() {
9363 /* The GNU C library defines this for functions which it implements
9364 to always fail with ENOSYS. Some functions are actually named
9365 something starting with __ and the normal name is an alias. */
9366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9367 choke me
9368 #else
9369 $ac_func();
9370 #endif
9372 ; return 0; }
9374 if { (eval echo configure:9375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9375 rm -rf conftest*
9376 eval "ac_cv_func_$ac_func=yes"
9377 else
9378 echo "configure: failed program was:" >&5
9379 cat conftest.$ac_ext >&5
9380 rm -rf conftest*
9381 eval "ac_cv_func_$ac_func=no"
9383 rm -f conftest*
9386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9387 echo "$ac_t""yes" 1>&6
9388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9389 cat >> confdefs.h <<EOF
9390 #define $ac_tr_func 1
9393 else
9394 echo "$ac_t""no" 1>&6
9395 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9397 done
9400 if test x$ac_cv_func_copysignl = x"yes"; then
9401 for ac_func in __signbitl
9403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9404 echo "configure:9405: checking for $ac_func" >&5
9405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9406 echo $ac_n "(cached) $ac_c" 1>&6
9407 else
9408 cat > conftest.$ac_ext <<EOF
9409 #line 9410 "configure"
9410 #include "confdefs.h"
9411 /* System header to define __stub macros and hopefully few prototypes,
9412 which can conflict with char $ac_func(); below. */
9413 #include <assert.h>
9414 /* Override any gcc2 internal prototype to avoid an error. */
9415 /* We use char because int might match the return type of a gcc2
9416 builtin and then its argument prototype would still apply. */
9417 char $ac_func();
9419 int main() {
9421 /* The GNU C library defines this for functions which it implements
9422 to always fail with ENOSYS. Some functions are actually named
9423 something starting with __ and the normal name is an alias. */
9424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9425 choke me
9426 #else
9427 $ac_func();
9428 #endif
9430 ; return 0; }
9432 if { (eval echo configure:9433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9433 rm -rf conftest*
9434 eval "ac_cv_func_$ac_func=yes"
9435 else
9436 echo "configure: failed program was:" >&5
9437 cat conftest.$ac_ext >&5
9438 rm -rf conftest*
9439 eval "ac_cv_func_$ac_func=no"
9441 rm -f conftest*
9444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9445 echo "$ac_t""yes" 1>&6
9446 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9447 cat >> confdefs.h <<EOF
9448 #define $ac_tr_func 1
9451 else
9452 echo "$ac_t""no" 1>&6
9453 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9455 done
9459 if test -n "$LIBMATHOBJS"; then
9460 need_libmath=yes
9465 if test "$need_libmath" = yes; then
9466 GLIBCPP_BUILD_LIBMATH_TRUE=
9467 GLIBCPP_BUILD_LIBMATH_FALSE='#'
9468 else
9469 GLIBCPP_BUILD_LIBMATH_TRUE='#'
9470 GLIBCPP_BUILD_LIBMATH_FALSE=
9474 enable_wchar_t=no
9476 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9477 echo "configure:9478: checking for mbstate_t" >&5
9478 cat > conftest.$ac_ext <<EOF
9479 #line 9480 "configure"
9480 #include "confdefs.h"
9481 #include <wchar.h>
9482 int main() {
9483 mbstate_t teststate;
9484 ; return 0; }
9486 if { (eval echo configure:9487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9487 rm -rf conftest*
9488 have_mbstate_t=yes
9489 else
9490 echo "configure: failed program was:" >&5
9491 cat conftest.$ac_ext >&5
9492 rm -rf conftest*
9493 have_mbstate_t=no
9495 rm -f conftest*
9496 echo "$ac_t""$have_mbstate_t" 1>&6
9497 if test x"$have_mbstate_t" = xyes; then
9498 cat >> confdefs.h <<\EOF
9499 #define HAVE_MBSTATE_T 1
9504 for ac_hdr in wchar.h
9506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9508 echo "configure:9509: checking for $ac_hdr" >&5
9509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9510 echo $ac_n "(cached) $ac_c" 1>&6
9511 else
9512 cat > conftest.$ac_ext <<EOF
9513 #line 9514 "configure"
9514 #include "confdefs.h"
9515 #include <$ac_hdr>
9517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9518 { (eval echo configure:9519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9520 if test -z "$ac_err"; then
9521 rm -rf conftest*
9522 eval "ac_cv_header_$ac_safe=yes"
9523 else
9524 echo "$ac_err" >&5
9525 echo "configure: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
9527 rm -rf conftest*
9528 eval "ac_cv_header_$ac_safe=no"
9530 rm -f conftest*
9532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9533 echo "$ac_t""yes" 1>&6
9534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9535 cat >> confdefs.h <<EOF
9536 #define $ac_tr_hdr 1
9538 ac_has_wchar_h=yes
9539 else
9540 echo "$ac_t""no" 1>&6
9541 ac_has_wchar_h=no
9543 done
9545 for ac_hdr in wctype.h
9547 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9548 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9549 echo "configure:9550: checking for $ac_hdr" >&5
9550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9551 echo $ac_n "(cached) $ac_c" 1>&6
9552 else
9553 cat > conftest.$ac_ext <<EOF
9554 #line 9555 "configure"
9555 #include "confdefs.h"
9556 #include <$ac_hdr>
9558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9559 { (eval echo configure:9560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9561 if test -z "$ac_err"; then
9562 rm -rf conftest*
9563 eval "ac_cv_header_$ac_safe=yes"
9564 else
9565 echo "$ac_err" >&5
9566 echo "configure: failed program was:" >&5
9567 cat conftest.$ac_ext >&5
9568 rm -rf conftest*
9569 eval "ac_cv_header_$ac_safe=no"
9571 rm -f conftest*
9573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9574 echo "$ac_t""yes" 1>&6
9575 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9576 cat >> confdefs.h <<EOF
9577 #define $ac_tr_hdr 1
9579 ac_has_wctype_h=yes
9580 else
9581 echo "$ac_t""no" 1>&6
9582 ac_has_wctype_h=no
9584 done
9587 if test x"$ac_has_wchar_h" = xyes &&
9588 test x"$ac_has_wctype_h" = xyes &&
9589 test x"$enable_c_mbchar" != xno; then
9591 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9592 echo "configure:9593: checking for WCHAR_MIN and WCHAR_MAX" >&5
9593 cat > conftest.$ac_ext <<EOF
9594 #line 9595 "configure"
9595 #include "confdefs.h"
9596 #include <wchar.h>
9597 int main() {
9598 int i = WCHAR_MIN; int j = WCHAR_MAX;
9599 ; return 0; }
9601 if { (eval echo configure:9602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9602 rm -rf conftest*
9603 has_wchar_minmax=yes
9604 else
9605 echo "configure: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9607 rm -rf conftest*
9608 has_wchar_minmax=no
9610 rm -f conftest*
9611 echo "$ac_t""$has_wchar_minmax" 1>&6
9613 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9614 echo "configure:9615: checking for WEOF" >&5
9615 cat > conftest.$ac_ext <<EOF
9616 #line 9617 "configure"
9617 #include "confdefs.h"
9619 #include <wchar.h>
9620 #include <stddef.h>
9621 int main() {
9622 wint_t i = WEOF;
9623 ; return 0; }
9625 if { (eval echo configure:9626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9626 rm -rf conftest*
9627 has_weof=yes
9628 else
9629 echo "configure: failed program was:" >&5
9630 cat conftest.$ac_ext >&5
9631 rm -rf conftest*
9632 has_weof=no
9634 rm -f conftest*
9635 echo "$ac_t""$has_weof" 1>&6
9637 ac_wfuncs=yes
9638 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9641 echo "configure:9642: checking for $ac_func" >&5
9642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9643 echo $ac_n "(cached) $ac_c" 1>&6
9644 else
9645 cat > conftest.$ac_ext <<EOF
9646 #line 9647 "configure"
9647 #include "confdefs.h"
9648 /* System header to define __stub macros and hopefully few prototypes,
9649 which can conflict with char $ac_func(); below. */
9650 #include <assert.h>
9651 /* Override any gcc2 internal prototype to avoid an error. */
9652 /* We use char because int might match the return type of a gcc2
9653 builtin and then its argument prototype would still apply. */
9654 char $ac_func();
9656 int main() {
9658 /* The GNU C library defines this for functions which it implements
9659 to always fail with ENOSYS. Some functions are actually named
9660 something starting with __ and the normal name is an alias. */
9661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9662 choke me
9663 #else
9664 $ac_func();
9665 #endif
9667 ; return 0; }
9669 if { (eval echo configure:9670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9670 rm -rf conftest*
9671 eval "ac_cv_func_$ac_func=yes"
9672 else
9673 echo "configure: failed program was:" >&5
9674 cat conftest.$ac_ext >&5
9675 rm -rf conftest*
9676 eval "ac_cv_func_$ac_func=no"
9678 rm -f conftest*
9681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9682 echo "$ac_t""yes" 1>&6
9683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9684 cat >> confdefs.h <<EOF
9685 #define $ac_tr_func 1
9688 else
9689 echo "$ac_t""no" 1>&6
9691 ac_wfuncs=no
9693 done
9696 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9697 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9698 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9699 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9700 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9701 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9704 echo "configure:9705: checking for $ac_func" >&5
9705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9706 echo $ac_n "(cached) $ac_c" 1>&6
9707 else
9708 cat > conftest.$ac_ext <<EOF
9709 #line 9710 "configure"
9710 #include "confdefs.h"
9711 /* System header to define __stub macros and hopefully few prototypes,
9712 which can conflict with char $ac_func(); below. */
9713 #include <assert.h>
9714 /* Override any gcc2 internal prototype to avoid an error. */
9715 /* We use char because int might match the return type of a gcc2
9716 builtin and then its argument prototype would still apply. */
9717 char $ac_func();
9719 int main() {
9721 /* The GNU C library defines this for functions which it implements
9722 to always fail with ENOSYS. Some functions are actually named
9723 something starting with __ and the normal name is an alias. */
9724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9725 choke me
9726 #else
9727 $ac_func();
9728 #endif
9730 ; return 0; }
9732 if { (eval echo configure:9733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9733 rm -rf conftest*
9734 eval "ac_cv_func_$ac_func=yes"
9735 else
9736 echo "configure: failed program was:" >&5
9737 cat conftest.$ac_ext >&5
9738 rm -rf conftest*
9739 eval "ac_cv_func_$ac_func=no"
9741 rm -f conftest*
9744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9745 echo "$ac_t""yes" 1>&6
9746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9747 cat >> confdefs.h <<EOF
9748 #define $ac_tr_func 1
9751 else
9752 echo "$ac_t""no" 1>&6
9754 ac_wfuncs=no
9756 done
9759 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9760 echo "configure:9761: checking for ISO C99 wchar_t support" >&5
9761 if test x"$has_weof" = xyes &&
9762 test x"$has_wchar_minmax" = xyes &&
9763 test x"$ac_wfuncs" = xyes; then
9764 ac_isoC99_wchar_t=yes
9765 else
9766 ac_isoC99_wchar_t=no
9768 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9770 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9771 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9772 echo "configure:9773: checking for iconv.h" >&5
9773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9774 echo $ac_n "(cached) $ac_c" 1>&6
9775 else
9776 cat > conftest.$ac_ext <<EOF
9777 #line 9778 "configure"
9778 #include "confdefs.h"
9779 #include <iconv.h>
9781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9782 { (eval echo configure:9783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9784 if test -z "$ac_err"; then
9785 rm -rf conftest*
9786 eval "ac_cv_header_$ac_safe=yes"
9787 else
9788 echo "$ac_err" >&5
9789 echo "configure: failed program was:" >&5
9790 cat conftest.$ac_ext >&5
9791 rm -rf conftest*
9792 eval "ac_cv_header_$ac_safe=no"
9794 rm -f conftest*
9796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9797 echo "$ac_t""yes" 1>&6
9798 ac_has_iconv_h=yes
9799 else
9800 echo "$ac_t""no" 1>&6
9801 ac_has_iconv_h=no
9804 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9805 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9806 echo "configure:9807: checking for langinfo.h" >&5
9807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9808 echo $ac_n "(cached) $ac_c" 1>&6
9809 else
9810 cat > conftest.$ac_ext <<EOF
9811 #line 9812 "configure"
9812 #include "confdefs.h"
9813 #include <langinfo.h>
9815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9816 { (eval echo configure:9817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9818 if test -z "$ac_err"; then
9819 rm -rf conftest*
9820 eval "ac_cv_header_$ac_safe=yes"
9821 else
9822 echo "$ac_err" >&5
9823 echo "configure: failed program was:" >&5
9824 cat conftest.$ac_ext >&5
9825 rm -rf conftest*
9826 eval "ac_cv_header_$ac_safe=no"
9828 rm -f conftest*
9830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9831 echo "$ac_t""yes" 1>&6
9832 ac_has_langinfo_h=yes
9833 else
9834 echo "$ac_t""no" 1>&6
9835 ac_has_langinfo_h=no
9839 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9840 echo "configure:9841: checking for iconv in -liconv" >&5
9841 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9842 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9843 echo $ac_n "(cached) $ac_c" 1>&6
9844 else
9845 ac_save_LIBS="$LIBS"
9846 LIBS="-liconv $LIBS"
9847 cat > conftest.$ac_ext <<EOF
9848 #line 9849 "configure"
9849 #include "confdefs.h"
9850 /* Override any gcc2 internal prototype to avoid an error. */
9851 /* We use char because int might match the return type of a gcc2
9852 builtin and then its argument prototype would still apply. */
9853 char iconv();
9855 int main() {
9856 iconv()
9857 ; return 0; }
9859 if { (eval echo configure:9860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9860 rm -rf conftest*
9861 eval "ac_cv_lib_$ac_lib_var=yes"
9862 else
9863 echo "configure: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9865 rm -rf conftest*
9866 eval "ac_cv_lib_$ac_lib_var=no"
9868 rm -f conftest*
9869 LIBS="$ac_save_LIBS"
9872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9873 echo "$ac_t""yes" 1>&6
9874 libiconv="-liconv"
9875 else
9876 echo "$ac_t""no" 1>&6
9879 ac_save_LIBS="$LIBS"
9880 LIBS="$LIBS $libiconv"
9882 for ac_func in iconv_open iconv_close iconv nl_langinfo
9884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9885 echo "configure:9886: checking for $ac_func" >&5
9886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9887 echo $ac_n "(cached) $ac_c" 1>&6
9888 else
9889 cat > conftest.$ac_ext <<EOF
9890 #line 9891 "configure"
9891 #include "confdefs.h"
9892 /* System header to define __stub macros and hopefully few prototypes,
9893 which can conflict with char $ac_func(); below. */
9894 #include <assert.h>
9895 /* Override any gcc2 internal prototype to avoid an error. */
9896 /* We use char because int might match the return type of a gcc2
9897 builtin and then its argument prototype would still apply. */
9898 char $ac_func();
9900 int main() {
9902 /* The GNU C library defines this for functions which it implements
9903 to always fail with ENOSYS. Some functions are actually named
9904 something starting with __ and the normal name is an alias. */
9905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9906 choke me
9907 #else
9908 $ac_func();
9909 #endif
9911 ; return 0; }
9913 if { (eval echo configure:9914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9914 rm -rf conftest*
9915 eval "ac_cv_func_$ac_func=yes"
9916 else
9917 echo "configure: failed program was:" >&5
9918 cat conftest.$ac_ext >&5
9919 rm -rf conftest*
9920 eval "ac_cv_func_$ac_func=no"
9922 rm -f conftest*
9925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9926 echo "$ac_t""yes" 1>&6
9927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9928 cat >> confdefs.h <<EOF
9929 #define $ac_tr_func 1
9932 ac_XPG2funcs=yes
9933 else
9934 echo "$ac_t""no" 1>&6
9935 ac_XPG2funcs=no
9937 done
9940 LIBS="$ac_save_LIBS"
9942 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9943 echo "configure:9944: checking for XPG2 wchar_t support" >&5
9944 if test x"$ac_has_iconv_h" = xyes &&
9945 test x"$ac_has_langinfo_h" = xyes &&
9946 test x"$ac_XPG2funcs" = xyes; then
9947 ac_XPG2_wchar_t=yes
9948 else
9949 ac_XPG2_wchar_t=no
9951 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9953 if test x"$ac_isoC99_wchar_t" = xyes &&
9954 test x"$ac_XPG2_wchar_t" = xyes; then
9955 cat >> confdefs.h <<\EOF
9956 #define _GLIBCPP_USE_WCHAR_T 1
9959 enable_wchar_t=yes
9962 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9963 echo "configure:9964: checking for enabled wchar_t specializations" >&5
9964 echo "$ac_t""$enable_wchar_t" 1>&6
9967 if test "$enable_wchar_t" = yes; then
9968 GLIBCPP_TEST_WCHAR_T_TRUE=
9969 GLIBCPP_TEST_WCHAR_T_FALSE='#'
9970 else
9971 GLIBCPP_TEST_WCHAR_T_TRUE='#'
9972 GLIBCPP_TEST_WCHAR_T_FALSE=
9975 os_include_dir="os/qnx/qnx6.1"
9976 cat >> confdefs.h <<\EOF
9977 #define HAVE_COSF 1
9980 cat >> confdefs.h <<\EOF
9981 #define HAVE_COSL 1
9984 cat >> confdefs.h <<\EOF
9985 #define HAVE_COSHF 1
9988 cat >> confdefs.h <<\EOF
9989 #define HAVE_COSHL 1
9992 cat >> confdefs.h <<\EOF
9993 #define HAVE_LOGF 1
9996 cat >> confdefs.h <<\EOF
9997 #define HAVE_LOGL 1
10000 cat >> confdefs.h <<\EOF
10001 #define HAVE_LOG10F 1
10004 cat >> confdefs.h <<\EOF
10005 #define HAVE_LOG10L 1
10008 cat >> confdefs.h <<\EOF
10009 #define HAVE_SINF 1
10012 cat >> confdefs.h <<\EOF
10013 #define HAVE_SINL 1
10016 cat >> confdefs.h <<\EOF
10017 #define HAVE_SINHF 1
10020 cat >> confdefs.h <<\EOF
10021 #define HAVE_SINHL 1
10026 os_include_dir="os/newlib"
10027 cat >> confdefs.h <<\EOF
10028 #define HAVE_HYPOT 1
10032 esac
10034 case "$target" in
10035 *-mingw32*)
10037 *-windiss*)
10038 cat >> confdefs.h <<\EOF
10039 #define HAVE_ACOSF 1
10042 cat >> confdefs.h <<\EOF
10043 #define HAVE_ASINF 1
10046 cat >> confdefs.h <<\EOF
10047 #define HAVE_ATAN2F 1
10050 cat >> confdefs.h <<\EOF
10051 #define HAVE_ATANF 1
10054 cat >> confdefs.h <<\EOF
10055 #define HAVE_CEILF 1
10058 cat >> confdefs.h <<\EOF
10059 #define HAVE_COPYSIGN 1
10062 cat >> confdefs.h <<\EOF
10063 #define HAVE_COPYSIGNF 1
10066 cat >> confdefs.h <<\EOF
10067 #define HAVE_COSF 1
10070 cat >> confdefs.h <<\EOF
10071 #define HAVE_COSHF 1
10074 cat >> confdefs.h <<\EOF
10075 #define HAVE_EXPF 1
10078 cat >> confdefs.h <<\EOF
10079 #define HAVE_FABSF 1
10082 cat >> confdefs.h <<\EOF
10083 #define HAVE_FLOORF 1
10086 cat >> confdefs.h <<\EOF
10087 #define HAVE_FMODF 1
10090 cat >> confdefs.h <<\EOF
10091 #define HAVE_FREXPF 1
10094 cat >> confdefs.h <<\EOF
10095 #define HAVE_LDEXPF 1
10098 cat >> confdefs.h <<\EOF
10099 #define HAVE_LOG10F 1
10102 cat >> confdefs.h <<\EOF
10103 #define HAVE_LOGF 1
10106 cat >> confdefs.h <<\EOF
10107 #define HAVE_MODFF 1
10110 cat >> confdefs.h <<\EOF
10111 #define HAVE_POWF 1
10114 cat >> confdefs.h <<\EOF
10115 #define HAVE_SINF 1
10118 cat >> confdefs.h <<\EOF
10119 #define HAVE_SINHF 1
10122 cat >> confdefs.h <<\EOF
10123 #define HAVE_SQRTF 1
10126 cat >> confdefs.h <<\EOF
10127 #define HAVE_TANF 1
10130 cat >> confdefs.h <<\EOF
10131 #define HAVE_TANHF 1
10135 *-freebsd*)
10136 # Must replicate generic section since we don't have strtof or strtold.
10137 cat >> confdefs.h <<\EOF
10138 #define HAVE_MMAP 1
10141 cat >> confdefs.h <<\EOF
10142 #define HAVE_ACOSF 1
10145 cat >> confdefs.h <<\EOF
10146 #define HAVE_ASINF 1
10149 cat >> confdefs.h <<\EOF
10150 #define HAVE_ATAN2F 1
10153 cat >> confdefs.h <<\EOF
10154 #define HAVE_ATANF 1
10157 cat >> confdefs.h <<\EOF
10158 #define HAVE_CEILF 1
10161 cat >> confdefs.h <<\EOF
10162 #define HAVE_COPYSIGN 1
10165 cat >> confdefs.h <<\EOF
10166 #define HAVE_COPYSIGNF 1
10169 cat >> confdefs.h <<\EOF
10170 #define HAVE_COSF 1
10173 cat >> confdefs.h <<\EOF
10174 #define HAVE_COSHF 1
10177 cat >> confdefs.h <<\EOF
10178 #define HAVE_EXPF 1
10181 cat >> confdefs.h <<\EOF
10182 #define HAVE_FABSF 1
10185 cat >> confdefs.h <<\EOF
10186 #define HAVE_FLOORF 1
10189 cat >> confdefs.h <<\EOF
10190 #define HAVE_FMODF 1
10193 cat >> confdefs.h <<\EOF
10194 #define HAVE_FREXPF 1
10197 cat >> confdefs.h <<\EOF
10198 #define HAVE_LDEXPF 1
10201 cat >> confdefs.h <<\EOF
10202 #define HAVE_LOG10F 1
10205 cat >> confdefs.h <<\EOF
10206 #define HAVE_LOGF 1
10209 cat >> confdefs.h <<\EOF
10210 #define HAVE_MODFF 1
10213 cat >> confdefs.h <<\EOF
10214 #define HAVE_POWF 1
10217 cat >> confdefs.h <<\EOF
10218 #define HAVE_SINF 1
10221 cat >> confdefs.h <<\EOF
10222 #define HAVE_SINHF 1
10225 cat >> confdefs.h <<\EOF
10226 #define HAVE_SQRTF 1
10229 cat >> confdefs.h <<\EOF
10230 #define HAVE_TANF 1
10233 cat >> confdefs.h <<\EOF
10234 #define HAVE_TANHF 1
10239 # GLIBCPP_CHECK_STDLIB_SUPPORT
10240 cat >> confdefs.h <<\EOF
10241 #define HAVE_STRTOF 1
10244 cat >> confdefs.h <<\EOF
10245 #define HAVE_STRTOLD 1
10248 # AC_FUNC_MMAP
10249 cat >> confdefs.h <<\EOF
10250 #define HAVE_MMAP 1
10254 cat >> confdefs.h <<\EOF
10255 #define HAVE_ACOSF 1
10258 cat >> confdefs.h <<\EOF
10259 #define HAVE_ASINF 1
10262 cat >> confdefs.h <<\EOF
10263 #define HAVE_ATAN2F 1
10266 cat >> confdefs.h <<\EOF
10267 #define HAVE_ATANF 1
10270 cat >> confdefs.h <<\EOF
10271 #define HAVE_CEILF 1
10274 cat >> confdefs.h <<\EOF
10275 #define HAVE_COPYSIGN 1
10278 cat >> confdefs.h <<\EOF
10279 #define HAVE_COPYSIGNF 1
10282 cat >> confdefs.h <<\EOF
10283 #define HAVE_COSF 1
10286 cat >> confdefs.h <<\EOF
10287 #define HAVE_COSHF 1
10290 cat >> confdefs.h <<\EOF
10291 #define HAVE_EXPF 1
10294 cat >> confdefs.h <<\EOF
10295 #define HAVE_FABSF 1
10298 cat >> confdefs.h <<\EOF
10299 #define HAVE_FLOORF 1
10302 cat >> confdefs.h <<\EOF
10303 #define HAVE_FMODF 1
10306 cat >> confdefs.h <<\EOF
10307 #define HAVE_FREXPF 1
10310 cat >> confdefs.h <<\EOF
10311 #define HAVE_LDEXPF 1
10314 cat >> confdefs.h <<\EOF
10315 #define HAVE_LOG10F 1
10318 cat >> confdefs.h <<\EOF
10319 #define HAVE_LOGF 1
10322 cat >> confdefs.h <<\EOF
10323 #define HAVE_MODFF 1
10326 cat >> confdefs.h <<\EOF
10327 #define HAVE_POWF 1
10330 cat >> confdefs.h <<\EOF
10331 #define HAVE_SINF 1
10334 cat >> confdefs.h <<\EOF
10335 #define HAVE_SINHF 1
10338 cat >> confdefs.h <<\EOF
10339 #define HAVE_SQRTF 1
10342 cat >> confdefs.h <<\EOF
10343 #define HAVE_TANF 1
10346 cat >> confdefs.h <<\EOF
10347 #define HAVE_TANHF 1
10351 esac
10353 # At some point, we should differentiate between architectures
10354 # like x86, which have long double versions, and alpha/powerpc/etc.,
10355 # which don't. For the time being, punt.
10356 if test x"long_double_math_on_this_cpu" = x"yes"; then
10357 cat >> confdefs.h <<\EOF
10358 #define HAVE_ACOSL 1
10361 cat >> confdefs.h <<\EOF
10362 #define HAVE_ASINL 1
10365 cat >> confdefs.h <<\EOF
10366 #define HAVE_ATAN2L 1
10369 cat >> confdefs.h <<\EOF
10370 #define HAVE_ATANL 1
10373 cat >> confdefs.h <<\EOF
10374 #define HAVE_CEILL 1
10377 cat >> confdefs.h <<\EOF
10378 #define HAVE_COPYSIGNL 1
10381 cat >> confdefs.h <<\EOF
10382 #define HAVE_COSL 1
10385 cat >> confdefs.h <<\EOF
10386 #define HAVE_COSHL 1
10389 cat >> confdefs.h <<\EOF
10390 #define HAVE_EXPL 1
10393 cat >> confdefs.h <<\EOF
10394 #define HAVE_FABSL 1
10397 cat >> confdefs.h <<\EOF
10398 #define HAVE_FLOORL 1
10401 cat >> confdefs.h <<\EOF
10402 #define HAVE_FMODL 1
10405 cat >> confdefs.h <<\EOF
10406 #define HAVE_FREXPL 1
10409 cat >> confdefs.h <<\EOF
10410 #define HAVE_LDEXPL 1
10413 cat >> confdefs.h <<\EOF
10414 #define HAVE_LOG10L 1
10417 cat >> confdefs.h <<\EOF
10418 #define HAVE_LOGL 1
10421 cat >> confdefs.h <<\EOF
10422 #define HAVE_MODFL 1
10425 cat >> confdefs.h <<\EOF
10426 #define HAVE_POWL 1
10429 cat >> confdefs.h <<\EOF
10430 #define HAVE_SINCOSL 1
10433 cat >> confdefs.h <<\EOF
10434 #define HAVE_SINL 1
10437 cat >> confdefs.h <<\EOF
10438 #define HAVE_SINHL 1
10441 cat >> confdefs.h <<\EOF
10442 #define HAVE_SQRTL 1
10445 cat >> confdefs.h <<\EOF
10446 #define HAVE_TANL 1
10449 cat >> confdefs.h <<\EOF
10450 #define HAVE_TANHL 1
10455 else
10457 # We are being configured natively. We can do more elaborate tests
10458 # that include AC_TRY_COMPILE now, as the linker is assumed to be
10459 # working.
10460 GLIBCPP_IS_CROSS_COMPILING=0
10461 CANADIAN=no
10463 # Check for available headers.
10464 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10465 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
10466 sys/types.h
10468 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10469 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10470 echo "configure:10471: checking for $ac_hdr" >&5
10471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10472 echo $ac_n "(cached) $ac_c" 1>&6
10473 else
10474 cat > conftest.$ac_ext <<EOF
10475 #line 10476 "configure"
10476 #include "confdefs.h"
10477 #include <$ac_hdr>
10479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10480 { (eval echo configure:10481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10482 if test -z "$ac_err"; then
10483 rm -rf conftest*
10484 eval "ac_cv_header_$ac_safe=yes"
10485 else
10486 echo "$ac_err" >&5
10487 echo "configure: failed program was:" >&5
10488 cat conftest.$ac_ext >&5
10489 rm -rf conftest*
10490 eval "ac_cv_header_$ac_safe=no"
10492 rm -f conftest*
10494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10495 echo "$ac_t""yes" 1>&6
10496 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10497 cat >> confdefs.h <<EOF
10498 #define $ac_tr_hdr 1
10501 else
10502 echo "$ac_t""no" 1>&6
10504 done
10508 # All these tests are for C++; save the language and the compiler flags.
10509 # The CXXFLAGS thing is suspicious, but based on similar bits previously
10510 # found in GLIBCPP_CONFIGURE.
10512 ac_ext=C
10513 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10514 ac_cpp='$CXXCPP $CPPFLAGS'
10515 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10516 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10517 cross_compiling=$ac_cv_prog_cxx_cross
10519 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10520 ac_save_CXXFLAGS="$CXXFLAGS"
10522 # Check for maintainer-mode bits.
10523 if test x"$USE_MAINTAINER_MODE" = xno; then
10524 WERROR=''
10525 else
10526 WERROR='-Werror'
10529 # Check for -ffunction-sections -fdata-sections
10530 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10531 echo "configure:10532: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10532 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10533 cat > conftest.$ac_ext <<EOF
10534 #line 10535 "configure"
10535 #include "confdefs.h"
10537 int main() {
10538 int foo;
10540 ; return 0; }
10542 if { (eval echo configure:10543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10543 rm -rf conftest*
10544 ac_fdsections=yes
10545 else
10546 echo "configure: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10548 rm -rf conftest*
10549 ac_fdsections=no
10551 rm -f conftest*
10552 if test "$ac_test_CXXFLAGS" = set; then
10553 CXXFLAGS="$ac_save_CXXFLAGS"
10554 else
10555 # this is the suspicious part
10556 CXXFLAGS=''
10558 if test x"$ac_fdsections" = x"yes"; then
10559 SECTION_FLAGS='-ffunction-sections -fdata-sections'
10561 echo "$ac_t""$ac_fdsections" 1>&6
10563 ac_ext=c
10564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10565 ac_cpp='$CPP $CPPFLAGS'
10566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10568 cross_compiling=$ac_cv_prog_cc_cross
10574 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10575 ac_save_CXXFLAGS="$CXXFLAGS"
10576 CXXFLAGS='-Werror -Winvalid-pch -Wno-deprecated -x c++-header'
10578 echo $ac_n "checking for compiler that seems to compile .gch files""... $ac_c" 1>&6
10579 echo "configure:10580: checking for compiler that seems to compile .gch files" >&5
10580 if test x${glibcpp_pch_comp+set} != xset; then
10581 if eval "test \"`echo '$''{'glibcpp_pch_comp'+set}'`\" = set"; then
10582 echo $ac_n "(cached) $ac_c" 1>&6
10583 else
10586 ac_ext=C
10587 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10588 ac_cpp='$CXXCPP $CPPFLAGS'
10589 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10590 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10591 cross_compiling=$ac_cv_prog_cxx_cross
10593 cat > conftest.$ac_ext <<EOF
10594 #line 10595 "configure"
10595 #include "confdefs.h"
10596 #include <math.h>
10598 int main() {
10599 (0);
10600 ; return 0; }
10602 if { (eval echo configure:10603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10603 rm -rf conftest*
10604 glibcpp_pch_comp=yes
10605 else
10606 echo "configure: failed program was:" >&5
10607 cat conftest.$ac_ext >&5
10608 rm -rf conftest*
10609 glibcpp_pch_comp=no
10611 rm -f conftest*
10612 ac_ext=c
10613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10614 ac_cpp='$CPP $CPPFLAGS'
10615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10617 cross_compiling=$ac_cv_prog_cc_cross
10623 echo "$ac_t""$glibcpp_pch_comp" 1>&6
10625 CXXFLAGS="$ac_save_CXXFLAGS"
10628 if test "$glibcpp_pch_comp" = yes; then
10629 GLIBCPP_BUILD_PCH_TRUE=
10630 GLIBCPP_BUILD_PCH_FALSE='#'
10631 else
10632 GLIBCPP_BUILD_PCH_TRUE='#'
10633 GLIBCPP_BUILD_PCH_FALSE=
10637 # If we're not using GNU ld, then there's no point in even trying these
10638 # tests. Check for that first. We should have already tested for gld
10639 # by now (in libtool), but require it now just to be safe...
10640 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10641 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10644 # The name set by libtool depends on the version of libtool. Shame on us
10645 # for depending on an impl detail, but c'est la vie. Older versions used
10646 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10647 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10648 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
10649 # set (hence we're using an older libtool), then set it.
10650 if test x${with_gnu_ld+set} != xset; then
10651 if test x${ac_cv_prog_gnu_ld+set} != xset; then
10652 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
10653 with_gnu_ld=no
10654 else
10655 with_gnu_ld=$ac_cv_prog_gnu_ld
10659 # Start by getting the version number. I think the libtool test already
10660 # does some of this, but throws away the result.
10662 ldver=`$LD --version 2>/dev/null | head -1 | \
10663 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10665 glibcpp_gnu_ld_version=`echo $ldver | \
10666 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10668 # Set --gc-sections.
10669 if test "$with_gnu_ld" = "notbroken"; then
10670 # GNU ld it is! Joy and bunny rabbits!
10672 # All these tests are for C++; save the language and the compiler flags.
10673 # Need to do this so that g++ won't try to link in libstdc++
10674 ac_test_CFLAGS="${CFLAGS+set}"
10675 ac_save_CFLAGS="$CFLAGS"
10676 CFLAGS='-x c++ -Wl,--gc-sections'
10678 # Check for -Wl,--gc-sections
10679 # XXX This test is broken at the moment, as symbols required for
10680 # linking are now in libsupc++ (not built yet.....). In addition,
10681 # this test has cored on solaris in the past. In addition,
10682 # --gc-sections doesn't really work at the moment (keeps on discarding
10683 # used sections, first .eh_frame and now some of the glibc sections for
10684 # iconv). Bzzzzt. Thanks for playing, maybe next time.
10685 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10686 echo "configure:10687: checking for ld that supports -Wl,--gc-sections" >&5
10687 if test "$cross_compiling" = yes; then
10688 ac_sectionLDflags=yes
10689 else
10690 cat > conftest.$ac_ext <<EOF
10691 #line 10692 "configure"
10692 #include "confdefs.h"
10694 int main(void)
10696 try { throw 1; }
10697 catch (...) { };
10698 return 0;
10702 if { (eval echo configure:10703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10703 then
10704 ac_sectionLDflags=yes
10705 else
10706 echo "configure: failed program was:" >&5
10707 cat conftest.$ac_ext >&5
10708 rm -fr conftest*
10709 ac_sectionLDflags=no
10711 rm -fr conftest*
10714 if test "$ac_test_CFLAGS" = set; then
10715 CFLAGS="$ac_save_CFLAGS"
10716 else
10717 # this is the suspicious part
10718 CFLAGS=''
10720 if test "$ac_sectionLDflags" = "yes"; then
10721 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10723 echo "$ac_t""$ac_sectionLDflags" 1>&6
10726 # Set linker optimization flags.
10727 if test x"$with_gnu_ld" = x"yes"; then
10728 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10735 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10736 ac_save_CXXFLAGS="$CXXFLAGS"
10737 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10739 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10740 echo "configure:10741: checking for sin in -lm" >&5
10741 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10743 echo $ac_n "(cached) $ac_c" 1>&6
10744 else
10745 ac_save_LIBS="$LIBS"
10746 LIBS="-lm $LIBS"
10747 cat > conftest.$ac_ext <<EOF
10748 #line 10749 "configure"
10749 #include "confdefs.h"
10750 /* Override any gcc2 internal prototype to avoid an error. */
10751 /* We use char because int might match the return type of a gcc2
10752 builtin and then its argument prototype would still apply. */
10753 char sin();
10755 int main() {
10756 sin()
10757 ; return 0; }
10759 if { (eval echo configure:10760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10760 rm -rf conftest*
10761 eval "ac_cv_lib_$ac_lib_var=yes"
10762 else
10763 echo "configure: failed program was:" >&5
10764 cat conftest.$ac_ext >&5
10765 rm -rf conftest*
10766 eval "ac_cv_lib_$ac_lib_var=no"
10768 rm -f conftest*
10769 LIBS="$ac_save_LIBS"
10772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10773 echo "$ac_t""yes" 1>&6
10774 libm="-lm"
10775 else
10776 echo "$ac_t""no" 1>&6
10779 ac_save_LIBS="$LIBS"
10780 LIBS="$LIBS $libm"
10784 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10785 echo "configure:10786: checking for isinf declaration" >&5
10786 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10787 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10788 echo $ac_n "(cached) $ac_c" 1>&6
10789 else
10792 ac_ext=C
10793 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10794 ac_cpp='$CXXCPP $CPPFLAGS'
10795 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10796 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10797 cross_compiling=$ac_cv_prog_cxx_cross
10799 cat > conftest.$ac_ext <<EOF
10800 #line 10801 "configure"
10801 #include "confdefs.h"
10802 #include <math.h>
10803 #ifdef HAVE_IEEEFP_H
10804 #include <ieeefp.h>
10805 #endif
10807 int main() {
10808 isinf(0);
10809 ; return 0; }
10811 if { (eval echo configure:10812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10812 rm -rf conftest*
10813 glibcpp_cv_func_isinf_use=yes
10814 else
10815 echo "configure: failed program was:" >&5
10816 cat conftest.$ac_ext >&5
10817 rm -rf conftest*
10818 glibcpp_cv_func_isinf_use=no
10820 rm -f conftest*
10821 ac_ext=c
10822 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10823 ac_cpp='$CPP $CPPFLAGS'
10824 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10825 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10826 cross_compiling=$ac_cv_prog_cc_cross
10832 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10834 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10835 for ac_func in isinf
10837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10838 echo "configure:10839: checking for $ac_func" >&5
10839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10840 echo $ac_n "(cached) $ac_c" 1>&6
10841 else
10842 cat > conftest.$ac_ext <<EOF
10843 #line 10844 "configure"
10844 #include "confdefs.h"
10845 /* System header to define __stub macros and hopefully few prototypes,
10846 which can conflict with char $ac_func(); below. */
10847 #include <assert.h>
10848 /* Override any gcc2 internal prototype to avoid an error. */
10849 /* We use char because int might match the return type of a gcc2
10850 builtin and then its argument prototype would still apply. */
10851 char $ac_func();
10853 int main() {
10855 /* The GNU C library defines this for functions which it implements
10856 to always fail with ENOSYS. Some functions are actually named
10857 something starting with __ and the normal name is an alias. */
10858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10859 choke me
10860 #else
10861 $ac_func();
10862 #endif
10864 ; return 0; }
10866 if { (eval echo configure:10867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10867 rm -rf conftest*
10868 eval "ac_cv_func_$ac_func=yes"
10869 else
10870 echo "configure: failed program was:" >&5
10871 cat conftest.$ac_ext >&5
10872 rm -rf conftest*
10873 eval "ac_cv_func_$ac_func=no"
10875 rm -f conftest*
10878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10879 echo "$ac_t""yes" 1>&6
10880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10881 cat >> confdefs.h <<EOF
10882 #define $ac_tr_func 1
10885 else
10886 echo "$ac_t""no" 1>&6
10888 done
10890 else
10892 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10893 echo "configure:10894: checking for _isinf declaration" >&5
10894 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10895 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10896 echo $ac_n "(cached) $ac_c" 1>&6
10897 else
10900 ac_ext=C
10901 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10902 ac_cpp='$CXXCPP $CPPFLAGS'
10903 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10904 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10905 cross_compiling=$ac_cv_prog_cxx_cross
10907 cat > conftest.$ac_ext <<EOF
10908 #line 10909 "configure"
10909 #include "confdefs.h"
10910 #include <math.h>
10911 #ifdef HAVE_IEEEFP_H
10912 #include <ieeefp.h>
10913 #endif
10915 int main() {
10916 _isinf(0);
10917 ; return 0; }
10919 if { (eval echo configure:10920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10920 rm -rf conftest*
10921 glibcpp_cv_func__isinf_use=yes
10922 else
10923 echo "configure: failed program was:" >&5
10924 cat conftest.$ac_ext >&5
10925 rm -rf conftest*
10926 glibcpp_cv_func__isinf_use=no
10928 rm -f conftest*
10929 ac_ext=c
10930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10931 ac_cpp='$CPP $CPPFLAGS'
10932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10934 cross_compiling=$ac_cv_prog_cc_cross
10940 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10942 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10943 for ac_func in _isinf
10945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10946 echo "configure:10947: checking for $ac_func" >&5
10947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10948 echo $ac_n "(cached) $ac_c" 1>&6
10949 else
10950 cat > conftest.$ac_ext <<EOF
10951 #line 10952 "configure"
10952 #include "confdefs.h"
10953 /* System header to define __stub macros and hopefully few prototypes,
10954 which can conflict with char $ac_func(); below. */
10955 #include <assert.h>
10956 /* Override any gcc2 internal prototype to avoid an error. */
10957 /* We use char because int might match the return type of a gcc2
10958 builtin and then its argument prototype would still apply. */
10959 char $ac_func();
10961 int main() {
10963 /* The GNU C library defines this for functions which it implements
10964 to always fail with ENOSYS. Some functions are actually named
10965 something starting with __ and the normal name is an alias. */
10966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10967 choke me
10968 #else
10969 $ac_func();
10970 #endif
10972 ; return 0; }
10974 if { (eval echo configure:10975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10975 rm -rf conftest*
10976 eval "ac_cv_func_$ac_func=yes"
10977 else
10978 echo "configure: failed program was:" >&5
10979 cat conftest.$ac_ext >&5
10980 rm -rf conftest*
10981 eval "ac_cv_func_$ac_func=no"
10983 rm -f conftest*
10986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10987 echo "$ac_t""yes" 1>&6
10988 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10989 cat >> confdefs.h <<EOF
10990 #define $ac_tr_func 1
10993 else
10994 echo "$ac_t""no" 1>&6
10996 done
11003 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
11004 echo "configure:11005: checking for isnan declaration" >&5
11005 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
11006 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
11007 echo $ac_n "(cached) $ac_c" 1>&6
11008 else
11011 ac_ext=C
11012 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11013 ac_cpp='$CXXCPP $CPPFLAGS'
11014 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11015 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11016 cross_compiling=$ac_cv_prog_cxx_cross
11018 cat > conftest.$ac_ext <<EOF
11019 #line 11020 "configure"
11020 #include "confdefs.h"
11021 #include <math.h>
11022 #ifdef HAVE_IEEEFP_H
11023 #include <ieeefp.h>
11024 #endif
11026 int main() {
11027 isnan(0);
11028 ; return 0; }
11030 if { (eval echo configure:11031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11031 rm -rf conftest*
11032 glibcpp_cv_func_isnan_use=yes
11033 else
11034 echo "configure: failed program was:" >&5
11035 cat conftest.$ac_ext >&5
11036 rm -rf conftest*
11037 glibcpp_cv_func_isnan_use=no
11039 rm -f conftest*
11040 ac_ext=c
11041 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11042 ac_cpp='$CPP $CPPFLAGS'
11043 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11044 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11045 cross_compiling=$ac_cv_prog_cc_cross
11051 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
11053 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
11054 for ac_func in isnan
11056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11057 echo "configure:11058: checking for $ac_func" >&5
11058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11059 echo $ac_n "(cached) $ac_c" 1>&6
11060 else
11061 cat > conftest.$ac_ext <<EOF
11062 #line 11063 "configure"
11063 #include "confdefs.h"
11064 /* System header to define __stub macros and hopefully few prototypes,
11065 which can conflict with char $ac_func(); below. */
11066 #include <assert.h>
11067 /* Override any gcc2 internal prototype to avoid an error. */
11068 /* We use char because int might match the return type of a gcc2
11069 builtin and then its argument prototype would still apply. */
11070 char $ac_func();
11072 int main() {
11074 /* The GNU C library defines this for functions which it implements
11075 to always fail with ENOSYS. Some functions are actually named
11076 something starting with __ and the normal name is an alias. */
11077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11078 choke me
11079 #else
11080 $ac_func();
11081 #endif
11083 ; return 0; }
11085 if { (eval echo configure:11086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11086 rm -rf conftest*
11087 eval "ac_cv_func_$ac_func=yes"
11088 else
11089 echo "configure: failed program was:" >&5
11090 cat conftest.$ac_ext >&5
11091 rm -rf conftest*
11092 eval "ac_cv_func_$ac_func=no"
11094 rm -f conftest*
11097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11098 echo "$ac_t""yes" 1>&6
11099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11100 cat >> confdefs.h <<EOF
11101 #define $ac_tr_func 1
11104 else
11105 echo "$ac_t""no" 1>&6
11107 done
11109 else
11111 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11112 echo "configure:11113: checking for _isnan declaration" >&5
11113 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11114 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11115 echo $ac_n "(cached) $ac_c" 1>&6
11116 else
11119 ac_ext=C
11120 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11121 ac_cpp='$CXXCPP $CPPFLAGS'
11122 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11123 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11124 cross_compiling=$ac_cv_prog_cxx_cross
11126 cat > conftest.$ac_ext <<EOF
11127 #line 11128 "configure"
11128 #include "confdefs.h"
11129 #include <math.h>
11130 #ifdef HAVE_IEEEFP_H
11131 #include <ieeefp.h>
11132 #endif
11134 int main() {
11135 _isnan(0);
11136 ; return 0; }
11138 if { (eval echo configure:11139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11139 rm -rf conftest*
11140 glibcpp_cv_func__isnan_use=yes
11141 else
11142 echo "configure: failed program was:" >&5
11143 cat conftest.$ac_ext >&5
11144 rm -rf conftest*
11145 glibcpp_cv_func__isnan_use=no
11147 rm -f conftest*
11148 ac_ext=c
11149 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11150 ac_cpp='$CPP $CPPFLAGS'
11151 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11152 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11153 cross_compiling=$ac_cv_prog_cc_cross
11159 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11161 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11162 for ac_func in _isnan
11164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11165 echo "configure:11166: checking for $ac_func" >&5
11166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11167 echo $ac_n "(cached) $ac_c" 1>&6
11168 else
11169 cat > conftest.$ac_ext <<EOF
11170 #line 11171 "configure"
11171 #include "confdefs.h"
11172 /* System header to define __stub macros and hopefully few prototypes,
11173 which can conflict with char $ac_func(); below. */
11174 #include <assert.h>
11175 /* Override any gcc2 internal prototype to avoid an error. */
11176 /* We use char because int might match the return type of a gcc2
11177 builtin and then its argument prototype would still apply. */
11178 char $ac_func();
11180 int main() {
11182 /* The GNU C library defines this for functions which it implements
11183 to always fail with ENOSYS. Some functions are actually named
11184 something starting with __ and the normal name is an alias. */
11185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11186 choke me
11187 #else
11188 $ac_func();
11189 #endif
11191 ; return 0; }
11193 if { (eval echo configure:11194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11194 rm -rf conftest*
11195 eval "ac_cv_func_$ac_func=yes"
11196 else
11197 echo "configure: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11199 rm -rf conftest*
11200 eval "ac_cv_func_$ac_func=no"
11202 rm -f conftest*
11205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11206 echo "$ac_t""yes" 1>&6
11207 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11208 cat >> confdefs.h <<EOF
11209 #define $ac_tr_func 1
11212 else
11213 echo "$ac_t""no" 1>&6
11215 done
11222 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11223 echo "configure:11224: checking for finite declaration" >&5
11224 if test x${glibcpp_cv_func_finite_use+set} != xset; then
11225 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11226 echo $ac_n "(cached) $ac_c" 1>&6
11227 else
11230 ac_ext=C
11231 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11232 ac_cpp='$CXXCPP $CPPFLAGS'
11233 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11234 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11235 cross_compiling=$ac_cv_prog_cxx_cross
11237 cat > conftest.$ac_ext <<EOF
11238 #line 11239 "configure"
11239 #include "confdefs.h"
11240 #include <math.h>
11241 #ifdef HAVE_IEEEFP_H
11242 #include <ieeefp.h>
11243 #endif
11245 int main() {
11246 finite(0);
11247 ; return 0; }
11249 if { (eval echo configure:11250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11250 rm -rf conftest*
11251 glibcpp_cv_func_finite_use=yes
11252 else
11253 echo "configure: failed program was:" >&5
11254 cat conftest.$ac_ext >&5
11255 rm -rf conftest*
11256 glibcpp_cv_func_finite_use=no
11258 rm -f conftest*
11259 ac_ext=c
11260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11261 ac_cpp='$CPP $CPPFLAGS'
11262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11264 cross_compiling=$ac_cv_prog_cc_cross
11270 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11272 if test x$glibcpp_cv_func_finite_use = x"yes"; then
11273 for ac_func in finite
11275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11276 echo "configure:11277: checking for $ac_func" >&5
11277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11278 echo $ac_n "(cached) $ac_c" 1>&6
11279 else
11280 cat > conftest.$ac_ext <<EOF
11281 #line 11282 "configure"
11282 #include "confdefs.h"
11283 /* System header to define __stub macros and hopefully few prototypes,
11284 which can conflict with char $ac_func(); below. */
11285 #include <assert.h>
11286 /* Override any gcc2 internal prototype to avoid an error. */
11287 /* We use char because int might match the return type of a gcc2
11288 builtin and then its argument prototype would still apply. */
11289 char $ac_func();
11291 int main() {
11293 /* The GNU C library defines this for functions which it implements
11294 to always fail with ENOSYS. Some functions are actually named
11295 something starting with __ and the normal name is an alias. */
11296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11297 choke me
11298 #else
11299 $ac_func();
11300 #endif
11302 ; return 0; }
11304 if { (eval echo configure:11305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11305 rm -rf conftest*
11306 eval "ac_cv_func_$ac_func=yes"
11307 else
11308 echo "configure: failed program was:" >&5
11309 cat conftest.$ac_ext >&5
11310 rm -rf conftest*
11311 eval "ac_cv_func_$ac_func=no"
11313 rm -f conftest*
11316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11317 echo "$ac_t""yes" 1>&6
11318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11319 cat >> confdefs.h <<EOF
11320 #define $ac_tr_func 1
11323 else
11324 echo "$ac_t""no" 1>&6
11326 done
11328 else
11330 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11331 echo "configure:11332: checking for _finite declaration" >&5
11332 if test x${glibcpp_cv_func__finite_use+set} != xset; then
11333 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11334 echo $ac_n "(cached) $ac_c" 1>&6
11335 else
11338 ac_ext=C
11339 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11340 ac_cpp='$CXXCPP $CPPFLAGS'
11341 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11342 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11343 cross_compiling=$ac_cv_prog_cxx_cross
11345 cat > conftest.$ac_ext <<EOF
11346 #line 11347 "configure"
11347 #include "confdefs.h"
11348 #include <math.h>
11349 #ifdef HAVE_IEEEFP_H
11350 #include <ieeefp.h>
11351 #endif
11353 int main() {
11354 _finite(0);
11355 ; return 0; }
11357 if { (eval echo configure:11358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11358 rm -rf conftest*
11359 glibcpp_cv_func__finite_use=yes
11360 else
11361 echo "configure: failed program was:" >&5
11362 cat conftest.$ac_ext >&5
11363 rm -rf conftest*
11364 glibcpp_cv_func__finite_use=no
11366 rm -f conftest*
11367 ac_ext=c
11368 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11369 ac_cpp='$CPP $CPPFLAGS'
11370 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11371 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11372 cross_compiling=$ac_cv_prog_cc_cross
11378 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11380 if test x$glibcpp_cv_func__finite_use = x"yes"; then
11381 for ac_func in _finite
11383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11384 echo "configure:11385: checking for $ac_func" >&5
11385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11386 echo $ac_n "(cached) $ac_c" 1>&6
11387 else
11388 cat > conftest.$ac_ext <<EOF
11389 #line 11390 "configure"
11390 #include "confdefs.h"
11391 /* System header to define __stub macros and hopefully few prototypes,
11392 which can conflict with char $ac_func(); below. */
11393 #include <assert.h>
11394 /* Override any gcc2 internal prototype to avoid an error. */
11395 /* We use char because int might match the return type of a gcc2
11396 builtin and then its argument prototype would still apply. */
11397 char $ac_func();
11399 int main() {
11401 /* The GNU C library defines this for functions which it implements
11402 to always fail with ENOSYS. Some functions are actually named
11403 something starting with __ and the normal name is an alias. */
11404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11405 choke me
11406 #else
11407 $ac_func();
11408 #endif
11410 ; return 0; }
11412 if { (eval echo configure:11413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11413 rm -rf conftest*
11414 eval "ac_cv_func_$ac_func=yes"
11415 else
11416 echo "configure: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11418 rm -rf conftest*
11419 eval "ac_cv_func_$ac_func=no"
11421 rm -f conftest*
11424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11425 echo "$ac_t""yes" 1>&6
11426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11427 cat >> confdefs.h <<EOF
11428 #define $ac_tr_func 1
11431 else
11432 echo "$ac_t""no" 1>&6
11434 done
11441 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11442 echo "configure:11443: checking for copysign declaration" >&5
11443 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11444 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11445 echo $ac_n "(cached) $ac_c" 1>&6
11446 else
11449 ac_ext=C
11450 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11451 ac_cpp='$CXXCPP $CPPFLAGS'
11452 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11453 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11454 cross_compiling=$ac_cv_prog_cxx_cross
11456 cat > conftest.$ac_ext <<EOF
11457 #line 11458 "configure"
11458 #include "confdefs.h"
11459 #include <math.h>
11460 int main() {
11461 copysign(0, 0);
11462 ; return 0; }
11464 if { (eval echo configure:11465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11465 rm -rf conftest*
11466 glibcpp_cv_func_copysign_use=yes
11467 else
11468 echo "configure: failed program was:" >&5
11469 cat conftest.$ac_ext >&5
11470 rm -rf conftest*
11471 glibcpp_cv_func_copysign_use=no
11473 rm -f conftest*
11474 ac_ext=c
11475 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11476 ac_cpp='$CPP $CPPFLAGS'
11477 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11478 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11479 cross_compiling=$ac_cv_prog_cc_cross
11485 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11487 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11488 for ac_func in copysign
11490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11491 echo "configure:11492: checking for $ac_func" >&5
11492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11493 echo $ac_n "(cached) $ac_c" 1>&6
11494 else
11495 cat > conftest.$ac_ext <<EOF
11496 #line 11497 "configure"
11497 #include "confdefs.h"
11498 /* System header to define __stub macros and hopefully few prototypes,
11499 which can conflict with char $ac_func(); below. */
11500 #include <assert.h>
11501 /* Override any gcc2 internal prototype to avoid an error. */
11502 /* We use char because int might match the return type of a gcc2
11503 builtin and then its argument prototype would still apply. */
11504 char $ac_func();
11506 int main() {
11508 /* The GNU C library defines this for functions which it implements
11509 to always fail with ENOSYS. Some functions are actually named
11510 something starting with __ and the normal name is an alias. */
11511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11512 choke me
11513 #else
11514 $ac_func();
11515 #endif
11517 ; return 0; }
11519 if { (eval echo configure:11520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11520 rm -rf conftest*
11521 eval "ac_cv_func_$ac_func=yes"
11522 else
11523 echo "configure: failed program was:" >&5
11524 cat conftest.$ac_ext >&5
11525 rm -rf conftest*
11526 eval "ac_cv_func_$ac_func=no"
11528 rm -f conftest*
11531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11532 echo "$ac_t""yes" 1>&6
11533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11534 cat >> confdefs.h <<EOF
11535 #define $ac_tr_func 1
11538 else
11539 echo "$ac_t""no" 1>&6
11541 done
11543 else
11545 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11546 echo "configure:11547: checking for _copysign declaration" >&5
11547 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11548 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11549 echo $ac_n "(cached) $ac_c" 1>&6
11550 else
11553 ac_ext=C
11554 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11555 ac_cpp='$CXXCPP $CPPFLAGS'
11556 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11557 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11558 cross_compiling=$ac_cv_prog_cxx_cross
11560 cat > conftest.$ac_ext <<EOF
11561 #line 11562 "configure"
11562 #include "confdefs.h"
11563 #include <math.h>
11564 int main() {
11565 _copysign(0, 0);
11566 ; return 0; }
11568 if { (eval echo configure:11569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11569 rm -rf conftest*
11570 glibcpp_cv_func__copysign_use=yes
11571 else
11572 echo "configure: failed program was:" >&5
11573 cat conftest.$ac_ext >&5
11574 rm -rf conftest*
11575 glibcpp_cv_func__copysign_use=no
11577 rm -f conftest*
11578 ac_ext=c
11579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11580 ac_cpp='$CPP $CPPFLAGS'
11581 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11582 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11583 cross_compiling=$ac_cv_prog_cc_cross
11589 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11591 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11592 for ac_func in _copysign
11594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11595 echo "configure:11596: checking for $ac_func" >&5
11596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11597 echo $ac_n "(cached) $ac_c" 1>&6
11598 else
11599 cat > conftest.$ac_ext <<EOF
11600 #line 11601 "configure"
11601 #include "confdefs.h"
11602 /* System header to define __stub macros and hopefully few prototypes,
11603 which can conflict with char $ac_func(); below. */
11604 #include <assert.h>
11605 /* Override any gcc2 internal prototype to avoid an error. */
11606 /* We use char because int might match the return type of a gcc2
11607 builtin and then its argument prototype would still apply. */
11608 char $ac_func();
11610 int main() {
11612 /* The GNU C library defines this for functions which it implements
11613 to always fail with ENOSYS. Some functions are actually named
11614 something starting with __ and the normal name is an alias. */
11615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11616 choke me
11617 #else
11618 $ac_func();
11619 #endif
11621 ; return 0; }
11623 if { (eval echo configure:11624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11624 rm -rf conftest*
11625 eval "ac_cv_func_$ac_func=yes"
11626 else
11627 echo "configure: failed program was:" >&5
11628 cat conftest.$ac_ext >&5
11629 rm -rf conftest*
11630 eval "ac_cv_func_$ac_func=no"
11632 rm -f conftest*
11635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11636 echo "$ac_t""yes" 1>&6
11637 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11638 cat >> confdefs.h <<EOF
11639 #define $ac_tr_func 1
11642 else
11643 echo "$ac_t""no" 1>&6
11645 done
11652 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11653 echo "configure:11654: checking for sincos declaration" >&5
11654 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11655 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11656 echo $ac_n "(cached) $ac_c" 1>&6
11657 else
11660 ac_ext=C
11661 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11662 ac_cpp='$CXXCPP $CPPFLAGS'
11663 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11664 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11665 cross_compiling=$ac_cv_prog_cxx_cross
11667 cat > conftest.$ac_ext <<EOF
11668 #line 11669 "configure"
11669 #include "confdefs.h"
11670 #include <math.h>
11671 int main() {
11672 sincos(0, 0, 0);
11673 ; return 0; }
11675 if { (eval echo configure:11676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11676 rm -rf conftest*
11677 glibcpp_cv_func_sincos_use=yes
11678 else
11679 echo "configure: failed program was:" >&5
11680 cat conftest.$ac_ext >&5
11681 rm -rf conftest*
11682 glibcpp_cv_func_sincos_use=no
11684 rm -f conftest*
11685 ac_ext=c
11686 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11687 ac_cpp='$CPP $CPPFLAGS'
11688 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11689 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11690 cross_compiling=$ac_cv_prog_cc_cross
11696 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11698 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11699 for ac_func in sincos
11701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11702 echo "configure:11703: checking for $ac_func" >&5
11703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11704 echo $ac_n "(cached) $ac_c" 1>&6
11705 else
11706 cat > conftest.$ac_ext <<EOF
11707 #line 11708 "configure"
11708 #include "confdefs.h"
11709 /* System header to define __stub macros and hopefully few prototypes,
11710 which can conflict with char $ac_func(); below. */
11711 #include <assert.h>
11712 /* Override any gcc2 internal prototype to avoid an error. */
11713 /* We use char because int might match the return type of a gcc2
11714 builtin and then its argument prototype would still apply. */
11715 char $ac_func();
11717 int main() {
11719 /* The GNU C library defines this for functions which it implements
11720 to always fail with ENOSYS. Some functions are actually named
11721 something starting with __ and the normal name is an alias. */
11722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11723 choke me
11724 #else
11725 $ac_func();
11726 #endif
11728 ; return 0; }
11730 if { (eval echo configure:11731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11731 rm -rf conftest*
11732 eval "ac_cv_func_$ac_func=yes"
11733 else
11734 echo "configure: failed program was:" >&5
11735 cat conftest.$ac_ext >&5
11736 rm -rf conftest*
11737 eval "ac_cv_func_$ac_func=no"
11739 rm -f conftest*
11742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11743 echo "$ac_t""yes" 1>&6
11744 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11745 cat >> confdefs.h <<EOF
11746 #define $ac_tr_func 1
11749 else
11750 echo "$ac_t""no" 1>&6
11752 done
11754 else
11756 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11757 echo "configure:11758: checking for _sincos declaration" >&5
11758 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11759 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11760 echo $ac_n "(cached) $ac_c" 1>&6
11761 else
11764 ac_ext=C
11765 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11766 ac_cpp='$CXXCPP $CPPFLAGS'
11767 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11768 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11769 cross_compiling=$ac_cv_prog_cxx_cross
11771 cat > conftest.$ac_ext <<EOF
11772 #line 11773 "configure"
11773 #include "confdefs.h"
11774 #include <math.h>
11775 int main() {
11776 _sincos(0, 0, 0);
11777 ; return 0; }
11779 if { (eval echo configure:11780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11780 rm -rf conftest*
11781 glibcpp_cv_func__sincos_use=yes
11782 else
11783 echo "configure: failed program was:" >&5
11784 cat conftest.$ac_ext >&5
11785 rm -rf conftest*
11786 glibcpp_cv_func__sincos_use=no
11788 rm -f conftest*
11789 ac_ext=c
11790 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11791 ac_cpp='$CPP $CPPFLAGS'
11792 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11793 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11794 cross_compiling=$ac_cv_prog_cc_cross
11800 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11802 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11803 for ac_func in _sincos
11805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11806 echo "configure:11807: checking for $ac_func" >&5
11807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11808 echo $ac_n "(cached) $ac_c" 1>&6
11809 else
11810 cat > conftest.$ac_ext <<EOF
11811 #line 11812 "configure"
11812 #include "confdefs.h"
11813 /* System header to define __stub macros and hopefully few prototypes,
11814 which can conflict with char $ac_func(); below. */
11815 #include <assert.h>
11816 /* Override any gcc2 internal prototype to avoid an error. */
11817 /* We use char because int might match the return type of a gcc2
11818 builtin and then its argument prototype would still apply. */
11819 char $ac_func();
11821 int main() {
11823 /* The GNU C library defines this for functions which it implements
11824 to always fail with ENOSYS. Some functions are actually named
11825 something starting with __ and the normal name is an alias. */
11826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11827 choke me
11828 #else
11829 $ac_func();
11830 #endif
11832 ; return 0; }
11834 if { (eval echo configure:11835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11835 rm -rf conftest*
11836 eval "ac_cv_func_$ac_func=yes"
11837 else
11838 echo "configure: failed program was:" >&5
11839 cat conftest.$ac_ext >&5
11840 rm -rf conftest*
11841 eval "ac_cv_func_$ac_func=no"
11843 rm -f conftest*
11846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11847 echo "$ac_t""yes" 1>&6
11848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11849 cat >> confdefs.h <<EOF
11850 #define $ac_tr_func 1
11853 else
11854 echo "$ac_t""no" 1>&6
11856 done
11863 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11864 echo "configure:11865: checking for fpclass declaration" >&5
11865 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11866 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11867 echo $ac_n "(cached) $ac_c" 1>&6
11868 else
11871 ac_ext=C
11872 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11873 ac_cpp='$CXXCPP $CPPFLAGS'
11874 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11875 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11876 cross_compiling=$ac_cv_prog_cxx_cross
11878 cat > conftest.$ac_ext <<EOF
11879 #line 11880 "configure"
11880 #include "confdefs.h"
11881 #include <math.h>
11882 #ifdef HAVE_IEEEFP_H
11883 #include <ieeefp.h>
11884 #endif
11886 int main() {
11887 fpclass(0);
11888 ; return 0; }
11890 if { (eval echo configure:11891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11891 rm -rf conftest*
11892 glibcpp_cv_func_fpclass_use=yes
11893 else
11894 echo "configure: failed program was:" >&5
11895 cat conftest.$ac_ext >&5
11896 rm -rf conftest*
11897 glibcpp_cv_func_fpclass_use=no
11899 rm -f conftest*
11900 ac_ext=c
11901 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11902 ac_cpp='$CPP $CPPFLAGS'
11903 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11904 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11905 cross_compiling=$ac_cv_prog_cc_cross
11911 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11913 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11914 for ac_func in fpclass
11916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11917 echo "configure:11918: checking for $ac_func" >&5
11918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11919 echo $ac_n "(cached) $ac_c" 1>&6
11920 else
11921 cat > conftest.$ac_ext <<EOF
11922 #line 11923 "configure"
11923 #include "confdefs.h"
11924 /* System header to define __stub macros and hopefully few prototypes,
11925 which can conflict with char $ac_func(); below. */
11926 #include <assert.h>
11927 /* Override any gcc2 internal prototype to avoid an error. */
11928 /* We use char because int might match the return type of a gcc2
11929 builtin and then its argument prototype would still apply. */
11930 char $ac_func();
11932 int main() {
11934 /* The GNU C library defines this for functions which it implements
11935 to always fail with ENOSYS. Some functions are actually named
11936 something starting with __ and the normal name is an alias. */
11937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11938 choke me
11939 #else
11940 $ac_func();
11941 #endif
11943 ; return 0; }
11945 if { (eval echo configure:11946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11946 rm -rf conftest*
11947 eval "ac_cv_func_$ac_func=yes"
11948 else
11949 echo "configure: failed program was:" >&5
11950 cat conftest.$ac_ext >&5
11951 rm -rf conftest*
11952 eval "ac_cv_func_$ac_func=no"
11954 rm -f conftest*
11957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11958 echo "$ac_t""yes" 1>&6
11959 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11960 cat >> confdefs.h <<EOF
11961 #define $ac_tr_func 1
11964 else
11965 echo "$ac_t""no" 1>&6
11967 done
11969 else
11971 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11972 echo "configure:11973: checking for _fpclass declaration" >&5
11973 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11974 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11975 echo $ac_n "(cached) $ac_c" 1>&6
11976 else
11979 ac_ext=C
11980 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11981 ac_cpp='$CXXCPP $CPPFLAGS'
11982 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11983 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11984 cross_compiling=$ac_cv_prog_cxx_cross
11986 cat > conftest.$ac_ext <<EOF
11987 #line 11988 "configure"
11988 #include "confdefs.h"
11989 #include <math.h>
11990 #ifdef HAVE_IEEEFP_H
11991 #include <ieeefp.h>
11992 #endif
11994 int main() {
11995 _fpclass(0);
11996 ; return 0; }
11998 if { (eval echo configure:11999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11999 rm -rf conftest*
12000 glibcpp_cv_func__fpclass_use=yes
12001 else
12002 echo "configure: failed program was:" >&5
12003 cat conftest.$ac_ext >&5
12004 rm -rf conftest*
12005 glibcpp_cv_func__fpclass_use=no
12007 rm -f conftest*
12008 ac_ext=c
12009 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12010 ac_cpp='$CPP $CPPFLAGS'
12011 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12012 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12013 cross_compiling=$ac_cv_prog_cc_cross
12019 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
12021 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
12022 for ac_func in _fpclass
12024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12025 echo "configure:12026: checking for $ac_func" >&5
12026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12027 echo $ac_n "(cached) $ac_c" 1>&6
12028 else
12029 cat > conftest.$ac_ext <<EOF
12030 #line 12031 "configure"
12031 #include "confdefs.h"
12032 /* System header to define __stub macros and hopefully few prototypes,
12033 which can conflict with char $ac_func(); below. */
12034 #include <assert.h>
12035 /* Override any gcc2 internal prototype to avoid an error. */
12036 /* We use char because int might match the return type of a gcc2
12037 builtin and then its argument prototype would still apply. */
12038 char $ac_func();
12040 int main() {
12042 /* The GNU C library defines this for functions which it implements
12043 to always fail with ENOSYS. Some functions are actually named
12044 something starting with __ and the normal name is an alias. */
12045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12046 choke me
12047 #else
12048 $ac_func();
12049 #endif
12051 ; return 0; }
12053 if { (eval echo configure:12054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12054 rm -rf conftest*
12055 eval "ac_cv_func_$ac_func=yes"
12056 else
12057 echo "configure: failed program was:" >&5
12058 cat conftest.$ac_ext >&5
12059 rm -rf conftest*
12060 eval "ac_cv_func_$ac_func=no"
12062 rm -f conftest*
12065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12066 echo "$ac_t""yes" 1>&6
12067 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12068 cat >> confdefs.h <<EOF
12069 #define $ac_tr_func 1
12072 else
12073 echo "$ac_t""no" 1>&6
12075 done
12082 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12083 echo "configure:12084: checking for qfpclass declaration" >&5
12084 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12085 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12086 echo $ac_n "(cached) $ac_c" 1>&6
12087 else
12090 ac_ext=C
12091 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12092 ac_cpp='$CXXCPP $CPPFLAGS'
12093 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12094 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12095 cross_compiling=$ac_cv_prog_cxx_cross
12097 cat > conftest.$ac_ext <<EOF
12098 #line 12099 "configure"
12099 #include "confdefs.h"
12100 #include <math.h>
12101 #ifdef HAVE_IEEEFP_H
12102 #include <ieeefp.h>
12103 #endif
12105 int main() {
12106 qfpclass(0);
12107 ; return 0; }
12109 if { (eval echo configure:12110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12110 rm -rf conftest*
12111 glibcpp_cv_func_qfpclass_use=yes
12112 else
12113 echo "configure: failed program was:" >&5
12114 cat conftest.$ac_ext >&5
12115 rm -rf conftest*
12116 glibcpp_cv_func_qfpclass_use=no
12118 rm -f conftest*
12119 ac_ext=c
12120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12121 ac_cpp='$CPP $CPPFLAGS'
12122 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12123 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12124 cross_compiling=$ac_cv_prog_cc_cross
12130 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12132 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12133 for ac_func in qfpclass
12135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12136 echo "configure:12137: checking for $ac_func" >&5
12137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12138 echo $ac_n "(cached) $ac_c" 1>&6
12139 else
12140 cat > conftest.$ac_ext <<EOF
12141 #line 12142 "configure"
12142 #include "confdefs.h"
12143 /* System header to define __stub macros and hopefully few prototypes,
12144 which can conflict with char $ac_func(); below. */
12145 #include <assert.h>
12146 /* Override any gcc2 internal prototype to avoid an error. */
12147 /* We use char because int might match the return type of a gcc2
12148 builtin and then its argument prototype would still apply. */
12149 char $ac_func();
12151 int main() {
12153 /* The GNU C library defines this for functions which it implements
12154 to always fail with ENOSYS. Some functions are actually named
12155 something starting with __ and the normal name is an alias. */
12156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12157 choke me
12158 #else
12159 $ac_func();
12160 #endif
12162 ; return 0; }
12164 if { (eval echo configure:12165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12165 rm -rf conftest*
12166 eval "ac_cv_func_$ac_func=yes"
12167 else
12168 echo "configure: failed program was:" >&5
12169 cat conftest.$ac_ext >&5
12170 rm -rf conftest*
12171 eval "ac_cv_func_$ac_func=no"
12173 rm -f conftest*
12176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12177 echo "$ac_t""yes" 1>&6
12178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12179 cat >> confdefs.h <<EOF
12180 #define $ac_tr_func 1
12183 else
12184 echo "$ac_t""no" 1>&6
12186 done
12188 else
12190 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12191 echo "configure:12192: checking for _qfpclass declaration" >&5
12192 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12193 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12194 echo $ac_n "(cached) $ac_c" 1>&6
12195 else
12198 ac_ext=C
12199 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12200 ac_cpp='$CXXCPP $CPPFLAGS'
12201 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12202 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12203 cross_compiling=$ac_cv_prog_cxx_cross
12205 cat > conftest.$ac_ext <<EOF
12206 #line 12207 "configure"
12207 #include "confdefs.h"
12208 #include <math.h>
12209 #ifdef HAVE_IEEEFP_H
12210 #include <ieeefp.h>
12211 #endif
12213 int main() {
12214 _qfpclass(0);
12215 ; return 0; }
12217 if { (eval echo configure:12218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12218 rm -rf conftest*
12219 glibcpp_cv_func__qfpclass_use=yes
12220 else
12221 echo "configure: failed program was:" >&5
12222 cat conftest.$ac_ext >&5
12223 rm -rf conftest*
12224 glibcpp_cv_func__qfpclass_use=no
12226 rm -f conftest*
12227 ac_ext=c
12228 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12229 ac_cpp='$CPP $CPPFLAGS'
12230 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12231 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12232 cross_compiling=$ac_cv_prog_cc_cross
12238 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12240 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12241 for ac_func in _qfpclass
12243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12244 echo "configure:12245: checking for $ac_func" >&5
12245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12246 echo $ac_n "(cached) $ac_c" 1>&6
12247 else
12248 cat > conftest.$ac_ext <<EOF
12249 #line 12250 "configure"
12250 #include "confdefs.h"
12251 /* System header to define __stub macros and hopefully few prototypes,
12252 which can conflict with char $ac_func(); below. */
12253 #include <assert.h>
12254 /* Override any gcc2 internal prototype to avoid an error. */
12255 /* We use char because int might match the return type of a gcc2
12256 builtin and then its argument prototype would still apply. */
12257 char $ac_func();
12259 int main() {
12261 /* The GNU C library defines this for functions which it implements
12262 to always fail with ENOSYS. Some functions are actually named
12263 something starting with __ and the normal name is an alias. */
12264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12265 choke me
12266 #else
12267 $ac_func();
12268 #endif
12270 ; return 0; }
12272 if { (eval echo configure:12273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12273 rm -rf conftest*
12274 eval "ac_cv_func_$ac_func=yes"
12275 else
12276 echo "configure: failed program was:" >&5
12277 cat conftest.$ac_ext >&5
12278 rm -rf conftest*
12279 eval "ac_cv_func_$ac_func=no"
12281 rm -f conftest*
12284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12285 echo "$ac_t""yes" 1>&6
12286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12287 cat >> confdefs.h <<EOF
12288 #define $ac_tr_func 1
12291 else
12292 echo "$ac_t""no" 1>&6
12294 done
12301 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12302 echo "configure:12303: checking for hypot declaration" >&5
12303 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12304 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12305 echo $ac_n "(cached) $ac_c" 1>&6
12306 else
12309 ac_ext=C
12310 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12311 ac_cpp='$CXXCPP $CPPFLAGS'
12312 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12313 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12314 cross_compiling=$ac_cv_prog_cxx_cross
12316 cat > conftest.$ac_ext <<EOF
12317 #line 12318 "configure"
12318 #include "confdefs.h"
12319 #include <math.h>
12320 int main() {
12321 hypot(0, 0);
12322 ; return 0; }
12324 if { (eval echo configure:12325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12325 rm -rf conftest*
12326 glibcpp_cv_func_hypot_use=yes
12327 else
12328 echo "configure: failed program was:" >&5
12329 cat conftest.$ac_ext >&5
12330 rm -rf conftest*
12331 glibcpp_cv_func_hypot_use=no
12333 rm -f conftest*
12334 ac_ext=c
12335 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12336 ac_cpp='$CPP $CPPFLAGS'
12337 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12338 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12339 cross_compiling=$ac_cv_prog_cc_cross
12345 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12347 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12348 for ac_func in hypot
12350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12351 echo "configure:12352: checking for $ac_func" >&5
12352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12353 echo $ac_n "(cached) $ac_c" 1>&6
12354 else
12355 cat > conftest.$ac_ext <<EOF
12356 #line 12357 "configure"
12357 #include "confdefs.h"
12358 /* System header to define __stub macros and hopefully few prototypes,
12359 which can conflict with char $ac_func(); below. */
12360 #include <assert.h>
12361 /* Override any gcc2 internal prototype to avoid an error. */
12362 /* We use char because int might match the return type of a gcc2
12363 builtin and then its argument prototype would still apply. */
12364 char $ac_func();
12366 int main() {
12368 /* The GNU C library defines this for functions which it implements
12369 to always fail with ENOSYS. Some functions are actually named
12370 something starting with __ and the normal name is an alias. */
12371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12372 choke me
12373 #else
12374 $ac_func();
12375 #endif
12377 ; return 0; }
12379 if { (eval echo configure:12380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12380 rm -rf conftest*
12381 eval "ac_cv_func_$ac_func=yes"
12382 else
12383 echo "configure: failed program was:" >&5
12384 cat conftest.$ac_ext >&5
12385 rm -rf conftest*
12386 eval "ac_cv_func_$ac_func=no"
12388 rm -f conftest*
12391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12392 echo "$ac_t""yes" 1>&6
12393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12394 cat >> confdefs.h <<EOF
12395 #define $ac_tr_func 1
12398 else
12399 echo "$ac_t""no" 1>&6
12401 done
12403 else
12405 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12406 echo "configure:12407: checking for _hypot declaration" >&5
12407 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12408 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12409 echo $ac_n "(cached) $ac_c" 1>&6
12410 else
12413 ac_ext=C
12414 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12415 ac_cpp='$CXXCPP $CPPFLAGS'
12416 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12417 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12418 cross_compiling=$ac_cv_prog_cxx_cross
12420 cat > conftest.$ac_ext <<EOF
12421 #line 12422 "configure"
12422 #include "confdefs.h"
12423 #include <math.h>
12424 int main() {
12425 _hypot(0, 0);
12426 ; return 0; }
12428 if { (eval echo configure:12429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12429 rm -rf conftest*
12430 glibcpp_cv_func__hypot_use=yes
12431 else
12432 echo "configure: failed program was:" >&5
12433 cat conftest.$ac_ext >&5
12434 rm -rf conftest*
12435 glibcpp_cv_func__hypot_use=no
12437 rm -f conftest*
12438 ac_ext=c
12439 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12440 ac_cpp='$CPP $CPPFLAGS'
12441 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12442 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12443 cross_compiling=$ac_cv_prog_cc_cross
12449 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12451 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12452 for ac_func in _hypot
12454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12455 echo "configure:12456: checking for $ac_func" >&5
12456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12457 echo $ac_n "(cached) $ac_c" 1>&6
12458 else
12459 cat > conftest.$ac_ext <<EOF
12460 #line 12461 "configure"
12461 #include "confdefs.h"
12462 /* System header to define __stub macros and hopefully few prototypes,
12463 which can conflict with char $ac_func(); below. */
12464 #include <assert.h>
12465 /* Override any gcc2 internal prototype to avoid an error. */
12466 /* We use char because int might match the return type of a gcc2
12467 builtin and then its argument prototype would still apply. */
12468 char $ac_func();
12470 int main() {
12472 /* The GNU C library defines this for functions which it implements
12473 to always fail with ENOSYS. Some functions are actually named
12474 something starting with __ and the normal name is an alias. */
12475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12476 choke me
12477 #else
12478 $ac_func();
12479 #endif
12481 ; return 0; }
12483 if { (eval echo configure:12484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12484 rm -rf conftest*
12485 eval "ac_cv_func_$ac_func=yes"
12486 else
12487 echo "configure: failed program was:" >&5
12488 cat conftest.$ac_ext >&5
12489 rm -rf conftest*
12490 eval "ac_cv_func_$ac_func=no"
12492 rm -f conftest*
12495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12496 echo "$ac_t""yes" 1>&6
12497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12498 cat >> confdefs.h <<EOF
12499 #define $ac_tr_func 1
12502 else
12503 echo "$ac_t""no" 1>&6
12505 done
12512 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12513 echo "configure:12514: checking for float trig functions" >&5
12514 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12515 echo $ac_n "(cached) $ac_c" 1>&6
12516 else
12519 ac_ext=C
12520 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12521 ac_cpp='$CXXCPP $CPPFLAGS'
12522 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12523 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12524 cross_compiling=$ac_cv_prog_cxx_cross
12526 cat > conftest.$ac_ext <<EOF
12527 #line 12528 "configure"
12528 #include "confdefs.h"
12529 #include <math.h>
12530 int main() {
12531 `for x in acosf asinf atanf \
12532 cosf sinf tanf \
12533 coshf sinhf tanhf; do echo "$x (0);"; done`
12534 ; return 0; }
12536 if { (eval echo configure:12537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12537 rm -rf conftest*
12538 glibcpp_cv_func_float_trig_use=yes
12539 else
12540 echo "configure: failed program was:" >&5
12541 cat conftest.$ac_ext >&5
12542 rm -rf conftest*
12543 glibcpp_cv_func_float_trig_use=no
12545 rm -f conftest*
12546 ac_ext=c
12547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12548 ac_cpp='$CPP $CPPFLAGS'
12549 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12550 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12551 cross_compiling=$ac_cv_prog_cc_cross
12555 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12556 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12557 for ac_func in acosf asinf atanf \
12558 cosf sinf tanf \
12559 coshf sinhf tanhf
12561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12562 echo "configure:12563: checking for $ac_func" >&5
12563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12564 echo $ac_n "(cached) $ac_c" 1>&6
12565 else
12566 cat > conftest.$ac_ext <<EOF
12567 #line 12568 "configure"
12568 #include "confdefs.h"
12569 /* System header to define __stub macros and hopefully few prototypes,
12570 which can conflict with char $ac_func(); below. */
12571 #include <assert.h>
12572 /* Override any gcc2 internal prototype to avoid an error. */
12573 /* We use char because int might match the return type of a gcc2
12574 builtin and then its argument prototype would still apply. */
12575 char $ac_func();
12577 int main() {
12579 /* The GNU C library defines this for functions which it implements
12580 to always fail with ENOSYS. Some functions are actually named
12581 something starting with __ and the normal name is an alias. */
12582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12583 choke me
12584 #else
12585 $ac_func();
12586 #endif
12588 ; return 0; }
12590 if { (eval echo configure:12591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12591 rm -rf conftest*
12592 eval "ac_cv_func_$ac_func=yes"
12593 else
12594 echo "configure: failed program was:" >&5
12595 cat conftest.$ac_ext >&5
12596 rm -rf conftest*
12597 eval "ac_cv_func_$ac_func=no"
12599 rm -f conftest*
12602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12603 echo "$ac_t""yes" 1>&6
12604 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12605 cat >> confdefs.h <<EOF
12606 #define $ac_tr_func 1
12609 else
12610 echo "$ac_t""no" 1>&6
12612 done
12617 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12618 echo "configure:12619: checking for float round functions" >&5
12619 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12620 echo $ac_n "(cached) $ac_c" 1>&6
12621 else
12624 ac_ext=C
12625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12626 ac_cpp='$CXXCPP $CPPFLAGS'
12627 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12628 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12629 cross_compiling=$ac_cv_prog_cxx_cross
12631 cat > conftest.$ac_ext <<EOF
12632 #line 12633 "configure"
12633 #include "confdefs.h"
12634 #include <math.h>
12635 int main() {
12636 `for x in ceilf floorf; do echo "$x (0);"; done`
12637 ; return 0; }
12639 if { (eval echo configure:12640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12640 rm -rf conftest*
12641 glibcpp_cv_func_float_round_use=yes
12642 else
12643 echo "configure: failed program was:" >&5
12644 cat conftest.$ac_ext >&5
12645 rm -rf conftest*
12646 glibcpp_cv_func_float_round_use=no
12648 rm -f conftest*
12649 ac_ext=c
12650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12651 ac_cpp='$CPP $CPPFLAGS'
12652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12654 cross_compiling=$ac_cv_prog_cc_cross
12658 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12659 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12660 for ac_func in ceilf floorf
12662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12663 echo "configure:12664: checking for $ac_func" >&5
12664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12665 echo $ac_n "(cached) $ac_c" 1>&6
12666 else
12667 cat > conftest.$ac_ext <<EOF
12668 #line 12669 "configure"
12669 #include "confdefs.h"
12670 /* System header to define __stub macros and hopefully few prototypes,
12671 which can conflict with char $ac_func(); below. */
12672 #include <assert.h>
12673 /* Override any gcc2 internal prototype to avoid an error. */
12674 /* We use char because int might match the return type of a gcc2
12675 builtin and then its argument prototype would still apply. */
12676 char $ac_func();
12678 int main() {
12680 /* The GNU C library defines this for functions which it implements
12681 to always fail with ENOSYS. Some functions are actually named
12682 something starting with __ and the normal name is an alias. */
12683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12684 choke me
12685 #else
12686 $ac_func();
12687 #endif
12689 ; return 0; }
12691 if { (eval echo configure:12692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12692 rm -rf conftest*
12693 eval "ac_cv_func_$ac_func=yes"
12694 else
12695 echo "configure: failed program was:" >&5
12696 cat conftest.$ac_ext >&5
12697 rm -rf conftest*
12698 eval "ac_cv_func_$ac_func=no"
12700 rm -f conftest*
12703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12704 echo "$ac_t""yes" 1>&6
12705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12706 cat >> confdefs.h <<EOF
12707 #define $ac_tr_func 1
12710 else
12711 echo "$ac_t""no" 1>&6
12713 done
12719 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12720 echo "configure:12721: checking for expf declaration" >&5
12721 if test x${glibcpp_cv_func_expf_use+set} != xset; then
12722 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12723 echo $ac_n "(cached) $ac_c" 1>&6
12724 else
12727 ac_ext=C
12728 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12729 ac_cpp='$CXXCPP $CPPFLAGS'
12730 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12731 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12732 cross_compiling=$ac_cv_prog_cxx_cross
12734 cat > conftest.$ac_ext <<EOF
12735 #line 12736 "configure"
12736 #include "confdefs.h"
12737 #include <math.h>
12738 #ifdef HAVE_IEEEFP_H
12739 #include <ieeefp.h>
12740 #endif
12742 int main() {
12743 expf(0);
12744 ; return 0; }
12746 if { (eval echo configure:12747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12747 rm -rf conftest*
12748 glibcpp_cv_func_expf_use=yes
12749 else
12750 echo "configure: failed program was:" >&5
12751 cat conftest.$ac_ext >&5
12752 rm -rf conftest*
12753 glibcpp_cv_func_expf_use=no
12755 rm -f conftest*
12756 ac_ext=c
12757 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12758 ac_cpp='$CPP $CPPFLAGS'
12759 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12760 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12761 cross_compiling=$ac_cv_prog_cc_cross
12767 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12769 if test x$glibcpp_cv_func_expf_use = x"yes"; then
12770 for ac_func in expf
12772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12773 echo "configure:12774: checking for $ac_func" >&5
12774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12775 echo $ac_n "(cached) $ac_c" 1>&6
12776 else
12777 cat > conftest.$ac_ext <<EOF
12778 #line 12779 "configure"
12779 #include "confdefs.h"
12780 /* System header to define __stub macros and hopefully few prototypes,
12781 which can conflict with char $ac_func(); below. */
12782 #include <assert.h>
12783 /* Override any gcc2 internal prototype to avoid an error. */
12784 /* We use char because int might match the return type of a gcc2
12785 builtin and then its argument prototype would still apply. */
12786 char $ac_func();
12788 int main() {
12790 /* The GNU C library defines this for functions which it implements
12791 to always fail with ENOSYS. Some functions are actually named
12792 something starting with __ and the normal name is an alias. */
12793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12794 choke me
12795 #else
12796 $ac_func();
12797 #endif
12799 ; return 0; }
12801 if { (eval echo configure:12802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12802 rm -rf conftest*
12803 eval "ac_cv_func_$ac_func=yes"
12804 else
12805 echo "configure: failed program was:" >&5
12806 cat conftest.$ac_ext >&5
12807 rm -rf conftest*
12808 eval "ac_cv_func_$ac_func=no"
12810 rm -f conftest*
12813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12814 echo "$ac_t""yes" 1>&6
12815 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12816 cat >> confdefs.h <<EOF
12817 #define $ac_tr_func 1
12820 else
12821 echo "$ac_t""no" 1>&6
12823 done
12825 else
12827 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12828 echo "configure:12829: checking for _expf declaration" >&5
12829 if test x${glibcpp_cv_func__expf_use+set} != xset; then
12830 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12831 echo $ac_n "(cached) $ac_c" 1>&6
12832 else
12835 ac_ext=C
12836 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12837 ac_cpp='$CXXCPP $CPPFLAGS'
12838 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12839 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12840 cross_compiling=$ac_cv_prog_cxx_cross
12842 cat > conftest.$ac_ext <<EOF
12843 #line 12844 "configure"
12844 #include "confdefs.h"
12845 #include <math.h>
12846 #ifdef HAVE_IEEEFP_H
12847 #include <ieeefp.h>
12848 #endif
12850 int main() {
12851 _expf(0);
12852 ; return 0; }
12854 if { (eval echo configure:12855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12855 rm -rf conftest*
12856 glibcpp_cv_func__expf_use=yes
12857 else
12858 echo "configure: failed program was:" >&5
12859 cat conftest.$ac_ext >&5
12860 rm -rf conftest*
12861 glibcpp_cv_func__expf_use=no
12863 rm -f conftest*
12864 ac_ext=c
12865 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12866 ac_cpp='$CPP $CPPFLAGS'
12867 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12868 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12869 cross_compiling=$ac_cv_prog_cc_cross
12875 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12877 if test x$glibcpp_cv_func__expf_use = x"yes"; then
12878 for ac_func in _expf
12880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12881 echo "configure:12882: checking for $ac_func" >&5
12882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12883 echo $ac_n "(cached) $ac_c" 1>&6
12884 else
12885 cat > conftest.$ac_ext <<EOF
12886 #line 12887 "configure"
12887 #include "confdefs.h"
12888 /* System header to define __stub macros and hopefully few prototypes,
12889 which can conflict with char $ac_func(); below. */
12890 #include <assert.h>
12891 /* Override any gcc2 internal prototype to avoid an error. */
12892 /* We use char because int might match the return type of a gcc2
12893 builtin and then its argument prototype would still apply. */
12894 char $ac_func();
12896 int main() {
12898 /* The GNU C library defines this for functions which it implements
12899 to always fail with ENOSYS. Some functions are actually named
12900 something starting with __ and the normal name is an alias. */
12901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12902 choke me
12903 #else
12904 $ac_func();
12905 #endif
12907 ; return 0; }
12909 if { (eval echo configure:12910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12910 rm -rf conftest*
12911 eval "ac_cv_func_$ac_func=yes"
12912 else
12913 echo "configure: failed program was:" >&5
12914 cat conftest.$ac_ext >&5
12915 rm -rf conftest*
12916 eval "ac_cv_func_$ac_func=no"
12918 rm -f conftest*
12921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12922 echo "$ac_t""yes" 1>&6
12923 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12924 cat >> confdefs.h <<EOF
12925 #define $ac_tr_func 1
12928 else
12929 echo "$ac_t""no" 1>&6
12931 done
12938 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12939 echo "configure:12940: checking for isnanf declaration" >&5
12940 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12941 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12942 echo $ac_n "(cached) $ac_c" 1>&6
12943 else
12946 ac_ext=C
12947 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12948 ac_cpp='$CXXCPP $CPPFLAGS'
12949 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12950 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12951 cross_compiling=$ac_cv_prog_cxx_cross
12953 cat > conftest.$ac_ext <<EOF
12954 #line 12955 "configure"
12955 #include "confdefs.h"
12956 #include <math.h>
12957 #ifdef HAVE_IEEEFP_H
12958 #include <ieeefp.h>
12959 #endif
12961 int main() {
12962 isnanf(0);
12963 ; return 0; }
12965 if { (eval echo configure:12966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12966 rm -rf conftest*
12967 glibcpp_cv_func_isnanf_use=yes
12968 else
12969 echo "configure: failed program was:" >&5
12970 cat conftest.$ac_ext >&5
12971 rm -rf conftest*
12972 glibcpp_cv_func_isnanf_use=no
12974 rm -f conftest*
12975 ac_ext=c
12976 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12977 ac_cpp='$CPP $CPPFLAGS'
12978 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12979 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12980 cross_compiling=$ac_cv_prog_cc_cross
12986 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12988 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12989 for ac_func in isnanf
12991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12992 echo "configure:12993: checking for $ac_func" >&5
12993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12994 echo $ac_n "(cached) $ac_c" 1>&6
12995 else
12996 cat > conftest.$ac_ext <<EOF
12997 #line 12998 "configure"
12998 #include "confdefs.h"
12999 /* System header to define __stub macros and hopefully few prototypes,
13000 which can conflict with char $ac_func(); below. */
13001 #include <assert.h>
13002 /* Override any gcc2 internal prototype to avoid an error. */
13003 /* We use char because int might match the return type of a gcc2
13004 builtin and then its argument prototype would still apply. */
13005 char $ac_func();
13007 int main() {
13009 /* The GNU C library defines this for functions which it implements
13010 to always fail with ENOSYS. Some functions are actually named
13011 something starting with __ and the normal name is an alias. */
13012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13013 choke me
13014 #else
13015 $ac_func();
13016 #endif
13018 ; return 0; }
13020 if { (eval echo configure:13021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13021 rm -rf conftest*
13022 eval "ac_cv_func_$ac_func=yes"
13023 else
13024 echo "configure: failed program was:" >&5
13025 cat conftest.$ac_ext >&5
13026 rm -rf conftest*
13027 eval "ac_cv_func_$ac_func=no"
13029 rm -f conftest*
13032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13033 echo "$ac_t""yes" 1>&6
13034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13035 cat >> confdefs.h <<EOF
13036 #define $ac_tr_func 1
13039 else
13040 echo "$ac_t""no" 1>&6
13042 done
13044 else
13046 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
13047 echo "configure:13048: checking for _isnanf declaration" >&5
13048 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
13049 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
13050 echo $ac_n "(cached) $ac_c" 1>&6
13051 else
13054 ac_ext=C
13055 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13056 ac_cpp='$CXXCPP $CPPFLAGS'
13057 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13058 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13059 cross_compiling=$ac_cv_prog_cxx_cross
13061 cat > conftest.$ac_ext <<EOF
13062 #line 13063 "configure"
13063 #include "confdefs.h"
13064 #include <math.h>
13065 #ifdef HAVE_IEEEFP_H
13066 #include <ieeefp.h>
13067 #endif
13069 int main() {
13070 _isnanf(0);
13071 ; return 0; }
13073 if { (eval echo configure:13074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13074 rm -rf conftest*
13075 glibcpp_cv_func__isnanf_use=yes
13076 else
13077 echo "configure: failed program was:" >&5
13078 cat conftest.$ac_ext >&5
13079 rm -rf conftest*
13080 glibcpp_cv_func__isnanf_use=no
13082 rm -f conftest*
13083 ac_ext=c
13084 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13085 ac_cpp='$CPP $CPPFLAGS'
13086 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13087 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13088 cross_compiling=$ac_cv_prog_cc_cross
13094 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13096 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13097 for ac_func in _isnanf
13099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13100 echo "configure:13101: checking for $ac_func" >&5
13101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13102 echo $ac_n "(cached) $ac_c" 1>&6
13103 else
13104 cat > conftest.$ac_ext <<EOF
13105 #line 13106 "configure"
13106 #include "confdefs.h"
13107 /* System header to define __stub macros and hopefully few prototypes,
13108 which can conflict with char $ac_func(); below. */
13109 #include <assert.h>
13110 /* Override any gcc2 internal prototype to avoid an error. */
13111 /* We use char because int might match the return type of a gcc2
13112 builtin and then its argument prototype would still apply. */
13113 char $ac_func();
13115 int main() {
13117 /* The GNU C library defines this for functions which it implements
13118 to always fail with ENOSYS. Some functions are actually named
13119 something starting with __ and the normal name is an alias. */
13120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13121 choke me
13122 #else
13123 $ac_func();
13124 #endif
13126 ; return 0; }
13128 if { (eval echo configure:13129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13129 rm -rf conftest*
13130 eval "ac_cv_func_$ac_func=yes"
13131 else
13132 echo "configure: failed program was:" >&5
13133 cat conftest.$ac_ext >&5
13134 rm -rf conftest*
13135 eval "ac_cv_func_$ac_func=no"
13137 rm -f conftest*
13140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13141 echo "$ac_t""yes" 1>&6
13142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13143 cat >> confdefs.h <<EOF
13144 #define $ac_tr_func 1
13147 else
13148 echo "$ac_t""no" 1>&6
13150 done
13157 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13158 echo "configure:13159: checking for isinff declaration" >&5
13159 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13160 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13161 echo $ac_n "(cached) $ac_c" 1>&6
13162 else
13165 ac_ext=C
13166 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13167 ac_cpp='$CXXCPP $CPPFLAGS'
13168 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13169 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13170 cross_compiling=$ac_cv_prog_cxx_cross
13172 cat > conftest.$ac_ext <<EOF
13173 #line 13174 "configure"
13174 #include "confdefs.h"
13175 #include <math.h>
13176 #ifdef HAVE_IEEEFP_H
13177 #include <ieeefp.h>
13178 #endif
13180 int main() {
13181 isinff(0);
13182 ; return 0; }
13184 if { (eval echo configure:13185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13185 rm -rf conftest*
13186 glibcpp_cv_func_isinff_use=yes
13187 else
13188 echo "configure: failed program was:" >&5
13189 cat conftest.$ac_ext >&5
13190 rm -rf conftest*
13191 glibcpp_cv_func_isinff_use=no
13193 rm -f conftest*
13194 ac_ext=c
13195 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13196 ac_cpp='$CPP $CPPFLAGS'
13197 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13198 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13199 cross_compiling=$ac_cv_prog_cc_cross
13205 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13207 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13208 for ac_func in isinff
13210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13211 echo "configure:13212: checking for $ac_func" >&5
13212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13213 echo $ac_n "(cached) $ac_c" 1>&6
13214 else
13215 cat > conftest.$ac_ext <<EOF
13216 #line 13217 "configure"
13217 #include "confdefs.h"
13218 /* System header to define __stub macros and hopefully few prototypes,
13219 which can conflict with char $ac_func(); below. */
13220 #include <assert.h>
13221 /* Override any gcc2 internal prototype to avoid an error. */
13222 /* We use char because int might match the return type of a gcc2
13223 builtin and then its argument prototype would still apply. */
13224 char $ac_func();
13226 int main() {
13228 /* The GNU C library defines this for functions which it implements
13229 to always fail with ENOSYS. Some functions are actually named
13230 something starting with __ and the normal name is an alias. */
13231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13232 choke me
13233 #else
13234 $ac_func();
13235 #endif
13237 ; return 0; }
13239 if { (eval echo configure:13240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13240 rm -rf conftest*
13241 eval "ac_cv_func_$ac_func=yes"
13242 else
13243 echo "configure: failed program was:" >&5
13244 cat conftest.$ac_ext >&5
13245 rm -rf conftest*
13246 eval "ac_cv_func_$ac_func=no"
13248 rm -f conftest*
13251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13252 echo "$ac_t""yes" 1>&6
13253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13254 cat >> confdefs.h <<EOF
13255 #define $ac_tr_func 1
13258 else
13259 echo "$ac_t""no" 1>&6
13261 done
13263 else
13265 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13266 echo "configure:13267: checking for _isinff declaration" >&5
13267 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13268 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13269 echo $ac_n "(cached) $ac_c" 1>&6
13270 else
13273 ac_ext=C
13274 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13275 ac_cpp='$CXXCPP $CPPFLAGS'
13276 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13277 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13278 cross_compiling=$ac_cv_prog_cxx_cross
13280 cat > conftest.$ac_ext <<EOF
13281 #line 13282 "configure"
13282 #include "confdefs.h"
13283 #include <math.h>
13284 #ifdef HAVE_IEEEFP_H
13285 #include <ieeefp.h>
13286 #endif
13288 int main() {
13289 _isinff(0);
13290 ; return 0; }
13292 if { (eval echo configure:13293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13293 rm -rf conftest*
13294 glibcpp_cv_func__isinff_use=yes
13295 else
13296 echo "configure: failed program was:" >&5
13297 cat conftest.$ac_ext >&5
13298 rm -rf conftest*
13299 glibcpp_cv_func__isinff_use=no
13301 rm -f conftest*
13302 ac_ext=c
13303 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13304 ac_cpp='$CPP $CPPFLAGS'
13305 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13306 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13307 cross_compiling=$ac_cv_prog_cc_cross
13313 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13315 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13316 for ac_func in _isinff
13318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13319 echo "configure:13320: checking for $ac_func" >&5
13320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13321 echo $ac_n "(cached) $ac_c" 1>&6
13322 else
13323 cat > conftest.$ac_ext <<EOF
13324 #line 13325 "configure"
13325 #include "confdefs.h"
13326 /* System header to define __stub macros and hopefully few prototypes,
13327 which can conflict with char $ac_func(); below. */
13328 #include <assert.h>
13329 /* Override any gcc2 internal prototype to avoid an error. */
13330 /* We use char because int might match the return type of a gcc2
13331 builtin and then its argument prototype would still apply. */
13332 char $ac_func();
13334 int main() {
13336 /* The GNU C library defines this for functions which it implements
13337 to always fail with ENOSYS. Some functions are actually named
13338 something starting with __ and the normal name is an alias. */
13339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13340 choke me
13341 #else
13342 $ac_func();
13343 #endif
13345 ; return 0; }
13347 if { (eval echo configure:13348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13348 rm -rf conftest*
13349 eval "ac_cv_func_$ac_func=yes"
13350 else
13351 echo "configure: failed program was:" >&5
13352 cat conftest.$ac_ext >&5
13353 rm -rf conftest*
13354 eval "ac_cv_func_$ac_func=no"
13356 rm -f conftest*
13359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13360 echo "$ac_t""yes" 1>&6
13361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13362 cat >> confdefs.h <<EOF
13363 #define $ac_tr_func 1
13366 else
13367 echo "$ac_t""no" 1>&6
13369 done
13376 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13377 echo "configure:13378: checking for atan2f declaration" >&5
13378 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13379 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13380 echo $ac_n "(cached) $ac_c" 1>&6
13381 else
13384 ac_ext=C
13385 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13386 ac_cpp='$CXXCPP $CPPFLAGS'
13387 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13388 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13389 cross_compiling=$ac_cv_prog_cxx_cross
13391 cat > conftest.$ac_ext <<EOF
13392 #line 13393 "configure"
13393 #include "confdefs.h"
13394 #include <math.h>
13395 int main() {
13396 atan2f(0, 0);
13397 ; return 0; }
13399 if { (eval echo configure:13400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13400 rm -rf conftest*
13401 glibcpp_cv_func_atan2f_use=yes
13402 else
13403 echo "configure: failed program was:" >&5
13404 cat conftest.$ac_ext >&5
13405 rm -rf conftest*
13406 glibcpp_cv_func_atan2f_use=no
13408 rm -f conftest*
13409 ac_ext=c
13410 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13411 ac_cpp='$CPP $CPPFLAGS'
13412 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13413 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13414 cross_compiling=$ac_cv_prog_cc_cross
13420 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13422 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13423 for ac_func in atan2f
13425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13426 echo "configure:13427: checking for $ac_func" >&5
13427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13428 echo $ac_n "(cached) $ac_c" 1>&6
13429 else
13430 cat > conftest.$ac_ext <<EOF
13431 #line 13432 "configure"
13432 #include "confdefs.h"
13433 /* System header to define __stub macros and hopefully few prototypes,
13434 which can conflict with char $ac_func(); below. */
13435 #include <assert.h>
13436 /* Override any gcc2 internal prototype to avoid an error. */
13437 /* We use char because int might match the return type of a gcc2
13438 builtin and then its argument prototype would still apply. */
13439 char $ac_func();
13441 int main() {
13443 /* The GNU C library defines this for functions which it implements
13444 to always fail with ENOSYS. Some functions are actually named
13445 something starting with __ and the normal name is an alias. */
13446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13447 choke me
13448 #else
13449 $ac_func();
13450 #endif
13452 ; return 0; }
13454 if { (eval echo configure:13455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13455 rm -rf conftest*
13456 eval "ac_cv_func_$ac_func=yes"
13457 else
13458 echo "configure: failed program was:" >&5
13459 cat conftest.$ac_ext >&5
13460 rm -rf conftest*
13461 eval "ac_cv_func_$ac_func=no"
13463 rm -f conftest*
13466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13467 echo "$ac_t""yes" 1>&6
13468 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13469 cat >> confdefs.h <<EOF
13470 #define $ac_tr_func 1
13473 else
13474 echo "$ac_t""no" 1>&6
13476 done
13478 else
13480 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13481 echo "configure:13482: checking for _atan2f declaration" >&5
13482 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13483 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13484 echo $ac_n "(cached) $ac_c" 1>&6
13485 else
13488 ac_ext=C
13489 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13490 ac_cpp='$CXXCPP $CPPFLAGS'
13491 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13492 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13493 cross_compiling=$ac_cv_prog_cxx_cross
13495 cat > conftest.$ac_ext <<EOF
13496 #line 13497 "configure"
13497 #include "confdefs.h"
13498 #include <math.h>
13499 int main() {
13500 _atan2f(0, 0);
13501 ; return 0; }
13503 if { (eval echo configure:13504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13504 rm -rf conftest*
13505 glibcpp_cv_func__atan2f_use=yes
13506 else
13507 echo "configure: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13509 rm -rf conftest*
13510 glibcpp_cv_func__atan2f_use=no
13512 rm -f conftest*
13513 ac_ext=c
13514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13515 ac_cpp='$CPP $CPPFLAGS'
13516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13518 cross_compiling=$ac_cv_prog_cc_cross
13524 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13526 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13527 for ac_func in _atan2f
13529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13530 echo "configure:13531: checking for $ac_func" >&5
13531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13532 echo $ac_n "(cached) $ac_c" 1>&6
13533 else
13534 cat > conftest.$ac_ext <<EOF
13535 #line 13536 "configure"
13536 #include "confdefs.h"
13537 /* System header to define __stub macros and hopefully few prototypes,
13538 which can conflict with char $ac_func(); below. */
13539 #include <assert.h>
13540 /* Override any gcc2 internal prototype to avoid an error. */
13541 /* We use char because int might match the return type of a gcc2
13542 builtin and then its argument prototype would still apply. */
13543 char $ac_func();
13545 int main() {
13547 /* The GNU C library defines this for functions which it implements
13548 to always fail with ENOSYS. Some functions are actually named
13549 something starting with __ and the normal name is an alias. */
13550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13551 choke me
13552 #else
13553 $ac_func();
13554 #endif
13556 ; return 0; }
13558 if { (eval echo configure:13559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13559 rm -rf conftest*
13560 eval "ac_cv_func_$ac_func=yes"
13561 else
13562 echo "configure: failed program was:" >&5
13563 cat conftest.$ac_ext >&5
13564 rm -rf conftest*
13565 eval "ac_cv_func_$ac_func=no"
13567 rm -f conftest*
13570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13571 echo "$ac_t""yes" 1>&6
13572 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13573 cat >> confdefs.h <<EOF
13574 #define $ac_tr_func 1
13577 else
13578 echo "$ac_t""no" 1>&6
13580 done
13587 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13588 echo "configure:13589: checking for fabsf declaration" >&5
13589 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13590 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13591 echo $ac_n "(cached) $ac_c" 1>&6
13592 else
13595 ac_ext=C
13596 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13597 ac_cpp='$CXXCPP $CPPFLAGS'
13598 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13599 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13600 cross_compiling=$ac_cv_prog_cxx_cross
13602 cat > conftest.$ac_ext <<EOF
13603 #line 13604 "configure"
13604 #include "confdefs.h"
13605 #include <math.h>
13606 #ifdef HAVE_IEEEFP_H
13607 #include <ieeefp.h>
13608 #endif
13610 int main() {
13611 fabsf(0);
13612 ; return 0; }
13614 if { (eval echo configure:13615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13615 rm -rf conftest*
13616 glibcpp_cv_func_fabsf_use=yes
13617 else
13618 echo "configure: failed program was:" >&5
13619 cat conftest.$ac_ext >&5
13620 rm -rf conftest*
13621 glibcpp_cv_func_fabsf_use=no
13623 rm -f conftest*
13624 ac_ext=c
13625 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13626 ac_cpp='$CPP $CPPFLAGS'
13627 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13628 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13629 cross_compiling=$ac_cv_prog_cc_cross
13635 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13637 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13638 for ac_func in fabsf
13640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13641 echo "configure:13642: checking for $ac_func" >&5
13642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13643 echo $ac_n "(cached) $ac_c" 1>&6
13644 else
13645 cat > conftest.$ac_ext <<EOF
13646 #line 13647 "configure"
13647 #include "confdefs.h"
13648 /* System header to define __stub macros and hopefully few prototypes,
13649 which can conflict with char $ac_func(); below. */
13650 #include <assert.h>
13651 /* Override any gcc2 internal prototype to avoid an error. */
13652 /* We use char because int might match the return type of a gcc2
13653 builtin and then its argument prototype would still apply. */
13654 char $ac_func();
13656 int main() {
13658 /* The GNU C library defines this for functions which it implements
13659 to always fail with ENOSYS. Some functions are actually named
13660 something starting with __ and the normal name is an alias. */
13661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13662 choke me
13663 #else
13664 $ac_func();
13665 #endif
13667 ; return 0; }
13669 if { (eval echo configure:13670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13670 rm -rf conftest*
13671 eval "ac_cv_func_$ac_func=yes"
13672 else
13673 echo "configure: failed program was:" >&5
13674 cat conftest.$ac_ext >&5
13675 rm -rf conftest*
13676 eval "ac_cv_func_$ac_func=no"
13678 rm -f conftest*
13681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13682 echo "$ac_t""yes" 1>&6
13683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13684 cat >> confdefs.h <<EOF
13685 #define $ac_tr_func 1
13688 else
13689 echo "$ac_t""no" 1>&6
13691 done
13693 else
13695 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13696 echo "configure:13697: checking for _fabsf declaration" >&5
13697 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13698 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13699 echo $ac_n "(cached) $ac_c" 1>&6
13700 else
13703 ac_ext=C
13704 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13705 ac_cpp='$CXXCPP $CPPFLAGS'
13706 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13707 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13708 cross_compiling=$ac_cv_prog_cxx_cross
13710 cat > conftest.$ac_ext <<EOF
13711 #line 13712 "configure"
13712 #include "confdefs.h"
13713 #include <math.h>
13714 #ifdef HAVE_IEEEFP_H
13715 #include <ieeefp.h>
13716 #endif
13718 int main() {
13719 _fabsf(0);
13720 ; return 0; }
13722 if { (eval echo configure:13723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13723 rm -rf conftest*
13724 glibcpp_cv_func__fabsf_use=yes
13725 else
13726 echo "configure: failed program was:" >&5
13727 cat conftest.$ac_ext >&5
13728 rm -rf conftest*
13729 glibcpp_cv_func__fabsf_use=no
13731 rm -f conftest*
13732 ac_ext=c
13733 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13734 ac_cpp='$CPP $CPPFLAGS'
13735 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13736 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13737 cross_compiling=$ac_cv_prog_cc_cross
13743 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13745 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13746 for ac_func in _fabsf
13748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13749 echo "configure:13750: checking for $ac_func" >&5
13750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13751 echo $ac_n "(cached) $ac_c" 1>&6
13752 else
13753 cat > conftest.$ac_ext <<EOF
13754 #line 13755 "configure"
13755 #include "confdefs.h"
13756 /* System header to define __stub macros and hopefully few prototypes,
13757 which can conflict with char $ac_func(); below. */
13758 #include <assert.h>
13759 /* Override any gcc2 internal prototype to avoid an error. */
13760 /* We use char because int might match the return type of a gcc2
13761 builtin and then its argument prototype would still apply. */
13762 char $ac_func();
13764 int main() {
13766 /* The GNU C library defines this for functions which it implements
13767 to always fail with ENOSYS. Some functions are actually named
13768 something starting with __ and the normal name is an alias. */
13769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13770 choke me
13771 #else
13772 $ac_func();
13773 #endif
13775 ; return 0; }
13777 if { (eval echo configure:13778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13778 rm -rf conftest*
13779 eval "ac_cv_func_$ac_func=yes"
13780 else
13781 echo "configure: failed program was:" >&5
13782 cat conftest.$ac_ext >&5
13783 rm -rf conftest*
13784 eval "ac_cv_func_$ac_func=no"
13786 rm -f conftest*
13789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13790 echo "$ac_t""yes" 1>&6
13791 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13792 cat >> confdefs.h <<EOF
13793 #define $ac_tr_func 1
13796 else
13797 echo "$ac_t""no" 1>&6
13799 done
13806 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13807 echo "configure:13808: checking for fmodf declaration" >&5
13808 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13809 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13810 echo $ac_n "(cached) $ac_c" 1>&6
13811 else
13814 ac_ext=C
13815 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13816 ac_cpp='$CXXCPP $CPPFLAGS'
13817 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13818 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13819 cross_compiling=$ac_cv_prog_cxx_cross
13821 cat > conftest.$ac_ext <<EOF
13822 #line 13823 "configure"
13823 #include "confdefs.h"
13824 #include <math.h>
13825 int main() {
13826 fmodf(0, 0);
13827 ; return 0; }
13829 if { (eval echo configure:13830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13830 rm -rf conftest*
13831 glibcpp_cv_func_fmodf_use=yes
13832 else
13833 echo "configure: failed program was:" >&5
13834 cat conftest.$ac_ext >&5
13835 rm -rf conftest*
13836 glibcpp_cv_func_fmodf_use=no
13838 rm -f conftest*
13839 ac_ext=c
13840 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13841 ac_cpp='$CPP $CPPFLAGS'
13842 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13843 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13844 cross_compiling=$ac_cv_prog_cc_cross
13850 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13852 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13853 for ac_func in fmodf
13855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13856 echo "configure:13857: checking for $ac_func" >&5
13857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13858 echo $ac_n "(cached) $ac_c" 1>&6
13859 else
13860 cat > conftest.$ac_ext <<EOF
13861 #line 13862 "configure"
13862 #include "confdefs.h"
13863 /* System header to define __stub macros and hopefully few prototypes,
13864 which can conflict with char $ac_func(); below. */
13865 #include <assert.h>
13866 /* Override any gcc2 internal prototype to avoid an error. */
13867 /* We use char because int might match the return type of a gcc2
13868 builtin and then its argument prototype would still apply. */
13869 char $ac_func();
13871 int main() {
13873 /* The GNU C library defines this for functions which it implements
13874 to always fail with ENOSYS. Some functions are actually named
13875 something starting with __ and the normal name is an alias. */
13876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13877 choke me
13878 #else
13879 $ac_func();
13880 #endif
13882 ; return 0; }
13884 if { (eval echo configure:13885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13885 rm -rf conftest*
13886 eval "ac_cv_func_$ac_func=yes"
13887 else
13888 echo "configure: failed program was:" >&5
13889 cat conftest.$ac_ext >&5
13890 rm -rf conftest*
13891 eval "ac_cv_func_$ac_func=no"
13893 rm -f conftest*
13896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13897 echo "$ac_t""yes" 1>&6
13898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13899 cat >> confdefs.h <<EOF
13900 #define $ac_tr_func 1
13903 else
13904 echo "$ac_t""no" 1>&6
13906 done
13908 else
13910 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13911 echo "configure:13912: checking for _fmodf declaration" >&5
13912 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13913 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13914 echo $ac_n "(cached) $ac_c" 1>&6
13915 else
13918 ac_ext=C
13919 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13920 ac_cpp='$CXXCPP $CPPFLAGS'
13921 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13922 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13923 cross_compiling=$ac_cv_prog_cxx_cross
13925 cat > conftest.$ac_ext <<EOF
13926 #line 13927 "configure"
13927 #include "confdefs.h"
13928 #include <math.h>
13929 int main() {
13930 _fmodf(0, 0);
13931 ; return 0; }
13933 if { (eval echo configure:13934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13934 rm -rf conftest*
13935 glibcpp_cv_func__fmodf_use=yes
13936 else
13937 echo "configure: failed program was:" >&5
13938 cat conftest.$ac_ext >&5
13939 rm -rf conftest*
13940 glibcpp_cv_func__fmodf_use=no
13942 rm -f conftest*
13943 ac_ext=c
13944 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13945 ac_cpp='$CPP $CPPFLAGS'
13946 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13947 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13948 cross_compiling=$ac_cv_prog_cc_cross
13954 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13956 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13957 for ac_func in _fmodf
13959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13960 echo "configure:13961: checking for $ac_func" >&5
13961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13962 echo $ac_n "(cached) $ac_c" 1>&6
13963 else
13964 cat > conftest.$ac_ext <<EOF
13965 #line 13966 "configure"
13966 #include "confdefs.h"
13967 /* System header to define __stub macros and hopefully few prototypes,
13968 which can conflict with char $ac_func(); below. */
13969 #include <assert.h>
13970 /* Override any gcc2 internal prototype to avoid an error. */
13971 /* We use char because int might match the return type of a gcc2
13972 builtin and then its argument prototype would still apply. */
13973 char $ac_func();
13975 int main() {
13977 /* The GNU C library defines this for functions which it implements
13978 to always fail with ENOSYS. Some functions are actually named
13979 something starting with __ and the normal name is an alias. */
13980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13981 choke me
13982 #else
13983 $ac_func();
13984 #endif
13986 ; return 0; }
13988 if { (eval echo configure:13989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13989 rm -rf conftest*
13990 eval "ac_cv_func_$ac_func=yes"
13991 else
13992 echo "configure: failed program was:" >&5
13993 cat conftest.$ac_ext >&5
13994 rm -rf conftest*
13995 eval "ac_cv_func_$ac_func=no"
13997 rm -f conftest*
14000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14001 echo "$ac_t""yes" 1>&6
14002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14003 cat >> confdefs.h <<EOF
14004 #define $ac_tr_func 1
14007 else
14008 echo "$ac_t""no" 1>&6
14010 done
14017 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
14018 echo "configure:14019: checking for frexpf declaration" >&5
14019 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
14020 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
14021 echo $ac_n "(cached) $ac_c" 1>&6
14022 else
14025 ac_ext=C
14026 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14027 ac_cpp='$CXXCPP $CPPFLAGS'
14028 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14029 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14030 cross_compiling=$ac_cv_prog_cxx_cross
14032 cat > conftest.$ac_ext <<EOF
14033 #line 14034 "configure"
14034 #include "confdefs.h"
14035 #include <math.h>
14036 int main() {
14037 frexpf(0, 0);
14038 ; return 0; }
14040 if { (eval echo configure:14041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14041 rm -rf conftest*
14042 glibcpp_cv_func_frexpf_use=yes
14043 else
14044 echo "configure: failed program was:" >&5
14045 cat conftest.$ac_ext >&5
14046 rm -rf conftest*
14047 glibcpp_cv_func_frexpf_use=no
14049 rm -f conftest*
14050 ac_ext=c
14051 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14052 ac_cpp='$CPP $CPPFLAGS'
14053 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14054 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14055 cross_compiling=$ac_cv_prog_cc_cross
14061 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
14063 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
14064 for ac_func in frexpf
14066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14067 echo "configure:14068: checking for $ac_func" >&5
14068 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14069 echo $ac_n "(cached) $ac_c" 1>&6
14070 else
14071 cat > conftest.$ac_ext <<EOF
14072 #line 14073 "configure"
14073 #include "confdefs.h"
14074 /* System header to define __stub macros and hopefully few prototypes,
14075 which can conflict with char $ac_func(); below. */
14076 #include <assert.h>
14077 /* Override any gcc2 internal prototype to avoid an error. */
14078 /* We use char because int might match the return type of a gcc2
14079 builtin and then its argument prototype would still apply. */
14080 char $ac_func();
14082 int main() {
14084 /* The GNU C library defines this for functions which it implements
14085 to always fail with ENOSYS. Some functions are actually named
14086 something starting with __ and the normal name is an alias. */
14087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14088 choke me
14089 #else
14090 $ac_func();
14091 #endif
14093 ; return 0; }
14095 if { (eval echo configure:14096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14096 rm -rf conftest*
14097 eval "ac_cv_func_$ac_func=yes"
14098 else
14099 echo "configure: failed program was:" >&5
14100 cat conftest.$ac_ext >&5
14101 rm -rf conftest*
14102 eval "ac_cv_func_$ac_func=no"
14104 rm -f conftest*
14107 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14108 echo "$ac_t""yes" 1>&6
14109 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14110 cat >> confdefs.h <<EOF
14111 #define $ac_tr_func 1
14114 else
14115 echo "$ac_t""no" 1>&6
14117 done
14119 else
14121 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14122 echo "configure:14123: checking for _frexpf declaration" >&5
14123 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14124 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14125 echo $ac_n "(cached) $ac_c" 1>&6
14126 else
14129 ac_ext=C
14130 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14131 ac_cpp='$CXXCPP $CPPFLAGS'
14132 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14133 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14134 cross_compiling=$ac_cv_prog_cxx_cross
14136 cat > conftest.$ac_ext <<EOF
14137 #line 14138 "configure"
14138 #include "confdefs.h"
14139 #include <math.h>
14140 int main() {
14141 _frexpf(0, 0);
14142 ; return 0; }
14144 if { (eval echo configure:14145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14145 rm -rf conftest*
14146 glibcpp_cv_func__frexpf_use=yes
14147 else
14148 echo "configure: failed program was:" >&5
14149 cat conftest.$ac_ext >&5
14150 rm -rf conftest*
14151 glibcpp_cv_func__frexpf_use=no
14153 rm -f conftest*
14154 ac_ext=c
14155 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14156 ac_cpp='$CPP $CPPFLAGS'
14157 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14158 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14159 cross_compiling=$ac_cv_prog_cc_cross
14165 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14167 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14168 for ac_func in _frexpf
14170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14171 echo "configure:14172: checking for $ac_func" >&5
14172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14173 echo $ac_n "(cached) $ac_c" 1>&6
14174 else
14175 cat > conftest.$ac_ext <<EOF
14176 #line 14177 "configure"
14177 #include "confdefs.h"
14178 /* System header to define __stub macros and hopefully few prototypes,
14179 which can conflict with char $ac_func(); below. */
14180 #include <assert.h>
14181 /* Override any gcc2 internal prototype to avoid an error. */
14182 /* We use char because int might match the return type of a gcc2
14183 builtin and then its argument prototype would still apply. */
14184 char $ac_func();
14186 int main() {
14188 /* The GNU C library defines this for functions which it implements
14189 to always fail with ENOSYS. Some functions are actually named
14190 something starting with __ and the normal name is an alias. */
14191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14192 choke me
14193 #else
14194 $ac_func();
14195 #endif
14197 ; return 0; }
14199 if { (eval echo configure:14200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14200 rm -rf conftest*
14201 eval "ac_cv_func_$ac_func=yes"
14202 else
14203 echo "configure: failed program was:" >&5
14204 cat conftest.$ac_ext >&5
14205 rm -rf conftest*
14206 eval "ac_cv_func_$ac_func=no"
14208 rm -f conftest*
14211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14212 echo "$ac_t""yes" 1>&6
14213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14214 cat >> confdefs.h <<EOF
14215 #define $ac_tr_func 1
14218 else
14219 echo "$ac_t""no" 1>&6
14221 done
14228 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14229 echo "configure:14230: checking for hypotf declaration" >&5
14230 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14231 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14232 echo $ac_n "(cached) $ac_c" 1>&6
14233 else
14236 ac_ext=C
14237 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14238 ac_cpp='$CXXCPP $CPPFLAGS'
14239 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14240 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14241 cross_compiling=$ac_cv_prog_cxx_cross
14243 cat > conftest.$ac_ext <<EOF
14244 #line 14245 "configure"
14245 #include "confdefs.h"
14246 #include <math.h>
14247 int main() {
14248 hypotf(0, 0);
14249 ; return 0; }
14251 if { (eval echo configure:14252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14252 rm -rf conftest*
14253 glibcpp_cv_func_hypotf_use=yes
14254 else
14255 echo "configure: failed program was:" >&5
14256 cat conftest.$ac_ext >&5
14257 rm -rf conftest*
14258 glibcpp_cv_func_hypotf_use=no
14260 rm -f conftest*
14261 ac_ext=c
14262 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14263 ac_cpp='$CPP $CPPFLAGS'
14264 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14265 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14266 cross_compiling=$ac_cv_prog_cc_cross
14272 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14274 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14275 for ac_func in hypotf
14277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14278 echo "configure:14279: checking for $ac_func" >&5
14279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14280 echo $ac_n "(cached) $ac_c" 1>&6
14281 else
14282 cat > conftest.$ac_ext <<EOF
14283 #line 14284 "configure"
14284 #include "confdefs.h"
14285 /* System header to define __stub macros and hopefully few prototypes,
14286 which can conflict with char $ac_func(); below. */
14287 #include <assert.h>
14288 /* Override any gcc2 internal prototype to avoid an error. */
14289 /* We use char because int might match the return type of a gcc2
14290 builtin and then its argument prototype would still apply. */
14291 char $ac_func();
14293 int main() {
14295 /* The GNU C library defines this for functions which it implements
14296 to always fail with ENOSYS. Some functions are actually named
14297 something starting with __ and the normal name is an alias. */
14298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14299 choke me
14300 #else
14301 $ac_func();
14302 #endif
14304 ; return 0; }
14306 if { (eval echo configure:14307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14307 rm -rf conftest*
14308 eval "ac_cv_func_$ac_func=yes"
14309 else
14310 echo "configure: failed program was:" >&5
14311 cat conftest.$ac_ext >&5
14312 rm -rf conftest*
14313 eval "ac_cv_func_$ac_func=no"
14315 rm -f conftest*
14318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14319 echo "$ac_t""yes" 1>&6
14320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14321 cat >> confdefs.h <<EOF
14322 #define $ac_tr_func 1
14325 else
14326 echo "$ac_t""no" 1>&6
14328 done
14330 else
14332 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14333 echo "configure:14334: checking for _hypotf declaration" >&5
14334 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14335 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14336 echo $ac_n "(cached) $ac_c" 1>&6
14337 else
14340 ac_ext=C
14341 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14342 ac_cpp='$CXXCPP $CPPFLAGS'
14343 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14344 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14345 cross_compiling=$ac_cv_prog_cxx_cross
14347 cat > conftest.$ac_ext <<EOF
14348 #line 14349 "configure"
14349 #include "confdefs.h"
14350 #include <math.h>
14351 int main() {
14352 _hypotf(0, 0);
14353 ; return 0; }
14355 if { (eval echo configure:14356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14356 rm -rf conftest*
14357 glibcpp_cv_func__hypotf_use=yes
14358 else
14359 echo "configure: failed program was:" >&5
14360 cat conftest.$ac_ext >&5
14361 rm -rf conftest*
14362 glibcpp_cv_func__hypotf_use=no
14364 rm -f conftest*
14365 ac_ext=c
14366 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14367 ac_cpp='$CPP $CPPFLAGS'
14368 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14369 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14370 cross_compiling=$ac_cv_prog_cc_cross
14376 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14378 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14379 for ac_func in _hypotf
14381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14382 echo "configure:14383: checking for $ac_func" >&5
14383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14384 echo $ac_n "(cached) $ac_c" 1>&6
14385 else
14386 cat > conftest.$ac_ext <<EOF
14387 #line 14388 "configure"
14388 #include "confdefs.h"
14389 /* System header to define __stub macros and hopefully few prototypes,
14390 which can conflict with char $ac_func(); below. */
14391 #include <assert.h>
14392 /* Override any gcc2 internal prototype to avoid an error. */
14393 /* We use char because int might match the return type of a gcc2
14394 builtin and then its argument prototype would still apply. */
14395 char $ac_func();
14397 int main() {
14399 /* The GNU C library defines this for functions which it implements
14400 to always fail with ENOSYS. Some functions are actually named
14401 something starting with __ and the normal name is an alias. */
14402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14403 choke me
14404 #else
14405 $ac_func();
14406 #endif
14408 ; return 0; }
14410 if { (eval echo configure:14411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14411 rm -rf conftest*
14412 eval "ac_cv_func_$ac_func=yes"
14413 else
14414 echo "configure: failed program was:" >&5
14415 cat conftest.$ac_ext >&5
14416 rm -rf conftest*
14417 eval "ac_cv_func_$ac_func=no"
14419 rm -f conftest*
14422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14423 echo "$ac_t""yes" 1>&6
14424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14425 cat >> confdefs.h <<EOF
14426 #define $ac_tr_func 1
14429 else
14430 echo "$ac_t""no" 1>&6
14432 done
14439 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14440 echo "configure:14441: checking for ldexpf declaration" >&5
14441 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14442 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14443 echo $ac_n "(cached) $ac_c" 1>&6
14444 else
14447 ac_ext=C
14448 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14449 ac_cpp='$CXXCPP $CPPFLAGS'
14450 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14451 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14452 cross_compiling=$ac_cv_prog_cxx_cross
14454 cat > conftest.$ac_ext <<EOF
14455 #line 14456 "configure"
14456 #include "confdefs.h"
14457 #include <math.h>
14458 int main() {
14459 ldexpf(0, 0);
14460 ; return 0; }
14462 if { (eval echo configure:14463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14463 rm -rf conftest*
14464 glibcpp_cv_func_ldexpf_use=yes
14465 else
14466 echo "configure: failed program was:" >&5
14467 cat conftest.$ac_ext >&5
14468 rm -rf conftest*
14469 glibcpp_cv_func_ldexpf_use=no
14471 rm -f conftest*
14472 ac_ext=c
14473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14474 ac_cpp='$CPP $CPPFLAGS'
14475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14477 cross_compiling=$ac_cv_prog_cc_cross
14483 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14485 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14486 for ac_func in ldexpf
14488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14489 echo "configure:14490: checking for $ac_func" >&5
14490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14491 echo $ac_n "(cached) $ac_c" 1>&6
14492 else
14493 cat > conftest.$ac_ext <<EOF
14494 #line 14495 "configure"
14495 #include "confdefs.h"
14496 /* System header to define __stub macros and hopefully few prototypes,
14497 which can conflict with char $ac_func(); below. */
14498 #include <assert.h>
14499 /* Override any gcc2 internal prototype to avoid an error. */
14500 /* We use char because int might match the return type of a gcc2
14501 builtin and then its argument prototype would still apply. */
14502 char $ac_func();
14504 int main() {
14506 /* The GNU C library defines this for functions which it implements
14507 to always fail with ENOSYS. Some functions are actually named
14508 something starting with __ and the normal name is an alias. */
14509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14510 choke me
14511 #else
14512 $ac_func();
14513 #endif
14515 ; return 0; }
14517 if { (eval echo configure:14518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14518 rm -rf conftest*
14519 eval "ac_cv_func_$ac_func=yes"
14520 else
14521 echo "configure: failed program was:" >&5
14522 cat conftest.$ac_ext >&5
14523 rm -rf conftest*
14524 eval "ac_cv_func_$ac_func=no"
14526 rm -f conftest*
14529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14530 echo "$ac_t""yes" 1>&6
14531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14532 cat >> confdefs.h <<EOF
14533 #define $ac_tr_func 1
14536 else
14537 echo "$ac_t""no" 1>&6
14539 done
14541 else
14543 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14544 echo "configure:14545: checking for _ldexpf declaration" >&5
14545 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14546 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14547 echo $ac_n "(cached) $ac_c" 1>&6
14548 else
14551 ac_ext=C
14552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14553 ac_cpp='$CXXCPP $CPPFLAGS'
14554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14556 cross_compiling=$ac_cv_prog_cxx_cross
14558 cat > conftest.$ac_ext <<EOF
14559 #line 14560 "configure"
14560 #include "confdefs.h"
14561 #include <math.h>
14562 int main() {
14563 _ldexpf(0, 0);
14564 ; return 0; }
14566 if { (eval echo configure:14567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14567 rm -rf conftest*
14568 glibcpp_cv_func__ldexpf_use=yes
14569 else
14570 echo "configure: failed program was:" >&5
14571 cat conftest.$ac_ext >&5
14572 rm -rf conftest*
14573 glibcpp_cv_func__ldexpf_use=no
14575 rm -f conftest*
14576 ac_ext=c
14577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14578 ac_cpp='$CPP $CPPFLAGS'
14579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14581 cross_compiling=$ac_cv_prog_cc_cross
14587 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14589 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14590 for ac_func in _ldexpf
14592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14593 echo "configure:14594: checking for $ac_func" >&5
14594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14595 echo $ac_n "(cached) $ac_c" 1>&6
14596 else
14597 cat > conftest.$ac_ext <<EOF
14598 #line 14599 "configure"
14599 #include "confdefs.h"
14600 /* System header to define __stub macros and hopefully few prototypes,
14601 which can conflict with char $ac_func(); below. */
14602 #include <assert.h>
14603 /* Override any gcc2 internal prototype to avoid an error. */
14604 /* We use char because int might match the return type of a gcc2
14605 builtin and then its argument prototype would still apply. */
14606 char $ac_func();
14608 int main() {
14610 /* The GNU C library defines this for functions which it implements
14611 to always fail with ENOSYS. Some functions are actually named
14612 something starting with __ and the normal name is an alias. */
14613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14614 choke me
14615 #else
14616 $ac_func();
14617 #endif
14619 ; return 0; }
14621 if { (eval echo configure:14622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14622 rm -rf conftest*
14623 eval "ac_cv_func_$ac_func=yes"
14624 else
14625 echo "configure: failed program was:" >&5
14626 cat conftest.$ac_ext >&5
14627 rm -rf conftest*
14628 eval "ac_cv_func_$ac_func=no"
14630 rm -f conftest*
14633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14634 echo "$ac_t""yes" 1>&6
14635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14636 cat >> confdefs.h <<EOF
14637 #define $ac_tr_func 1
14640 else
14641 echo "$ac_t""no" 1>&6
14643 done
14650 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14651 echo "configure:14652: checking for logf declaration" >&5
14652 if test x${glibcpp_cv_func_logf_use+set} != xset; then
14653 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14654 echo $ac_n "(cached) $ac_c" 1>&6
14655 else
14658 ac_ext=C
14659 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14660 ac_cpp='$CXXCPP $CPPFLAGS'
14661 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14662 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14663 cross_compiling=$ac_cv_prog_cxx_cross
14665 cat > conftest.$ac_ext <<EOF
14666 #line 14667 "configure"
14667 #include "confdefs.h"
14668 #include <math.h>
14669 #ifdef HAVE_IEEEFP_H
14670 #include <ieeefp.h>
14671 #endif
14673 int main() {
14674 logf(0);
14675 ; return 0; }
14677 if { (eval echo configure:14678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14678 rm -rf conftest*
14679 glibcpp_cv_func_logf_use=yes
14680 else
14681 echo "configure: failed program was:" >&5
14682 cat conftest.$ac_ext >&5
14683 rm -rf conftest*
14684 glibcpp_cv_func_logf_use=no
14686 rm -f conftest*
14687 ac_ext=c
14688 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14689 ac_cpp='$CPP $CPPFLAGS'
14690 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14691 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14692 cross_compiling=$ac_cv_prog_cc_cross
14698 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14700 if test x$glibcpp_cv_func_logf_use = x"yes"; then
14701 for ac_func in logf
14703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14704 echo "configure:14705: checking for $ac_func" >&5
14705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14706 echo $ac_n "(cached) $ac_c" 1>&6
14707 else
14708 cat > conftest.$ac_ext <<EOF
14709 #line 14710 "configure"
14710 #include "confdefs.h"
14711 /* System header to define __stub macros and hopefully few prototypes,
14712 which can conflict with char $ac_func(); below. */
14713 #include <assert.h>
14714 /* Override any gcc2 internal prototype to avoid an error. */
14715 /* We use char because int might match the return type of a gcc2
14716 builtin and then its argument prototype would still apply. */
14717 char $ac_func();
14719 int main() {
14721 /* The GNU C library defines this for functions which it implements
14722 to always fail with ENOSYS. Some functions are actually named
14723 something starting with __ and the normal name is an alias. */
14724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14725 choke me
14726 #else
14727 $ac_func();
14728 #endif
14730 ; return 0; }
14732 if { (eval echo configure:14733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14733 rm -rf conftest*
14734 eval "ac_cv_func_$ac_func=yes"
14735 else
14736 echo "configure: failed program was:" >&5
14737 cat conftest.$ac_ext >&5
14738 rm -rf conftest*
14739 eval "ac_cv_func_$ac_func=no"
14741 rm -f conftest*
14744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14745 echo "$ac_t""yes" 1>&6
14746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14747 cat >> confdefs.h <<EOF
14748 #define $ac_tr_func 1
14751 else
14752 echo "$ac_t""no" 1>&6
14754 done
14756 else
14758 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14759 echo "configure:14760: checking for _logf declaration" >&5
14760 if test x${glibcpp_cv_func__logf_use+set} != xset; then
14761 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14762 echo $ac_n "(cached) $ac_c" 1>&6
14763 else
14766 ac_ext=C
14767 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14768 ac_cpp='$CXXCPP $CPPFLAGS'
14769 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14770 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14771 cross_compiling=$ac_cv_prog_cxx_cross
14773 cat > conftest.$ac_ext <<EOF
14774 #line 14775 "configure"
14775 #include "confdefs.h"
14776 #include <math.h>
14777 #ifdef HAVE_IEEEFP_H
14778 #include <ieeefp.h>
14779 #endif
14781 int main() {
14782 _logf(0);
14783 ; return 0; }
14785 if { (eval echo configure:14786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14786 rm -rf conftest*
14787 glibcpp_cv_func__logf_use=yes
14788 else
14789 echo "configure: failed program was:" >&5
14790 cat conftest.$ac_ext >&5
14791 rm -rf conftest*
14792 glibcpp_cv_func__logf_use=no
14794 rm -f conftest*
14795 ac_ext=c
14796 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14797 ac_cpp='$CPP $CPPFLAGS'
14798 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14799 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14800 cross_compiling=$ac_cv_prog_cc_cross
14806 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14808 if test x$glibcpp_cv_func__logf_use = x"yes"; then
14809 for ac_func in _logf
14811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14812 echo "configure:14813: checking for $ac_func" >&5
14813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14814 echo $ac_n "(cached) $ac_c" 1>&6
14815 else
14816 cat > conftest.$ac_ext <<EOF
14817 #line 14818 "configure"
14818 #include "confdefs.h"
14819 /* System header to define __stub macros and hopefully few prototypes,
14820 which can conflict with char $ac_func(); below. */
14821 #include <assert.h>
14822 /* Override any gcc2 internal prototype to avoid an error. */
14823 /* We use char because int might match the return type of a gcc2
14824 builtin and then its argument prototype would still apply. */
14825 char $ac_func();
14827 int main() {
14829 /* The GNU C library defines this for functions which it implements
14830 to always fail with ENOSYS. Some functions are actually named
14831 something starting with __ and the normal name is an alias. */
14832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14833 choke me
14834 #else
14835 $ac_func();
14836 #endif
14838 ; return 0; }
14840 if { (eval echo configure:14841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14841 rm -rf conftest*
14842 eval "ac_cv_func_$ac_func=yes"
14843 else
14844 echo "configure: failed program was:" >&5
14845 cat conftest.$ac_ext >&5
14846 rm -rf conftest*
14847 eval "ac_cv_func_$ac_func=no"
14849 rm -f conftest*
14852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14853 echo "$ac_t""yes" 1>&6
14854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14855 cat >> confdefs.h <<EOF
14856 #define $ac_tr_func 1
14859 else
14860 echo "$ac_t""no" 1>&6
14862 done
14869 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14870 echo "configure:14871: checking for log10f declaration" >&5
14871 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14872 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14873 echo $ac_n "(cached) $ac_c" 1>&6
14874 else
14877 ac_ext=C
14878 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14879 ac_cpp='$CXXCPP $CPPFLAGS'
14880 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14881 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14882 cross_compiling=$ac_cv_prog_cxx_cross
14884 cat > conftest.$ac_ext <<EOF
14885 #line 14886 "configure"
14886 #include "confdefs.h"
14887 #include <math.h>
14888 #ifdef HAVE_IEEEFP_H
14889 #include <ieeefp.h>
14890 #endif
14892 int main() {
14893 log10f(0);
14894 ; return 0; }
14896 if { (eval echo configure:14897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14897 rm -rf conftest*
14898 glibcpp_cv_func_log10f_use=yes
14899 else
14900 echo "configure: failed program was:" >&5
14901 cat conftest.$ac_ext >&5
14902 rm -rf conftest*
14903 glibcpp_cv_func_log10f_use=no
14905 rm -f conftest*
14906 ac_ext=c
14907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14908 ac_cpp='$CPP $CPPFLAGS'
14909 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14910 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14911 cross_compiling=$ac_cv_prog_cc_cross
14917 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14919 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14920 for ac_func in log10f
14922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14923 echo "configure:14924: checking for $ac_func" >&5
14924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14925 echo $ac_n "(cached) $ac_c" 1>&6
14926 else
14927 cat > conftest.$ac_ext <<EOF
14928 #line 14929 "configure"
14929 #include "confdefs.h"
14930 /* System header to define __stub macros and hopefully few prototypes,
14931 which can conflict with char $ac_func(); below. */
14932 #include <assert.h>
14933 /* Override any gcc2 internal prototype to avoid an error. */
14934 /* We use char because int might match the return type of a gcc2
14935 builtin and then its argument prototype would still apply. */
14936 char $ac_func();
14938 int main() {
14940 /* The GNU C library defines this for functions which it implements
14941 to always fail with ENOSYS. Some functions are actually named
14942 something starting with __ and the normal name is an alias. */
14943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14944 choke me
14945 #else
14946 $ac_func();
14947 #endif
14949 ; return 0; }
14951 if { (eval echo configure:14952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14952 rm -rf conftest*
14953 eval "ac_cv_func_$ac_func=yes"
14954 else
14955 echo "configure: failed program was:" >&5
14956 cat conftest.$ac_ext >&5
14957 rm -rf conftest*
14958 eval "ac_cv_func_$ac_func=no"
14960 rm -f conftest*
14963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14964 echo "$ac_t""yes" 1>&6
14965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14966 cat >> confdefs.h <<EOF
14967 #define $ac_tr_func 1
14970 else
14971 echo "$ac_t""no" 1>&6
14973 done
14975 else
14977 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14978 echo "configure:14979: checking for _log10f declaration" >&5
14979 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14980 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14981 echo $ac_n "(cached) $ac_c" 1>&6
14982 else
14985 ac_ext=C
14986 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14987 ac_cpp='$CXXCPP $CPPFLAGS'
14988 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14989 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14990 cross_compiling=$ac_cv_prog_cxx_cross
14992 cat > conftest.$ac_ext <<EOF
14993 #line 14994 "configure"
14994 #include "confdefs.h"
14995 #include <math.h>
14996 #ifdef HAVE_IEEEFP_H
14997 #include <ieeefp.h>
14998 #endif
15000 int main() {
15001 _log10f(0);
15002 ; return 0; }
15004 if { (eval echo configure:15005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15005 rm -rf conftest*
15006 glibcpp_cv_func__log10f_use=yes
15007 else
15008 echo "configure: failed program was:" >&5
15009 cat conftest.$ac_ext >&5
15010 rm -rf conftest*
15011 glibcpp_cv_func__log10f_use=no
15013 rm -f conftest*
15014 ac_ext=c
15015 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15016 ac_cpp='$CPP $CPPFLAGS'
15017 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15018 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15019 cross_compiling=$ac_cv_prog_cc_cross
15025 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
15027 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
15028 for ac_func in _log10f
15030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15031 echo "configure:15032: checking for $ac_func" >&5
15032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15033 echo $ac_n "(cached) $ac_c" 1>&6
15034 else
15035 cat > conftest.$ac_ext <<EOF
15036 #line 15037 "configure"
15037 #include "confdefs.h"
15038 /* System header to define __stub macros and hopefully few prototypes,
15039 which can conflict with char $ac_func(); below. */
15040 #include <assert.h>
15041 /* Override any gcc2 internal prototype to avoid an error. */
15042 /* We use char because int might match the return type of a gcc2
15043 builtin and then its argument prototype would still apply. */
15044 char $ac_func();
15046 int main() {
15048 /* The GNU C library defines this for functions which it implements
15049 to always fail with ENOSYS. Some functions are actually named
15050 something starting with __ and the normal name is an alias. */
15051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15052 choke me
15053 #else
15054 $ac_func();
15055 #endif
15057 ; return 0; }
15059 if { (eval echo configure:15060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15060 rm -rf conftest*
15061 eval "ac_cv_func_$ac_func=yes"
15062 else
15063 echo "configure: failed program was:" >&5
15064 cat conftest.$ac_ext >&5
15065 rm -rf conftest*
15066 eval "ac_cv_func_$ac_func=no"
15068 rm -f conftest*
15071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15072 echo "$ac_t""yes" 1>&6
15073 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15074 cat >> confdefs.h <<EOF
15075 #define $ac_tr_func 1
15078 else
15079 echo "$ac_t""no" 1>&6
15081 done
15088 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15089 echo "configure:15090: checking for modff declaration" >&5
15090 if test x${glibcpp_cv_func_modff_use+set} != xset; then
15091 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15092 echo $ac_n "(cached) $ac_c" 1>&6
15093 else
15096 ac_ext=C
15097 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15098 ac_cpp='$CXXCPP $CPPFLAGS'
15099 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15100 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15101 cross_compiling=$ac_cv_prog_cxx_cross
15103 cat > conftest.$ac_ext <<EOF
15104 #line 15105 "configure"
15105 #include "confdefs.h"
15106 #include <math.h>
15107 int main() {
15108 modff(0, 0);
15109 ; return 0; }
15111 if { (eval echo configure:15112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15112 rm -rf conftest*
15113 glibcpp_cv_func_modff_use=yes
15114 else
15115 echo "configure: failed program was:" >&5
15116 cat conftest.$ac_ext >&5
15117 rm -rf conftest*
15118 glibcpp_cv_func_modff_use=no
15120 rm -f conftest*
15121 ac_ext=c
15122 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15123 ac_cpp='$CPP $CPPFLAGS'
15124 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15125 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15126 cross_compiling=$ac_cv_prog_cc_cross
15132 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15134 if test x$glibcpp_cv_func_modff_use = x"yes"; then
15135 for ac_func in modff
15137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15138 echo "configure:15139: checking for $ac_func" >&5
15139 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15140 echo $ac_n "(cached) $ac_c" 1>&6
15141 else
15142 cat > conftest.$ac_ext <<EOF
15143 #line 15144 "configure"
15144 #include "confdefs.h"
15145 /* System header to define __stub macros and hopefully few prototypes,
15146 which can conflict with char $ac_func(); below. */
15147 #include <assert.h>
15148 /* Override any gcc2 internal prototype to avoid an error. */
15149 /* We use char because int might match the return type of a gcc2
15150 builtin and then its argument prototype would still apply. */
15151 char $ac_func();
15153 int main() {
15155 /* The GNU C library defines this for functions which it implements
15156 to always fail with ENOSYS. Some functions are actually named
15157 something starting with __ and the normal name is an alias. */
15158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15159 choke me
15160 #else
15161 $ac_func();
15162 #endif
15164 ; return 0; }
15166 if { (eval echo configure:15167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15167 rm -rf conftest*
15168 eval "ac_cv_func_$ac_func=yes"
15169 else
15170 echo "configure: failed program was:" >&5
15171 cat conftest.$ac_ext >&5
15172 rm -rf conftest*
15173 eval "ac_cv_func_$ac_func=no"
15175 rm -f conftest*
15178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15179 echo "$ac_t""yes" 1>&6
15180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15181 cat >> confdefs.h <<EOF
15182 #define $ac_tr_func 1
15185 else
15186 echo "$ac_t""no" 1>&6
15188 done
15190 else
15192 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15193 echo "configure:15194: checking for _modff declaration" >&5
15194 if test x${glibcpp_cv_func__modff_use+set} != xset; then
15195 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15196 echo $ac_n "(cached) $ac_c" 1>&6
15197 else
15200 ac_ext=C
15201 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15202 ac_cpp='$CXXCPP $CPPFLAGS'
15203 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15204 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15205 cross_compiling=$ac_cv_prog_cxx_cross
15207 cat > conftest.$ac_ext <<EOF
15208 #line 15209 "configure"
15209 #include "confdefs.h"
15210 #include <math.h>
15211 int main() {
15212 _modff(0, 0);
15213 ; return 0; }
15215 if { (eval echo configure:15216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15216 rm -rf conftest*
15217 glibcpp_cv_func__modff_use=yes
15218 else
15219 echo "configure: failed program was:" >&5
15220 cat conftest.$ac_ext >&5
15221 rm -rf conftest*
15222 glibcpp_cv_func__modff_use=no
15224 rm -f conftest*
15225 ac_ext=c
15226 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15227 ac_cpp='$CPP $CPPFLAGS'
15228 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15229 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15230 cross_compiling=$ac_cv_prog_cc_cross
15236 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15238 if test x$glibcpp_cv_func__modff_use = x"yes"; then
15239 for ac_func in _modff
15241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15242 echo "configure:15243: checking for $ac_func" >&5
15243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15244 echo $ac_n "(cached) $ac_c" 1>&6
15245 else
15246 cat > conftest.$ac_ext <<EOF
15247 #line 15248 "configure"
15248 #include "confdefs.h"
15249 /* System header to define __stub macros and hopefully few prototypes,
15250 which can conflict with char $ac_func(); below. */
15251 #include <assert.h>
15252 /* Override any gcc2 internal prototype to avoid an error. */
15253 /* We use char because int might match the return type of a gcc2
15254 builtin and then its argument prototype would still apply. */
15255 char $ac_func();
15257 int main() {
15259 /* The GNU C library defines this for functions which it implements
15260 to always fail with ENOSYS. Some functions are actually named
15261 something starting with __ and the normal name is an alias. */
15262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15263 choke me
15264 #else
15265 $ac_func();
15266 #endif
15268 ; return 0; }
15270 if { (eval echo configure:15271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15271 rm -rf conftest*
15272 eval "ac_cv_func_$ac_func=yes"
15273 else
15274 echo "configure: failed program was:" >&5
15275 cat conftest.$ac_ext >&5
15276 rm -rf conftest*
15277 eval "ac_cv_func_$ac_func=no"
15279 rm -f conftest*
15282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15283 echo "$ac_t""yes" 1>&6
15284 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15285 cat >> confdefs.h <<EOF
15286 #define $ac_tr_func 1
15289 else
15290 echo "$ac_t""no" 1>&6
15292 done
15299 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15300 echo "configure:15301: checking for powf declaration" >&5
15301 if test x${glibcpp_cv_func_powf_use+set} != xset; then
15302 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15303 echo $ac_n "(cached) $ac_c" 1>&6
15304 else
15307 ac_ext=C
15308 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15309 ac_cpp='$CXXCPP $CPPFLAGS'
15310 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15311 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15312 cross_compiling=$ac_cv_prog_cxx_cross
15314 cat > conftest.$ac_ext <<EOF
15315 #line 15316 "configure"
15316 #include "confdefs.h"
15317 #include <math.h>
15318 int main() {
15319 powf(0, 0);
15320 ; return 0; }
15322 if { (eval echo configure:15323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15323 rm -rf conftest*
15324 glibcpp_cv_func_powf_use=yes
15325 else
15326 echo "configure: failed program was:" >&5
15327 cat conftest.$ac_ext >&5
15328 rm -rf conftest*
15329 glibcpp_cv_func_powf_use=no
15331 rm -f conftest*
15332 ac_ext=c
15333 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15334 ac_cpp='$CPP $CPPFLAGS'
15335 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15336 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15337 cross_compiling=$ac_cv_prog_cc_cross
15343 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15345 if test x$glibcpp_cv_func_powf_use = x"yes"; then
15346 for ac_func in powf
15348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15349 echo "configure:15350: checking for $ac_func" >&5
15350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15351 echo $ac_n "(cached) $ac_c" 1>&6
15352 else
15353 cat > conftest.$ac_ext <<EOF
15354 #line 15355 "configure"
15355 #include "confdefs.h"
15356 /* System header to define __stub macros and hopefully few prototypes,
15357 which can conflict with char $ac_func(); below. */
15358 #include <assert.h>
15359 /* Override any gcc2 internal prototype to avoid an error. */
15360 /* We use char because int might match the return type of a gcc2
15361 builtin and then its argument prototype would still apply. */
15362 char $ac_func();
15364 int main() {
15366 /* The GNU C library defines this for functions which it implements
15367 to always fail with ENOSYS. Some functions are actually named
15368 something starting with __ and the normal name is an alias. */
15369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15370 choke me
15371 #else
15372 $ac_func();
15373 #endif
15375 ; return 0; }
15377 if { (eval echo configure:15378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15378 rm -rf conftest*
15379 eval "ac_cv_func_$ac_func=yes"
15380 else
15381 echo "configure: failed program was:" >&5
15382 cat conftest.$ac_ext >&5
15383 rm -rf conftest*
15384 eval "ac_cv_func_$ac_func=no"
15386 rm -f conftest*
15389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15390 echo "$ac_t""yes" 1>&6
15391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15392 cat >> confdefs.h <<EOF
15393 #define $ac_tr_func 1
15396 else
15397 echo "$ac_t""no" 1>&6
15399 done
15401 else
15403 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15404 echo "configure:15405: checking for _powf declaration" >&5
15405 if test x${glibcpp_cv_func__powf_use+set} != xset; then
15406 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15407 echo $ac_n "(cached) $ac_c" 1>&6
15408 else
15411 ac_ext=C
15412 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15413 ac_cpp='$CXXCPP $CPPFLAGS'
15414 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15415 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15416 cross_compiling=$ac_cv_prog_cxx_cross
15418 cat > conftest.$ac_ext <<EOF
15419 #line 15420 "configure"
15420 #include "confdefs.h"
15421 #include <math.h>
15422 int main() {
15423 _powf(0, 0);
15424 ; return 0; }
15426 if { (eval echo configure:15427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15427 rm -rf conftest*
15428 glibcpp_cv_func__powf_use=yes
15429 else
15430 echo "configure: failed program was:" >&5
15431 cat conftest.$ac_ext >&5
15432 rm -rf conftest*
15433 glibcpp_cv_func__powf_use=no
15435 rm -f conftest*
15436 ac_ext=c
15437 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15438 ac_cpp='$CPP $CPPFLAGS'
15439 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15440 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15441 cross_compiling=$ac_cv_prog_cc_cross
15447 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15449 if test x$glibcpp_cv_func__powf_use = x"yes"; then
15450 for ac_func in _powf
15452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15453 echo "configure:15454: checking for $ac_func" >&5
15454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15455 echo $ac_n "(cached) $ac_c" 1>&6
15456 else
15457 cat > conftest.$ac_ext <<EOF
15458 #line 15459 "configure"
15459 #include "confdefs.h"
15460 /* System header to define __stub macros and hopefully few prototypes,
15461 which can conflict with char $ac_func(); below. */
15462 #include <assert.h>
15463 /* Override any gcc2 internal prototype to avoid an error. */
15464 /* We use char because int might match the return type of a gcc2
15465 builtin and then its argument prototype would still apply. */
15466 char $ac_func();
15468 int main() {
15470 /* The GNU C library defines this for functions which it implements
15471 to always fail with ENOSYS. Some functions are actually named
15472 something starting with __ and the normal name is an alias. */
15473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15474 choke me
15475 #else
15476 $ac_func();
15477 #endif
15479 ; return 0; }
15481 if { (eval echo configure:15482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15482 rm -rf conftest*
15483 eval "ac_cv_func_$ac_func=yes"
15484 else
15485 echo "configure: failed program was:" >&5
15486 cat conftest.$ac_ext >&5
15487 rm -rf conftest*
15488 eval "ac_cv_func_$ac_func=no"
15490 rm -f conftest*
15493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15494 echo "$ac_t""yes" 1>&6
15495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15496 cat >> confdefs.h <<EOF
15497 #define $ac_tr_func 1
15500 else
15501 echo "$ac_t""no" 1>&6
15503 done
15510 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15511 echo "configure:15512: checking for sqrtf declaration" >&5
15512 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15513 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15514 echo $ac_n "(cached) $ac_c" 1>&6
15515 else
15518 ac_ext=C
15519 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15520 ac_cpp='$CXXCPP $CPPFLAGS'
15521 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15522 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15523 cross_compiling=$ac_cv_prog_cxx_cross
15525 cat > conftest.$ac_ext <<EOF
15526 #line 15527 "configure"
15527 #include "confdefs.h"
15528 #include <math.h>
15529 #ifdef HAVE_IEEEFP_H
15530 #include <ieeefp.h>
15531 #endif
15533 int main() {
15534 sqrtf(0);
15535 ; return 0; }
15537 if { (eval echo configure:15538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15538 rm -rf conftest*
15539 glibcpp_cv_func_sqrtf_use=yes
15540 else
15541 echo "configure: failed program was:" >&5
15542 cat conftest.$ac_ext >&5
15543 rm -rf conftest*
15544 glibcpp_cv_func_sqrtf_use=no
15546 rm -f conftest*
15547 ac_ext=c
15548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15549 ac_cpp='$CPP $CPPFLAGS'
15550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15552 cross_compiling=$ac_cv_prog_cc_cross
15558 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15560 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15561 for ac_func in sqrtf
15563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15564 echo "configure:15565: checking for $ac_func" >&5
15565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15566 echo $ac_n "(cached) $ac_c" 1>&6
15567 else
15568 cat > conftest.$ac_ext <<EOF
15569 #line 15570 "configure"
15570 #include "confdefs.h"
15571 /* System header to define __stub macros and hopefully few prototypes,
15572 which can conflict with char $ac_func(); below. */
15573 #include <assert.h>
15574 /* Override any gcc2 internal prototype to avoid an error. */
15575 /* We use char because int might match the return type of a gcc2
15576 builtin and then its argument prototype would still apply. */
15577 char $ac_func();
15579 int main() {
15581 /* The GNU C library defines this for functions which it implements
15582 to always fail with ENOSYS. Some functions are actually named
15583 something starting with __ and the normal name is an alias. */
15584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15585 choke me
15586 #else
15587 $ac_func();
15588 #endif
15590 ; return 0; }
15592 if { (eval echo configure:15593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15593 rm -rf conftest*
15594 eval "ac_cv_func_$ac_func=yes"
15595 else
15596 echo "configure: failed program was:" >&5
15597 cat conftest.$ac_ext >&5
15598 rm -rf conftest*
15599 eval "ac_cv_func_$ac_func=no"
15601 rm -f conftest*
15604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15605 echo "$ac_t""yes" 1>&6
15606 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15607 cat >> confdefs.h <<EOF
15608 #define $ac_tr_func 1
15611 else
15612 echo "$ac_t""no" 1>&6
15614 done
15616 else
15618 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15619 echo "configure:15620: checking for _sqrtf declaration" >&5
15620 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15621 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15622 echo $ac_n "(cached) $ac_c" 1>&6
15623 else
15626 ac_ext=C
15627 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15628 ac_cpp='$CXXCPP $CPPFLAGS'
15629 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15630 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15631 cross_compiling=$ac_cv_prog_cxx_cross
15633 cat > conftest.$ac_ext <<EOF
15634 #line 15635 "configure"
15635 #include "confdefs.h"
15636 #include <math.h>
15637 #ifdef HAVE_IEEEFP_H
15638 #include <ieeefp.h>
15639 #endif
15641 int main() {
15642 _sqrtf(0);
15643 ; return 0; }
15645 if { (eval echo configure:15646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15646 rm -rf conftest*
15647 glibcpp_cv_func__sqrtf_use=yes
15648 else
15649 echo "configure: failed program was:" >&5
15650 cat conftest.$ac_ext >&5
15651 rm -rf conftest*
15652 glibcpp_cv_func__sqrtf_use=no
15654 rm -f conftest*
15655 ac_ext=c
15656 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15657 ac_cpp='$CPP $CPPFLAGS'
15658 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15659 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15660 cross_compiling=$ac_cv_prog_cc_cross
15666 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15668 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15669 for ac_func in _sqrtf
15671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15672 echo "configure:15673: checking for $ac_func" >&5
15673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15674 echo $ac_n "(cached) $ac_c" 1>&6
15675 else
15676 cat > conftest.$ac_ext <<EOF
15677 #line 15678 "configure"
15678 #include "confdefs.h"
15679 /* System header to define __stub macros and hopefully few prototypes,
15680 which can conflict with char $ac_func(); below. */
15681 #include <assert.h>
15682 /* Override any gcc2 internal prototype to avoid an error. */
15683 /* We use char because int might match the return type of a gcc2
15684 builtin and then its argument prototype would still apply. */
15685 char $ac_func();
15687 int main() {
15689 /* The GNU C library defines this for functions which it implements
15690 to always fail with ENOSYS. Some functions are actually named
15691 something starting with __ and the normal name is an alias. */
15692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15693 choke me
15694 #else
15695 $ac_func();
15696 #endif
15698 ; return 0; }
15700 if { (eval echo configure:15701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15701 rm -rf conftest*
15702 eval "ac_cv_func_$ac_func=yes"
15703 else
15704 echo "configure: failed program was:" >&5
15705 cat conftest.$ac_ext >&5
15706 rm -rf conftest*
15707 eval "ac_cv_func_$ac_func=no"
15709 rm -f conftest*
15712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15713 echo "$ac_t""yes" 1>&6
15714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15715 cat >> confdefs.h <<EOF
15716 #define $ac_tr_func 1
15719 else
15720 echo "$ac_t""no" 1>&6
15722 done
15729 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15730 echo "configure:15731: checking for sincosf declaration" >&5
15731 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15732 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15733 echo $ac_n "(cached) $ac_c" 1>&6
15734 else
15737 ac_ext=C
15738 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15739 ac_cpp='$CXXCPP $CPPFLAGS'
15740 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15741 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15742 cross_compiling=$ac_cv_prog_cxx_cross
15744 cat > conftest.$ac_ext <<EOF
15745 #line 15746 "configure"
15746 #include "confdefs.h"
15747 #include <math.h>
15748 int main() {
15749 sincosf(0, 0, 0);
15750 ; return 0; }
15752 if { (eval echo configure:15753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15753 rm -rf conftest*
15754 glibcpp_cv_func_sincosf_use=yes
15755 else
15756 echo "configure: failed program was:" >&5
15757 cat conftest.$ac_ext >&5
15758 rm -rf conftest*
15759 glibcpp_cv_func_sincosf_use=no
15761 rm -f conftest*
15762 ac_ext=c
15763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15764 ac_cpp='$CPP $CPPFLAGS'
15765 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15766 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15767 cross_compiling=$ac_cv_prog_cc_cross
15773 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15775 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15776 for ac_func in sincosf
15778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15779 echo "configure:15780: checking for $ac_func" >&5
15780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15781 echo $ac_n "(cached) $ac_c" 1>&6
15782 else
15783 cat > conftest.$ac_ext <<EOF
15784 #line 15785 "configure"
15785 #include "confdefs.h"
15786 /* System header to define __stub macros and hopefully few prototypes,
15787 which can conflict with char $ac_func(); below. */
15788 #include <assert.h>
15789 /* Override any gcc2 internal prototype to avoid an error. */
15790 /* We use char because int might match the return type of a gcc2
15791 builtin and then its argument prototype would still apply. */
15792 char $ac_func();
15794 int main() {
15796 /* The GNU C library defines this for functions which it implements
15797 to always fail with ENOSYS. Some functions are actually named
15798 something starting with __ and the normal name is an alias. */
15799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15800 choke me
15801 #else
15802 $ac_func();
15803 #endif
15805 ; return 0; }
15807 if { (eval echo configure:15808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15808 rm -rf conftest*
15809 eval "ac_cv_func_$ac_func=yes"
15810 else
15811 echo "configure: failed program was:" >&5
15812 cat conftest.$ac_ext >&5
15813 rm -rf conftest*
15814 eval "ac_cv_func_$ac_func=no"
15816 rm -f conftest*
15819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15820 echo "$ac_t""yes" 1>&6
15821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15822 cat >> confdefs.h <<EOF
15823 #define $ac_tr_func 1
15826 else
15827 echo "$ac_t""no" 1>&6
15829 done
15831 else
15833 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15834 echo "configure:15835: checking for _sincosf declaration" >&5
15835 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15836 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15837 echo $ac_n "(cached) $ac_c" 1>&6
15838 else
15841 ac_ext=C
15842 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15843 ac_cpp='$CXXCPP $CPPFLAGS'
15844 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15845 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15846 cross_compiling=$ac_cv_prog_cxx_cross
15848 cat > conftest.$ac_ext <<EOF
15849 #line 15850 "configure"
15850 #include "confdefs.h"
15851 #include <math.h>
15852 int main() {
15853 _sincosf(0, 0, 0);
15854 ; return 0; }
15856 if { (eval echo configure:15857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15857 rm -rf conftest*
15858 glibcpp_cv_func__sincosf_use=yes
15859 else
15860 echo "configure: failed program was:" >&5
15861 cat conftest.$ac_ext >&5
15862 rm -rf conftest*
15863 glibcpp_cv_func__sincosf_use=no
15865 rm -f conftest*
15866 ac_ext=c
15867 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15868 ac_cpp='$CPP $CPPFLAGS'
15869 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15870 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15871 cross_compiling=$ac_cv_prog_cc_cross
15877 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15879 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15880 for ac_func in _sincosf
15882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15883 echo "configure:15884: checking for $ac_func" >&5
15884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15885 echo $ac_n "(cached) $ac_c" 1>&6
15886 else
15887 cat > conftest.$ac_ext <<EOF
15888 #line 15889 "configure"
15889 #include "confdefs.h"
15890 /* System header to define __stub macros and hopefully few prototypes,
15891 which can conflict with char $ac_func(); below. */
15892 #include <assert.h>
15893 /* Override any gcc2 internal prototype to avoid an error. */
15894 /* We use char because int might match the return type of a gcc2
15895 builtin and then its argument prototype would still apply. */
15896 char $ac_func();
15898 int main() {
15900 /* The GNU C library defines this for functions which it implements
15901 to always fail with ENOSYS. Some functions are actually named
15902 something starting with __ and the normal name is an alias. */
15903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15904 choke me
15905 #else
15906 $ac_func();
15907 #endif
15909 ; return 0; }
15911 if { (eval echo configure:15912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15912 rm -rf conftest*
15913 eval "ac_cv_func_$ac_func=yes"
15914 else
15915 echo "configure: failed program was:" >&5
15916 cat conftest.$ac_ext >&5
15917 rm -rf conftest*
15918 eval "ac_cv_func_$ac_func=no"
15920 rm -f conftest*
15923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15924 echo "$ac_t""yes" 1>&6
15925 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15926 cat >> confdefs.h <<EOF
15927 #define $ac_tr_func 1
15930 else
15931 echo "$ac_t""no" 1>&6
15933 done
15940 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15941 echo "configure:15942: checking for finitef declaration" >&5
15942 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15943 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15944 echo $ac_n "(cached) $ac_c" 1>&6
15945 else
15948 ac_ext=C
15949 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15950 ac_cpp='$CXXCPP $CPPFLAGS'
15951 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15952 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15953 cross_compiling=$ac_cv_prog_cxx_cross
15955 cat > conftest.$ac_ext <<EOF
15956 #line 15957 "configure"
15957 #include "confdefs.h"
15958 #include <math.h>
15959 #ifdef HAVE_IEEEFP_H
15960 #include <ieeefp.h>
15961 #endif
15963 int main() {
15964 finitef(0);
15965 ; return 0; }
15967 if { (eval echo configure:15968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15968 rm -rf conftest*
15969 glibcpp_cv_func_finitef_use=yes
15970 else
15971 echo "configure: failed program was:" >&5
15972 cat conftest.$ac_ext >&5
15973 rm -rf conftest*
15974 glibcpp_cv_func_finitef_use=no
15976 rm -f conftest*
15977 ac_ext=c
15978 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15979 ac_cpp='$CPP $CPPFLAGS'
15980 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15981 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15982 cross_compiling=$ac_cv_prog_cc_cross
15988 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15990 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15991 for ac_func in finitef
15993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15994 echo "configure:15995: checking for $ac_func" >&5
15995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15996 echo $ac_n "(cached) $ac_c" 1>&6
15997 else
15998 cat > conftest.$ac_ext <<EOF
15999 #line 16000 "configure"
16000 #include "confdefs.h"
16001 /* System header to define __stub macros and hopefully few prototypes,
16002 which can conflict with char $ac_func(); below. */
16003 #include <assert.h>
16004 /* Override any gcc2 internal prototype to avoid an error. */
16005 /* We use char because int might match the return type of a gcc2
16006 builtin and then its argument prototype would still apply. */
16007 char $ac_func();
16009 int main() {
16011 /* The GNU C library defines this for functions which it implements
16012 to always fail with ENOSYS. Some functions are actually named
16013 something starting with __ and the normal name is an alias. */
16014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16015 choke me
16016 #else
16017 $ac_func();
16018 #endif
16020 ; return 0; }
16022 if { (eval echo configure:16023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16023 rm -rf conftest*
16024 eval "ac_cv_func_$ac_func=yes"
16025 else
16026 echo "configure: failed program was:" >&5
16027 cat conftest.$ac_ext >&5
16028 rm -rf conftest*
16029 eval "ac_cv_func_$ac_func=no"
16031 rm -f conftest*
16034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16035 echo "$ac_t""yes" 1>&6
16036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16037 cat >> confdefs.h <<EOF
16038 #define $ac_tr_func 1
16041 else
16042 echo "$ac_t""no" 1>&6
16044 done
16046 else
16048 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
16049 echo "configure:16050: checking for _finitef declaration" >&5
16050 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
16051 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
16052 echo $ac_n "(cached) $ac_c" 1>&6
16053 else
16056 ac_ext=C
16057 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16058 ac_cpp='$CXXCPP $CPPFLAGS'
16059 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16060 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16061 cross_compiling=$ac_cv_prog_cxx_cross
16063 cat > conftest.$ac_ext <<EOF
16064 #line 16065 "configure"
16065 #include "confdefs.h"
16066 #include <math.h>
16067 #ifdef HAVE_IEEEFP_H
16068 #include <ieeefp.h>
16069 #endif
16071 int main() {
16072 _finitef(0);
16073 ; return 0; }
16075 if { (eval echo configure:16076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16076 rm -rf conftest*
16077 glibcpp_cv_func__finitef_use=yes
16078 else
16079 echo "configure: failed program was:" >&5
16080 cat conftest.$ac_ext >&5
16081 rm -rf conftest*
16082 glibcpp_cv_func__finitef_use=no
16084 rm -f conftest*
16085 ac_ext=c
16086 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16087 ac_cpp='$CPP $CPPFLAGS'
16088 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16089 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16090 cross_compiling=$ac_cv_prog_cc_cross
16096 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16098 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16099 for ac_func in _finitef
16101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16102 echo "configure:16103: checking for $ac_func" >&5
16103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16104 echo $ac_n "(cached) $ac_c" 1>&6
16105 else
16106 cat > conftest.$ac_ext <<EOF
16107 #line 16108 "configure"
16108 #include "confdefs.h"
16109 /* System header to define __stub macros and hopefully few prototypes,
16110 which can conflict with char $ac_func(); below. */
16111 #include <assert.h>
16112 /* Override any gcc2 internal prototype to avoid an error. */
16113 /* We use char because int might match the return type of a gcc2
16114 builtin and then its argument prototype would still apply. */
16115 char $ac_func();
16117 int main() {
16119 /* The GNU C library defines this for functions which it implements
16120 to always fail with ENOSYS. Some functions are actually named
16121 something starting with __ and the normal name is an alias. */
16122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16123 choke me
16124 #else
16125 $ac_func();
16126 #endif
16128 ; return 0; }
16130 if { (eval echo configure:16131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16131 rm -rf conftest*
16132 eval "ac_cv_func_$ac_func=yes"
16133 else
16134 echo "configure: failed program was:" >&5
16135 cat conftest.$ac_ext >&5
16136 rm -rf conftest*
16137 eval "ac_cv_func_$ac_func=no"
16139 rm -f conftest*
16142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16143 echo "$ac_t""yes" 1>&6
16144 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16145 cat >> confdefs.h <<EOF
16146 #define $ac_tr_func 1
16149 else
16150 echo "$ac_t""no" 1>&6
16152 done
16159 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16160 echo "configure:16161: checking for long double trig functions" >&5
16161 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16162 echo $ac_n "(cached) $ac_c" 1>&6
16163 else
16166 ac_ext=C
16167 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16168 ac_cpp='$CXXCPP $CPPFLAGS'
16169 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16170 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16171 cross_compiling=$ac_cv_prog_cxx_cross
16173 cat > conftest.$ac_ext <<EOF
16174 #line 16175 "configure"
16175 #include "confdefs.h"
16176 #include <math.h>
16177 int main() {
16178 `for x in acosl asinl atanl \
16179 cosl sinl tanl \
16180 coshl sinhl tanhl; do echo "$x (0);"; done`
16181 ; return 0; }
16183 if { (eval echo configure:16184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16184 rm -rf conftest*
16185 glibcpp_cv_func_long_double_trig_use=yes
16186 else
16187 echo "configure: failed program was:" >&5
16188 cat conftest.$ac_ext >&5
16189 rm -rf conftest*
16190 glibcpp_cv_func_long_double_trig_use=no
16192 rm -f conftest*
16193 ac_ext=c
16194 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16195 ac_cpp='$CPP $CPPFLAGS'
16196 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16197 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16198 cross_compiling=$ac_cv_prog_cc_cross
16202 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16203 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16204 for ac_func in acosl asinl atanl \
16205 cosl sinl tanl \
16206 coshl sinhl tanhl
16208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16209 echo "configure:16210: checking for $ac_func" >&5
16210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16211 echo $ac_n "(cached) $ac_c" 1>&6
16212 else
16213 cat > conftest.$ac_ext <<EOF
16214 #line 16215 "configure"
16215 #include "confdefs.h"
16216 /* System header to define __stub macros and hopefully few prototypes,
16217 which can conflict with char $ac_func(); below. */
16218 #include <assert.h>
16219 /* Override any gcc2 internal prototype to avoid an error. */
16220 /* We use char because int might match the return type of a gcc2
16221 builtin and then its argument prototype would still apply. */
16222 char $ac_func();
16224 int main() {
16226 /* The GNU C library defines this for functions which it implements
16227 to always fail with ENOSYS. Some functions are actually named
16228 something starting with __ and the normal name is an alias. */
16229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16230 choke me
16231 #else
16232 $ac_func();
16233 #endif
16235 ; return 0; }
16237 if { (eval echo configure:16238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16238 rm -rf conftest*
16239 eval "ac_cv_func_$ac_func=yes"
16240 else
16241 echo "configure: failed program was:" >&5
16242 cat conftest.$ac_ext >&5
16243 rm -rf conftest*
16244 eval "ac_cv_func_$ac_func=no"
16246 rm -f conftest*
16249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16250 echo "$ac_t""yes" 1>&6
16251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16252 cat >> confdefs.h <<EOF
16253 #define $ac_tr_func 1
16256 else
16257 echo "$ac_t""no" 1>&6
16259 done
16264 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16265 echo "configure:16266: checking for long double round functions" >&5
16266 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16267 echo $ac_n "(cached) $ac_c" 1>&6
16268 else
16271 ac_ext=C
16272 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16273 ac_cpp='$CXXCPP $CPPFLAGS'
16274 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16275 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16276 cross_compiling=$ac_cv_prog_cxx_cross
16278 cat > conftest.$ac_ext <<EOF
16279 #line 16280 "configure"
16280 #include "confdefs.h"
16281 #include <math.h>
16282 int main() {
16283 `for x in ceill floorl; do echo "$x (0);"; done`
16284 ; return 0; }
16286 if { (eval echo configure:16287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16287 rm -rf conftest*
16288 glibcpp_cv_func_long_double_round_use=yes
16289 else
16290 echo "configure: failed program was:" >&5
16291 cat conftest.$ac_ext >&5
16292 rm -rf conftest*
16293 glibcpp_cv_func_long_double_round_use=no
16295 rm -f conftest*
16296 ac_ext=c
16297 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16298 ac_cpp='$CPP $CPPFLAGS'
16299 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16300 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16301 cross_compiling=$ac_cv_prog_cc_cross
16305 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16306 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16307 for ac_func in ceill floorl
16309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16310 echo "configure:16311: checking for $ac_func" >&5
16311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16312 echo $ac_n "(cached) $ac_c" 1>&6
16313 else
16314 cat > conftest.$ac_ext <<EOF
16315 #line 16316 "configure"
16316 #include "confdefs.h"
16317 /* System header to define __stub macros and hopefully few prototypes,
16318 which can conflict with char $ac_func(); below. */
16319 #include <assert.h>
16320 /* Override any gcc2 internal prototype to avoid an error. */
16321 /* We use char because int might match the return type of a gcc2
16322 builtin and then its argument prototype would still apply. */
16323 char $ac_func();
16325 int main() {
16327 /* The GNU C library defines this for functions which it implements
16328 to always fail with ENOSYS. Some functions are actually named
16329 something starting with __ and the normal name is an alias. */
16330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16331 choke me
16332 #else
16333 $ac_func();
16334 #endif
16336 ; return 0; }
16338 if { (eval echo configure:16339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16339 rm -rf conftest*
16340 eval "ac_cv_func_$ac_func=yes"
16341 else
16342 echo "configure: failed program was:" >&5
16343 cat conftest.$ac_ext >&5
16344 rm -rf conftest*
16345 eval "ac_cv_func_$ac_func=no"
16347 rm -f conftest*
16350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16351 echo "$ac_t""yes" 1>&6
16352 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16353 cat >> confdefs.h <<EOF
16354 #define $ac_tr_func 1
16357 else
16358 echo "$ac_t""no" 1>&6
16360 done
16366 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16367 echo "configure:16368: checking for isnanl declaration" >&5
16368 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16369 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16370 echo $ac_n "(cached) $ac_c" 1>&6
16371 else
16374 ac_ext=C
16375 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16376 ac_cpp='$CXXCPP $CPPFLAGS'
16377 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16378 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16379 cross_compiling=$ac_cv_prog_cxx_cross
16381 cat > conftest.$ac_ext <<EOF
16382 #line 16383 "configure"
16383 #include "confdefs.h"
16384 #include <math.h>
16385 #ifdef HAVE_IEEEFP_H
16386 #include <ieeefp.h>
16387 #endif
16389 int main() {
16390 isnanl(0);
16391 ; return 0; }
16393 if { (eval echo configure:16394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16394 rm -rf conftest*
16395 glibcpp_cv_func_isnanl_use=yes
16396 else
16397 echo "configure: failed program was:" >&5
16398 cat conftest.$ac_ext >&5
16399 rm -rf conftest*
16400 glibcpp_cv_func_isnanl_use=no
16402 rm -f conftest*
16403 ac_ext=c
16404 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16405 ac_cpp='$CPP $CPPFLAGS'
16406 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16407 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16408 cross_compiling=$ac_cv_prog_cc_cross
16414 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16416 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16417 for ac_func in isnanl
16419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16420 echo "configure:16421: checking for $ac_func" >&5
16421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16422 echo $ac_n "(cached) $ac_c" 1>&6
16423 else
16424 cat > conftest.$ac_ext <<EOF
16425 #line 16426 "configure"
16426 #include "confdefs.h"
16427 /* System header to define __stub macros and hopefully few prototypes,
16428 which can conflict with char $ac_func(); below. */
16429 #include <assert.h>
16430 /* Override any gcc2 internal prototype to avoid an error. */
16431 /* We use char because int might match the return type of a gcc2
16432 builtin and then its argument prototype would still apply. */
16433 char $ac_func();
16435 int main() {
16437 /* The GNU C library defines this for functions which it implements
16438 to always fail with ENOSYS. Some functions are actually named
16439 something starting with __ and the normal name is an alias. */
16440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16441 choke me
16442 #else
16443 $ac_func();
16444 #endif
16446 ; return 0; }
16448 if { (eval echo configure:16449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16449 rm -rf conftest*
16450 eval "ac_cv_func_$ac_func=yes"
16451 else
16452 echo "configure: failed program was:" >&5
16453 cat conftest.$ac_ext >&5
16454 rm -rf conftest*
16455 eval "ac_cv_func_$ac_func=no"
16457 rm -f conftest*
16460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16461 echo "$ac_t""yes" 1>&6
16462 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16463 cat >> confdefs.h <<EOF
16464 #define $ac_tr_func 1
16467 else
16468 echo "$ac_t""no" 1>&6
16470 done
16472 else
16474 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16475 echo "configure:16476: checking for _isnanl declaration" >&5
16476 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16477 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16478 echo $ac_n "(cached) $ac_c" 1>&6
16479 else
16482 ac_ext=C
16483 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16484 ac_cpp='$CXXCPP $CPPFLAGS'
16485 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16486 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16487 cross_compiling=$ac_cv_prog_cxx_cross
16489 cat > conftest.$ac_ext <<EOF
16490 #line 16491 "configure"
16491 #include "confdefs.h"
16492 #include <math.h>
16493 #ifdef HAVE_IEEEFP_H
16494 #include <ieeefp.h>
16495 #endif
16497 int main() {
16498 _isnanl(0);
16499 ; return 0; }
16501 if { (eval echo configure:16502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16502 rm -rf conftest*
16503 glibcpp_cv_func__isnanl_use=yes
16504 else
16505 echo "configure: failed program was:" >&5
16506 cat conftest.$ac_ext >&5
16507 rm -rf conftest*
16508 glibcpp_cv_func__isnanl_use=no
16510 rm -f conftest*
16511 ac_ext=c
16512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16513 ac_cpp='$CPP $CPPFLAGS'
16514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16516 cross_compiling=$ac_cv_prog_cc_cross
16522 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16524 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16525 for ac_func in _isnanl
16527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16528 echo "configure:16529: checking for $ac_func" >&5
16529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16530 echo $ac_n "(cached) $ac_c" 1>&6
16531 else
16532 cat > conftest.$ac_ext <<EOF
16533 #line 16534 "configure"
16534 #include "confdefs.h"
16535 /* System header to define __stub macros and hopefully few prototypes,
16536 which can conflict with char $ac_func(); below. */
16537 #include <assert.h>
16538 /* Override any gcc2 internal prototype to avoid an error. */
16539 /* We use char because int might match the return type of a gcc2
16540 builtin and then its argument prototype would still apply. */
16541 char $ac_func();
16543 int main() {
16545 /* The GNU C library defines this for functions which it implements
16546 to always fail with ENOSYS. Some functions are actually named
16547 something starting with __ and the normal name is an alias. */
16548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16549 choke me
16550 #else
16551 $ac_func();
16552 #endif
16554 ; return 0; }
16556 if { (eval echo configure:16557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16557 rm -rf conftest*
16558 eval "ac_cv_func_$ac_func=yes"
16559 else
16560 echo "configure: failed program was:" >&5
16561 cat conftest.$ac_ext >&5
16562 rm -rf conftest*
16563 eval "ac_cv_func_$ac_func=no"
16565 rm -f conftest*
16568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16569 echo "$ac_t""yes" 1>&6
16570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16571 cat >> confdefs.h <<EOF
16572 #define $ac_tr_func 1
16575 else
16576 echo "$ac_t""no" 1>&6
16578 done
16585 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16586 echo "configure:16587: checking for isinfl declaration" >&5
16587 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16588 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16589 echo $ac_n "(cached) $ac_c" 1>&6
16590 else
16593 ac_ext=C
16594 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16595 ac_cpp='$CXXCPP $CPPFLAGS'
16596 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16597 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16598 cross_compiling=$ac_cv_prog_cxx_cross
16600 cat > conftest.$ac_ext <<EOF
16601 #line 16602 "configure"
16602 #include "confdefs.h"
16603 #include <math.h>
16604 #ifdef HAVE_IEEEFP_H
16605 #include <ieeefp.h>
16606 #endif
16608 int main() {
16609 isinfl(0);
16610 ; return 0; }
16612 if { (eval echo configure:16613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16613 rm -rf conftest*
16614 glibcpp_cv_func_isinfl_use=yes
16615 else
16616 echo "configure: failed program was:" >&5
16617 cat conftest.$ac_ext >&5
16618 rm -rf conftest*
16619 glibcpp_cv_func_isinfl_use=no
16621 rm -f conftest*
16622 ac_ext=c
16623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16624 ac_cpp='$CPP $CPPFLAGS'
16625 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16626 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16627 cross_compiling=$ac_cv_prog_cc_cross
16633 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16635 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16636 for ac_func in isinfl
16638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16639 echo "configure:16640: checking for $ac_func" >&5
16640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16641 echo $ac_n "(cached) $ac_c" 1>&6
16642 else
16643 cat > conftest.$ac_ext <<EOF
16644 #line 16645 "configure"
16645 #include "confdefs.h"
16646 /* System header to define __stub macros and hopefully few prototypes,
16647 which can conflict with char $ac_func(); below. */
16648 #include <assert.h>
16649 /* Override any gcc2 internal prototype to avoid an error. */
16650 /* We use char because int might match the return type of a gcc2
16651 builtin and then its argument prototype would still apply. */
16652 char $ac_func();
16654 int main() {
16656 /* The GNU C library defines this for functions which it implements
16657 to always fail with ENOSYS. Some functions are actually named
16658 something starting with __ and the normal name is an alias. */
16659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16660 choke me
16661 #else
16662 $ac_func();
16663 #endif
16665 ; return 0; }
16667 if { (eval echo configure:16668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16668 rm -rf conftest*
16669 eval "ac_cv_func_$ac_func=yes"
16670 else
16671 echo "configure: failed program was:" >&5
16672 cat conftest.$ac_ext >&5
16673 rm -rf conftest*
16674 eval "ac_cv_func_$ac_func=no"
16676 rm -f conftest*
16679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16680 echo "$ac_t""yes" 1>&6
16681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16682 cat >> confdefs.h <<EOF
16683 #define $ac_tr_func 1
16686 else
16687 echo "$ac_t""no" 1>&6
16689 done
16691 else
16693 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16694 echo "configure:16695: checking for _isinfl declaration" >&5
16695 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16696 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16697 echo $ac_n "(cached) $ac_c" 1>&6
16698 else
16701 ac_ext=C
16702 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16703 ac_cpp='$CXXCPP $CPPFLAGS'
16704 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16705 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16706 cross_compiling=$ac_cv_prog_cxx_cross
16708 cat > conftest.$ac_ext <<EOF
16709 #line 16710 "configure"
16710 #include "confdefs.h"
16711 #include <math.h>
16712 #ifdef HAVE_IEEEFP_H
16713 #include <ieeefp.h>
16714 #endif
16716 int main() {
16717 _isinfl(0);
16718 ; return 0; }
16720 if { (eval echo configure:16721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16721 rm -rf conftest*
16722 glibcpp_cv_func__isinfl_use=yes
16723 else
16724 echo "configure: failed program was:" >&5
16725 cat conftest.$ac_ext >&5
16726 rm -rf conftest*
16727 glibcpp_cv_func__isinfl_use=no
16729 rm -f conftest*
16730 ac_ext=c
16731 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16732 ac_cpp='$CPP $CPPFLAGS'
16733 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16734 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16735 cross_compiling=$ac_cv_prog_cc_cross
16741 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16743 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16744 for ac_func in _isinfl
16746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16747 echo "configure:16748: checking for $ac_func" >&5
16748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16749 echo $ac_n "(cached) $ac_c" 1>&6
16750 else
16751 cat > conftest.$ac_ext <<EOF
16752 #line 16753 "configure"
16753 #include "confdefs.h"
16754 /* System header to define __stub macros and hopefully few prototypes,
16755 which can conflict with char $ac_func(); below. */
16756 #include <assert.h>
16757 /* Override any gcc2 internal prototype to avoid an error. */
16758 /* We use char because int might match the return type of a gcc2
16759 builtin and then its argument prototype would still apply. */
16760 char $ac_func();
16762 int main() {
16764 /* The GNU C library defines this for functions which it implements
16765 to always fail with ENOSYS. Some functions are actually named
16766 something starting with __ and the normal name is an alias. */
16767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16768 choke me
16769 #else
16770 $ac_func();
16771 #endif
16773 ; return 0; }
16775 if { (eval echo configure:16776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16776 rm -rf conftest*
16777 eval "ac_cv_func_$ac_func=yes"
16778 else
16779 echo "configure: failed program was:" >&5
16780 cat conftest.$ac_ext >&5
16781 rm -rf conftest*
16782 eval "ac_cv_func_$ac_func=no"
16784 rm -f conftest*
16787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16788 echo "$ac_t""yes" 1>&6
16789 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16790 cat >> confdefs.h <<EOF
16791 #define $ac_tr_func 1
16794 else
16795 echo "$ac_t""no" 1>&6
16797 done
16804 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16805 echo "configure:16806: checking for copysignl declaration" >&5
16806 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16807 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16808 echo $ac_n "(cached) $ac_c" 1>&6
16809 else
16812 ac_ext=C
16813 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16814 ac_cpp='$CXXCPP $CPPFLAGS'
16815 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16816 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16817 cross_compiling=$ac_cv_prog_cxx_cross
16819 cat > conftest.$ac_ext <<EOF
16820 #line 16821 "configure"
16821 #include "confdefs.h"
16822 #include <math.h>
16823 int main() {
16824 copysignl(0, 0);
16825 ; return 0; }
16827 if { (eval echo configure:16828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16828 rm -rf conftest*
16829 glibcpp_cv_func_copysignl_use=yes
16830 else
16831 echo "configure: failed program was:" >&5
16832 cat conftest.$ac_ext >&5
16833 rm -rf conftest*
16834 glibcpp_cv_func_copysignl_use=no
16836 rm -f conftest*
16837 ac_ext=c
16838 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16839 ac_cpp='$CPP $CPPFLAGS'
16840 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16841 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16842 cross_compiling=$ac_cv_prog_cc_cross
16848 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16850 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16851 for ac_func in copysignl
16853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16854 echo "configure:16855: checking for $ac_func" >&5
16855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16856 echo $ac_n "(cached) $ac_c" 1>&6
16857 else
16858 cat > conftest.$ac_ext <<EOF
16859 #line 16860 "configure"
16860 #include "confdefs.h"
16861 /* System header to define __stub macros and hopefully few prototypes,
16862 which can conflict with char $ac_func(); below. */
16863 #include <assert.h>
16864 /* Override any gcc2 internal prototype to avoid an error. */
16865 /* We use char because int might match the return type of a gcc2
16866 builtin and then its argument prototype would still apply. */
16867 char $ac_func();
16869 int main() {
16871 /* The GNU C library defines this for functions which it implements
16872 to always fail with ENOSYS. Some functions are actually named
16873 something starting with __ and the normal name is an alias. */
16874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16875 choke me
16876 #else
16877 $ac_func();
16878 #endif
16880 ; return 0; }
16882 if { (eval echo configure:16883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16883 rm -rf conftest*
16884 eval "ac_cv_func_$ac_func=yes"
16885 else
16886 echo "configure: failed program was:" >&5
16887 cat conftest.$ac_ext >&5
16888 rm -rf conftest*
16889 eval "ac_cv_func_$ac_func=no"
16891 rm -f conftest*
16894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16895 echo "$ac_t""yes" 1>&6
16896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16897 cat >> confdefs.h <<EOF
16898 #define $ac_tr_func 1
16901 else
16902 echo "$ac_t""no" 1>&6
16904 done
16906 else
16908 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16909 echo "configure:16910: checking for _copysignl declaration" >&5
16910 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16911 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16912 echo $ac_n "(cached) $ac_c" 1>&6
16913 else
16916 ac_ext=C
16917 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16918 ac_cpp='$CXXCPP $CPPFLAGS'
16919 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16920 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16921 cross_compiling=$ac_cv_prog_cxx_cross
16923 cat > conftest.$ac_ext <<EOF
16924 #line 16925 "configure"
16925 #include "confdefs.h"
16926 #include <math.h>
16927 int main() {
16928 _copysignl(0, 0);
16929 ; return 0; }
16931 if { (eval echo configure:16932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16932 rm -rf conftest*
16933 glibcpp_cv_func__copysignl_use=yes
16934 else
16935 echo "configure: failed program was:" >&5
16936 cat conftest.$ac_ext >&5
16937 rm -rf conftest*
16938 glibcpp_cv_func__copysignl_use=no
16940 rm -f conftest*
16941 ac_ext=c
16942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16943 ac_cpp='$CPP $CPPFLAGS'
16944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16945 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16946 cross_compiling=$ac_cv_prog_cc_cross
16952 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16954 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16955 for ac_func in _copysignl
16957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16958 echo "configure:16959: checking for $ac_func" >&5
16959 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16960 echo $ac_n "(cached) $ac_c" 1>&6
16961 else
16962 cat > conftest.$ac_ext <<EOF
16963 #line 16964 "configure"
16964 #include "confdefs.h"
16965 /* System header to define __stub macros and hopefully few prototypes,
16966 which can conflict with char $ac_func(); below. */
16967 #include <assert.h>
16968 /* Override any gcc2 internal prototype to avoid an error. */
16969 /* We use char because int might match the return type of a gcc2
16970 builtin and then its argument prototype would still apply. */
16971 char $ac_func();
16973 int main() {
16975 /* The GNU C library defines this for functions which it implements
16976 to always fail with ENOSYS. Some functions are actually named
16977 something starting with __ and the normal name is an alias. */
16978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16979 choke me
16980 #else
16981 $ac_func();
16982 #endif
16984 ; return 0; }
16986 if { (eval echo configure:16987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16987 rm -rf conftest*
16988 eval "ac_cv_func_$ac_func=yes"
16989 else
16990 echo "configure: failed program was:" >&5
16991 cat conftest.$ac_ext >&5
16992 rm -rf conftest*
16993 eval "ac_cv_func_$ac_func=no"
16995 rm -f conftest*
16998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16999 echo "$ac_t""yes" 1>&6
17000 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17001 cat >> confdefs.h <<EOF
17002 #define $ac_tr_func 1
17005 else
17006 echo "$ac_t""no" 1>&6
17008 done
17015 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
17016 echo "configure:17017: checking for atan2l declaration" >&5
17017 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
17018 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
17019 echo $ac_n "(cached) $ac_c" 1>&6
17020 else
17023 ac_ext=C
17024 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17025 ac_cpp='$CXXCPP $CPPFLAGS'
17026 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17027 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17028 cross_compiling=$ac_cv_prog_cxx_cross
17030 cat > conftest.$ac_ext <<EOF
17031 #line 17032 "configure"
17032 #include "confdefs.h"
17033 #include <math.h>
17034 int main() {
17035 atan2l(0, 0);
17036 ; return 0; }
17038 if { (eval echo configure:17039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17039 rm -rf conftest*
17040 glibcpp_cv_func_atan2l_use=yes
17041 else
17042 echo "configure: failed program was:" >&5
17043 cat conftest.$ac_ext >&5
17044 rm -rf conftest*
17045 glibcpp_cv_func_atan2l_use=no
17047 rm -f conftest*
17048 ac_ext=c
17049 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17050 ac_cpp='$CPP $CPPFLAGS'
17051 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17052 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17053 cross_compiling=$ac_cv_prog_cc_cross
17059 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
17061 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
17062 for ac_func in atan2l
17064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17065 echo "configure:17066: checking for $ac_func" >&5
17066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17067 echo $ac_n "(cached) $ac_c" 1>&6
17068 else
17069 cat > conftest.$ac_ext <<EOF
17070 #line 17071 "configure"
17071 #include "confdefs.h"
17072 /* System header to define __stub macros and hopefully few prototypes,
17073 which can conflict with char $ac_func(); below. */
17074 #include <assert.h>
17075 /* Override any gcc2 internal prototype to avoid an error. */
17076 /* We use char because int might match the return type of a gcc2
17077 builtin and then its argument prototype would still apply. */
17078 char $ac_func();
17080 int main() {
17082 /* The GNU C library defines this for functions which it implements
17083 to always fail with ENOSYS. Some functions are actually named
17084 something starting with __ and the normal name is an alias. */
17085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17086 choke me
17087 #else
17088 $ac_func();
17089 #endif
17091 ; return 0; }
17093 if { (eval echo configure:17094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17094 rm -rf conftest*
17095 eval "ac_cv_func_$ac_func=yes"
17096 else
17097 echo "configure: failed program was:" >&5
17098 cat conftest.$ac_ext >&5
17099 rm -rf conftest*
17100 eval "ac_cv_func_$ac_func=no"
17102 rm -f conftest*
17105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17106 echo "$ac_t""yes" 1>&6
17107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17108 cat >> confdefs.h <<EOF
17109 #define $ac_tr_func 1
17112 else
17113 echo "$ac_t""no" 1>&6
17115 done
17117 else
17119 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17120 echo "configure:17121: checking for _atan2l declaration" >&5
17121 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17122 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17123 echo $ac_n "(cached) $ac_c" 1>&6
17124 else
17127 ac_ext=C
17128 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17129 ac_cpp='$CXXCPP $CPPFLAGS'
17130 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17131 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17132 cross_compiling=$ac_cv_prog_cxx_cross
17134 cat > conftest.$ac_ext <<EOF
17135 #line 17136 "configure"
17136 #include "confdefs.h"
17137 #include <math.h>
17138 int main() {
17139 _atan2l(0, 0);
17140 ; return 0; }
17142 if { (eval echo configure:17143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17143 rm -rf conftest*
17144 glibcpp_cv_func__atan2l_use=yes
17145 else
17146 echo "configure: failed program was:" >&5
17147 cat conftest.$ac_ext >&5
17148 rm -rf conftest*
17149 glibcpp_cv_func__atan2l_use=no
17151 rm -f conftest*
17152 ac_ext=c
17153 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17154 ac_cpp='$CPP $CPPFLAGS'
17155 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17156 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17157 cross_compiling=$ac_cv_prog_cc_cross
17163 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17165 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17166 for ac_func in _atan2l
17168 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17169 echo "configure:17170: checking for $ac_func" >&5
17170 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17171 echo $ac_n "(cached) $ac_c" 1>&6
17172 else
17173 cat > conftest.$ac_ext <<EOF
17174 #line 17175 "configure"
17175 #include "confdefs.h"
17176 /* System header to define __stub macros and hopefully few prototypes,
17177 which can conflict with char $ac_func(); below. */
17178 #include <assert.h>
17179 /* Override any gcc2 internal prototype to avoid an error. */
17180 /* We use char because int might match the return type of a gcc2
17181 builtin and then its argument prototype would still apply. */
17182 char $ac_func();
17184 int main() {
17186 /* The GNU C library defines this for functions which it implements
17187 to always fail with ENOSYS. Some functions are actually named
17188 something starting with __ and the normal name is an alias. */
17189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17190 choke me
17191 #else
17192 $ac_func();
17193 #endif
17195 ; return 0; }
17197 if { (eval echo configure:17198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17198 rm -rf conftest*
17199 eval "ac_cv_func_$ac_func=yes"
17200 else
17201 echo "configure: failed program was:" >&5
17202 cat conftest.$ac_ext >&5
17203 rm -rf conftest*
17204 eval "ac_cv_func_$ac_func=no"
17206 rm -f conftest*
17209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17210 echo "$ac_t""yes" 1>&6
17211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17212 cat >> confdefs.h <<EOF
17213 #define $ac_tr_func 1
17216 else
17217 echo "$ac_t""no" 1>&6
17219 done
17226 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17227 echo "configure:17228: checking for expl declaration" >&5
17228 if test x${glibcpp_cv_func_expl_use+set} != xset; then
17229 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17230 echo $ac_n "(cached) $ac_c" 1>&6
17231 else
17234 ac_ext=C
17235 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17236 ac_cpp='$CXXCPP $CPPFLAGS'
17237 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17238 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17239 cross_compiling=$ac_cv_prog_cxx_cross
17241 cat > conftest.$ac_ext <<EOF
17242 #line 17243 "configure"
17243 #include "confdefs.h"
17244 #include <math.h>
17245 #ifdef HAVE_IEEEFP_H
17246 #include <ieeefp.h>
17247 #endif
17249 int main() {
17250 expl(0);
17251 ; return 0; }
17253 if { (eval echo configure:17254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17254 rm -rf conftest*
17255 glibcpp_cv_func_expl_use=yes
17256 else
17257 echo "configure: failed program was:" >&5
17258 cat conftest.$ac_ext >&5
17259 rm -rf conftest*
17260 glibcpp_cv_func_expl_use=no
17262 rm -f conftest*
17263 ac_ext=c
17264 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17265 ac_cpp='$CPP $CPPFLAGS'
17266 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17267 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17268 cross_compiling=$ac_cv_prog_cc_cross
17274 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17276 if test x$glibcpp_cv_func_expl_use = x"yes"; then
17277 for ac_func in expl
17279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17280 echo "configure:17281: checking for $ac_func" >&5
17281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17282 echo $ac_n "(cached) $ac_c" 1>&6
17283 else
17284 cat > conftest.$ac_ext <<EOF
17285 #line 17286 "configure"
17286 #include "confdefs.h"
17287 /* System header to define __stub macros and hopefully few prototypes,
17288 which can conflict with char $ac_func(); below. */
17289 #include <assert.h>
17290 /* Override any gcc2 internal prototype to avoid an error. */
17291 /* We use char because int might match the return type of a gcc2
17292 builtin and then its argument prototype would still apply. */
17293 char $ac_func();
17295 int main() {
17297 /* The GNU C library defines this for functions which it implements
17298 to always fail with ENOSYS. Some functions are actually named
17299 something starting with __ and the normal name is an alias. */
17300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17301 choke me
17302 #else
17303 $ac_func();
17304 #endif
17306 ; return 0; }
17308 if { (eval echo configure:17309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17309 rm -rf conftest*
17310 eval "ac_cv_func_$ac_func=yes"
17311 else
17312 echo "configure: failed program was:" >&5
17313 cat conftest.$ac_ext >&5
17314 rm -rf conftest*
17315 eval "ac_cv_func_$ac_func=no"
17317 rm -f conftest*
17320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17321 echo "$ac_t""yes" 1>&6
17322 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17323 cat >> confdefs.h <<EOF
17324 #define $ac_tr_func 1
17327 else
17328 echo "$ac_t""no" 1>&6
17330 done
17332 else
17334 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17335 echo "configure:17336: checking for _expl declaration" >&5
17336 if test x${glibcpp_cv_func__expl_use+set} != xset; then
17337 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17338 echo $ac_n "(cached) $ac_c" 1>&6
17339 else
17342 ac_ext=C
17343 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17344 ac_cpp='$CXXCPP $CPPFLAGS'
17345 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17346 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17347 cross_compiling=$ac_cv_prog_cxx_cross
17349 cat > conftest.$ac_ext <<EOF
17350 #line 17351 "configure"
17351 #include "confdefs.h"
17352 #include <math.h>
17353 #ifdef HAVE_IEEEFP_H
17354 #include <ieeefp.h>
17355 #endif
17357 int main() {
17358 _expl(0);
17359 ; return 0; }
17361 if { (eval echo configure:17362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17362 rm -rf conftest*
17363 glibcpp_cv_func__expl_use=yes
17364 else
17365 echo "configure: failed program was:" >&5
17366 cat conftest.$ac_ext >&5
17367 rm -rf conftest*
17368 glibcpp_cv_func__expl_use=no
17370 rm -f conftest*
17371 ac_ext=c
17372 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17373 ac_cpp='$CPP $CPPFLAGS'
17374 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17375 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17376 cross_compiling=$ac_cv_prog_cc_cross
17382 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17384 if test x$glibcpp_cv_func__expl_use = x"yes"; then
17385 for ac_func in _expl
17387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17388 echo "configure:17389: checking for $ac_func" >&5
17389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17390 echo $ac_n "(cached) $ac_c" 1>&6
17391 else
17392 cat > conftest.$ac_ext <<EOF
17393 #line 17394 "configure"
17394 #include "confdefs.h"
17395 /* System header to define __stub macros and hopefully few prototypes,
17396 which can conflict with char $ac_func(); below. */
17397 #include <assert.h>
17398 /* Override any gcc2 internal prototype to avoid an error. */
17399 /* We use char because int might match the return type of a gcc2
17400 builtin and then its argument prototype would still apply. */
17401 char $ac_func();
17403 int main() {
17405 /* The GNU C library defines this for functions which it implements
17406 to always fail with ENOSYS. Some functions are actually named
17407 something starting with __ and the normal name is an alias. */
17408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17409 choke me
17410 #else
17411 $ac_func();
17412 #endif
17414 ; return 0; }
17416 if { (eval echo configure:17417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17417 rm -rf conftest*
17418 eval "ac_cv_func_$ac_func=yes"
17419 else
17420 echo "configure: failed program was:" >&5
17421 cat conftest.$ac_ext >&5
17422 rm -rf conftest*
17423 eval "ac_cv_func_$ac_func=no"
17425 rm -f conftest*
17428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17429 echo "$ac_t""yes" 1>&6
17430 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17431 cat >> confdefs.h <<EOF
17432 #define $ac_tr_func 1
17435 else
17436 echo "$ac_t""no" 1>&6
17438 done
17445 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17446 echo "configure:17447: checking for fabsl declaration" >&5
17447 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17448 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17449 echo $ac_n "(cached) $ac_c" 1>&6
17450 else
17453 ac_ext=C
17454 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17455 ac_cpp='$CXXCPP $CPPFLAGS'
17456 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17457 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17458 cross_compiling=$ac_cv_prog_cxx_cross
17460 cat > conftest.$ac_ext <<EOF
17461 #line 17462 "configure"
17462 #include "confdefs.h"
17463 #include <math.h>
17464 #ifdef HAVE_IEEEFP_H
17465 #include <ieeefp.h>
17466 #endif
17468 int main() {
17469 fabsl(0);
17470 ; return 0; }
17472 if { (eval echo configure:17473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17473 rm -rf conftest*
17474 glibcpp_cv_func_fabsl_use=yes
17475 else
17476 echo "configure: failed program was:" >&5
17477 cat conftest.$ac_ext >&5
17478 rm -rf conftest*
17479 glibcpp_cv_func_fabsl_use=no
17481 rm -f conftest*
17482 ac_ext=c
17483 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17484 ac_cpp='$CPP $CPPFLAGS'
17485 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17486 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17487 cross_compiling=$ac_cv_prog_cc_cross
17493 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17495 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17496 for ac_func in fabsl
17498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17499 echo "configure:17500: checking for $ac_func" >&5
17500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17501 echo $ac_n "(cached) $ac_c" 1>&6
17502 else
17503 cat > conftest.$ac_ext <<EOF
17504 #line 17505 "configure"
17505 #include "confdefs.h"
17506 /* System header to define __stub macros and hopefully few prototypes,
17507 which can conflict with char $ac_func(); below. */
17508 #include <assert.h>
17509 /* Override any gcc2 internal prototype to avoid an error. */
17510 /* We use char because int might match the return type of a gcc2
17511 builtin and then its argument prototype would still apply. */
17512 char $ac_func();
17514 int main() {
17516 /* The GNU C library defines this for functions which it implements
17517 to always fail with ENOSYS. Some functions are actually named
17518 something starting with __ and the normal name is an alias. */
17519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17520 choke me
17521 #else
17522 $ac_func();
17523 #endif
17525 ; return 0; }
17527 if { (eval echo configure:17528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17528 rm -rf conftest*
17529 eval "ac_cv_func_$ac_func=yes"
17530 else
17531 echo "configure: failed program was:" >&5
17532 cat conftest.$ac_ext >&5
17533 rm -rf conftest*
17534 eval "ac_cv_func_$ac_func=no"
17536 rm -f conftest*
17539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17540 echo "$ac_t""yes" 1>&6
17541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17542 cat >> confdefs.h <<EOF
17543 #define $ac_tr_func 1
17546 else
17547 echo "$ac_t""no" 1>&6
17549 done
17551 else
17553 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17554 echo "configure:17555: checking for _fabsl declaration" >&5
17555 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17556 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17557 echo $ac_n "(cached) $ac_c" 1>&6
17558 else
17561 ac_ext=C
17562 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17563 ac_cpp='$CXXCPP $CPPFLAGS'
17564 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17565 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17566 cross_compiling=$ac_cv_prog_cxx_cross
17568 cat > conftest.$ac_ext <<EOF
17569 #line 17570 "configure"
17570 #include "confdefs.h"
17571 #include <math.h>
17572 #ifdef HAVE_IEEEFP_H
17573 #include <ieeefp.h>
17574 #endif
17576 int main() {
17577 _fabsl(0);
17578 ; return 0; }
17580 if { (eval echo configure:17581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17581 rm -rf conftest*
17582 glibcpp_cv_func__fabsl_use=yes
17583 else
17584 echo "configure: failed program was:" >&5
17585 cat conftest.$ac_ext >&5
17586 rm -rf conftest*
17587 glibcpp_cv_func__fabsl_use=no
17589 rm -f conftest*
17590 ac_ext=c
17591 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17592 ac_cpp='$CPP $CPPFLAGS'
17593 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17594 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17595 cross_compiling=$ac_cv_prog_cc_cross
17601 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17603 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17604 for ac_func in _fabsl
17606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17607 echo "configure:17608: checking for $ac_func" >&5
17608 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17609 echo $ac_n "(cached) $ac_c" 1>&6
17610 else
17611 cat > conftest.$ac_ext <<EOF
17612 #line 17613 "configure"
17613 #include "confdefs.h"
17614 /* System header to define __stub macros and hopefully few prototypes,
17615 which can conflict with char $ac_func(); below. */
17616 #include <assert.h>
17617 /* Override any gcc2 internal prototype to avoid an error. */
17618 /* We use char because int might match the return type of a gcc2
17619 builtin and then its argument prototype would still apply. */
17620 char $ac_func();
17622 int main() {
17624 /* The GNU C library defines this for functions which it implements
17625 to always fail with ENOSYS. Some functions are actually named
17626 something starting with __ and the normal name is an alias. */
17627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17628 choke me
17629 #else
17630 $ac_func();
17631 #endif
17633 ; return 0; }
17635 if { (eval echo configure:17636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17636 rm -rf conftest*
17637 eval "ac_cv_func_$ac_func=yes"
17638 else
17639 echo "configure: failed program was:" >&5
17640 cat conftest.$ac_ext >&5
17641 rm -rf conftest*
17642 eval "ac_cv_func_$ac_func=no"
17644 rm -f conftest*
17647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17648 echo "$ac_t""yes" 1>&6
17649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17650 cat >> confdefs.h <<EOF
17651 #define $ac_tr_func 1
17654 else
17655 echo "$ac_t""no" 1>&6
17657 done
17664 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17665 echo "configure:17666: checking for fmodl declaration" >&5
17666 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17667 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17668 echo $ac_n "(cached) $ac_c" 1>&6
17669 else
17672 ac_ext=C
17673 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17674 ac_cpp='$CXXCPP $CPPFLAGS'
17675 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17676 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17677 cross_compiling=$ac_cv_prog_cxx_cross
17679 cat > conftest.$ac_ext <<EOF
17680 #line 17681 "configure"
17681 #include "confdefs.h"
17682 #include <math.h>
17683 int main() {
17684 fmodl(0, 0);
17685 ; return 0; }
17687 if { (eval echo configure:17688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17688 rm -rf conftest*
17689 glibcpp_cv_func_fmodl_use=yes
17690 else
17691 echo "configure: failed program was:" >&5
17692 cat conftest.$ac_ext >&5
17693 rm -rf conftest*
17694 glibcpp_cv_func_fmodl_use=no
17696 rm -f conftest*
17697 ac_ext=c
17698 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17699 ac_cpp='$CPP $CPPFLAGS'
17700 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17701 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17702 cross_compiling=$ac_cv_prog_cc_cross
17708 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17710 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17711 for ac_func in fmodl
17713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17714 echo "configure:17715: checking for $ac_func" >&5
17715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17716 echo $ac_n "(cached) $ac_c" 1>&6
17717 else
17718 cat > conftest.$ac_ext <<EOF
17719 #line 17720 "configure"
17720 #include "confdefs.h"
17721 /* System header to define __stub macros and hopefully few prototypes,
17722 which can conflict with char $ac_func(); below. */
17723 #include <assert.h>
17724 /* Override any gcc2 internal prototype to avoid an error. */
17725 /* We use char because int might match the return type of a gcc2
17726 builtin and then its argument prototype would still apply. */
17727 char $ac_func();
17729 int main() {
17731 /* The GNU C library defines this for functions which it implements
17732 to always fail with ENOSYS. Some functions are actually named
17733 something starting with __ and the normal name is an alias. */
17734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17735 choke me
17736 #else
17737 $ac_func();
17738 #endif
17740 ; return 0; }
17742 if { (eval echo configure:17743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17743 rm -rf conftest*
17744 eval "ac_cv_func_$ac_func=yes"
17745 else
17746 echo "configure: failed program was:" >&5
17747 cat conftest.$ac_ext >&5
17748 rm -rf conftest*
17749 eval "ac_cv_func_$ac_func=no"
17751 rm -f conftest*
17754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17755 echo "$ac_t""yes" 1>&6
17756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17757 cat >> confdefs.h <<EOF
17758 #define $ac_tr_func 1
17761 else
17762 echo "$ac_t""no" 1>&6
17764 done
17766 else
17768 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17769 echo "configure:17770: checking for _fmodl declaration" >&5
17770 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17771 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17772 echo $ac_n "(cached) $ac_c" 1>&6
17773 else
17776 ac_ext=C
17777 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17778 ac_cpp='$CXXCPP $CPPFLAGS'
17779 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17780 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17781 cross_compiling=$ac_cv_prog_cxx_cross
17783 cat > conftest.$ac_ext <<EOF
17784 #line 17785 "configure"
17785 #include "confdefs.h"
17786 #include <math.h>
17787 int main() {
17788 _fmodl(0, 0);
17789 ; return 0; }
17791 if { (eval echo configure:17792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17792 rm -rf conftest*
17793 glibcpp_cv_func__fmodl_use=yes
17794 else
17795 echo "configure: failed program was:" >&5
17796 cat conftest.$ac_ext >&5
17797 rm -rf conftest*
17798 glibcpp_cv_func__fmodl_use=no
17800 rm -f conftest*
17801 ac_ext=c
17802 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17803 ac_cpp='$CPP $CPPFLAGS'
17804 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17805 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17806 cross_compiling=$ac_cv_prog_cc_cross
17812 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17814 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17815 for ac_func in _fmodl
17817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17818 echo "configure:17819: checking for $ac_func" >&5
17819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17820 echo $ac_n "(cached) $ac_c" 1>&6
17821 else
17822 cat > conftest.$ac_ext <<EOF
17823 #line 17824 "configure"
17824 #include "confdefs.h"
17825 /* System header to define __stub macros and hopefully few prototypes,
17826 which can conflict with char $ac_func(); below. */
17827 #include <assert.h>
17828 /* Override any gcc2 internal prototype to avoid an error. */
17829 /* We use char because int might match the return type of a gcc2
17830 builtin and then its argument prototype would still apply. */
17831 char $ac_func();
17833 int main() {
17835 /* The GNU C library defines this for functions which it implements
17836 to always fail with ENOSYS. Some functions are actually named
17837 something starting with __ and the normal name is an alias. */
17838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17839 choke me
17840 #else
17841 $ac_func();
17842 #endif
17844 ; return 0; }
17846 if { (eval echo configure:17847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17847 rm -rf conftest*
17848 eval "ac_cv_func_$ac_func=yes"
17849 else
17850 echo "configure: failed program was:" >&5
17851 cat conftest.$ac_ext >&5
17852 rm -rf conftest*
17853 eval "ac_cv_func_$ac_func=no"
17855 rm -f conftest*
17858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17859 echo "$ac_t""yes" 1>&6
17860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17861 cat >> confdefs.h <<EOF
17862 #define $ac_tr_func 1
17865 else
17866 echo "$ac_t""no" 1>&6
17868 done
17875 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17876 echo "configure:17877: checking for frexpl declaration" >&5
17877 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17878 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17879 echo $ac_n "(cached) $ac_c" 1>&6
17880 else
17883 ac_ext=C
17884 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17885 ac_cpp='$CXXCPP $CPPFLAGS'
17886 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17887 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17888 cross_compiling=$ac_cv_prog_cxx_cross
17890 cat > conftest.$ac_ext <<EOF
17891 #line 17892 "configure"
17892 #include "confdefs.h"
17893 #include <math.h>
17894 int main() {
17895 frexpl(0, 0);
17896 ; return 0; }
17898 if { (eval echo configure:17899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17899 rm -rf conftest*
17900 glibcpp_cv_func_frexpl_use=yes
17901 else
17902 echo "configure: failed program was:" >&5
17903 cat conftest.$ac_ext >&5
17904 rm -rf conftest*
17905 glibcpp_cv_func_frexpl_use=no
17907 rm -f conftest*
17908 ac_ext=c
17909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17910 ac_cpp='$CPP $CPPFLAGS'
17911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17913 cross_compiling=$ac_cv_prog_cc_cross
17919 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17921 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17922 for ac_func in frexpl
17924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17925 echo "configure:17926: checking for $ac_func" >&5
17926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17927 echo $ac_n "(cached) $ac_c" 1>&6
17928 else
17929 cat > conftest.$ac_ext <<EOF
17930 #line 17931 "configure"
17931 #include "confdefs.h"
17932 /* System header to define __stub macros and hopefully few prototypes,
17933 which can conflict with char $ac_func(); below. */
17934 #include <assert.h>
17935 /* Override any gcc2 internal prototype to avoid an error. */
17936 /* We use char because int might match the return type of a gcc2
17937 builtin and then its argument prototype would still apply. */
17938 char $ac_func();
17940 int main() {
17942 /* The GNU C library defines this for functions which it implements
17943 to always fail with ENOSYS. Some functions are actually named
17944 something starting with __ and the normal name is an alias. */
17945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17946 choke me
17947 #else
17948 $ac_func();
17949 #endif
17951 ; return 0; }
17953 if { (eval echo configure:17954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17954 rm -rf conftest*
17955 eval "ac_cv_func_$ac_func=yes"
17956 else
17957 echo "configure: failed program was:" >&5
17958 cat conftest.$ac_ext >&5
17959 rm -rf conftest*
17960 eval "ac_cv_func_$ac_func=no"
17962 rm -f conftest*
17965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17966 echo "$ac_t""yes" 1>&6
17967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17968 cat >> confdefs.h <<EOF
17969 #define $ac_tr_func 1
17972 else
17973 echo "$ac_t""no" 1>&6
17975 done
17977 else
17979 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17980 echo "configure:17981: checking for _frexpl declaration" >&5
17981 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17982 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17983 echo $ac_n "(cached) $ac_c" 1>&6
17984 else
17987 ac_ext=C
17988 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17989 ac_cpp='$CXXCPP $CPPFLAGS'
17990 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17991 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17992 cross_compiling=$ac_cv_prog_cxx_cross
17994 cat > conftest.$ac_ext <<EOF
17995 #line 17996 "configure"
17996 #include "confdefs.h"
17997 #include <math.h>
17998 int main() {
17999 _frexpl(0, 0);
18000 ; return 0; }
18002 if { (eval echo configure:18003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18003 rm -rf conftest*
18004 glibcpp_cv_func__frexpl_use=yes
18005 else
18006 echo "configure: failed program was:" >&5
18007 cat conftest.$ac_ext >&5
18008 rm -rf conftest*
18009 glibcpp_cv_func__frexpl_use=no
18011 rm -f conftest*
18012 ac_ext=c
18013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18014 ac_cpp='$CPP $CPPFLAGS'
18015 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18016 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18017 cross_compiling=$ac_cv_prog_cc_cross
18023 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
18025 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
18026 for ac_func in _frexpl
18028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18029 echo "configure:18030: checking for $ac_func" >&5
18030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18031 echo $ac_n "(cached) $ac_c" 1>&6
18032 else
18033 cat > conftest.$ac_ext <<EOF
18034 #line 18035 "configure"
18035 #include "confdefs.h"
18036 /* System header to define __stub macros and hopefully few prototypes,
18037 which can conflict with char $ac_func(); below. */
18038 #include <assert.h>
18039 /* Override any gcc2 internal prototype to avoid an error. */
18040 /* We use char because int might match the return type of a gcc2
18041 builtin and then its argument prototype would still apply. */
18042 char $ac_func();
18044 int main() {
18046 /* The GNU C library defines this for functions which it implements
18047 to always fail with ENOSYS. Some functions are actually named
18048 something starting with __ and the normal name is an alias. */
18049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18050 choke me
18051 #else
18052 $ac_func();
18053 #endif
18055 ; return 0; }
18057 if { (eval echo configure:18058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18058 rm -rf conftest*
18059 eval "ac_cv_func_$ac_func=yes"
18060 else
18061 echo "configure: failed program was:" >&5
18062 cat conftest.$ac_ext >&5
18063 rm -rf conftest*
18064 eval "ac_cv_func_$ac_func=no"
18066 rm -f conftest*
18069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18070 echo "$ac_t""yes" 1>&6
18071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18072 cat >> confdefs.h <<EOF
18073 #define $ac_tr_func 1
18076 else
18077 echo "$ac_t""no" 1>&6
18079 done
18086 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18087 echo "configure:18088: checking for hypotl declaration" >&5
18088 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18089 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18090 echo $ac_n "(cached) $ac_c" 1>&6
18091 else
18094 ac_ext=C
18095 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18096 ac_cpp='$CXXCPP $CPPFLAGS'
18097 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18098 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18099 cross_compiling=$ac_cv_prog_cxx_cross
18101 cat > conftest.$ac_ext <<EOF
18102 #line 18103 "configure"
18103 #include "confdefs.h"
18104 #include <math.h>
18105 int main() {
18106 hypotl(0, 0);
18107 ; return 0; }
18109 if { (eval echo configure:18110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18110 rm -rf conftest*
18111 glibcpp_cv_func_hypotl_use=yes
18112 else
18113 echo "configure: failed program was:" >&5
18114 cat conftest.$ac_ext >&5
18115 rm -rf conftest*
18116 glibcpp_cv_func_hypotl_use=no
18118 rm -f conftest*
18119 ac_ext=c
18120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18121 ac_cpp='$CPP $CPPFLAGS'
18122 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18123 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18124 cross_compiling=$ac_cv_prog_cc_cross
18130 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18132 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18133 for ac_func in hypotl
18135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18136 echo "configure:18137: checking for $ac_func" >&5
18137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18138 echo $ac_n "(cached) $ac_c" 1>&6
18139 else
18140 cat > conftest.$ac_ext <<EOF
18141 #line 18142 "configure"
18142 #include "confdefs.h"
18143 /* System header to define __stub macros and hopefully few prototypes,
18144 which can conflict with char $ac_func(); below. */
18145 #include <assert.h>
18146 /* Override any gcc2 internal prototype to avoid an error. */
18147 /* We use char because int might match the return type of a gcc2
18148 builtin and then its argument prototype would still apply. */
18149 char $ac_func();
18151 int main() {
18153 /* The GNU C library defines this for functions which it implements
18154 to always fail with ENOSYS. Some functions are actually named
18155 something starting with __ and the normal name is an alias. */
18156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18157 choke me
18158 #else
18159 $ac_func();
18160 #endif
18162 ; return 0; }
18164 if { (eval echo configure:18165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18165 rm -rf conftest*
18166 eval "ac_cv_func_$ac_func=yes"
18167 else
18168 echo "configure: failed program was:" >&5
18169 cat conftest.$ac_ext >&5
18170 rm -rf conftest*
18171 eval "ac_cv_func_$ac_func=no"
18173 rm -f conftest*
18176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18177 echo "$ac_t""yes" 1>&6
18178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18179 cat >> confdefs.h <<EOF
18180 #define $ac_tr_func 1
18183 else
18184 echo "$ac_t""no" 1>&6
18186 done
18188 else
18190 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18191 echo "configure:18192: checking for _hypotl declaration" >&5
18192 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18193 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18194 echo $ac_n "(cached) $ac_c" 1>&6
18195 else
18198 ac_ext=C
18199 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18200 ac_cpp='$CXXCPP $CPPFLAGS'
18201 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18202 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18203 cross_compiling=$ac_cv_prog_cxx_cross
18205 cat > conftest.$ac_ext <<EOF
18206 #line 18207 "configure"
18207 #include "confdefs.h"
18208 #include <math.h>
18209 int main() {
18210 _hypotl(0, 0);
18211 ; return 0; }
18213 if { (eval echo configure:18214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18214 rm -rf conftest*
18215 glibcpp_cv_func__hypotl_use=yes
18216 else
18217 echo "configure: failed program was:" >&5
18218 cat conftest.$ac_ext >&5
18219 rm -rf conftest*
18220 glibcpp_cv_func__hypotl_use=no
18222 rm -f conftest*
18223 ac_ext=c
18224 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18225 ac_cpp='$CPP $CPPFLAGS'
18226 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18227 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18228 cross_compiling=$ac_cv_prog_cc_cross
18234 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18236 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18237 for ac_func in _hypotl
18239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18240 echo "configure:18241: checking for $ac_func" >&5
18241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18242 echo $ac_n "(cached) $ac_c" 1>&6
18243 else
18244 cat > conftest.$ac_ext <<EOF
18245 #line 18246 "configure"
18246 #include "confdefs.h"
18247 /* System header to define __stub macros and hopefully few prototypes,
18248 which can conflict with char $ac_func(); below. */
18249 #include <assert.h>
18250 /* Override any gcc2 internal prototype to avoid an error. */
18251 /* We use char because int might match the return type of a gcc2
18252 builtin and then its argument prototype would still apply. */
18253 char $ac_func();
18255 int main() {
18257 /* The GNU C library defines this for functions which it implements
18258 to always fail with ENOSYS. Some functions are actually named
18259 something starting with __ and the normal name is an alias. */
18260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18261 choke me
18262 #else
18263 $ac_func();
18264 #endif
18266 ; return 0; }
18268 if { (eval echo configure:18269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18269 rm -rf conftest*
18270 eval "ac_cv_func_$ac_func=yes"
18271 else
18272 echo "configure: failed program was:" >&5
18273 cat conftest.$ac_ext >&5
18274 rm -rf conftest*
18275 eval "ac_cv_func_$ac_func=no"
18277 rm -f conftest*
18280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18281 echo "$ac_t""yes" 1>&6
18282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18283 cat >> confdefs.h <<EOF
18284 #define $ac_tr_func 1
18287 else
18288 echo "$ac_t""no" 1>&6
18290 done
18297 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18298 echo "configure:18299: checking for ldexpl declaration" >&5
18299 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18300 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18301 echo $ac_n "(cached) $ac_c" 1>&6
18302 else
18305 ac_ext=C
18306 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18307 ac_cpp='$CXXCPP $CPPFLAGS'
18308 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18309 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18310 cross_compiling=$ac_cv_prog_cxx_cross
18312 cat > conftest.$ac_ext <<EOF
18313 #line 18314 "configure"
18314 #include "confdefs.h"
18315 #include <math.h>
18316 int main() {
18317 ldexpl(0, 0);
18318 ; return 0; }
18320 if { (eval echo configure:18321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18321 rm -rf conftest*
18322 glibcpp_cv_func_ldexpl_use=yes
18323 else
18324 echo "configure: failed program was:" >&5
18325 cat conftest.$ac_ext >&5
18326 rm -rf conftest*
18327 glibcpp_cv_func_ldexpl_use=no
18329 rm -f conftest*
18330 ac_ext=c
18331 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18332 ac_cpp='$CPP $CPPFLAGS'
18333 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18334 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18335 cross_compiling=$ac_cv_prog_cc_cross
18341 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18343 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18344 for ac_func in ldexpl
18346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18347 echo "configure:18348: checking for $ac_func" >&5
18348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18349 echo $ac_n "(cached) $ac_c" 1>&6
18350 else
18351 cat > conftest.$ac_ext <<EOF
18352 #line 18353 "configure"
18353 #include "confdefs.h"
18354 /* System header to define __stub macros and hopefully few prototypes,
18355 which can conflict with char $ac_func(); below. */
18356 #include <assert.h>
18357 /* Override any gcc2 internal prototype to avoid an error. */
18358 /* We use char because int might match the return type of a gcc2
18359 builtin and then its argument prototype would still apply. */
18360 char $ac_func();
18362 int main() {
18364 /* The GNU C library defines this for functions which it implements
18365 to always fail with ENOSYS. Some functions are actually named
18366 something starting with __ and the normal name is an alias. */
18367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18368 choke me
18369 #else
18370 $ac_func();
18371 #endif
18373 ; return 0; }
18375 if { (eval echo configure:18376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18376 rm -rf conftest*
18377 eval "ac_cv_func_$ac_func=yes"
18378 else
18379 echo "configure: failed program was:" >&5
18380 cat conftest.$ac_ext >&5
18381 rm -rf conftest*
18382 eval "ac_cv_func_$ac_func=no"
18384 rm -f conftest*
18387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18388 echo "$ac_t""yes" 1>&6
18389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18390 cat >> confdefs.h <<EOF
18391 #define $ac_tr_func 1
18394 else
18395 echo "$ac_t""no" 1>&6
18397 done
18399 else
18401 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18402 echo "configure:18403: checking for _ldexpl declaration" >&5
18403 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18404 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18405 echo $ac_n "(cached) $ac_c" 1>&6
18406 else
18409 ac_ext=C
18410 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18411 ac_cpp='$CXXCPP $CPPFLAGS'
18412 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18413 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18414 cross_compiling=$ac_cv_prog_cxx_cross
18416 cat > conftest.$ac_ext <<EOF
18417 #line 18418 "configure"
18418 #include "confdefs.h"
18419 #include <math.h>
18420 int main() {
18421 _ldexpl(0, 0);
18422 ; return 0; }
18424 if { (eval echo configure:18425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18425 rm -rf conftest*
18426 glibcpp_cv_func__ldexpl_use=yes
18427 else
18428 echo "configure: failed program was:" >&5
18429 cat conftest.$ac_ext >&5
18430 rm -rf conftest*
18431 glibcpp_cv_func__ldexpl_use=no
18433 rm -f conftest*
18434 ac_ext=c
18435 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18436 ac_cpp='$CPP $CPPFLAGS'
18437 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18438 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18439 cross_compiling=$ac_cv_prog_cc_cross
18445 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18447 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18448 for ac_func in _ldexpl
18450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18451 echo "configure:18452: checking for $ac_func" >&5
18452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18453 echo $ac_n "(cached) $ac_c" 1>&6
18454 else
18455 cat > conftest.$ac_ext <<EOF
18456 #line 18457 "configure"
18457 #include "confdefs.h"
18458 /* System header to define __stub macros and hopefully few prototypes,
18459 which can conflict with char $ac_func(); below. */
18460 #include <assert.h>
18461 /* Override any gcc2 internal prototype to avoid an error. */
18462 /* We use char because int might match the return type of a gcc2
18463 builtin and then its argument prototype would still apply. */
18464 char $ac_func();
18466 int main() {
18468 /* The GNU C library defines this for functions which it implements
18469 to always fail with ENOSYS. Some functions are actually named
18470 something starting with __ and the normal name is an alias. */
18471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18472 choke me
18473 #else
18474 $ac_func();
18475 #endif
18477 ; return 0; }
18479 if { (eval echo configure:18480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18480 rm -rf conftest*
18481 eval "ac_cv_func_$ac_func=yes"
18482 else
18483 echo "configure: failed program was:" >&5
18484 cat conftest.$ac_ext >&5
18485 rm -rf conftest*
18486 eval "ac_cv_func_$ac_func=no"
18488 rm -f conftest*
18491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18492 echo "$ac_t""yes" 1>&6
18493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18494 cat >> confdefs.h <<EOF
18495 #define $ac_tr_func 1
18498 else
18499 echo "$ac_t""no" 1>&6
18501 done
18508 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18509 echo "configure:18510: checking for logl declaration" >&5
18510 if test x${glibcpp_cv_func_logl_use+set} != xset; then
18511 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18512 echo $ac_n "(cached) $ac_c" 1>&6
18513 else
18516 ac_ext=C
18517 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18518 ac_cpp='$CXXCPP $CPPFLAGS'
18519 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18520 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18521 cross_compiling=$ac_cv_prog_cxx_cross
18523 cat > conftest.$ac_ext <<EOF
18524 #line 18525 "configure"
18525 #include "confdefs.h"
18526 #include <math.h>
18527 #ifdef HAVE_IEEEFP_H
18528 #include <ieeefp.h>
18529 #endif
18531 int main() {
18532 logl(0);
18533 ; return 0; }
18535 if { (eval echo configure:18536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18536 rm -rf conftest*
18537 glibcpp_cv_func_logl_use=yes
18538 else
18539 echo "configure: failed program was:" >&5
18540 cat conftest.$ac_ext >&5
18541 rm -rf conftest*
18542 glibcpp_cv_func_logl_use=no
18544 rm -f conftest*
18545 ac_ext=c
18546 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18547 ac_cpp='$CPP $CPPFLAGS'
18548 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18549 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18550 cross_compiling=$ac_cv_prog_cc_cross
18556 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18558 if test x$glibcpp_cv_func_logl_use = x"yes"; then
18559 for ac_func in logl
18561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18562 echo "configure:18563: checking for $ac_func" >&5
18563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18564 echo $ac_n "(cached) $ac_c" 1>&6
18565 else
18566 cat > conftest.$ac_ext <<EOF
18567 #line 18568 "configure"
18568 #include "confdefs.h"
18569 /* System header to define __stub macros and hopefully few prototypes,
18570 which can conflict with char $ac_func(); below. */
18571 #include <assert.h>
18572 /* Override any gcc2 internal prototype to avoid an error. */
18573 /* We use char because int might match the return type of a gcc2
18574 builtin and then its argument prototype would still apply. */
18575 char $ac_func();
18577 int main() {
18579 /* The GNU C library defines this for functions which it implements
18580 to always fail with ENOSYS. Some functions are actually named
18581 something starting with __ and the normal name is an alias. */
18582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18583 choke me
18584 #else
18585 $ac_func();
18586 #endif
18588 ; return 0; }
18590 if { (eval echo configure:18591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18591 rm -rf conftest*
18592 eval "ac_cv_func_$ac_func=yes"
18593 else
18594 echo "configure: failed program was:" >&5
18595 cat conftest.$ac_ext >&5
18596 rm -rf conftest*
18597 eval "ac_cv_func_$ac_func=no"
18599 rm -f conftest*
18602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18603 echo "$ac_t""yes" 1>&6
18604 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18605 cat >> confdefs.h <<EOF
18606 #define $ac_tr_func 1
18609 else
18610 echo "$ac_t""no" 1>&6
18612 done
18614 else
18616 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18617 echo "configure:18618: checking for _logl declaration" >&5
18618 if test x${glibcpp_cv_func__logl_use+set} != xset; then
18619 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18620 echo $ac_n "(cached) $ac_c" 1>&6
18621 else
18624 ac_ext=C
18625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18626 ac_cpp='$CXXCPP $CPPFLAGS'
18627 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18628 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18629 cross_compiling=$ac_cv_prog_cxx_cross
18631 cat > conftest.$ac_ext <<EOF
18632 #line 18633 "configure"
18633 #include "confdefs.h"
18634 #include <math.h>
18635 #ifdef HAVE_IEEEFP_H
18636 #include <ieeefp.h>
18637 #endif
18639 int main() {
18640 _logl(0);
18641 ; return 0; }
18643 if { (eval echo configure:18644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18644 rm -rf conftest*
18645 glibcpp_cv_func__logl_use=yes
18646 else
18647 echo "configure: failed program was:" >&5
18648 cat conftest.$ac_ext >&5
18649 rm -rf conftest*
18650 glibcpp_cv_func__logl_use=no
18652 rm -f conftest*
18653 ac_ext=c
18654 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18655 ac_cpp='$CPP $CPPFLAGS'
18656 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18657 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18658 cross_compiling=$ac_cv_prog_cc_cross
18664 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18666 if test x$glibcpp_cv_func__logl_use = x"yes"; then
18667 for ac_func in _logl
18669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18670 echo "configure:18671: checking for $ac_func" >&5
18671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18672 echo $ac_n "(cached) $ac_c" 1>&6
18673 else
18674 cat > conftest.$ac_ext <<EOF
18675 #line 18676 "configure"
18676 #include "confdefs.h"
18677 /* System header to define __stub macros and hopefully few prototypes,
18678 which can conflict with char $ac_func(); below. */
18679 #include <assert.h>
18680 /* Override any gcc2 internal prototype to avoid an error. */
18681 /* We use char because int might match the return type of a gcc2
18682 builtin and then its argument prototype would still apply. */
18683 char $ac_func();
18685 int main() {
18687 /* The GNU C library defines this for functions which it implements
18688 to always fail with ENOSYS. Some functions are actually named
18689 something starting with __ and the normal name is an alias. */
18690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18691 choke me
18692 #else
18693 $ac_func();
18694 #endif
18696 ; return 0; }
18698 if { (eval echo configure:18699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18699 rm -rf conftest*
18700 eval "ac_cv_func_$ac_func=yes"
18701 else
18702 echo "configure: failed program was:" >&5
18703 cat conftest.$ac_ext >&5
18704 rm -rf conftest*
18705 eval "ac_cv_func_$ac_func=no"
18707 rm -f conftest*
18710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18711 echo "$ac_t""yes" 1>&6
18712 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18713 cat >> confdefs.h <<EOF
18714 #define $ac_tr_func 1
18717 else
18718 echo "$ac_t""no" 1>&6
18720 done
18727 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18728 echo "configure:18729: checking for log10l declaration" >&5
18729 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18730 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18731 echo $ac_n "(cached) $ac_c" 1>&6
18732 else
18735 ac_ext=C
18736 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18737 ac_cpp='$CXXCPP $CPPFLAGS'
18738 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18739 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18740 cross_compiling=$ac_cv_prog_cxx_cross
18742 cat > conftest.$ac_ext <<EOF
18743 #line 18744 "configure"
18744 #include "confdefs.h"
18745 #include <math.h>
18746 #ifdef HAVE_IEEEFP_H
18747 #include <ieeefp.h>
18748 #endif
18750 int main() {
18751 log10l(0);
18752 ; return 0; }
18754 if { (eval echo configure:18755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18755 rm -rf conftest*
18756 glibcpp_cv_func_log10l_use=yes
18757 else
18758 echo "configure: failed program was:" >&5
18759 cat conftest.$ac_ext >&5
18760 rm -rf conftest*
18761 glibcpp_cv_func_log10l_use=no
18763 rm -f conftest*
18764 ac_ext=c
18765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18766 ac_cpp='$CPP $CPPFLAGS'
18767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18769 cross_compiling=$ac_cv_prog_cc_cross
18775 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18777 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18778 for ac_func in log10l
18780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18781 echo "configure:18782: checking for $ac_func" >&5
18782 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18783 echo $ac_n "(cached) $ac_c" 1>&6
18784 else
18785 cat > conftest.$ac_ext <<EOF
18786 #line 18787 "configure"
18787 #include "confdefs.h"
18788 /* System header to define __stub macros and hopefully few prototypes,
18789 which can conflict with char $ac_func(); below. */
18790 #include <assert.h>
18791 /* Override any gcc2 internal prototype to avoid an error. */
18792 /* We use char because int might match the return type of a gcc2
18793 builtin and then its argument prototype would still apply. */
18794 char $ac_func();
18796 int main() {
18798 /* The GNU C library defines this for functions which it implements
18799 to always fail with ENOSYS. Some functions are actually named
18800 something starting with __ and the normal name is an alias. */
18801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18802 choke me
18803 #else
18804 $ac_func();
18805 #endif
18807 ; return 0; }
18809 if { (eval echo configure:18810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18810 rm -rf conftest*
18811 eval "ac_cv_func_$ac_func=yes"
18812 else
18813 echo "configure: failed program was:" >&5
18814 cat conftest.$ac_ext >&5
18815 rm -rf conftest*
18816 eval "ac_cv_func_$ac_func=no"
18818 rm -f conftest*
18821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18822 echo "$ac_t""yes" 1>&6
18823 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18824 cat >> confdefs.h <<EOF
18825 #define $ac_tr_func 1
18828 else
18829 echo "$ac_t""no" 1>&6
18831 done
18833 else
18835 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18836 echo "configure:18837: checking for _log10l declaration" >&5
18837 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18838 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18839 echo $ac_n "(cached) $ac_c" 1>&6
18840 else
18843 ac_ext=C
18844 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18845 ac_cpp='$CXXCPP $CPPFLAGS'
18846 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18847 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18848 cross_compiling=$ac_cv_prog_cxx_cross
18850 cat > conftest.$ac_ext <<EOF
18851 #line 18852 "configure"
18852 #include "confdefs.h"
18853 #include <math.h>
18854 #ifdef HAVE_IEEEFP_H
18855 #include <ieeefp.h>
18856 #endif
18858 int main() {
18859 _log10l(0);
18860 ; return 0; }
18862 if { (eval echo configure:18863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18863 rm -rf conftest*
18864 glibcpp_cv_func__log10l_use=yes
18865 else
18866 echo "configure: failed program was:" >&5
18867 cat conftest.$ac_ext >&5
18868 rm -rf conftest*
18869 glibcpp_cv_func__log10l_use=no
18871 rm -f conftest*
18872 ac_ext=c
18873 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18874 ac_cpp='$CPP $CPPFLAGS'
18875 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18876 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18877 cross_compiling=$ac_cv_prog_cc_cross
18883 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18885 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18886 for ac_func in _log10l
18888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18889 echo "configure:18890: checking for $ac_func" >&5
18890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18891 echo $ac_n "(cached) $ac_c" 1>&6
18892 else
18893 cat > conftest.$ac_ext <<EOF
18894 #line 18895 "configure"
18895 #include "confdefs.h"
18896 /* System header to define __stub macros and hopefully few prototypes,
18897 which can conflict with char $ac_func(); below. */
18898 #include <assert.h>
18899 /* Override any gcc2 internal prototype to avoid an error. */
18900 /* We use char because int might match the return type of a gcc2
18901 builtin and then its argument prototype would still apply. */
18902 char $ac_func();
18904 int main() {
18906 /* The GNU C library defines this for functions which it implements
18907 to always fail with ENOSYS. Some functions are actually named
18908 something starting with __ and the normal name is an alias. */
18909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18910 choke me
18911 #else
18912 $ac_func();
18913 #endif
18915 ; return 0; }
18917 if { (eval echo configure:18918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18918 rm -rf conftest*
18919 eval "ac_cv_func_$ac_func=yes"
18920 else
18921 echo "configure: failed program was:" >&5
18922 cat conftest.$ac_ext >&5
18923 rm -rf conftest*
18924 eval "ac_cv_func_$ac_func=no"
18926 rm -f conftest*
18929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18930 echo "$ac_t""yes" 1>&6
18931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18932 cat >> confdefs.h <<EOF
18933 #define $ac_tr_func 1
18936 else
18937 echo "$ac_t""no" 1>&6
18939 done
18946 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18947 echo "configure:18948: checking for modfl declaration" >&5
18948 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18949 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18950 echo $ac_n "(cached) $ac_c" 1>&6
18951 else
18954 ac_ext=C
18955 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18956 ac_cpp='$CXXCPP $CPPFLAGS'
18957 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18958 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18959 cross_compiling=$ac_cv_prog_cxx_cross
18961 cat > conftest.$ac_ext <<EOF
18962 #line 18963 "configure"
18963 #include "confdefs.h"
18964 #include <math.h>
18965 int main() {
18966 modfl(0, 0);
18967 ; return 0; }
18969 if { (eval echo configure:18970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18970 rm -rf conftest*
18971 glibcpp_cv_func_modfl_use=yes
18972 else
18973 echo "configure: failed program was:" >&5
18974 cat conftest.$ac_ext >&5
18975 rm -rf conftest*
18976 glibcpp_cv_func_modfl_use=no
18978 rm -f conftest*
18979 ac_ext=c
18980 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18981 ac_cpp='$CPP $CPPFLAGS'
18982 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18983 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18984 cross_compiling=$ac_cv_prog_cc_cross
18990 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18992 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18993 for ac_func in modfl
18995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18996 echo "configure:18997: checking for $ac_func" >&5
18997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18998 echo $ac_n "(cached) $ac_c" 1>&6
18999 else
19000 cat > conftest.$ac_ext <<EOF
19001 #line 19002 "configure"
19002 #include "confdefs.h"
19003 /* System header to define __stub macros and hopefully few prototypes,
19004 which can conflict with char $ac_func(); below. */
19005 #include <assert.h>
19006 /* Override any gcc2 internal prototype to avoid an error. */
19007 /* We use char because int might match the return type of a gcc2
19008 builtin and then its argument prototype would still apply. */
19009 char $ac_func();
19011 int main() {
19013 /* The GNU C library defines this for functions which it implements
19014 to always fail with ENOSYS. Some functions are actually named
19015 something starting with __ and the normal name is an alias. */
19016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19017 choke me
19018 #else
19019 $ac_func();
19020 #endif
19022 ; return 0; }
19024 if { (eval echo configure:19025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19025 rm -rf conftest*
19026 eval "ac_cv_func_$ac_func=yes"
19027 else
19028 echo "configure: failed program was:" >&5
19029 cat conftest.$ac_ext >&5
19030 rm -rf conftest*
19031 eval "ac_cv_func_$ac_func=no"
19033 rm -f conftest*
19036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19037 echo "$ac_t""yes" 1>&6
19038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19039 cat >> confdefs.h <<EOF
19040 #define $ac_tr_func 1
19043 else
19044 echo "$ac_t""no" 1>&6
19046 done
19048 else
19050 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
19051 echo "configure:19052: checking for _modfl declaration" >&5
19052 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
19053 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
19054 echo $ac_n "(cached) $ac_c" 1>&6
19055 else
19058 ac_ext=C
19059 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19060 ac_cpp='$CXXCPP $CPPFLAGS'
19061 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19062 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19063 cross_compiling=$ac_cv_prog_cxx_cross
19065 cat > conftest.$ac_ext <<EOF
19066 #line 19067 "configure"
19067 #include "confdefs.h"
19068 #include <math.h>
19069 int main() {
19070 _modfl(0, 0);
19071 ; return 0; }
19073 if { (eval echo configure:19074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19074 rm -rf conftest*
19075 glibcpp_cv_func__modfl_use=yes
19076 else
19077 echo "configure: failed program was:" >&5
19078 cat conftest.$ac_ext >&5
19079 rm -rf conftest*
19080 glibcpp_cv_func__modfl_use=no
19082 rm -f conftest*
19083 ac_ext=c
19084 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19085 ac_cpp='$CPP $CPPFLAGS'
19086 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19087 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19088 cross_compiling=$ac_cv_prog_cc_cross
19094 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19096 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19097 for ac_func in _modfl
19099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19100 echo "configure:19101: checking for $ac_func" >&5
19101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19102 echo $ac_n "(cached) $ac_c" 1>&6
19103 else
19104 cat > conftest.$ac_ext <<EOF
19105 #line 19106 "configure"
19106 #include "confdefs.h"
19107 /* System header to define __stub macros and hopefully few prototypes,
19108 which can conflict with char $ac_func(); below. */
19109 #include <assert.h>
19110 /* Override any gcc2 internal prototype to avoid an error. */
19111 /* We use char because int might match the return type of a gcc2
19112 builtin and then its argument prototype would still apply. */
19113 char $ac_func();
19115 int main() {
19117 /* The GNU C library defines this for functions which it implements
19118 to always fail with ENOSYS. Some functions are actually named
19119 something starting with __ and the normal name is an alias. */
19120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19121 choke me
19122 #else
19123 $ac_func();
19124 #endif
19126 ; return 0; }
19128 if { (eval echo configure:19129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19129 rm -rf conftest*
19130 eval "ac_cv_func_$ac_func=yes"
19131 else
19132 echo "configure: failed program was:" >&5
19133 cat conftest.$ac_ext >&5
19134 rm -rf conftest*
19135 eval "ac_cv_func_$ac_func=no"
19137 rm -f conftest*
19140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19141 echo "$ac_t""yes" 1>&6
19142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19143 cat >> confdefs.h <<EOF
19144 #define $ac_tr_func 1
19147 else
19148 echo "$ac_t""no" 1>&6
19150 done
19157 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19158 echo "configure:19159: checking for powl declaration" >&5
19159 if test x${glibcpp_cv_func_powl_use+set} != xset; then
19160 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19161 echo $ac_n "(cached) $ac_c" 1>&6
19162 else
19165 ac_ext=C
19166 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19167 ac_cpp='$CXXCPP $CPPFLAGS'
19168 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19169 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19170 cross_compiling=$ac_cv_prog_cxx_cross
19172 cat > conftest.$ac_ext <<EOF
19173 #line 19174 "configure"
19174 #include "confdefs.h"
19175 #include <math.h>
19176 int main() {
19177 powl(0, 0);
19178 ; return 0; }
19180 if { (eval echo configure:19181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19181 rm -rf conftest*
19182 glibcpp_cv_func_powl_use=yes
19183 else
19184 echo "configure: failed program was:" >&5
19185 cat conftest.$ac_ext >&5
19186 rm -rf conftest*
19187 glibcpp_cv_func_powl_use=no
19189 rm -f conftest*
19190 ac_ext=c
19191 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19192 ac_cpp='$CPP $CPPFLAGS'
19193 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19194 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19195 cross_compiling=$ac_cv_prog_cc_cross
19201 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19203 if test x$glibcpp_cv_func_powl_use = x"yes"; then
19204 for ac_func in powl
19206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19207 echo "configure:19208: checking for $ac_func" >&5
19208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19209 echo $ac_n "(cached) $ac_c" 1>&6
19210 else
19211 cat > conftest.$ac_ext <<EOF
19212 #line 19213 "configure"
19213 #include "confdefs.h"
19214 /* System header to define __stub macros and hopefully few prototypes,
19215 which can conflict with char $ac_func(); below. */
19216 #include <assert.h>
19217 /* Override any gcc2 internal prototype to avoid an error. */
19218 /* We use char because int might match the return type of a gcc2
19219 builtin and then its argument prototype would still apply. */
19220 char $ac_func();
19222 int main() {
19224 /* The GNU C library defines this for functions which it implements
19225 to always fail with ENOSYS. Some functions are actually named
19226 something starting with __ and the normal name is an alias. */
19227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19228 choke me
19229 #else
19230 $ac_func();
19231 #endif
19233 ; return 0; }
19235 if { (eval echo configure:19236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19236 rm -rf conftest*
19237 eval "ac_cv_func_$ac_func=yes"
19238 else
19239 echo "configure: failed program was:" >&5
19240 cat conftest.$ac_ext >&5
19241 rm -rf conftest*
19242 eval "ac_cv_func_$ac_func=no"
19244 rm -f conftest*
19247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19248 echo "$ac_t""yes" 1>&6
19249 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19250 cat >> confdefs.h <<EOF
19251 #define $ac_tr_func 1
19254 else
19255 echo "$ac_t""no" 1>&6
19257 done
19259 else
19261 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19262 echo "configure:19263: checking for _powl declaration" >&5
19263 if test x${glibcpp_cv_func__powl_use+set} != xset; then
19264 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19265 echo $ac_n "(cached) $ac_c" 1>&6
19266 else
19269 ac_ext=C
19270 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19271 ac_cpp='$CXXCPP $CPPFLAGS'
19272 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19273 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19274 cross_compiling=$ac_cv_prog_cxx_cross
19276 cat > conftest.$ac_ext <<EOF
19277 #line 19278 "configure"
19278 #include "confdefs.h"
19279 #include <math.h>
19280 int main() {
19281 _powl(0, 0);
19282 ; return 0; }
19284 if { (eval echo configure:19285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19285 rm -rf conftest*
19286 glibcpp_cv_func__powl_use=yes
19287 else
19288 echo "configure: failed program was:" >&5
19289 cat conftest.$ac_ext >&5
19290 rm -rf conftest*
19291 glibcpp_cv_func__powl_use=no
19293 rm -f conftest*
19294 ac_ext=c
19295 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19296 ac_cpp='$CPP $CPPFLAGS'
19297 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19298 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19299 cross_compiling=$ac_cv_prog_cc_cross
19305 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19307 if test x$glibcpp_cv_func__powl_use = x"yes"; then
19308 for ac_func in _powl
19310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19311 echo "configure:19312: checking for $ac_func" >&5
19312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19313 echo $ac_n "(cached) $ac_c" 1>&6
19314 else
19315 cat > conftest.$ac_ext <<EOF
19316 #line 19317 "configure"
19317 #include "confdefs.h"
19318 /* System header to define __stub macros and hopefully few prototypes,
19319 which can conflict with char $ac_func(); below. */
19320 #include <assert.h>
19321 /* Override any gcc2 internal prototype to avoid an error. */
19322 /* We use char because int might match the return type of a gcc2
19323 builtin and then its argument prototype would still apply. */
19324 char $ac_func();
19326 int main() {
19328 /* The GNU C library defines this for functions which it implements
19329 to always fail with ENOSYS. Some functions are actually named
19330 something starting with __ and the normal name is an alias. */
19331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19332 choke me
19333 #else
19334 $ac_func();
19335 #endif
19337 ; return 0; }
19339 if { (eval echo configure:19340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19340 rm -rf conftest*
19341 eval "ac_cv_func_$ac_func=yes"
19342 else
19343 echo "configure: failed program was:" >&5
19344 cat conftest.$ac_ext >&5
19345 rm -rf conftest*
19346 eval "ac_cv_func_$ac_func=no"
19348 rm -f conftest*
19351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19352 echo "$ac_t""yes" 1>&6
19353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19354 cat >> confdefs.h <<EOF
19355 #define $ac_tr_func 1
19358 else
19359 echo "$ac_t""no" 1>&6
19361 done
19368 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19369 echo "configure:19370: checking for sqrtl declaration" >&5
19370 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19371 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19372 echo $ac_n "(cached) $ac_c" 1>&6
19373 else
19376 ac_ext=C
19377 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19378 ac_cpp='$CXXCPP $CPPFLAGS'
19379 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19380 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19381 cross_compiling=$ac_cv_prog_cxx_cross
19383 cat > conftest.$ac_ext <<EOF
19384 #line 19385 "configure"
19385 #include "confdefs.h"
19386 #include <math.h>
19387 #ifdef HAVE_IEEEFP_H
19388 #include <ieeefp.h>
19389 #endif
19391 int main() {
19392 sqrtl(0);
19393 ; return 0; }
19395 if { (eval echo configure:19396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19396 rm -rf conftest*
19397 glibcpp_cv_func_sqrtl_use=yes
19398 else
19399 echo "configure: failed program was:" >&5
19400 cat conftest.$ac_ext >&5
19401 rm -rf conftest*
19402 glibcpp_cv_func_sqrtl_use=no
19404 rm -f conftest*
19405 ac_ext=c
19406 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19407 ac_cpp='$CPP $CPPFLAGS'
19408 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19409 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19410 cross_compiling=$ac_cv_prog_cc_cross
19416 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19418 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19419 for ac_func in sqrtl
19421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19422 echo "configure:19423: checking for $ac_func" >&5
19423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19424 echo $ac_n "(cached) $ac_c" 1>&6
19425 else
19426 cat > conftest.$ac_ext <<EOF
19427 #line 19428 "configure"
19428 #include "confdefs.h"
19429 /* System header to define __stub macros and hopefully few prototypes,
19430 which can conflict with char $ac_func(); below. */
19431 #include <assert.h>
19432 /* Override any gcc2 internal prototype to avoid an error. */
19433 /* We use char because int might match the return type of a gcc2
19434 builtin and then its argument prototype would still apply. */
19435 char $ac_func();
19437 int main() {
19439 /* The GNU C library defines this for functions which it implements
19440 to always fail with ENOSYS. Some functions are actually named
19441 something starting with __ and the normal name is an alias. */
19442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19443 choke me
19444 #else
19445 $ac_func();
19446 #endif
19448 ; return 0; }
19450 if { (eval echo configure:19451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19451 rm -rf conftest*
19452 eval "ac_cv_func_$ac_func=yes"
19453 else
19454 echo "configure: failed program was:" >&5
19455 cat conftest.$ac_ext >&5
19456 rm -rf conftest*
19457 eval "ac_cv_func_$ac_func=no"
19459 rm -f conftest*
19462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19463 echo "$ac_t""yes" 1>&6
19464 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19465 cat >> confdefs.h <<EOF
19466 #define $ac_tr_func 1
19469 else
19470 echo "$ac_t""no" 1>&6
19472 done
19474 else
19476 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19477 echo "configure:19478: checking for _sqrtl declaration" >&5
19478 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19479 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19480 echo $ac_n "(cached) $ac_c" 1>&6
19481 else
19484 ac_ext=C
19485 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19486 ac_cpp='$CXXCPP $CPPFLAGS'
19487 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19488 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19489 cross_compiling=$ac_cv_prog_cxx_cross
19491 cat > conftest.$ac_ext <<EOF
19492 #line 19493 "configure"
19493 #include "confdefs.h"
19494 #include <math.h>
19495 #ifdef HAVE_IEEEFP_H
19496 #include <ieeefp.h>
19497 #endif
19499 int main() {
19500 _sqrtl(0);
19501 ; return 0; }
19503 if { (eval echo configure:19504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19504 rm -rf conftest*
19505 glibcpp_cv_func__sqrtl_use=yes
19506 else
19507 echo "configure: failed program was:" >&5
19508 cat conftest.$ac_ext >&5
19509 rm -rf conftest*
19510 glibcpp_cv_func__sqrtl_use=no
19512 rm -f conftest*
19513 ac_ext=c
19514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19515 ac_cpp='$CPP $CPPFLAGS'
19516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19518 cross_compiling=$ac_cv_prog_cc_cross
19524 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19526 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19527 for ac_func in _sqrtl
19529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19530 echo "configure:19531: checking for $ac_func" >&5
19531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19532 echo $ac_n "(cached) $ac_c" 1>&6
19533 else
19534 cat > conftest.$ac_ext <<EOF
19535 #line 19536 "configure"
19536 #include "confdefs.h"
19537 /* System header to define __stub macros and hopefully few prototypes,
19538 which can conflict with char $ac_func(); below. */
19539 #include <assert.h>
19540 /* Override any gcc2 internal prototype to avoid an error. */
19541 /* We use char because int might match the return type of a gcc2
19542 builtin and then its argument prototype would still apply. */
19543 char $ac_func();
19545 int main() {
19547 /* The GNU C library defines this for functions which it implements
19548 to always fail with ENOSYS. Some functions are actually named
19549 something starting with __ and the normal name is an alias. */
19550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19551 choke me
19552 #else
19553 $ac_func();
19554 #endif
19556 ; return 0; }
19558 if { (eval echo configure:19559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19559 rm -rf conftest*
19560 eval "ac_cv_func_$ac_func=yes"
19561 else
19562 echo "configure: failed program was:" >&5
19563 cat conftest.$ac_ext >&5
19564 rm -rf conftest*
19565 eval "ac_cv_func_$ac_func=no"
19567 rm -f conftest*
19570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19571 echo "$ac_t""yes" 1>&6
19572 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19573 cat >> confdefs.h <<EOF
19574 #define $ac_tr_func 1
19577 else
19578 echo "$ac_t""no" 1>&6
19580 done
19587 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19588 echo "configure:19589: checking for sincosl declaration" >&5
19589 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19590 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19591 echo $ac_n "(cached) $ac_c" 1>&6
19592 else
19595 ac_ext=C
19596 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19597 ac_cpp='$CXXCPP $CPPFLAGS'
19598 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19599 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19600 cross_compiling=$ac_cv_prog_cxx_cross
19602 cat > conftest.$ac_ext <<EOF
19603 #line 19604 "configure"
19604 #include "confdefs.h"
19605 #include <math.h>
19606 int main() {
19607 sincosl(0, 0, 0);
19608 ; return 0; }
19610 if { (eval echo configure:19611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19611 rm -rf conftest*
19612 glibcpp_cv_func_sincosl_use=yes
19613 else
19614 echo "configure: failed program was:" >&5
19615 cat conftest.$ac_ext >&5
19616 rm -rf conftest*
19617 glibcpp_cv_func_sincosl_use=no
19619 rm -f conftest*
19620 ac_ext=c
19621 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19622 ac_cpp='$CPP $CPPFLAGS'
19623 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19624 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19625 cross_compiling=$ac_cv_prog_cc_cross
19631 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19633 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19634 for ac_func in sincosl
19636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19637 echo "configure:19638: checking for $ac_func" >&5
19638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19639 echo $ac_n "(cached) $ac_c" 1>&6
19640 else
19641 cat > conftest.$ac_ext <<EOF
19642 #line 19643 "configure"
19643 #include "confdefs.h"
19644 /* System header to define __stub macros and hopefully few prototypes,
19645 which can conflict with char $ac_func(); below. */
19646 #include <assert.h>
19647 /* Override any gcc2 internal prototype to avoid an error. */
19648 /* We use char because int might match the return type of a gcc2
19649 builtin and then its argument prototype would still apply. */
19650 char $ac_func();
19652 int main() {
19654 /* The GNU C library defines this for functions which it implements
19655 to always fail with ENOSYS. Some functions are actually named
19656 something starting with __ and the normal name is an alias. */
19657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19658 choke me
19659 #else
19660 $ac_func();
19661 #endif
19663 ; return 0; }
19665 if { (eval echo configure:19666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19666 rm -rf conftest*
19667 eval "ac_cv_func_$ac_func=yes"
19668 else
19669 echo "configure: failed program was:" >&5
19670 cat conftest.$ac_ext >&5
19671 rm -rf conftest*
19672 eval "ac_cv_func_$ac_func=no"
19674 rm -f conftest*
19677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19678 echo "$ac_t""yes" 1>&6
19679 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19680 cat >> confdefs.h <<EOF
19681 #define $ac_tr_func 1
19684 else
19685 echo "$ac_t""no" 1>&6
19687 done
19689 else
19691 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19692 echo "configure:19693: checking for _sincosl declaration" >&5
19693 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19694 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19695 echo $ac_n "(cached) $ac_c" 1>&6
19696 else
19699 ac_ext=C
19700 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19701 ac_cpp='$CXXCPP $CPPFLAGS'
19702 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19703 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19704 cross_compiling=$ac_cv_prog_cxx_cross
19706 cat > conftest.$ac_ext <<EOF
19707 #line 19708 "configure"
19708 #include "confdefs.h"
19709 #include <math.h>
19710 int main() {
19711 _sincosl(0, 0, 0);
19712 ; return 0; }
19714 if { (eval echo configure:19715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19715 rm -rf conftest*
19716 glibcpp_cv_func__sincosl_use=yes
19717 else
19718 echo "configure: failed program was:" >&5
19719 cat conftest.$ac_ext >&5
19720 rm -rf conftest*
19721 glibcpp_cv_func__sincosl_use=no
19723 rm -f conftest*
19724 ac_ext=c
19725 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19726 ac_cpp='$CPP $CPPFLAGS'
19727 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19728 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19729 cross_compiling=$ac_cv_prog_cc_cross
19735 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19737 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19738 for ac_func in _sincosl
19740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19741 echo "configure:19742: checking for $ac_func" >&5
19742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19743 echo $ac_n "(cached) $ac_c" 1>&6
19744 else
19745 cat > conftest.$ac_ext <<EOF
19746 #line 19747 "configure"
19747 #include "confdefs.h"
19748 /* System header to define __stub macros and hopefully few prototypes,
19749 which can conflict with char $ac_func(); below. */
19750 #include <assert.h>
19751 /* Override any gcc2 internal prototype to avoid an error. */
19752 /* We use char because int might match the return type of a gcc2
19753 builtin and then its argument prototype would still apply. */
19754 char $ac_func();
19756 int main() {
19758 /* The GNU C library defines this for functions which it implements
19759 to always fail with ENOSYS. Some functions are actually named
19760 something starting with __ and the normal name is an alias. */
19761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19762 choke me
19763 #else
19764 $ac_func();
19765 #endif
19767 ; return 0; }
19769 if { (eval echo configure:19770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19770 rm -rf conftest*
19771 eval "ac_cv_func_$ac_func=yes"
19772 else
19773 echo "configure: failed program was:" >&5
19774 cat conftest.$ac_ext >&5
19775 rm -rf conftest*
19776 eval "ac_cv_func_$ac_func=no"
19778 rm -f conftest*
19781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19782 echo "$ac_t""yes" 1>&6
19783 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19784 cat >> confdefs.h <<EOF
19785 #define $ac_tr_func 1
19788 else
19789 echo "$ac_t""no" 1>&6
19791 done
19798 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19799 echo "configure:19800: checking for finitel declaration" >&5
19800 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19801 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19802 echo $ac_n "(cached) $ac_c" 1>&6
19803 else
19806 ac_ext=C
19807 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19808 ac_cpp='$CXXCPP $CPPFLAGS'
19809 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19810 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19811 cross_compiling=$ac_cv_prog_cxx_cross
19813 cat > conftest.$ac_ext <<EOF
19814 #line 19815 "configure"
19815 #include "confdefs.h"
19816 #include <math.h>
19817 #ifdef HAVE_IEEEFP_H
19818 #include <ieeefp.h>
19819 #endif
19821 int main() {
19822 finitel(0);
19823 ; return 0; }
19825 if { (eval echo configure:19826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19826 rm -rf conftest*
19827 glibcpp_cv_func_finitel_use=yes
19828 else
19829 echo "configure: failed program was:" >&5
19830 cat conftest.$ac_ext >&5
19831 rm -rf conftest*
19832 glibcpp_cv_func_finitel_use=no
19834 rm -f conftest*
19835 ac_ext=c
19836 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19837 ac_cpp='$CPP $CPPFLAGS'
19838 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19839 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19840 cross_compiling=$ac_cv_prog_cc_cross
19846 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19848 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19849 for ac_func in finitel
19851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19852 echo "configure:19853: checking for $ac_func" >&5
19853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19854 echo $ac_n "(cached) $ac_c" 1>&6
19855 else
19856 cat > conftest.$ac_ext <<EOF
19857 #line 19858 "configure"
19858 #include "confdefs.h"
19859 /* System header to define __stub macros and hopefully few prototypes,
19860 which can conflict with char $ac_func(); below. */
19861 #include <assert.h>
19862 /* Override any gcc2 internal prototype to avoid an error. */
19863 /* We use char because int might match the return type of a gcc2
19864 builtin and then its argument prototype would still apply. */
19865 char $ac_func();
19867 int main() {
19869 /* The GNU C library defines this for functions which it implements
19870 to always fail with ENOSYS. Some functions are actually named
19871 something starting with __ and the normal name is an alias. */
19872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19873 choke me
19874 #else
19875 $ac_func();
19876 #endif
19878 ; return 0; }
19880 if { (eval echo configure:19881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19881 rm -rf conftest*
19882 eval "ac_cv_func_$ac_func=yes"
19883 else
19884 echo "configure: failed program was:" >&5
19885 cat conftest.$ac_ext >&5
19886 rm -rf conftest*
19887 eval "ac_cv_func_$ac_func=no"
19889 rm -f conftest*
19892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19893 echo "$ac_t""yes" 1>&6
19894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19895 cat >> confdefs.h <<EOF
19896 #define $ac_tr_func 1
19899 else
19900 echo "$ac_t""no" 1>&6
19902 done
19904 else
19906 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19907 echo "configure:19908: checking for _finitel declaration" >&5
19908 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19909 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19910 echo $ac_n "(cached) $ac_c" 1>&6
19911 else
19914 ac_ext=C
19915 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19916 ac_cpp='$CXXCPP $CPPFLAGS'
19917 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19918 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19919 cross_compiling=$ac_cv_prog_cxx_cross
19921 cat > conftest.$ac_ext <<EOF
19922 #line 19923 "configure"
19923 #include "confdefs.h"
19924 #include <math.h>
19925 #ifdef HAVE_IEEEFP_H
19926 #include <ieeefp.h>
19927 #endif
19929 int main() {
19930 _finitel(0);
19931 ; return 0; }
19933 if { (eval echo configure:19934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19934 rm -rf conftest*
19935 glibcpp_cv_func__finitel_use=yes
19936 else
19937 echo "configure: failed program was:" >&5
19938 cat conftest.$ac_ext >&5
19939 rm -rf conftest*
19940 glibcpp_cv_func__finitel_use=no
19942 rm -f conftest*
19943 ac_ext=c
19944 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19945 ac_cpp='$CPP $CPPFLAGS'
19946 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19947 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19948 cross_compiling=$ac_cv_prog_cc_cross
19954 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19956 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19957 for ac_func in _finitel
19959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19960 echo "configure:19961: checking for $ac_func" >&5
19961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19962 echo $ac_n "(cached) $ac_c" 1>&6
19963 else
19964 cat > conftest.$ac_ext <<EOF
19965 #line 19966 "configure"
19966 #include "confdefs.h"
19967 /* System header to define __stub macros and hopefully few prototypes,
19968 which can conflict with char $ac_func(); below. */
19969 #include <assert.h>
19970 /* Override any gcc2 internal prototype to avoid an error. */
19971 /* We use char because int might match the return type of a gcc2
19972 builtin and then its argument prototype would still apply. */
19973 char $ac_func();
19975 int main() {
19977 /* The GNU C library defines this for functions which it implements
19978 to always fail with ENOSYS. Some functions are actually named
19979 something starting with __ and the normal name is an alias. */
19980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19981 choke me
19982 #else
19983 $ac_func();
19984 #endif
19986 ; return 0; }
19988 if { (eval echo configure:19989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19989 rm -rf conftest*
19990 eval "ac_cv_func_$ac_func=yes"
19991 else
19992 echo "configure: failed program was:" >&5
19993 cat conftest.$ac_ext >&5
19994 rm -rf conftest*
19995 eval "ac_cv_func_$ac_func=no"
19997 rm -f conftest*
20000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20001 echo "$ac_t""yes" 1>&6
20002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20003 cat >> confdefs.h <<EOF
20004 #define $ac_tr_func 1
20007 else
20008 echo "$ac_t""no" 1>&6
20010 done
20018 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
20019 echo "configure:20020: checking for _float trig functions" >&5
20020 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
20021 echo $ac_n "(cached) $ac_c" 1>&6
20022 else
20025 ac_ext=C
20026 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20027 ac_cpp='$CXXCPP $CPPFLAGS'
20028 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20029 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20030 cross_compiling=$ac_cv_prog_cxx_cross
20032 cat > conftest.$ac_ext <<EOF
20033 #line 20034 "configure"
20034 #include "confdefs.h"
20035 #include <math.h>
20036 int main() {
20037 `for x in _acosf _asinf _atanf \
20038 _cosf _sinf _tanf \
20039 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
20040 ; return 0; }
20042 if { (eval echo configure:20043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20043 rm -rf conftest*
20044 glibcpp_cv_func__float_trig_use=yes
20045 else
20046 echo "configure: failed program was:" >&5
20047 cat conftest.$ac_ext >&5
20048 rm -rf conftest*
20049 glibcpp_cv_func__float_trig_use=no
20051 rm -f conftest*
20052 ac_ext=c
20053 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20054 ac_cpp='$CPP $CPPFLAGS'
20055 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20056 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20057 cross_compiling=$ac_cv_prog_cc_cross
20061 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
20062 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
20063 for ac_func in _acosf _asinf _atanf \
20064 _cosf _sinf _tanf \
20065 _coshf _sinhf _tanhf
20067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20068 echo "configure:20069: checking for $ac_func" >&5
20069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20070 echo $ac_n "(cached) $ac_c" 1>&6
20071 else
20072 cat > conftest.$ac_ext <<EOF
20073 #line 20074 "configure"
20074 #include "confdefs.h"
20075 /* System header to define __stub macros and hopefully few prototypes,
20076 which can conflict with char $ac_func(); below. */
20077 #include <assert.h>
20078 /* Override any gcc2 internal prototype to avoid an error. */
20079 /* We use char because int might match the return type of a gcc2
20080 builtin and then its argument prototype would still apply. */
20081 char $ac_func();
20083 int main() {
20085 /* The GNU C library defines this for functions which it implements
20086 to always fail with ENOSYS. Some functions are actually named
20087 something starting with __ and the normal name is an alias. */
20088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20089 choke me
20090 #else
20091 $ac_func();
20092 #endif
20094 ; return 0; }
20096 if { (eval echo configure:20097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20097 rm -rf conftest*
20098 eval "ac_cv_func_$ac_func=yes"
20099 else
20100 echo "configure: failed program was:" >&5
20101 cat conftest.$ac_ext >&5
20102 rm -rf conftest*
20103 eval "ac_cv_func_$ac_func=no"
20105 rm -f conftest*
20108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20109 echo "$ac_t""yes" 1>&6
20110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20111 cat >> confdefs.h <<EOF
20112 #define $ac_tr_func 1
20115 else
20116 echo "$ac_t""no" 1>&6
20118 done
20123 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20124 echo "configure:20125: checking for _float round functions" >&5
20125 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20126 echo $ac_n "(cached) $ac_c" 1>&6
20127 else
20130 ac_ext=C
20131 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20132 ac_cpp='$CXXCPP $CPPFLAGS'
20133 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20134 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20135 cross_compiling=$ac_cv_prog_cxx_cross
20137 cat > conftest.$ac_ext <<EOF
20138 #line 20139 "configure"
20139 #include "confdefs.h"
20140 #include <math.h>
20141 int main() {
20142 `for x in _ceilf _floorf; do echo "$x (0);"; done`
20143 ; return 0; }
20145 if { (eval echo configure:20146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20146 rm -rf conftest*
20147 glibcpp_cv_func__float_round_use=yes
20148 else
20149 echo "configure: failed program was:" >&5
20150 cat conftest.$ac_ext >&5
20151 rm -rf conftest*
20152 glibcpp_cv_func__float_round_use=no
20154 rm -f conftest*
20155 ac_ext=c
20156 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20157 ac_cpp='$CPP $CPPFLAGS'
20158 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20159 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20160 cross_compiling=$ac_cv_prog_cc_cross
20164 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20165 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20166 for ac_func in _ceilf _floorf
20168 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20169 echo "configure:20170: checking for $ac_func" >&5
20170 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20171 echo $ac_n "(cached) $ac_c" 1>&6
20172 else
20173 cat > conftest.$ac_ext <<EOF
20174 #line 20175 "configure"
20175 #include "confdefs.h"
20176 /* System header to define __stub macros and hopefully few prototypes,
20177 which can conflict with char $ac_func(); below. */
20178 #include <assert.h>
20179 /* Override any gcc2 internal prototype to avoid an error. */
20180 /* We use char because int might match the return type of a gcc2
20181 builtin and then its argument prototype would still apply. */
20182 char $ac_func();
20184 int main() {
20186 /* The GNU C library defines this for functions which it implements
20187 to always fail with ENOSYS. Some functions are actually named
20188 something starting with __ and the normal name is an alias. */
20189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20190 choke me
20191 #else
20192 $ac_func();
20193 #endif
20195 ; return 0; }
20197 if { (eval echo configure:20198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20198 rm -rf conftest*
20199 eval "ac_cv_func_$ac_func=yes"
20200 else
20201 echo "configure: failed program was:" >&5
20202 cat conftest.$ac_ext >&5
20203 rm -rf conftest*
20204 eval "ac_cv_func_$ac_func=no"
20206 rm -f conftest*
20209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20210 echo "$ac_t""yes" 1>&6
20211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20212 cat >> confdefs.h <<EOF
20213 #define $ac_tr_func 1
20216 else
20217 echo "$ac_t""no" 1>&6
20219 done
20225 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20226 echo "configure:20227: checking for _long double trig functions" >&5
20227 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20228 echo $ac_n "(cached) $ac_c" 1>&6
20229 else
20232 ac_ext=C
20233 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20234 ac_cpp='$CXXCPP $CPPFLAGS'
20235 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20236 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20237 cross_compiling=$ac_cv_prog_cxx_cross
20239 cat > conftest.$ac_ext <<EOF
20240 #line 20241 "configure"
20241 #include "confdefs.h"
20242 #include <math.h>
20243 int main() {
20244 `for x in _acosl _asinl _atanl \
20245 _cosl _sinl _tanl \
20246 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
20247 ; return 0; }
20249 if { (eval echo configure:20250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20250 rm -rf conftest*
20251 glibcpp_cv_func__long_double_trig_use=yes
20252 else
20253 echo "configure: failed program was:" >&5
20254 cat conftest.$ac_ext >&5
20255 rm -rf conftest*
20256 glibcpp_cv_func__long_double_trig_use=no
20258 rm -f conftest*
20259 ac_ext=c
20260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20261 ac_cpp='$CPP $CPPFLAGS'
20262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20264 cross_compiling=$ac_cv_prog_cc_cross
20268 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20269 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20270 for ac_func in _acosl _asinl _atanl \
20271 _cosl _sinl _tanl \
20272 _coshl _sinhl _tanhl
20274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20275 echo "configure:20276: checking for $ac_func" >&5
20276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20277 echo $ac_n "(cached) $ac_c" 1>&6
20278 else
20279 cat > conftest.$ac_ext <<EOF
20280 #line 20281 "configure"
20281 #include "confdefs.h"
20282 /* System header to define __stub macros and hopefully few prototypes,
20283 which can conflict with char $ac_func(); below. */
20284 #include <assert.h>
20285 /* Override any gcc2 internal prototype to avoid an error. */
20286 /* We use char because int might match the return type of a gcc2
20287 builtin and then its argument prototype would still apply. */
20288 char $ac_func();
20290 int main() {
20292 /* The GNU C library defines this for functions which it implements
20293 to always fail with ENOSYS. Some functions are actually named
20294 something starting with __ and the normal name is an alias. */
20295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20296 choke me
20297 #else
20298 $ac_func();
20299 #endif
20301 ; return 0; }
20303 if { (eval echo configure:20304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20304 rm -rf conftest*
20305 eval "ac_cv_func_$ac_func=yes"
20306 else
20307 echo "configure: failed program was:" >&5
20308 cat conftest.$ac_ext >&5
20309 rm -rf conftest*
20310 eval "ac_cv_func_$ac_func=no"
20312 rm -f conftest*
20315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20316 echo "$ac_t""yes" 1>&6
20317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20318 cat >> confdefs.h <<EOF
20319 #define $ac_tr_func 1
20322 else
20323 echo "$ac_t""no" 1>&6
20325 done
20330 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20331 echo "configure:20332: checking for _long double round functions" >&5
20332 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20333 echo $ac_n "(cached) $ac_c" 1>&6
20334 else
20337 ac_ext=C
20338 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20339 ac_cpp='$CXXCPP $CPPFLAGS'
20340 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20341 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20342 cross_compiling=$ac_cv_prog_cxx_cross
20344 cat > conftest.$ac_ext <<EOF
20345 #line 20346 "configure"
20346 #include "confdefs.h"
20347 #include <math.h>
20348 int main() {
20349 `for x in _ceill _floorl; do echo "$x (0);"; done`
20350 ; return 0; }
20352 if { (eval echo configure:20353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20353 rm -rf conftest*
20354 glibcpp_cv_func__long_double_round_use=yes
20355 else
20356 echo "configure: failed program was:" >&5
20357 cat conftest.$ac_ext >&5
20358 rm -rf conftest*
20359 glibcpp_cv_func__long_double_round_use=no
20361 rm -f conftest*
20362 ac_ext=c
20363 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20364 ac_cpp='$CPP $CPPFLAGS'
20365 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20366 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20367 cross_compiling=$ac_cv_prog_cc_cross
20371 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20372 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20373 for ac_func in _ceill _floorl
20375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20376 echo "configure:20377: checking for $ac_func" >&5
20377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20378 echo $ac_n "(cached) $ac_c" 1>&6
20379 else
20380 cat > conftest.$ac_ext <<EOF
20381 #line 20382 "configure"
20382 #include "confdefs.h"
20383 /* System header to define __stub macros and hopefully few prototypes,
20384 which can conflict with char $ac_func(); below. */
20385 #include <assert.h>
20386 /* Override any gcc2 internal prototype to avoid an error. */
20387 /* We use char because int might match the return type of a gcc2
20388 builtin and then its argument prototype would still apply. */
20389 char $ac_func();
20391 int main() {
20393 /* The GNU C library defines this for functions which it implements
20394 to always fail with ENOSYS. Some functions are actually named
20395 something starting with __ and the normal name is an alias. */
20396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20397 choke me
20398 #else
20399 $ac_func();
20400 #endif
20402 ; return 0; }
20404 if { (eval echo configure:20405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20405 rm -rf conftest*
20406 eval "ac_cv_func_$ac_func=yes"
20407 else
20408 echo "configure: failed program was:" >&5
20409 cat conftest.$ac_ext >&5
20410 rm -rf conftest*
20411 eval "ac_cv_func_$ac_func=no"
20413 rm -f conftest*
20416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20417 echo "$ac_t""yes" 1>&6
20418 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20419 cat >> confdefs.h <<EOF
20420 #define $ac_tr_func 1
20423 else
20424 echo "$ac_t""no" 1>&6
20426 done
20431 LIBS="$ac_save_LIBS"
20432 CXXFLAGS="$ac_save_CXXFLAGS"
20436 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
20437 echo "configure:20438: checking for __builtin_abs declaration" >&5
20438 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
20439 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
20440 echo $ac_n "(cached) $ac_c" 1>&6
20441 else
20444 ac_ext=C
20445 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20446 ac_cpp='$CXXCPP $CPPFLAGS'
20447 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20448 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20449 cross_compiling=$ac_cv_prog_cxx_cross
20451 cat > conftest.$ac_ext <<EOF
20452 #line 20453 "configure"
20453 #include "confdefs.h"
20454 #include <math.h>
20455 int main() {
20456 __builtin_abs(0);
20457 ; return 0; }
20459 if { (eval echo configure:20460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20460 rm -rf conftest*
20461 glibcpp_cv_func___builtin_abs_use=yes
20462 else
20463 echo "configure: failed program was:" >&5
20464 cat conftest.$ac_ext >&5
20465 rm -rf conftest*
20466 glibcpp_cv_func___builtin_abs_use=no
20468 rm -f conftest*
20469 ac_ext=c
20470 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20471 ac_cpp='$CPP $CPPFLAGS'
20472 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20473 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20474 cross_compiling=$ac_cv_prog_cc_cross
20480 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
20481 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
20482 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
20483 echo "configure:20484: checking for __builtin_abs linkage" >&5
20484 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
20485 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
20486 echo $ac_n "(cached) $ac_c" 1>&6
20487 else
20489 cat > conftest.$ac_ext <<EOF
20490 #line 20491 "configure"
20491 #include "confdefs.h"
20492 #include <math.h>
20493 int main() {
20494 __builtin_abs(0);
20495 ; return 0; }
20497 if { (eval echo configure:20498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20498 rm -rf conftest*
20499 glibcpp_cv_func___builtin_abs_link=yes
20500 else
20501 echo "configure: failed program was:" >&5
20502 cat conftest.$ac_ext >&5
20503 rm -rf conftest*
20504 glibcpp_cv_func___builtin_abs_link=no
20506 rm -f conftest*
20511 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
20512 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
20513 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20514 cat >> confdefs.h <<EOF
20515 #define ${ac_tr_func} 1
20522 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
20523 echo "configure:20524: checking for __builtin_fabsf declaration" >&5
20524 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
20525 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
20526 echo $ac_n "(cached) $ac_c" 1>&6
20527 else
20530 ac_ext=C
20531 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20532 ac_cpp='$CXXCPP $CPPFLAGS'
20533 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20534 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20535 cross_compiling=$ac_cv_prog_cxx_cross
20537 cat > conftest.$ac_ext <<EOF
20538 #line 20539 "configure"
20539 #include "confdefs.h"
20540 #include <math.h>
20541 int main() {
20542 __builtin_fabsf(0);
20543 ; return 0; }
20545 if { (eval echo configure:20546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20546 rm -rf conftest*
20547 glibcpp_cv_func___builtin_fabsf_use=yes
20548 else
20549 echo "configure: failed program was:" >&5
20550 cat conftest.$ac_ext >&5
20551 rm -rf conftest*
20552 glibcpp_cv_func___builtin_fabsf_use=no
20554 rm -f conftest*
20555 ac_ext=c
20556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20557 ac_cpp='$CPP $CPPFLAGS'
20558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20560 cross_compiling=$ac_cv_prog_cc_cross
20566 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
20567 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
20568 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
20569 echo "configure:20570: checking for __builtin_fabsf linkage" >&5
20570 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
20571 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
20572 echo $ac_n "(cached) $ac_c" 1>&6
20573 else
20575 cat > conftest.$ac_ext <<EOF
20576 #line 20577 "configure"
20577 #include "confdefs.h"
20578 #include <math.h>
20579 int main() {
20580 __builtin_fabsf(0);
20581 ; return 0; }
20583 if { (eval echo configure:20584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20584 rm -rf conftest*
20585 glibcpp_cv_func___builtin_fabsf_link=yes
20586 else
20587 echo "configure: failed program was:" >&5
20588 cat conftest.$ac_ext >&5
20589 rm -rf conftest*
20590 glibcpp_cv_func___builtin_fabsf_link=no
20592 rm -f conftest*
20597 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
20598 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
20599 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20600 cat >> confdefs.h <<EOF
20601 #define ${ac_tr_func} 1
20608 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
20609 echo "configure:20610: checking for __builtin_fabs declaration" >&5
20610 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
20611 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
20612 echo $ac_n "(cached) $ac_c" 1>&6
20613 else
20616 ac_ext=C
20617 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20618 ac_cpp='$CXXCPP $CPPFLAGS'
20619 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20620 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20621 cross_compiling=$ac_cv_prog_cxx_cross
20623 cat > conftest.$ac_ext <<EOF
20624 #line 20625 "configure"
20625 #include "confdefs.h"
20626 #include <math.h>
20627 int main() {
20628 __builtin_fabs(0);
20629 ; return 0; }
20631 if { (eval echo configure:20632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20632 rm -rf conftest*
20633 glibcpp_cv_func___builtin_fabs_use=yes
20634 else
20635 echo "configure: failed program was:" >&5
20636 cat conftest.$ac_ext >&5
20637 rm -rf conftest*
20638 glibcpp_cv_func___builtin_fabs_use=no
20640 rm -f conftest*
20641 ac_ext=c
20642 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20643 ac_cpp='$CPP $CPPFLAGS'
20644 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20645 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20646 cross_compiling=$ac_cv_prog_cc_cross
20652 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
20653 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
20654 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
20655 echo "configure:20656: checking for __builtin_fabs linkage" >&5
20656 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
20657 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
20658 echo $ac_n "(cached) $ac_c" 1>&6
20659 else
20661 cat > conftest.$ac_ext <<EOF
20662 #line 20663 "configure"
20663 #include "confdefs.h"
20664 #include <math.h>
20665 int main() {
20666 __builtin_fabs(0);
20667 ; return 0; }
20669 if { (eval echo configure:20670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20670 rm -rf conftest*
20671 glibcpp_cv_func___builtin_fabs_link=yes
20672 else
20673 echo "configure: failed program was:" >&5
20674 cat conftest.$ac_ext >&5
20675 rm -rf conftest*
20676 glibcpp_cv_func___builtin_fabs_link=no
20678 rm -f conftest*
20683 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
20684 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
20685 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20686 cat >> confdefs.h <<EOF
20687 #define ${ac_tr_func} 1
20694 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
20695 echo "configure:20696: checking for __builtin_fabsl declaration" >&5
20696 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
20697 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
20698 echo $ac_n "(cached) $ac_c" 1>&6
20699 else
20702 ac_ext=C
20703 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20704 ac_cpp='$CXXCPP $CPPFLAGS'
20705 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20706 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20707 cross_compiling=$ac_cv_prog_cxx_cross
20709 cat > conftest.$ac_ext <<EOF
20710 #line 20711 "configure"
20711 #include "confdefs.h"
20712 #include <math.h>
20713 int main() {
20714 __builtin_fabsl(0);
20715 ; return 0; }
20717 if { (eval echo configure:20718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20718 rm -rf conftest*
20719 glibcpp_cv_func___builtin_fabsl_use=yes
20720 else
20721 echo "configure: failed program was:" >&5
20722 cat conftest.$ac_ext >&5
20723 rm -rf conftest*
20724 glibcpp_cv_func___builtin_fabsl_use=no
20726 rm -f conftest*
20727 ac_ext=c
20728 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20729 ac_cpp='$CPP $CPPFLAGS'
20730 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20731 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20732 cross_compiling=$ac_cv_prog_cc_cross
20738 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
20739 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
20740 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
20741 echo "configure:20742: checking for __builtin_fabsl linkage" >&5
20742 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
20743 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
20744 echo $ac_n "(cached) $ac_c" 1>&6
20745 else
20747 cat > conftest.$ac_ext <<EOF
20748 #line 20749 "configure"
20749 #include "confdefs.h"
20750 #include <math.h>
20751 int main() {
20752 __builtin_fabsl(0);
20753 ; return 0; }
20755 if { (eval echo configure:20756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20756 rm -rf conftest*
20757 glibcpp_cv_func___builtin_fabsl_link=yes
20758 else
20759 echo "configure: failed program was:" >&5
20760 cat conftest.$ac_ext >&5
20761 rm -rf conftest*
20762 glibcpp_cv_func___builtin_fabsl_link=no
20764 rm -f conftest*
20769 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
20770 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
20771 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20772 cat >> confdefs.h <<EOF
20773 #define ${ac_tr_func} 1
20780 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
20781 echo "configure:20782: checking for __builtin_labs declaration" >&5
20782 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
20783 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
20784 echo $ac_n "(cached) $ac_c" 1>&6
20785 else
20788 ac_ext=C
20789 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20790 ac_cpp='$CXXCPP $CPPFLAGS'
20791 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20792 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20793 cross_compiling=$ac_cv_prog_cxx_cross
20795 cat > conftest.$ac_ext <<EOF
20796 #line 20797 "configure"
20797 #include "confdefs.h"
20798 #include <math.h>
20799 int main() {
20800 __builtin_labs(0);
20801 ; return 0; }
20803 if { (eval echo configure:20804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20804 rm -rf conftest*
20805 glibcpp_cv_func___builtin_labs_use=yes
20806 else
20807 echo "configure: failed program was:" >&5
20808 cat conftest.$ac_ext >&5
20809 rm -rf conftest*
20810 glibcpp_cv_func___builtin_labs_use=no
20812 rm -f conftest*
20813 ac_ext=c
20814 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20815 ac_cpp='$CPP $CPPFLAGS'
20816 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20817 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20818 cross_compiling=$ac_cv_prog_cc_cross
20824 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
20825 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
20826 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
20827 echo "configure:20828: checking for __builtin_labs linkage" >&5
20828 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
20829 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
20830 echo $ac_n "(cached) $ac_c" 1>&6
20831 else
20833 cat > conftest.$ac_ext <<EOF
20834 #line 20835 "configure"
20835 #include "confdefs.h"
20836 #include <math.h>
20837 int main() {
20838 __builtin_labs(0);
20839 ; return 0; }
20841 if { (eval echo configure:20842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20842 rm -rf conftest*
20843 glibcpp_cv_func___builtin_labs_link=yes
20844 else
20845 echo "configure: failed program was:" >&5
20846 cat conftest.$ac_ext >&5
20847 rm -rf conftest*
20848 glibcpp_cv_func___builtin_labs_link=no
20850 rm -f conftest*
20855 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
20856 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
20857 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20858 cat >> confdefs.h <<EOF
20859 #define ${ac_tr_func} 1
20867 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
20868 echo "configure:20869: checking for __builtin_sqrtf declaration" >&5
20869 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
20870 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
20871 echo $ac_n "(cached) $ac_c" 1>&6
20872 else
20875 ac_ext=C
20876 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20877 ac_cpp='$CXXCPP $CPPFLAGS'
20878 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20879 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20880 cross_compiling=$ac_cv_prog_cxx_cross
20882 cat > conftest.$ac_ext <<EOF
20883 #line 20884 "configure"
20884 #include "confdefs.h"
20885 #include <math.h>
20886 int main() {
20887 __builtin_sqrtf(0);
20888 ; return 0; }
20890 if { (eval echo configure:20891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20891 rm -rf conftest*
20892 glibcpp_cv_func___builtin_sqrtf_use=yes
20893 else
20894 echo "configure: failed program was:" >&5
20895 cat conftest.$ac_ext >&5
20896 rm -rf conftest*
20897 glibcpp_cv_func___builtin_sqrtf_use=no
20899 rm -f conftest*
20900 ac_ext=c
20901 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20902 ac_cpp='$CPP $CPPFLAGS'
20903 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20904 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20905 cross_compiling=$ac_cv_prog_cc_cross
20911 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
20912 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
20913 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
20914 echo "configure:20915: checking for __builtin_sqrtf linkage" >&5
20915 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
20916 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
20917 echo $ac_n "(cached) $ac_c" 1>&6
20918 else
20920 cat > conftest.$ac_ext <<EOF
20921 #line 20922 "configure"
20922 #include "confdefs.h"
20923 #include <math.h>
20924 int main() {
20925 __builtin_sqrtf(0);
20926 ; return 0; }
20928 if { (eval echo configure:20929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20929 rm -rf conftest*
20930 glibcpp_cv_func___builtin_sqrtf_link=yes
20931 else
20932 echo "configure: failed program was:" >&5
20933 cat conftest.$ac_ext >&5
20934 rm -rf conftest*
20935 glibcpp_cv_func___builtin_sqrtf_link=no
20937 rm -f conftest*
20942 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
20943 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
20944 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20945 cat >> confdefs.h <<EOF
20946 #define ${ac_tr_func} 1
20953 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
20954 echo "configure:20955: checking for __builtin_sqrt declaration" >&5
20955 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
20956 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
20957 echo $ac_n "(cached) $ac_c" 1>&6
20958 else
20961 ac_ext=C
20962 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20963 ac_cpp='$CXXCPP $CPPFLAGS'
20964 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20965 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20966 cross_compiling=$ac_cv_prog_cxx_cross
20968 cat > conftest.$ac_ext <<EOF
20969 #line 20970 "configure"
20970 #include "confdefs.h"
20971 #include <math.h>
20972 int main() {
20973 __builtin_sqrt(0);
20974 ; return 0; }
20976 if { (eval echo configure:20977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20977 rm -rf conftest*
20978 glibcpp_cv_func___builtin_sqrt_use=yes
20979 else
20980 echo "configure: failed program was:" >&5
20981 cat conftest.$ac_ext >&5
20982 rm -rf conftest*
20983 glibcpp_cv_func___builtin_sqrt_use=no
20985 rm -f conftest*
20986 ac_ext=c
20987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20988 ac_cpp='$CPP $CPPFLAGS'
20989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20991 cross_compiling=$ac_cv_prog_cc_cross
20997 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
20998 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
20999 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
21000 echo "configure:21001: checking for __builtin_sqrt linkage" >&5
21001 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
21002 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
21003 echo $ac_n "(cached) $ac_c" 1>&6
21004 else
21006 cat > conftest.$ac_ext <<EOF
21007 #line 21008 "configure"
21008 #include "confdefs.h"
21009 #include <math.h>
21010 int main() {
21011 __builtin_sqrt(0);
21012 ; return 0; }
21014 if { (eval echo configure:21015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21015 rm -rf conftest*
21016 glibcpp_cv_func___builtin_sqrt_link=yes
21017 else
21018 echo "configure: failed program was:" >&5
21019 cat conftest.$ac_ext >&5
21020 rm -rf conftest*
21021 glibcpp_cv_func___builtin_sqrt_link=no
21023 rm -f conftest*
21028 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
21029 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
21030 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21031 cat >> confdefs.h <<EOF
21032 #define ${ac_tr_func} 1
21039 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
21040 echo "configure:21041: checking for __builtin_sqrtl declaration" >&5
21041 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
21042 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
21043 echo $ac_n "(cached) $ac_c" 1>&6
21044 else
21047 ac_ext=C
21048 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21049 ac_cpp='$CXXCPP $CPPFLAGS'
21050 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21051 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21052 cross_compiling=$ac_cv_prog_cxx_cross
21054 cat > conftest.$ac_ext <<EOF
21055 #line 21056 "configure"
21056 #include "confdefs.h"
21057 #include <math.h>
21058 int main() {
21059 __builtin_sqrtl(0);
21060 ; return 0; }
21062 if { (eval echo configure:21063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21063 rm -rf conftest*
21064 glibcpp_cv_func___builtin_sqrtl_use=yes
21065 else
21066 echo "configure: failed program was:" >&5
21067 cat conftest.$ac_ext >&5
21068 rm -rf conftest*
21069 glibcpp_cv_func___builtin_sqrtl_use=no
21071 rm -f conftest*
21072 ac_ext=c
21073 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21074 ac_cpp='$CPP $CPPFLAGS'
21075 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21076 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21077 cross_compiling=$ac_cv_prog_cc_cross
21083 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
21084 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
21085 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
21086 echo "configure:21087: checking for __builtin_sqrtl linkage" >&5
21087 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
21088 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
21089 echo $ac_n "(cached) $ac_c" 1>&6
21090 else
21092 cat > conftest.$ac_ext <<EOF
21093 #line 21094 "configure"
21094 #include "confdefs.h"
21095 #include <math.h>
21096 int main() {
21097 __builtin_sqrtl(0);
21098 ; return 0; }
21100 if { (eval echo configure:21101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21101 rm -rf conftest*
21102 glibcpp_cv_func___builtin_sqrtl_link=yes
21103 else
21104 echo "configure: failed program was:" >&5
21105 cat conftest.$ac_ext >&5
21106 rm -rf conftest*
21107 glibcpp_cv_func___builtin_sqrtl_link=no
21109 rm -f conftest*
21114 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
21115 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
21116 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21117 cat >> confdefs.h <<EOF
21118 #define ${ac_tr_func} 1
21126 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
21127 echo "configure:21128: checking for __builtin_sinf declaration" >&5
21128 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
21129 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
21130 echo $ac_n "(cached) $ac_c" 1>&6
21131 else
21134 ac_ext=C
21135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21136 ac_cpp='$CXXCPP $CPPFLAGS'
21137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21139 cross_compiling=$ac_cv_prog_cxx_cross
21141 cat > conftest.$ac_ext <<EOF
21142 #line 21143 "configure"
21143 #include "confdefs.h"
21144 #include <math.h>
21145 int main() {
21146 __builtin_sinf(0);
21147 ; return 0; }
21149 if { (eval echo configure:21150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21150 rm -rf conftest*
21151 glibcpp_cv_func___builtin_sinf_use=yes
21152 else
21153 echo "configure: failed program was:" >&5
21154 cat conftest.$ac_ext >&5
21155 rm -rf conftest*
21156 glibcpp_cv_func___builtin_sinf_use=no
21158 rm -f conftest*
21159 ac_ext=c
21160 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21161 ac_cpp='$CPP $CPPFLAGS'
21162 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21163 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21164 cross_compiling=$ac_cv_prog_cc_cross
21170 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
21171 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
21172 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
21173 echo "configure:21174: checking for __builtin_sinf linkage" >&5
21174 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
21175 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
21176 echo $ac_n "(cached) $ac_c" 1>&6
21177 else
21179 cat > conftest.$ac_ext <<EOF
21180 #line 21181 "configure"
21181 #include "confdefs.h"
21182 #include <math.h>
21183 int main() {
21184 __builtin_sinf(0);
21185 ; return 0; }
21187 if { (eval echo configure:21188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21188 rm -rf conftest*
21189 glibcpp_cv_func___builtin_sinf_link=yes
21190 else
21191 echo "configure: failed program was:" >&5
21192 cat conftest.$ac_ext >&5
21193 rm -rf conftest*
21194 glibcpp_cv_func___builtin_sinf_link=no
21196 rm -f conftest*
21201 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
21202 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
21203 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21204 cat >> confdefs.h <<EOF
21205 #define ${ac_tr_func} 1
21212 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
21213 echo "configure:21214: checking for __builtin_sin declaration" >&5
21214 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
21215 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
21216 echo $ac_n "(cached) $ac_c" 1>&6
21217 else
21220 ac_ext=C
21221 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21222 ac_cpp='$CXXCPP $CPPFLAGS'
21223 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21224 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21225 cross_compiling=$ac_cv_prog_cxx_cross
21227 cat > conftest.$ac_ext <<EOF
21228 #line 21229 "configure"
21229 #include "confdefs.h"
21230 #include <math.h>
21231 int main() {
21232 __builtin_sin(0);
21233 ; return 0; }
21235 if { (eval echo configure:21236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21236 rm -rf conftest*
21237 glibcpp_cv_func___builtin_sin_use=yes
21238 else
21239 echo "configure: failed program was:" >&5
21240 cat conftest.$ac_ext >&5
21241 rm -rf conftest*
21242 glibcpp_cv_func___builtin_sin_use=no
21244 rm -f conftest*
21245 ac_ext=c
21246 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21247 ac_cpp='$CPP $CPPFLAGS'
21248 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21249 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21250 cross_compiling=$ac_cv_prog_cc_cross
21256 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
21257 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
21258 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
21259 echo "configure:21260: checking for __builtin_sin linkage" >&5
21260 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
21261 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
21262 echo $ac_n "(cached) $ac_c" 1>&6
21263 else
21265 cat > conftest.$ac_ext <<EOF
21266 #line 21267 "configure"
21267 #include "confdefs.h"
21268 #include <math.h>
21269 int main() {
21270 __builtin_sin(0);
21271 ; return 0; }
21273 if { (eval echo configure:21274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21274 rm -rf conftest*
21275 glibcpp_cv_func___builtin_sin_link=yes
21276 else
21277 echo "configure: failed program was:" >&5
21278 cat conftest.$ac_ext >&5
21279 rm -rf conftest*
21280 glibcpp_cv_func___builtin_sin_link=no
21282 rm -f conftest*
21287 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
21288 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
21289 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21290 cat >> confdefs.h <<EOF
21291 #define ${ac_tr_func} 1
21298 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
21299 echo "configure:21300: checking for __builtin_sinl declaration" >&5
21300 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
21301 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
21302 echo $ac_n "(cached) $ac_c" 1>&6
21303 else
21306 ac_ext=C
21307 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21308 ac_cpp='$CXXCPP $CPPFLAGS'
21309 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21310 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21311 cross_compiling=$ac_cv_prog_cxx_cross
21313 cat > conftest.$ac_ext <<EOF
21314 #line 21315 "configure"
21315 #include "confdefs.h"
21316 #include <math.h>
21317 int main() {
21318 __builtin_sinl(0);
21319 ; return 0; }
21321 if { (eval echo configure:21322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21322 rm -rf conftest*
21323 glibcpp_cv_func___builtin_sinl_use=yes
21324 else
21325 echo "configure: failed program was:" >&5
21326 cat conftest.$ac_ext >&5
21327 rm -rf conftest*
21328 glibcpp_cv_func___builtin_sinl_use=no
21330 rm -f conftest*
21331 ac_ext=c
21332 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21333 ac_cpp='$CPP $CPPFLAGS'
21334 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21335 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21336 cross_compiling=$ac_cv_prog_cc_cross
21342 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
21343 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
21344 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
21345 echo "configure:21346: checking for __builtin_sinl linkage" >&5
21346 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
21347 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
21348 echo $ac_n "(cached) $ac_c" 1>&6
21349 else
21351 cat > conftest.$ac_ext <<EOF
21352 #line 21353 "configure"
21353 #include "confdefs.h"
21354 #include <math.h>
21355 int main() {
21356 __builtin_sinl(0);
21357 ; return 0; }
21359 if { (eval echo configure:21360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21360 rm -rf conftest*
21361 glibcpp_cv_func___builtin_sinl_link=yes
21362 else
21363 echo "configure: failed program was:" >&5
21364 cat conftest.$ac_ext >&5
21365 rm -rf conftest*
21366 glibcpp_cv_func___builtin_sinl_link=no
21368 rm -f conftest*
21373 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
21374 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
21375 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21376 cat >> confdefs.h <<EOF
21377 #define ${ac_tr_func} 1
21385 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
21386 echo "configure:21387: checking for __builtin_cosf declaration" >&5
21387 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
21388 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
21389 echo $ac_n "(cached) $ac_c" 1>&6
21390 else
21393 ac_ext=C
21394 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21395 ac_cpp='$CXXCPP $CPPFLAGS'
21396 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21397 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21398 cross_compiling=$ac_cv_prog_cxx_cross
21400 cat > conftest.$ac_ext <<EOF
21401 #line 21402 "configure"
21402 #include "confdefs.h"
21403 #include <math.h>
21404 int main() {
21405 __builtin_cosf(0);
21406 ; return 0; }
21408 if { (eval echo configure:21409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21409 rm -rf conftest*
21410 glibcpp_cv_func___builtin_cosf_use=yes
21411 else
21412 echo "configure: failed program was:" >&5
21413 cat conftest.$ac_ext >&5
21414 rm -rf conftest*
21415 glibcpp_cv_func___builtin_cosf_use=no
21417 rm -f conftest*
21418 ac_ext=c
21419 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21420 ac_cpp='$CPP $CPPFLAGS'
21421 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21422 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21423 cross_compiling=$ac_cv_prog_cc_cross
21429 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
21430 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
21431 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
21432 echo "configure:21433: checking for __builtin_cosf linkage" >&5
21433 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
21434 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
21435 echo $ac_n "(cached) $ac_c" 1>&6
21436 else
21438 cat > conftest.$ac_ext <<EOF
21439 #line 21440 "configure"
21440 #include "confdefs.h"
21441 #include <math.h>
21442 int main() {
21443 __builtin_cosf(0);
21444 ; return 0; }
21446 if { (eval echo configure:21447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21447 rm -rf conftest*
21448 glibcpp_cv_func___builtin_cosf_link=yes
21449 else
21450 echo "configure: failed program was:" >&5
21451 cat conftest.$ac_ext >&5
21452 rm -rf conftest*
21453 glibcpp_cv_func___builtin_cosf_link=no
21455 rm -f conftest*
21460 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
21461 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
21462 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21463 cat >> confdefs.h <<EOF
21464 #define ${ac_tr_func} 1
21471 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
21472 echo "configure:21473: checking for __builtin_cos declaration" >&5
21473 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
21474 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
21475 echo $ac_n "(cached) $ac_c" 1>&6
21476 else
21479 ac_ext=C
21480 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21481 ac_cpp='$CXXCPP $CPPFLAGS'
21482 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21483 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21484 cross_compiling=$ac_cv_prog_cxx_cross
21486 cat > conftest.$ac_ext <<EOF
21487 #line 21488 "configure"
21488 #include "confdefs.h"
21489 #include <math.h>
21490 int main() {
21491 __builtin_cos(0);
21492 ; return 0; }
21494 if { (eval echo configure:21495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21495 rm -rf conftest*
21496 glibcpp_cv_func___builtin_cos_use=yes
21497 else
21498 echo "configure: failed program was:" >&5
21499 cat conftest.$ac_ext >&5
21500 rm -rf conftest*
21501 glibcpp_cv_func___builtin_cos_use=no
21503 rm -f conftest*
21504 ac_ext=c
21505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21506 ac_cpp='$CPP $CPPFLAGS'
21507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21509 cross_compiling=$ac_cv_prog_cc_cross
21515 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
21516 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
21517 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
21518 echo "configure:21519: checking for __builtin_cos linkage" >&5
21519 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
21520 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
21521 echo $ac_n "(cached) $ac_c" 1>&6
21522 else
21524 cat > conftest.$ac_ext <<EOF
21525 #line 21526 "configure"
21526 #include "confdefs.h"
21527 #include <math.h>
21528 int main() {
21529 __builtin_cos(0);
21530 ; return 0; }
21532 if { (eval echo configure:21533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21533 rm -rf conftest*
21534 glibcpp_cv_func___builtin_cos_link=yes
21535 else
21536 echo "configure: failed program was:" >&5
21537 cat conftest.$ac_ext >&5
21538 rm -rf conftest*
21539 glibcpp_cv_func___builtin_cos_link=no
21541 rm -f conftest*
21546 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
21547 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
21548 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21549 cat >> confdefs.h <<EOF
21550 #define ${ac_tr_func} 1
21557 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
21558 echo "configure:21559: checking for __builtin_cosl declaration" >&5
21559 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
21560 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
21561 echo $ac_n "(cached) $ac_c" 1>&6
21562 else
21565 ac_ext=C
21566 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21567 ac_cpp='$CXXCPP $CPPFLAGS'
21568 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21569 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21570 cross_compiling=$ac_cv_prog_cxx_cross
21572 cat > conftest.$ac_ext <<EOF
21573 #line 21574 "configure"
21574 #include "confdefs.h"
21575 #include <math.h>
21576 int main() {
21577 __builtin_cosl(0);
21578 ; return 0; }
21580 if { (eval echo configure:21581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21581 rm -rf conftest*
21582 glibcpp_cv_func___builtin_cosl_use=yes
21583 else
21584 echo "configure: failed program was:" >&5
21585 cat conftest.$ac_ext >&5
21586 rm -rf conftest*
21587 glibcpp_cv_func___builtin_cosl_use=no
21589 rm -f conftest*
21590 ac_ext=c
21591 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21592 ac_cpp='$CPP $CPPFLAGS'
21593 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21594 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21595 cross_compiling=$ac_cv_prog_cc_cross
21601 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
21602 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
21603 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
21604 echo "configure:21605: checking for __builtin_cosl linkage" >&5
21605 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
21606 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
21607 echo $ac_n "(cached) $ac_c" 1>&6
21608 else
21610 cat > conftest.$ac_ext <<EOF
21611 #line 21612 "configure"
21612 #include "confdefs.h"
21613 #include <math.h>
21614 int main() {
21615 __builtin_cosl(0);
21616 ; return 0; }
21618 if { (eval echo configure:21619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21619 rm -rf conftest*
21620 glibcpp_cv_func___builtin_cosl_link=yes
21621 else
21622 echo "configure: failed program was:" >&5
21623 cat conftest.$ac_ext >&5
21624 rm -rf conftest*
21625 glibcpp_cv_func___builtin_cosl_link=no
21627 rm -f conftest*
21632 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
21633 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
21634 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21635 cat >> confdefs.h <<EOF
21636 #define ${ac_tr_func} 1
21643 dummyvar=no
21644 if test x$dummyvar = x"yes"; then
21645 cat >> confdefs.h <<\EOF
21646 #define HAVE___BUILTIN_ABS 1
21649 cat >> confdefs.h <<\EOF
21650 #define HAVE___BUILTIN_LABS 1
21653 cat >> confdefs.h <<\EOF
21654 #define HAVE___BUILTIN_COS 1
21657 cat >> confdefs.h <<\EOF
21658 #define HAVE___BUILTIN_COSF 1
21661 cat >> confdefs.h <<\EOF
21662 #define HAVE___BUILTIN_COSL 1
21665 cat >> confdefs.h <<\EOF
21666 #define HAVE___BUILTIN_FABS 1
21669 cat >> confdefs.h <<\EOF
21670 #define HAVE___BUILTIN_FABSF 1
21673 cat >> confdefs.h <<\EOF
21674 #define HAVE___BUILTIN_FABSL 1
21677 cat >> confdefs.h <<\EOF
21678 #define HAVE___BUILTIN_SIN 1
21681 cat >> confdefs.h <<\EOF
21682 #define HAVE___BUILTIN_SINF 1
21685 cat >> confdefs.h <<\EOF
21686 #define HAVE___BUILTIN_SINL 1
21689 cat >> confdefs.h <<\EOF
21690 #define HAVE___BUILTIN_SQRT 1
21693 cat >> confdefs.h <<\EOF
21694 #define HAVE___BUILTIN_SQRTF 1
21697 cat >> confdefs.h <<\EOF
21698 #define HAVE___BUILTIN_SQRTL 1
21704 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21705 echo "configure:21706: checking for main in -lm" >&5
21706 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21708 echo $ac_n "(cached) $ac_c" 1>&6
21709 else
21710 ac_save_LIBS="$LIBS"
21711 LIBS="-lm $LIBS"
21712 cat > conftest.$ac_ext <<EOF
21713 #line 21714 "configure"
21714 #include "confdefs.h"
21716 int main() {
21717 main()
21718 ; return 0; }
21720 if { (eval echo configure:21721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21721 rm -rf conftest*
21722 eval "ac_cv_lib_$ac_lib_var=yes"
21723 else
21724 echo "configure: failed program was:" >&5
21725 cat conftest.$ac_ext >&5
21726 rm -rf conftest*
21727 eval "ac_cv_lib_$ac_lib_var=no"
21729 rm -f conftest*
21730 LIBS="$ac_save_LIBS"
21733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21734 echo "$ac_t""yes" 1>&6
21735 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21736 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21737 cat >> confdefs.h <<EOF
21738 #define $ac_tr_lib 1
21741 LIBS="-lm $LIBS"
21743 else
21744 echo "$ac_t""no" 1>&6
21747 for ac_func in nan copysignf
21749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21750 echo "configure:21751: checking for $ac_func" >&5
21751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21752 echo $ac_n "(cached) $ac_c" 1>&6
21753 else
21754 cat > conftest.$ac_ext <<EOF
21755 #line 21756 "configure"
21756 #include "confdefs.h"
21757 /* System header to define __stub macros and hopefully few prototypes,
21758 which can conflict with char $ac_func(); below. */
21759 #include <assert.h>
21760 /* Override any gcc2 internal prototype to avoid an error. */
21761 /* We use char because int might match the return type of a gcc2
21762 builtin and then its argument prototype would still apply. */
21763 char $ac_func();
21765 int main() {
21767 /* The GNU C library defines this for functions which it implements
21768 to always fail with ENOSYS. Some functions are actually named
21769 something starting with __ and the normal name is an alias. */
21770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21771 choke me
21772 #else
21773 $ac_func();
21774 #endif
21776 ; return 0; }
21778 if { (eval echo configure:21779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21779 rm -rf conftest*
21780 eval "ac_cv_func_$ac_func=yes"
21781 else
21782 echo "configure: failed program was:" >&5
21783 cat conftest.$ac_ext >&5
21784 rm -rf conftest*
21785 eval "ac_cv_func_$ac_func=no"
21787 rm -f conftest*
21790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21791 echo "$ac_t""yes" 1>&6
21792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21793 cat >> confdefs.h <<EOF
21794 #define $ac_tr_func 1
21797 else
21798 echo "$ac_t""no" 1>&6
21799 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21801 done
21804 for ac_func in __signbit
21806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21807 echo "configure:21808: checking for $ac_func" >&5
21808 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21809 echo $ac_n "(cached) $ac_c" 1>&6
21810 else
21811 cat > conftest.$ac_ext <<EOF
21812 #line 21813 "configure"
21813 #include "confdefs.h"
21814 /* System header to define __stub macros and hopefully few prototypes,
21815 which can conflict with char $ac_func(); below. */
21816 #include <assert.h>
21817 /* Override any gcc2 internal prototype to avoid an error. */
21818 /* We use char because int might match the return type of a gcc2
21819 builtin and then its argument prototype would still apply. */
21820 char $ac_func();
21822 int main() {
21824 /* The GNU C library defines this for functions which it implements
21825 to always fail with ENOSYS. Some functions are actually named
21826 something starting with __ and the normal name is an alias. */
21827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21828 choke me
21829 #else
21830 $ac_func();
21831 #endif
21833 ; return 0; }
21835 if { (eval echo configure:21836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21836 rm -rf conftest*
21837 eval "ac_cv_func_$ac_func=yes"
21838 else
21839 echo "configure: failed program was:" >&5
21840 cat conftest.$ac_ext >&5
21841 rm -rf conftest*
21842 eval "ac_cv_func_$ac_func=no"
21844 rm -f conftest*
21847 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21848 echo "$ac_t""yes" 1>&6
21849 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21850 cat >> confdefs.h <<EOF
21851 #define $ac_tr_func 1
21854 else
21855 echo "$ac_t""no" 1>&6
21856 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21858 done
21860 for ac_func in __signbitf
21862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21863 echo "configure:21864: checking for $ac_func" >&5
21864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21865 echo $ac_n "(cached) $ac_c" 1>&6
21866 else
21867 cat > conftest.$ac_ext <<EOF
21868 #line 21869 "configure"
21869 #include "confdefs.h"
21870 /* System header to define __stub macros and hopefully few prototypes,
21871 which can conflict with char $ac_func(); below. */
21872 #include <assert.h>
21873 /* Override any gcc2 internal prototype to avoid an error. */
21874 /* We use char because int might match the return type of a gcc2
21875 builtin and then its argument prototype would still apply. */
21876 char $ac_func();
21878 int main() {
21880 /* The GNU C library defines this for functions which it implements
21881 to always fail with ENOSYS. Some functions are actually named
21882 something starting with __ and the normal name is an alias. */
21883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21884 choke me
21885 #else
21886 $ac_func();
21887 #endif
21889 ; return 0; }
21891 if { (eval echo configure:21892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21892 rm -rf conftest*
21893 eval "ac_cv_func_$ac_func=yes"
21894 else
21895 echo "configure: failed program was:" >&5
21896 cat conftest.$ac_ext >&5
21897 rm -rf conftest*
21898 eval "ac_cv_func_$ac_func=no"
21900 rm -f conftest*
21903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21904 echo "$ac_t""yes" 1>&6
21905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21906 cat >> confdefs.h <<EOF
21907 #define $ac_tr_func 1
21910 else
21911 echo "$ac_t""no" 1>&6
21912 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21914 done
21917 if test x$ac_cv_func_copysignl = x"yes"; then
21918 for ac_func in __signbitl
21920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21921 echo "configure:21922: checking for $ac_func" >&5
21922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21923 echo $ac_n "(cached) $ac_c" 1>&6
21924 else
21925 cat > conftest.$ac_ext <<EOF
21926 #line 21927 "configure"
21927 #include "confdefs.h"
21928 /* System header to define __stub macros and hopefully few prototypes,
21929 which can conflict with char $ac_func(); below. */
21930 #include <assert.h>
21931 /* Override any gcc2 internal prototype to avoid an error. */
21932 /* We use char because int might match the return type of a gcc2
21933 builtin and then its argument prototype would still apply. */
21934 char $ac_func();
21936 int main() {
21938 /* The GNU C library defines this for functions which it implements
21939 to always fail with ENOSYS. Some functions are actually named
21940 something starting with __ and the normal name is an alias. */
21941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21942 choke me
21943 #else
21944 $ac_func();
21945 #endif
21947 ; return 0; }
21949 if { (eval echo configure:21950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21950 rm -rf conftest*
21951 eval "ac_cv_func_$ac_func=yes"
21952 else
21953 echo "configure: failed program was:" >&5
21954 cat conftest.$ac_ext >&5
21955 rm -rf conftest*
21956 eval "ac_cv_func_$ac_func=no"
21958 rm -f conftest*
21961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21962 echo "$ac_t""yes" 1>&6
21963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21964 cat >> confdefs.h <<EOF
21965 #define $ac_tr_func 1
21968 else
21969 echo "$ac_t""no" 1>&6
21970 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
21972 done
21976 if test -n "$LIBMATHOBJS"; then
21977 need_libmath=yes
21982 if test "$need_libmath" = yes; then
21983 GLIBCPP_BUILD_LIBMATH_TRUE=
21984 GLIBCPP_BUILD_LIBMATH_FALSE='#'
21985 else
21986 GLIBCPP_BUILD_LIBMATH_TRUE='#'
21987 GLIBCPP_BUILD_LIBMATH_FALSE=
21991 enable_wchar_t=no
21993 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
21994 echo "configure:21995: checking for mbstate_t" >&5
21995 cat > conftest.$ac_ext <<EOF
21996 #line 21997 "configure"
21997 #include "confdefs.h"
21998 #include <wchar.h>
21999 int main() {
22000 mbstate_t teststate;
22001 ; return 0; }
22003 if { (eval echo configure:22004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22004 rm -rf conftest*
22005 have_mbstate_t=yes
22006 else
22007 echo "configure: failed program was:" >&5
22008 cat conftest.$ac_ext >&5
22009 rm -rf conftest*
22010 have_mbstate_t=no
22012 rm -f conftest*
22013 echo "$ac_t""$have_mbstate_t" 1>&6
22014 if test x"$have_mbstate_t" = xyes; then
22015 cat >> confdefs.h <<\EOF
22016 #define HAVE_MBSTATE_T 1
22021 for ac_hdr in wchar.h
22023 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22024 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22025 echo "configure:22026: checking for $ac_hdr" >&5
22026 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22027 echo $ac_n "(cached) $ac_c" 1>&6
22028 else
22029 cat > conftest.$ac_ext <<EOF
22030 #line 22031 "configure"
22031 #include "confdefs.h"
22032 #include <$ac_hdr>
22034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22035 { (eval echo configure:22036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22037 if test -z "$ac_err"; then
22038 rm -rf conftest*
22039 eval "ac_cv_header_$ac_safe=yes"
22040 else
22041 echo "$ac_err" >&5
22042 echo "configure: failed program was:" >&5
22043 cat conftest.$ac_ext >&5
22044 rm -rf conftest*
22045 eval "ac_cv_header_$ac_safe=no"
22047 rm -f conftest*
22049 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22050 echo "$ac_t""yes" 1>&6
22051 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22052 cat >> confdefs.h <<EOF
22053 #define $ac_tr_hdr 1
22055 ac_has_wchar_h=yes
22056 else
22057 echo "$ac_t""no" 1>&6
22058 ac_has_wchar_h=no
22060 done
22062 for ac_hdr in wctype.h
22064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22066 echo "configure:22067: checking for $ac_hdr" >&5
22067 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22068 echo $ac_n "(cached) $ac_c" 1>&6
22069 else
22070 cat > conftest.$ac_ext <<EOF
22071 #line 22072 "configure"
22072 #include "confdefs.h"
22073 #include <$ac_hdr>
22075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22076 { (eval echo configure:22077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22078 if test -z "$ac_err"; then
22079 rm -rf conftest*
22080 eval "ac_cv_header_$ac_safe=yes"
22081 else
22082 echo "$ac_err" >&5
22083 echo "configure: failed program was:" >&5
22084 cat conftest.$ac_ext >&5
22085 rm -rf conftest*
22086 eval "ac_cv_header_$ac_safe=no"
22088 rm -f conftest*
22090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22091 echo "$ac_t""yes" 1>&6
22092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22093 cat >> confdefs.h <<EOF
22094 #define $ac_tr_hdr 1
22096 ac_has_wctype_h=yes
22097 else
22098 echo "$ac_t""no" 1>&6
22099 ac_has_wctype_h=no
22101 done
22104 if test x"$ac_has_wchar_h" = xyes &&
22105 test x"$ac_has_wctype_h" = xyes &&
22106 test x"$enable_c_mbchar" != xno; then
22108 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22109 echo "configure:22110: checking for WCHAR_MIN and WCHAR_MAX" >&5
22110 cat > conftest.$ac_ext <<EOF
22111 #line 22112 "configure"
22112 #include "confdefs.h"
22113 #include <wchar.h>
22114 int main() {
22115 int i = WCHAR_MIN; int j = WCHAR_MAX;
22116 ; return 0; }
22118 if { (eval echo configure:22119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22119 rm -rf conftest*
22120 has_wchar_minmax=yes
22121 else
22122 echo "configure: failed program was:" >&5
22123 cat conftest.$ac_ext >&5
22124 rm -rf conftest*
22125 has_wchar_minmax=no
22127 rm -f conftest*
22128 echo "$ac_t""$has_wchar_minmax" 1>&6
22130 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22131 echo "configure:22132: checking for WEOF" >&5
22132 cat > conftest.$ac_ext <<EOF
22133 #line 22134 "configure"
22134 #include "confdefs.h"
22136 #include <wchar.h>
22137 #include <stddef.h>
22138 int main() {
22139 wint_t i = WEOF;
22140 ; return 0; }
22142 if { (eval echo configure:22143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22143 rm -rf conftest*
22144 has_weof=yes
22145 else
22146 echo "configure: failed program was:" >&5
22147 cat conftest.$ac_ext >&5
22148 rm -rf conftest*
22149 has_weof=no
22151 rm -f conftest*
22152 echo "$ac_t""$has_weof" 1>&6
22154 ac_wfuncs=yes
22155 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22158 echo "configure:22159: checking for $ac_func" >&5
22159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22160 echo $ac_n "(cached) $ac_c" 1>&6
22161 else
22162 cat > conftest.$ac_ext <<EOF
22163 #line 22164 "configure"
22164 #include "confdefs.h"
22165 /* System header to define __stub macros and hopefully few prototypes,
22166 which can conflict with char $ac_func(); below. */
22167 #include <assert.h>
22168 /* Override any gcc2 internal prototype to avoid an error. */
22169 /* We use char because int might match the return type of a gcc2
22170 builtin and then its argument prototype would still apply. */
22171 char $ac_func();
22173 int main() {
22175 /* The GNU C library defines this for functions which it implements
22176 to always fail with ENOSYS. Some functions are actually named
22177 something starting with __ and the normal name is an alias. */
22178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22179 choke me
22180 #else
22181 $ac_func();
22182 #endif
22184 ; return 0; }
22186 if { (eval echo configure:22187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22187 rm -rf conftest*
22188 eval "ac_cv_func_$ac_func=yes"
22189 else
22190 echo "configure: failed program was:" >&5
22191 cat conftest.$ac_ext >&5
22192 rm -rf conftest*
22193 eval "ac_cv_func_$ac_func=no"
22195 rm -f conftest*
22198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22199 echo "$ac_t""yes" 1>&6
22200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22201 cat >> confdefs.h <<EOF
22202 #define $ac_tr_func 1
22205 else
22206 echo "$ac_t""no" 1>&6
22208 ac_wfuncs=no
22210 done
22213 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22214 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22215 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22216 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22217 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22218 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22221 echo "configure:22222: checking for $ac_func" >&5
22222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22223 echo $ac_n "(cached) $ac_c" 1>&6
22224 else
22225 cat > conftest.$ac_ext <<EOF
22226 #line 22227 "configure"
22227 #include "confdefs.h"
22228 /* System header to define __stub macros and hopefully few prototypes,
22229 which can conflict with char $ac_func(); below. */
22230 #include <assert.h>
22231 /* Override any gcc2 internal prototype to avoid an error. */
22232 /* We use char because int might match the return type of a gcc2
22233 builtin and then its argument prototype would still apply. */
22234 char $ac_func();
22236 int main() {
22238 /* The GNU C library defines this for functions which it implements
22239 to always fail with ENOSYS. Some functions are actually named
22240 something starting with __ and the normal name is an alias. */
22241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22242 choke me
22243 #else
22244 $ac_func();
22245 #endif
22247 ; return 0; }
22249 if { (eval echo configure:22250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22250 rm -rf conftest*
22251 eval "ac_cv_func_$ac_func=yes"
22252 else
22253 echo "configure: failed program was:" >&5
22254 cat conftest.$ac_ext >&5
22255 rm -rf conftest*
22256 eval "ac_cv_func_$ac_func=no"
22258 rm -f conftest*
22261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22262 echo "$ac_t""yes" 1>&6
22263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22264 cat >> confdefs.h <<EOF
22265 #define $ac_tr_func 1
22268 else
22269 echo "$ac_t""no" 1>&6
22271 ac_wfuncs=no
22273 done
22276 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22277 echo "configure:22278: checking for ISO C99 wchar_t support" >&5
22278 if test x"$has_weof" = xyes &&
22279 test x"$has_wchar_minmax" = xyes &&
22280 test x"$ac_wfuncs" = xyes; then
22281 ac_isoC99_wchar_t=yes
22282 else
22283 ac_isoC99_wchar_t=no
22285 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22287 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22288 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22289 echo "configure:22290: checking for iconv.h" >&5
22290 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22291 echo $ac_n "(cached) $ac_c" 1>&6
22292 else
22293 cat > conftest.$ac_ext <<EOF
22294 #line 22295 "configure"
22295 #include "confdefs.h"
22296 #include <iconv.h>
22298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22299 { (eval echo configure:22300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22301 if test -z "$ac_err"; then
22302 rm -rf conftest*
22303 eval "ac_cv_header_$ac_safe=yes"
22304 else
22305 echo "$ac_err" >&5
22306 echo "configure: failed program was:" >&5
22307 cat conftest.$ac_ext >&5
22308 rm -rf conftest*
22309 eval "ac_cv_header_$ac_safe=no"
22311 rm -f conftest*
22313 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22314 echo "$ac_t""yes" 1>&6
22315 ac_has_iconv_h=yes
22316 else
22317 echo "$ac_t""no" 1>&6
22318 ac_has_iconv_h=no
22321 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22322 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22323 echo "configure:22324: checking for langinfo.h" >&5
22324 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22325 echo $ac_n "(cached) $ac_c" 1>&6
22326 else
22327 cat > conftest.$ac_ext <<EOF
22328 #line 22329 "configure"
22329 #include "confdefs.h"
22330 #include <langinfo.h>
22332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22333 { (eval echo configure:22334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22335 if test -z "$ac_err"; then
22336 rm -rf conftest*
22337 eval "ac_cv_header_$ac_safe=yes"
22338 else
22339 echo "$ac_err" >&5
22340 echo "configure: failed program was:" >&5
22341 cat conftest.$ac_ext >&5
22342 rm -rf conftest*
22343 eval "ac_cv_header_$ac_safe=no"
22345 rm -f conftest*
22347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22348 echo "$ac_t""yes" 1>&6
22349 ac_has_langinfo_h=yes
22350 else
22351 echo "$ac_t""no" 1>&6
22352 ac_has_langinfo_h=no
22356 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22357 echo "configure:22358: checking for iconv in -liconv" >&5
22358 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22360 echo $ac_n "(cached) $ac_c" 1>&6
22361 else
22362 ac_save_LIBS="$LIBS"
22363 LIBS="-liconv $LIBS"
22364 cat > conftest.$ac_ext <<EOF
22365 #line 22366 "configure"
22366 #include "confdefs.h"
22367 /* Override any gcc2 internal prototype to avoid an error. */
22368 /* We use char because int might match the return type of a gcc2
22369 builtin and then its argument prototype would still apply. */
22370 char iconv();
22372 int main() {
22373 iconv()
22374 ; return 0; }
22376 if { (eval echo configure:22377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22377 rm -rf conftest*
22378 eval "ac_cv_lib_$ac_lib_var=yes"
22379 else
22380 echo "configure: failed program was:" >&5
22381 cat conftest.$ac_ext >&5
22382 rm -rf conftest*
22383 eval "ac_cv_lib_$ac_lib_var=no"
22385 rm -f conftest*
22386 LIBS="$ac_save_LIBS"
22389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22390 echo "$ac_t""yes" 1>&6
22391 libiconv="-liconv"
22392 else
22393 echo "$ac_t""no" 1>&6
22396 ac_save_LIBS="$LIBS"
22397 LIBS="$LIBS $libiconv"
22399 for ac_func in iconv_open iconv_close iconv nl_langinfo
22401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22402 echo "configure:22403: checking for $ac_func" >&5
22403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22404 echo $ac_n "(cached) $ac_c" 1>&6
22405 else
22406 cat > conftest.$ac_ext <<EOF
22407 #line 22408 "configure"
22408 #include "confdefs.h"
22409 /* System header to define __stub macros and hopefully few prototypes,
22410 which can conflict with char $ac_func(); below. */
22411 #include <assert.h>
22412 /* Override any gcc2 internal prototype to avoid an error. */
22413 /* We use char because int might match the return type of a gcc2
22414 builtin and then its argument prototype would still apply. */
22415 char $ac_func();
22417 int main() {
22419 /* The GNU C library defines this for functions which it implements
22420 to always fail with ENOSYS. Some functions are actually named
22421 something starting with __ and the normal name is an alias. */
22422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22423 choke me
22424 #else
22425 $ac_func();
22426 #endif
22428 ; return 0; }
22430 if { (eval echo configure:22431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22431 rm -rf conftest*
22432 eval "ac_cv_func_$ac_func=yes"
22433 else
22434 echo "configure: failed program was:" >&5
22435 cat conftest.$ac_ext >&5
22436 rm -rf conftest*
22437 eval "ac_cv_func_$ac_func=no"
22439 rm -f conftest*
22442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22443 echo "$ac_t""yes" 1>&6
22444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22445 cat >> confdefs.h <<EOF
22446 #define $ac_tr_func 1
22449 ac_XPG2funcs=yes
22450 else
22451 echo "$ac_t""no" 1>&6
22452 ac_XPG2funcs=no
22454 done
22457 LIBS="$ac_save_LIBS"
22459 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22460 echo "configure:22461: checking for XPG2 wchar_t support" >&5
22461 if test x"$ac_has_iconv_h" = xyes &&
22462 test x"$ac_has_langinfo_h" = xyes &&
22463 test x"$ac_XPG2funcs" = xyes; then
22464 ac_XPG2_wchar_t=yes
22465 else
22466 ac_XPG2_wchar_t=no
22468 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22470 if test x"$ac_isoC99_wchar_t" = xyes &&
22471 test x"$ac_XPG2_wchar_t" = xyes; then
22472 cat >> confdefs.h <<\EOF
22473 #define _GLIBCPP_USE_WCHAR_T 1
22476 enable_wchar_t=yes
22479 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22480 echo "configure:22481: checking for enabled wchar_t specializations" >&5
22481 echo "$ac_t""$enable_wchar_t" 1>&6
22484 if test "$enable_wchar_t" = yes; then
22485 GLIBCPP_TEST_WCHAR_T_TRUE=
22486 GLIBCPP_TEST_WCHAR_T_FALSE='#'
22487 else
22488 GLIBCPP_TEST_WCHAR_T_TRUE='#'
22489 GLIBCPP_TEST_WCHAR_T_FALSE=
22493 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22494 ac_save_CXXFLAGS="$CXXFLAGS"
22495 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22498 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22499 echo "configure:22500: checking for strtold declaration" >&5
22500 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22501 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22502 echo $ac_n "(cached) $ac_c" 1>&6
22503 else
22506 ac_ext=C
22507 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22508 ac_cpp='$CXXCPP $CPPFLAGS'
22509 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22510 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22511 cross_compiling=$ac_cv_prog_cxx_cross
22513 cat > conftest.$ac_ext <<EOF
22514 #line 22515 "configure"
22515 #include "confdefs.h"
22516 #include <stdlib.h>
22517 int main() {
22518 strtold(0, 0);
22519 ; return 0; }
22521 if { (eval echo configure:22522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22522 rm -rf conftest*
22523 glibcpp_cv_func_strtold_use=yes
22524 else
22525 echo "configure: failed program was:" >&5
22526 cat conftest.$ac_ext >&5
22527 rm -rf conftest*
22528 glibcpp_cv_func_strtold_use=no
22530 rm -f conftest*
22531 ac_ext=c
22532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22533 ac_cpp='$CPP $CPPFLAGS'
22534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22536 cross_compiling=$ac_cv_prog_cc_cross
22542 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22543 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22544 for ac_func in strtold
22546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22547 echo "configure:22548: checking for $ac_func" >&5
22548 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22549 echo $ac_n "(cached) $ac_c" 1>&6
22550 else
22551 cat > conftest.$ac_ext <<EOF
22552 #line 22553 "configure"
22553 #include "confdefs.h"
22554 /* System header to define __stub macros and hopefully few prototypes,
22555 which can conflict with char $ac_func(); below. */
22556 #include <assert.h>
22557 /* Override any gcc2 internal prototype to avoid an error. */
22558 /* We use char because int might match the return type of a gcc2
22559 builtin and then its argument prototype would still apply. */
22560 char $ac_func();
22562 int main() {
22564 /* The GNU C library defines this for functions which it implements
22565 to always fail with ENOSYS. Some functions are actually named
22566 something starting with __ and the normal name is an alias. */
22567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22568 choke me
22569 #else
22570 $ac_func();
22571 #endif
22573 ; return 0; }
22575 if { (eval echo configure:22576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22576 rm -rf conftest*
22577 eval "ac_cv_func_$ac_func=yes"
22578 else
22579 echo "configure: failed program was:" >&5
22580 cat conftest.$ac_ext >&5
22581 rm -rf conftest*
22582 eval "ac_cv_func_$ac_func=no"
22584 rm -f conftest*
22587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22588 echo "$ac_t""yes" 1>&6
22589 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22590 cat >> confdefs.h <<EOF
22591 #define $ac_tr_func 1
22594 else
22595 echo "$ac_t""no" 1>&6
22597 done
22602 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22603 echo "configure:22604: checking for strtof declaration" >&5
22604 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22605 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22606 echo $ac_n "(cached) $ac_c" 1>&6
22607 else
22610 ac_ext=C
22611 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22612 ac_cpp='$CXXCPP $CPPFLAGS'
22613 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22614 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22615 cross_compiling=$ac_cv_prog_cxx_cross
22617 cat > conftest.$ac_ext <<EOF
22618 #line 22619 "configure"
22619 #include "confdefs.h"
22620 #include <stdlib.h>
22621 int main() {
22622 strtof(0, 0);
22623 ; return 0; }
22625 if { (eval echo configure:22626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22626 rm -rf conftest*
22627 glibcpp_cv_func_strtof_use=yes
22628 else
22629 echo "configure: failed program was:" >&5
22630 cat conftest.$ac_ext >&5
22631 rm -rf conftest*
22632 glibcpp_cv_func_strtof_use=no
22634 rm -f conftest*
22635 ac_ext=c
22636 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22637 ac_cpp='$CPP $CPPFLAGS'
22638 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22639 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22640 cross_compiling=$ac_cv_prog_cc_cross
22646 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22647 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22648 for ac_func in strtof
22650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22651 echo "configure:22652: checking for $ac_func" >&5
22652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22653 echo $ac_n "(cached) $ac_c" 1>&6
22654 else
22655 cat > conftest.$ac_ext <<EOF
22656 #line 22657 "configure"
22657 #include "confdefs.h"
22658 /* System header to define __stub macros and hopefully few prototypes,
22659 which can conflict with char $ac_func(); below. */
22660 #include <assert.h>
22661 /* Override any gcc2 internal prototype to avoid an error. */
22662 /* We use char because int might match the return type of a gcc2
22663 builtin and then its argument prototype would still apply. */
22664 char $ac_func();
22666 int main() {
22668 /* The GNU C library defines this for functions which it implements
22669 to always fail with ENOSYS. Some functions are actually named
22670 something starting with __ and the normal name is an alias. */
22671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22672 choke me
22673 #else
22674 $ac_func();
22675 #endif
22677 ; return 0; }
22679 if { (eval echo configure:22680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22680 rm -rf conftest*
22681 eval "ac_cv_func_$ac_func=yes"
22682 else
22683 echo "configure: failed program was:" >&5
22684 cat conftest.$ac_ext >&5
22685 rm -rf conftest*
22686 eval "ac_cv_func_$ac_func=no"
22688 rm -f conftest*
22691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22692 echo "$ac_t""yes" 1>&6
22693 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22694 cat >> confdefs.h <<EOF
22695 #define $ac_tr_func 1
22698 else
22699 echo "$ac_t""no" 1>&6
22701 done
22705 for ac_func in drand48
22707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22708 echo "configure:22709: checking for $ac_func" >&5
22709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22710 echo $ac_n "(cached) $ac_c" 1>&6
22711 else
22712 cat > conftest.$ac_ext <<EOF
22713 #line 22714 "configure"
22714 #include "confdefs.h"
22715 /* System header to define __stub macros and hopefully few prototypes,
22716 which can conflict with char $ac_func(); below. */
22717 #include <assert.h>
22718 /* Override any gcc2 internal prototype to avoid an error. */
22719 /* We use char because int might match the return type of a gcc2
22720 builtin and then its argument prototype would still apply. */
22721 char $ac_func();
22723 int main() {
22725 /* The GNU C library defines this for functions which it implements
22726 to always fail with ENOSYS. Some functions are actually named
22727 something starting with __ and the normal name is an alias. */
22728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22729 choke me
22730 #else
22731 $ac_func();
22732 #endif
22734 ; return 0; }
22736 if { (eval echo configure:22737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22737 rm -rf conftest*
22738 eval "ac_cv_func_$ac_func=yes"
22739 else
22740 echo "configure: failed program was:" >&5
22741 cat conftest.$ac_ext >&5
22742 rm -rf conftest*
22743 eval "ac_cv_func_$ac_func=no"
22745 rm -f conftest*
22748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22749 echo "$ac_t""yes" 1>&6
22750 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22751 cat >> confdefs.h <<EOF
22752 #define $ac_tr_func 1
22755 else
22756 echo "$ac_t""no" 1>&6
22758 done
22761 CXXFLAGS="$ac_save_CXXFLAGS"
22764 # For showmanyc_helper().
22765 for ac_hdr in sys/ioctl.h sys/filio.h
22767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22769 echo "configure:22770: checking for $ac_hdr" >&5
22770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22771 echo $ac_n "(cached) $ac_c" 1>&6
22772 else
22773 cat > conftest.$ac_ext <<EOF
22774 #line 22775 "configure"
22775 #include "confdefs.h"
22776 #include <$ac_hdr>
22778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22779 { (eval echo configure:22780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22781 if test -z "$ac_err"; then
22782 rm -rf conftest*
22783 eval "ac_cv_header_$ac_safe=yes"
22784 else
22785 echo "$ac_err" >&5
22786 echo "configure: failed program was:" >&5
22787 cat conftest.$ac_ext >&5
22788 rm -rf conftest*
22789 eval "ac_cv_header_$ac_safe=no"
22791 rm -f conftest*
22793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22794 echo "$ac_t""yes" 1>&6
22795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22796 cat >> confdefs.h <<EOF
22797 #define $ac_tr_hdr 1
22800 else
22801 echo "$ac_t""no" 1>&6
22803 done
22806 if eval "test \"`echo '$''{'glibcpp_cv_POLL'+set}'`\" = set"; then
22807 echo $ac_n "(cached) $ac_c" 1>&6
22808 else
22810 cat > conftest.$ac_ext <<EOF
22811 #line 22812 "configure"
22812 #include "confdefs.h"
22813 #include <poll.h>
22814 int main() {
22815 struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0);
22816 ; return 0; }
22818 if { (eval echo configure:22819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22819 rm -rf conftest*
22820 glibcpp_cv_POLL=yes
22821 else
22822 echo "configure: failed program was:" >&5
22823 cat conftest.$ac_ext >&5
22824 rm -rf conftest*
22825 glibcpp_cv_POLL=no
22827 rm -f conftest*
22831 if test x$glibcpp_cv_POLL = xyes; then
22832 cat >> confdefs.h <<\EOF
22833 #define HAVE_POLL 1
22839 if eval "test \"`echo '$''{'glibcpp_cv_S_ISREG'+set}'`\" = set"; then
22840 echo $ac_n "(cached) $ac_c" 1>&6
22841 else
22843 cat > conftest.$ac_ext <<EOF
22844 #line 22845 "configure"
22845 #include "confdefs.h"
22846 #include <sys/stat.h>
22847 int main() {
22848 struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode);
22849 ; return 0; }
22851 if { (eval echo configure:22852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22852 rm -rf conftest*
22853 glibcpp_cv_S_ISREG=yes
22854 else
22855 echo "configure: failed program was:" >&5
22856 cat conftest.$ac_ext >&5
22857 rm -rf conftest*
22858 glibcpp_cv_S_ISREG=no
22860 rm -f conftest*
22864 if eval "test \"`echo '$''{'glibcpp_cv_S_IFREG'+set}'`\" = set"; then
22865 echo $ac_n "(cached) $ac_c" 1>&6
22866 else
22868 cat > conftest.$ac_ext <<EOF
22869 #line 22870 "configure"
22870 #include "confdefs.h"
22871 #include <sys/stat.h>
22872 int main() {
22873 struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode;
22874 ; return 0; }
22876 if { (eval echo configure:22877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22877 rm -rf conftest*
22878 glibcpp_cv_S_IFREG=yes
22879 else
22880 echo "configure: failed program was:" >&5
22881 cat conftest.$ac_ext >&5
22882 rm -rf conftest*
22883 glibcpp_cv_S_IFREG=no
22885 rm -f conftest*
22889 if test x$glibcpp_cv_S_ISREG = xyes; then
22890 cat >> confdefs.h <<\EOF
22891 #define HAVE_S_ISREG 1
22894 elif test x$glibcpp_cv_S_IFREG = xyes; then
22895 cat >> confdefs.h <<\EOF
22896 #define HAVE_S_IFREG 1
22903 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22904 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22905 echo "configure:22906: checking for locale.h" >&5
22906 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22907 echo $ac_n "(cached) $ac_c" 1>&6
22908 else
22909 cat > conftest.$ac_ext <<EOF
22910 #line 22911 "configure"
22911 #include "confdefs.h"
22912 #include <locale.h>
22914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22915 { (eval echo configure:22916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22917 if test -z "$ac_err"; then
22918 rm -rf conftest*
22919 eval "ac_cv_header_$ac_safe=yes"
22920 else
22921 echo "$ac_err" >&5
22922 echo "configure: failed program was:" >&5
22923 cat conftest.$ac_ext >&5
22924 rm -rf conftest*
22925 eval "ac_cv_header_$ac_safe=no"
22927 rm -f conftest*
22929 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22930 echo "$ac_t""yes" 1>&6
22932 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22933 echo "configure:22934: checking for LC_MESSAGES" >&5
22934 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22935 echo $ac_n "(cached) $ac_c" 1>&6
22936 else
22937 cat > conftest.$ac_ext <<EOF
22938 #line 22939 "configure"
22939 #include "confdefs.h"
22940 #include <locale.h>
22941 int main() {
22942 return LC_MESSAGES
22943 ; return 0; }
22945 if { (eval echo configure:22946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22946 rm -rf conftest*
22947 ac_cv_val_LC_MESSAGES=yes
22948 else
22949 echo "configure: failed program was:" >&5
22950 cat conftest.$ac_ext >&5
22951 rm -rf conftest*
22952 ac_cv_val_LC_MESSAGES=no
22954 rm -f conftest*
22957 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22958 if test $ac_cv_val_LC_MESSAGES = yes; then
22959 cat >> confdefs.h <<\EOF
22960 #define HAVE_LC_MESSAGES 1
22965 else
22966 echo "$ac_t""no" 1>&6
22971 cat > conftest.$ac_ext <<EOF
22972 #line 22973 "configure"
22973 #include "confdefs.h"
22975 #include <setjmp.h>
22977 int main() {
22978 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
22979 ; return 0; }
22981 if { (eval echo configure:22982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22982 rm -rf conftest*
22983 cat >> confdefs.h <<\EOF
22984 #define HAVE_SIGSETJMP 1
22988 else
22989 echo "configure: failed program was:" >&5
22990 cat conftest.$ac_ext >&5
22992 rm -f conftest*
22994 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
22996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22998 echo "configure:22999: checking for $ac_hdr" >&5
22999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23000 echo $ac_n "(cached) $ac_c" 1>&6
23001 else
23002 cat > conftest.$ac_ext <<EOF
23003 #line 23004 "configure"
23004 #include "confdefs.h"
23005 #include <$ac_hdr>
23007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23008 { (eval echo configure:23009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23010 if test -z "$ac_err"; then
23011 rm -rf conftest*
23012 eval "ac_cv_header_$ac_safe=yes"
23013 else
23014 echo "$ac_err" >&5
23015 echo "configure: failed program was:" >&5
23016 cat conftest.$ac_ext >&5
23017 rm -rf conftest*
23018 eval "ac_cv_header_$ac_safe=no"
23020 rm -f conftest*
23022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23023 echo "$ac_t""yes" 1>&6
23024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23025 cat >> confdefs.h <<EOF
23026 #define $ac_tr_hdr 1
23029 else
23030 echo "$ac_t""no" 1>&6
23032 done
23034 for ac_func in getpagesize
23036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23037 echo "configure:23038: checking for $ac_func" >&5
23038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23039 echo $ac_n "(cached) $ac_c" 1>&6
23040 else
23041 cat > conftest.$ac_ext <<EOF
23042 #line 23043 "configure"
23043 #include "confdefs.h"
23044 /* System header to define __stub macros and hopefully few prototypes,
23045 which can conflict with char $ac_func(); below. */
23046 #include <assert.h>
23047 /* Override any gcc2 internal prototype to avoid an error. */
23048 /* We use char because int might match the return type of a gcc2
23049 builtin and then its argument prototype would still apply. */
23050 char $ac_func();
23052 int main() {
23054 /* The GNU C library defines this for functions which it implements
23055 to always fail with ENOSYS. Some functions are actually named
23056 something starting with __ and the normal name is an alias. */
23057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23058 choke me
23059 #else
23060 $ac_func();
23061 #endif
23063 ; return 0; }
23065 if { (eval echo configure:23066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23066 rm -rf conftest*
23067 eval "ac_cv_func_$ac_func=yes"
23068 else
23069 echo "configure: failed program was:" >&5
23070 cat conftest.$ac_ext >&5
23071 rm -rf conftest*
23072 eval "ac_cv_func_$ac_func=no"
23074 rm -f conftest*
23077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23078 echo "$ac_t""yes" 1>&6
23079 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23080 cat >> confdefs.h <<EOF
23081 #define $ac_tr_func 1
23084 else
23085 echo "$ac_t""no" 1>&6
23087 done
23089 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23090 echo "configure:23091: checking for working mmap" >&5
23091 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23092 echo $ac_n "(cached) $ac_c" 1>&6
23093 else
23094 if test "$cross_compiling" = yes; then
23095 ac_cv_func_mmap_fixed_mapped=no
23096 else
23097 cat > conftest.$ac_ext <<EOF
23098 #line 23099 "configure"
23099 #include "confdefs.h"
23101 /* Thanks to Mike Haertel and Jim Avera for this test.
23102 Here is a matrix of mmap possibilities:
23103 mmap private not fixed
23104 mmap private fixed at somewhere currently unmapped
23105 mmap private fixed at somewhere already mapped
23106 mmap shared not fixed
23107 mmap shared fixed at somewhere currently unmapped
23108 mmap shared fixed at somewhere already mapped
23109 For private mappings, we should verify that changes cannot be read()
23110 back from the file, nor mmap's back from the file at a different
23111 address. (There have been systems where private was not correctly
23112 implemented like the infamous i386 svr4.0, and systems where the
23113 VM page cache was not coherent with the filesystem buffer cache
23114 like early versions of FreeBSD and possibly contemporary NetBSD.)
23115 For shared mappings, we should conversely verify that changes get
23116 propogated back to all the places they're supposed to be.
23118 Grep wants private fixed already mapped.
23119 The main things grep needs to know about mmap are:
23120 * does it exist and is it safe to write into the mmap'd area
23121 * how to use it (BSD variants) */
23122 #include <sys/types.h>
23123 #include <fcntl.h>
23124 #include <sys/mman.h>
23126 #if HAVE_SYS_TYPES_H
23127 # include <sys/types.h>
23128 #endif
23130 #if HAVE_STDLIB_H
23131 # include <stdlib.h>
23132 #endif
23134 #if HAVE_SYS_STAT_H
23135 # include <sys/stat.h>
23136 #endif
23138 #if HAVE_UNISTD_H
23139 # include <unistd.h>
23140 #endif
23142 /* This mess was copied from the GNU getpagesize.h. */
23143 #ifndef HAVE_GETPAGESIZE
23145 /* Assume that all systems that can run configure have sys/param.h. */
23146 # ifndef HAVE_SYS_PARAM_H
23147 # define HAVE_SYS_PARAM_H 1
23148 # endif
23150 # ifdef _SC_PAGESIZE
23151 # define getpagesize() sysconf(_SC_PAGESIZE)
23152 # else /* no _SC_PAGESIZE */
23153 # ifdef HAVE_SYS_PARAM_H
23154 # include <sys/param.h>
23155 # ifdef EXEC_PAGESIZE
23156 # define getpagesize() EXEC_PAGESIZE
23157 # else /* no EXEC_PAGESIZE */
23158 # ifdef NBPG
23159 # define getpagesize() NBPG * CLSIZE
23160 # ifndef CLSIZE
23161 # define CLSIZE 1
23162 # endif /* no CLSIZE */
23163 # else /* no NBPG */
23164 # ifdef NBPC
23165 # define getpagesize() NBPC
23166 # else /* no NBPC */
23167 # ifdef PAGESIZE
23168 # define getpagesize() PAGESIZE
23169 # endif /* PAGESIZE */
23170 # endif /* no NBPC */
23171 # endif /* no NBPG */
23172 # endif /* no EXEC_PAGESIZE */
23173 # else /* no HAVE_SYS_PARAM_H */
23174 # define getpagesize() 8192 /* punt totally */
23175 # endif /* no HAVE_SYS_PARAM_H */
23176 # endif /* no _SC_PAGESIZE */
23178 #endif /* no HAVE_GETPAGESIZE */
23180 #ifdef __cplusplus
23181 extern "C" { void *malloc(unsigned); }
23182 #else
23183 char *malloc();
23184 #endif
23187 main()
23189 char *data, *data2, *data3;
23190 int i, pagesize;
23191 int fd;
23193 pagesize = getpagesize();
23196 * First, make a file with some known garbage in it.
23198 data = malloc(pagesize);
23199 if (!data)
23200 exit(1);
23201 for (i = 0; i < pagesize; ++i)
23202 *(data + i) = rand();
23203 umask(0);
23204 fd = creat("conftestmmap", 0600);
23205 if (fd < 0)
23206 exit(1);
23207 if (write(fd, data, pagesize) != pagesize)
23208 exit(1);
23209 close(fd);
23212 * Next, try to mmap the file at a fixed address which
23213 * already has something else allocated at it. If we can,
23214 * also make sure that we see the same garbage.
23216 fd = open("conftestmmap", O_RDWR);
23217 if (fd < 0)
23218 exit(1);
23219 data2 = malloc(2 * pagesize);
23220 if (!data2)
23221 exit(1);
23222 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23223 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23224 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23225 exit(1);
23226 for (i = 0; i < pagesize; ++i)
23227 if (*(data + i) != *(data2 + i))
23228 exit(1);
23231 * Finally, make sure that changes to the mapped area
23232 * do not percolate back to the file as seen by read().
23233 * (This is a bug on some variants of i386 svr4.0.)
23235 for (i = 0; i < pagesize; ++i)
23236 *(data2 + i) = *(data2 + i) + 1;
23237 data3 = malloc(pagesize);
23238 if (!data3)
23239 exit(1);
23240 if (read(fd, data3, pagesize) != pagesize)
23241 exit(1);
23242 for (i = 0; i < pagesize; ++i)
23243 if (*(data + i) != *(data3 + i))
23244 exit(1);
23245 close(fd);
23246 unlink("conftestmmap");
23247 exit(0);
23251 if { (eval echo configure:23252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23252 then
23253 ac_cv_func_mmap_fixed_mapped=yes
23254 else
23255 echo "configure: failed program was:" >&5
23256 cat conftest.$ac_ext >&5
23257 rm -fr conftest*
23258 ac_cv_func_mmap_fixed_mapped=no
23260 rm -fr conftest*
23265 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23266 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23267 cat >> confdefs.h <<\EOF
23268 #define HAVE_MMAP 1
23274 # Establish limits on memory usage during 'make check'
23277 setrlimit_have_headers=yes
23278 for ac_hdr in unistd.h sys/time.h sys/resource.h
23280 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23281 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23282 echo "configure:23283: checking for $ac_hdr" >&5
23283 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23284 echo $ac_n "(cached) $ac_c" 1>&6
23285 else
23286 cat > conftest.$ac_ext <<EOF
23287 #line 23288 "configure"
23288 #include "confdefs.h"
23289 #include <$ac_hdr>
23291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23292 { (eval echo configure:23293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23294 if test -z "$ac_err"; then
23295 rm -rf conftest*
23296 eval "ac_cv_header_$ac_safe=yes"
23297 else
23298 echo "$ac_err" >&5
23299 echo "configure: failed program was:" >&5
23300 cat conftest.$ac_ext >&5
23301 rm -rf conftest*
23302 eval "ac_cv_header_$ac_safe=no"
23304 rm -f conftest*
23306 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23307 echo "$ac_t""yes" 1>&6
23308 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23309 cat >> confdefs.h <<EOF
23310 #define $ac_tr_hdr 1
23313 else
23314 echo "$ac_t""no" 1>&6
23315 setrlimit_have_headers=no
23317 done
23319 # If don't have the headers, then we can't run the tests now, and we
23320 # won't be seeing any of these during testsuite compilation.
23321 if test $setrlimit_have_headers = yes; then
23322 # Can't do these in a loop, else the resulting syntax is wrong.
23324 cat > conftest.$ac_ext <<EOF
23325 #line 23326 "configure"
23326 #include "confdefs.h"
23327 #include <unistd.h>
23328 #include <sys/time.h>
23329 #include <sys/resource.h>
23331 int main() {
23332 int f = RLIMIT_DATA ;
23333 ; return 0; }
23335 if { (eval echo configure:23336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23336 rm -rf conftest*
23337 glibcpp_mresult=1
23338 else
23339 echo "configure: failed program was:" >&5
23340 cat conftest.$ac_ext >&5
23341 rm -rf conftest*
23342 glibcpp_mresult=0
23344 rm -f conftest*
23345 cat >> confdefs.h <<EOF
23346 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23351 cat > conftest.$ac_ext <<EOF
23352 #line 23353 "configure"
23353 #include "confdefs.h"
23354 #include <unistd.h>
23355 #include <sys/time.h>
23356 #include <sys/resource.h>
23358 int main() {
23359 int f = RLIMIT_RSS ;
23360 ; return 0; }
23362 if { (eval echo configure:23363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23363 rm -rf conftest*
23364 glibcpp_mresult=1
23365 else
23366 echo "configure: failed program was:" >&5
23367 cat conftest.$ac_ext >&5
23368 rm -rf conftest*
23369 glibcpp_mresult=0
23371 rm -f conftest*
23372 cat >> confdefs.h <<EOF
23373 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
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_VMEM ;
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_VMEM $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_AS ;
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_AS $glibcpp_mresult
23432 # Check for rlimit, setrlimit.
23433 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23434 echo $ac_n "(cached) $ac_c" 1>&6
23435 else
23437 cat > conftest.$ac_ext <<EOF
23438 #line 23439 "configure"
23439 #include "confdefs.h"
23440 #include <unistd.h>
23441 #include <sys/time.h>
23442 #include <sys/resource.h>
23444 int main() {
23445 struct rlimit r; setrlimit(0, &r);
23446 ; return 0; }
23448 if { (eval echo configure:23449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23449 rm -rf conftest*
23450 ac_setrlimit=yes
23451 else
23452 echo "configure: failed program was:" >&5
23453 cat conftest.$ac_ext >&5
23454 rm -rf conftest*
23455 ac_setrlimit=no
23457 rm -f conftest*
23463 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23464 echo "configure:23465: checking for testsuite memory limit support" >&5
23465 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23466 ac_mem_limits=yes
23467 cat >> confdefs.h <<\EOF
23468 #define _GLIBCPP_MEM_LIMITS 1
23471 else
23472 ac_mem_limits=no
23474 echo "$ac_t""$ac_mem_limits" 1>&6
23477 # Look for setenv, so that extended locale tests can be performed.
23479 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23480 echo "configure:23481: checking for setenv declaration" >&5
23481 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23482 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23483 echo $ac_n "(cached) $ac_c" 1>&6
23484 else
23487 ac_ext=C
23488 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23489 ac_cpp='$CXXCPP $CPPFLAGS'
23490 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23491 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23492 cross_compiling=$ac_cv_prog_cxx_cross
23494 cat > conftest.$ac_ext <<EOF
23495 #line 23496 "configure"
23496 #include "confdefs.h"
23497 #include <stdlib.h>
23498 int main() {
23499 setenv(0, 0, 0);
23500 ; return 0; }
23502 if { (eval echo configure:23503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23503 rm -rf conftest*
23504 glibcpp_cv_func_setenv_use=yes
23505 else
23506 echo "configure: failed program was:" >&5
23507 cat conftest.$ac_ext >&5
23508 rm -rf conftest*
23509 glibcpp_cv_func_setenv_use=no
23511 rm -f conftest*
23512 ac_ext=c
23513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23514 ac_cpp='$CPP $CPPFLAGS'
23515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23517 cross_compiling=$ac_cv_prog_cc_cross
23523 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23524 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23525 for ac_func in setenv
23527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23528 echo "configure:23529: checking for $ac_func" >&5
23529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23530 echo $ac_n "(cached) $ac_c" 1>&6
23531 else
23532 cat > conftest.$ac_ext <<EOF
23533 #line 23534 "configure"
23534 #include "confdefs.h"
23535 /* System header to define __stub macros and hopefully few prototypes,
23536 which can conflict with char $ac_func(); below. */
23537 #include <assert.h>
23538 /* Override any gcc2 internal prototype to avoid an error. */
23539 /* We use char because int might match the return type of a gcc2
23540 builtin and then its argument prototype would still apply. */
23541 char $ac_func();
23543 int main() {
23545 /* The GNU C library defines this for functions which it implements
23546 to always fail with ENOSYS. Some functions are actually named
23547 something starting with __ and the normal name is an alias. */
23548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23549 choke me
23550 #else
23551 $ac_func();
23552 #endif
23554 ; return 0; }
23556 if { (eval echo configure:23557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23557 rm -rf conftest*
23558 eval "ac_cv_func_$ac_func=yes"
23559 else
23560 echo "configure: failed program was:" >&5
23561 cat conftest.$ac_ext >&5
23562 rm -rf conftest*
23563 eval "ac_cv_func_$ac_func=no"
23565 rm -f conftest*
23568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23569 echo "$ac_t""yes" 1>&6
23570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23571 cat >> confdefs.h <<EOF
23572 #define $ac_tr_func 1
23575 else
23576 echo "$ac_t""no" 1>&6
23578 done
23583 # Export file names for ABI checking.
23584 baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23587 case "$target" in
23588 *-*-cygwin* ) enable_abi_check=no ;;
23589 * ) enable_abi_check=yes ;;
23590 esac
23592 # Don't do ABI checking unless native.
23595 if test x"$build" = x"$host" && test -z "$with_cross_host" \
23596 && test "$enable_abi_check" = yes ; then
23597 GLIBCPP_BUILD_ABI_CHECK_TRUE=
23598 GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23599 else
23600 GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23601 GLIBCPP_BUILD_ABI_CHECK_FALSE=
23606 # This depends on the possibly-skipped linker test above.
23607 # Check whether --enable-symvers or --disable-symvers was given.
23608 if test "${enable_symvers+set}" = set; then
23609 enableval="$enable_symvers"
23610 case "$enableval" in
23611 yes) enable_symvers=yes ;;
23612 no) enable_symvers=no ;;
23613 # other names here, just as sanity checks
23614 #gnu|sun|etcetera) enable_symvers=$enableval ;;
23615 gnu) enable_symvers=$enableval ;;
23616 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23617 esac
23618 else
23619 enable_symvers=yes
23622 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23623 # don't know enough about $LD to do tricks...
23624 if test x$enable_shared = xno ||
23625 test "x$LD" = x ||
23626 test x$glibcpp_gnu_ld_version = x; then
23627 enable_symvers=no
23630 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23631 if test $enable_symvers != no; then
23632 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23633 echo "configure:23634: checking for shared libgcc" >&5
23634 ac_save_CFLAGS="$CFLAGS"
23635 CFLAGS=' -lgcc_s'
23636 cat > conftest.$ac_ext <<EOF
23637 #line 23638 "configure"
23638 #include "confdefs.h"
23640 int main() {
23641 return 0
23642 ; return 0; }
23644 if { (eval echo configure:23645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23645 rm -rf conftest*
23646 glibcpp_shared_libgcc=yes
23647 else
23648 echo "configure: failed program was:" >&5
23649 cat conftest.$ac_ext >&5
23650 rm -rf conftest*
23651 glibcpp_shared_libgcc=no
23653 rm -f conftest*
23654 CFLAGS="$ac_save_CFLAGS"
23655 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23658 # For GNU ld, we need at least this version. It's 2.12 in the same format
23659 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
23660 glibcpp_min_gnu_ld_version=21200
23662 # Check to see if unspecified "yes" value can win, given results
23663 # above.
23664 if test $enable_symvers = yes ; then
23665 if test $with_gnu_ld = yes &&
23666 test $glibcpp_shared_libgcc = yes ;
23667 then
23668 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23669 enable_symvers=gnu
23670 else
23671 ac_test_CFLAGS="${CFLAGS+set}"
23672 ac_save_CFLAGS="$CFLAGS"
23673 CFLAGS='-shared -Wl,--version-script,conftest.map'
23674 enable_symvers=no
23676 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23678 cat > conftest.$ac_ext <<EOF
23679 #line 23680 "configure"
23680 #include "confdefs.h"
23681 int foo;
23682 int main() {
23684 ; return 0; }
23686 if { (eval echo configure:23687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23687 rm -rf conftest*
23688 enable_symvers=gnu
23689 else
23690 echo "configure: failed program was:" >&5
23691 cat conftest.$ac_ext >&5
23693 rm -f conftest*
23694 if test "$ac_test_CFLAGS" = set; then
23695 CFLAGS="$ac_save_CFLAGS"
23696 else
23697 # this is the suspicious part
23698 CFLAGS=''
23700 rm -f conftest.map
23702 else
23703 # just fail for now
23704 enable_symvers=no
23708 case $enable_symvers in
23710 SYMVER_MAP=config/linker-map.dummy
23712 gnu)
23713 SYMVER_MAP=config/linker-map.gnu
23714 cat >> confdefs.h <<\EOF
23715 #define _GLIBCPP_SYMVER 1
23719 esac
23724 if test $enable_symvers != no; then
23725 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23726 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23727 else
23728 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23729 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23731 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23732 echo "configure:23733: checking versioning on shared library symbols" >&5
23733 echo "$ac_t""$enable_symvers" 1>&6
23736 # Propagate the target-specific source directories through the build chain.
23737 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
23738 # uses it, and it only gets used in this file.)
23739 OS_INC_SRCDIR=config/${os_include_dir}
23740 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23744 # Set up cross-compile flags
23747 if test "$CANADIAN" = yes; then
23748 CANADIAN_TRUE=
23749 CANADIAN_FALSE='#'
23750 else
23751 CANADIAN_TRUE='#'
23752 CANADIAN_FALSE=
23755 cat > confcache <<\EOF
23756 # This file is a shell script that caches the results of configure
23757 # tests run on this system so they can be shared between configure
23758 # scripts and configure runs. It is not useful on other systems.
23759 # If it contains results you don't want to keep, you may remove or edit it.
23761 # By default, configure uses ./config.cache as the cache file,
23762 # creating it if it does not exist already. You can give configure
23763 # the --cache-file=FILE option to use a different cache file; that is
23764 # what configure does when it calls configure scripts in
23765 # subdirectories, so they share the cache.
23766 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23767 # config.status only pays attention to the cache file if you give it the
23768 # --recheck option to rerun configure.
23771 # The following way of writing the cache mishandles newlines in values,
23772 # but we know of no workaround that is simple, portable, and efficient.
23773 # So, don't put newlines in cache variables' values.
23774 # Ultrix sh set writes to stderr and can't be redirected directly,
23775 # and sets the high bit in the cache file unless we assign to the vars.
23776 (set) 2>&1 |
23777 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23778 *ac_space=\ *)
23779 # `set' does not quote correctly, so add quotes (double-quote substitution
23780 # turns \\\\ into \\, and sed turns \\ into \).
23781 sed -n \
23782 -e "s/'/'\\\\''/g" \
23783 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23786 # `set' quotes correctly as required by POSIX, so do not add quotes.
23787 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23789 esac >> confcache
23790 if cmp -s $cache_file confcache; then
23792 else
23793 if test -w $cache_file; then
23794 echo "updating cache $cache_file"
23795 cat confcache > $cache_file
23796 else
23797 echo "not updating unwritable cache $cache_file"
23800 rm -f confcache
23803 if test "${multilib}" = "yes"; then
23804 multilib_arg="--enable-multilib"
23805 else
23806 multilib_arg=
23809 # Export all the install information
23811 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23812 # exported correctly in GLIBCPP_CONFIGURE.
23813 glibcpp_toolexecdir=no
23814 glibcpp_toolexeclibdir=no
23815 glibcpp_prefixdir=${prefix}
23817 # Process the option --with-gxx-include-dir=<path to include-files directory>
23818 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23819 echo "configure:23820: checking for --with-gxx-include-dir" >&5
23820 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23821 if test "${with_gxx_include_dir+set}" = set; then
23822 withval="$with_gxx_include_dir"
23823 case "${withval}" in
23824 yes)
23825 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23826 gxx_include_dir=no
23829 gxx_include_dir=no
23832 gxx_include_dir=${withval}
23834 esac
23835 else
23836 gxx_include_dir=no
23839 echo "$ac_t""$gxx_include_dir" 1>&6
23841 # Process the option "--enable-version-specific-runtime-libs"
23842 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23843 echo "configure:23844: checking for --enable-version-specific-runtime-libs" >&5
23844 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23845 if test "${enable_version_specific_runtime_libs+set}" = set; then
23846 enableval="$enable_version_specific_runtime_libs"
23847 case "$enableval" in
23848 yes) version_specific_libs=yes ;;
23849 no) version_specific_libs=no ;;
23850 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23851 esac
23852 else
23853 version_specific_libs=no
23855 # Option set, now we can test it.
23856 echo "$ac_t""$version_specific_libs" 1>&6
23858 # Default case for install directory for include files.
23859 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23860 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23863 # Version-specific runtime libs processing.
23864 if test $version_specific_libs = yes; then
23865 # Need the gcc compiler version to know where to install libraries
23866 # and header files if --enable-version-specific-runtime-libs option
23867 # is selected.
23868 if test x"$gxx_include_dir" = x"no"; then
23869 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23871 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23872 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23875 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23876 # Install a library built with a cross compiler in tooldir, not libdir.
23877 if test x"$glibcpp_toolexecdir" = x"no"; then
23878 if test -n "$with_cross_host" &&
23879 test x"$with_cross_host" != x"no"; then
23880 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23881 glibcpp_toolexeclibdir='$(toolexecdir)/lib'
23882 else
23883 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23884 glibcpp_toolexeclibdir='$(libdir)'
23886 multi_os_directory=`$CC -print-multi-os-directory`
23887 case $multi_os_directory in
23888 .) ;; # Avoid trailing /.
23889 *) glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/$multi_os_directory ;;
23890 esac
23893 echo $ac_n "checking for install location""... $ac_c" 1>&6
23894 echo "configure:23895: checking for install location" >&5
23895 echo "$ac_t""$gxx_include_dir" 1>&6
23903 # Export all the include and flag information to Makefiles.
23905 # Root level of the build directory include sources.
23906 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
23908 # Passed down for canadian crosses.
23909 if test x"$CANADIAN" = xyes; then
23910 TOPLEVEL_INCLUDES='-I$(includedir)'
23913 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23915 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23917 if test x"$need_libio" = xyes; then
23918 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
23922 # Now, export this to all the little Makefiles....
23929 # Optimization flags that are probably a good idea for thrill-seekers. Just
23930 # uncomment the lines below and make, everything else is ready to go...
23931 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
23932 OPTIMIZE_CXXFLAGS=
23935 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
23939 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23940 grep "enable shared" > /dev/null; then
23941 LIBSUPCXX_PICFLAGS=-prefer-pic
23942 else
23943 LIBSUPCXX_PICFLAGS=
23947 # Generate the various Makefiles, include files, and scripts.
23948 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
23949 # and libsupc++/Makefile.am so that multilib installs will end up
23950 # installed in the correct place. To work around this not being passed
23951 # down from config-ml.in -> top_srcdir/Makefile.am ->
23952 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23953 trap '' 1 2 15
23954 cat > confcache <<\EOF
23955 # This file is a shell script that caches the results of configure
23956 # tests run on this system so they can be shared between configure
23957 # scripts and configure runs. It is not useful on other systems.
23958 # If it contains results you don't want to keep, you may remove or edit it.
23960 # By default, configure uses ./config.cache as the cache file,
23961 # creating it if it does not exist already. You can give configure
23962 # the --cache-file=FILE option to use a different cache file; that is
23963 # what configure does when it calls configure scripts in
23964 # subdirectories, so they share the cache.
23965 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23966 # config.status only pays attention to the cache file if you give it the
23967 # --recheck option to rerun configure.
23970 # The following way of writing the cache mishandles newlines in values,
23971 # but we know of no workaround that is simple, portable, and efficient.
23972 # So, don't put newlines in cache variables' values.
23973 # Ultrix sh set writes to stderr and can't be redirected directly,
23974 # and sets the high bit in the cache file unless we assign to the vars.
23975 (set) 2>&1 |
23976 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23977 *ac_space=\ *)
23978 # `set' does not quote correctly, so add quotes (double-quote substitution
23979 # turns \\\\ into \\, and sed turns \\ into \).
23980 sed -n \
23981 -e "s/'/'\\\\''/g" \
23982 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23985 # `set' quotes correctly as required by POSIX, so do not add quotes.
23986 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23988 esac >> confcache
23989 if cmp -s $cache_file confcache; then
23991 else
23992 if test -w $cache_file; then
23993 echo "updating cache $cache_file"
23994 cat confcache > $cache_file
23995 else
23996 echo "not updating unwritable cache $cache_file"
23999 rm -f confcache
24001 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24003 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24004 # Let make expand exec_prefix.
24005 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24007 # Any assignment to VPATH causes Sun make to only execute
24008 # the first set of double-colon rules, so remove it if not needed.
24009 # If there is a colon in the path, we need to keep it.
24010 if test "x$srcdir" = x.; then
24011 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
24014 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24016 DEFS=-DHAVE_CONFIG_H
24018 # Without the "./", some shells look in PATH for config.status.
24019 : ${CONFIG_STATUS=./config.status}
24021 echo creating $CONFIG_STATUS
24022 rm -f $CONFIG_STATUS
24023 cat > $CONFIG_STATUS <<EOF
24024 #! /bin/sh
24025 # Generated automatically by configure.
24026 # Run this file to recreate the current configuration.
24027 # This directory was configured as follows,
24028 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24030 # $0 $ac_configure_args
24032 # Compiler output produced by configure, useful for debugging
24033 # configure, is in ./config.log if it exists.
24035 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24036 for ac_option
24038 case "\$ac_option" in
24039 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24040 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24041 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24042 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24043 echo "$CONFIG_STATUS generated by autoconf version 2.13"
24044 exit 0 ;;
24045 -help | --help | --hel | --he | --h)
24046 echo "\$ac_cs_usage"; exit 0 ;;
24047 *) echo "\$ac_cs_usage"; exit 1 ;;
24048 esac
24049 done
24051 ac_given_srcdir=$srcdir
24052 ac_given_INSTALL="$INSTALL"
24054 trap 'rm -fr `echo "Makefile \
24055 include/Makefile src/Makefile \
24056 libmath/Makefile libio/Makefile libsupc++/Makefile \
24057 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24059 cat >> $CONFIG_STATUS <<EOF
24061 # Protect against being on the right side of a sed subst in config.status.
24062 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24063 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24064 $ac_vpsub
24065 $extrasub
24066 s%@SHELL@%$SHELL%g
24067 s%@CFLAGS@%$CFLAGS%g
24068 s%@CPPFLAGS@%$CPPFLAGS%g
24069 s%@CXXFLAGS@%$CXXFLAGS%g
24070 s%@FFLAGS@%$FFLAGS%g
24071 s%@DEFS@%$DEFS%g
24072 s%@LDFLAGS@%$LDFLAGS%g
24073 s%@LIBS@%$LIBS%g
24074 s%@exec_prefix@%$exec_prefix%g
24075 s%@prefix@%$prefix%g
24076 s%@program_transform_name@%$program_transform_name%g
24077 s%@bindir@%$bindir%g
24078 s%@sbindir@%$sbindir%g
24079 s%@libexecdir@%$libexecdir%g
24080 s%@datadir@%$datadir%g
24081 s%@sysconfdir@%$sysconfdir%g
24082 s%@sharedstatedir@%$sharedstatedir%g
24083 s%@localstatedir@%$localstatedir%g
24084 s%@libdir@%$libdir%g
24085 s%@includedir@%$includedir%g
24086 s%@oldincludedir@%$oldincludedir%g
24087 s%@infodir@%$infodir%g
24088 s%@mandir@%$mandir%g
24089 s%@PACKAGE@%$PACKAGE%g
24090 s%@libtool_VERSION@%$libtool_VERSION%g
24091 s%@toplevel_srcdir@%$toplevel_srcdir%g
24092 s%@host@%$host%g
24093 s%@host_alias@%$host_alias%g
24094 s%@host_cpu@%$host_cpu%g
24095 s%@host_vendor@%$host_vendor%g
24096 s%@host_os@%$host_os%g
24097 s%@target@%$target%g
24098 s%@target_alias@%$target_alias%g
24099 s%@target_cpu@%$target_cpu%g
24100 s%@target_vendor@%$target_vendor%g
24101 s%@target_os@%$target_os%g
24102 s%@build@%$build%g
24103 s%@build_alias@%$build_alias%g
24104 s%@build_cpu@%$build_cpu%g
24105 s%@build_vendor@%$build_vendor%g
24106 s%@build_os@%$build_os%g
24107 s%@glibcpp_builddir@%$glibcpp_builddir%g
24108 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
24109 s%@AWK@%$AWK%g
24110 s%@LN_S@%$LN_S%g
24111 s%@glibcpp_basedir@%$glibcpp_basedir%g
24112 s%@CC@%$CC%g
24113 s%@glibcpp_CXX@%$glibcpp_CXX%g
24114 s%@AS@%$AS%g
24115 s%@AR@%$AR%g
24116 s%@RANLIB@%$RANLIB%g
24117 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24118 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24119 s%@INSTALL_DATA@%$INSTALL_DATA%g
24120 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24121 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24122 s%@MAINT@%$MAINT%g
24123 s%@EXEEXT@%$EXEEXT%g
24124 s%@VERSION@%$VERSION%g
24125 s%@ACLOCAL@%$ACLOCAL%g
24126 s%@AUTOCONF@%$AUTOCONF%g
24127 s%@AUTOMAKE@%$AUTOMAKE%g
24128 s%@AUTOHEADER@%$AUTOHEADER%g
24129 s%@MAKEINFO@%$MAKEINFO%g
24130 s%@SET_MAKE@%$SET_MAKE%g
24131 s%@OBJEXT@%$OBJEXT%g
24132 s%@STRIP@%$STRIP%g
24133 s%@LIBTOOL@%$LIBTOOL%g
24134 s%@CXXCPP@%$CXXCPP%g
24135 s%@enable_shared@%$enable_shared%g
24136 s%@enable_static@%$enable_static%g
24137 s%@ifGNUmake@%$ifGNUmake%g
24138 s%@CPP@%$CPP%g
24139 s%@CSTDIO_H@%$CSTDIO_H%g
24140 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24141 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24142 s%@CCODECVT_C@%$CCODECVT_C%g
24143 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
24144 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
24145 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
24146 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
24147 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
24148 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
24149 s%@libio_la@%$libio_la%g
24150 s%@check_msgfmt@%$check_msgfmt%g
24151 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24152 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24153 s%@glibcpp_localedir@%$glibcpp_localedir%g
24154 s%@USE_NLS@%$USE_NLS%g
24155 s%@CLOCALE_H@%$CLOCALE_H%g
24156 s%@CCODECVT_H@%$CCODECVT_H%g
24157 s%@CMESSAGES_H@%$CMESSAGES_H%g
24158 s%@CCODECVT_CC@%$CCODECVT_CC%g
24159 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24160 s%@CCTYPE_CC@%$CCTYPE_CC%g
24161 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24162 s%@CMONEY_CC@%$CMONEY_CC%g
24163 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24164 s%@CTIME_H@%$CTIME_H%g
24165 s%@CTIME_CC@%$CTIME_CC%g
24166 s%@CLOCALE_CC@%$CLOCALE_CC%g
24167 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24168 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24169 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24170 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24171 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24172 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24173 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24174 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24175 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24176 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24177 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24178 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24179 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24180 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24181 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24182 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24183 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24184 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24185 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24186 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24187 s%@GLIBCPP_TEST_WCHAR_T_TRUE@%$GLIBCPP_TEST_WCHAR_T_TRUE%g
24188 s%@GLIBCPP_TEST_WCHAR_T_FALSE@%$GLIBCPP_TEST_WCHAR_T_FALSE%g
24189 s%@WERROR@%$WERROR%g
24190 s%@GLIBCPP_BUILD_PCH_TRUE@%$GLIBCPP_BUILD_PCH_TRUE%g
24191 s%@GLIBCPP_BUILD_PCH_FALSE@%$GLIBCPP_BUILD_PCH_FALSE%g
24192 s%@baseline_file@%$baseline_file%g
24193 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
24194 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
24195 s%@SYMVER_MAP@%$SYMVER_MAP%g
24196 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24197 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24198 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24199 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24200 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24201 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24202 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24203 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24204 s%@gxx_include_dir@%$gxx_include_dir%g
24205 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24206 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24207 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
24208 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24209 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24210 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24211 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24212 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24213 s%@WARN_FLAGS@%$WARN_FLAGS%g
24214 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24216 CEOF
24219 cat >> $CONFIG_STATUS <<\EOF
24221 # Split the substitutions into bite-sized pieces for seds with
24222 # small command number limits, like on Digital OSF/1 and HP-UX.
24223 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24224 ac_file=1 # Number of current file.
24225 ac_beg=1 # First line for current file.
24226 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24227 ac_more_lines=:
24228 ac_sed_cmds=""
24229 while $ac_more_lines; do
24230 if test $ac_beg -gt 1; then
24231 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24232 else
24233 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24235 if test ! -s conftest.s$ac_file; then
24236 ac_more_lines=false
24237 rm -f conftest.s$ac_file
24238 else
24239 if test -z "$ac_sed_cmds"; then
24240 ac_sed_cmds="sed -f conftest.s$ac_file"
24241 else
24242 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24244 ac_file=`expr $ac_file + 1`
24245 ac_beg=$ac_end
24246 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24248 done
24249 if test -z "$ac_sed_cmds"; then
24250 ac_sed_cmds=cat
24254 cat >> $CONFIG_STATUS <<EOF
24256 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24257 include/Makefile src/Makefile \
24258 libmath/Makefile libio/Makefile libsupc++/Makefile \
24259 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
24261 cat >> $CONFIG_STATUS <<\EOF
24262 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24263 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24264 case "$ac_file" in
24265 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24266 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24267 *) ac_file_in="${ac_file}.in" ;;
24268 esac
24270 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24272 # Remove last slash and all that follows it. Not all systems have dirname.
24273 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24274 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24275 # The file is in a subdirectory.
24276 test ! -d "$ac_dir" && mkdir "$ac_dir"
24277 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24278 # A "../" for each directory in $ac_dir_suffix.
24279 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24280 else
24281 ac_dir_suffix= ac_dots=
24284 case "$ac_given_srcdir" in
24285 .) srcdir=.
24286 if test -z "$ac_dots"; then top_srcdir=.
24287 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24288 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24289 *) # Relative path.
24290 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24291 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24292 esac
24294 case "$ac_given_INSTALL" in
24295 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24296 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24297 esac
24299 echo creating "$ac_file"
24300 rm -f "$ac_file"
24301 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24302 case "$ac_file" in
24303 *Makefile*) ac_comsub="1i\\
24304 # $configure_input" ;;
24305 *) ac_comsub= ;;
24306 esac
24308 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24309 sed -e "$ac_comsub
24310 s%@configure_input@%$configure_input%g
24311 s%@srcdir@%$srcdir%g
24312 s%@top_srcdir@%$top_srcdir%g
24313 s%@INSTALL@%$INSTALL%g
24314 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24315 fi; done
24316 rm -f conftest.s*
24318 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24319 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24321 # ac_d sets the value in "#define NAME VALUE" lines.
24322 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24323 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24324 ac_dC='\3'
24325 ac_dD='%g'
24326 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24327 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24328 ac_uB='\([ ]\)%\1#\2define\3'
24329 ac_uC=' '
24330 ac_uD='\4%g'
24331 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24332 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24333 ac_eB='$%\1#\2define\3'
24334 ac_eC=' '
24335 ac_eD='%g'
24337 if test "${CONFIG_HEADERS+set}" != set; then
24339 cat >> $CONFIG_STATUS <<EOF
24340 CONFIG_HEADERS="config.h"
24342 cat >> $CONFIG_STATUS <<\EOF
24344 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24345 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24346 case "$ac_file" in
24347 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24348 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24349 *) ac_file_in="${ac_file}.in" ;;
24350 esac
24352 echo creating $ac_file
24354 rm -f conftest.frag conftest.in conftest.out
24355 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24356 cat $ac_file_inputs > conftest.in
24360 # Transform confdefs.h into a sed script conftest.vals that substitutes
24361 # the proper values into config.h.in to produce config.h. And first:
24362 # Protect against being on the right side of a sed subst in config.status.
24363 # Protect against being in an unquoted here document in config.status.
24364 rm -f conftest.vals
24365 cat > conftest.hdr <<\EOF
24366 s/[\\&%]/\\&/g
24367 s%[\\$`]%\\&%g
24368 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24369 s%ac_d%ac_u%gp
24370 s%ac_u%ac_e%gp
24372 sed -n -f conftest.hdr confdefs.h > conftest.vals
24373 rm -f conftest.hdr
24375 # This sed command replaces #undef with comments. This is necessary, for
24376 # example, in the case of _POSIX_SOURCE, which is predefined and required
24377 # on some systems where configure will not decide to define it.
24378 cat >> conftest.vals <<\EOF
24379 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24382 # Break up conftest.vals because some shells have a limit on
24383 # the size of here documents, and old seds have small limits too.
24385 rm -f conftest.tail
24386 while :
24388 ac_lines=`grep -c . conftest.vals`
24389 # grep -c gives empty output for an empty file on some AIX systems.
24390 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24391 # Write a limited-size here document to conftest.frag.
24392 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24393 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24394 echo 'CEOF
24395 sed -f conftest.frag conftest.in > conftest.out
24396 rm -f conftest.in
24397 mv conftest.out conftest.in
24398 ' >> $CONFIG_STATUS
24399 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24400 rm -f conftest.vals
24401 mv conftest.tail conftest.vals
24402 done
24403 rm -f conftest.vals
24405 cat >> $CONFIG_STATUS <<\EOF
24406 rm -f conftest.frag conftest.h
24407 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24408 cat conftest.in >> conftest.h
24409 rm -f conftest.in
24410 if cmp -s $ac_file conftest.h 2>/dev/null; then
24411 echo "$ac_file is unchanged"
24412 rm -f conftest.h
24413 else
24414 # Remove last slash and all that follows it. Not all systems have dirname.
24415 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24416 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24417 # The file is in a subdirectory.
24418 test ! -d "$ac_dir" && mkdir "$ac_dir"
24420 rm -f $ac_file
24421 mv conftest.h $ac_file
24423 fi; done
24426 cat >> $CONFIG_STATUS <<EOF
24428 srcdir=${srcdir}
24429 host=${host}
24430 target=${target}
24431 with_target_subdir=${with_target_subdir}
24432 with_build_subdir=${with_build_subdir}
24433 with_multisubdir=${with_multisubdir}
24434 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24435 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24436 glibcpp_basedir=${glibcpp_basedir}
24437 CC="${CC}"
24438 CXX="${CXX}"
24439 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24442 cat >> $CONFIG_STATUS <<\EOF
24443 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24444 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24445 if test -n "$CONFIG_FILES"; then
24446 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24447 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24448 # Ony modify Makefiles that are just being created.
24449 case " $CONFIG_FILES" in
24450 *" Makefile"*)
24451 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24453 esac
24454 case $CONFIG_FILES in
24455 *src/Makefile*)
24456 grep '^MULTISUBDIR =' Makefile >> src/Makefile
24458 esac
24459 case $CONFIG_FILES in
24460 *libsupc++/Makefile*)
24461 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24463 esac
24466 chmod +x mkcheck
24467 chmod +x testsuite_flags
24468 exit 0
24470 chmod +x $CONFIG_STATUS
24471 rm -fr confdefs* $ac_clean_files
24472 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24476 # Sanity checking & User-visible messages.
24477 # Checks down here, otherwise they get scrolled off before
24478 # the user will notice.
24480 # Trying to get more people to read documentation. Possibly remove
24481 # check and warn all the time. There is no "informational" AC_MSG_
24482 # macro, so these are going to be printed even when --quiet/--silent
24483 # is given.
24484 if test ! -f stamp-sanity-warned; then
24485 touch stamp-sanity-warned
24486 echo ""
24487 echo "Please make certain that you read the installation information here:"
24488 echo " faster => ${srcdir}/docs/html/install.html"
24489 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24490 echo ""
24491 echo "and the configuration information here:"
24492 echo " faster => ${srcdir}/docs/html/configopts.html"
24493 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24494 echo ""
24495 echo "before proceeding with ${_cv_gnu_make_command}."
24496 echo ""