* config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
[official-gcc.git] / libstdc++-v3 / configure
blobab52d2d148f47d476f77981da9433980a9770bb9
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 --with-newlib Configuring with newlib"
23 ac_help="$ac_help
24 --enable-maintainer-mode enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
26 ac_help="$ac_help
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-static[=PKGS] build static libraries [default=yes]"
30 ac_help="$ac_help
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
32 ac_help="$ac_help
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
34 ac_help="$ac_help
35 --disable-libtool-lock avoid locking (might break parallel builds)"
36 ac_help="$ac_help
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
38 ac_help="$ac_help
39 --enable-cstdio enable stdio for target io package.
40 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
42 ac_help="$ac_help
43 --enable-clocale enable model for target locale package.
44 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
46 ac_help="$ac_help
47 --enable-nls use Native Language Support (default)"
48 ac_help="$ac_help
49 --enable-cheaders=MODEL construct "C" header files for g++ [default=c_std]"
50 ac_help="$ac_help
51 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
52 ac_help="$ac_help
53 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
54 ac_help="$ac_help
55 --enable-long-long turns on 'long long' [default=yes]"
56 ac_help="$ac_help
57 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
58 ac_help="$ac_help
59 --enable-libunwind-exceptions force use of libunwind for exceptions"
60 ac_help="$ac_help
61 --enable-concept-checks use Boost-derived template checks [default=no]"
62 ac_help="$ac_help
63 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
64 [default=]"
65 ac_help="$ac_help
66 --enable-debug build extra debug library [default=no]"
67 ac_help="$ac_help
68 --enable-debug-flags=FLAGS pass compiler FLAGS when building debug
69 library;[default=none]"
70 ac_help="$ac_help
71 --enable-symvers=style enables symbol versioning of the shared library [default=yes]"
72 ac_help="$ac_help
73 --with-gxx-include-dir the installation directory for include files"
74 ac_help="$ac_help
75 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
80 build=NONE
81 cache_file=./config.cache
82 exec_prefix=NONE
83 host=NONE
84 no_create=
85 nonopt=NONE
86 no_recursion=
87 prefix=NONE
88 program_prefix=NONE
89 program_suffix=NONE
90 program_transform_name=s,x,x,
91 silent=
92 site=
93 srcdir=
94 target=NONE
95 verbose=
96 x_includes=NONE
97 x_libraries=NONE
98 bindir='${exec_prefix}/bin'
99 sbindir='${exec_prefix}/sbin'
100 libexecdir='${exec_prefix}/libexec'
101 datadir='${prefix}/share'
102 sysconfdir='${prefix}/etc'
103 sharedstatedir='${prefix}/com'
104 localstatedir='${prefix}/var'
105 libdir='${exec_prefix}/lib'
106 includedir='${prefix}/include'
107 oldincludedir='/usr/include'
108 infodir='${prefix}/info'
109 mandir='${prefix}/man'
111 # Initialize some other variables.
112 subdirs=
113 MFLAGS= MAKEFLAGS=
114 SHELL=${CONFIG_SHELL-/bin/sh}
115 # Maximum number of lines to put in a shell here document.
116 ac_max_here_lines=12
118 ac_prev=
119 for ac_option
122 # If the previous option needs an argument, assign it.
123 if test -n "$ac_prev"; then
124 eval "$ac_prev=\$ac_option"
125 ac_prev=
126 continue
129 case "$ac_option" in
130 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
131 *) ac_optarg= ;;
132 esac
134 # Accept the important Cygnus configure options, so we can diagnose typos.
136 case "$ac_option" in
138 -bindir | --bindir | --bindi | --bind | --bin | --bi)
139 ac_prev=bindir ;;
140 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
141 bindir="$ac_optarg" ;;
143 -build | --build | --buil | --bui | --bu)
144 ac_prev=build ;;
145 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
146 build="$ac_optarg" ;;
148 -cache-file | --cache-file | --cache-fil | --cache-fi \
149 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
150 ac_prev=cache_file ;;
151 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
152 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
153 cache_file="$ac_optarg" ;;
155 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156 ac_prev=datadir ;;
157 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158 | --da=*)
159 datadir="$ac_optarg" ;;
161 -disable-* | --disable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}=no" ;;
170 -enable-* | --enable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
177 case "$ac_option" in
178 *=*) ;;
179 *) ac_optarg=yes ;;
180 esac
181 eval "enable_${ac_feature}='$ac_optarg'" ;;
183 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
184 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
185 | --exec | --exe | --ex)
186 ac_prev=exec_prefix ;;
187 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
188 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
189 | --exec=* | --exe=* | --ex=*)
190 exec_prefix="$ac_optarg" ;;
192 -gas | --gas | --ga | --g)
193 # Obsolete; use --with-gas.
194 with_gas=yes ;;
196 -help | --help | --hel | --he)
197 # Omit some internal or obsolete options to make the list less imposing.
198 # This message is too long to be a string in the A/UX 3.1 sh.
199 cat << EOF
200 Usage: configure [options] [host]
201 Options: [defaults in brackets after descriptions]
202 Configuration:
203 --cache-file=FILE cache test results in FILE
204 --help print this message
205 --no-create do not create output files
206 --quiet, --silent do not print \`checking...' messages
207 --version print the version of autoconf that created configure
208 Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
210 [$ac_default_prefix]
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
212 [same as prefix]
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
217 [PREFIX/share]
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
220 [PREFIX/com]
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
233 cat << EOF
234 Host type:
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238 Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
249 exit 0 ;;
251 -host | --host | --hos | --ho)
252 ac_prev=host ;;
253 -host=* | --host=* | --hos=* | --ho=*)
254 host="$ac_optarg" ;;
256 -includedir | --includedir | --includedi | --included | --include \
257 | --includ | --inclu | --incl | --inc)
258 ac_prev=includedir ;;
259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260 | --includ=* | --inclu=* | --incl=* | --inc=*)
261 includedir="$ac_optarg" ;;
263 -infodir | --infodir | --infodi | --infod | --info | --inf)
264 ac_prev=infodir ;;
265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266 infodir="$ac_optarg" ;;
268 -libdir | --libdir | --libdi | --libd)
269 ac_prev=libdir ;;
270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
271 libdir="$ac_optarg" ;;
273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274 | --libexe | --libex | --libe)
275 ac_prev=libexecdir ;;
276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277 | --libexe=* | --libex=* | --libe=*)
278 libexecdir="$ac_optarg" ;;
280 -localstatedir | --localstatedir | --localstatedi | --localstated \
281 | --localstate | --localstat | --localsta | --localst \
282 | --locals | --local | --loca | --loc | --lo)
283 ac_prev=localstatedir ;;
284 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287 localstatedir="$ac_optarg" ;;
289 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290 ac_prev=mandir ;;
291 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292 mandir="$ac_optarg" ;;
294 -nfp | --nfp | --nf)
295 # Obsolete; use --without-fp.
296 with_fp=no ;;
298 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
299 | --no-cr | --no-c)
300 no_create=yes ;;
302 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
304 no_recursion=yes ;;
306 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308 | --oldin | --oldi | --old | --ol | --o)
309 ac_prev=oldincludedir ;;
310 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313 oldincludedir="$ac_optarg" ;;
315 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316 ac_prev=prefix ;;
317 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318 prefix="$ac_optarg" ;;
320 -program-prefix | --program-prefix | --program-prefi | --program-pref \
321 | --program-pre | --program-pr | --program-p)
322 ac_prev=program_prefix ;;
323 -program-prefix=* | --program-prefix=* | --program-prefi=* \
324 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325 program_prefix="$ac_optarg" ;;
327 -program-suffix | --program-suffix | --program-suffi | --program-suff \
328 | --program-suf | --program-su | --program-s)
329 ac_prev=program_suffix ;;
330 -program-suffix=* | --program-suffix=* | --program-suffi=* \
331 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332 program_suffix="$ac_optarg" ;;
334 -program-transform-name | --program-transform-name \
335 | --program-transform-nam | --program-transform-na \
336 | --program-transform-n | --program-transform- \
337 | --program-transform | --program-transfor \
338 | --program-transfo | --program-transf \
339 | --program-trans | --program-tran \
340 | --progr-tra | --program-tr | --program-t)
341 ac_prev=program_transform_name ;;
342 -program-transform-name=* | --program-transform-name=* \
343 | --program-transform-nam=* | --program-transform-na=* \
344 | --program-transform-n=* | --program-transform-=* \
345 | --program-transform=* | --program-transfor=* \
346 | --program-transfo=* | --program-transf=* \
347 | --program-trans=* | --program-tran=* \
348 | --progr-tra=* | --program-tr=* | --program-t=*)
349 program_transform_name="$ac_optarg" ;;
351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352 | -silent | --silent | --silen | --sile | --sil)
353 silent=yes ;;
355 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356 ac_prev=sbindir ;;
357 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358 | --sbi=* | --sb=*)
359 sbindir="$ac_optarg" ;;
361 -sharedstatedir | --sharedstatedir | --sharedstatedi \
362 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363 | --sharedst | --shareds | --shared | --share | --shar \
364 | --sha | --sh)
365 ac_prev=sharedstatedir ;;
366 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369 | --sha=* | --sh=*)
370 sharedstatedir="$ac_optarg" ;;
372 -site | --site | --sit)
373 ac_prev=site ;;
374 -site=* | --site=* | --sit=*)
375 site="$ac_optarg" ;;
377 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378 ac_prev=srcdir ;;
379 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
380 srcdir="$ac_optarg" ;;
382 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
383 | --syscon | --sysco | --sysc | --sys | --sy)
384 ac_prev=sysconfdir ;;
385 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
386 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
387 sysconfdir="$ac_optarg" ;;
389 -target | --target | --targe | --targ | --tar | --ta | --t)
390 ac_prev=target ;;
391 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
392 target="$ac_optarg" ;;
394 -v | -verbose | --verbose | --verbos | --verbo | --verb)
395 verbose=yes ;;
397 -version | --version | --versio | --versi | --vers)
398 echo "configure generated by autoconf version 2.13"
399 exit 0 ;;
401 -with-* | --with-*)
402 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
408 case "$ac_option" in
409 *=*) ;;
410 *) ac_optarg=yes ;;
411 esac
412 eval "with_${ac_package}='$ac_optarg'" ;;
414 -without-* | --without-*)
415 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}=no" ;;
423 --x)
424 # Obsolete; use --with-x.
425 with_x=yes ;;
427 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
428 | --x-incl | --x-inc | --x-in | --x-i)
429 ac_prev=x_includes ;;
430 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
431 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
432 x_includes="$ac_optarg" ;;
434 -x-libraries | --x-libraries | --x-librarie | --x-librari \
435 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
436 ac_prev=x_libraries ;;
437 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
438 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
439 x_libraries="$ac_optarg" ;;
441 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
445 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446 echo "configure: warning: $ac_option: invalid host type" 1>&2
448 if test "x$nonopt" != xNONE; then
449 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
451 nonopt="$ac_option"
454 esac
455 done
457 if test -n "$ac_prev"; then
458 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
463 # File descriptor usage:
464 # 0 standard input
465 # 1 file creation
466 # 2 errors and warnings
467 # 3 some systems may open it to /dev/tty
468 # 4 used on the Kubota Titan
469 # 6 checking for... messages and results
470 # 5 compiler messages saved in config.log
471 if test "$silent" = yes; then
472 exec 6>/dev/null
473 else
474 exec 6>&1
476 exec 5>./config.log
478 echo "\
479 This file contains any messages produced by compilers while
480 running configure, to aid debugging if configure makes a mistake.
481 " 1>&5
483 # Strip out --no-create and --no-recursion so they do not pile up.
484 # Also quote any args containing shell metacharacters.
485 ac_configure_args=
486 for ac_arg
488 case "$ac_arg" in
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c) ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
495 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
496 esac
497 done
499 # NLS nuisances.
500 # Only set these to C if already set. These must not be set unconditionally
501 # because not all systems understand e.g. LANG=C (notably SCO).
502 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503 # Non-C LC_CTYPE values break the ctype check.
504 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
505 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
506 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
507 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 echo > confdefs.h
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file=src/ios.cc
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520 ac_srcdir_defaulted=yes
521 # Try the directory containing this script, then its parent.
522 ac_prog=$0
523 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525 srcdir=$ac_confdir
526 if test ! -r $srcdir/$ac_unique_file; then
527 srcdir=..
529 else
530 ac_srcdir_defaulted=no
532 if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 else
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE; then
544 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545 else
546 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
552 . "$ac_site_file"
554 done
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
558 . $cache_file
559 else
560 echo "creating cache $cache_file"
561 > $cache_file
564 ac_ext=c
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
571 ac_exeext=
572 ac_objext=o
573 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
576 ac_n= ac_c='
577 ' ac_t=' '
578 else
579 ac_n=-n ac_c= ac_t=
581 else
582 ac_n= ac_c='\c' ac_t=
587 # This works around the fact that libtool configuration may change LD
588 # for this particular configuration, but some shells, instead of
589 # keeping the changes in LD private, export them just because LD is
590 # exported. Only used at the end of this file.
591 ORIGINAL_LD_FOR_MULTILIBS=$LD
593 PACKAGE=libstdc++
595 # For libtool versioning info, format is CURRENT:REVISION:AGE
596 libtool_VERSION=6:0:0
600 # Check whether --enable-multilib or --disable-multilib was given.
601 if test "${enable_multilib+set}" = set; then
602 enableval="$enable_multilib"
603 case "${enableval}" in
604 yes) multilib=yes ;;
605 no) multilib=no ;;
606 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
607 esac
608 else
609 multilib=yes
612 # When building with srcdir == objdir, links to the source files will
613 # be created in directories within the target_subdir. We have to
614 # adjust toplevel_srcdir accordingly, so that configure finds
615 # install-sh and other auxiliary files that live in the top-level
616 # source directory.
617 if test "${srcdir}" = "."; then
618 if test -z "${with_target_subdir}"; then
619 toprel=".."
620 else
621 if test "${with_target_subdir}" != "."; then
622 toprel="${with_multisrctop}../.."
623 else
624 toprel="${with_multisrctop}.."
627 else
628 toprel=".."
630 ac_aux_dir=
631 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
632 if test -f $ac_dir/install-sh; then
633 ac_aux_dir=$ac_dir
634 ac_install_sh="$ac_aux_dir/install-sh -c"
635 break
636 elif test -f $ac_dir/install.sh; then
637 ac_aux_dir=$ac_dir
638 ac_install_sh="$ac_aux_dir/install.sh -c"
639 break
641 done
642 if test -z "$ac_aux_dir"; then
643 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
645 ac_config_guess=$ac_aux_dir/config.guess
646 ac_config_sub=$ac_aux_dir/config.sub
647 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
649 toplevel_srcdir=\${top_srcdir}/$toprel
653 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
655 # You will slowly go insane if you do not grok the following fact: when
656 # building v3 as part of the compiler, the top-level /target/ becomes the
657 # library's /host/. `configure' then causes --target to default to --host,
658 # exactly like any other package using autoconf. Therefore, 'target' and
659 # 'host' will always be the same. This makes sense both for native and
660 # cross compilers, just think about it for a little while. :-)
662 # Also, if v3 is being configured as part of a cross compiler, the top-level
663 # configure script will pass the "real" host as $with_cross_host.
665 # In AC 2.13 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}-
756 # Runs configure.host, finds CC, CXX and assorted other critical bits.
757 # Must run this before the GLIBCPP_ENABLE_* macros below.
758 if test $host != $build; then
759 ac_tool_prefix=${host_alias}-
760 else
761 ac_tool_prefix=
764 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
765 echo "configure:766: checking for Cygwin environment" >&5
766 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
767 echo $ac_n "(cached) $ac_c" 1>&6
768 else
769 cat > conftest.$ac_ext <<EOF
770 #line 771 "configure"
771 #include "confdefs.h"
773 int main() {
775 #ifndef __CYGWIN__
776 #define __CYGWIN__ __CYGWIN32__
777 #endif
778 return __CYGWIN__;
779 ; return 0; }
781 if { (eval echo configure:782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
782 rm -rf conftest*
783 ac_cv_cygwin=yes
784 else
785 echo "configure: failed program was:" >&5
786 cat conftest.$ac_ext >&5
787 rm -rf conftest*
788 ac_cv_cygwin=no
790 rm -f conftest*
791 rm -f conftest*
794 echo "$ac_t""$ac_cv_cygwin" 1>&6
795 CYGWIN=
796 test "$ac_cv_cygwin" = yes && CYGWIN=yes
797 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
798 echo "configure:799: checking for mingw32 environment" >&5
799 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
800 echo $ac_n "(cached) $ac_c" 1>&6
801 else
802 cat > conftest.$ac_ext <<EOF
803 #line 804 "configure"
804 #include "confdefs.h"
806 int main() {
807 return __MINGW32__;
808 ; return 0; }
810 if { (eval echo configure:811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
811 rm -rf conftest*
812 ac_cv_mingw32=yes
813 else
814 echo "configure: failed program was:" >&5
815 cat conftest.$ac_ext >&5
816 rm -rf conftest*
817 ac_cv_mingw32=no
819 rm -f conftest*
820 rm -f conftest*
823 echo "$ac_t""$ac_cv_mingw32" 1>&6
824 MINGW32=
825 test "$ac_cv_mingw32" = yes && MINGW32=yes
827 # Export build and source directories.
828 # These need to be absolute paths, yet at the same time need to
829 # canonicalize only relative paths, because then amd will not unmount
830 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
831 glibcpp_builddir=`${PWDCMD-pwd}`
832 case $srcdir in
833 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
834 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
835 esac
841 for ac_prog in gawk mawk nawk awk
843 # Extract the first word of "$ac_prog", so it can be a program name with args.
844 set dummy $ac_prog; ac_word=$2
845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
846 echo "configure:847: checking for $ac_word" >&5
847 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
849 else
850 if test -n "$AWK"; then
851 ac_cv_prog_AWK="$AWK" # Let the user override the test.
852 else
853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
854 ac_dummy="$PATH"
855 for ac_dir in $ac_dummy; do
856 test -z "$ac_dir" && ac_dir=.
857 if test -f $ac_dir/$ac_word; then
858 ac_cv_prog_AWK="$ac_prog"
859 break
861 done
862 IFS="$ac_save_ifs"
865 AWK="$ac_cv_prog_AWK"
866 if test -n "$AWK"; then
867 echo "$ac_t""$AWK" 1>&6
868 else
869 echo "$ac_t""no" 1>&6
872 test -n "$AWK" && break
873 done
875 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
876 # be 'cp -p' if linking isn't available. Uncomment the next line to
877 # force a particular method.
878 #ac_cv_prog_LN_S='cp -p'
879 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
880 echo "configure:881: checking whether ln -s works" >&5
881 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
882 echo $ac_n "(cached) $ac_c" 1>&6
883 else
884 rm -f conftestdata
885 if ln -s X conftestdata 2>/dev/null
886 then
887 rm -f conftestdata
888 ac_cv_prog_LN_S="ln -s"
889 else
890 ac_cv_prog_LN_S=ln
893 LN_S="$ac_cv_prog_LN_S"
894 if test "$ac_cv_prog_LN_S" = "ln -s"; then
895 echo "$ac_t""yes" 1>&6
896 else
897 echo "$ac_t""no" 1>&6
901 # We use these options to decide which functions to include.
902 # Check whether --with-target-subdir or --without-target-subdir was given.
903 if test "${with_target_subdir+set}" = set; then
904 withval="$with_target_subdir"
908 # Check whether --with-cross-host or --without-cross-host was given.
909 if test "${with_cross_host+set}" = set; then
910 withval="$with_cross_host"
915 # Check whether --with-newlib or --without-newlib was given.
916 if test "${with_newlib+set}" = set; then
917 withval="$with_newlib"
922 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
925 # Never versions of autoconf add an underscore to these functions.
926 # Prevent future problems ...
932 # AC_PROG_CC
933 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
934 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
935 # are probably using a cross compiler, which will not be able to fully
936 # link an executable. This is addressed in later versions of autoconf.
941 # Extract the first word of "gcc", so it can be a program name with args.
942 set dummy gcc; ac_word=$2
943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
944 echo "configure:945: checking for $ac_word" >&5
945 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
947 else
948 if test -n "$CC"; then
949 ac_cv_prog_CC="$CC" # Let the user override the test.
950 else
951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
952 ac_dummy="$PATH"
953 for ac_dir in $ac_dummy; do
954 test -z "$ac_dir" && ac_dir=.
955 if test -f $ac_dir/$ac_word; then
956 ac_cv_prog_CC="gcc"
957 break
959 done
960 IFS="$ac_save_ifs"
963 CC="$ac_cv_prog_CC"
964 if test -n "$CC"; then
965 echo "$ac_t""$CC" 1>&6
966 else
967 echo "$ac_t""no" 1>&6
970 if test -z "$CC"; then
971 # Extract the first word of "cc", so it can be a program name with args.
972 set dummy cc; ac_word=$2
973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974 echo "configure:975: checking for $ac_word" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
977 else
978 if test -n "$CC"; then
979 ac_cv_prog_CC="$CC" # Let the user override the test.
980 else
981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
982 ac_prog_rejected=no
983 ac_dummy="$PATH"
984 for ac_dir in $ac_dummy; do
985 test -z "$ac_dir" && ac_dir=.
986 if test -f $ac_dir/$ac_word; then
987 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
988 ac_prog_rejected=yes
989 continue
991 ac_cv_prog_CC="cc"
992 break
994 done
995 IFS="$ac_save_ifs"
996 if test $ac_prog_rejected = yes; then
997 # We found a bogon in the path, so make sure we never use it.
998 set dummy $ac_cv_prog_CC
999 shift
1000 if test $# -gt 0; then
1001 # We chose a different compiler from the bogus one.
1002 # However, it has the same basename, so the bogon will be chosen
1003 # first if we set CC to just the basename; use the full file name.
1004 shift
1005 set dummy "$ac_dir/$ac_word" "$@"
1006 shift
1007 ac_cv_prog_CC="$@"
1012 CC="$ac_cv_prog_CC"
1013 if test -n "$CC"; then
1014 echo "$ac_t""$CC" 1>&6
1015 else
1016 echo "$ac_t""no" 1>&6
1019 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1022 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1023 echo "configure:1024: checking whether we are using GNU C" >&5
1024 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1026 else
1027 cat > conftest.c <<EOF
1028 #ifdef __GNUC__
1029 yes;
1030 #endif
1032 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1033 ac_cv_prog_gcc=yes
1034 else
1035 ac_cv_prog_gcc=no
1039 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1041 if test $ac_cv_prog_gcc = yes; then
1042 GCC=yes
1043 ac_test_CFLAGS="${CFLAGS+set}"
1044 ac_save_CFLAGS="$CFLAGS"
1045 CFLAGS=
1046 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1047 echo "configure:1048: checking whether ${CC-cc} accepts -g" >&5
1048 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1050 else
1051 echo 'void f(){}' > conftest.c
1052 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1053 ac_cv_prog_cc_g=yes
1054 else
1055 ac_cv_prog_cc_g=no
1057 rm -f conftest*
1061 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1062 if test "$ac_test_CFLAGS" = set; then
1063 CFLAGS="$ac_save_CFLAGS"
1064 elif test $ac_cv_prog_cc_g = yes; then
1065 CFLAGS="-g -O2"
1066 else
1067 CFLAGS="-O2"
1069 else
1070 GCC=
1071 test "${CFLAGS+set}" = set || CFLAGS="-g"
1075 # Likewise for AC_PROG_CXX. We can't just call it directly because g++
1076 # will try to link in libstdc++.
1080 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1081 # flags that come in CXX while configuring libstdc++. They're different
1082 # from those used for all other target libraries. If CXX is set in
1083 # the environment, respect that here.
1084 glibcpp_CXX=$CXX
1085 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1087 # Extract the first word of "$ac_prog", so it can be a program name with args.
1088 set dummy $ac_prog; ac_word=$2
1089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1090 echo "configure:1091: checking for $ac_word" >&5
1091 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1093 else
1094 if test -n "$glibcpp_CXX"; then
1095 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1096 else
1097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1098 ac_dummy="$PATH"
1099 for ac_dir in $ac_dummy; do
1100 test -z "$ac_dir" && ac_dir=.
1101 if test -f $ac_dir/$ac_word; then
1102 ac_cv_prog_glibcpp_CXX="$ac_prog"
1103 break
1105 done
1106 IFS="$ac_save_ifs"
1109 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1110 if test -n "$glibcpp_CXX"; then
1111 echo "$ac_t""$glibcpp_CXX" 1>&6
1112 else
1113 echo "$ac_t""no" 1>&6
1116 test -n "$glibcpp_CXX" && break
1117 done
1118 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1121 CXX=$glibcpp_CXX
1122 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1124 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether we are using GNU C++" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1128 else
1129 cat > conftest.C <<EOF
1130 #ifdef __GNUC__
1131 yes;
1132 #endif
1134 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1135 ac_cv_prog_gxx=yes
1136 else
1137 ac_cv_prog_gxx=no
1141 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1143 if test $ac_cv_prog_gxx = yes; then
1144 GXX=yes
1145 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1146 ac_save_CXXFLAGS="$CXXFLAGS"
1147 CXXFLAGS=
1148 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether ${CXX-g++} accepts -g" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1152 else
1153 echo 'void f(){}' > conftest.cc
1154 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1155 ac_cv_prog_cxx_g=yes
1156 else
1157 ac_cv_prog_cxx_g=no
1159 rm -f conftest*
1163 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1164 if test "$ac_test_CXXFLAGS" = set; then
1165 CXXFLAGS="$ac_save_CXXFLAGS"
1166 elif test $ac_cv_prog_cxx_g = yes; then
1167 CXXFLAGS="-g -O2"
1168 else
1169 CXXFLAGS="-O2"
1171 else
1172 GXX=
1173 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1177 # For directory versioning (e.g., headers) and other variables.
1178 echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1179 echo "configure:1180: checking for GCC version number" >&5
1180 gcc_version=`$glibcpp_CXX -dumpversion`
1181 echo "$ac_t""$gcc_version" 1>&6
1183 # For some reason, gettext needs this.
1185 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1186 echo "configure:1187: checking for strerror in -lcposix" >&5
1187 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1190 else
1191 ac_save_LIBS="$LIBS"
1192 LIBS="-lcposix $LIBS"
1193 cat > conftest.$ac_ext <<EOF
1194 #line 1195 "configure"
1195 #include "confdefs.h"
1196 /* Override any gcc2 internal prototype to avoid an error. */
1197 /* We use char because int might match the return type of a gcc2
1198 builtin and then its argument prototype would still apply. */
1199 char strerror();
1201 int main() {
1202 strerror()
1203 ; return 0; }
1205 if { (eval echo configure:1206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1206 rm -rf conftest*
1207 eval "ac_cv_lib_$ac_lib_var=yes"
1208 else
1209 echo "configure: failed program was:" >&5
1210 cat conftest.$ac_ext >&5
1211 rm -rf conftest*
1212 eval "ac_cv_lib_$ac_lib_var=no"
1214 rm -f conftest*
1215 LIBS="$ac_save_LIBS"
1218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1219 echo "$ac_t""yes" 1>&6
1220 LIBS="$LIBS -lcposix"
1221 else
1222 echo "$ac_t""no" 1>&6
1228 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1229 set dummy ${ac_tool_prefix}as; ac_word=$2
1230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1231 echo "configure:1232: checking for $ac_word" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1234 else
1235 if test -n "$AS"; then
1236 ac_cv_prog_AS="$AS" # Let the user override the test.
1237 else
1238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1239 ac_dummy="$PATH"
1240 for ac_dir in $ac_dummy; do
1241 test -z "$ac_dir" && ac_dir=.
1242 if test -f $ac_dir/$ac_word; then
1243 ac_cv_prog_AS="${ac_tool_prefix}as"
1244 break
1246 done
1247 IFS="$ac_save_ifs"
1248 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1251 AS="$ac_cv_prog_AS"
1252 if test -n "$AS"; then
1253 echo "$ac_t""$AS" 1>&6
1254 else
1255 echo "$ac_t""no" 1>&6
1260 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1261 set dummy ${ac_tool_prefix}ar; ac_word=$2
1262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1263 echo "configure:1264: checking for $ac_word" >&5
1264 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1266 else
1267 if test -n "$AR"; then
1268 ac_cv_prog_AR="$AR" # Let the user override the test.
1269 else
1270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1271 ac_dummy="$PATH"
1272 for ac_dir in $ac_dummy; do
1273 test -z "$ac_dir" && ac_dir=.
1274 if test -f $ac_dir/$ac_word; then
1275 ac_cv_prog_AR="${ac_tool_prefix}ar"
1276 break
1278 done
1279 IFS="$ac_save_ifs"
1280 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1283 AR="$ac_cv_prog_AR"
1284 if test -n "$AR"; then
1285 echo "$ac_t""$AR" 1>&6
1286 else
1287 echo "$ac_t""no" 1>&6
1292 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1293 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1295 echo "configure:1296: checking for $ac_word" >&5
1296 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1298 else
1299 if test -n "$RANLIB"; then
1300 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1301 else
1302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1303 ac_dummy="$PATH"
1304 for ac_dir in $ac_dummy; do
1305 test -z "$ac_dir" && ac_dir=.
1306 if test -f $ac_dir/$ac_word; then
1307 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1308 break
1310 done
1311 IFS="$ac_save_ifs"
1314 RANLIB="$ac_cv_prog_RANLIB"
1315 if test -n "$RANLIB"; then
1316 echo "$ac_t""$RANLIB" 1>&6
1317 else
1318 echo "$ac_t""no" 1>&6
1322 if test -z "$ac_cv_prog_RANLIB"; then
1323 if test -n "$ac_tool_prefix"; then
1324 # Extract the first word of "ranlib", so it can be a program name with args.
1325 set dummy ranlib; ac_word=$2
1326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1327 echo "configure:1328: checking for $ac_word" >&5
1328 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1329 echo $ac_n "(cached) $ac_c" 1>&6
1330 else
1331 if test -n "$RANLIB"; then
1332 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1333 else
1334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1335 ac_dummy="$PATH"
1336 for ac_dir in $ac_dummy; do
1337 test -z "$ac_dir" && ac_dir=.
1338 if test -f $ac_dir/$ac_word; then
1339 ac_cv_prog_RANLIB="ranlib"
1340 break
1342 done
1343 IFS="$ac_save_ifs"
1344 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1347 RANLIB="$ac_cv_prog_RANLIB"
1348 if test -n "$RANLIB"; then
1349 echo "$ac_t""$RANLIB" 1>&6
1350 else
1351 echo "$ac_t""no" 1>&6
1354 else
1355 RANLIB="ranlib-not-found-in-path-error"
1359 # Find a good install program. We prefer a C program (faster),
1360 # so one script is as good as another. But avoid the broken or
1361 # incompatible versions:
1362 # SysV /etc/install, /usr/sbin/install
1363 # SunOS /usr/etc/install
1364 # IRIX /sbin/install
1365 # AIX /bin/install
1366 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1367 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1368 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1369 # ./install, which can be erroneously created by make from ./install.sh.
1370 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1371 echo "configure:1372: checking for a BSD compatible install" >&5
1372 if test -z "$INSTALL"; then
1373 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1374 echo $ac_n "(cached) $ac_c" 1>&6
1375 else
1376 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1377 for ac_dir in $PATH; do
1378 # Account for people who put trailing slashes in PATH elements.
1379 case "$ac_dir/" in
1380 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1382 # OSF1 and SCO ODT 3.0 have their own names for install.
1383 # Don't use installbsd from OSF since it installs stuff as root
1384 # by default.
1385 for ac_prog in ginstall scoinst install; do
1386 if test -f $ac_dir/$ac_prog; then
1387 if test $ac_prog = install &&
1388 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1389 # AIX install. It has an incompatible calling convention.
1391 else
1392 ac_cv_path_install="$ac_dir/$ac_prog -c"
1393 break 2
1396 done
1398 esac
1399 done
1400 IFS="$ac_save_IFS"
1403 if test "${ac_cv_path_install+set}" = set; then
1404 INSTALL="$ac_cv_path_install"
1405 else
1406 # As a last resort, use the slow shell script. We don't cache a
1407 # path for INSTALL within a source directory, because that will
1408 # break other packages using the cache if that directory is
1409 # removed, or if the path is relative.
1410 INSTALL="$ac_install_sh"
1413 echo "$ac_t""$INSTALL" 1>&6
1415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1416 # It thinks the first close brace ends the variable substitution.
1417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1419 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1421 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1424 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1425 echo "configure:1426: checking whether to enable maintainer-specific portions of Makefiles" >&5
1426 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1427 if test "${enable_maintainer_mode+set}" = set; then
1428 enableval="$enable_maintainer_mode"
1429 USE_MAINTAINER_MODE=$enableval
1430 else
1431 USE_MAINTAINER_MODE=no
1434 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1437 if test $USE_MAINTAINER_MODE = yes; then
1438 MAINTAINER_MODE_TRUE=
1439 MAINTAINER_MODE_FALSE='#'
1440 else
1441 MAINTAINER_MODE_TRUE='#'
1442 MAINTAINER_MODE_FALSE=
1444 MAINT=$MAINTAINER_MODE_TRUE
1448 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1449 # at least currently, we never actually build a program, so we never
1450 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1451 # fails, because we are probably configuring with a cross compiler
1452 # which can't create executables. So we include AC_EXEEXT to keep
1453 # automake happy, but we don't execute it, since we don't care about
1454 # the result.
1455 if false; then
1456 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1457 # to nothing, so nothing would remain between `then' and `fi' if it
1458 # were not for the `:' below.
1462 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1463 echo "configure:1464: checking for executable suffix" >&5
1464 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1466 else
1467 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1468 ac_cv_exeext=.exe
1469 else
1470 rm -f conftest*
1471 echo 'int main () { return 0; }' > conftest.$ac_ext
1472 ac_cv_exeext=
1473 if { (eval echo configure:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1474 for file in conftest.*; do
1475 case $file in
1476 *.c | *.o | *.obj) ;;
1477 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1478 esac
1479 done
1480 else
1481 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1483 rm -f conftest*
1484 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1488 EXEEXT=""
1489 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1490 echo "$ac_t""${ac_cv_exeext}" 1>&6
1491 ac_exeext=$EXEEXT
1495 case ${glibcpp_basedir} in
1496 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1497 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1498 esac
1500 # Find platform-specific directories containing configuration info. In
1501 # addition to possibly modifying the same flags, it also sets up symlinks.
1503 . ${glibcpp_basedir}/configure.host
1504 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1505 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1509 am__api_version="1.4"
1510 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1511 echo "configure:1512: checking whether build environment is sane" >&5
1512 # Just in case
1513 sleep 1
1514 echo timestamp > conftestfile
1515 # Do `set' in a subshell so we don't clobber the current shell's
1516 # arguments. Must try -L first in case configure is actually a
1517 # symlink; some systems play weird games with the mod time of symlinks
1518 # (eg FreeBSD returns the mod time of the symlink's containing
1519 # directory).
1520 if (
1521 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1522 if test "$*" = "X"; then
1523 # -L didn't work.
1524 set X `ls -t $srcdir/configure conftestfile`
1526 if test "$*" != "X $srcdir/configure conftestfile" \
1527 && test "$*" != "X conftestfile $srcdir/configure"; then
1529 # If neither matched, then we have a broken ls. This can happen
1530 # if, for instance, CONFIG_SHELL is bash and it inherits a
1531 # broken ls alias from the environment. This has actually
1532 # happened. Such a system could not be considered "sane".
1533 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1534 alias in your environment" 1>&2; exit 1; }
1537 test "$2" = conftestfile
1539 then
1540 # Ok.
1542 else
1543 { echo "configure: error: newly created file is older than distributed files!
1544 Check your system clock" 1>&2; exit 1; }
1546 rm -f conftest*
1547 echo "$ac_t""yes" 1>&6
1548 if test "$program_transform_name" = s,x,x,; then
1549 program_transform_name=
1550 else
1551 # Double any \ or $. echo might interpret backslashes.
1552 cat <<\EOF_SED > conftestsed
1553 s,\\,\\\\,g; s,\$,$$,g
1554 EOF_SED
1555 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1556 rm -f conftestsed
1558 test "$program_prefix" != NONE &&
1559 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1560 # Use a double $ so make ignores it.
1561 test "$program_suffix" != NONE &&
1562 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1564 # sed with no file args requires a program.
1565 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1567 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1568 echo "configure:1569: checking whether ${MAKE-make} sets \${MAKE}" >&5
1569 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1570 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1572 else
1573 cat > conftestmake <<\EOF
1574 all:
1575 @echo 'ac_maketemp="${MAKE}"'
1577 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1578 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1579 if test -n "$ac_maketemp"; then
1580 eval ac_cv_prog_make_${ac_make}_set=yes
1581 else
1582 eval ac_cv_prog_make_${ac_make}_set=no
1584 rm -f conftestmake
1586 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1587 echo "$ac_t""yes" 1>&6
1588 SET_MAKE=
1589 else
1590 echo "$ac_t""no" 1>&6
1591 SET_MAKE="MAKE=${MAKE-make}"
1595 PACKAGE=$PACKAGE
1597 VERSION=$gcc_version
1599 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1600 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1602 cat >> confdefs.h <<EOF
1603 #define PACKAGE "$PACKAGE"
1606 cat >> confdefs.h <<EOF
1607 #define VERSION "$VERSION"
1612 missing_dir=`cd $ac_aux_dir && pwd`
1613 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1614 echo "configure:1615: checking for working aclocal-${am__api_version}" >&5
1615 # Run test in a subshell; some versions of sh will print an error if
1616 # an executable is not found, even if stderr is redirected.
1617 # Redirect stdin to placate older versions of autoconf. Sigh.
1618 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1619 ACLOCAL=aclocal-${am__api_version}
1620 echo "$ac_t""found" 1>&6
1621 else
1622 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1623 echo "$ac_t""missing" 1>&6
1626 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1627 echo "configure:1628: checking for working autoconf" >&5
1628 # Run test in a subshell; some versions of sh will print an error if
1629 # an executable is not found, even if stderr is redirected.
1630 # Redirect stdin to placate older versions of autoconf. Sigh.
1631 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1632 AUTOCONF=autoconf
1633 echo "$ac_t""found" 1>&6
1634 else
1635 AUTOCONF="$missing_dir/missing autoconf"
1636 echo "$ac_t""missing" 1>&6
1639 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1640 echo "configure:1641: checking for working automake-${am__api_version}" >&5
1641 # Run test in a subshell; some versions of sh will print an error if
1642 # an executable is not found, even if stderr is redirected.
1643 # Redirect stdin to placate older versions of autoconf. Sigh.
1644 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1645 AUTOMAKE=automake-${am__api_version}
1646 echo "$ac_t""found" 1>&6
1647 else
1648 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1649 echo "$ac_t""missing" 1>&6
1652 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1653 echo "configure:1654: checking for working autoheader" >&5
1654 # Run test in a subshell; some versions of sh will print an error if
1655 # an executable is not found, even if stderr is redirected.
1656 # Redirect stdin to placate older versions of autoconf. Sigh.
1657 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1658 AUTOHEADER=autoheader
1659 echo "$ac_t""found" 1>&6
1660 else
1661 AUTOHEADER="$missing_dir/missing autoheader"
1662 echo "$ac_t""missing" 1>&6
1665 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1666 echo "configure:1667: checking for working makeinfo" >&5
1667 # Run test in a subshell; some versions of sh will print an error if
1668 # an executable is not found, even if stderr is redirected.
1669 # Redirect stdin to placate older versions of autoconf. Sigh.
1670 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1671 MAKEINFO=makeinfo
1672 echo "$ac_t""found" 1>&6
1673 else
1674 MAKEINFO="$missing_dir/missing makeinfo"
1675 echo "$ac_t""missing" 1>&6
1684 # Check whether --enable-shared or --disable-shared was given.
1685 if test "${enable_shared+set}" = set; then
1686 enableval="$enable_shared"
1687 p=${PACKAGE-default}
1688 case $enableval in
1689 yes) enable_shared=yes ;;
1690 no) enable_shared=no ;;
1692 enable_shared=no
1693 # Look at the argument we got. We use all the common list separators.
1694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1695 for pkg in $enableval; do
1696 if test "X$pkg" = "X$p"; then
1697 enable_shared=yes
1699 done
1700 IFS="$ac_save_ifs"
1702 esac
1703 else
1704 enable_shared=yes
1707 # Check whether --enable-static or --disable-static was given.
1708 if test "${enable_static+set}" = set; then
1709 enableval="$enable_static"
1710 p=${PACKAGE-default}
1711 case $enableval in
1712 yes) enable_static=yes ;;
1713 no) enable_static=no ;;
1715 enable_static=no
1716 # Look at the argument we got. We use all the common list separators.
1717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1718 for pkg in $enableval; do
1719 if test "X$pkg" = "X$p"; then
1720 enable_static=yes
1722 done
1723 IFS="$ac_save_ifs"
1725 esac
1726 else
1727 enable_static=yes
1730 # Check whether --enable-fast-install or --disable-fast-install was given.
1731 if test "${enable_fast_install+set}" = set; then
1732 enableval="$enable_fast_install"
1733 p=${PACKAGE-default}
1734 case $enableval in
1735 yes) enable_fast_install=yes ;;
1736 no) enable_fast_install=no ;;
1738 enable_fast_install=no
1739 # Look at the argument we got. We use all the common list separators.
1740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1741 for pkg in $enableval; do
1742 if test "X$pkg" = "X$p"; then
1743 enable_fast_install=yes
1745 done
1746 IFS="$ac_save_ifs"
1748 esac
1749 else
1750 enable_fast_install=yes
1753 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1754 if test "${with_gnu_ld+set}" = set; then
1755 withval="$with_gnu_ld"
1756 test "$withval" = no || with_gnu_ld=yes
1757 else
1758 with_gnu_ld=no
1761 ac_prog=ld
1762 if test "$GCC" = yes; then
1763 # Check if gcc -print-prog-name=ld gives a path.
1764 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1765 echo "configure:1766: checking for ld used by GCC" >&5
1766 case $host in
1767 *-*-mingw*)
1768 # gcc leaves a trailing carriage return which upsets mingw
1769 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1771 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1772 esac
1773 case $ac_prog in
1774 # Accept absolute paths.
1775 [\\/]* | [A-Za-z]:[\\/]*)
1776 re_direlt='/[^/][^/]*/\.\./'
1777 # Canonicalize the path of ld
1778 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1779 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1780 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1781 done
1782 test -z "$LD" && LD="$ac_prog"
1785 # If it fails, then pretend we aren't using GCC.
1786 ac_prog=ld
1789 # If it is relative, then search for the first ld in PATH.
1790 with_gnu_ld=unknown
1792 esac
1793 elif test "$with_gnu_ld" = yes; then
1794 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1795 echo "configure:1796: checking for GNU ld" >&5
1796 else
1797 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1798 echo "configure:1799: checking for non-GNU ld" >&5
1800 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1802 else
1803 if test -z "$LD"; then
1804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1805 for ac_dir in $PATH; do
1806 test -z "$ac_dir" && ac_dir=.
1807 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1808 lt_cv_path_LD="$ac_dir/$ac_prog"
1809 # Check to see if the program is GNU ld. I'd rather use --version,
1810 # but apparently some GNU ld's only accept -v.
1811 # Break only if it was the GNU/non-GNU ld that we prefer.
1812 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1813 test "$with_gnu_ld" != no && break
1814 else
1815 test "$with_gnu_ld" != yes && break
1818 done
1819 IFS="$ac_save_ifs"
1820 else
1821 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1825 LD="$lt_cv_path_LD"
1826 if test -n "$LD"; then
1827 echo "$ac_t""$LD" 1>&6
1828 else
1829 echo "$ac_t""no" 1>&6
1831 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1832 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1833 echo "configure:1834: checking if the linker ($LD) is GNU ld" >&5
1834 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1836 else
1837 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1838 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1839 lt_cv_prog_gnu_ld=yes
1840 else
1841 lt_cv_prog_gnu_ld=no
1845 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1846 with_gnu_ld=$lt_cv_prog_gnu_ld
1849 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1850 echo "configure:1851: checking for $LD option to reload object files" >&5
1851 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1852 echo $ac_n "(cached) $ac_c" 1>&6
1853 else
1854 lt_cv_ld_reload_flag='-r'
1857 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1858 reload_flag=$lt_cv_ld_reload_flag
1859 test -n "$reload_flag" && reload_flag=" $reload_flag"
1861 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1862 echo "configure:1863: checking for BSD-compatible nm" >&5
1863 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1865 else
1866 if test -n "$NM"; then
1867 # Let the user override the test.
1868 lt_cv_path_NM="$NM"
1869 else
1870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1871 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1872 test -z "$ac_dir" && ac_dir=.
1873 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1874 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1875 # Check to see if the nm accepts a BSD-compat flag.
1876 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1877 # nm: unknown option "B" ignored
1878 # Tru64's nm complains that /dev/null is an invalid object file
1879 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1880 lt_cv_path_NM="$tmp_nm -B"
1881 break
1882 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1883 lt_cv_path_NM="$tmp_nm -p"
1884 break
1885 else
1886 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1887 continue # so that we can try to find one that supports BSD flags
1890 done
1891 IFS="$ac_save_ifs"
1892 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1896 NM="$lt_cv_path_NM"
1897 echo "$ac_t""$NM" 1>&6
1899 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1900 echo "configure:1901: checking how to recognise dependant libraries" >&5
1901 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1903 else
1904 lt_cv_file_magic_cmd='$MAGIC_CMD'
1905 lt_cv_file_magic_test_file=
1906 lt_cv_deplibs_check_method='unknown'
1907 # Need to set the preceding variable on all platforms that support
1908 # interlibrary dependencies.
1909 # 'none' -- dependencies not supported.
1910 # `unknown' -- same as none, but documents that we really don't know.
1911 # 'pass_all' -- all dependencies passed with no checks.
1912 # 'test_compile' -- check by making test program.
1913 # 'file_magic [regex]' -- check by looking for files in library path
1914 # which responds to the $file_magic_cmd with a given egrep regex.
1915 # If you have `file' or equivalent on your system and you're not sure
1916 # whether `pass_all' will *always* work, you probably want this one.
1918 case $host_os in
1919 aix*)
1920 lt_cv_deplibs_check_method=pass_all
1923 beos*)
1924 lt_cv_deplibs_check_method=pass_all
1927 bsdi4*)
1928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1929 lt_cv_file_magic_cmd='/usr/bin/file -L'
1930 lt_cv_file_magic_test_file=/shlib/libc.so
1933 cygwin* | mingw* |pw32*)
1934 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1935 lt_cv_file_magic_cmd='$OBJDUMP -f'
1938 darwin* | rhapsody*)
1939 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1940 lt_cv_file_magic_cmd='/usr/bin/file -L'
1941 case "$host_os" in
1942 rhapsody* | darwin1.012)
1943 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1945 *) # Darwin 1.3 on
1946 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1948 esac
1951 freebsd* )
1952 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1953 case $host_cpu in
1954 i*86 )
1955 # Not sure whether the presence of OpenBSD here was a mistake.
1956 # Let's accept both of them until this is cleared up.
1957 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1958 lt_cv_file_magic_cmd=/usr/bin/file
1959 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1961 esac
1962 else
1963 lt_cv_deplibs_check_method=pass_all
1967 gnu*)
1968 lt_cv_deplibs_check_method=pass_all
1971 hpux10.20*|hpux11*)
1972 case $host_cpu in
1973 hppa*)
1974 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1975 lt_cv_file_magic_cmd=/usr/bin/file
1976 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1978 ia64*)
1979 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1980 lt_cv_file_magic_cmd=/usr/bin/file
1981 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1983 esac
1986 irix5* | irix6*)
1987 case $host_os in
1988 irix5*)
1989 # this will be overridden with pass_all, but let us keep it just in case
1990 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1993 case $LD in
1994 *-32|*"-32 ") libmagic=32-bit;;
1995 *-n32|*"-n32 ") libmagic=N32;;
1996 *-64|*"-64 ") libmagic=64-bit;;
1997 *) libmagic=never-match;;
1998 esac
1999 # this will be overridden with pass_all, but let us keep it just in case
2000 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2002 esac
2003 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2004 lt_cv_deplibs_check_method=pass_all
2007 # This must be Linux ELF.
2008 linux-gnu*)
2009 case $host_cpu in
2010 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2011 lt_cv_deplibs_check_method=pass_all ;;
2013 # glibc up to 2.1.1 does not perform some relocations on ARM
2014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2015 esac
2016 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2019 netbsd*)
2020 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2021 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2022 else
2023 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2027 newsos6)
2028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2029 lt_cv_file_magic_cmd=/usr/bin/file
2030 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2033 osf3* | osf4* | osf5*)
2034 # this will be overridden with pass_all, but let us keep it just in case
2035 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2036 lt_cv_file_magic_test_file=/shlib/libc.so
2037 lt_cv_deplibs_check_method=pass_all
2040 sco3.2v5*)
2041 lt_cv_deplibs_check_method=pass_all
2044 solaris*)
2045 lt_cv_deplibs_check_method=pass_all
2046 lt_cv_file_magic_test_file=/lib/libc.so
2049 sysv5uw[78]* | sysv4*uw2*)
2050 lt_cv_deplibs_check_method=pass_all
2053 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2054 case $host_vendor in
2055 ncr)
2056 lt_cv_deplibs_check_method=pass_all
2058 motorola)
2059 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]'
2060 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2062 esac
2064 esac
2068 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2069 file_magic_cmd=$lt_cv_file_magic_cmd
2070 deplibs_check_method=$lt_cv_deplibs_check_method
2072 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2073 echo "configure:2074: checking for object suffix" >&5
2074 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2076 else
2077 rm -f conftest*
2078 echo 'int i = 1;' > conftest.$ac_ext
2079 if { (eval echo configure:2080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2080 for ac_file in conftest.*; do
2081 case $ac_file in
2082 *.c) ;;
2083 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2084 esac
2085 done
2086 else
2087 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2089 rm -f conftest*
2092 echo "$ac_t""$ac_cv_objext" 1>&6
2093 OBJEXT=$ac_cv_objext
2094 ac_objext=$ac_cv_objext
2096 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2098 # Only perform the check for file, if the check method requires it
2099 case $deplibs_check_method in
2100 file_magic*)
2101 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2102 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2103 echo "configure:2104: checking for ${ac_tool_prefix}file" >&5
2104 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2106 else
2107 case $MAGIC_CMD in
2109 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2111 ?:/*)
2112 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2115 ac_save_MAGIC_CMD="$MAGIC_CMD"
2116 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2117 ac_dummy="/usr/bin:$PATH"
2118 for ac_dir in $ac_dummy; do
2119 test -z "$ac_dir" && ac_dir=.
2120 if test -f $ac_dir/${ac_tool_prefix}file; then
2121 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2122 if test -n "$file_magic_test_file"; then
2123 case $deplibs_check_method in
2124 "file_magic "*)
2125 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2126 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2127 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2128 egrep "$file_magic_regex" > /dev/null; then
2130 else
2131 cat <<EOF 1>&2
2133 *** Warning: the command libtool uses to detect shared libraries,
2134 *** $file_magic_cmd, produces output that libtool cannot recognize.
2135 *** The result is that libtool may fail to recognize shared libraries
2136 *** as such. This will affect the creation of libtool libraries that
2137 *** depend on shared libraries, but programs linked with such libtool
2138 *** libraries will work regardless of this problem. Nevertheless, you
2139 *** may want to report the problem to your system manager and/or to
2140 *** bug-libtool@gnu.org
2143 fi ;;
2144 esac
2146 break
2148 done
2149 IFS="$ac_save_ifs"
2150 MAGIC_CMD="$ac_save_MAGIC_CMD"
2152 esac
2155 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2156 if test -n "$MAGIC_CMD"; then
2157 echo "$ac_t""$MAGIC_CMD" 1>&6
2158 else
2159 echo "$ac_t""no" 1>&6
2162 if test -z "$lt_cv_path_MAGIC_CMD"; then
2163 if test -n "$ac_tool_prefix"; then
2164 echo $ac_n "checking for file""... $ac_c" 1>&6
2165 echo "configure:2166: checking for file" >&5
2166 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2168 else
2169 case $MAGIC_CMD in
2171 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2173 ?:/*)
2174 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2177 ac_save_MAGIC_CMD="$MAGIC_CMD"
2178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2179 ac_dummy="/usr/bin:$PATH"
2180 for ac_dir in $ac_dummy; do
2181 test -z "$ac_dir" && ac_dir=.
2182 if test -f $ac_dir/file; then
2183 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2184 if test -n "$file_magic_test_file"; then
2185 case $deplibs_check_method in
2186 "file_magic "*)
2187 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2188 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2189 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2190 egrep "$file_magic_regex" > /dev/null; then
2192 else
2193 cat <<EOF 1>&2
2195 *** Warning: the command libtool uses to detect shared libraries,
2196 *** $file_magic_cmd, produces output that libtool cannot recognize.
2197 *** The result is that libtool may fail to recognize shared libraries
2198 *** as such. This will affect the creation of libtool libraries that
2199 *** depend on shared libraries, but programs linked with such libtool
2200 *** libraries will work regardless of this problem. Nevertheless, you
2201 *** may want to report the problem to your system manager and/or to
2202 *** bug-libtool@gnu.org
2205 fi ;;
2206 esac
2208 break
2210 done
2211 IFS="$ac_save_ifs"
2212 MAGIC_CMD="$ac_save_MAGIC_CMD"
2214 esac
2217 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2218 if test -n "$MAGIC_CMD"; then
2219 echo "$ac_t""$MAGIC_CMD" 1>&6
2220 else
2221 echo "$ac_t""no" 1>&6
2224 else
2225 MAGIC_CMD=:
2231 esac
2233 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2234 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_word" >&5
2237 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2239 else
2240 if test -n "$RANLIB"; then
2241 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2242 else
2243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2244 ac_dummy="$PATH"
2245 for ac_dir in $ac_dummy; do
2246 test -z "$ac_dir" && ac_dir=.
2247 if test -f $ac_dir/$ac_word; then
2248 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2249 break
2251 done
2252 IFS="$ac_save_ifs"
2255 RANLIB="$ac_cv_prog_RANLIB"
2256 if test -n "$RANLIB"; then
2257 echo "$ac_t""$RANLIB" 1>&6
2258 else
2259 echo "$ac_t""no" 1>&6
2263 if test -z "$ac_cv_prog_RANLIB"; then
2264 if test -n "$ac_tool_prefix"; then
2265 # Extract the first word of "ranlib", so it can be a program name with args.
2266 set dummy ranlib; ac_word=$2
2267 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2268 echo "configure:2269: checking for $ac_word" >&5
2269 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2271 else
2272 if test -n "$RANLIB"; then
2273 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2274 else
2275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2276 ac_dummy="$PATH"
2277 for ac_dir in $ac_dummy; do
2278 test -z "$ac_dir" && ac_dir=.
2279 if test -f $ac_dir/$ac_word; then
2280 ac_cv_prog_RANLIB="ranlib"
2281 break
2283 done
2284 IFS="$ac_save_ifs"
2285 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2288 RANLIB="$ac_cv_prog_RANLIB"
2289 if test -n "$RANLIB"; then
2290 echo "$ac_t""$RANLIB" 1>&6
2291 else
2292 echo "$ac_t""no" 1>&6
2295 else
2296 RANLIB=":"
2300 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2301 set dummy ${ac_tool_prefix}strip; ac_word=$2
2302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2303 echo "configure:2304: checking for $ac_word" >&5
2304 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2306 else
2307 if test -n "$STRIP"; then
2308 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2309 else
2310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2311 ac_dummy="$PATH"
2312 for ac_dir in $ac_dummy; do
2313 test -z "$ac_dir" && ac_dir=.
2314 if test -f $ac_dir/$ac_word; then
2315 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2316 break
2318 done
2319 IFS="$ac_save_ifs"
2322 STRIP="$ac_cv_prog_STRIP"
2323 if test -n "$STRIP"; then
2324 echo "$ac_t""$STRIP" 1>&6
2325 else
2326 echo "$ac_t""no" 1>&6
2330 if test -z "$ac_cv_prog_STRIP"; then
2331 if test -n "$ac_tool_prefix"; then
2332 # Extract the first word of "strip", so it can be a program name with args.
2333 set dummy strip; ac_word=$2
2334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2335 echo "configure:2336: checking for $ac_word" >&5
2336 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2337 echo $ac_n "(cached) $ac_c" 1>&6
2338 else
2339 if test -n "$STRIP"; then
2340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2341 else
2342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2343 ac_dummy="$PATH"
2344 for ac_dir in $ac_dummy; do
2345 test -z "$ac_dir" && ac_dir=.
2346 if test -f $ac_dir/$ac_word; then
2347 ac_cv_prog_STRIP="strip"
2348 break
2350 done
2351 IFS="$ac_save_ifs"
2352 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2355 STRIP="$ac_cv_prog_STRIP"
2356 if test -n "$STRIP"; then
2357 echo "$ac_t""$STRIP" 1>&6
2358 else
2359 echo "$ac_t""no" 1>&6
2362 else
2363 STRIP=":"
2368 # Check for any special flags to pass to ltconfig.
2369 libtool_flags="--cache-file=$cache_file"
2370 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2371 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2372 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2373 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2374 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2375 libtool_flags="$libtool_flags --enable-dlopen"
2377 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2378 if test "${enable_libtool_lock+set}" = set; then
2379 enableval="$enable_libtool_lock"
2383 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2384 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2386 # Check whether --with-pic or --without-pic was given.
2387 if test "${with_pic+set}" = set; then
2388 withval="$with_pic"
2389 pic_mode="$withval"
2390 else
2391 pic_mode=default
2394 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2395 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2397 # Some flags need to be propagated to the compiler or linker for good
2398 # libtool support.
2399 case $host in
2400 *-*-irix6*)
2401 # Find out which ABI we are using.
2402 echo '#line 2403 "configure"' > conftest.$ac_ext
2403 if { (eval echo configure:2404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2404 if test "$lt_cv_prog_gnu_ld" = yes; then
2405 case `/usr/bin/file conftest.$ac_objext` in
2406 *32-bit*)
2407 LD="${LD-ld} -melf32bsmip"
2409 *N32*)
2410 LD="${LD-ld} -melf32bmipn32"
2412 *64-bit*)
2413 LD="${LD-ld} -melf64bmip"
2415 esac
2416 else
2417 case `/usr/bin/file conftest.$ac_objext` in
2418 *32-bit*)
2419 LD="${LD-ld} -32"
2421 *N32*)
2422 LD="${LD-ld} -n32"
2424 *64-bit*)
2425 LD="${LD-ld} -64"
2427 esac
2430 rm -rf conftest*
2433 ia64-*-hpux*)
2434 # Find out which ABI we are using.
2435 echo 'int i;' > conftest.$ac_ext
2436 if { (eval echo configure:2437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2437 case "`/usr/bin/file conftest.o`" in
2438 *ELF-32*)
2439 HPUX_IA64_MODE="32"
2441 *ELF-64*)
2442 HPUX_IA64_MODE="64"
2444 esac
2446 rm -rf conftest*
2449 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2450 # Find out which ABI we are using.
2451 echo 'int i;' > conftest.$ac_ext
2452 if { (eval echo configure:2453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2453 case "`/usr/bin/file conftest.o`" in
2454 *32-bit*)
2455 case $host in
2456 x86_64-*linux*)
2457 LD="${LD-ld} -m elf_i386"
2459 ppc64-*linux*)
2460 LD="${LD-ld} -m elf32ppclinux"
2462 s390x-*linux*)
2463 LD="${LD-ld} -m elf_s390"
2465 sparc64-*linux*)
2466 LD="${LD-ld} -m elf32_sparc"
2468 esac
2470 *64-bit*)
2471 case $host in
2472 x86_64-*linux*)
2473 LD="${LD-ld} -m elf_x86_64"
2475 ppc*-*linux*|powerpc*-*linux*)
2476 LD="${LD-ld} -m elf64ppc"
2478 s390*-*linux*)
2479 LD="${LD-ld} -m elf64_s390"
2481 sparc*-*linux*)
2482 LD="${LD-ld} -m elf64_sparc"
2484 esac
2486 esac
2488 rm -rf conftest*
2491 *-*-sco3.2v5*)
2492 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2493 SAVE_CFLAGS="$CFLAGS"
2494 CFLAGS="$CFLAGS -belf"
2495 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2496 echo "configure:2497: checking whether the C compiler needs -belf" >&5
2497 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2498 echo $ac_n "(cached) $ac_c" 1>&6
2499 else
2501 ac_ext=c
2502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2503 ac_cpp='$CPP $CPPFLAGS'
2504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2506 cross_compiling=$ac_cv_prog_cc_cross
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2512 int main() {
2514 ; return 0; }
2516 if { (eval echo configure:2517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2517 rm -rf conftest*
2518 lt_cv_cc_needs_belf=yes
2519 else
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2522 rm -rf conftest*
2523 lt_cv_cc_needs_belf=no
2525 rm -f conftest*
2526 ac_ext=c
2527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2531 cross_compiling=$ac_cv_prog_cc_cross
2535 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2536 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2537 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2538 CFLAGS="$SAVE_CFLAGS"
2543 esac
2545 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2546 echo "configure:2547: checking how to run the C++ preprocessor" >&5
2547 if test -z "$CXXCPP"; then
2548 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2550 else
2551 ac_ext=C
2552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2553 ac_cpp='$CXXCPP $CPPFLAGS'
2554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2556 cross_compiling=$ac_cv_prog_cxx_cross
2557 CXXCPP="${CXX-g++} -E"
2558 cat > conftest.$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2561 #include <stdlib.h>
2563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2564 { (eval echo configure:2565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2566 if test -z "$ac_err"; then
2568 else
2569 echo "$ac_err" >&5
2570 echo "configure: failed program was:" >&5
2571 cat conftest.$ac_ext >&5
2572 rm -rf conftest*
2573 CXXCPP=/lib/cpp
2575 rm -f conftest*
2576 ac_cv_prog_CXXCPP="$CXXCPP"
2577 ac_ext=c
2578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2579 ac_cpp='$CPP $CPPFLAGS'
2580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2582 cross_compiling=$ac_cv_prog_cc_cross
2585 CXXCPP="$ac_cv_prog_CXXCPP"
2586 echo "$ac_t""$CXXCPP" 1>&6
2589 # Save cache, so that ltconfig can load it
2590 cat > confcache <<\EOF
2591 # This file is a shell script that caches the results of configure
2592 # tests run on this system so they can be shared between configure
2593 # scripts and configure runs. It is not useful on other systems.
2594 # If it contains results you don't want to keep, you may remove or edit it.
2596 # By default, configure uses ./config.cache as the cache file,
2597 # creating it if it does not exist already. You can give configure
2598 # the --cache-file=FILE option to use a different cache file; that is
2599 # what configure does when it calls configure scripts in
2600 # subdirectories, so they share the cache.
2601 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2602 # config.status only pays attention to the cache file if you give it the
2603 # --recheck option to rerun configure.
2606 # The following way of writing the cache mishandles newlines in values,
2607 # but we know of no workaround that is simple, portable, and efficient.
2608 # So, don't put newlines in cache variables' values.
2609 # Ultrix sh set writes to stderr and can't be redirected directly,
2610 # and sets the high bit in the cache file unless we assign to the vars.
2611 (set) 2>&1 |
2612 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2613 *ac_space=\ *)
2614 # `set' does not quote correctly, so add quotes (double-quote substitution
2615 # turns \\\\ into \\, and sed turns \\ into \).
2616 sed -n \
2617 -e "s/'/'\\\\''/g" \
2618 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2621 # `set' quotes correctly as required by POSIX, so do not add quotes.
2622 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2624 esac >> confcache
2625 if cmp -s $cache_file confcache; then
2627 else
2628 if test -w $cache_file; then
2629 echo "updating cache $cache_file"
2630 cat confcache > $cache_file
2631 else
2632 echo "not updating unwritable cache $cache_file"
2635 rm -f confcache
2638 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2639 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2640 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2641 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2642 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2643 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2644 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2645 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2646 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2647 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2649 # Reload cache, that may have been modified by ltconfig
2650 if test -r "$cache_file"; then
2651 echo "loading cache $cache_file"
2652 . $cache_file
2653 else
2654 echo "creating cache $cache_file"
2655 > $cache_file
2659 # This can be used to rebuild libtool when needed
2660 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2662 # Always use our own libtool.
2663 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2665 # Redirect the config.log output again, so that the ltconfig log is not
2666 # clobbered by the next message.
2667 exec 5>>./config.log
2671 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2672 lt_save_CC="$CC"
2673 lt_save_CFLAGS="$CFLAGS"
2674 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2675 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2676 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2677 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2678 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2679 deplibs_check_method="$deplibs_check_method" \
2680 file_magic_cmd="$file_magic_cmd" \
2681 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2682 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2683 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2684 CC="$lt_save_CC"
2685 CFLAGS="$lt_save_CFLAGS"
2687 # Redirect the config.log output again, so that the ltconfig log is not
2688 # clobbered by the next message.
2689 exec 5>>./config.log
2699 # Check for c++ or library specific bits that don't require linking.
2700 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2701 echo "configure:2702: checking for GNU make" >&5
2702 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2703 echo $ac_n "(cached) $ac_c" 1>&6
2704 else
2705 _cv_gnu_make_command='' ;
2706 for a in "${MAKE-make}" make gmake gnumake ; do
2707 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2708 then
2709 _cv_gnu_make_command=$a ;
2710 break;
2712 done ;
2716 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2717 if test "x$_cv_gnu_make_command" != "x" ; then
2718 ifGNUmake='' ;
2719 else
2720 ifGNUmake='#' ;
2724 #GLIBCPP_CHECK_COMPILER_VERSION
2726 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2727 ac_save_CXXFLAGS="$CXXFLAGS"
2728 CXXFLAGS='-Werror -Winvalid-pch -Wno-deprecated -x c++-header'
2730 echo $ac_n "checking for compiler that seems to compile .gch files""... $ac_c" 1>&6
2731 echo "configure:2732: checking for compiler that seems to compile .gch files" >&5
2732 if test x${glibcpp_pch_comp+set} != xset; then
2733 if eval "test \"`echo '$''{'glibcpp_pch_comp'+set}'`\" = set"; then
2734 echo $ac_n "(cached) $ac_c" 1>&6
2735 else
2738 ac_ext=C
2739 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2740 ac_cpp='$CXXCPP $CPPFLAGS'
2741 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2742 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2743 cross_compiling=$ac_cv_prog_cxx_cross
2745 cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2748 #include <math.h>
2750 int main() {
2751 (0);
2752 ; return 0; }
2754 if { (eval echo configure:2755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2755 rm -rf conftest*
2756 glibcpp_pch_comp=yes
2757 else
2758 echo "configure: failed program was:" >&5
2759 cat conftest.$ac_ext >&5
2760 rm -rf conftest*
2761 glibcpp_pch_comp=no
2763 rm -f conftest*
2764 ac_ext=c
2765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2766 ac_cpp='$CPP $CPPFLAGS'
2767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2769 cross_compiling=$ac_cv_prog_cc_cross
2775 echo "$ac_t""$glibcpp_pch_comp" 1>&6
2777 CXXFLAGS="$ac_save_CXXFLAGS"
2780 if test "$glibcpp_pch_comp" = yes; then
2781 GLIBCPP_BUILD_PCH_TRUE=
2782 GLIBCPP_BUILD_PCH_FALSE='#'
2783 else
2784 GLIBCPP_BUILD_PCH_TRUE='#'
2785 GLIBCPP_BUILD_PCH_FALSE=
2789 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2790 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2791 echo "configure:2792: checking how to run the C preprocessor" >&5
2792 # On Suns, sometimes $CPP names a directory.
2793 if test -n "$CPP" && test -d "$CPP"; then
2794 CPP=
2796 if test -z "$CPP"; then
2797 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2798 echo $ac_n "(cached) $ac_c" 1>&6
2799 else
2800 # This must be in double quotes, not single quotes, because CPP may get
2801 # substituted into the Makefile and "${CC-cc}" will confuse make.
2802 CPP="${CC-cc} -E"
2803 # On the NeXT, cc -E runs the code through the compiler's parser,
2804 # not just through cpp.
2805 cat > conftest.$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2808 #include <assert.h>
2809 Syntax Error
2811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2812 { (eval echo configure:2813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2814 if test -z "$ac_err"; then
2816 else
2817 echo "$ac_err" >&5
2818 echo "configure: failed program was:" >&5
2819 cat conftest.$ac_ext >&5
2820 rm -rf conftest*
2821 CPP="${CC-cc} -E -traditional-cpp"
2822 cat > conftest.$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2825 #include <assert.h>
2826 Syntax Error
2828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2829 { (eval echo configure:2830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2831 if test -z "$ac_err"; then
2833 else
2834 echo "$ac_err" >&5
2835 echo "configure: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2837 rm -rf conftest*
2838 CPP="${CC-cc} -nologo -E"
2839 cat > conftest.$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2842 #include <assert.h>
2843 Syntax Error
2845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2846 { (eval echo configure:2847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2848 if test -z "$ac_err"; then
2850 else
2851 echo "$ac_err" >&5
2852 echo "configure: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2854 rm -rf conftest*
2855 CPP=/lib/cpp
2857 rm -f conftest*
2859 rm -f conftest*
2861 rm -f conftest*
2862 ac_cv_prog_CPP="$CPP"
2864 CPP="$ac_cv_prog_CPP"
2865 else
2866 ac_cv_prog_CPP="$CPP"
2868 echo "$ac_t""$CPP" 1>&6
2871 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2872 echo "configure:2873: checking for cstdio to use" >&5
2873 # Check whether --enable-cstdio or --disable-cstdio was given.
2874 if test "${enable_cstdio+set}" = set; then
2875 enableval="$enable_cstdio"
2876 if test x$enable_cstdio = xno; then
2877 enable_cstdio=stdio
2879 else
2880 enable_cstdio=stdio
2884 enable_cstdio_flag=$enable_cstdio
2886 case x${enable_cstdio_flag} in
2887 xlibio)
2888 CSTDIO_H=config/io/c_io_libio.h
2889 BASIC_FILE_H=config/io/basic_file_libio.h
2890 BASIC_FILE_CC=config/io/basic_file_libio.cc
2891 echo "$ac_t""libio" 1>&6
2893 # see if we are on a system with libio native (ie, linux)
2894 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2895 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2896 echo "configure:2897: checking for libio.h" >&5
2897 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2898 echo $ac_n "(cached) $ac_c" 1>&6
2899 else
2900 cat > conftest.$ac_ext <<EOF
2901 #line 2902 "configure"
2902 #include "confdefs.h"
2903 #include <libio.h>
2905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2906 { (eval echo configure:2907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2908 if test -z "$ac_err"; then
2909 rm -rf conftest*
2910 eval "ac_cv_header_$ac_safe=yes"
2911 else
2912 echo "$ac_err" >&5
2913 echo "configure: failed program was:" >&5
2914 cat conftest.$ac_ext >&5
2915 rm -rf conftest*
2916 eval "ac_cv_header_$ac_safe=no"
2918 rm -f conftest*
2920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2921 echo "$ac_t""yes" 1>&6
2922 has_libio=yes
2923 else
2924 echo "$ac_t""no" 1>&6
2925 has_libio=no
2929 # Need to check and see what version of glibc is being used. If
2930 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2931 # compile most of libio for linux systems.
2932 if test x$has_libio = x"yes"; then
2933 case "$target" in
2934 *-*-linux*)
2935 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2936 echo "configure:2937: checking for glibc version >= 2.2" >&5
2937 cat > conftest.$ac_ext <<EOF
2938 #line 2939 "configure"
2939 #include "confdefs.h"
2941 #include <features.h>
2942 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2944 #endif
2947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2948 egrep "ok" >/dev/null 2>&1; then
2949 rm -rf conftest*
2950 glibc_satisfactory=yes
2951 else
2952 rm -rf conftest*
2953 glibc_satisfactory=no
2955 rm -f conftest*
2957 echo "$ac_t""$glibc_satisfactory" 1>&6
2959 esac
2961 # XXX at the moment, admit defeat and force the recompilation
2962 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2963 glibc_satisfactory=no
2965 if test x$glibc_satisfactory = x"yes"; then
2966 need_libio=no
2967 need_wlibio=no
2968 else
2969 need_libio=yes
2970 # bkoz XXX need to add checks to enable this
2971 # pme XXX here's a first pass at such a check
2972 if test x$enable_c_mbchar != xno; then
2973 need_wlibio=yes
2974 else
2975 need_wlibio=no
2979 else
2980 # Using libio, but <libio.h> doesn't exist on the target system. . .
2981 need_libio=yes
2982 # bkoz XXX need to add checks to enable this
2983 # pme XXX here's a first pass at such a check
2984 if test x$enable_c_mbchar != xno; then
2985 need_wlibio=yes
2986 else
2987 need_wlibio=no
2991 xstdio | x | xno | xnone | xyes)
2992 # default
2993 CSTDIO_H=config/io/c_io_stdio.h
2994 BASIC_FILE_H=config/io/basic_file_stdio.h
2995 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2996 echo "$ac_t""stdio" 1>&6
2998 # We're not using stdio.
2999 need_libio=no
3000 need_wlibio=no
3003 echo "$enable_cstdio is an unknown io package" 1>&2
3004 exit 1
3006 esac
3011 # 2000-08-04 bkoz hack
3012 CCODECVT_C=config/io/c_io_libio_codecvt.c
3014 # 2000-08-04 bkoz hack
3018 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3019 GLIBCPP_BUILD_LIBIO_TRUE=
3020 GLIBCPP_BUILD_LIBIO_FALSE='#'
3021 else
3022 GLIBCPP_BUILD_LIBIO_TRUE='#'
3023 GLIBCPP_BUILD_LIBIO_FALSE=
3027 if test "$need_libio" = yes; then
3028 GLIBCPP_NEED_LIBIO_TRUE=
3029 GLIBCPP_NEED_LIBIO_FALSE='#'
3030 else
3031 GLIBCPP_NEED_LIBIO_TRUE='#'
3032 GLIBCPP_NEED_LIBIO_FALSE=
3036 if test "$need_wlibio" = yes; then
3037 GLIBCPP_NEED_WLIBIO_TRUE=
3038 GLIBCPP_NEED_WLIBIO_FALSE='#'
3039 else
3040 GLIBCPP_NEED_WLIBIO_TRUE='#'
3041 GLIBCPP_NEED_WLIBIO_FALSE=
3043 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3044 libio_la=../libio/libio.la
3045 else
3046 libio_la=
3051 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3052 echo "configure:3053: checking for clocale to use" >&5
3053 # Check whether --enable-clocale or --disable-clocale was given.
3054 if test "${enable_clocale+set}" = set; then
3055 enableval="$enable_clocale"
3056 if test x$enable_clocale = xno; then
3057 enable_clocale=no
3059 else
3060 enable_clocale=no
3064 enable_clocale_flag=$enable_clocale
3066 if test x$enable_clocale_flag = xno; then
3067 case x${target_os} in
3068 xlinux* | xgnu*)
3069 cat > conftest.$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3073 #include <features.h>
3074 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3075 _GLIBCPP_ok
3076 #endif
3079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3080 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3081 rm -rf conftest*
3082 enable_clocale_flag=gnu
3083 else
3084 rm -rf conftest*
3085 enable_clocale_flag=generic
3087 rm -f conftest*
3090 # Test for bugs early in glibc-2.2.x series
3091 if test x$enable_clocale_flag = xgnu; then
3092 if test "$cross_compiling" = yes; then
3093 enable_clocale_flag=generic
3094 else
3095 cat > conftest.$ac_ext <<EOF
3096 #line 3097 "configure"
3097 #include "confdefs.h"
3099 #define _GNU_SOURCE 1
3100 #include <locale.h>
3101 #include <string.h>
3102 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3103 extern __typeof(newlocale) __newlocale;
3104 extern __typeof(duplocale) __duplocale;
3105 extern __typeof(strcoll_l) __strcoll_l;
3106 #endif
3107 int main()
3109 const char __one[] = "Äuglein Augmen";
3110 const char __two[] = "Äuglein";
3111 int i;
3112 int j;
3113 __locale_t loc;
3114 __locale_t loc_dup;
3115 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3116 loc_dup = __duplocale(loc);
3117 i = __strcoll_l(__one, __two, loc);
3118 j = __strcoll_l(__one, __two, loc_dup);
3119 return 0;
3123 if { (eval echo configure:3124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3124 then
3125 enable_clocale_flag=gnu
3126 else
3127 echo "configure: failed program was:" >&5
3128 cat conftest.$ac_ext >&5
3129 rm -fr conftest*
3130 enable_clocale_flag=generic
3132 rm -fr conftest*
3137 # ... at some point put __strxfrm_l tests in as well.
3140 enable_clocale_flag=generic
3142 esac
3145 # Check whether --enable-nls or --disable-nls was given.
3146 if test "${enable_nls+set}" = set; then
3147 enableval="$enable_nls"
3149 else
3150 enable_nls=yes
3153 USE_NLS=no
3155 case x${enable_clocale_flag} in
3156 xgeneric)
3157 echo "$ac_t""generic" 1>&6
3159 CLOCALE_H=config/locale/generic/c_locale.h
3160 CLOCALE_CC=config/locale/generic/c_locale.cc
3161 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3162 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3163 CCOLLATE_CC=config/locale/generic/collate_members.cc
3164 CCTYPE_CC=config/locale/generic/ctype_members.cc
3165 CMESSAGES_H=config/locale/generic/messages_members.h
3166 CMESSAGES_CC=config/locale/generic/messages_members.cc
3167 CMONEY_CC=config/locale/generic/monetary_members.cc
3168 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3169 CTIME_H=config/locale/generic/time_members.h
3170 CTIME_CC=config/locale/generic/time_members.cc
3171 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3173 xgnu)
3174 echo "$ac_t""gnu" 1>&6
3176 # Declare intention to use gettext, and add support for specific
3177 # languages.
3178 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3179 ALL_LINGUAS="de fr"
3181 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3182 # Extract the first word of "msgfmt", so it can be a program name with args.
3183 set dummy msgfmt; ac_word=$2
3184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3185 echo "configure:3186: checking for $ac_word" >&5
3186 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3188 else
3189 if test -n "$check_msgfmt"; then
3190 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3191 else
3192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3193 ac_dummy="$PATH"
3194 for ac_dir in $ac_dummy; do
3195 test -z "$ac_dir" && ac_dir=.
3196 if test -f $ac_dir/$ac_word; then
3197 ac_cv_prog_check_msgfmt="yes"
3198 break
3200 done
3201 IFS="$ac_save_ifs"
3202 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3205 check_msgfmt="$ac_cv_prog_check_msgfmt"
3206 if test -n "$check_msgfmt"; then
3207 echo "$ac_t""$check_msgfmt" 1>&6
3208 else
3209 echo "$ac_t""no" 1>&6
3212 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3213 USE_NLS=yes
3215 # Export the build objects.
3216 for ling in $ALL_LINGUAS; do \
3217 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3218 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3219 done
3223 CLOCALE_H=config/locale/gnu/c_locale.h
3224 CLOCALE_CC=config/locale/gnu/c_locale.cc
3225 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3226 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3227 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3228 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3229 CMESSAGES_H=config/locale/gnu/messages_members.h
3230 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3231 CMONEY_CC=config/locale/gnu/monetary_members.cc
3232 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3233 CTIME_H=config/locale/gnu/time_members.h
3234 CTIME_CC=config/locale/gnu/time_members.cc
3235 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3237 xieee_1003.1-2001)
3238 echo "$ac_t""IEEE 1003.1" 1>&6
3240 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3241 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3242 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3243 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3244 CCOLLATE_CC=config/locale/generic/collate_members.cc
3245 CCTYPE_CC=config/locale/generic/ctype_members.cc
3246 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3247 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3248 CMONEY_CC=config/locale/generic/monetary_members.cc
3249 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3250 CTIME_H=config/locale/generic/time_members.h
3251 CTIME_CC=config/locale/generic/time_members.cc
3252 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3255 echo "$enable_clocale is an unknown locale package" 1>&2
3256 exit 1
3258 esac
3260 # This is where the testsuite looks for locale catalogs, using the
3261 # -DLOCALEDIR define during testsuite compilation.
3262 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3265 # A standalone libintl (e.g., GNU libintl) may be in use.
3266 if test $USE_NLS = yes; then
3267 for ac_hdr in libintl.h
3269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3271 echo "configure:3272: checking for $ac_hdr" >&5
3272 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3273 echo $ac_n "(cached) $ac_c" 1>&6
3274 else
3275 cat > conftest.$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3278 #include <$ac_hdr>
3280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3281 { (eval echo configure:3282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3283 if test -z "$ac_err"; then
3284 rm -rf conftest*
3285 eval "ac_cv_header_$ac_safe=yes"
3286 else
3287 echo "$ac_err" >&5
3288 echo "configure: failed program was:" >&5
3289 cat conftest.$ac_ext >&5
3290 rm -rf conftest*
3291 eval "ac_cv_header_$ac_safe=no"
3293 rm -f conftest*
3295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3296 echo "$ac_t""yes" 1>&6
3297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3298 cat >> confdefs.h <<EOF
3299 #define $ac_tr_hdr 1
3302 else
3303 echo "$ac_t""no" 1>&6
3304 USE_NLS=no
3306 done
3309 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
3310 echo "configure:3311: checking for library containing gettext" >&5
3311 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3313 else
3314 ac_func_search_save_LIBS="$LIBS"
3315 ac_cv_search_gettext="no"
3316 cat > conftest.$ac_ext <<EOF
3317 #line 3318 "configure"
3318 #include "confdefs.h"
3319 /* Override any gcc2 internal prototype to avoid an error. */
3320 /* We use char because int might match the return type of a gcc2
3321 builtin and then its argument prototype would still apply. */
3322 char gettext();
3324 int main() {
3325 gettext()
3326 ; return 0; }
3328 if { (eval echo configure:3329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3329 rm -rf conftest*
3330 ac_cv_search_gettext="none required"
3331 else
3332 echo "configure: failed program was:" >&5
3333 cat conftest.$ac_ext >&5
3335 rm -f conftest*
3336 test "$ac_cv_search_gettext" = "no" && for i in intl; do
3337 LIBS="-l$i $ac_func_search_save_LIBS"
3338 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3341 /* Override any gcc2 internal prototype to avoid an error. */
3342 /* We use char because int might match the return type of a gcc2
3343 builtin and then its argument prototype would still apply. */
3344 char gettext();
3346 int main() {
3347 gettext()
3348 ; return 0; }
3350 if { (eval echo configure:3351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3351 rm -rf conftest*
3352 ac_cv_search_gettext="-l$i"
3353 break
3354 else
3355 echo "configure: failed program was:" >&5
3356 cat conftest.$ac_ext >&5
3358 rm -f conftest*
3359 done
3360 LIBS="$ac_func_search_save_LIBS"
3363 echo "$ac_t""$ac_cv_search_gettext" 1>&6
3364 if test "$ac_cv_search_gettext" != "no"; then
3365 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
3367 else :
3368 USE_NLS=no
3371 if test $USE_NLS = yes; then
3372 cat >> confdefs.h <<\EOF
3373 #define _GLIBCPP_USE_NLS 1
3393 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3394 echo "configure:3395: checking for c header strategy to use" >&5
3395 # Check whether --enable-cheaders or --disable-cheaders was given.
3396 if test "${enable_cheaders+set}" = set; then
3397 enableval="$enable_cheaders"
3399 case "$enableval" in
3401 enable_cheaders=c
3403 c_std)
3404 enable_cheaders=c_std
3406 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3408 esac
3409 else
3410 enable_cheaders=c_std
3413 echo "$ac_t""$enable_cheaders" 1>&6
3415 case "$enable_cheaders" in
3416 c_std)
3417 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3420 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3422 esac
3427 if test "$enable_cheaders" = c; then
3428 GLIBCPP_C_HEADERS_C_TRUE=
3429 GLIBCPP_C_HEADERS_C_FALSE='#'
3430 else
3431 GLIBCPP_C_HEADERS_C_TRUE='#'
3432 GLIBCPP_C_HEADERS_C_FALSE=
3436 if test "$enable_cheaders" = c_std; then
3437 GLIBCPP_C_HEADERS_C_STD_TRUE=
3438 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3439 else
3440 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3441 GLIBCPP_C_HEADERS_C_STD_FALSE=
3445 if test "$c_compatibility" = yes; then
3446 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3447 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3448 else
3449 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3450 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3453 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3454 if test "${enable_c_mbchar+set}" = set; then
3455 enableval="$enable_c_mbchar"
3456 case "$enableval" in
3457 yes) enable_c_mbchar=yes ;;
3458 no) enable_c_mbchar=no ;;
3459 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3460 esac
3461 else
3462 enable_c_mbchar=yes
3466 # Check whether --enable-c99 or --disable-c99 was given.
3467 if test "${enable_c99+set}" = set; then
3468 enableval="$enable_c99"
3469 case "$enableval" in
3470 yes) enable_c99=yes ;;
3471 no) enable_c99=no ;;
3472 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3473 esac
3474 else
3475 enable_c99=yes
3479 ac_ext=C
3480 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3481 ac_cpp='$CXXCPP $CPPFLAGS'
3482 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3483 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3484 cross_compiling=$ac_cv_prog_cxx_cross
3487 # Check for the existence of <math.h> functions used if C99 is enabled.
3488 ac_c99_math=yes;
3489 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3490 echo "configure:3491: checking for ISO C99 support in <math.h>" >&5
3491 cat > conftest.$ac_ext <<EOF
3492 #line 3493 "configure"
3493 #include "confdefs.h"
3494 #include <math.h>
3495 int main() {
3496 fpclassify(0.0);
3497 ; return 0; }
3499 if { (eval echo configure:3500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3501 else
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 rm -rf conftest*
3505 ac_c99_math=no
3507 rm -f conftest*
3508 cat > conftest.$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3511 #include <math.h>
3512 int main() {
3513 isfinite(0.0);
3514 ; return 0; }
3516 if { (eval echo configure:3517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3518 else
3519 echo "configure: failed program was:" >&5
3520 cat conftest.$ac_ext >&5
3521 rm -rf conftest*
3522 ac_c99_math=no
3524 rm -f conftest*
3525 cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 #include <math.h>
3529 int main() {
3530 isinf(0.0);
3531 ; return 0; }
3533 if { (eval echo configure:3534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3535 else
3536 echo "configure: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3538 rm -rf conftest*
3539 ac_c99_math=no
3541 rm -f conftest*
3542 cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 #include <math.h>
3546 int main() {
3547 isnan(0.0);
3548 ; return 0; }
3550 if { (eval echo configure:3551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3552 else
3553 echo "configure: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3555 rm -rf conftest*
3556 ac_c99_math=no
3558 rm -f conftest*
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 #include <math.h>
3563 int main() {
3564 isnormal(0.0);
3565 ; return 0; }
3567 if { (eval echo configure:3568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3569 else
3570 echo "configure: failed program was:" >&5
3571 cat conftest.$ac_ext >&5
3572 rm -rf conftest*
3573 ac_c99_math=no
3575 rm -f conftest*
3576 cat > conftest.$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 #include <math.h>
3580 int main() {
3581 signbit(0.0);
3582 ; return 0; }
3584 if { (eval echo configure:3585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3586 else
3587 echo "configure: failed program was:" >&5
3588 cat conftest.$ac_ext >&5
3589 rm -rf conftest*
3590 ac_c99_math=no
3592 rm -f conftest*
3593 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 #include <math.h>
3597 int main() {
3598 isgreater(0.0,0.0);
3599 ; return 0; }
3601 if { (eval echo configure:3602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3603 else
3604 echo "configure: failed program was:" >&5
3605 cat conftest.$ac_ext >&5
3606 rm -rf conftest*
3607 ac_c99_math=no
3609 rm -f conftest*
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3613 #include <math.h>
3614 int main() {
3615 isgreaterequal(0.0,0.0);
3616 ; return 0; }
3618 if { (eval echo configure:3619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3620 else
3621 echo "configure: failed program was:" >&5
3622 cat conftest.$ac_ext >&5
3623 rm -rf conftest*
3624 ac_c99_math=no
3626 rm -f conftest*
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3630 #include <math.h>
3631 int main() {
3632 isless(0.0,0.0);
3633 ; return 0; }
3635 if { (eval echo configure:3636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3637 else
3638 echo "configure: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3640 rm -rf conftest*
3641 ac_c99_math=no
3643 rm -f conftest*
3644 cat > conftest.$ac_ext <<EOF
3645 #line 3646 "configure"
3646 #include "confdefs.h"
3647 #include <math.h>
3648 int main() {
3649 islessequal(0.0,0.0);
3650 ; return 0; }
3652 if { (eval echo configure:3653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3654 else
3655 echo "configure: failed program was:" >&5
3656 cat conftest.$ac_ext >&5
3657 rm -rf conftest*
3658 ac_c99_math=no
3660 rm -f conftest*
3661 cat > conftest.$ac_ext <<EOF
3662 #line 3663 "configure"
3663 #include "confdefs.h"
3664 #include <math.h>
3665 int main() {
3666 islessgreater(0.0,0.0);
3667 ; return 0; }
3669 if { (eval echo configure:3670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3671 else
3672 echo "configure: failed program was:" >&5
3673 cat conftest.$ac_ext >&5
3674 rm -rf conftest*
3675 ac_c99_math=no
3677 rm -f conftest*
3678 cat > conftest.$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3681 #include <math.h>
3682 int main() {
3683 isunordered(0.0,0.0);
3684 ; return 0; }
3686 if { (eval echo configure:3687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3688 else
3689 echo "configure: failed program was:" >&5
3690 cat conftest.$ac_ext >&5
3691 rm -rf conftest*
3692 ac_c99_math=no
3694 rm -f conftest*
3695 echo "$ac_t""$ac_c99_math" 1>&6
3697 # Check for the existence in <stdio.h> of vscanf, et. al.
3698 ac_c99_stdio=yes;
3699 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3700 echo "configure:3701: checking for ISO C99 support in <stdio.h>" >&5
3701 cat > conftest.$ac_ext <<EOF
3702 #line 3703 "configure"
3703 #include "confdefs.h"
3704 #include <stdio.h>
3705 int main() {
3706 snprintf("12", 0, "%i");
3707 ; return 0; }
3709 if { (eval echo configure:3710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3711 else
3712 echo "configure: failed program was:" >&5
3713 cat conftest.$ac_ext >&5
3714 rm -rf conftest*
3715 ac_c99_stdio=no
3717 rm -f conftest*
3718 cat > conftest.$ac_ext <<EOF
3719 #line 3720 "configure"
3720 #include "confdefs.h"
3721 #include <stdio.h>
3722 #include <stdarg.h>
3723 void foo(char* fmt, ...)
3724 {va_list args; va_start(args, fmt);
3725 vfscanf(stderr, "%i", args);}
3726 int main() {
3728 ; return 0; }
3730 if { (eval echo configure:3731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3732 else
3733 echo "configure: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3735 rm -rf conftest*
3736 ac_c99_stdio=no
3738 rm -f conftest*
3739 cat > conftest.$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3742 #include <stdio.h>
3743 #include <stdarg.h>
3744 void foo(char* fmt, ...)
3745 {va_list args; va_start(args, fmt);
3746 vscanf("%i", args);}
3747 int main() {
3749 ; return 0; }
3751 if { (eval echo configure:3752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3753 else
3754 echo "configure: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3756 rm -rf conftest*
3757 ac_c99_stdio=no
3759 rm -f conftest*
3760 cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 #include <stdio.h>
3764 #include <stdarg.h>
3765 void foo(char* fmt, ...)
3766 {va_list args; va_start(args, fmt);
3767 vsnprintf(fmt, 0, "%i", args);}
3768 int main() {
3770 ; return 0; }
3772 if { (eval echo configure:3773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3774 else
3775 echo "configure: failed program was:" >&5
3776 cat conftest.$ac_ext >&5
3777 rm -rf conftest*
3778 ac_c99_stdio=no
3780 rm -f conftest*
3781 cat > conftest.$ac_ext <<EOF
3782 #line 3783 "configure"
3783 #include "confdefs.h"
3784 #include <stdio.h>
3785 #include <stdarg.h>
3786 void foo(char* fmt, ...)
3787 {va_list args; va_start(args, fmt);
3788 vsscanf(fmt, "%i", args);}
3789 int main() {
3791 ; return 0; }
3793 if { (eval echo configure:3794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3795 else
3796 echo "configure: failed program was:" >&5
3797 cat conftest.$ac_ext >&5
3798 rm -rf conftest*
3799 ac_c99_stdio=no
3801 rm -f conftest*
3802 echo "$ac_t""$ac_c99_stdio" 1>&6
3804 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3805 ac_c99_stdlib=yes;
3806 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3807 echo "configure:3808: checking for lldiv_t declaration" >&5
3808 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3810 else
3812 cat > conftest.$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3815 #include <stdlib.h>
3816 int main() {
3817 lldiv_t mydivt;
3818 ; return 0; }
3820 if { (eval echo configure:3821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3821 rm -rf conftest*
3822 ac_c99_lldiv_t=yes
3823 else
3824 echo "configure: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3826 rm -rf conftest*
3827 ac_c99_lldiv_t=no
3829 rm -f conftest*
3833 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3835 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3836 echo "configure:3837: checking for ISO C99 support in <stdlib.h>" >&5
3837 cat > conftest.$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3840 #include <stdlib.h>
3841 int main() {
3842 char* tmp; strtof("gnu", &tmp);
3843 ; return 0; }
3845 if { (eval echo configure:3846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3847 else
3848 echo "configure: failed program was:" >&5
3849 cat conftest.$ac_ext >&5
3850 rm -rf conftest*
3851 ac_c99_stdlib=no
3853 rm -f conftest*
3854 cat > conftest.$ac_ext <<EOF
3855 #line 3856 "configure"
3856 #include "confdefs.h"
3857 #include <stdlib.h>
3858 int main() {
3859 char* tmp; strtold("gnu", &tmp);
3860 ; return 0; }
3862 if { (eval echo configure:3863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3864 else
3865 echo "configure: failed program was:" >&5
3866 cat conftest.$ac_ext >&5
3867 rm -rf conftest*
3868 ac_c99_stdlib=no
3870 rm -f conftest*
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 #include <stdlib.h>
3875 int main() {
3876 llabs(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 ac_c99_stdlib=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 lldiv(10,1);
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 ac_c99_stdlib=no
3904 rm -f conftest*
3905 cat > conftest.$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3908 #include <stdlib.h>
3909 int main() {
3910 atoll("10");
3911 ; return 0; }
3913 if { (eval echo configure:3914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3915 else
3916 echo "configure: failed program was:" >&5
3917 cat conftest.$ac_ext >&5
3918 rm -rf conftest*
3919 ac_c99_stdlib=no
3921 rm -f conftest*
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3925 #include <stdlib.h>
3926 int main() {
3927 _Exit(0);
3928 ; return 0; }
3930 if { (eval echo configure:3931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3932 else
3933 echo "configure: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3935 rm -rf conftest*
3936 ac_c99_stdlib=no
3938 rm -f conftest*
3939 if test x"$ac_c99_lldiv_t" = x"no"; then
3940 ac_c99_stdlib=no;
3942 echo "$ac_t""$ac_c99_stdlib" 1>&6
3944 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3945 # XXX the wchar.h checks should be rolled into the general C99 bits.
3946 ac_c99_wchar=yes;
3947 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3948 echo "configure:3949: checking for additional ISO C99 support in <wchar.h>" >&5
3949 cat > conftest.$ac_ext <<EOF
3950 #line 3951 "configure"
3951 #include "confdefs.h"
3952 #include <wchar.h>
3953 int main() {
3954 wcstold(L"10.0", NULL);
3955 ; return 0; }
3957 if { (eval echo configure:3958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3959 else
3960 echo "configure: failed program was:" >&5
3961 cat conftest.$ac_ext >&5
3962 rm -rf conftest*
3963 ac_c99_wchar=no
3965 rm -f conftest*
3966 cat > conftest.$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3969 #include <wchar.h>
3970 int main() {
3971 wcstoll(L"10", NULL, 10);
3972 ; return 0; }
3974 if { (eval echo configure:3975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3976 else
3977 echo "configure: failed program was:" >&5
3978 cat conftest.$ac_ext >&5
3979 rm -rf conftest*
3980 ac_c99_wchar=no
3982 rm -f conftest*
3983 cat > conftest.$ac_ext <<EOF
3984 #line 3985 "configure"
3985 #include "confdefs.h"
3986 #include <wchar.h>
3987 int main() {
3988 wcstoull(L"10", NULL, 10);
3989 ; return 0; }
3991 if { (eval echo configure:3992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3993 else
3994 echo "configure: failed program was:" >&5
3995 cat conftest.$ac_ext >&5
3996 rm -rf conftest*
3997 ac_c99_wchar=no
3999 rm -f conftest*
4000 echo "$ac_t""$ac_c99_wchar" 1>&6
4002 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
4003 echo "configure:4004: checking for enabled ISO C99 support" >&5
4004 if test x"$ac_c99_math" = x"no" ||
4005 test x"$ac_c99_stdio" = x"no" ||
4006 test x"$ac_c99_stdlib" = x"no" ||
4007 test x"$ac_c99_wchar" = x"no"; then
4008 enable_c99=no;
4010 echo "$ac_t""$enable_c99" 1>&6
4012 # Option parsed, now set things appropriately
4013 if test x"$enable_c99" = x"yes"; then
4014 cat >> confdefs.h <<\EOF
4015 #define _GLIBCPP_USE_C99 1
4020 ac_ext=c
4021 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4022 ac_cpp='$CPP $CPPFLAGS'
4023 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4024 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4025 cross_compiling=$ac_cv_prog_cc_cross
4029 # Check whether --enable-long-long or --disable-long-long was given.
4030 if test "${enable_long_long+set}" = set; then
4031 enableval="$enable_long_long"
4032 case "$enableval" in
4033 yes) enable_long_long=yes ;;
4034 no) enable_long_long=no ;;
4035 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
4036 esac
4037 else
4038 enable_long_long=yes
4042 ac_ext=C
4043 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4044 ac_cpp='$CXXCPP $CPPFLAGS'
4045 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4046 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4047 cross_compiling=$ac_cv_prog_cxx_cross
4050 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
4051 echo "configure:4052: checking for enabled long long I/O support" >&5
4052 # iostreams require strtoll, strtoull to compile
4053 cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4056 #include <stdlib.h>
4057 int main() {
4058 char* tmp; strtoll("gnu", &tmp, 10);
4059 ; return 0; }
4061 if { (eval echo configure:4062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4063 else
4064 echo "configure: failed program was:" >&5
4065 cat conftest.$ac_ext >&5
4066 rm -rf conftest*
4067 enable_long_long=no
4069 rm -f conftest*
4070 cat > conftest.$ac_ext <<EOF
4071 #line 4072 "configure"
4072 #include "confdefs.h"
4073 #include <stdlib.h>
4074 int main() {
4075 char* tmp; strtoull("gnu", &tmp, 10);
4076 ; return 0; }
4078 if { (eval echo configure:4079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4080 else
4081 echo "configure: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4083 rm -rf conftest*
4084 enable_long_long=no
4086 rm -f conftest*
4088 # Option parsed, now set things appropriately
4089 if test x"$enable_long_long" = xyes; then
4090 cat >> confdefs.h <<\EOF
4091 #define _GLIBCPP_USE_LONG_LONG 1
4095 echo "$ac_t""$enable_long_long" 1>&6
4097 ac_ext=c
4098 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4099 ac_cpp='$CPP $CPPFLAGS'
4100 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4101 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4102 cross_compiling=$ac_cv_prog_cc_cross
4106 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
4107 echo "configure:4108: checking for thread model used by GCC" >&5
4108 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4109 echo "$ac_t""$target_thread_file" 1>&6
4111 if test $target_thread_file != single; then
4112 cat >> confdefs.h <<\EOF
4113 #define HAVE_GTHR_DEFAULT 1
4116 cat >> confdefs.h <<\EOF
4117 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
4122 glibcpp_thread_h=gthr-$target_thread_file.h
4126 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
4127 echo "configure:4128: checking for exception model to use" >&5
4129 ac_ext=C
4130 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4131 ac_cpp='$CXXCPP $CPPFLAGS'
4132 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4133 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4134 cross_compiling=$ac_cv_prog_cxx_cross
4136 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4137 if test "${enable_sjlj_exceptions+set}" = set; then
4138 enableval="$enable_sjlj_exceptions"
4140 else
4141 cat > conftest.$ac_ext << EOF
4142 #line 4143 "configure"
4143 struct S { ~S(); };
4144 void bar();
4145 void foo()
4147 S s;
4148 bar();
4151 old_CXXFLAGS="$CXXFLAGS"
4152 CXXFLAGS=-S
4153 if { (eval echo configure:4154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4154 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4155 enable_sjlj_exceptions=yes
4156 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4157 enable_sjlj_exceptions=no
4160 CXXFLAGS="$old_CXXFLAGS"
4161 rm -f conftest*
4164 if test x$enable_sjlj_exceptions = xyes; then
4165 cat >> confdefs.h <<\EOF
4166 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4169 ac_exception_model_name=sjlj
4170 elif test x$enable_sjlj_exceptions = xno; then
4171 ac_exception_model_name="call frame"
4172 else
4173 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4175 ac_ext=c
4176 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4179 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4180 cross_compiling=$ac_cv_prog_cc_cross
4182 echo "$ac_t""$ac_exception_model_name" 1>&6
4185 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4186 echo "configure:4187: checking for use of libunwind" >&5
4187 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4188 if test "${enable_libunwind_exceptions+set}" = set; then
4189 enableval="$enable_libunwind_exceptions"
4190 use_libunwind_exceptions=$enableval
4191 else
4192 use_libunwind_exceptions=no
4195 echo "$ac_t""$use_libunwind_exceptions" 1>&6
4196 if test x"$use_libunwind_exceptions" = xyes; then
4197 LIBUNWIND_FLAG="-lunwind"
4198 else
4199 LIBUNWIND_FLAG=""
4203 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4204 if test "${enable_concept_checks+set}" = set; then
4205 enableval="$enable_concept_checks"
4206 case "$enableval" in
4207 yes) enable_concept_checks=yes ;;
4208 no) enable_concept_checks=no ;;
4209 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4210 esac
4211 else
4212 enable_concept_checks=no
4214 if test x"$enable_concept_checks" = xyes; then
4215 cat >> confdefs.h <<\EOF
4216 #define _GLIBCPP_CONCEPT_CHECKS 1
4221 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4222 echo "configure:4223: checking for extra compiler flags for building" >&5
4223 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4224 if test "${enable_cxx_flags+set}" = set; then
4225 enableval="$enable_cxx_flags"
4226 case "x$enable_cxx_flags" in
4227 xyes)
4228 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4229 xno | xnone | x)
4230 enable_cxx_flags='' ;;
4232 enable_cxx_flags="$enableval" ;;
4233 esac
4234 else
4235 enable_cxx_flags=
4239 if test -n "$enable_cxx_flags"; then
4240 for f in $enable_cxx_flags; do
4241 case "$f" in
4242 -fhonor-std) ;;
4243 -*) ;;
4244 *) # and we're trying to pass /what/ exactly?
4245 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4246 esac
4247 done
4249 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4250 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4253 # Check whether --enable-debug or --disable-debug was given.
4254 if test "${enable_debug+set}" = set; then
4255 enableval="$enable_debug"
4256 case "${enableval}" in
4257 yes) enable_debug=yes ;;
4258 no) enable_debug=no ;;
4259 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4260 esac
4261 else
4262 enable_debug=no
4264 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4265 echo "configure:4266: checking for additional debug build" >&5
4266 echo "$ac_t""$enable_debug" 1>&6
4269 if test "$enable_debug" = yes; then
4270 GLIBCPP_BUILD_DEBUG_TRUE=
4271 GLIBCPP_BUILD_DEBUG_FALSE='#'
4272 else
4273 GLIBCPP_BUILD_DEBUG_TRUE='#'
4274 GLIBCPP_BUILD_DEBUG_FALSE=
4277 # Check whether --enable-debug_flags or --disable-debug_flags was given.
4278 if test "${enable_debug_flags+set}" = set; then
4279 enableval="$enable_debug_flags"
4280 case "${enableval}" in
4281 none) ;;
4282 -*) enable_debug_flags="${enableval}" ;;
4283 *) { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4284 esac
4285 else
4286 enable_debug_flags=none
4289 case x"$enable_debug" in
4290 xyes)
4291 case "$enable_debug_flags" in
4292 none)
4293 DEBUG_FLAGS="-g3 -O0";;
4294 -*) #valid input
4295 DEBUG_FLAGS="${enableval}"
4296 esac
4298 xno)
4299 DEBUG_FLAGS=""
4301 esac
4304 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4305 echo "configure:4306: checking for debug build flags" >&5
4306 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4309 # No surprises, no surprises...
4310 if test $ATOMICITYH = cpu/generic ; then
4311 echo "configure: warning: No native atomic operations are provided for this platform." 1>&2
4312 if test $target_thread_file = single; then
4313 echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4314 echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4315 else
4316 echo "configure: warning: They will be faked using a mutex." 1>&2
4317 echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4322 if test x"$build" != x"$host"; then
4324 # We are being configured with some form of cross compiler.
4325 GLIBCPP_IS_CROSS_COMPILING=1
4327 # This lets us hard-code the functionality we know we'll have in the cross
4328 # target environment. "Let" is a sugar-coated word placed on an especially
4329 # dull and tedious hack, actually.
4331 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4332 # that involve linking, can't be used:
4333 # "cannot open sim-crt0.o"
4334 # "cannot open crt0.o"
4335 # etc. All this is because there currently exists no unified, consistent
4336 # way for top level CC information to be passed down to target directories:
4337 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4338 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4339 # crosses can be removed.
4341 # If Canadian cross, then don't pick up tools from the build directory.
4342 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4343 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host" \
4344 && test x"$build" != x"$target"; then
4345 CANADIAN=yes
4346 else
4347 CANADIAN=no
4350 # Construct crosses by hand, eliminating bits that need ld...
4351 # GLIBCPP_CHECK_COMPILER_FEATURES
4352 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4353 # GLIBCPP_CHECK_MATH_SUPPORT
4355 case "${host}" in
4356 *-freebsd*)
4357 os_include_dir="os/bsd/freebsd"
4358 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4359 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4360 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
4361 sys/time.h unistd.h
4363 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4364 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4365 echo "configure:4366: checking for $ac_hdr" >&5
4366 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4367 echo $ac_n "(cached) $ac_c" 1>&6
4368 else
4369 cat > conftest.$ac_ext <<EOF
4370 #line 4371 "configure"
4371 #include "confdefs.h"
4372 #include <$ac_hdr>
4374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4375 { (eval echo configure:4376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4377 if test -z "$ac_err"; then
4378 rm -rf conftest*
4379 eval "ac_cv_header_$ac_safe=yes"
4380 else
4381 echo "$ac_err" >&5
4382 echo "configure: failed program was:" >&5
4383 cat conftest.$ac_ext >&5
4384 rm -rf conftest*
4385 eval "ac_cv_header_$ac_safe=no"
4387 rm -f conftest*
4389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4390 echo "$ac_t""yes" 1>&6
4391 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4392 cat >> confdefs.h <<EOF
4393 #define $ac_tr_hdr 1
4396 else
4397 echo "$ac_t""no" 1>&6
4399 done
4401 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4404 # If we're not using GNU ld, then there's no point in even trying these
4405 # tests. Check for that first. We should have already tested for gld
4406 # by now (in libtool), but require it now just to be safe...
4407 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4408 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4411 # The name set by libtool depends on the version of libtool. Shame on us
4412 # for depending on an impl detail, but c'est la vie. Older versions used
4413 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4414 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4415 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4416 # set (hence we're using an older libtool), then set it.
4417 if test x${with_gnu_ld+set} != xset; then
4418 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4419 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4420 with_gnu_ld=no
4421 else
4422 with_gnu_ld=$ac_cv_prog_gnu_ld
4426 # Start by getting the version number. I think the libtool test already
4427 # does some of this, but throws away the result.
4429 ldver=`$LD --version 2>/dev/null | head -1 | \
4430 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4432 glibcpp_gnu_ld_version=`echo $ldver | \
4433 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4435 # Set --gc-sections.
4436 if test "$with_gnu_ld" = "notbroken"; then
4437 # GNU ld it is! Joy and bunny rabbits!
4439 # All these tests are for C++; save the language and the compiler flags.
4440 # Need to do this so that g++ won't try to link in libstdc++
4441 ac_test_CFLAGS="${CFLAGS+set}"
4442 ac_save_CFLAGS="$CFLAGS"
4443 CFLAGS='-x c++ -Wl,--gc-sections'
4445 # Check for -Wl,--gc-sections
4446 # XXX This test is broken at the moment, as symbols required for
4447 # linking are now in libsupc++ (not built yet.....). In addition,
4448 # this test has cored on solaris in the past. In addition,
4449 # --gc-sections doesn't really work at the moment (keeps on discarding
4450 # used sections, first .eh_frame and now some of the glibc sections for
4451 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4452 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4453 echo "configure:4454: checking for ld that supports -Wl,--gc-sections" >&5
4454 if test "$cross_compiling" = yes; then
4455 ac_sectionLDflags=yes
4456 else
4457 cat > conftest.$ac_ext <<EOF
4458 #line 4459 "configure"
4459 #include "confdefs.h"
4461 int main(void)
4463 try { throw 1; }
4464 catch (...) { };
4465 return 0;
4469 if { (eval echo configure:4470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4470 then
4471 ac_sectionLDflags=yes
4472 else
4473 echo "configure: failed program was:" >&5
4474 cat conftest.$ac_ext >&5
4475 rm -fr conftest*
4476 ac_sectionLDflags=no
4478 rm -fr conftest*
4481 if test "$ac_test_CFLAGS" = set; then
4482 CFLAGS="$ac_save_CFLAGS"
4483 else
4484 # this is the suspicious part
4485 CFLAGS=''
4487 if test "$ac_sectionLDflags" = "yes"; then
4488 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4490 echo "$ac_t""$ac_sectionLDflags" 1>&6
4493 # Set linker optimization flags.
4494 if test x"$with_gnu_ld" = x"yes"; then
4495 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4502 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4503 echo "configure:4504: checking for main in -lm" >&5
4504 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4506 echo $ac_n "(cached) $ac_c" 1>&6
4507 else
4508 ac_save_LIBS="$LIBS"
4509 LIBS="-lm $LIBS"
4510 cat > conftest.$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4514 int main() {
4515 main()
4516 ; return 0; }
4518 if { (eval echo configure:4519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4519 rm -rf conftest*
4520 eval "ac_cv_lib_$ac_lib_var=yes"
4521 else
4522 echo "configure: failed program was:" >&5
4523 cat conftest.$ac_ext >&5
4524 rm -rf conftest*
4525 eval "ac_cv_lib_$ac_lib_var=no"
4527 rm -f conftest*
4528 LIBS="$ac_save_LIBS"
4531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4532 echo "$ac_t""yes" 1>&6
4533 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4534 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4535 cat >> confdefs.h <<EOF
4536 #define $ac_tr_lib 1
4539 LIBS="-lm $LIBS"
4541 else
4542 echo "$ac_t""no" 1>&6
4545 for ac_func in nan copysignf
4547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4548 echo "configure:4549: checking for $ac_func" >&5
4549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
4551 else
4552 cat > conftest.$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4555 /* System header to define __stub macros and hopefully few prototypes,
4556 which can conflict with char $ac_func(); below. */
4557 #include <assert.h>
4558 /* Override any gcc2 internal prototype to avoid an error. */
4559 /* We use char because int might match the return type of a gcc2
4560 builtin and then its argument prototype would still apply. */
4561 char $ac_func();
4563 int main() {
4565 /* The GNU C library defines this for functions which it implements
4566 to always fail with ENOSYS. Some functions are actually named
4567 something starting with __ and the normal name is an alias. */
4568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4569 choke me
4570 #else
4571 $ac_func();
4572 #endif
4574 ; return 0; }
4576 if { (eval echo configure:4577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4577 rm -rf conftest*
4578 eval "ac_cv_func_$ac_func=yes"
4579 else
4580 echo "configure: failed program was:" >&5
4581 cat conftest.$ac_ext >&5
4582 rm -rf conftest*
4583 eval "ac_cv_func_$ac_func=no"
4585 rm -f conftest*
4588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4589 echo "$ac_t""yes" 1>&6
4590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4591 cat >> confdefs.h <<EOF
4592 #define $ac_tr_func 1
4595 else
4596 echo "$ac_t""no" 1>&6
4597 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4599 done
4602 for ac_func in __signbit
4604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4605 echo "configure:4606: checking for $ac_func" >&5
4606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4607 echo $ac_n "(cached) $ac_c" 1>&6
4608 else
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 /* System header to define __stub macros and hopefully few prototypes,
4613 which can conflict with char $ac_func(); below. */
4614 #include <assert.h>
4615 /* Override any gcc2 internal prototype to avoid an error. */
4616 /* We use char because int might match the return type of a gcc2
4617 builtin and then its argument prototype would still apply. */
4618 char $ac_func();
4620 int main() {
4622 /* The GNU C library defines this for functions which it implements
4623 to always fail with ENOSYS. Some functions are actually named
4624 something starting with __ and the normal name is an alias. */
4625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4626 choke me
4627 #else
4628 $ac_func();
4629 #endif
4631 ; return 0; }
4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4634 rm -rf conftest*
4635 eval "ac_cv_func_$ac_func=yes"
4636 else
4637 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5
4639 rm -rf conftest*
4640 eval "ac_cv_func_$ac_func=no"
4642 rm -f conftest*
4645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4646 echo "$ac_t""yes" 1>&6
4647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4648 cat >> confdefs.h <<EOF
4649 #define $ac_tr_func 1
4652 else
4653 echo "$ac_t""no" 1>&6
4654 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4656 done
4658 for ac_func in __signbitf
4660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4661 echo "configure:4662: checking for $ac_func" >&5
4662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4663 echo $ac_n "(cached) $ac_c" 1>&6
4664 else
4665 cat > conftest.$ac_ext <<EOF
4666 #line 4667 "configure"
4667 #include "confdefs.h"
4668 /* System header to define __stub macros and hopefully few prototypes,
4669 which can conflict with char $ac_func(); below. */
4670 #include <assert.h>
4671 /* Override any gcc2 internal prototype to avoid an error. */
4672 /* We use char because int might match the return type of a gcc2
4673 builtin and then its argument prototype would still apply. */
4674 char $ac_func();
4676 int main() {
4678 /* The GNU C library defines this for functions which it implements
4679 to always fail with ENOSYS. Some functions are actually named
4680 something starting with __ and the normal name is an alias. */
4681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4682 choke me
4683 #else
4684 $ac_func();
4685 #endif
4687 ; return 0; }
4689 if { (eval echo configure:4690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4690 rm -rf conftest*
4691 eval "ac_cv_func_$ac_func=yes"
4692 else
4693 echo "configure: failed program was:" >&5
4694 cat conftest.$ac_ext >&5
4695 rm -rf conftest*
4696 eval "ac_cv_func_$ac_func=no"
4698 rm -f conftest*
4701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4702 echo "$ac_t""yes" 1>&6
4703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4704 cat >> confdefs.h <<EOF
4705 #define $ac_tr_func 1
4708 else
4709 echo "$ac_t""no" 1>&6
4710 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4712 done
4715 if test x$ac_cv_func_copysignl = x"yes"; then
4716 for ac_func in __signbitl
4718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4719 echo "configure:4720: checking for $ac_func" >&5
4720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4722 else
4723 cat > conftest.$ac_ext <<EOF
4724 #line 4725 "configure"
4725 #include "confdefs.h"
4726 /* System header to define __stub macros and hopefully few prototypes,
4727 which can conflict with char $ac_func(); below. */
4728 #include <assert.h>
4729 /* Override any gcc2 internal prototype to avoid an error. */
4730 /* We use char because int might match the return type of a gcc2
4731 builtin and then its argument prototype would still apply. */
4732 char $ac_func();
4734 int main() {
4736 /* The GNU C library defines this for functions which it implements
4737 to always fail with ENOSYS. Some functions are actually named
4738 something starting with __ and the normal name is an alias. */
4739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4740 choke me
4741 #else
4742 $ac_func();
4743 #endif
4745 ; return 0; }
4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4748 rm -rf conftest*
4749 eval "ac_cv_func_$ac_func=yes"
4750 else
4751 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4753 rm -rf conftest*
4754 eval "ac_cv_func_$ac_func=no"
4756 rm -f conftest*
4759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4760 echo "$ac_t""yes" 1>&6
4761 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4762 cat >> confdefs.h <<EOF
4763 #define $ac_tr_func 1
4766 else
4767 echo "$ac_t""no" 1>&6
4768 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4770 done
4774 if test -n "$LIBMATHOBJS"; then
4775 need_libmath=yes
4780 if test "$need_libmath" = yes; then
4781 GLIBCPP_BUILD_LIBMATH_TRUE=
4782 GLIBCPP_BUILD_LIBMATH_FALSE='#'
4783 else
4784 GLIBCPP_BUILD_LIBMATH_TRUE='#'
4785 GLIBCPP_BUILD_LIBMATH_FALSE=
4789 enable_wchar_t=no
4791 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4792 echo "configure:4793: checking for mbstate_t" >&5
4793 cat > conftest.$ac_ext <<EOF
4794 #line 4795 "configure"
4795 #include "confdefs.h"
4796 #include <wchar.h>
4797 int main() {
4798 mbstate_t teststate;
4799 ; return 0; }
4801 if { (eval echo configure:4802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4802 rm -rf conftest*
4803 have_mbstate_t=yes
4804 else
4805 echo "configure: failed program was:" >&5
4806 cat conftest.$ac_ext >&5
4807 rm -rf conftest*
4808 have_mbstate_t=no
4810 rm -f conftest*
4811 echo "$ac_t""$have_mbstate_t" 1>&6
4812 if test x"$have_mbstate_t" = xyes; then
4813 cat >> confdefs.h <<\EOF
4814 #define HAVE_MBSTATE_T 1
4819 for ac_hdr in wchar.h
4821 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4822 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4823 echo "configure:4824: checking for $ac_hdr" >&5
4824 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6
4826 else
4827 cat > conftest.$ac_ext <<EOF
4828 #line 4829 "configure"
4829 #include "confdefs.h"
4830 #include <$ac_hdr>
4832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4833 { (eval echo configure:4834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4835 if test -z "$ac_err"; then
4836 rm -rf conftest*
4837 eval "ac_cv_header_$ac_safe=yes"
4838 else
4839 echo "$ac_err" >&5
4840 echo "configure: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4842 rm -rf conftest*
4843 eval "ac_cv_header_$ac_safe=no"
4845 rm -f conftest*
4847 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4848 echo "$ac_t""yes" 1>&6
4849 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4850 cat >> confdefs.h <<EOF
4851 #define $ac_tr_hdr 1
4853 ac_has_wchar_h=yes
4854 else
4855 echo "$ac_t""no" 1>&6
4856 ac_has_wchar_h=no
4858 done
4860 for ac_hdr in wctype.h
4862 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4863 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4864 echo "configure:4865: checking for $ac_hdr" >&5
4865 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4866 echo $ac_n "(cached) $ac_c" 1>&6
4867 else
4868 cat > conftest.$ac_ext <<EOF
4869 #line 4870 "configure"
4870 #include "confdefs.h"
4871 #include <$ac_hdr>
4873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4874 { (eval echo configure:4875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4876 if test -z "$ac_err"; then
4877 rm -rf conftest*
4878 eval "ac_cv_header_$ac_safe=yes"
4879 else
4880 echo "$ac_err" >&5
4881 echo "configure: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4883 rm -rf conftest*
4884 eval "ac_cv_header_$ac_safe=no"
4886 rm -f conftest*
4888 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4889 echo "$ac_t""yes" 1>&6
4890 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4891 cat >> confdefs.h <<EOF
4892 #define $ac_tr_hdr 1
4894 ac_has_wctype_h=yes
4895 else
4896 echo "$ac_t""no" 1>&6
4897 ac_has_wctype_h=no
4899 done
4902 if test x"$ac_has_wchar_h" = xyes &&
4903 test x"$ac_has_wctype_h" = xyes &&
4904 test x"$enable_c_mbchar" != xno; then
4906 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4907 echo "configure:4908: checking for WCHAR_MIN and WCHAR_MAX" >&5
4908 cat > conftest.$ac_ext <<EOF
4909 #line 4910 "configure"
4910 #include "confdefs.h"
4911 #include <wchar.h>
4912 int main() {
4913 int i = WCHAR_MIN; int j = WCHAR_MAX;
4914 ; return 0; }
4916 if { (eval echo configure:4917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4917 rm -rf conftest*
4918 has_wchar_minmax=yes
4919 else
4920 echo "configure: failed program was:" >&5
4921 cat conftest.$ac_ext >&5
4922 rm -rf conftest*
4923 has_wchar_minmax=no
4925 rm -f conftest*
4926 echo "$ac_t""$has_wchar_minmax" 1>&6
4928 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4929 echo "configure:4930: checking for WEOF" >&5
4930 cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4934 #include <wchar.h>
4935 #include <stddef.h>
4936 int main() {
4937 wint_t i = WEOF;
4938 ; return 0; }
4940 if { (eval echo configure:4941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4941 rm -rf conftest*
4942 has_weof=yes
4943 else
4944 echo "configure: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
4946 rm -rf conftest*
4947 has_weof=no
4949 rm -f conftest*
4950 echo "$ac_t""$has_weof" 1>&6
4952 ac_wfuncs=yes
4953 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4956 echo "configure:4957: checking for $ac_func" >&5
4957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4958 echo $ac_n "(cached) $ac_c" 1>&6
4959 else
4960 cat > conftest.$ac_ext <<EOF
4961 #line 4962 "configure"
4962 #include "confdefs.h"
4963 /* System header to define __stub macros and hopefully few prototypes,
4964 which can conflict with char $ac_func(); below. */
4965 #include <assert.h>
4966 /* Override any gcc2 internal prototype to avoid an error. */
4967 /* We use char because int might match the return type of a gcc2
4968 builtin and then its argument prototype would still apply. */
4969 char $ac_func();
4971 int main() {
4973 /* The GNU C library defines this for functions which it implements
4974 to always fail with ENOSYS. Some functions are actually named
4975 something starting with __ and the normal name is an alias. */
4976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4977 choke me
4978 #else
4979 $ac_func();
4980 #endif
4982 ; return 0; }
4984 if { (eval echo configure:4985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4985 rm -rf conftest*
4986 eval "ac_cv_func_$ac_func=yes"
4987 else
4988 echo "configure: failed program was:" >&5
4989 cat conftest.$ac_ext >&5
4990 rm -rf conftest*
4991 eval "ac_cv_func_$ac_func=no"
4993 rm -f conftest*
4996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4997 echo "$ac_t""yes" 1>&6
4998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4999 cat >> confdefs.h <<EOF
5000 #define $ac_tr_func 1
5003 else
5004 echo "$ac_t""no" 1>&6
5006 ac_wfuncs=no
5008 done
5011 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5012 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5013 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5014 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5015 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5016 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5019 echo "configure:5020: checking for $ac_func" >&5
5020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5021 echo $ac_n "(cached) $ac_c" 1>&6
5022 else
5023 cat > conftest.$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5026 /* System header to define __stub macros and hopefully few prototypes,
5027 which can conflict with char $ac_func(); below. */
5028 #include <assert.h>
5029 /* Override any gcc2 internal prototype to avoid an error. */
5030 /* We use char because int might match the return type of a gcc2
5031 builtin and then its argument prototype would still apply. */
5032 char $ac_func();
5034 int main() {
5036 /* The GNU C library defines this for functions which it implements
5037 to always fail with ENOSYS. Some functions are actually named
5038 something starting with __ and the normal name is an alias. */
5039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5040 choke me
5041 #else
5042 $ac_func();
5043 #endif
5045 ; return 0; }
5047 if { (eval echo configure:5048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5048 rm -rf conftest*
5049 eval "ac_cv_func_$ac_func=yes"
5050 else
5051 echo "configure: failed program was:" >&5
5052 cat conftest.$ac_ext >&5
5053 rm -rf conftest*
5054 eval "ac_cv_func_$ac_func=no"
5056 rm -f conftest*
5059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5060 echo "$ac_t""yes" 1>&6
5061 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5062 cat >> confdefs.h <<EOF
5063 #define $ac_tr_func 1
5066 else
5067 echo "$ac_t""no" 1>&6
5069 ac_wfuncs=no
5071 done
5074 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5075 echo "configure:5076: checking for ISO C99 wchar_t support" >&5
5076 if test x"$has_weof" = xyes &&
5077 test x"$has_wchar_minmax" = xyes &&
5078 test x"$ac_wfuncs" = xyes; then
5079 ac_isoC99_wchar_t=yes
5080 else
5081 ac_isoC99_wchar_t=no
5083 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5085 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5086 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5087 echo "configure:5088: checking for iconv.h" >&5
5088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5090 else
5091 cat > conftest.$ac_ext <<EOF
5092 #line 5093 "configure"
5093 #include "confdefs.h"
5094 #include <iconv.h>
5096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5097 { (eval echo configure:5098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5099 if test -z "$ac_err"; then
5100 rm -rf conftest*
5101 eval "ac_cv_header_$ac_safe=yes"
5102 else
5103 echo "$ac_err" >&5
5104 echo "configure: failed program was:" >&5
5105 cat conftest.$ac_ext >&5
5106 rm -rf conftest*
5107 eval "ac_cv_header_$ac_safe=no"
5109 rm -f conftest*
5111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5112 echo "$ac_t""yes" 1>&6
5113 ac_has_iconv_h=yes
5114 else
5115 echo "$ac_t""no" 1>&6
5116 ac_has_iconv_h=no
5119 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5120 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5121 echo "configure:5122: checking for langinfo.h" >&5
5122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5123 echo $ac_n "(cached) $ac_c" 1>&6
5124 else
5125 cat > conftest.$ac_ext <<EOF
5126 #line 5127 "configure"
5127 #include "confdefs.h"
5128 #include <langinfo.h>
5130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5131 { (eval echo configure:5132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5133 if test -z "$ac_err"; then
5134 rm -rf conftest*
5135 eval "ac_cv_header_$ac_safe=yes"
5136 else
5137 echo "$ac_err" >&5
5138 echo "configure: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5140 rm -rf conftest*
5141 eval "ac_cv_header_$ac_safe=no"
5143 rm -f conftest*
5145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5146 echo "$ac_t""yes" 1>&6
5147 ac_has_langinfo_h=yes
5148 else
5149 echo "$ac_t""no" 1>&6
5150 ac_has_langinfo_h=no
5154 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5155 echo "configure:5156: checking for iconv in -liconv" >&5
5156 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5158 echo $ac_n "(cached) $ac_c" 1>&6
5159 else
5160 ac_save_LIBS="$LIBS"
5161 LIBS="-liconv $LIBS"
5162 cat > conftest.$ac_ext <<EOF
5163 #line 5164 "configure"
5164 #include "confdefs.h"
5165 /* Override any gcc2 internal prototype to avoid an error. */
5166 /* We use char because int might match the return type of a gcc2
5167 builtin and then its argument prototype would still apply. */
5168 char iconv();
5170 int main() {
5171 iconv()
5172 ; return 0; }
5174 if { (eval echo configure:5175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5175 rm -rf conftest*
5176 eval "ac_cv_lib_$ac_lib_var=yes"
5177 else
5178 echo "configure: failed program was:" >&5
5179 cat conftest.$ac_ext >&5
5180 rm -rf conftest*
5181 eval "ac_cv_lib_$ac_lib_var=no"
5183 rm -f conftest*
5184 LIBS="$ac_save_LIBS"
5187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5188 echo "$ac_t""yes" 1>&6
5189 libiconv="-liconv"
5190 else
5191 echo "$ac_t""no" 1>&6
5194 ac_save_LIBS="$LIBS"
5195 LIBS="$LIBS $libiconv"
5197 for ac_func in iconv_open iconv_close iconv nl_langinfo
5199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5200 echo "configure:5201: checking for $ac_func" >&5
5201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5202 echo $ac_n "(cached) $ac_c" 1>&6
5203 else
5204 cat > conftest.$ac_ext <<EOF
5205 #line 5206 "configure"
5206 #include "confdefs.h"
5207 /* System header to define __stub macros and hopefully few prototypes,
5208 which can conflict with char $ac_func(); below. */
5209 #include <assert.h>
5210 /* Override any gcc2 internal prototype to avoid an error. */
5211 /* We use char because int might match the return type of a gcc2
5212 builtin and then its argument prototype would still apply. */
5213 char $ac_func();
5215 int main() {
5217 /* The GNU C library defines this for functions which it implements
5218 to always fail with ENOSYS. Some functions are actually named
5219 something starting with __ and the normal name is an alias. */
5220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5221 choke me
5222 #else
5223 $ac_func();
5224 #endif
5226 ; return 0; }
5228 if { (eval echo configure:5229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5229 rm -rf conftest*
5230 eval "ac_cv_func_$ac_func=yes"
5231 else
5232 echo "configure: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5234 rm -rf conftest*
5235 eval "ac_cv_func_$ac_func=no"
5237 rm -f conftest*
5240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5241 echo "$ac_t""yes" 1>&6
5242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5243 cat >> confdefs.h <<EOF
5244 #define $ac_tr_func 1
5247 ac_XPG2funcs=yes
5248 else
5249 echo "$ac_t""no" 1>&6
5250 ac_XPG2funcs=no
5252 done
5255 LIBS="$ac_save_LIBS"
5257 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5258 echo "configure:5259: checking for XPG2 wchar_t support" >&5
5259 if test x"$ac_has_iconv_h" = xyes &&
5260 test x"$ac_has_langinfo_h" = xyes &&
5261 test x"$ac_XPG2funcs" = xyes; then
5262 ac_XPG2_wchar_t=yes
5263 else
5264 ac_XPG2_wchar_t=no
5266 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5268 if test x"$ac_isoC99_wchar_t" = xyes &&
5269 test x"$ac_XPG2_wchar_t" = xyes; then
5270 cat >> confdefs.h <<\EOF
5271 #define _GLIBCPP_USE_WCHAR_T 1
5274 enable_wchar_t=yes
5277 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5278 echo "configure:5279: checking for enabled wchar_t specializations" >&5
5279 echo "$ac_t""$enable_wchar_t" 1>&6
5282 if test "$enable_wchar_t" = yes; then
5283 GLIBCPP_TEST_WCHAR_T_TRUE=
5284 GLIBCPP_TEST_WCHAR_T_FALSE='#'
5285 else
5286 GLIBCPP_TEST_WCHAR_T_TRUE='#'
5287 GLIBCPP_TEST_WCHAR_T_FALSE=
5290 cat >> confdefs.h <<\EOF
5291 #define HAVE_LC_MESSAGES 1
5294 cat >> confdefs.h <<\EOF
5295 #define HAVE_DRAND48 1
5298 cat >> confdefs.h <<\EOF
5299 #define HAVE_GETPAGESIZE 1
5302 cat >> confdefs.h <<\EOF
5303 #define HAVE_SETENV 1
5306 cat >> confdefs.h <<\EOF
5307 #define HAVE_SIGSETJMP 1
5310 cat >> confdefs.h <<\EOF
5311 #define HAVE_COPYSIGN 1
5314 cat >> confdefs.h <<\EOF
5315 #define HAVE_COPYSIGNF 1
5318 cat >> confdefs.h <<\EOF
5319 #define HAVE_FINITEF 1
5322 cat >> confdefs.h <<\EOF
5323 #define HAVE_FINITE 1
5326 cat >> confdefs.h <<\EOF
5327 #define HAVE_FREXPF 1
5330 cat >> confdefs.h <<\EOF
5331 #define HAVE_HYPOT 1
5334 cat >> confdefs.h <<\EOF
5335 #define HAVE_HYPOTF 1
5338 cat >> confdefs.h <<\EOF
5339 #define HAVE_ISINF 1
5342 cat >> confdefs.h <<\EOF
5343 #define HAVE_ISNAN 1
5346 cat >> confdefs.h <<\EOF
5347 #define HAVE_ISNANF 1
5351 cat >> confdefs.h <<\EOF
5352 #define HAVE_MMAP 1
5355 cat >> confdefs.h <<\EOF
5356 #define HAVE_ACOSF 1
5359 cat >> confdefs.h <<\EOF
5360 #define HAVE_ASINF 1
5363 cat >> confdefs.h <<\EOF
5364 #define HAVE_ATAN2F 1
5367 cat >> confdefs.h <<\EOF
5368 #define HAVE_ATANF 1
5371 cat >> confdefs.h <<\EOF
5372 #define HAVE_CEILF 1
5375 cat >> confdefs.h <<\EOF
5376 #define HAVE_COPYSIGN 1
5379 cat >> confdefs.h <<\EOF
5380 #define HAVE_COPYSIGNF 1
5383 cat >> confdefs.h <<\EOF
5384 #define HAVE_COSF 1
5387 cat >> confdefs.h <<\EOF
5388 #define HAVE_COSHF 1
5391 cat >> confdefs.h <<\EOF
5392 #define HAVE_EXPF 1
5395 cat >> confdefs.h <<\EOF
5396 #define HAVE_FABSF 1
5399 cat >> confdefs.h <<\EOF
5400 #define HAVE_FLOORF 1
5403 cat >> confdefs.h <<\EOF
5404 #define HAVE_FMODF 1
5407 cat >> confdefs.h <<\EOF
5408 #define HAVE_FREXPF 1
5411 cat >> confdefs.h <<\EOF
5412 #define HAVE_LDEXPF 1
5415 cat >> confdefs.h <<\EOF
5416 #define HAVE_LOG10F 1
5419 cat >> confdefs.h <<\EOF
5420 #define HAVE_LOGF 1
5423 cat >> confdefs.h <<\EOF
5424 #define HAVE_MODFF 1
5427 cat >> confdefs.h <<\EOF
5428 #define HAVE_POWF 1
5431 cat >> confdefs.h <<\EOF
5432 #define HAVE_SINF 1
5435 cat >> confdefs.h <<\EOF
5436 #define HAVE_SINHF 1
5439 cat >> confdefs.h <<\EOF
5440 #define HAVE_SQRTF 1
5443 cat >> confdefs.h <<\EOF
5444 #define HAVE_TANF 1
5447 cat >> confdefs.h <<\EOF
5448 #define HAVE_TANHF 1
5451 if test x"long_double_math_on_this_cpu" = x"yes"; then
5452 cat >> confdefs.h <<\EOF
5453 #define HAVE_FINITEL 1
5456 cat >> confdefs.h <<\EOF
5457 #define HAVE_ISINFL 1
5460 cat >> confdefs.h <<\EOF
5461 #define HAVE_ISNANL 1
5466 *-hpux*)
5467 os_include_dir="os/hpux"
5468 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5469 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5470 fp.h locale.h float.h inttypes.h
5472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5474 echo "configure:5475: checking for $ac_hdr" >&5
5475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5476 echo $ac_n "(cached) $ac_c" 1>&6
5477 else
5478 cat > conftest.$ac_ext <<EOF
5479 #line 5480 "configure"
5480 #include "confdefs.h"
5481 #include <$ac_hdr>
5483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5484 { (eval echo configure:5485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5486 if test -z "$ac_err"; then
5487 rm -rf conftest*
5488 eval "ac_cv_header_$ac_safe=yes"
5489 else
5490 echo "$ac_err" >&5
5491 echo "configure: failed program was:" >&5
5492 cat conftest.$ac_ext >&5
5493 rm -rf conftest*
5494 eval "ac_cv_header_$ac_safe=no"
5496 rm -f conftest*
5498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5499 echo "$ac_t""yes" 1>&6
5500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5501 cat >> confdefs.h <<EOF
5502 #define $ac_tr_hdr 1
5505 else
5506 echo "$ac_t""no" 1>&6
5508 done
5510 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5513 # If we're not using GNU ld, then there's no point in even trying these
5514 # tests. Check for that first. We should have already tested for gld
5515 # by now (in libtool), but require it now just to be safe...
5516 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5517 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5520 # The name set by libtool depends on the version of libtool. Shame on us
5521 # for depending on an impl detail, but c'est la vie. Older versions used
5522 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5523 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5524 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5525 # set (hence we're using an older libtool), then set it.
5526 if test x${with_gnu_ld+set} != xset; then
5527 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5528 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5529 with_gnu_ld=no
5530 else
5531 with_gnu_ld=$ac_cv_prog_gnu_ld
5535 # Start by getting the version number. I think the libtool test already
5536 # does some of this, but throws away the result.
5538 ldver=`$LD --version 2>/dev/null | head -1 | \
5539 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5541 glibcpp_gnu_ld_version=`echo $ldver | \
5542 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5544 # Set --gc-sections.
5545 if test "$with_gnu_ld" = "notbroken"; then
5546 # GNU ld it is! Joy and bunny rabbits!
5548 # All these tests are for C++; save the language and the compiler flags.
5549 # Need to do this so that g++ won't try to link in libstdc++
5550 ac_test_CFLAGS="${CFLAGS+set}"
5551 ac_save_CFLAGS="$CFLAGS"
5552 CFLAGS='-x c++ -Wl,--gc-sections'
5554 # Check for -Wl,--gc-sections
5555 # XXX This test is broken at the moment, as symbols required for
5556 # linking are now in libsupc++ (not built yet.....). In addition,
5557 # this test has cored on solaris in the past. In addition,
5558 # --gc-sections doesn't really work at the moment (keeps on discarding
5559 # used sections, first .eh_frame and now some of the glibc sections for
5560 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5561 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5562 echo "configure:5563: checking for ld that supports -Wl,--gc-sections" >&5
5563 if test "$cross_compiling" = yes; then
5564 ac_sectionLDflags=yes
5565 else
5566 cat > conftest.$ac_ext <<EOF
5567 #line 5568 "configure"
5568 #include "confdefs.h"
5570 int main(void)
5572 try { throw 1; }
5573 catch (...) { };
5574 return 0;
5578 if { (eval echo configure:5579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5579 then
5580 ac_sectionLDflags=yes
5581 else
5582 echo "configure: failed program was:" >&5
5583 cat conftest.$ac_ext >&5
5584 rm -fr conftest*
5585 ac_sectionLDflags=no
5587 rm -fr conftest*
5590 if test "$ac_test_CFLAGS" = set; then
5591 CFLAGS="$ac_save_CFLAGS"
5592 else
5593 # this is the suspicious part
5594 CFLAGS=''
5596 if test "$ac_sectionLDflags" = "yes"; then
5597 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5599 echo "$ac_t""$ac_sectionLDflags" 1>&6
5602 # Set linker optimization flags.
5603 if test x"$with_gnu_ld" = x"yes"; then
5604 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5611 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5612 echo "configure:5613: checking for main in -lm" >&5
5613 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5615 echo $ac_n "(cached) $ac_c" 1>&6
5616 else
5617 ac_save_LIBS="$LIBS"
5618 LIBS="-lm $LIBS"
5619 cat > conftest.$ac_ext <<EOF
5620 #line 5621 "configure"
5621 #include "confdefs.h"
5623 int main() {
5624 main()
5625 ; return 0; }
5627 if { (eval echo configure:5628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5628 rm -rf conftest*
5629 eval "ac_cv_lib_$ac_lib_var=yes"
5630 else
5631 echo "configure: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5633 rm -rf conftest*
5634 eval "ac_cv_lib_$ac_lib_var=no"
5636 rm -f conftest*
5637 LIBS="$ac_save_LIBS"
5640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5641 echo "$ac_t""yes" 1>&6
5642 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5643 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5644 cat >> confdefs.h <<EOF
5645 #define $ac_tr_lib 1
5648 LIBS="-lm $LIBS"
5650 else
5651 echo "$ac_t""no" 1>&6
5654 for ac_func in nan copysignf
5656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5657 echo "configure:5658: checking for $ac_func" >&5
5658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5659 echo $ac_n "(cached) $ac_c" 1>&6
5660 else
5661 cat > conftest.$ac_ext <<EOF
5662 #line 5663 "configure"
5663 #include "confdefs.h"
5664 /* System header to define __stub macros and hopefully few prototypes,
5665 which can conflict with char $ac_func(); below. */
5666 #include <assert.h>
5667 /* Override any gcc2 internal prototype to avoid an error. */
5668 /* We use char because int might match the return type of a gcc2
5669 builtin and then its argument prototype would still apply. */
5670 char $ac_func();
5672 int main() {
5674 /* The GNU C library defines this for functions which it implements
5675 to always fail with ENOSYS. Some functions are actually named
5676 something starting with __ and the normal name is an alias. */
5677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5678 choke me
5679 #else
5680 $ac_func();
5681 #endif
5683 ; return 0; }
5685 if { (eval echo configure:5686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5686 rm -rf conftest*
5687 eval "ac_cv_func_$ac_func=yes"
5688 else
5689 echo "configure: failed program was:" >&5
5690 cat conftest.$ac_ext >&5
5691 rm -rf conftest*
5692 eval "ac_cv_func_$ac_func=no"
5694 rm -f conftest*
5697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5698 echo "$ac_t""yes" 1>&6
5699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5700 cat >> confdefs.h <<EOF
5701 #define $ac_tr_func 1
5704 else
5705 echo "$ac_t""no" 1>&6
5706 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5708 done
5711 for ac_func in __signbit
5713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5714 echo "configure:5715: checking for $ac_func" >&5
5715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5716 echo $ac_n "(cached) $ac_c" 1>&6
5717 else
5718 cat > conftest.$ac_ext <<EOF
5719 #line 5720 "configure"
5720 #include "confdefs.h"
5721 /* System header to define __stub macros and hopefully few prototypes,
5722 which can conflict with char $ac_func(); below. */
5723 #include <assert.h>
5724 /* Override any gcc2 internal prototype to avoid an error. */
5725 /* We use char because int might match the return type of a gcc2
5726 builtin and then its argument prototype would still apply. */
5727 char $ac_func();
5729 int main() {
5731 /* The GNU C library defines this for functions which it implements
5732 to always fail with ENOSYS. Some functions are actually named
5733 something starting with __ and the normal name is an alias. */
5734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5735 choke me
5736 #else
5737 $ac_func();
5738 #endif
5740 ; return 0; }
5742 if { (eval echo configure:5743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5743 rm -rf conftest*
5744 eval "ac_cv_func_$ac_func=yes"
5745 else
5746 echo "configure: failed program was:" >&5
5747 cat conftest.$ac_ext >&5
5748 rm -rf conftest*
5749 eval "ac_cv_func_$ac_func=no"
5751 rm -f conftest*
5754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5755 echo "$ac_t""yes" 1>&6
5756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5757 cat >> confdefs.h <<EOF
5758 #define $ac_tr_func 1
5761 else
5762 echo "$ac_t""no" 1>&6
5763 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5765 done
5767 for ac_func in __signbitf
5769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5770 echo "configure:5771: checking for $ac_func" >&5
5771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5772 echo $ac_n "(cached) $ac_c" 1>&6
5773 else
5774 cat > conftest.$ac_ext <<EOF
5775 #line 5776 "configure"
5776 #include "confdefs.h"
5777 /* System header to define __stub macros and hopefully few prototypes,
5778 which can conflict with char $ac_func(); below. */
5779 #include <assert.h>
5780 /* Override any gcc2 internal prototype to avoid an error. */
5781 /* We use char because int might match the return type of a gcc2
5782 builtin and then its argument prototype would still apply. */
5783 char $ac_func();
5785 int main() {
5787 /* The GNU C library defines this for functions which it implements
5788 to always fail with ENOSYS. Some functions are actually named
5789 something starting with __ and the normal name is an alias. */
5790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5791 choke me
5792 #else
5793 $ac_func();
5794 #endif
5796 ; return 0; }
5798 if { (eval echo configure:5799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5799 rm -rf conftest*
5800 eval "ac_cv_func_$ac_func=yes"
5801 else
5802 echo "configure: failed program was:" >&5
5803 cat conftest.$ac_ext >&5
5804 rm -rf conftest*
5805 eval "ac_cv_func_$ac_func=no"
5807 rm -f conftest*
5810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5811 echo "$ac_t""yes" 1>&6
5812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5813 cat >> confdefs.h <<EOF
5814 #define $ac_tr_func 1
5817 else
5818 echo "$ac_t""no" 1>&6
5819 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5821 done
5824 if test x$ac_cv_func_copysignl = x"yes"; then
5825 for ac_func in __signbitl
5827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5828 echo "configure:5829: checking for $ac_func" >&5
5829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5830 echo $ac_n "(cached) $ac_c" 1>&6
5831 else
5832 cat > conftest.$ac_ext <<EOF
5833 #line 5834 "configure"
5834 #include "confdefs.h"
5835 /* System header to define __stub macros and hopefully few prototypes,
5836 which can conflict with char $ac_func(); below. */
5837 #include <assert.h>
5838 /* Override any gcc2 internal prototype to avoid an error. */
5839 /* We use char because int might match the return type of a gcc2
5840 builtin and then its argument prototype would still apply. */
5841 char $ac_func();
5843 int main() {
5845 /* The GNU C library defines this for functions which it implements
5846 to always fail with ENOSYS. Some functions are actually named
5847 something starting with __ and the normal name is an alias. */
5848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5849 choke me
5850 #else
5851 $ac_func();
5852 #endif
5854 ; return 0; }
5856 if { (eval echo configure:5857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5857 rm -rf conftest*
5858 eval "ac_cv_func_$ac_func=yes"
5859 else
5860 echo "configure: failed program was:" >&5
5861 cat conftest.$ac_ext >&5
5862 rm -rf conftest*
5863 eval "ac_cv_func_$ac_func=no"
5865 rm -f conftest*
5868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5869 echo "$ac_t""yes" 1>&6
5870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5871 cat >> confdefs.h <<EOF
5872 #define $ac_tr_func 1
5875 else
5876 echo "$ac_t""no" 1>&6
5877 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5879 done
5883 if test -n "$LIBMATHOBJS"; then
5884 need_libmath=yes
5889 if test "$need_libmath" = yes; then
5890 GLIBCPP_BUILD_LIBMATH_TRUE=
5891 GLIBCPP_BUILD_LIBMATH_FALSE='#'
5892 else
5893 GLIBCPP_BUILD_LIBMATH_TRUE='#'
5894 GLIBCPP_BUILD_LIBMATH_FALSE=
5898 enable_wchar_t=no
5900 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5901 echo "configure:5902: checking for mbstate_t" >&5
5902 cat > conftest.$ac_ext <<EOF
5903 #line 5904 "configure"
5904 #include "confdefs.h"
5905 #include <wchar.h>
5906 int main() {
5907 mbstate_t teststate;
5908 ; return 0; }
5910 if { (eval echo configure:5911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5911 rm -rf conftest*
5912 have_mbstate_t=yes
5913 else
5914 echo "configure: failed program was:" >&5
5915 cat conftest.$ac_ext >&5
5916 rm -rf conftest*
5917 have_mbstate_t=no
5919 rm -f conftest*
5920 echo "$ac_t""$have_mbstate_t" 1>&6
5921 if test x"$have_mbstate_t" = xyes; then
5922 cat >> confdefs.h <<\EOF
5923 #define HAVE_MBSTATE_T 1
5928 for ac_hdr in wchar.h
5930 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5931 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5932 echo "configure:5933: checking for $ac_hdr" >&5
5933 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5934 echo $ac_n "(cached) $ac_c" 1>&6
5935 else
5936 cat > conftest.$ac_ext <<EOF
5937 #line 5938 "configure"
5938 #include "confdefs.h"
5939 #include <$ac_hdr>
5941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5942 { (eval echo configure:5943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5944 if test -z "$ac_err"; then
5945 rm -rf conftest*
5946 eval "ac_cv_header_$ac_safe=yes"
5947 else
5948 echo "$ac_err" >&5
5949 echo "configure: failed program was:" >&5
5950 cat conftest.$ac_ext >&5
5951 rm -rf conftest*
5952 eval "ac_cv_header_$ac_safe=no"
5954 rm -f conftest*
5956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5957 echo "$ac_t""yes" 1>&6
5958 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5959 cat >> confdefs.h <<EOF
5960 #define $ac_tr_hdr 1
5962 ac_has_wchar_h=yes
5963 else
5964 echo "$ac_t""no" 1>&6
5965 ac_has_wchar_h=no
5967 done
5969 for ac_hdr in wctype.h
5971 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5972 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5973 echo "configure:5974: checking for $ac_hdr" >&5
5974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5975 echo $ac_n "(cached) $ac_c" 1>&6
5976 else
5977 cat > conftest.$ac_ext <<EOF
5978 #line 5979 "configure"
5979 #include "confdefs.h"
5980 #include <$ac_hdr>
5982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5983 { (eval echo configure:5984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5985 if test -z "$ac_err"; then
5986 rm -rf conftest*
5987 eval "ac_cv_header_$ac_safe=yes"
5988 else
5989 echo "$ac_err" >&5
5990 echo "configure: failed program was:" >&5
5991 cat conftest.$ac_ext >&5
5992 rm -rf conftest*
5993 eval "ac_cv_header_$ac_safe=no"
5995 rm -f conftest*
5997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5998 echo "$ac_t""yes" 1>&6
5999 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6000 cat >> confdefs.h <<EOF
6001 #define $ac_tr_hdr 1
6003 ac_has_wctype_h=yes
6004 else
6005 echo "$ac_t""no" 1>&6
6006 ac_has_wctype_h=no
6008 done
6011 if test x"$ac_has_wchar_h" = xyes &&
6012 test x"$ac_has_wctype_h" = xyes &&
6013 test x"$enable_c_mbchar" != xno; then
6015 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6016 echo "configure:6017: checking for WCHAR_MIN and WCHAR_MAX" >&5
6017 cat > conftest.$ac_ext <<EOF
6018 #line 6019 "configure"
6019 #include "confdefs.h"
6020 #include <wchar.h>
6021 int main() {
6022 int i = WCHAR_MIN; int j = WCHAR_MAX;
6023 ; return 0; }
6025 if { (eval echo configure:6026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6026 rm -rf conftest*
6027 has_wchar_minmax=yes
6028 else
6029 echo "configure: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6031 rm -rf conftest*
6032 has_wchar_minmax=no
6034 rm -f conftest*
6035 echo "$ac_t""$has_wchar_minmax" 1>&6
6037 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6038 echo "configure:6039: checking for WEOF" >&5
6039 cat > conftest.$ac_ext <<EOF
6040 #line 6041 "configure"
6041 #include "confdefs.h"
6043 #include <wchar.h>
6044 #include <stddef.h>
6045 int main() {
6046 wint_t i = WEOF;
6047 ; return 0; }
6049 if { (eval echo configure:6050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6050 rm -rf conftest*
6051 has_weof=yes
6052 else
6053 echo "configure: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6055 rm -rf conftest*
6056 has_weof=no
6058 rm -f conftest*
6059 echo "$ac_t""$has_weof" 1>&6
6061 ac_wfuncs=yes
6062 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6065 echo "configure:6066: checking for $ac_func" >&5
6066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6068 else
6069 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6072 /* System header to define __stub macros and hopefully few prototypes,
6073 which can conflict with char $ac_func(); below. */
6074 #include <assert.h>
6075 /* Override any gcc2 internal prototype to avoid an error. */
6076 /* We use char because int might match the return type of a gcc2
6077 builtin and then its argument prototype would still apply. */
6078 char $ac_func();
6080 int main() {
6082 /* The GNU C library defines this for functions which it implements
6083 to always fail with ENOSYS. Some functions are actually named
6084 something starting with __ and the normal name is an alias. */
6085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6086 choke me
6087 #else
6088 $ac_func();
6089 #endif
6091 ; return 0; }
6093 if { (eval echo configure:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6094 rm -rf conftest*
6095 eval "ac_cv_func_$ac_func=yes"
6096 else
6097 echo "configure: failed program was:" >&5
6098 cat conftest.$ac_ext >&5
6099 rm -rf conftest*
6100 eval "ac_cv_func_$ac_func=no"
6102 rm -f conftest*
6105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6106 echo "$ac_t""yes" 1>&6
6107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6108 cat >> confdefs.h <<EOF
6109 #define $ac_tr_func 1
6112 else
6113 echo "$ac_t""no" 1>&6
6115 ac_wfuncs=no
6117 done
6120 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6121 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6122 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6123 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6124 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6125 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6128 echo "configure:6129: checking for $ac_func" >&5
6129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6130 echo $ac_n "(cached) $ac_c" 1>&6
6131 else
6132 cat > conftest.$ac_ext <<EOF
6133 #line 6134 "configure"
6134 #include "confdefs.h"
6135 /* System header to define __stub macros and hopefully few prototypes,
6136 which can conflict with char $ac_func(); below. */
6137 #include <assert.h>
6138 /* Override any gcc2 internal prototype to avoid an error. */
6139 /* We use char because int might match the return type of a gcc2
6140 builtin and then its argument prototype would still apply. */
6141 char $ac_func();
6143 int main() {
6145 /* The GNU C library defines this for functions which it implements
6146 to always fail with ENOSYS. Some functions are actually named
6147 something starting with __ and the normal name is an alias. */
6148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6149 choke me
6150 #else
6151 $ac_func();
6152 #endif
6154 ; return 0; }
6156 if { (eval echo configure:6157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6157 rm -rf conftest*
6158 eval "ac_cv_func_$ac_func=yes"
6159 else
6160 echo "configure: failed program was:" >&5
6161 cat conftest.$ac_ext >&5
6162 rm -rf conftest*
6163 eval "ac_cv_func_$ac_func=no"
6165 rm -f conftest*
6168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6169 echo "$ac_t""yes" 1>&6
6170 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6171 cat >> confdefs.h <<EOF
6172 #define $ac_tr_func 1
6175 else
6176 echo "$ac_t""no" 1>&6
6178 ac_wfuncs=no
6180 done
6183 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6184 echo "configure:6185: checking for ISO C99 wchar_t support" >&5
6185 if test x"$has_weof" = xyes &&
6186 test x"$has_wchar_minmax" = xyes &&
6187 test x"$ac_wfuncs" = xyes; then
6188 ac_isoC99_wchar_t=yes
6189 else
6190 ac_isoC99_wchar_t=no
6192 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6194 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6195 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6196 echo "configure:6197: checking for iconv.h" >&5
6197 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6198 echo $ac_n "(cached) $ac_c" 1>&6
6199 else
6200 cat > conftest.$ac_ext <<EOF
6201 #line 6202 "configure"
6202 #include "confdefs.h"
6203 #include <iconv.h>
6205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6206 { (eval echo configure:6207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6208 if test -z "$ac_err"; then
6209 rm -rf conftest*
6210 eval "ac_cv_header_$ac_safe=yes"
6211 else
6212 echo "$ac_err" >&5
6213 echo "configure: failed program was:" >&5
6214 cat conftest.$ac_ext >&5
6215 rm -rf conftest*
6216 eval "ac_cv_header_$ac_safe=no"
6218 rm -f conftest*
6220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6221 echo "$ac_t""yes" 1>&6
6222 ac_has_iconv_h=yes
6223 else
6224 echo "$ac_t""no" 1>&6
6225 ac_has_iconv_h=no
6228 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6229 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6230 echo "configure:6231: checking for langinfo.h" >&5
6231 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6232 echo $ac_n "(cached) $ac_c" 1>&6
6233 else
6234 cat > conftest.$ac_ext <<EOF
6235 #line 6236 "configure"
6236 #include "confdefs.h"
6237 #include <langinfo.h>
6239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6240 { (eval echo configure:6241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6242 if test -z "$ac_err"; then
6243 rm -rf conftest*
6244 eval "ac_cv_header_$ac_safe=yes"
6245 else
6246 echo "$ac_err" >&5
6247 echo "configure: failed program was:" >&5
6248 cat conftest.$ac_ext >&5
6249 rm -rf conftest*
6250 eval "ac_cv_header_$ac_safe=no"
6252 rm -f conftest*
6254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6255 echo "$ac_t""yes" 1>&6
6256 ac_has_langinfo_h=yes
6257 else
6258 echo "$ac_t""no" 1>&6
6259 ac_has_langinfo_h=no
6263 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6264 echo "configure:6265: checking for iconv in -liconv" >&5
6265 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6267 echo $ac_n "(cached) $ac_c" 1>&6
6268 else
6269 ac_save_LIBS="$LIBS"
6270 LIBS="-liconv $LIBS"
6271 cat > conftest.$ac_ext <<EOF
6272 #line 6273 "configure"
6273 #include "confdefs.h"
6274 /* Override any gcc2 internal prototype to avoid an error. */
6275 /* We use char because int might match the return type of a gcc2
6276 builtin and then its argument prototype would still apply. */
6277 char iconv();
6279 int main() {
6280 iconv()
6281 ; return 0; }
6283 if { (eval echo configure:6284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6284 rm -rf conftest*
6285 eval "ac_cv_lib_$ac_lib_var=yes"
6286 else
6287 echo "configure: failed program was:" >&5
6288 cat conftest.$ac_ext >&5
6289 rm -rf conftest*
6290 eval "ac_cv_lib_$ac_lib_var=no"
6292 rm -f conftest*
6293 LIBS="$ac_save_LIBS"
6296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6297 echo "$ac_t""yes" 1>&6
6298 libiconv="-liconv"
6299 else
6300 echo "$ac_t""no" 1>&6
6303 ac_save_LIBS="$LIBS"
6304 LIBS="$LIBS $libiconv"
6306 for ac_func in iconv_open iconv_close iconv nl_langinfo
6308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6309 echo "configure:6310: checking for $ac_func" >&5
6310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6311 echo $ac_n "(cached) $ac_c" 1>&6
6312 else
6313 cat > conftest.$ac_ext <<EOF
6314 #line 6315 "configure"
6315 #include "confdefs.h"
6316 /* System header to define __stub macros and hopefully few prototypes,
6317 which can conflict with char $ac_func(); below. */
6318 #include <assert.h>
6319 /* Override any gcc2 internal prototype to avoid an error. */
6320 /* We use char because int might match the return type of a gcc2
6321 builtin and then its argument prototype would still apply. */
6322 char $ac_func();
6324 int main() {
6326 /* The GNU C library defines this for functions which it implements
6327 to always fail with ENOSYS. Some functions are actually named
6328 something starting with __ and the normal name is an alias. */
6329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6330 choke me
6331 #else
6332 $ac_func();
6333 #endif
6335 ; return 0; }
6337 if { (eval echo configure:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6338 rm -rf conftest*
6339 eval "ac_cv_func_$ac_func=yes"
6340 else
6341 echo "configure: failed program was:" >&5
6342 cat conftest.$ac_ext >&5
6343 rm -rf conftest*
6344 eval "ac_cv_func_$ac_func=no"
6346 rm -f conftest*
6349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6350 echo "$ac_t""yes" 1>&6
6351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6352 cat >> confdefs.h <<EOF
6353 #define $ac_tr_func 1
6356 ac_XPG2funcs=yes
6357 else
6358 echo "$ac_t""no" 1>&6
6359 ac_XPG2funcs=no
6361 done
6364 LIBS="$ac_save_LIBS"
6366 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6367 echo "configure:6368: checking for XPG2 wchar_t support" >&5
6368 if test x"$ac_has_iconv_h" = xyes &&
6369 test x"$ac_has_langinfo_h" = xyes &&
6370 test x"$ac_XPG2funcs" = xyes; then
6371 ac_XPG2_wchar_t=yes
6372 else
6373 ac_XPG2_wchar_t=no
6375 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6377 if test x"$ac_isoC99_wchar_t" = xyes &&
6378 test x"$ac_XPG2_wchar_t" = xyes; then
6379 cat >> confdefs.h <<\EOF
6380 #define _GLIBCPP_USE_WCHAR_T 1
6383 enable_wchar_t=yes
6386 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6387 echo "configure:6388: checking for enabled wchar_t specializations" >&5
6388 echo "$ac_t""$enable_wchar_t" 1>&6
6391 if test "$enable_wchar_t" = yes; then
6392 GLIBCPP_TEST_WCHAR_T_TRUE=
6393 GLIBCPP_TEST_WCHAR_T_FALSE='#'
6394 else
6395 GLIBCPP_TEST_WCHAR_T_TRUE='#'
6396 GLIBCPP_TEST_WCHAR_T_FALSE=
6399 cat >> confdefs.h <<\EOF
6400 #define HAVE_COPYSIGN 1
6403 cat >> confdefs.h <<\EOF
6404 #define HAVE_COPYSIGNF 1
6407 cat >> confdefs.h <<\EOF
6408 #define HAVE_FREXPF 1
6411 cat >> confdefs.h <<\EOF
6412 #define HAVE_HYPOT 1
6415 case "$target" in
6416 *-hpux10*)
6417 cat >> confdefs.h <<\EOF
6418 #define HAVE_FINITE 1
6421 cat >> confdefs.h <<\EOF
6422 #define HAVE_FINITEF 1
6425 cat >> confdefs.h <<\EOF
6426 #define HAVE_ISINF 1
6429 cat >> confdefs.h <<\EOF
6430 #define HAVE_ISINFF 1
6433 cat >> confdefs.h <<\EOF
6434 #define HAVE_ISNAN 1
6437 cat >> confdefs.h <<\EOF
6438 #define HAVE_ISNANF 1
6442 esac
6444 *-linux*)
6445 os_include_dir="os/gnu-linux"
6446 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6447 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6448 fp.h locale.h float.h inttypes.h
6450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6452 echo "configure:6453: checking for $ac_hdr" >&5
6453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6454 echo $ac_n "(cached) $ac_c" 1>&6
6455 else
6456 cat > conftest.$ac_ext <<EOF
6457 #line 6458 "configure"
6458 #include "confdefs.h"
6459 #include <$ac_hdr>
6461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6462 { (eval echo configure:6463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6464 if test -z "$ac_err"; then
6465 rm -rf conftest*
6466 eval "ac_cv_header_$ac_safe=yes"
6467 else
6468 echo "$ac_err" >&5
6469 echo "configure: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6471 rm -rf conftest*
6472 eval "ac_cv_header_$ac_safe=no"
6474 rm -f conftest*
6476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6477 echo "$ac_t""yes" 1>&6
6478 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6479 cat >> confdefs.h <<EOF
6480 #define $ac_tr_hdr 1
6483 else
6484 echo "$ac_t""no" 1>&6
6486 done
6488 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6491 # If we're not using GNU ld, then there's no point in even trying these
6492 # tests. Check for that first. We should have already tested for gld
6493 # by now (in libtool), but require it now just to be safe...
6494 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6495 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6498 # The name set by libtool depends on the version of libtool. Shame on us
6499 # for depending on an impl detail, but c'est la vie. Older versions used
6500 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6501 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6502 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6503 # set (hence we're using an older libtool), then set it.
6504 if test x${with_gnu_ld+set} != xset; then
6505 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6506 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6507 with_gnu_ld=no
6508 else
6509 with_gnu_ld=$ac_cv_prog_gnu_ld
6513 # Start by getting the version number. I think the libtool test already
6514 # does some of this, but throws away the result.
6516 ldver=`$LD --version 2>/dev/null | head -1 | \
6517 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6519 glibcpp_gnu_ld_version=`echo $ldver | \
6520 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6522 # Set --gc-sections.
6523 if test "$with_gnu_ld" = "notbroken"; then
6524 # GNU ld it is! Joy and bunny rabbits!
6526 # All these tests are for C++; save the language and the compiler flags.
6527 # Need to do this so that g++ won't try to link in libstdc++
6528 ac_test_CFLAGS="${CFLAGS+set}"
6529 ac_save_CFLAGS="$CFLAGS"
6530 CFLAGS='-x c++ -Wl,--gc-sections'
6532 # Check for -Wl,--gc-sections
6533 # XXX This test is broken at the moment, as symbols required for
6534 # linking are now in libsupc++ (not built yet.....). In addition,
6535 # this test has cored on solaris in the past. In addition,
6536 # --gc-sections doesn't really work at the moment (keeps on discarding
6537 # used sections, first .eh_frame and now some of the glibc sections for
6538 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6539 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6540 echo "configure:6541: checking for ld that supports -Wl,--gc-sections" >&5
6541 if test "$cross_compiling" = yes; then
6542 ac_sectionLDflags=yes
6543 else
6544 cat > conftest.$ac_ext <<EOF
6545 #line 6546 "configure"
6546 #include "confdefs.h"
6548 int main(void)
6550 try { throw 1; }
6551 catch (...) { };
6552 return 0;
6556 if { (eval echo configure:6557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6557 then
6558 ac_sectionLDflags=yes
6559 else
6560 echo "configure: failed program was:" >&5
6561 cat conftest.$ac_ext >&5
6562 rm -fr conftest*
6563 ac_sectionLDflags=no
6565 rm -fr conftest*
6568 if test "$ac_test_CFLAGS" = set; then
6569 CFLAGS="$ac_save_CFLAGS"
6570 else
6571 # this is the suspicious part
6572 CFLAGS=''
6574 if test "$ac_sectionLDflags" = "yes"; then
6575 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6577 echo "$ac_t""$ac_sectionLDflags" 1>&6
6580 # Set linker optimization flags.
6581 if test x"$with_gnu_ld" = x"yes"; then
6582 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6589 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6590 echo "configure:6591: checking for main in -lm" >&5
6591 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6593 echo $ac_n "(cached) $ac_c" 1>&6
6594 else
6595 ac_save_LIBS="$LIBS"
6596 LIBS="-lm $LIBS"
6597 cat > conftest.$ac_ext <<EOF
6598 #line 6599 "configure"
6599 #include "confdefs.h"
6601 int main() {
6602 main()
6603 ; return 0; }
6605 if { (eval echo configure:6606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6606 rm -rf conftest*
6607 eval "ac_cv_lib_$ac_lib_var=yes"
6608 else
6609 echo "configure: failed program was:" >&5
6610 cat conftest.$ac_ext >&5
6611 rm -rf conftest*
6612 eval "ac_cv_lib_$ac_lib_var=no"
6614 rm -f conftest*
6615 LIBS="$ac_save_LIBS"
6618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6619 echo "$ac_t""yes" 1>&6
6620 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6621 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6622 cat >> confdefs.h <<EOF
6623 #define $ac_tr_lib 1
6626 LIBS="-lm $LIBS"
6628 else
6629 echo "$ac_t""no" 1>&6
6632 for ac_func in nan copysignf
6634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6635 echo "configure:6636: checking for $ac_func" >&5
6636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6637 echo $ac_n "(cached) $ac_c" 1>&6
6638 else
6639 cat > conftest.$ac_ext <<EOF
6640 #line 6641 "configure"
6641 #include "confdefs.h"
6642 /* System header to define __stub macros and hopefully few prototypes,
6643 which can conflict with char $ac_func(); below. */
6644 #include <assert.h>
6645 /* Override any gcc2 internal prototype to avoid an error. */
6646 /* We use char because int might match the return type of a gcc2
6647 builtin and then its argument prototype would still apply. */
6648 char $ac_func();
6650 int main() {
6652 /* The GNU C library defines this for functions which it implements
6653 to always fail with ENOSYS. Some functions are actually named
6654 something starting with __ and the normal name is an alias. */
6655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6656 choke me
6657 #else
6658 $ac_func();
6659 #endif
6661 ; return 0; }
6663 if { (eval echo configure:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6664 rm -rf conftest*
6665 eval "ac_cv_func_$ac_func=yes"
6666 else
6667 echo "configure: failed program was:" >&5
6668 cat conftest.$ac_ext >&5
6669 rm -rf conftest*
6670 eval "ac_cv_func_$ac_func=no"
6672 rm -f conftest*
6675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6676 echo "$ac_t""yes" 1>&6
6677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6678 cat >> confdefs.h <<EOF
6679 #define $ac_tr_func 1
6682 else
6683 echo "$ac_t""no" 1>&6
6684 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6686 done
6689 for ac_func in __signbit
6691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6692 echo "configure:6693: checking for $ac_func" >&5
6693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6694 echo $ac_n "(cached) $ac_c" 1>&6
6695 else
6696 cat > conftest.$ac_ext <<EOF
6697 #line 6698 "configure"
6698 #include "confdefs.h"
6699 /* System header to define __stub macros and hopefully few prototypes,
6700 which can conflict with char $ac_func(); below. */
6701 #include <assert.h>
6702 /* Override any gcc2 internal prototype to avoid an error. */
6703 /* We use char because int might match the return type of a gcc2
6704 builtin and then its argument prototype would still apply. */
6705 char $ac_func();
6707 int main() {
6709 /* The GNU C library defines this for functions which it implements
6710 to always fail with ENOSYS. Some functions are actually named
6711 something starting with __ and the normal name is an alias. */
6712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6713 choke me
6714 #else
6715 $ac_func();
6716 #endif
6718 ; return 0; }
6720 if { (eval echo configure:6721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6721 rm -rf conftest*
6722 eval "ac_cv_func_$ac_func=yes"
6723 else
6724 echo "configure: failed program was:" >&5
6725 cat conftest.$ac_ext >&5
6726 rm -rf conftest*
6727 eval "ac_cv_func_$ac_func=no"
6729 rm -f conftest*
6732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6733 echo "$ac_t""yes" 1>&6
6734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6735 cat >> confdefs.h <<EOF
6736 #define $ac_tr_func 1
6739 else
6740 echo "$ac_t""no" 1>&6
6741 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6743 done
6745 for ac_func in __signbitf
6747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6748 echo "configure:6749: checking for $ac_func" >&5
6749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6750 echo $ac_n "(cached) $ac_c" 1>&6
6751 else
6752 cat > conftest.$ac_ext <<EOF
6753 #line 6754 "configure"
6754 #include "confdefs.h"
6755 /* System header to define __stub macros and hopefully few prototypes,
6756 which can conflict with char $ac_func(); below. */
6757 #include <assert.h>
6758 /* Override any gcc2 internal prototype to avoid an error. */
6759 /* We use char because int might match the return type of a gcc2
6760 builtin and then its argument prototype would still apply. */
6761 char $ac_func();
6763 int main() {
6765 /* The GNU C library defines this for functions which it implements
6766 to always fail with ENOSYS. Some functions are actually named
6767 something starting with __ and the normal name is an alias. */
6768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6769 choke me
6770 #else
6771 $ac_func();
6772 #endif
6774 ; return 0; }
6776 if { (eval echo configure:6777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6777 rm -rf conftest*
6778 eval "ac_cv_func_$ac_func=yes"
6779 else
6780 echo "configure: failed program was:" >&5
6781 cat conftest.$ac_ext >&5
6782 rm -rf conftest*
6783 eval "ac_cv_func_$ac_func=no"
6785 rm -f conftest*
6788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6789 echo "$ac_t""yes" 1>&6
6790 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6791 cat >> confdefs.h <<EOF
6792 #define $ac_tr_func 1
6795 else
6796 echo "$ac_t""no" 1>&6
6797 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6799 done
6802 if test x$ac_cv_func_copysignl = x"yes"; then
6803 for ac_func in __signbitl
6805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6806 echo "configure:6807: checking for $ac_func" >&5
6807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6808 echo $ac_n "(cached) $ac_c" 1>&6
6809 else
6810 cat > conftest.$ac_ext <<EOF
6811 #line 6812 "configure"
6812 #include "confdefs.h"
6813 /* System header to define __stub macros and hopefully few prototypes,
6814 which can conflict with char $ac_func(); below. */
6815 #include <assert.h>
6816 /* Override any gcc2 internal prototype to avoid an error. */
6817 /* We use char because int might match the return type of a gcc2
6818 builtin and then its argument prototype would still apply. */
6819 char $ac_func();
6821 int main() {
6823 /* The GNU C library defines this for functions which it implements
6824 to always fail with ENOSYS. Some functions are actually named
6825 something starting with __ and the normal name is an alias. */
6826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6827 choke me
6828 #else
6829 $ac_func();
6830 #endif
6832 ; return 0; }
6834 if { (eval echo configure:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6835 rm -rf conftest*
6836 eval "ac_cv_func_$ac_func=yes"
6837 else
6838 echo "configure: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6840 rm -rf conftest*
6841 eval "ac_cv_func_$ac_func=no"
6843 rm -f conftest*
6846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6847 echo "$ac_t""yes" 1>&6
6848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6849 cat >> confdefs.h <<EOF
6850 #define $ac_tr_func 1
6853 else
6854 echo "$ac_t""no" 1>&6
6855 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6857 done
6861 if test -n "$LIBMATHOBJS"; then
6862 need_libmath=yes
6867 if test "$need_libmath" = yes; then
6868 GLIBCPP_BUILD_LIBMATH_TRUE=
6869 GLIBCPP_BUILD_LIBMATH_FALSE='#'
6870 else
6871 GLIBCPP_BUILD_LIBMATH_TRUE='#'
6872 GLIBCPP_BUILD_LIBMATH_FALSE=
6876 enable_wchar_t=no
6878 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6879 echo "configure:6880: checking for mbstate_t" >&5
6880 cat > conftest.$ac_ext <<EOF
6881 #line 6882 "configure"
6882 #include "confdefs.h"
6883 #include <wchar.h>
6884 int main() {
6885 mbstate_t teststate;
6886 ; return 0; }
6888 if { (eval echo configure:6889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6889 rm -rf conftest*
6890 have_mbstate_t=yes
6891 else
6892 echo "configure: failed program was:" >&5
6893 cat conftest.$ac_ext >&5
6894 rm -rf conftest*
6895 have_mbstate_t=no
6897 rm -f conftest*
6898 echo "$ac_t""$have_mbstate_t" 1>&6
6899 if test x"$have_mbstate_t" = xyes; then
6900 cat >> confdefs.h <<\EOF
6901 #define HAVE_MBSTATE_T 1
6906 for ac_hdr in wchar.h
6908 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6909 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6910 echo "configure:6911: checking for $ac_hdr" >&5
6911 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6912 echo $ac_n "(cached) $ac_c" 1>&6
6913 else
6914 cat > conftest.$ac_ext <<EOF
6915 #line 6916 "configure"
6916 #include "confdefs.h"
6917 #include <$ac_hdr>
6919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6920 { (eval echo configure:6921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6922 if test -z "$ac_err"; then
6923 rm -rf conftest*
6924 eval "ac_cv_header_$ac_safe=yes"
6925 else
6926 echo "$ac_err" >&5
6927 echo "configure: failed program was:" >&5
6928 cat conftest.$ac_ext >&5
6929 rm -rf conftest*
6930 eval "ac_cv_header_$ac_safe=no"
6932 rm -f conftest*
6934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6935 echo "$ac_t""yes" 1>&6
6936 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6937 cat >> confdefs.h <<EOF
6938 #define $ac_tr_hdr 1
6940 ac_has_wchar_h=yes
6941 else
6942 echo "$ac_t""no" 1>&6
6943 ac_has_wchar_h=no
6945 done
6947 for ac_hdr in wctype.h
6949 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6951 echo "configure:6952: checking for $ac_hdr" >&5
6952 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6953 echo $ac_n "(cached) $ac_c" 1>&6
6954 else
6955 cat > conftest.$ac_ext <<EOF
6956 #line 6957 "configure"
6957 #include "confdefs.h"
6958 #include <$ac_hdr>
6960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6961 { (eval echo configure:6962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6963 if test -z "$ac_err"; then
6964 rm -rf conftest*
6965 eval "ac_cv_header_$ac_safe=yes"
6966 else
6967 echo "$ac_err" >&5
6968 echo "configure: failed program was:" >&5
6969 cat conftest.$ac_ext >&5
6970 rm -rf conftest*
6971 eval "ac_cv_header_$ac_safe=no"
6973 rm -f conftest*
6975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6976 echo "$ac_t""yes" 1>&6
6977 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6978 cat >> confdefs.h <<EOF
6979 #define $ac_tr_hdr 1
6981 ac_has_wctype_h=yes
6982 else
6983 echo "$ac_t""no" 1>&6
6984 ac_has_wctype_h=no
6986 done
6989 if test x"$ac_has_wchar_h" = xyes &&
6990 test x"$ac_has_wctype_h" = xyes &&
6991 test x"$enable_c_mbchar" != xno; then
6993 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6994 echo "configure:6995: checking for WCHAR_MIN and WCHAR_MAX" >&5
6995 cat > conftest.$ac_ext <<EOF
6996 #line 6997 "configure"
6997 #include "confdefs.h"
6998 #include <wchar.h>
6999 int main() {
7000 int i = WCHAR_MIN; int j = WCHAR_MAX;
7001 ; return 0; }
7003 if { (eval echo configure:7004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7004 rm -rf conftest*
7005 has_wchar_minmax=yes
7006 else
7007 echo "configure: failed program was:" >&5
7008 cat conftest.$ac_ext >&5
7009 rm -rf conftest*
7010 has_wchar_minmax=no
7012 rm -f conftest*
7013 echo "$ac_t""$has_wchar_minmax" 1>&6
7015 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7016 echo "configure:7017: checking for WEOF" >&5
7017 cat > conftest.$ac_ext <<EOF
7018 #line 7019 "configure"
7019 #include "confdefs.h"
7021 #include <wchar.h>
7022 #include <stddef.h>
7023 int main() {
7024 wint_t i = WEOF;
7025 ; return 0; }
7027 if { (eval echo configure:7028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7028 rm -rf conftest*
7029 has_weof=yes
7030 else
7031 echo "configure: failed program was:" >&5
7032 cat conftest.$ac_ext >&5
7033 rm -rf conftest*
7034 has_weof=no
7036 rm -f conftest*
7037 echo "$ac_t""$has_weof" 1>&6
7039 ac_wfuncs=yes
7040 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7043 echo "configure:7044: checking for $ac_func" >&5
7044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7045 echo $ac_n "(cached) $ac_c" 1>&6
7046 else
7047 cat > conftest.$ac_ext <<EOF
7048 #line 7049 "configure"
7049 #include "confdefs.h"
7050 /* System header to define __stub macros and hopefully few prototypes,
7051 which can conflict with char $ac_func(); below. */
7052 #include <assert.h>
7053 /* Override any gcc2 internal prototype to avoid an error. */
7054 /* We use char because int might match the return type of a gcc2
7055 builtin and then its argument prototype would still apply. */
7056 char $ac_func();
7058 int main() {
7060 /* The GNU C library defines this for functions which it implements
7061 to always fail with ENOSYS. Some functions are actually named
7062 something starting with __ and the normal name is an alias. */
7063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7064 choke me
7065 #else
7066 $ac_func();
7067 #endif
7069 ; return 0; }
7071 if { (eval echo configure:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7072 rm -rf conftest*
7073 eval "ac_cv_func_$ac_func=yes"
7074 else
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7077 rm -rf conftest*
7078 eval "ac_cv_func_$ac_func=no"
7080 rm -f conftest*
7083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7084 echo "$ac_t""yes" 1>&6
7085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7086 cat >> confdefs.h <<EOF
7087 #define $ac_tr_func 1
7090 else
7091 echo "$ac_t""no" 1>&6
7093 ac_wfuncs=no
7095 done
7098 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7099 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7100 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7101 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7102 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7103 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7106 echo "configure:7107: checking for $ac_func" >&5
7107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7108 echo $ac_n "(cached) $ac_c" 1>&6
7109 else
7110 cat > conftest.$ac_ext <<EOF
7111 #line 7112 "configure"
7112 #include "confdefs.h"
7113 /* System header to define __stub macros and hopefully few prototypes,
7114 which can conflict with char $ac_func(); below. */
7115 #include <assert.h>
7116 /* Override any gcc2 internal prototype to avoid an error. */
7117 /* We use char because int might match the return type of a gcc2
7118 builtin and then its argument prototype would still apply. */
7119 char $ac_func();
7121 int main() {
7123 /* The GNU C library defines this for functions which it implements
7124 to always fail with ENOSYS. Some functions are actually named
7125 something starting with __ and the normal name is an alias. */
7126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7127 choke me
7128 #else
7129 $ac_func();
7130 #endif
7132 ; return 0; }
7134 if { (eval echo configure:7135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7135 rm -rf conftest*
7136 eval "ac_cv_func_$ac_func=yes"
7137 else
7138 echo "configure: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
7140 rm -rf conftest*
7141 eval "ac_cv_func_$ac_func=no"
7143 rm -f conftest*
7146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7147 echo "$ac_t""yes" 1>&6
7148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7149 cat >> confdefs.h <<EOF
7150 #define $ac_tr_func 1
7153 else
7154 echo "$ac_t""no" 1>&6
7156 ac_wfuncs=no
7158 done
7161 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7162 echo "configure:7163: checking for ISO C99 wchar_t support" >&5
7163 if test x"$has_weof" = xyes &&
7164 test x"$has_wchar_minmax" = xyes &&
7165 test x"$ac_wfuncs" = xyes; then
7166 ac_isoC99_wchar_t=yes
7167 else
7168 ac_isoC99_wchar_t=no
7170 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7172 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7173 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7174 echo "configure:7175: checking for iconv.h" >&5
7175 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7176 echo $ac_n "(cached) $ac_c" 1>&6
7177 else
7178 cat > conftest.$ac_ext <<EOF
7179 #line 7180 "configure"
7180 #include "confdefs.h"
7181 #include <iconv.h>
7183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7184 { (eval echo configure:7185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7186 if test -z "$ac_err"; then
7187 rm -rf conftest*
7188 eval "ac_cv_header_$ac_safe=yes"
7189 else
7190 echo "$ac_err" >&5
7191 echo "configure: failed program was:" >&5
7192 cat conftest.$ac_ext >&5
7193 rm -rf conftest*
7194 eval "ac_cv_header_$ac_safe=no"
7196 rm -f conftest*
7198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7199 echo "$ac_t""yes" 1>&6
7200 ac_has_iconv_h=yes
7201 else
7202 echo "$ac_t""no" 1>&6
7203 ac_has_iconv_h=no
7206 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7207 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7208 echo "configure:7209: checking for langinfo.h" >&5
7209 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7210 echo $ac_n "(cached) $ac_c" 1>&6
7211 else
7212 cat > conftest.$ac_ext <<EOF
7213 #line 7214 "configure"
7214 #include "confdefs.h"
7215 #include <langinfo.h>
7217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7218 { (eval echo configure:7219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7220 if test -z "$ac_err"; then
7221 rm -rf conftest*
7222 eval "ac_cv_header_$ac_safe=yes"
7223 else
7224 echo "$ac_err" >&5
7225 echo "configure: failed program was:" >&5
7226 cat conftest.$ac_ext >&5
7227 rm -rf conftest*
7228 eval "ac_cv_header_$ac_safe=no"
7230 rm -f conftest*
7232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7233 echo "$ac_t""yes" 1>&6
7234 ac_has_langinfo_h=yes
7235 else
7236 echo "$ac_t""no" 1>&6
7237 ac_has_langinfo_h=no
7241 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7242 echo "configure:7243: checking for iconv in -liconv" >&5
7243 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7245 echo $ac_n "(cached) $ac_c" 1>&6
7246 else
7247 ac_save_LIBS="$LIBS"
7248 LIBS="-liconv $LIBS"
7249 cat > conftest.$ac_ext <<EOF
7250 #line 7251 "configure"
7251 #include "confdefs.h"
7252 /* Override any gcc2 internal prototype to avoid an error. */
7253 /* We use char because int might match the return type of a gcc2
7254 builtin and then its argument prototype would still apply. */
7255 char iconv();
7257 int main() {
7258 iconv()
7259 ; return 0; }
7261 if { (eval echo configure:7262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7262 rm -rf conftest*
7263 eval "ac_cv_lib_$ac_lib_var=yes"
7264 else
7265 echo "configure: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7267 rm -rf conftest*
7268 eval "ac_cv_lib_$ac_lib_var=no"
7270 rm -f conftest*
7271 LIBS="$ac_save_LIBS"
7274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7275 echo "$ac_t""yes" 1>&6
7276 libiconv="-liconv"
7277 else
7278 echo "$ac_t""no" 1>&6
7281 ac_save_LIBS="$LIBS"
7282 LIBS="$LIBS $libiconv"
7284 for ac_func in iconv_open iconv_close iconv nl_langinfo
7286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7287 echo "configure:7288: checking for $ac_func" >&5
7288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7289 echo $ac_n "(cached) $ac_c" 1>&6
7290 else
7291 cat > conftest.$ac_ext <<EOF
7292 #line 7293 "configure"
7293 #include "confdefs.h"
7294 /* System header to define __stub macros and hopefully few prototypes,
7295 which can conflict with char $ac_func(); below. */
7296 #include <assert.h>
7297 /* Override any gcc2 internal prototype to avoid an error. */
7298 /* We use char because int might match the return type of a gcc2
7299 builtin and then its argument prototype would still apply. */
7300 char $ac_func();
7302 int main() {
7304 /* The GNU C library defines this for functions which it implements
7305 to always fail with ENOSYS. Some functions are actually named
7306 something starting with __ and the normal name is an alias. */
7307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7308 choke me
7309 #else
7310 $ac_func();
7311 #endif
7313 ; return 0; }
7315 if { (eval echo configure:7316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7316 rm -rf conftest*
7317 eval "ac_cv_func_$ac_func=yes"
7318 else
7319 echo "configure: failed program was:" >&5
7320 cat conftest.$ac_ext >&5
7321 rm -rf conftest*
7322 eval "ac_cv_func_$ac_func=no"
7324 rm -f conftest*
7327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7328 echo "$ac_t""yes" 1>&6
7329 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7330 cat >> confdefs.h <<EOF
7331 #define $ac_tr_func 1
7334 ac_XPG2funcs=yes
7335 else
7336 echo "$ac_t""no" 1>&6
7337 ac_XPG2funcs=no
7339 done
7342 LIBS="$ac_save_LIBS"
7344 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7345 echo "configure:7346: checking for XPG2 wchar_t support" >&5
7346 if test x"$ac_has_iconv_h" = xyes &&
7347 test x"$ac_has_langinfo_h" = xyes &&
7348 test x"$ac_XPG2funcs" = xyes; then
7349 ac_XPG2_wchar_t=yes
7350 else
7351 ac_XPG2_wchar_t=no
7353 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7355 if test x"$ac_isoC99_wchar_t" = xyes &&
7356 test x"$ac_XPG2_wchar_t" = xyes; then
7357 cat >> confdefs.h <<\EOF
7358 #define _GLIBCPP_USE_WCHAR_T 1
7361 enable_wchar_t=yes
7364 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7365 echo "configure:7366: checking for enabled wchar_t specializations" >&5
7366 echo "$ac_t""$enable_wchar_t" 1>&6
7369 if test "$enable_wchar_t" = yes; then
7370 GLIBCPP_TEST_WCHAR_T_TRUE=
7371 GLIBCPP_TEST_WCHAR_T_FALSE='#'
7372 else
7373 GLIBCPP_TEST_WCHAR_T_TRUE='#'
7374 GLIBCPP_TEST_WCHAR_T_FALSE=
7377 cat >> confdefs.h <<\EOF
7378 #define HAVE_COPYSIGN 1
7381 cat >> confdefs.h <<\EOF
7382 #define HAVE_COPYSIGNF 1
7385 cat >> confdefs.h <<\EOF
7386 #define HAVE_FINITE 1
7389 cat >> confdefs.h <<\EOF
7390 #define HAVE_FINITEF 1
7393 cat >> confdefs.h <<\EOF
7394 #define HAVE_FREXPF 1
7397 cat >> confdefs.h <<\EOF
7398 #define HAVE_HYPOTF 1
7401 cat >> confdefs.h <<\EOF
7402 #define HAVE_ISINF 1
7405 cat >> confdefs.h <<\EOF
7406 #define HAVE_ISINFF 1
7409 cat >> confdefs.h <<\EOF
7410 #define HAVE_ISNAN 1
7413 cat >> confdefs.h <<\EOF
7414 #define HAVE_ISNANF 1
7417 cat >> confdefs.h <<\EOF
7418 #define HAVE_SINCOS 1
7421 cat >> confdefs.h <<\EOF
7422 #define HAVE_SINCOSF 1
7425 if test x"long_double_math_on_this_cpu" = x"yes"; then
7426 cat >> confdefs.h <<\EOF
7427 #define HAVE_FINITEL 1
7430 cat >> confdefs.h <<\EOF
7431 #define HAVE_HYPOTL 1
7434 cat >> confdefs.h <<\EOF
7435 #define HAVE_ISINFL 1
7438 cat >> confdefs.h <<\EOF
7439 #define HAVE_ISNANL 1
7444 *-mingw32*)
7445 os_include_dir="os/mingw32"
7446 for ac_hdr in sys/types.h locale.h float.h
7448 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7449 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7450 echo "configure:7451: checking for $ac_hdr" >&5
7451 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7452 echo $ac_n "(cached) $ac_c" 1>&6
7453 else
7454 cat > conftest.$ac_ext <<EOF
7455 #line 7456 "configure"
7456 #include "confdefs.h"
7457 #include <$ac_hdr>
7459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7460 { (eval echo configure:7461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7462 if test -z "$ac_err"; then
7463 rm -rf conftest*
7464 eval "ac_cv_header_$ac_safe=yes"
7465 else
7466 echo "$ac_err" >&5
7467 echo "configure: failed program was:" >&5
7468 cat conftest.$ac_ext >&5
7469 rm -rf conftest*
7470 eval "ac_cv_header_$ac_safe=no"
7472 rm -f conftest*
7474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7475 echo "$ac_t""yes" 1>&6
7476 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7477 cat >> confdefs.h <<EOF
7478 #define $ac_tr_hdr 1
7481 else
7482 echo "$ac_t""no" 1>&6
7484 done
7487 # If we're not using GNU ld, then there's no point in even trying these
7488 # tests. Check for that first. We should have already tested for gld
7489 # by now (in libtool), but require it now just to be safe...
7490 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7491 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7494 # The name set by libtool depends on the version of libtool. Shame on us
7495 # for depending on an impl detail, but c'est la vie. Older versions used
7496 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7497 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7498 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7499 # set (hence we're using an older libtool), then set it.
7500 if test x${with_gnu_ld+set} != xset; then
7501 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7502 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7503 with_gnu_ld=no
7504 else
7505 with_gnu_ld=$ac_cv_prog_gnu_ld
7509 # Start by getting the version number. I think the libtool test already
7510 # does some of this, but throws away the result.
7512 ldver=`$LD --version 2>/dev/null | head -1 | \
7513 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7515 glibcpp_gnu_ld_version=`echo $ldver | \
7516 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7518 # Set --gc-sections.
7519 if test "$with_gnu_ld" = "notbroken"; then
7520 # GNU ld it is! Joy and bunny rabbits!
7522 # All these tests are for C++; save the language and the compiler flags.
7523 # Need to do this so that g++ won't try to link in libstdc++
7524 ac_test_CFLAGS="${CFLAGS+set}"
7525 ac_save_CFLAGS="$CFLAGS"
7526 CFLAGS='-x c++ -Wl,--gc-sections'
7528 # Check for -Wl,--gc-sections
7529 # XXX This test is broken at the moment, as symbols required for
7530 # linking are now in libsupc++ (not built yet.....). In addition,
7531 # this test has cored on solaris in the past. In addition,
7532 # --gc-sections doesn't really work at the moment (keeps on discarding
7533 # used sections, first .eh_frame and now some of the glibc sections for
7534 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7535 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7536 echo "configure:7537: checking for ld that supports -Wl,--gc-sections" >&5
7537 if test "$cross_compiling" = yes; then
7538 ac_sectionLDflags=yes
7539 else
7540 cat > conftest.$ac_ext <<EOF
7541 #line 7542 "configure"
7542 #include "confdefs.h"
7544 int main(void)
7546 try { throw 1; }
7547 catch (...) { };
7548 return 0;
7552 if { (eval echo configure:7553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7553 then
7554 ac_sectionLDflags=yes
7555 else
7556 echo "configure: failed program was:" >&5
7557 cat conftest.$ac_ext >&5
7558 rm -fr conftest*
7559 ac_sectionLDflags=no
7561 rm -fr conftest*
7564 if test "$ac_test_CFLAGS" = set; then
7565 CFLAGS="$ac_save_CFLAGS"
7566 else
7567 # this is the suspicious part
7568 CFLAGS=''
7570 if test "$ac_sectionLDflags" = "yes"; then
7571 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7573 echo "$ac_t""$ac_sectionLDflags" 1>&6
7576 # Set linker optimization flags.
7577 if test x"$with_gnu_ld" = x"yes"; then
7578 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7585 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7586 echo "configure:7587: checking for main in -lm" >&5
7587 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7589 echo $ac_n "(cached) $ac_c" 1>&6
7590 else
7591 ac_save_LIBS="$LIBS"
7592 LIBS="-lm $LIBS"
7593 cat > conftest.$ac_ext <<EOF
7594 #line 7595 "configure"
7595 #include "confdefs.h"
7597 int main() {
7598 main()
7599 ; return 0; }
7601 if { (eval echo configure:7602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7602 rm -rf conftest*
7603 eval "ac_cv_lib_$ac_lib_var=yes"
7604 else
7605 echo "configure: failed program was:" >&5
7606 cat conftest.$ac_ext >&5
7607 rm -rf conftest*
7608 eval "ac_cv_lib_$ac_lib_var=no"
7610 rm -f conftest*
7611 LIBS="$ac_save_LIBS"
7614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7615 echo "$ac_t""yes" 1>&6
7616 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7617 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7618 cat >> confdefs.h <<EOF
7619 #define $ac_tr_lib 1
7622 LIBS="-lm $LIBS"
7624 else
7625 echo "$ac_t""no" 1>&6
7628 for ac_func in nan copysignf
7630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7631 echo "configure:7632: checking for $ac_func" >&5
7632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7633 echo $ac_n "(cached) $ac_c" 1>&6
7634 else
7635 cat > conftest.$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7638 /* System header to define __stub macros and hopefully few prototypes,
7639 which can conflict with char $ac_func(); below. */
7640 #include <assert.h>
7641 /* Override any gcc2 internal prototype to avoid an error. */
7642 /* We use char because int might match the return type of a gcc2
7643 builtin and then its argument prototype would still apply. */
7644 char $ac_func();
7646 int main() {
7648 /* The GNU C library defines this for functions which it implements
7649 to always fail with ENOSYS. Some functions are actually named
7650 something starting with __ and the normal name is an alias. */
7651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7652 choke me
7653 #else
7654 $ac_func();
7655 #endif
7657 ; return 0; }
7659 if { (eval echo configure:7660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7660 rm -rf conftest*
7661 eval "ac_cv_func_$ac_func=yes"
7662 else
7663 echo "configure: failed program was:" >&5
7664 cat conftest.$ac_ext >&5
7665 rm -rf conftest*
7666 eval "ac_cv_func_$ac_func=no"
7668 rm -f conftest*
7671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7672 echo "$ac_t""yes" 1>&6
7673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7674 cat >> confdefs.h <<EOF
7675 #define $ac_tr_func 1
7678 else
7679 echo "$ac_t""no" 1>&6
7680 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7682 done
7685 for ac_func in __signbit
7687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7688 echo "configure:7689: checking for $ac_func" >&5
7689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7690 echo $ac_n "(cached) $ac_c" 1>&6
7691 else
7692 cat > conftest.$ac_ext <<EOF
7693 #line 7694 "configure"
7694 #include "confdefs.h"
7695 /* System header to define __stub macros and hopefully few prototypes,
7696 which can conflict with char $ac_func(); below. */
7697 #include <assert.h>
7698 /* Override any gcc2 internal prototype to avoid an error. */
7699 /* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7701 char $ac_func();
7703 int main() {
7705 /* The GNU C library defines this for functions which it implements
7706 to always fail with ENOSYS. Some functions are actually named
7707 something starting with __ and the normal name is an alias. */
7708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7709 choke me
7710 #else
7711 $ac_func();
7712 #endif
7714 ; return 0; }
7716 if { (eval echo configure:7717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7717 rm -rf conftest*
7718 eval "ac_cv_func_$ac_func=yes"
7719 else
7720 echo "configure: failed program was:" >&5
7721 cat conftest.$ac_ext >&5
7722 rm -rf conftest*
7723 eval "ac_cv_func_$ac_func=no"
7725 rm -f conftest*
7728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7729 echo "$ac_t""yes" 1>&6
7730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7731 cat >> confdefs.h <<EOF
7732 #define $ac_tr_func 1
7735 else
7736 echo "$ac_t""no" 1>&6
7737 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7739 done
7741 for ac_func in __signbitf
7743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7744 echo "configure:7745: checking for $ac_func" >&5
7745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7746 echo $ac_n "(cached) $ac_c" 1>&6
7747 else
7748 cat > conftest.$ac_ext <<EOF
7749 #line 7750 "configure"
7750 #include "confdefs.h"
7751 /* System header to define __stub macros and hopefully few prototypes,
7752 which can conflict with char $ac_func(); below. */
7753 #include <assert.h>
7754 /* Override any gcc2 internal prototype to avoid an error. */
7755 /* We use char because int might match the return type of a gcc2
7756 builtin and then its argument prototype would still apply. */
7757 char $ac_func();
7759 int main() {
7761 /* The GNU C library defines this for functions which it implements
7762 to always fail with ENOSYS. Some functions are actually named
7763 something starting with __ and the normal name is an alias. */
7764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7765 choke me
7766 #else
7767 $ac_func();
7768 #endif
7770 ; return 0; }
7772 if { (eval echo configure:7773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7773 rm -rf conftest*
7774 eval "ac_cv_func_$ac_func=yes"
7775 else
7776 echo "configure: failed program was:" >&5
7777 cat conftest.$ac_ext >&5
7778 rm -rf conftest*
7779 eval "ac_cv_func_$ac_func=no"
7781 rm -f conftest*
7784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7785 echo "$ac_t""yes" 1>&6
7786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7787 cat >> confdefs.h <<EOF
7788 #define $ac_tr_func 1
7791 else
7792 echo "$ac_t""no" 1>&6
7793 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7795 done
7798 if test x$ac_cv_func_copysignl = x"yes"; then
7799 for ac_func in __signbitl
7801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7802 echo "configure:7803: checking for $ac_func" >&5
7803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7804 echo $ac_n "(cached) $ac_c" 1>&6
7805 else
7806 cat > conftest.$ac_ext <<EOF
7807 #line 7808 "configure"
7808 #include "confdefs.h"
7809 /* System header to define __stub macros and hopefully few prototypes,
7810 which can conflict with char $ac_func(); below. */
7811 #include <assert.h>
7812 /* Override any gcc2 internal prototype to avoid an error. */
7813 /* We use char because int might match the return type of a gcc2
7814 builtin and then its argument prototype would still apply. */
7815 char $ac_func();
7817 int main() {
7819 /* The GNU C library defines this for functions which it implements
7820 to always fail with ENOSYS. Some functions are actually named
7821 something starting with __ and the normal name is an alias. */
7822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7823 choke me
7824 #else
7825 $ac_func();
7826 #endif
7828 ; return 0; }
7830 if { (eval echo configure:7831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7831 rm -rf conftest*
7832 eval "ac_cv_func_$ac_func=yes"
7833 else
7834 echo "configure: failed program was:" >&5
7835 cat conftest.$ac_ext >&5
7836 rm -rf conftest*
7837 eval "ac_cv_func_$ac_func=no"
7839 rm -f conftest*
7842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7843 echo "$ac_t""yes" 1>&6
7844 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7845 cat >> confdefs.h <<EOF
7846 #define $ac_tr_func 1
7849 else
7850 echo "$ac_t""no" 1>&6
7851 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7853 done
7857 if test -n "$LIBMATHOBJS"; then
7858 need_libmath=yes
7863 if test "$need_libmath" = yes; then
7864 GLIBCPP_BUILD_LIBMATH_TRUE=
7865 GLIBCPP_BUILD_LIBMATH_FALSE='#'
7866 else
7867 GLIBCPP_BUILD_LIBMATH_TRUE='#'
7868 GLIBCPP_BUILD_LIBMATH_FALSE=
7872 enable_wchar_t=no
7874 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7875 echo "configure:7876: checking for mbstate_t" >&5
7876 cat > conftest.$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7879 #include <wchar.h>
7880 int main() {
7881 mbstate_t teststate;
7882 ; return 0; }
7884 if { (eval echo configure:7885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7885 rm -rf conftest*
7886 have_mbstate_t=yes
7887 else
7888 echo "configure: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7890 rm -rf conftest*
7891 have_mbstate_t=no
7893 rm -f conftest*
7894 echo "$ac_t""$have_mbstate_t" 1>&6
7895 if test x"$have_mbstate_t" = xyes; then
7896 cat >> confdefs.h <<\EOF
7897 #define HAVE_MBSTATE_T 1
7902 for ac_hdr in wchar.h
7904 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7905 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7906 echo "configure:7907: checking for $ac_hdr" >&5
7907 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7908 echo $ac_n "(cached) $ac_c" 1>&6
7909 else
7910 cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure"
7912 #include "confdefs.h"
7913 #include <$ac_hdr>
7915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7916 { (eval echo configure:7917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7918 if test -z "$ac_err"; then
7919 rm -rf conftest*
7920 eval "ac_cv_header_$ac_safe=yes"
7921 else
7922 echo "$ac_err" >&5
7923 echo "configure: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7925 rm -rf conftest*
7926 eval "ac_cv_header_$ac_safe=no"
7928 rm -f conftest*
7930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7931 echo "$ac_t""yes" 1>&6
7932 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7933 cat >> confdefs.h <<EOF
7934 #define $ac_tr_hdr 1
7936 ac_has_wchar_h=yes
7937 else
7938 echo "$ac_t""no" 1>&6
7939 ac_has_wchar_h=no
7941 done
7943 for ac_hdr in wctype.h
7945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7947 echo "configure:7948: checking for $ac_hdr" >&5
7948 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7949 echo $ac_n "(cached) $ac_c" 1>&6
7950 else
7951 cat > conftest.$ac_ext <<EOF
7952 #line 7953 "configure"
7953 #include "confdefs.h"
7954 #include <$ac_hdr>
7956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7957 { (eval echo configure:7958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7959 if test -z "$ac_err"; then
7960 rm -rf conftest*
7961 eval "ac_cv_header_$ac_safe=yes"
7962 else
7963 echo "$ac_err" >&5
7964 echo "configure: failed program was:" >&5
7965 cat conftest.$ac_ext >&5
7966 rm -rf conftest*
7967 eval "ac_cv_header_$ac_safe=no"
7969 rm -f conftest*
7971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7972 echo "$ac_t""yes" 1>&6
7973 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7974 cat >> confdefs.h <<EOF
7975 #define $ac_tr_hdr 1
7977 ac_has_wctype_h=yes
7978 else
7979 echo "$ac_t""no" 1>&6
7980 ac_has_wctype_h=no
7982 done
7985 if test x"$ac_has_wchar_h" = xyes &&
7986 test x"$ac_has_wctype_h" = xyes &&
7987 test x"$enable_c_mbchar" != xno; then
7989 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7990 echo "configure:7991: checking for WCHAR_MIN and WCHAR_MAX" >&5
7991 cat > conftest.$ac_ext <<EOF
7992 #line 7993 "configure"
7993 #include "confdefs.h"
7994 #include <wchar.h>
7995 int main() {
7996 int i = WCHAR_MIN; int j = WCHAR_MAX;
7997 ; return 0; }
7999 if { (eval echo configure:8000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8000 rm -rf conftest*
8001 has_wchar_minmax=yes
8002 else
8003 echo "configure: failed program was:" >&5
8004 cat conftest.$ac_ext >&5
8005 rm -rf conftest*
8006 has_wchar_minmax=no
8008 rm -f conftest*
8009 echo "$ac_t""$has_wchar_minmax" 1>&6
8011 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8012 echo "configure:8013: checking for WEOF" >&5
8013 cat > conftest.$ac_ext <<EOF
8014 #line 8015 "configure"
8015 #include "confdefs.h"
8017 #include <wchar.h>
8018 #include <stddef.h>
8019 int main() {
8020 wint_t i = WEOF;
8021 ; return 0; }
8023 if { (eval echo configure:8024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8024 rm -rf conftest*
8025 has_weof=yes
8026 else
8027 echo "configure: failed program was:" >&5
8028 cat conftest.$ac_ext >&5
8029 rm -rf conftest*
8030 has_weof=no
8032 rm -f conftest*
8033 echo "$ac_t""$has_weof" 1>&6
8035 ac_wfuncs=yes
8036 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8039 echo "configure:8040: checking for $ac_func" >&5
8040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8041 echo $ac_n "(cached) $ac_c" 1>&6
8042 else
8043 cat > conftest.$ac_ext <<EOF
8044 #line 8045 "configure"
8045 #include "confdefs.h"
8046 /* System header to define __stub macros and hopefully few prototypes,
8047 which can conflict with char $ac_func(); below. */
8048 #include <assert.h>
8049 /* Override any gcc2 internal prototype to avoid an error. */
8050 /* We use char because int might match the return type of a gcc2
8051 builtin and then its argument prototype would still apply. */
8052 char $ac_func();
8054 int main() {
8056 /* The GNU C library defines this for functions which it implements
8057 to always fail with ENOSYS. Some functions are actually named
8058 something starting with __ and the normal name is an alias. */
8059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8060 choke me
8061 #else
8062 $ac_func();
8063 #endif
8065 ; return 0; }
8067 if { (eval echo configure:8068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8068 rm -rf conftest*
8069 eval "ac_cv_func_$ac_func=yes"
8070 else
8071 echo "configure: failed program was:" >&5
8072 cat conftest.$ac_ext >&5
8073 rm -rf conftest*
8074 eval "ac_cv_func_$ac_func=no"
8076 rm -f conftest*
8079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8080 echo "$ac_t""yes" 1>&6
8081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8082 cat >> confdefs.h <<EOF
8083 #define $ac_tr_func 1
8086 else
8087 echo "$ac_t""no" 1>&6
8089 ac_wfuncs=no
8091 done
8094 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8095 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8096 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8097 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8098 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8099 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8102 echo "configure:8103: checking for $ac_func" >&5
8103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8104 echo $ac_n "(cached) $ac_c" 1>&6
8105 else
8106 cat > conftest.$ac_ext <<EOF
8107 #line 8108 "configure"
8108 #include "confdefs.h"
8109 /* System header to define __stub macros and hopefully few prototypes,
8110 which can conflict with char $ac_func(); below. */
8111 #include <assert.h>
8112 /* Override any gcc2 internal prototype to avoid an error. */
8113 /* We use char because int might match the return type of a gcc2
8114 builtin and then its argument prototype would still apply. */
8115 char $ac_func();
8117 int main() {
8119 /* The GNU C library defines this for functions which it implements
8120 to always fail with ENOSYS. Some functions are actually named
8121 something starting with __ and the normal name is an alias. */
8122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8123 choke me
8124 #else
8125 $ac_func();
8126 #endif
8128 ; return 0; }
8130 if { (eval echo configure:8131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8131 rm -rf conftest*
8132 eval "ac_cv_func_$ac_func=yes"
8133 else
8134 echo "configure: failed program was:" >&5
8135 cat conftest.$ac_ext >&5
8136 rm -rf conftest*
8137 eval "ac_cv_func_$ac_func=no"
8139 rm -f conftest*
8142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8143 echo "$ac_t""yes" 1>&6
8144 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8145 cat >> confdefs.h <<EOF
8146 #define $ac_tr_func 1
8149 else
8150 echo "$ac_t""no" 1>&6
8152 ac_wfuncs=no
8154 done
8157 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8158 echo "configure:8159: checking for ISO C99 wchar_t support" >&5
8159 if test x"$has_weof" = xyes &&
8160 test x"$has_wchar_minmax" = xyes &&
8161 test x"$ac_wfuncs" = xyes; then
8162 ac_isoC99_wchar_t=yes
8163 else
8164 ac_isoC99_wchar_t=no
8166 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8168 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8169 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8170 echo "configure:8171: checking for iconv.h" >&5
8171 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8172 echo $ac_n "(cached) $ac_c" 1>&6
8173 else
8174 cat > conftest.$ac_ext <<EOF
8175 #line 8176 "configure"
8176 #include "confdefs.h"
8177 #include <iconv.h>
8179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8180 { (eval echo configure:8181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8182 if test -z "$ac_err"; then
8183 rm -rf conftest*
8184 eval "ac_cv_header_$ac_safe=yes"
8185 else
8186 echo "$ac_err" >&5
8187 echo "configure: failed program was:" >&5
8188 cat conftest.$ac_ext >&5
8189 rm -rf conftest*
8190 eval "ac_cv_header_$ac_safe=no"
8192 rm -f conftest*
8194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8195 echo "$ac_t""yes" 1>&6
8196 ac_has_iconv_h=yes
8197 else
8198 echo "$ac_t""no" 1>&6
8199 ac_has_iconv_h=no
8202 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8203 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8204 echo "configure:8205: checking for langinfo.h" >&5
8205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8206 echo $ac_n "(cached) $ac_c" 1>&6
8207 else
8208 cat > conftest.$ac_ext <<EOF
8209 #line 8210 "configure"
8210 #include "confdefs.h"
8211 #include <langinfo.h>
8213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8214 { (eval echo configure:8215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8216 if test -z "$ac_err"; then
8217 rm -rf conftest*
8218 eval "ac_cv_header_$ac_safe=yes"
8219 else
8220 echo "$ac_err" >&5
8221 echo "configure: failed program was:" >&5
8222 cat conftest.$ac_ext >&5
8223 rm -rf conftest*
8224 eval "ac_cv_header_$ac_safe=no"
8226 rm -f conftest*
8228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8229 echo "$ac_t""yes" 1>&6
8230 ac_has_langinfo_h=yes
8231 else
8232 echo "$ac_t""no" 1>&6
8233 ac_has_langinfo_h=no
8237 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8238 echo "configure:8239: checking for iconv in -liconv" >&5
8239 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8241 echo $ac_n "(cached) $ac_c" 1>&6
8242 else
8243 ac_save_LIBS="$LIBS"
8244 LIBS="-liconv $LIBS"
8245 cat > conftest.$ac_ext <<EOF
8246 #line 8247 "configure"
8247 #include "confdefs.h"
8248 /* Override any gcc2 internal prototype to avoid an error. */
8249 /* We use char because int might match the return type of a gcc2
8250 builtin and then its argument prototype would still apply. */
8251 char iconv();
8253 int main() {
8254 iconv()
8255 ; return 0; }
8257 if { (eval echo configure:8258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8258 rm -rf conftest*
8259 eval "ac_cv_lib_$ac_lib_var=yes"
8260 else
8261 echo "configure: failed program was:" >&5
8262 cat conftest.$ac_ext >&5
8263 rm -rf conftest*
8264 eval "ac_cv_lib_$ac_lib_var=no"
8266 rm -f conftest*
8267 LIBS="$ac_save_LIBS"
8270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8271 echo "$ac_t""yes" 1>&6
8272 libiconv="-liconv"
8273 else
8274 echo "$ac_t""no" 1>&6
8277 ac_save_LIBS="$LIBS"
8278 LIBS="$LIBS $libiconv"
8280 for ac_func in iconv_open iconv_close iconv nl_langinfo
8282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8283 echo "configure:8284: checking for $ac_func" >&5
8284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8285 echo $ac_n "(cached) $ac_c" 1>&6
8286 else
8287 cat > conftest.$ac_ext <<EOF
8288 #line 8289 "configure"
8289 #include "confdefs.h"
8290 /* System header to define __stub macros and hopefully few prototypes,
8291 which can conflict with char $ac_func(); below. */
8292 #include <assert.h>
8293 /* Override any gcc2 internal prototype to avoid an error. */
8294 /* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8296 char $ac_func();
8298 int main() {
8300 /* The GNU C library defines this for functions which it implements
8301 to always fail with ENOSYS. Some functions are actually named
8302 something starting with __ and the normal name is an alias. */
8303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8304 choke me
8305 #else
8306 $ac_func();
8307 #endif
8309 ; return 0; }
8311 if { (eval echo configure:8312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8312 rm -rf conftest*
8313 eval "ac_cv_func_$ac_func=yes"
8314 else
8315 echo "configure: failed program was:" >&5
8316 cat conftest.$ac_ext >&5
8317 rm -rf conftest*
8318 eval "ac_cv_func_$ac_func=no"
8320 rm -f conftest*
8323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8324 echo "$ac_t""yes" 1>&6
8325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8326 cat >> confdefs.h <<EOF
8327 #define $ac_tr_func 1
8330 ac_XPG2funcs=yes
8331 else
8332 echo "$ac_t""no" 1>&6
8333 ac_XPG2funcs=no
8335 done
8338 LIBS="$ac_save_LIBS"
8340 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8341 echo "configure:8342: checking for XPG2 wchar_t support" >&5
8342 if test x"$ac_has_iconv_h" = xyes &&
8343 test x"$ac_has_langinfo_h" = xyes &&
8344 test x"$ac_XPG2funcs" = xyes; then
8345 ac_XPG2_wchar_t=yes
8346 else
8347 ac_XPG2_wchar_t=no
8349 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8351 if test x"$ac_isoC99_wchar_t" = xyes &&
8352 test x"$ac_XPG2_wchar_t" = xyes; then
8353 cat >> confdefs.h <<\EOF
8354 #define _GLIBCPP_USE_WCHAR_T 1
8357 enable_wchar_t=yes
8360 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8361 echo "configure:8362: checking for enabled wchar_t specializations" >&5
8362 echo "$ac_t""$enable_wchar_t" 1>&6
8365 if test "$enable_wchar_t" = yes; then
8366 GLIBCPP_TEST_WCHAR_T_TRUE=
8367 GLIBCPP_TEST_WCHAR_T_FALSE='#'
8368 else
8369 GLIBCPP_TEST_WCHAR_T_TRUE='#'
8370 GLIBCPP_TEST_WCHAR_T_FALSE=
8374 *-netbsd*)
8375 os_include_dir="os/bsd/netbsd"
8376 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
8377 machine/endian.h machine/param.h sys/machine.h sys/types.h \
8378 fp.h locale.h float.h inttypes.h
8380 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8381 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8382 echo "configure:8383: checking for $ac_hdr" >&5
8383 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8384 echo $ac_n "(cached) $ac_c" 1>&6
8385 else
8386 cat > conftest.$ac_ext <<EOF
8387 #line 8388 "configure"
8388 #include "confdefs.h"
8389 #include <$ac_hdr>
8391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8392 { (eval echo configure:8393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8394 if test -z "$ac_err"; then
8395 rm -rf conftest*
8396 eval "ac_cv_header_$ac_safe=yes"
8397 else
8398 echo "$ac_err" >&5
8399 echo "configure: failed program was:" >&5
8400 cat conftest.$ac_ext >&5
8401 rm -rf conftest*
8402 eval "ac_cv_header_$ac_safe=no"
8404 rm -f conftest*
8406 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8407 echo "$ac_t""yes" 1>&6
8408 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8409 cat >> confdefs.h <<EOF
8410 #define $ac_tr_hdr 1
8413 else
8414 echo "$ac_t""no" 1>&6
8416 done
8418 SECTION_FLAGS='-ffunction-sections -fdata-sections'
8421 # If we're not using GNU ld, then there's no point in even trying these
8422 # tests. Check for that first. We should have already tested for gld
8423 # by now (in libtool), but require it now just to be safe...
8424 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8425 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8428 # The name set by libtool depends on the version of libtool. Shame on us
8429 # for depending on an impl detail, but c'est la vie. Older versions used
8430 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8431 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8432 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8433 # set (hence we're using an older libtool), then set it.
8434 if test x${with_gnu_ld+set} != xset; then
8435 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8436 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8437 with_gnu_ld=no
8438 else
8439 with_gnu_ld=$ac_cv_prog_gnu_ld
8443 # Start by getting the version number. I think the libtool test already
8444 # does some of this, but throws away the result.
8446 ldver=`$LD --version 2>/dev/null | head -1 | \
8447 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8449 glibcpp_gnu_ld_version=`echo $ldver | \
8450 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8452 # Set --gc-sections.
8453 if test "$with_gnu_ld" = "notbroken"; then
8454 # GNU ld it is! Joy and bunny rabbits!
8456 # All these tests are for C++; save the language and the compiler flags.
8457 # Need to do this so that g++ won't try to link in libstdc++
8458 ac_test_CFLAGS="${CFLAGS+set}"
8459 ac_save_CFLAGS="$CFLAGS"
8460 CFLAGS='-x c++ -Wl,--gc-sections'
8462 # Check for -Wl,--gc-sections
8463 # XXX This test is broken at the moment, as symbols required for
8464 # linking are now in libsupc++ (not built yet.....). In addition,
8465 # this test has cored on solaris in the past. In addition,
8466 # --gc-sections doesn't really work at the moment (keeps on discarding
8467 # used sections, first .eh_frame and now some of the glibc sections for
8468 # iconv). Bzzzzt. Thanks for playing, maybe next time.
8469 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8470 echo "configure:8471: checking for ld that supports -Wl,--gc-sections" >&5
8471 if test "$cross_compiling" = yes; then
8472 ac_sectionLDflags=yes
8473 else
8474 cat > conftest.$ac_ext <<EOF
8475 #line 8476 "configure"
8476 #include "confdefs.h"
8478 int main(void)
8480 try { throw 1; }
8481 catch (...) { };
8482 return 0;
8486 if { (eval echo configure:8487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8487 then
8488 ac_sectionLDflags=yes
8489 else
8490 echo "configure: failed program was:" >&5
8491 cat conftest.$ac_ext >&5
8492 rm -fr conftest*
8493 ac_sectionLDflags=no
8495 rm -fr conftest*
8498 if test "$ac_test_CFLAGS" = set; then
8499 CFLAGS="$ac_save_CFLAGS"
8500 else
8501 # this is the suspicious part
8502 CFLAGS=''
8504 if test "$ac_sectionLDflags" = "yes"; then
8505 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8507 echo "$ac_t""$ac_sectionLDflags" 1>&6
8510 # Set linker optimization flags.
8511 if test x"$with_gnu_ld" = x"yes"; then
8512 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8519 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8520 echo "configure:8521: checking for main in -lm" >&5
8521 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8523 echo $ac_n "(cached) $ac_c" 1>&6
8524 else
8525 ac_save_LIBS="$LIBS"
8526 LIBS="-lm $LIBS"
8527 cat > conftest.$ac_ext <<EOF
8528 #line 8529 "configure"
8529 #include "confdefs.h"
8531 int main() {
8532 main()
8533 ; return 0; }
8535 if { (eval echo configure:8536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8536 rm -rf conftest*
8537 eval "ac_cv_lib_$ac_lib_var=yes"
8538 else
8539 echo "configure: failed program was:" >&5
8540 cat conftest.$ac_ext >&5
8541 rm -rf conftest*
8542 eval "ac_cv_lib_$ac_lib_var=no"
8544 rm -f conftest*
8545 LIBS="$ac_save_LIBS"
8548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8549 echo "$ac_t""yes" 1>&6
8550 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8551 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8552 cat >> confdefs.h <<EOF
8553 #define $ac_tr_lib 1
8556 LIBS="-lm $LIBS"
8558 else
8559 echo "$ac_t""no" 1>&6
8562 for ac_func in nan copysignf
8564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8565 echo "configure:8566: checking for $ac_func" >&5
8566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8567 echo $ac_n "(cached) $ac_c" 1>&6
8568 else
8569 cat > conftest.$ac_ext <<EOF
8570 #line 8571 "configure"
8571 #include "confdefs.h"
8572 /* System header to define __stub macros and hopefully few prototypes,
8573 which can conflict with char $ac_func(); below. */
8574 #include <assert.h>
8575 /* Override any gcc2 internal prototype to avoid an error. */
8576 /* We use char because int might match the return type of a gcc2
8577 builtin and then its argument prototype would still apply. */
8578 char $ac_func();
8580 int main() {
8582 /* The GNU C library defines this for functions which it implements
8583 to always fail with ENOSYS. Some functions are actually named
8584 something starting with __ and the normal name is an alias. */
8585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8586 choke me
8587 #else
8588 $ac_func();
8589 #endif
8591 ; return 0; }
8593 if { (eval echo configure:8594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8594 rm -rf conftest*
8595 eval "ac_cv_func_$ac_func=yes"
8596 else
8597 echo "configure: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8599 rm -rf conftest*
8600 eval "ac_cv_func_$ac_func=no"
8602 rm -f conftest*
8605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8606 echo "$ac_t""yes" 1>&6
8607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8608 cat >> confdefs.h <<EOF
8609 #define $ac_tr_func 1
8612 else
8613 echo "$ac_t""no" 1>&6
8614 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8616 done
8619 for ac_func in __signbit
8621 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8622 echo "configure:8623: checking for $ac_func" >&5
8623 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8624 echo $ac_n "(cached) $ac_c" 1>&6
8625 else
8626 cat > conftest.$ac_ext <<EOF
8627 #line 8628 "configure"
8628 #include "confdefs.h"
8629 /* System header to define __stub macros and hopefully few prototypes,
8630 which can conflict with char $ac_func(); below. */
8631 #include <assert.h>
8632 /* Override any gcc2 internal prototype to avoid an error. */
8633 /* We use char because int might match the return type of a gcc2
8634 builtin and then its argument prototype would still apply. */
8635 char $ac_func();
8637 int main() {
8639 /* The GNU C library defines this for functions which it implements
8640 to always fail with ENOSYS. Some functions are actually named
8641 something starting with __ and the normal name is an alias. */
8642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8643 choke me
8644 #else
8645 $ac_func();
8646 #endif
8648 ; return 0; }
8650 if { (eval echo configure:8651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8651 rm -rf conftest*
8652 eval "ac_cv_func_$ac_func=yes"
8653 else
8654 echo "configure: failed program was:" >&5
8655 cat conftest.$ac_ext >&5
8656 rm -rf conftest*
8657 eval "ac_cv_func_$ac_func=no"
8659 rm -f conftest*
8662 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8663 echo "$ac_t""yes" 1>&6
8664 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8665 cat >> confdefs.h <<EOF
8666 #define $ac_tr_func 1
8669 else
8670 echo "$ac_t""no" 1>&6
8671 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8673 done
8675 for ac_func in __signbitf
8677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8678 echo "configure:8679: checking for $ac_func" >&5
8679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8680 echo $ac_n "(cached) $ac_c" 1>&6
8681 else
8682 cat > conftest.$ac_ext <<EOF
8683 #line 8684 "configure"
8684 #include "confdefs.h"
8685 /* System header to define __stub macros and hopefully few prototypes,
8686 which can conflict with char $ac_func(); below. */
8687 #include <assert.h>
8688 /* Override any gcc2 internal prototype to avoid an error. */
8689 /* We use char because int might match the return type of a gcc2
8690 builtin and then its argument prototype would still apply. */
8691 char $ac_func();
8693 int main() {
8695 /* The GNU C library defines this for functions which it implements
8696 to always fail with ENOSYS. Some functions are actually named
8697 something starting with __ and the normal name is an alias. */
8698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8699 choke me
8700 #else
8701 $ac_func();
8702 #endif
8704 ; return 0; }
8706 if { (eval echo configure:8707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8707 rm -rf conftest*
8708 eval "ac_cv_func_$ac_func=yes"
8709 else
8710 echo "configure: failed program was:" >&5
8711 cat conftest.$ac_ext >&5
8712 rm -rf conftest*
8713 eval "ac_cv_func_$ac_func=no"
8715 rm -f conftest*
8718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8719 echo "$ac_t""yes" 1>&6
8720 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8721 cat >> confdefs.h <<EOF
8722 #define $ac_tr_func 1
8725 else
8726 echo "$ac_t""no" 1>&6
8727 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8729 done
8732 if test x$ac_cv_func_copysignl = x"yes"; then
8733 for ac_func in __signbitl
8735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8736 echo "configure:8737: checking for $ac_func" >&5
8737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8738 echo $ac_n "(cached) $ac_c" 1>&6
8739 else
8740 cat > conftest.$ac_ext <<EOF
8741 #line 8742 "configure"
8742 #include "confdefs.h"
8743 /* System header to define __stub macros and hopefully few prototypes,
8744 which can conflict with char $ac_func(); below. */
8745 #include <assert.h>
8746 /* Override any gcc2 internal prototype to avoid an error. */
8747 /* We use char because int might match the return type of a gcc2
8748 builtin and then its argument prototype would still apply. */
8749 char $ac_func();
8751 int main() {
8753 /* The GNU C library defines this for functions which it implements
8754 to always fail with ENOSYS. Some functions are actually named
8755 something starting with __ and the normal name is an alias. */
8756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8757 choke me
8758 #else
8759 $ac_func();
8760 #endif
8762 ; return 0; }
8764 if { (eval echo configure:8765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8765 rm -rf conftest*
8766 eval "ac_cv_func_$ac_func=yes"
8767 else
8768 echo "configure: failed program was:" >&5
8769 cat conftest.$ac_ext >&5
8770 rm -rf conftest*
8771 eval "ac_cv_func_$ac_func=no"
8773 rm -f conftest*
8776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8777 echo "$ac_t""yes" 1>&6
8778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8779 cat >> confdefs.h <<EOF
8780 #define $ac_tr_func 1
8783 else
8784 echo "$ac_t""no" 1>&6
8785 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8787 done
8791 if test -n "$LIBMATHOBJS"; then
8792 need_libmath=yes
8797 if test "$need_libmath" = yes; then
8798 GLIBCPP_BUILD_LIBMATH_TRUE=
8799 GLIBCPP_BUILD_LIBMATH_FALSE='#'
8800 else
8801 GLIBCPP_BUILD_LIBMATH_TRUE='#'
8802 GLIBCPP_BUILD_LIBMATH_FALSE=
8806 enable_wchar_t=no
8808 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8809 echo "configure:8810: checking for mbstate_t" >&5
8810 cat > conftest.$ac_ext <<EOF
8811 #line 8812 "configure"
8812 #include "confdefs.h"
8813 #include <wchar.h>
8814 int main() {
8815 mbstate_t teststate;
8816 ; return 0; }
8818 if { (eval echo configure:8819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8819 rm -rf conftest*
8820 have_mbstate_t=yes
8821 else
8822 echo "configure: failed program was:" >&5
8823 cat conftest.$ac_ext >&5
8824 rm -rf conftest*
8825 have_mbstate_t=no
8827 rm -f conftest*
8828 echo "$ac_t""$have_mbstate_t" 1>&6
8829 if test x"$have_mbstate_t" = xyes; then
8830 cat >> confdefs.h <<\EOF
8831 #define HAVE_MBSTATE_T 1
8836 for ac_hdr in wchar.h
8838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8840 echo "configure:8841: checking for $ac_hdr" >&5
8841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8842 echo $ac_n "(cached) $ac_c" 1>&6
8843 else
8844 cat > conftest.$ac_ext <<EOF
8845 #line 8846 "configure"
8846 #include "confdefs.h"
8847 #include <$ac_hdr>
8849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8850 { (eval echo configure:8851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8852 if test -z "$ac_err"; then
8853 rm -rf conftest*
8854 eval "ac_cv_header_$ac_safe=yes"
8855 else
8856 echo "$ac_err" >&5
8857 echo "configure: failed program was:" >&5
8858 cat conftest.$ac_ext >&5
8859 rm -rf conftest*
8860 eval "ac_cv_header_$ac_safe=no"
8862 rm -f conftest*
8864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8865 echo "$ac_t""yes" 1>&6
8866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8867 cat >> confdefs.h <<EOF
8868 #define $ac_tr_hdr 1
8870 ac_has_wchar_h=yes
8871 else
8872 echo "$ac_t""no" 1>&6
8873 ac_has_wchar_h=no
8875 done
8877 for ac_hdr in wctype.h
8879 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8880 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8881 echo "configure:8882: checking for $ac_hdr" >&5
8882 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8883 echo $ac_n "(cached) $ac_c" 1>&6
8884 else
8885 cat > conftest.$ac_ext <<EOF
8886 #line 8887 "configure"
8887 #include "confdefs.h"
8888 #include <$ac_hdr>
8890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8891 { (eval echo configure:8892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8893 if test -z "$ac_err"; then
8894 rm -rf conftest*
8895 eval "ac_cv_header_$ac_safe=yes"
8896 else
8897 echo "$ac_err" >&5
8898 echo "configure: failed program was:" >&5
8899 cat conftest.$ac_ext >&5
8900 rm -rf conftest*
8901 eval "ac_cv_header_$ac_safe=no"
8903 rm -f conftest*
8905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8906 echo "$ac_t""yes" 1>&6
8907 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8908 cat >> confdefs.h <<EOF
8909 #define $ac_tr_hdr 1
8911 ac_has_wctype_h=yes
8912 else
8913 echo "$ac_t""no" 1>&6
8914 ac_has_wctype_h=no
8916 done
8919 if test x"$ac_has_wchar_h" = xyes &&
8920 test x"$ac_has_wctype_h" = xyes &&
8921 test x"$enable_c_mbchar" != xno; then
8923 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8924 echo "configure:8925: checking for WCHAR_MIN and WCHAR_MAX" >&5
8925 cat > conftest.$ac_ext <<EOF
8926 #line 8927 "configure"
8927 #include "confdefs.h"
8928 #include <wchar.h>
8929 int main() {
8930 int i = WCHAR_MIN; int j = WCHAR_MAX;
8931 ; return 0; }
8933 if { (eval echo configure:8934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8934 rm -rf conftest*
8935 has_wchar_minmax=yes
8936 else
8937 echo "configure: failed program was:" >&5
8938 cat conftest.$ac_ext >&5
8939 rm -rf conftest*
8940 has_wchar_minmax=no
8942 rm -f conftest*
8943 echo "$ac_t""$has_wchar_minmax" 1>&6
8945 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8946 echo "configure:8947: checking for WEOF" >&5
8947 cat > conftest.$ac_ext <<EOF
8948 #line 8949 "configure"
8949 #include "confdefs.h"
8951 #include <wchar.h>
8952 #include <stddef.h>
8953 int main() {
8954 wint_t i = WEOF;
8955 ; return 0; }
8957 if { (eval echo configure:8958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8958 rm -rf conftest*
8959 has_weof=yes
8960 else
8961 echo "configure: failed program was:" >&5
8962 cat conftest.$ac_ext >&5
8963 rm -rf conftest*
8964 has_weof=no
8966 rm -f conftest*
8967 echo "$ac_t""$has_weof" 1>&6
8969 ac_wfuncs=yes
8970 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8973 echo "configure:8974: checking for $ac_func" >&5
8974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8975 echo $ac_n "(cached) $ac_c" 1>&6
8976 else
8977 cat > conftest.$ac_ext <<EOF
8978 #line 8979 "configure"
8979 #include "confdefs.h"
8980 /* System header to define __stub macros and hopefully few prototypes,
8981 which can conflict with char $ac_func(); below. */
8982 #include <assert.h>
8983 /* Override any gcc2 internal prototype to avoid an error. */
8984 /* We use char because int might match the return type of a gcc2
8985 builtin and then its argument prototype would still apply. */
8986 char $ac_func();
8988 int main() {
8990 /* The GNU C library defines this for functions which it implements
8991 to always fail with ENOSYS. Some functions are actually named
8992 something starting with __ and the normal name is an alias. */
8993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8994 choke me
8995 #else
8996 $ac_func();
8997 #endif
8999 ; return 0; }
9001 if { (eval echo configure:9002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9002 rm -rf conftest*
9003 eval "ac_cv_func_$ac_func=yes"
9004 else
9005 echo "configure: failed program was:" >&5
9006 cat conftest.$ac_ext >&5
9007 rm -rf conftest*
9008 eval "ac_cv_func_$ac_func=no"
9010 rm -f conftest*
9013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9014 echo "$ac_t""yes" 1>&6
9015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9016 cat >> confdefs.h <<EOF
9017 #define $ac_tr_func 1
9020 else
9021 echo "$ac_t""no" 1>&6
9023 ac_wfuncs=no
9025 done
9028 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9029 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9030 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9031 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9032 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9033 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9036 echo "configure:9037: checking for $ac_func" >&5
9037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9038 echo $ac_n "(cached) $ac_c" 1>&6
9039 else
9040 cat > conftest.$ac_ext <<EOF
9041 #line 9042 "configure"
9042 #include "confdefs.h"
9043 /* System header to define __stub macros and hopefully few prototypes,
9044 which can conflict with char $ac_func(); below. */
9045 #include <assert.h>
9046 /* Override any gcc2 internal prototype to avoid an error. */
9047 /* We use char because int might match the return type of a gcc2
9048 builtin and then its argument prototype would still apply. */
9049 char $ac_func();
9051 int main() {
9053 /* The GNU C library defines this for functions which it implements
9054 to always fail with ENOSYS. Some functions are actually named
9055 something starting with __ and the normal name is an alias. */
9056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9057 choke me
9058 #else
9059 $ac_func();
9060 #endif
9062 ; return 0; }
9064 if { (eval echo configure:9065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9065 rm -rf conftest*
9066 eval "ac_cv_func_$ac_func=yes"
9067 else
9068 echo "configure: failed program was:" >&5
9069 cat conftest.$ac_ext >&5
9070 rm -rf conftest*
9071 eval "ac_cv_func_$ac_func=no"
9073 rm -f conftest*
9076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9077 echo "$ac_t""yes" 1>&6
9078 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9079 cat >> confdefs.h <<EOF
9080 #define $ac_tr_func 1
9083 else
9084 echo "$ac_t""no" 1>&6
9086 ac_wfuncs=no
9088 done
9091 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9092 echo "configure:9093: checking for ISO C99 wchar_t support" >&5
9093 if test x"$has_weof" = xyes &&
9094 test x"$has_wchar_minmax" = xyes &&
9095 test x"$ac_wfuncs" = xyes; then
9096 ac_isoC99_wchar_t=yes
9097 else
9098 ac_isoC99_wchar_t=no
9100 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9102 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9103 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9104 echo "configure:9105: checking for iconv.h" >&5
9105 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9106 echo $ac_n "(cached) $ac_c" 1>&6
9107 else
9108 cat > conftest.$ac_ext <<EOF
9109 #line 9110 "configure"
9110 #include "confdefs.h"
9111 #include <iconv.h>
9113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9114 { (eval echo configure:9115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9116 if test -z "$ac_err"; then
9117 rm -rf conftest*
9118 eval "ac_cv_header_$ac_safe=yes"
9119 else
9120 echo "$ac_err" >&5
9121 echo "configure: failed program was:" >&5
9122 cat conftest.$ac_ext >&5
9123 rm -rf conftest*
9124 eval "ac_cv_header_$ac_safe=no"
9126 rm -f conftest*
9128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9129 echo "$ac_t""yes" 1>&6
9130 ac_has_iconv_h=yes
9131 else
9132 echo "$ac_t""no" 1>&6
9133 ac_has_iconv_h=no
9136 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9137 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9138 echo "configure:9139: checking for langinfo.h" >&5
9139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9140 echo $ac_n "(cached) $ac_c" 1>&6
9141 else
9142 cat > conftest.$ac_ext <<EOF
9143 #line 9144 "configure"
9144 #include "confdefs.h"
9145 #include <langinfo.h>
9147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9148 { (eval echo configure:9149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9150 if test -z "$ac_err"; then
9151 rm -rf conftest*
9152 eval "ac_cv_header_$ac_safe=yes"
9153 else
9154 echo "$ac_err" >&5
9155 echo "configure: failed program was:" >&5
9156 cat conftest.$ac_ext >&5
9157 rm -rf conftest*
9158 eval "ac_cv_header_$ac_safe=no"
9160 rm -f conftest*
9162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9163 echo "$ac_t""yes" 1>&6
9164 ac_has_langinfo_h=yes
9165 else
9166 echo "$ac_t""no" 1>&6
9167 ac_has_langinfo_h=no
9171 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9172 echo "configure:9173: checking for iconv in -liconv" >&5
9173 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9176 else
9177 ac_save_LIBS="$LIBS"
9178 LIBS="-liconv $LIBS"
9179 cat > conftest.$ac_ext <<EOF
9180 #line 9181 "configure"
9181 #include "confdefs.h"
9182 /* Override any gcc2 internal prototype to avoid an error. */
9183 /* We use char because int might match the return type of a gcc2
9184 builtin and then its argument prototype would still apply. */
9185 char iconv();
9187 int main() {
9188 iconv()
9189 ; return 0; }
9191 if { (eval echo configure:9192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9192 rm -rf conftest*
9193 eval "ac_cv_lib_$ac_lib_var=yes"
9194 else
9195 echo "configure: failed program was:" >&5
9196 cat conftest.$ac_ext >&5
9197 rm -rf conftest*
9198 eval "ac_cv_lib_$ac_lib_var=no"
9200 rm -f conftest*
9201 LIBS="$ac_save_LIBS"
9204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9205 echo "$ac_t""yes" 1>&6
9206 libiconv="-liconv"
9207 else
9208 echo "$ac_t""no" 1>&6
9211 ac_save_LIBS="$LIBS"
9212 LIBS="$LIBS $libiconv"
9214 for ac_func in iconv_open iconv_close iconv nl_langinfo
9216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9217 echo "configure:9218: checking for $ac_func" >&5
9218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9219 echo $ac_n "(cached) $ac_c" 1>&6
9220 else
9221 cat > conftest.$ac_ext <<EOF
9222 #line 9223 "configure"
9223 #include "confdefs.h"
9224 /* System header to define __stub macros and hopefully few prototypes,
9225 which can conflict with char $ac_func(); below. */
9226 #include <assert.h>
9227 /* Override any gcc2 internal prototype to avoid an error. */
9228 /* We use char because int might match the return type of a gcc2
9229 builtin and then its argument prototype would still apply. */
9230 char $ac_func();
9232 int main() {
9234 /* The GNU C library defines this for functions which it implements
9235 to always fail with ENOSYS. Some functions are actually named
9236 something starting with __ and the normal name is an alias. */
9237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9238 choke me
9239 #else
9240 $ac_func();
9241 #endif
9243 ; return 0; }
9245 if { (eval echo configure:9246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9246 rm -rf conftest*
9247 eval "ac_cv_func_$ac_func=yes"
9248 else
9249 echo "configure: failed program was:" >&5
9250 cat conftest.$ac_ext >&5
9251 rm -rf conftest*
9252 eval "ac_cv_func_$ac_func=no"
9254 rm -f conftest*
9257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9258 echo "$ac_t""yes" 1>&6
9259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9260 cat >> confdefs.h <<EOF
9261 #define $ac_tr_func 1
9264 ac_XPG2funcs=yes
9265 else
9266 echo "$ac_t""no" 1>&6
9267 ac_XPG2funcs=no
9269 done
9272 LIBS="$ac_save_LIBS"
9274 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9275 echo "configure:9276: checking for XPG2 wchar_t support" >&5
9276 if test x"$ac_has_iconv_h" = xyes &&
9277 test x"$ac_has_langinfo_h" = xyes &&
9278 test x"$ac_XPG2funcs" = xyes; then
9279 ac_XPG2_wchar_t=yes
9280 else
9281 ac_XPG2_wchar_t=no
9283 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9285 if test x"$ac_isoC99_wchar_t" = xyes &&
9286 test x"$ac_XPG2_wchar_t" = xyes; then
9287 cat >> confdefs.h <<\EOF
9288 #define _GLIBCPP_USE_WCHAR_T 1
9291 enable_wchar_t=yes
9294 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9295 echo "configure:9296: checking for enabled wchar_t specializations" >&5
9296 echo "$ac_t""$enable_wchar_t" 1>&6
9299 if test "$enable_wchar_t" = yes; then
9300 GLIBCPP_TEST_WCHAR_T_TRUE=
9301 GLIBCPP_TEST_WCHAR_T_FALSE='#'
9302 else
9303 GLIBCPP_TEST_WCHAR_T_TRUE='#'
9304 GLIBCPP_TEST_WCHAR_T_FALSE=
9307 cat >> confdefs.h <<\EOF
9308 #define HAVE_COPYSIGN 1
9311 cat >> confdefs.h <<\EOF
9312 #define HAVE_COPYSIGNF 1
9315 cat >> confdefs.h <<\EOF
9316 #define HAVE_FINITEF 1
9319 cat >> confdefs.h <<\EOF
9320 #define HAVE_FINITE 1
9323 cat >> confdefs.h <<\EOF
9324 #define HAVE_FREXPF 1
9327 cat >> confdefs.h <<\EOF
9328 #define HAVE_HYPOTF 1
9331 cat >> confdefs.h <<\EOF
9332 #define HAVE_ISINF 1
9335 cat >> confdefs.h <<\EOF
9336 #define HAVE_ISINFF 1
9339 cat >> confdefs.h <<\EOF
9340 #define HAVE_ISNAN 1
9343 cat >> confdefs.h <<\EOF
9344 #define HAVE_ISNANF 1
9347 if test x"long_double_math_on_this_cpu" = x"yes"; then
9348 cat >> confdefs.h <<\EOF
9349 #define HAVE_FINITEL 1
9352 cat >> confdefs.h <<\EOF
9353 #define HAVE_ISINFL 1
9356 cat >> confdefs.h <<\EOF
9357 #define HAVE_ISNANL 1
9362 *-qnx6.1* | *-qnx6.2*)
9363 os_include_dir="os/qnx/qnx6.1"
9364 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9367 # If we're not using GNU ld, then there's no point in even trying these
9368 # tests. Check for that first. We should have already tested for gld
9369 # by now (in libtool), but require it now just to be safe...
9370 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9371 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9374 # The name set by libtool depends on the version of libtool. Shame on us
9375 # for depending on an impl detail, but c'est la vie. Older versions used
9376 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9377 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9378 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9379 # set (hence we're using an older libtool), then set it.
9380 if test x${with_gnu_ld+set} != xset; then
9381 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9382 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9383 with_gnu_ld=no
9384 else
9385 with_gnu_ld=$ac_cv_prog_gnu_ld
9389 # Start by getting the version number. I think the libtool test already
9390 # does some of this, but throws away the result.
9392 ldver=`$LD --version 2>/dev/null | head -1 | \
9393 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9395 glibcpp_gnu_ld_version=`echo $ldver | \
9396 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9398 # Set --gc-sections.
9399 if test "$with_gnu_ld" = "notbroken"; then
9400 # GNU ld it is! Joy and bunny rabbits!
9402 # All these tests are for C++; save the language and the compiler flags.
9403 # Need to do this so that g++ won't try to link in libstdc++
9404 ac_test_CFLAGS="${CFLAGS+set}"
9405 ac_save_CFLAGS="$CFLAGS"
9406 CFLAGS='-x c++ -Wl,--gc-sections'
9408 # Check for -Wl,--gc-sections
9409 # XXX This test is broken at the moment, as symbols required for
9410 # linking are now in libsupc++ (not built yet.....). In addition,
9411 # this test has cored on solaris in the past. In addition,
9412 # --gc-sections doesn't really work at the moment (keeps on discarding
9413 # used sections, first .eh_frame and now some of the glibc sections for
9414 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9415 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9416 echo "configure:9417: checking for ld that supports -Wl,--gc-sections" >&5
9417 if test "$cross_compiling" = yes; then
9418 ac_sectionLDflags=yes
9419 else
9420 cat > conftest.$ac_ext <<EOF
9421 #line 9422 "configure"
9422 #include "confdefs.h"
9424 int main(void)
9426 try { throw 1; }
9427 catch (...) { };
9428 return 0;
9432 if { (eval echo configure:9433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9433 then
9434 ac_sectionLDflags=yes
9435 else
9436 echo "configure: failed program was:" >&5
9437 cat conftest.$ac_ext >&5
9438 rm -fr conftest*
9439 ac_sectionLDflags=no
9441 rm -fr conftest*
9444 if test "$ac_test_CFLAGS" = set; then
9445 CFLAGS="$ac_save_CFLAGS"
9446 else
9447 # this is the suspicious part
9448 CFLAGS=''
9450 if test "$ac_sectionLDflags" = "yes"; then
9451 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9453 echo "$ac_t""$ac_sectionLDflags" 1>&6
9456 # Set linker optimization flags.
9457 if test x"$with_gnu_ld" = x"yes"; then
9458 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9465 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9466 echo "configure:9467: checking for main in -lm" >&5
9467 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9469 echo $ac_n "(cached) $ac_c" 1>&6
9470 else
9471 ac_save_LIBS="$LIBS"
9472 LIBS="-lm $LIBS"
9473 cat > conftest.$ac_ext <<EOF
9474 #line 9475 "configure"
9475 #include "confdefs.h"
9477 int main() {
9478 main()
9479 ; return 0; }
9481 if { (eval echo configure:9482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9482 rm -rf conftest*
9483 eval "ac_cv_lib_$ac_lib_var=yes"
9484 else
9485 echo "configure: failed program was:" >&5
9486 cat conftest.$ac_ext >&5
9487 rm -rf conftest*
9488 eval "ac_cv_lib_$ac_lib_var=no"
9490 rm -f conftest*
9491 LIBS="$ac_save_LIBS"
9494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9495 echo "$ac_t""yes" 1>&6
9496 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9497 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9498 cat >> confdefs.h <<EOF
9499 #define $ac_tr_lib 1
9502 LIBS="-lm $LIBS"
9504 else
9505 echo "$ac_t""no" 1>&6
9508 for ac_func in nan copysignf
9510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9511 echo "configure:9512: checking for $ac_func" >&5
9512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9513 echo $ac_n "(cached) $ac_c" 1>&6
9514 else
9515 cat > conftest.$ac_ext <<EOF
9516 #line 9517 "configure"
9517 #include "confdefs.h"
9518 /* System header to define __stub macros and hopefully few prototypes,
9519 which can conflict with char $ac_func(); below. */
9520 #include <assert.h>
9521 /* Override any gcc2 internal prototype to avoid an error. */
9522 /* We use char because int might match the return type of a gcc2
9523 builtin and then its argument prototype would still apply. */
9524 char $ac_func();
9526 int main() {
9528 /* The GNU C library defines this for functions which it implements
9529 to always fail with ENOSYS. Some functions are actually named
9530 something starting with __ and the normal name is an alias. */
9531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9532 choke me
9533 #else
9534 $ac_func();
9535 #endif
9537 ; return 0; }
9539 if { (eval echo configure:9540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9540 rm -rf conftest*
9541 eval "ac_cv_func_$ac_func=yes"
9542 else
9543 echo "configure: failed program was:" >&5
9544 cat conftest.$ac_ext >&5
9545 rm -rf conftest*
9546 eval "ac_cv_func_$ac_func=no"
9548 rm -f conftest*
9551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9552 echo "$ac_t""yes" 1>&6
9553 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9554 cat >> confdefs.h <<EOF
9555 #define $ac_tr_func 1
9558 else
9559 echo "$ac_t""no" 1>&6
9560 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9562 done
9565 for ac_func in __signbit
9567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9568 echo "configure:9569: checking for $ac_func" >&5
9569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9570 echo $ac_n "(cached) $ac_c" 1>&6
9571 else
9572 cat > conftest.$ac_ext <<EOF
9573 #line 9574 "configure"
9574 #include "confdefs.h"
9575 /* System header to define __stub macros and hopefully few prototypes,
9576 which can conflict with char $ac_func(); below. */
9577 #include <assert.h>
9578 /* Override any gcc2 internal prototype to avoid an error. */
9579 /* We use char because int might match the return type of a gcc2
9580 builtin and then its argument prototype would still apply. */
9581 char $ac_func();
9583 int main() {
9585 /* The GNU C library defines this for functions which it implements
9586 to always fail with ENOSYS. Some functions are actually named
9587 something starting with __ and the normal name is an alias. */
9588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9589 choke me
9590 #else
9591 $ac_func();
9592 #endif
9594 ; return 0; }
9596 if { (eval echo configure:9597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9597 rm -rf conftest*
9598 eval "ac_cv_func_$ac_func=yes"
9599 else
9600 echo "configure: failed program was:" >&5
9601 cat conftest.$ac_ext >&5
9602 rm -rf conftest*
9603 eval "ac_cv_func_$ac_func=no"
9605 rm -f conftest*
9608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9609 echo "$ac_t""yes" 1>&6
9610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9611 cat >> confdefs.h <<EOF
9612 #define $ac_tr_func 1
9615 else
9616 echo "$ac_t""no" 1>&6
9617 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9619 done
9621 for ac_func in __signbitf
9623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9624 echo "configure:9625: checking for $ac_func" >&5
9625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9626 echo $ac_n "(cached) $ac_c" 1>&6
9627 else
9628 cat > conftest.$ac_ext <<EOF
9629 #line 9630 "configure"
9630 #include "confdefs.h"
9631 /* System header to define __stub macros and hopefully few prototypes,
9632 which can conflict with char $ac_func(); below. */
9633 #include <assert.h>
9634 /* Override any gcc2 internal prototype to avoid an error. */
9635 /* We use char because int might match the return type of a gcc2
9636 builtin and then its argument prototype would still apply. */
9637 char $ac_func();
9639 int main() {
9641 /* The GNU C library defines this for functions which it implements
9642 to always fail with ENOSYS. Some functions are actually named
9643 something starting with __ and the normal name is an alias. */
9644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9645 choke me
9646 #else
9647 $ac_func();
9648 #endif
9650 ; return 0; }
9652 if { (eval echo configure:9653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9653 rm -rf conftest*
9654 eval "ac_cv_func_$ac_func=yes"
9655 else
9656 echo "configure: failed program was:" >&5
9657 cat conftest.$ac_ext >&5
9658 rm -rf conftest*
9659 eval "ac_cv_func_$ac_func=no"
9661 rm -f conftest*
9664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9665 echo "$ac_t""yes" 1>&6
9666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9667 cat >> confdefs.h <<EOF
9668 #define $ac_tr_func 1
9671 else
9672 echo "$ac_t""no" 1>&6
9673 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9675 done
9678 if test x$ac_cv_func_copysignl = x"yes"; then
9679 for ac_func in __signbitl
9681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9682 echo "configure:9683: checking for $ac_func" >&5
9683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9684 echo $ac_n "(cached) $ac_c" 1>&6
9685 else
9686 cat > conftest.$ac_ext <<EOF
9687 #line 9688 "configure"
9688 #include "confdefs.h"
9689 /* System header to define __stub macros and hopefully few prototypes,
9690 which can conflict with char $ac_func(); below. */
9691 #include <assert.h>
9692 /* Override any gcc2 internal prototype to avoid an error. */
9693 /* We use char because int might match the return type of a gcc2
9694 builtin and then its argument prototype would still apply. */
9695 char $ac_func();
9697 int main() {
9699 /* The GNU C library defines this for functions which it implements
9700 to always fail with ENOSYS. Some functions are actually named
9701 something starting with __ and the normal name is an alias. */
9702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9703 choke me
9704 #else
9705 $ac_func();
9706 #endif
9708 ; return 0; }
9710 if { (eval echo configure:9711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9711 rm -rf conftest*
9712 eval "ac_cv_func_$ac_func=yes"
9713 else
9714 echo "configure: failed program was:" >&5
9715 cat conftest.$ac_ext >&5
9716 rm -rf conftest*
9717 eval "ac_cv_func_$ac_func=no"
9719 rm -f conftest*
9722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9723 echo "$ac_t""yes" 1>&6
9724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9725 cat >> confdefs.h <<EOF
9726 #define $ac_tr_func 1
9729 else
9730 echo "$ac_t""no" 1>&6
9731 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9733 done
9737 if test -n "$LIBMATHOBJS"; then
9738 need_libmath=yes
9743 if test "$need_libmath" = yes; then
9744 GLIBCPP_BUILD_LIBMATH_TRUE=
9745 GLIBCPP_BUILD_LIBMATH_FALSE='#'
9746 else
9747 GLIBCPP_BUILD_LIBMATH_TRUE='#'
9748 GLIBCPP_BUILD_LIBMATH_FALSE=
9752 enable_wchar_t=no
9754 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9755 echo "configure:9756: checking for mbstate_t" >&5
9756 cat > conftest.$ac_ext <<EOF
9757 #line 9758 "configure"
9758 #include "confdefs.h"
9759 #include <wchar.h>
9760 int main() {
9761 mbstate_t teststate;
9762 ; return 0; }
9764 if { (eval echo configure:9765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9765 rm -rf conftest*
9766 have_mbstate_t=yes
9767 else
9768 echo "configure: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9770 rm -rf conftest*
9771 have_mbstate_t=no
9773 rm -f conftest*
9774 echo "$ac_t""$have_mbstate_t" 1>&6
9775 if test x"$have_mbstate_t" = xyes; then
9776 cat >> confdefs.h <<\EOF
9777 #define HAVE_MBSTATE_T 1
9782 for ac_hdr in wchar.h
9784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9786 echo "configure:9787: checking for $ac_hdr" >&5
9787 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9788 echo $ac_n "(cached) $ac_c" 1>&6
9789 else
9790 cat > conftest.$ac_ext <<EOF
9791 #line 9792 "configure"
9792 #include "confdefs.h"
9793 #include <$ac_hdr>
9795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9796 { (eval echo configure:9797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9798 if test -z "$ac_err"; then
9799 rm -rf conftest*
9800 eval "ac_cv_header_$ac_safe=yes"
9801 else
9802 echo "$ac_err" >&5
9803 echo "configure: failed program was:" >&5
9804 cat conftest.$ac_ext >&5
9805 rm -rf conftest*
9806 eval "ac_cv_header_$ac_safe=no"
9808 rm -f conftest*
9810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9811 echo "$ac_t""yes" 1>&6
9812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9813 cat >> confdefs.h <<EOF
9814 #define $ac_tr_hdr 1
9816 ac_has_wchar_h=yes
9817 else
9818 echo "$ac_t""no" 1>&6
9819 ac_has_wchar_h=no
9821 done
9823 for ac_hdr in wctype.h
9825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9827 echo "configure:9828: checking for $ac_hdr" >&5
9828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9829 echo $ac_n "(cached) $ac_c" 1>&6
9830 else
9831 cat > conftest.$ac_ext <<EOF
9832 #line 9833 "configure"
9833 #include "confdefs.h"
9834 #include <$ac_hdr>
9836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9837 { (eval echo configure:9838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9839 if test -z "$ac_err"; then
9840 rm -rf conftest*
9841 eval "ac_cv_header_$ac_safe=yes"
9842 else
9843 echo "$ac_err" >&5
9844 echo "configure: failed program was:" >&5
9845 cat conftest.$ac_ext >&5
9846 rm -rf conftest*
9847 eval "ac_cv_header_$ac_safe=no"
9849 rm -f conftest*
9851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9852 echo "$ac_t""yes" 1>&6
9853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9854 cat >> confdefs.h <<EOF
9855 #define $ac_tr_hdr 1
9857 ac_has_wctype_h=yes
9858 else
9859 echo "$ac_t""no" 1>&6
9860 ac_has_wctype_h=no
9862 done
9865 if test x"$ac_has_wchar_h" = xyes &&
9866 test x"$ac_has_wctype_h" = xyes &&
9867 test x"$enable_c_mbchar" != xno; then
9869 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9870 echo "configure:9871: checking for WCHAR_MIN and WCHAR_MAX" >&5
9871 cat > conftest.$ac_ext <<EOF
9872 #line 9873 "configure"
9873 #include "confdefs.h"
9874 #include <wchar.h>
9875 int main() {
9876 int i = WCHAR_MIN; int j = WCHAR_MAX;
9877 ; return 0; }
9879 if { (eval echo configure:9880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9880 rm -rf conftest*
9881 has_wchar_minmax=yes
9882 else
9883 echo "configure: failed program was:" >&5
9884 cat conftest.$ac_ext >&5
9885 rm -rf conftest*
9886 has_wchar_minmax=no
9888 rm -f conftest*
9889 echo "$ac_t""$has_wchar_minmax" 1>&6
9891 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9892 echo "configure:9893: checking for WEOF" >&5
9893 cat > conftest.$ac_ext <<EOF
9894 #line 9895 "configure"
9895 #include "confdefs.h"
9897 #include <wchar.h>
9898 #include <stddef.h>
9899 int main() {
9900 wint_t i = WEOF;
9901 ; return 0; }
9903 if { (eval echo configure:9904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9904 rm -rf conftest*
9905 has_weof=yes
9906 else
9907 echo "configure: failed program was:" >&5
9908 cat conftest.$ac_ext >&5
9909 rm -rf conftest*
9910 has_weof=no
9912 rm -f conftest*
9913 echo "$ac_t""$has_weof" 1>&6
9915 ac_wfuncs=yes
9916 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9919 echo "configure:9920: checking for $ac_func" >&5
9920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9921 echo $ac_n "(cached) $ac_c" 1>&6
9922 else
9923 cat > conftest.$ac_ext <<EOF
9924 #line 9925 "configure"
9925 #include "confdefs.h"
9926 /* System header to define __stub macros and hopefully few prototypes,
9927 which can conflict with char $ac_func(); below. */
9928 #include <assert.h>
9929 /* Override any gcc2 internal prototype to avoid an error. */
9930 /* We use char because int might match the return type of a gcc2
9931 builtin and then its argument prototype would still apply. */
9932 char $ac_func();
9934 int main() {
9936 /* The GNU C library defines this for functions which it implements
9937 to always fail with ENOSYS. Some functions are actually named
9938 something starting with __ and the normal name is an alias. */
9939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9940 choke me
9941 #else
9942 $ac_func();
9943 #endif
9945 ; return 0; }
9947 if { (eval echo configure:9948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9948 rm -rf conftest*
9949 eval "ac_cv_func_$ac_func=yes"
9950 else
9951 echo "configure: failed program was:" >&5
9952 cat conftest.$ac_ext >&5
9953 rm -rf conftest*
9954 eval "ac_cv_func_$ac_func=no"
9956 rm -f conftest*
9959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9960 echo "$ac_t""yes" 1>&6
9961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9962 cat >> confdefs.h <<EOF
9963 #define $ac_tr_func 1
9966 else
9967 echo "$ac_t""no" 1>&6
9969 ac_wfuncs=no
9971 done
9974 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9975 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9976 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9977 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9978 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9979 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9982 echo "configure:9983: checking for $ac_func" >&5
9983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9984 echo $ac_n "(cached) $ac_c" 1>&6
9985 else
9986 cat > conftest.$ac_ext <<EOF
9987 #line 9988 "configure"
9988 #include "confdefs.h"
9989 /* System header to define __stub macros and hopefully few prototypes,
9990 which can conflict with char $ac_func(); below. */
9991 #include <assert.h>
9992 /* Override any gcc2 internal prototype to avoid an error. */
9993 /* We use char because int might match the return type of a gcc2
9994 builtin and then its argument prototype would still apply. */
9995 char $ac_func();
9997 int main() {
9999 /* The GNU C library defines this for functions which it implements
10000 to always fail with ENOSYS. Some functions are actually named
10001 something starting with __ and the normal name is an alias. */
10002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10003 choke me
10004 #else
10005 $ac_func();
10006 #endif
10008 ; return 0; }
10010 if { (eval echo configure:10011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10011 rm -rf conftest*
10012 eval "ac_cv_func_$ac_func=yes"
10013 else
10014 echo "configure: failed program was:" >&5
10015 cat conftest.$ac_ext >&5
10016 rm -rf conftest*
10017 eval "ac_cv_func_$ac_func=no"
10019 rm -f conftest*
10022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10023 echo "$ac_t""yes" 1>&6
10024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10025 cat >> confdefs.h <<EOF
10026 #define $ac_tr_func 1
10029 else
10030 echo "$ac_t""no" 1>&6
10032 ac_wfuncs=no
10034 done
10037 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
10038 echo "configure:10039: checking for ISO C99 wchar_t support" >&5
10039 if test x"$has_weof" = xyes &&
10040 test x"$has_wchar_minmax" = xyes &&
10041 test x"$ac_wfuncs" = xyes; then
10042 ac_isoC99_wchar_t=yes
10043 else
10044 ac_isoC99_wchar_t=no
10046 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
10048 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
10049 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
10050 echo "configure:10051: checking for iconv.h" >&5
10051 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10052 echo $ac_n "(cached) $ac_c" 1>&6
10053 else
10054 cat > conftest.$ac_ext <<EOF
10055 #line 10056 "configure"
10056 #include "confdefs.h"
10057 #include <iconv.h>
10059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10060 { (eval echo configure:10061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10062 if test -z "$ac_err"; then
10063 rm -rf conftest*
10064 eval "ac_cv_header_$ac_safe=yes"
10065 else
10066 echo "$ac_err" >&5
10067 echo "configure: failed program was:" >&5
10068 cat conftest.$ac_ext >&5
10069 rm -rf conftest*
10070 eval "ac_cv_header_$ac_safe=no"
10072 rm -f conftest*
10074 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10075 echo "$ac_t""yes" 1>&6
10076 ac_has_iconv_h=yes
10077 else
10078 echo "$ac_t""no" 1>&6
10079 ac_has_iconv_h=no
10082 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
10083 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
10084 echo "configure:10085: checking for langinfo.h" >&5
10085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10086 echo $ac_n "(cached) $ac_c" 1>&6
10087 else
10088 cat > conftest.$ac_ext <<EOF
10089 #line 10090 "configure"
10090 #include "confdefs.h"
10091 #include <langinfo.h>
10093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10094 { (eval echo configure:10095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10096 if test -z "$ac_err"; then
10097 rm -rf conftest*
10098 eval "ac_cv_header_$ac_safe=yes"
10099 else
10100 echo "$ac_err" >&5
10101 echo "configure: failed program was:" >&5
10102 cat conftest.$ac_ext >&5
10103 rm -rf conftest*
10104 eval "ac_cv_header_$ac_safe=no"
10106 rm -f conftest*
10108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10109 echo "$ac_t""yes" 1>&6
10110 ac_has_langinfo_h=yes
10111 else
10112 echo "$ac_t""no" 1>&6
10113 ac_has_langinfo_h=no
10117 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
10118 echo "configure:10119: checking for iconv in -liconv" >&5
10119 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
10120 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10121 echo $ac_n "(cached) $ac_c" 1>&6
10122 else
10123 ac_save_LIBS="$LIBS"
10124 LIBS="-liconv $LIBS"
10125 cat > conftest.$ac_ext <<EOF
10126 #line 10127 "configure"
10127 #include "confdefs.h"
10128 /* Override any gcc2 internal prototype to avoid an error. */
10129 /* We use char because int might match the return type of a gcc2
10130 builtin and then its argument prototype would still apply. */
10131 char iconv();
10133 int main() {
10134 iconv()
10135 ; return 0; }
10137 if { (eval echo configure:10138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10138 rm -rf conftest*
10139 eval "ac_cv_lib_$ac_lib_var=yes"
10140 else
10141 echo "configure: failed program was:" >&5
10142 cat conftest.$ac_ext >&5
10143 rm -rf conftest*
10144 eval "ac_cv_lib_$ac_lib_var=no"
10146 rm -f conftest*
10147 LIBS="$ac_save_LIBS"
10150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10151 echo "$ac_t""yes" 1>&6
10152 libiconv="-liconv"
10153 else
10154 echo "$ac_t""no" 1>&6
10157 ac_save_LIBS="$LIBS"
10158 LIBS="$LIBS $libiconv"
10160 for ac_func in iconv_open iconv_close iconv nl_langinfo
10162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10163 echo "configure:10164: checking for $ac_func" >&5
10164 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10165 echo $ac_n "(cached) $ac_c" 1>&6
10166 else
10167 cat > conftest.$ac_ext <<EOF
10168 #line 10169 "configure"
10169 #include "confdefs.h"
10170 /* System header to define __stub macros and hopefully few prototypes,
10171 which can conflict with char $ac_func(); below. */
10172 #include <assert.h>
10173 /* Override any gcc2 internal prototype to avoid an error. */
10174 /* We use char because int might match the return type of a gcc2
10175 builtin and then its argument prototype would still apply. */
10176 char $ac_func();
10178 int main() {
10180 /* The GNU C library defines this for functions which it implements
10181 to always fail with ENOSYS. Some functions are actually named
10182 something starting with __ and the normal name is an alias. */
10183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10184 choke me
10185 #else
10186 $ac_func();
10187 #endif
10189 ; return 0; }
10191 if { (eval echo configure:10192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10192 rm -rf conftest*
10193 eval "ac_cv_func_$ac_func=yes"
10194 else
10195 echo "configure: failed program was:" >&5
10196 cat conftest.$ac_ext >&5
10197 rm -rf conftest*
10198 eval "ac_cv_func_$ac_func=no"
10200 rm -f conftest*
10203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10204 echo "$ac_t""yes" 1>&6
10205 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10206 cat >> confdefs.h <<EOF
10207 #define $ac_tr_func 1
10210 ac_XPG2funcs=yes
10211 else
10212 echo "$ac_t""no" 1>&6
10213 ac_XPG2funcs=no
10215 done
10218 LIBS="$ac_save_LIBS"
10220 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
10221 echo "configure:10222: checking for XPG2 wchar_t support" >&5
10222 if test x"$ac_has_iconv_h" = xyes &&
10223 test x"$ac_has_langinfo_h" = xyes &&
10224 test x"$ac_XPG2funcs" = xyes; then
10225 ac_XPG2_wchar_t=yes
10226 else
10227 ac_XPG2_wchar_t=no
10229 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
10231 if test x"$ac_isoC99_wchar_t" = xyes &&
10232 test x"$ac_XPG2_wchar_t" = xyes; then
10233 cat >> confdefs.h <<\EOF
10234 #define _GLIBCPP_USE_WCHAR_T 1
10237 enable_wchar_t=yes
10240 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
10241 echo "configure:10242: checking for enabled wchar_t specializations" >&5
10242 echo "$ac_t""$enable_wchar_t" 1>&6
10245 if test "$enable_wchar_t" = yes; then
10246 GLIBCPP_TEST_WCHAR_T_TRUE=
10247 GLIBCPP_TEST_WCHAR_T_FALSE='#'
10248 else
10249 GLIBCPP_TEST_WCHAR_T_TRUE='#'
10250 GLIBCPP_TEST_WCHAR_T_FALSE=
10253 cat >> confdefs.h <<\EOF
10254 #define HAVE_COSF 1
10257 cat >> confdefs.h <<\EOF
10258 #define HAVE_COSL 1
10261 cat >> confdefs.h <<\EOF
10262 #define HAVE_COSHF 1
10265 cat >> confdefs.h <<\EOF
10266 #define HAVE_COSHL 1
10269 cat >> confdefs.h <<\EOF
10270 #define HAVE_LOGF 1
10273 cat >> confdefs.h <<\EOF
10274 #define HAVE_LOGL 1
10277 cat >> confdefs.h <<\EOF
10278 #define HAVE_LOG10F 1
10281 cat >> confdefs.h <<\EOF
10282 #define HAVE_LOG10L 1
10285 cat >> confdefs.h <<\EOF
10286 #define HAVE_SINF 1
10289 cat >> confdefs.h <<\EOF
10290 #define HAVE_SINL 1
10293 cat >> confdefs.h <<\EOF
10294 #define HAVE_SINHF 1
10297 cat >> confdefs.h <<\EOF
10298 #define HAVE_SINHL 1
10302 *-solaris*)
10303 case "$target" in
10304 *-solaris2.5)
10305 os_include_dir="os/solaris/solaris2.5"
10307 *-solaris2.6)
10308 os_include_dir="os/solaris/solaris2.6"
10310 *-solaris2.7 | *-solaris2.8 | *-solaris2.9)
10311 os_include_dir="os/solaris/solaris2.7"
10313 esac
10314 cat >> confdefs.h <<\EOF
10315 #define HAVE_STRTOF 1
10318 cat >> confdefs.h <<\EOF
10319 #define HAVE_STRTOLD 1
10322 cat >> confdefs.h <<\EOF
10323 #define HAVE_MMAP 1
10326 cat >> confdefs.h <<\EOF
10327 #define HAVE_COPYSIGN 1
10330 cat >> confdefs.h <<\EOF
10331 #define HAVE_ISNAN 1
10334 cat >> confdefs.h <<\EOF
10335 #define HAVE_ISNANF 1
10338 cat >> confdefs.h <<\EOF
10339 #define HAVE_MODFF 1
10342 cat >> confdefs.h <<\EOF
10343 #define HAVE_HYPOT 1
10347 *-windiss*)
10348 os_include_dir="os/windiss"
10349 cat >> confdefs.h <<\EOF
10350 #define HAVE_ACOSF 1
10353 cat >> confdefs.h <<\EOF
10354 #define HAVE_ASINF 1
10357 cat >> confdefs.h <<\EOF
10358 #define HAVE_ATAN2F 1
10361 cat >> confdefs.h <<\EOF
10362 #define HAVE_ATANF 1
10365 cat >> confdefs.h <<\EOF
10366 #define HAVE_CEILF 1
10369 cat >> confdefs.h <<\EOF
10370 #define HAVE_COPYSIGN 1
10373 cat >> confdefs.h <<\EOF
10374 #define HAVE_COPYSIGNF 1
10377 cat >> confdefs.h <<\EOF
10378 #define HAVE_COSF 1
10381 cat >> confdefs.h <<\EOF
10382 #define HAVE_COSHF 1
10385 cat >> confdefs.h <<\EOF
10386 #define HAVE_EXPF 1
10389 cat >> confdefs.h <<\EOF
10390 #define HAVE_FABSF 1
10393 cat >> confdefs.h <<\EOF
10394 #define HAVE_FLOORF 1
10397 cat >> confdefs.h <<\EOF
10398 #define HAVE_FMODF 1
10401 cat >> confdefs.h <<\EOF
10402 #define HAVE_FREXPF 1
10405 cat >> confdefs.h <<\EOF
10406 #define HAVE_LDEXPF 1
10409 cat >> confdefs.h <<\EOF
10410 #define HAVE_LOG10F 1
10413 cat >> confdefs.h <<\EOF
10414 #define HAVE_LOGF 1
10417 cat >> confdefs.h <<\EOF
10418 #define HAVE_MODFF 1
10421 cat >> confdefs.h <<\EOF
10422 #define HAVE_POWF 1
10425 cat >> confdefs.h <<\EOF
10426 #define HAVE_SINF 1
10429 cat >> confdefs.h <<\EOF
10430 #define HAVE_SINHF 1
10433 cat >> confdefs.h <<\EOF
10434 #define HAVE_SQRTF 1
10437 cat >> confdefs.h <<\EOF
10438 #define HAVE_TANF 1
10441 cat >> confdefs.h <<\EOF
10442 #define HAVE_TANHF 1
10447 if test "x${with_newlib}" = "xyes"; then
10448 os_include_dir="os/newlib"
10449 cat >> confdefs.h <<\EOF
10450 #define HAVE_HYPOT 1
10454 # GLIBCPP_CHECK_STDLIB_SUPPORT
10455 cat >> confdefs.h <<\EOF
10456 #define HAVE_STRTOF 1
10459 cat >> confdefs.h <<\EOF
10460 #define HAVE_STRTOLD 1
10463 # AC_FUNC_MMAP
10464 cat >> confdefs.h <<\EOF
10465 #define HAVE_MMAP 1
10469 cat >> confdefs.h <<\EOF
10470 #define HAVE_ACOSF 1
10473 cat >> confdefs.h <<\EOF
10474 #define HAVE_ASINF 1
10477 cat >> confdefs.h <<\EOF
10478 #define HAVE_ATAN2F 1
10481 cat >> confdefs.h <<\EOF
10482 #define HAVE_ATANF 1
10485 cat >> confdefs.h <<\EOF
10486 #define HAVE_CEILF 1
10489 cat >> confdefs.h <<\EOF
10490 #define HAVE_COPYSIGN 1
10493 cat >> confdefs.h <<\EOF
10494 #define HAVE_COPYSIGNF 1
10497 cat >> confdefs.h <<\EOF
10498 #define HAVE_COSF 1
10501 cat >> confdefs.h <<\EOF
10502 #define HAVE_COSHF 1
10505 cat >> confdefs.h <<\EOF
10506 #define HAVE_EXPF 1
10509 cat >> confdefs.h <<\EOF
10510 #define HAVE_FABSF 1
10513 cat >> confdefs.h <<\EOF
10514 #define HAVE_FLOORF 1
10517 cat >> confdefs.h <<\EOF
10518 #define HAVE_FMODF 1
10521 cat >> confdefs.h <<\EOF
10522 #define HAVE_FREXPF 1
10525 cat >> confdefs.h <<\EOF
10526 #define HAVE_LDEXPF 1
10529 cat >> confdefs.h <<\EOF
10530 #define HAVE_LOG10F 1
10533 cat >> confdefs.h <<\EOF
10534 #define HAVE_LOGF 1
10537 cat >> confdefs.h <<\EOF
10538 #define HAVE_MODFF 1
10541 cat >> confdefs.h <<\EOF
10542 #define HAVE_POWF 1
10545 cat >> confdefs.h <<\EOF
10546 #define HAVE_SINF 1
10549 cat >> confdefs.h <<\EOF
10550 #define HAVE_SINHF 1
10553 cat >> confdefs.h <<\EOF
10554 #define HAVE_SQRTF 1
10557 cat >> confdefs.h <<\EOF
10558 #define HAVE_TANF 1
10561 cat >> confdefs.h <<\EOF
10562 #define HAVE_TANHF 1
10565 else
10566 { echo "configure: error: No support for this host/target combination." 1>&2; exit 1; }
10569 esac
10571 # At some point, we should differentiate between architectures
10572 # like x86, which have long double versions, and alpha/powerpc/etc.,
10573 # which don't. For the time being, punt.
10574 if test x"long_double_math_on_this_cpu" = x"yes"; then
10575 cat >> confdefs.h <<\EOF
10576 #define HAVE_ACOSL 1
10579 cat >> confdefs.h <<\EOF
10580 #define HAVE_ASINL 1
10583 cat >> confdefs.h <<\EOF
10584 #define HAVE_ATAN2L 1
10587 cat >> confdefs.h <<\EOF
10588 #define HAVE_ATANL 1
10591 cat >> confdefs.h <<\EOF
10592 #define HAVE_CEILL 1
10595 cat >> confdefs.h <<\EOF
10596 #define HAVE_COPYSIGNL 1
10599 cat >> confdefs.h <<\EOF
10600 #define HAVE_COSL 1
10603 cat >> confdefs.h <<\EOF
10604 #define HAVE_COSHL 1
10607 cat >> confdefs.h <<\EOF
10608 #define HAVE_EXPL 1
10611 cat >> confdefs.h <<\EOF
10612 #define HAVE_FABSL 1
10615 cat >> confdefs.h <<\EOF
10616 #define HAVE_FLOORL 1
10619 cat >> confdefs.h <<\EOF
10620 #define HAVE_FMODL 1
10623 cat >> confdefs.h <<\EOF
10624 #define HAVE_FREXPL 1
10627 cat >> confdefs.h <<\EOF
10628 #define HAVE_LDEXPL 1
10631 cat >> confdefs.h <<\EOF
10632 #define HAVE_LOG10L 1
10635 cat >> confdefs.h <<\EOF
10636 #define HAVE_LOGL 1
10639 cat >> confdefs.h <<\EOF
10640 #define HAVE_MODFL 1
10643 cat >> confdefs.h <<\EOF
10644 #define HAVE_POWL 1
10647 cat >> confdefs.h <<\EOF
10648 #define HAVE_SINCOSL 1
10651 cat >> confdefs.h <<\EOF
10652 #define HAVE_SINL 1
10655 cat >> confdefs.h <<\EOF
10656 #define HAVE_SINHL 1
10659 cat >> confdefs.h <<\EOF
10660 #define HAVE_SQRTL 1
10663 cat >> confdefs.h <<\EOF
10664 #define HAVE_TANL 1
10667 cat >> confdefs.h <<\EOF
10668 #define HAVE_TANHL 1
10673 else
10675 # We are being configured natively. We can do more elaborate tests
10676 # that include AC_TRY_COMPILE now, as the linker is assumed to be
10677 # working.
10678 GLIBCPP_IS_CROSS_COMPILING=0
10679 CANADIAN=no
10681 # Check for available headers.
10682 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10683 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
10684 sys/types.h
10686 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10687 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10688 echo "configure:10689: checking for $ac_hdr" >&5
10689 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10690 echo $ac_n "(cached) $ac_c" 1>&6
10691 else
10692 cat > conftest.$ac_ext <<EOF
10693 #line 10694 "configure"
10694 #include "confdefs.h"
10695 #include <$ac_hdr>
10697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10698 { (eval echo configure:10699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10700 if test -z "$ac_err"; then
10701 rm -rf conftest*
10702 eval "ac_cv_header_$ac_safe=yes"
10703 else
10704 echo "$ac_err" >&5
10705 echo "configure: failed program was:" >&5
10706 cat conftest.$ac_ext >&5
10707 rm -rf conftest*
10708 eval "ac_cv_header_$ac_safe=no"
10710 rm -f conftest*
10712 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10713 echo "$ac_t""yes" 1>&6
10714 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10715 cat >> confdefs.h <<EOF
10716 #define $ac_tr_hdr 1
10719 else
10720 echo "$ac_t""no" 1>&6
10722 done
10726 # All these tests are for C++; save the language and the compiler flags.
10727 # The CXXFLAGS thing is suspicious, but based on similar bits previously
10728 # found in GLIBCPP_CONFIGURE.
10730 ac_ext=C
10731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10732 ac_cpp='$CXXCPP $CPPFLAGS'
10733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10734 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10735 cross_compiling=$ac_cv_prog_cxx_cross
10737 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10738 ac_save_CXXFLAGS="$CXXFLAGS"
10740 # Check for maintainer-mode bits.
10741 if test x"$USE_MAINTAINER_MODE" = xno; then
10742 WERROR=''
10743 else
10744 WERROR='-Werror'
10747 # Check for -ffunction-sections -fdata-sections
10748 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10749 echo "configure:10750: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10750 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10751 cat > conftest.$ac_ext <<EOF
10752 #line 10753 "configure"
10753 #include "confdefs.h"
10755 int main() {
10756 int foo;
10758 ; return 0; }
10760 if { (eval echo configure:10761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10761 rm -rf conftest*
10762 ac_fdsections=yes
10763 else
10764 echo "configure: failed program was:" >&5
10765 cat conftest.$ac_ext >&5
10766 rm -rf conftest*
10767 ac_fdsections=no
10769 rm -f conftest*
10770 if test "$ac_test_CXXFLAGS" = set; then
10771 CXXFLAGS="$ac_save_CXXFLAGS"
10772 else
10773 # this is the suspicious part
10774 CXXFLAGS=''
10776 if test x"$ac_fdsections" = x"yes"; then
10777 SECTION_FLAGS='-ffunction-sections -fdata-sections'
10779 echo "$ac_t""$ac_fdsections" 1>&6
10781 ac_ext=c
10782 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10783 ac_cpp='$CPP $CPPFLAGS'
10784 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10785 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10786 cross_compiling=$ac_cv_prog_cc_cross
10792 # If we're not using GNU ld, then there's no point in even trying these
10793 # tests. Check for that first. We should have already tested for gld
10794 # by now (in libtool), but require it now just to be safe...
10795 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10796 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10799 # The name set by libtool depends on the version of libtool. Shame on us
10800 # for depending on an impl detail, but c'est la vie. Older versions used
10801 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10802 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10803 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
10804 # set (hence we're using an older libtool), then set it.
10805 if test x${with_gnu_ld+set} != xset; then
10806 if test x${ac_cv_prog_gnu_ld+set} != xset; then
10807 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
10808 with_gnu_ld=no
10809 else
10810 with_gnu_ld=$ac_cv_prog_gnu_ld
10814 # Start by getting the version number. I think the libtool test already
10815 # does some of this, but throws away the result.
10817 ldver=`$LD --version 2>/dev/null | head -1 | \
10818 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10820 glibcpp_gnu_ld_version=`echo $ldver | \
10821 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10823 # Set --gc-sections.
10824 if test "$with_gnu_ld" = "notbroken"; then
10825 # GNU ld it is! Joy and bunny rabbits!
10827 # All these tests are for C++; save the language and the compiler flags.
10828 # Need to do this so that g++ won't try to link in libstdc++
10829 ac_test_CFLAGS="${CFLAGS+set}"
10830 ac_save_CFLAGS="$CFLAGS"
10831 CFLAGS='-x c++ -Wl,--gc-sections'
10833 # Check for -Wl,--gc-sections
10834 # XXX This test is broken at the moment, as symbols required for
10835 # linking are now in libsupc++ (not built yet.....). In addition,
10836 # this test has cored on solaris in the past. In addition,
10837 # --gc-sections doesn't really work at the moment (keeps on discarding
10838 # used sections, first .eh_frame and now some of the glibc sections for
10839 # iconv). Bzzzzt. Thanks for playing, maybe next time.
10840 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10841 echo "configure:10842: checking for ld that supports -Wl,--gc-sections" >&5
10842 if test "$cross_compiling" = yes; then
10843 ac_sectionLDflags=yes
10844 else
10845 cat > conftest.$ac_ext <<EOF
10846 #line 10847 "configure"
10847 #include "confdefs.h"
10849 int main(void)
10851 try { throw 1; }
10852 catch (...) { };
10853 return 0;
10857 if { (eval echo configure:10858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10858 then
10859 ac_sectionLDflags=yes
10860 else
10861 echo "configure: failed program was:" >&5
10862 cat conftest.$ac_ext >&5
10863 rm -fr conftest*
10864 ac_sectionLDflags=no
10866 rm -fr conftest*
10869 if test "$ac_test_CFLAGS" = set; then
10870 CFLAGS="$ac_save_CFLAGS"
10871 else
10872 # this is the suspicious part
10873 CFLAGS=''
10875 if test "$ac_sectionLDflags" = "yes"; then
10876 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10878 echo "$ac_t""$ac_sectionLDflags" 1>&6
10881 # Set linker optimization flags.
10882 if test x"$with_gnu_ld" = x"yes"; then
10883 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10890 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10891 ac_save_CXXFLAGS="$CXXFLAGS"
10892 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10894 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10895 echo "configure:10896: checking for sin in -lm" >&5
10896 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10898 echo $ac_n "(cached) $ac_c" 1>&6
10899 else
10900 ac_save_LIBS="$LIBS"
10901 LIBS="-lm $LIBS"
10902 cat > conftest.$ac_ext <<EOF
10903 #line 10904 "configure"
10904 #include "confdefs.h"
10905 /* Override any gcc2 internal prototype to avoid an error. */
10906 /* We use char because int might match the return type of a gcc2
10907 builtin and then its argument prototype would still apply. */
10908 char sin();
10910 int main() {
10911 sin()
10912 ; return 0; }
10914 if { (eval echo configure:10915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10915 rm -rf conftest*
10916 eval "ac_cv_lib_$ac_lib_var=yes"
10917 else
10918 echo "configure: failed program was:" >&5
10919 cat conftest.$ac_ext >&5
10920 rm -rf conftest*
10921 eval "ac_cv_lib_$ac_lib_var=no"
10923 rm -f conftest*
10924 LIBS="$ac_save_LIBS"
10927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10928 echo "$ac_t""yes" 1>&6
10929 libm="-lm"
10930 else
10931 echo "$ac_t""no" 1>&6
10934 ac_save_LIBS="$LIBS"
10935 LIBS="$LIBS $libm"
10939 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10940 echo "configure:10941: checking for isinf declaration" >&5
10941 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10942 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10943 echo $ac_n "(cached) $ac_c" 1>&6
10944 else
10947 ac_ext=C
10948 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10949 ac_cpp='$CXXCPP $CPPFLAGS'
10950 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10951 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10952 cross_compiling=$ac_cv_prog_cxx_cross
10954 cat > conftest.$ac_ext <<EOF
10955 #line 10956 "configure"
10956 #include "confdefs.h"
10957 #include <math.h>
10958 #ifdef HAVE_IEEEFP_H
10959 #include <ieeefp.h>
10960 #endif
10962 int main() {
10963 isinf(0);
10964 ; return 0; }
10966 if { (eval echo configure:10967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10967 rm -rf conftest*
10968 glibcpp_cv_func_isinf_use=yes
10969 else
10970 echo "configure: failed program was:" >&5
10971 cat conftest.$ac_ext >&5
10972 rm -rf conftest*
10973 glibcpp_cv_func_isinf_use=no
10975 rm -f conftest*
10976 ac_ext=c
10977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10978 ac_cpp='$CPP $CPPFLAGS'
10979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10980 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10981 cross_compiling=$ac_cv_prog_cc_cross
10987 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10989 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10990 for ac_func in isinf
10992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10993 echo "configure:10994: checking for $ac_func" >&5
10994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10995 echo $ac_n "(cached) $ac_c" 1>&6
10996 else
10997 cat > conftest.$ac_ext <<EOF
10998 #line 10999 "configure"
10999 #include "confdefs.h"
11000 /* System header to define __stub macros and hopefully few prototypes,
11001 which can conflict with char $ac_func(); below. */
11002 #include <assert.h>
11003 /* Override any gcc2 internal prototype to avoid an error. */
11004 /* We use char because int might match the return type of a gcc2
11005 builtin and then its argument prototype would still apply. */
11006 char $ac_func();
11008 int main() {
11010 /* The GNU C library defines this for functions which it implements
11011 to always fail with ENOSYS. Some functions are actually named
11012 something starting with __ and the normal name is an alias. */
11013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11014 choke me
11015 #else
11016 $ac_func();
11017 #endif
11019 ; return 0; }
11021 if { (eval echo configure:11022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11022 rm -rf conftest*
11023 eval "ac_cv_func_$ac_func=yes"
11024 else
11025 echo "configure: failed program was:" >&5
11026 cat conftest.$ac_ext >&5
11027 rm -rf conftest*
11028 eval "ac_cv_func_$ac_func=no"
11030 rm -f conftest*
11033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11034 echo "$ac_t""yes" 1>&6
11035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11036 cat >> confdefs.h <<EOF
11037 #define $ac_tr_func 1
11040 else
11041 echo "$ac_t""no" 1>&6
11043 done
11045 else
11047 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
11048 echo "configure:11049: checking for _isinf declaration" >&5
11049 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
11050 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
11051 echo $ac_n "(cached) $ac_c" 1>&6
11052 else
11055 ac_ext=C
11056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11057 ac_cpp='$CXXCPP $CPPFLAGS'
11058 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11059 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11060 cross_compiling=$ac_cv_prog_cxx_cross
11062 cat > conftest.$ac_ext <<EOF
11063 #line 11064 "configure"
11064 #include "confdefs.h"
11065 #include <math.h>
11066 #ifdef HAVE_IEEEFP_H
11067 #include <ieeefp.h>
11068 #endif
11070 int main() {
11071 _isinf(0);
11072 ; return 0; }
11074 if { (eval echo configure:11075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11075 rm -rf conftest*
11076 glibcpp_cv_func__isinf_use=yes
11077 else
11078 echo "configure: failed program was:" >&5
11079 cat conftest.$ac_ext >&5
11080 rm -rf conftest*
11081 glibcpp_cv_func__isinf_use=no
11083 rm -f conftest*
11084 ac_ext=c
11085 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11086 ac_cpp='$CPP $CPPFLAGS'
11087 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11088 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11089 cross_compiling=$ac_cv_prog_cc_cross
11095 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
11097 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
11098 for ac_func in _isinf
11100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11101 echo "configure:11102: checking for $ac_func" >&5
11102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11103 echo $ac_n "(cached) $ac_c" 1>&6
11104 else
11105 cat > conftest.$ac_ext <<EOF
11106 #line 11107 "configure"
11107 #include "confdefs.h"
11108 /* System header to define __stub macros and hopefully few prototypes,
11109 which can conflict with char $ac_func(); below. */
11110 #include <assert.h>
11111 /* Override any gcc2 internal prototype to avoid an error. */
11112 /* We use char because int might match the return type of a gcc2
11113 builtin and then its argument prototype would still apply. */
11114 char $ac_func();
11116 int main() {
11118 /* The GNU C library defines this for functions which it implements
11119 to always fail with ENOSYS. Some functions are actually named
11120 something starting with __ and the normal name is an alias. */
11121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11122 choke me
11123 #else
11124 $ac_func();
11125 #endif
11127 ; return 0; }
11129 if { (eval echo configure:11130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11130 rm -rf conftest*
11131 eval "ac_cv_func_$ac_func=yes"
11132 else
11133 echo "configure: failed program was:" >&5
11134 cat conftest.$ac_ext >&5
11135 rm -rf conftest*
11136 eval "ac_cv_func_$ac_func=no"
11138 rm -f conftest*
11141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11142 echo "$ac_t""yes" 1>&6
11143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11144 cat >> confdefs.h <<EOF
11145 #define $ac_tr_func 1
11148 else
11149 echo "$ac_t""no" 1>&6
11151 done
11158 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
11159 echo "configure:11160: checking for isnan declaration" >&5
11160 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
11161 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
11162 echo $ac_n "(cached) $ac_c" 1>&6
11163 else
11166 ac_ext=C
11167 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11168 ac_cpp='$CXXCPP $CPPFLAGS'
11169 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11170 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11171 cross_compiling=$ac_cv_prog_cxx_cross
11173 cat > conftest.$ac_ext <<EOF
11174 #line 11175 "configure"
11175 #include "confdefs.h"
11176 #include <math.h>
11177 #ifdef HAVE_IEEEFP_H
11178 #include <ieeefp.h>
11179 #endif
11181 int main() {
11182 isnan(0);
11183 ; return 0; }
11185 if { (eval echo configure:11186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11186 rm -rf conftest*
11187 glibcpp_cv_func_isnan_use=yes
11188 else
11189 echo "configure: failed program was:" >&5
11190 cat conftest.$ac_ext >&5
11191 rm -rf conftest*
11192 glibcpp_cv_func_isnan_use=no
11194 rm -f conftest*
11195 ac_ext=c
11196 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11197 ac_cpp='$CPP $CPPFLAGS'
11198 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11199 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11200 cross_compiling=$ac_cv_prog_cc_cross
11206 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
11208 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
11209 for ac_func in isnan
11211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11212 echo "configure:11213: checking for $ac_func" >&5
11213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11214 echo $ac_n "(cached) $ac_c" 1>&6
11215 else
11216 cat > conftest.$ac_ext <<EOF
11217 #line 11218 "configure"
11218 #include "confdefs.h"
11219 /* System header to define __stub macros and hopefully few prototypes,
11220 which can conflict with char $ac_func(); below. */
11221 #include <assert.h>
11222 /* Override any gcc2 internal prototype to avoid an error. */
11223 /* We use char because int might match the return type of a gcc2
11224 builtin and then its argument prototype would still apply. */
11225 char $ac_func();
11227 int main() {
11229 /* The GNU C library defines this for functions which it implements
11230 to always fail with ENOSYS. Some functions are actually named
11231 something starting with __ and the normal name is an alias. */
11232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11233 choke me
11234 #else
11235 $ac_func();
11236 #endif
11238 ; return 0; }
11240 if { (eval echo configure:11241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11241 rm -rf conftest*
11242 eval "ac_cv_func_$ac_func=yes"
11243 else
11244 echo "configure: failed program was:" >&5
11245 cat conftest.$ac_ext >&5
11246 rm -rf conftest*
11247 eval "ac_cv_func_$ac_func=no"
11249 rm -f conftest*
11252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11253 echo "$ac_t""yes" 1>&6
11254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11255 cat >> confdefs.h <<EOF
11256 #define $ac_tr_func 1
11259 else
11260 echo "$ac_t""no" 1>&6
11262 done
11264 else
11266 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11267 echo "configure:11268: checking for _isnan declaration" >&5
11268 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11269 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11270 echo $ac_n "(cached) $ac_c" 1>&6
11271 else
11274 ac_ext=C
11275 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11276 ac_cpp='$CXXCPP $CPPFLAGS'
11277 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11278 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11279 cross_compiling=$ac_cv_prog_cxx_cross
11281 cat > conftest.$ac_ext <<EOF
11282 #line 11283 "configure"
11283 #include "confdefs.h"
11284 #include <math.h>
11285 #ifdef HAVE_IEEEFP_H
11286 #include <ieeefp.h>
11287 #endif
11289 int main() {
11290 _isnan(0);
11291 ; return 0; }
11293 if { (eval echo configure:11294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11294 rm -rf conftest*
11295 glibcpp_cv_func__isnan_use=yes
11296 else
11297 echo "configure: failed program was:" >&5
11298 cat conftest.$ac_ext >&5
11299 rm -rf conftest*
11300 glibcpp_cv_func__isnan_use=no
11302 rm -f conftest*
11303 ac_ext=c
11304 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11305 ac_cpp='$CPP $CPPFLAGS'
11306 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11307 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11308 cross_compiling=$ac_cv_prog_cc_cross
11314 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11316 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11317 for ac_func in _isnan
11319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11320 echo "configure:11321: checking for $ac_func" >&5
11321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11322 echo $ac_n "(cached) $ac_c" 1>&6
11323 else
11324 cat > conftest.$ac_ext <<EOF
11325 #line 11326 "configure"
11326 #include "confdefs.h"
11327 /* System header to define __stub macros and hopefully few prototypes,
11328 which can conflict with char $ac_func(); below. */
11329 #include <assert.h>
11330 /* Override any gcc2 internal prototype to avoid an error. */
11331 /* We use char because int might match the return type of a gcc2
11332 builtin and then its argument prototype would still apply. */
11333 char $ac_func();
11335 int main() {
11337 /* The GNU C library defines this for functions which it implements
11338 to always fail with ENOSYS. Some functions are actually named
11339 something starting with __ and the normal name is an alias. */
11340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11341 choke me
11342 #else
11343 $ac_func();
11344 #endif
11346 ; return 0; }
11348 if { (eval echo configure:11349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11349 rm -rf conftest*
11350 eval "ac_cv_func_$ac_func=yes"
11351 else
11352 echo "configure: failed program was:" >&5
11353 cat conftest.$ac_ext >&5
11354 rm -rf conftest*
11355 eval "ac_cv_func_$ac_func=no"
11357 rm -f conftest*
11360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11361 echo "$ac_t""yes" 1>&6
11362 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11363 cat >> confdefs.h <<EOF
11364 #define $ac_tr_func 1
11367 else
11368 echo "$ac_t""no" 1>&6
11370 done
11377 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11378 echo "configure:11379: checking for finite declaration" >&5
11379 if test x${glibcpp_cv_func_finite_use+set} != xset; then
11380 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11381 echo $ac_n "(cached) $ac_c" 1>&6
11382 else
11385 ac_ext=C
11386 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11387 ac_cpp='$CXXCPP $CPPFLAGS'
11388 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11389 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11390 cross_compiling=$ac_cv_prog_cxx_cross
11392 cat > conftest.$ac_ext <<EOF
11393 #line 11394 "configure"
11394 #include "confdefs.h"
11395 #include <math.h>
11396 #ifdef HAVE_IEEEFP_H
11397 #include <ieeefp.h>
11398 #endif
11400 int main() {
11401 finite(0);
11402 ; return 0; }
11404 if { (eval echo configure:11405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11405 rm -rf conftest*
11406 glibcpp_cv_func_finite_use=yes
11407 else
11408 echo "configure: failed program was:" >&5
11409 cat conftest.$ac_ext >&5
11410 rm -rf conftest*
11411 glibcpp_cv_func_finite_use=no
11413 rm -f conftest*
11414 ac_ext=c
11415 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11416 ac_cpp='$CPP $CPPFLAGS'
11417 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11418 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11419 cross_compiling=$ac_cv_prog_cc_cross
11425 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11427 if test x$glibcpp_cv_func_finite_use = x"yes"; then
11428 for ac_func in finite
11430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11431 echo "configure:11432: checking for $ac_func" >&5
11432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11433 echo $ac_n "(cached) $ac_c" 1>&6
11434 else
11435 cat > conftest.$ac_ext <<EOF
11436 #line 11437 "configure"
11437 #include "confdefs.h"
11438 /* System header to define __stub macros and hopefully few prototypes,
11439 which can conflict with char $ac_func(); below. */
11440 #include <assert.h>
11441 /* Override any gcc2 internal prototype to avoid an error. */
11442 /* We use char because int might match the return type of a gcc2
11443 builtin and then its argument prototype would still apply. */
11444 char $ac_func();
11446 int main() {
11448 /* The GNU C library defines this for functions which it implements
11449 to always fail with ENOSYS. Some functions are actually named
11450 something starting with __ and the normal name is an alias. */
11451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11452 choke me
11453 #else
11454 $ac_func();
11455 #endif
11457 ; return 0; }
11459 if { (eval echo configure:11460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11460 rm -rf conftest*
11461 eval "ac_cv_func_$ac_func=yes"
11462 else
11463 echo "configure: failed program was:" >&5
11464 cat conftest.$ac_ext >&5
11465 rm -rf conftest*
11466 eval "ac_cv_func_$ac_func=no"
11468 rm -f conftest*
11471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11472 echo "$ac_t""yes" 1>&6
11473 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11474 cat >> confdefs.h <<EOF
11475 #define $ac_tr_func 1
11478 else
11479 echo "$ac_t""no" 1>&6
11481 done
11483 else
11485 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11486 echo "configure:11487: checking for _finite declaration" >&5
11487 if test x${glibcpp_cv_func__finite_use+set} != xset; then
11488 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11489 echo $ac_n "(cached) $ac_c" 1>&6
11490 else
11493 ac_ext=C
11494 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11495 ac_cpp='$CXXCPP $CPPFLAGS'
11496 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11497 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11498 cross_compiling=$ac_cv_prog_cxx_cross
11500 cat > conftest.$ac_ext <<EOF
11501 #line 11502 "configure"
11502 #include "confdefs.h"
11503 #include <math.h>
11504 #ifdef HAVE_IEEEFP_H
11505 #include <ieeefp.h>
11506 #endif
11508 int main() {
11509 _finite(0);
11510 ; return 0; }
11512 if { (eval echo configure:11513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11513 rm -rf conftest*
11514 glibcpp_cv_func__finite_use=yes
11515 else
11516 echo "configure: failed program was:" >&5
11517 cat conftest.$ac_ext >&5
11518 rm -rf conftest*
11519 glibcpp_cv_func__finite_use=no
11521 rm -f conftest*
11522 ac_ext=c
11523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11524 ac_cpp='$CPP $CPPFLAGS'
11525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11527 cross_compiling=$ac_cv_prog_cc_cross
11533 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11535 if test x$glibcpp_cv_func__finite_use = x"yes"; then
11536 for ac_func in _finite
11538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11539 echo "configure:11540: checking for $ac_func" >&5
11540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11541 echo $ac_n "(cached) $ac_c" 1>&6
11542 else
11543 cat > conftest.$ac_ext <<EOF
11544 #line 11545 "configure"
11545 #include "confdefs.h"
11546 /* System header to define __stub macros and hopefully few prototypes,
11547 which can conflict with char $ac_func(); below. */
11548 #include <assert.h>
11549 /* Override any gcc2 internal prototype to avoid an error. */
11550 /* We use char because int might match the return type of a gcc2
11551 builtin and then its argument prototype would still apply. */
11552 char $ac_func();
11554 int main() {
11556 /* The GNU C library defines this for functions which it implements
11557 to always fail with ENOSYS. Some functions are actually named
11558 something starting with __ and the normal name is an alias. */
11559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11560 choke me
11561 #else
11562 $ac_func();
11563 #endif
11565 ; return 0; }
11567 if { (eval echo configure:11568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11568 rm -rf conftest*
11569 eval "ac_cv_func_$ac_func=yes"
11570 else
11571 echo "configure: failed program was:" >&5
11572 cat conftest.$ac_ext >&5
11573 rm -rf conftest*
11574 eval "ac_cv_func_$ac_func=no"
11576 rm -f conftest*
11579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11580 echo "$ac_t""yes" 1>&6
11581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11582 cat >> confdefs.h <<EOF
11583 #define $ac_tr_func 1
11586 else
11587 echo "$ac_t""no" 1>&6
11589 done
11596 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11597 echo "configure:11598: checking for copysign declaration" >&5
11598 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11599 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11600 echo $ac_n "(cached) $ac_c" 1>&6
11601 else
11604 ac_ext=C
11605 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11606 ac_cpp='$CXXCPP $CPPFLAGS'
11607 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11608 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11609 cross_compiling=$ac_cv_prog_cxx_cross
11611 cat > conftest.$ac_ext <<EOF
11612 #line 11613 "configure"
11613 #include "confdefs.h"
11614 #include <math.h>
11615 int main() {
11616 copysign(0, 0);
11617 ; return 0; }
11619 if { (eval echo configure:11620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11620 rm -rf conftest*
11621 glibcpp_cv_func_copysign_use=yes
11622 else
11623 echo "configure: failed program was:" >&5
11624 cat conftest.$ac_ext >&5
11625 rm -rf conftest*
11626 glibcpp_cv_func_copysign_use=no
11628 rm -f conftest*
11629 ac_ext=c
11630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11631 ac_cpp='$CPP $CPPFLAGS'
11632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11634 cross_compiling=$ac_cv_prog_cc_cross
11640 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11642 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11643 for ac_func in copysign
11645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11646 echo "configure:11647: checking for $ac_func" >&5
11647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11648 echo $ac_n "(cached) $ac_c" 1>&6
11649 else
11650 cat > conftest.$ac_ext <<EOF
11651 #line 11652 "configure"
11652 #include "confdefs.h"
11653 /* System header to define __stub macros and hopefully few prototypes,
11654 which can conflict with char $ac_func(); below. */
11655 #include <assert.h>
11656 /* Override any gcc2 internal prototype to avoid an error. */
11657 /* We use char because int might match the return type of a gcc2
11658 builtin and then its argument prototype would still apply. */
11659 char $ac_func();
11661 int main() {
11663 /* The GNU C library defines this for functions which it implements
11664 to always fail with ENOSYS. Some functions are actually named
11665 something starting with __ and the normal name is an alias. */
11666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11667 choke me
11668 #else
11669 $ac_func();
11670 #endif
11672 ; return 0; }
11674 if { (eval echo configure:11675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11675 rm -rf conftest*
11676 eval "ac_cv_func_$ac_func=yes"
11677 else
11678 echo "configure: failed program was:" >&5
11679 cat conftest.$ac_ext >&5
11680 rm -rf conftest*
11681 eval "ac_cv_func_$ac_func=no"
11683 rm -f conftest*
11686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11687 echo "$ac_t""yes" 1>&6
11688 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11689 cat >> confdefs.h <<EOF
11690 #define $ac_tr_func 1
11693 else
11694 echo "$ac_t""no" 1>&6
11696 done
11698 else
11700 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11701 echo "configure:11702: checking for _copysign declaration" >&5
11702 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11703 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11704 echo $ac_n "(cached) $ac_c" 1>&6
11705 else
11708 ac_ext=C
11709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11710 ac_cpp='$CXXCPP $CPPFLAGS'
11711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11713 cross_compiling=$ac_cv_prog_cxx_cross
11715 cat > conftest.$ac_ext <<EOF
11716 #line 11717 "configure"
11717 #include "confdefs.h"
11718 #include <math.h>
11719 int main() {
11720 _copysign(0, 0);
11721 ; return 0; }
11723 if { (eval echo configure:11724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11724 rm -rf conftest*
11725 glibcpp_cv_func__copysign_use=yes
11726 else
11727 echo "configure: failed program was:" >&5
11728 cat conftest.$ac_ext >&5
11729 rm -rf conftest*
11730 glibcpp_cv_func__copysign_use=no
11732 rm -f conftest*
11733 ac_ext=c
11734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11735 ac_cpp='$CPP $CPPFLAGS'
11736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11738 cross_compiling=$ac_cv_prog_cc_cross
11744 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11746 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11747 for ac_func in _copysign
11749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11750 echo "configure:11751: checking for $ac_func" >&5
11751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11752 echo $ac_n "(cached) $ac_c" 1>&6
11753 else
11754 cat > conftest.$ac_ext <<EOF
11755 #line 11756 "configure"
11756 #include "confdefs.h"
11757 /* System header to define __stub macros and hopefully few prototypes,
11758 which can conflict with char $ac_func(); below. */
11759 #include <assert.h>
11760 /* Override any gcc2 internal prototype to avoid an error. */
11761 /* We use char because int might match the return type of a gcc2
11762 builtin and then its argument prototype would still apply. */
11763 char $ac_func();
11765 int main() {
11767 /* The GNU C library defines this for functions which it implements
11768 to always fail with ENOSYS. Some functions are actually named
11769 something starting with __ and the normal name is an alias. */
11770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11771 choke me
11772 #else
11773 $ac_func();
11774 #endif
11776 ; return 0; }
11778 if { (eval echo configure:11779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11779 rm -rf conftest*
11780 eval "ac_cv_func_$ac_func=yes"
11781 else
11782 echo "configure: failed program was:" >&5
11783 cat conftest.$ac_ext >&5
11784 rm -rf conftest*
11785 eval "ac_cv_func_$ac_func=no"
11787 rm -f conftest*
11790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11791 echo "$ac_t""yes" 1>&6
11792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11793 cat >> confdefs.h <<EOF
11794 #define $ac_tr_func 1
11797 else
11798 echo "$ac_t""no" 1>&6
11800 done
11807 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11808 echo "configure:11809: checking for sincos declaration" >&5
11809 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11810 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11811 echo $ac_n "(cached) $ac_c" 1>&6
11812 else
11815 ac_ext=C
11816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11817 ac_cpp='$CXXCPP $CPPFLAGS'
11818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11819 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11820 cross_compiling=$ac_cv_prog_cxx_cross
11822 cat > conftest.$ac_ext <<EOF
11823 #line 11824 "configure"
11824 #include "confdefs.h"
11825 #include <math.h>
11826 int main() {
11827 sincos(0, 0, 0);
11828 ; return 0; }
11830 if { (eval echo configure:11831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11831 rm -rf conftest*
11832 glibcpp_cv_func_sincos_use=yes
11833 else
11834 echo "configure: failed program was:" >&5
11835 cat conftest.$ac_ext >&5
11836 rm -rf conftest*
11837 glibcpp_cv_func_sincos_use=no
11839 rm -f conftest*
11840 ac_ext=c
11841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11842 ac_cpp='$CPP $CPPFLAGS'
11843 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11844 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11845 cross_compiling=$ac_cv_prog_cc_cross
11851 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11853 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11854 for ac_func in sincos
11856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11857 echo "configure:11858: checking for $ac_func" >&5
11858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11859 echo $ac_n "(cached) $ac_c" 1>&6
11860 else
11861 cat > conftest.$ac_ext <<EOF
11862 #line 11863 "configure"
11863 #include "confdefs.h"
11864 /* System header to define __stub macros and hopefully few prototypes,
11865 which can conflict with char $ac_func(); below. */
11866 #include <assert.h>
11867 /* Override any gcc2 internal prototype to avoid an error. */
11868 /* We use char because int might match the return type of a gcc2
11869 builtin and then its argument prototype would still apply. */
11870 char $ac_func();
11872 int main() {
11874 /* The GNU C library defines this for functions which it implements
11875 to always fail with ENOSYS. Some functions are actually named
11876 something starting with __ and the normal name is an alias. */
11877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11878 choke me
11879 #else
11880 $ac_func();
11881 #endif
11883 ; return 0; }
11885 if { (eval echo configure:11886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11886 rm -rf conftest*
11887 eval "ac_cv_func_$ac_func=yes"
11888 else
11889 echo "configure: failed program was:" >&5
11890 cat conftest.$ac_ext >&5
11891 rm -rf conftest*
11892 eval "ac_cv_func_$ac_func=no"
11894 rm -f conftest*
11897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11898 echo "$ac_t""yes" 1>&6
11899 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11900 cat >> confdefs.h <<EOF
11901 #define $ac_tr_func 1
11904 else
11905 echo "$ac_t""no" 1>&6
11907 done
11909 else
11911 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11912 echo "configure:11913: checking for _sincos declaration" >&5
11913 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11914 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11915 echo $ac_n "(cached) $ac_c" 1>&6
11916 else
11919 ac_ext=C
11920 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11921 ac_cpp='$CXXCPP $CPPFLAGS'
11922 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11923 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11924 cross_compiling=$ac_cv_prog_cxx_cross
11926 cat > conftest.$ac_ext <<EOF
11927 #line 11928 "configure"
11928 #include "confdefs.h"
11929 #include <math.h>
11930 int main() {
11931 _sincos(0, 0, 0);
11932 ; return 0; }
11934 if { (eval echo configure:11935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11935 rm -rf conftest*
11936 glibcpp_cv_func__sincos_use=yes
11937 else
11938 echo "configure: failed program was:" >&5
11939 cat conftest.$ac_ext >&5
11940 rm -rf conftest*
11941 glibcpp_cv_func__sincos_use=no
11943 rm -f conftest*
11944 ac_ext=c
11945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11946 ac_cpp='$CPP $CPPFLAGS'
11947 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11948 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11949 cross_compiling=$ac_cv_prog_cc_cross
11955 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11957 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11958 for ac_func in _sincos
11960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11961 echo "configure:11962: checking for $ac_func" >&5
11962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11963 echo $ac_n "(cached) $ac_c" 1>&6
11964 else
11965 cat > conftest.$ac_ext <<EOF
11966 #line 11967 "configure"
11967 #include "confdefs.h"
11968 /* System header to define __stub macros and hopefully few prototypes,
11969 which can conflict with char $ac_func(); below. */
11970 #include <assert.h>
11971 /* Override any gcc2 internal prototype to avoid an error. */
11972 /* We use char because int might match the return type of a gcc2
11973 builtin and then its argument prototype would still apply. */
11974 char $ac_func();
11976 int main() {
11978 /* The GNU C library defines this for functions which it implements
11979 to always fail with ENOSYS. Some functions are actually named
11980 something starting with __ and the normal name is an alias. */
11981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11982 choke me
11983 #else
11984 $ac_func();
11985 #endif
11987 ; return 0; }
11989 if { (eval echo configure:11990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11990 rm -rf conftest*
11991 eval "ac_cv_func_$ac_func=yes"
11992 else
11993 echo "configure: failed program was:" >&5
11994 cat conftest.$ac_ext >&5
11995 rm -rf conftest*
11996 eval "ac_cv_func_$ac_func=no"
11998 rm -f conftest*
12001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12002 echo "$ac_t""yes" 1>&6
12003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12004 cat >> confdefs.h <<EOF
12005 #define $ac_tr_func 1
12008 else
12009 echo "$ac_t""no" 1>&6
12011 done
12018 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
12019 echo "configure:12020: checking for fpclass declaration" >&5
12020 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
12021 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
12022 echo $ac_n "(cached) $ac_c" 1>&6
12023 else
12026 ac_ext=C
12027 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12028 ac_cpp='$CXXCPP $CPPFLAGS'
12029 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12030 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12031 cross_compiling=$ac_cv_prog_cxx_cross
12033 cat > conftest.$ac_ext <<EOF
12034 #line 12035 "configure"
12035 #include "confdefs.h"
12036 #include <math.h>
12037 #ifdef HAVE_IEEEFP_H
12038 #include <ieeefp.h>
12039 #endif
12041 int main() {
12042 fpclass(0);
12043 ; return 0; }
12045 if { (eval echo configure:12046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12046 rm -rf conftest*
12047 glibcpp_cv_func_fpclass_use=yes
12048 else
12049 echo "configure: failed program was:" >&5
12050 cat conftest.$ac_ext >&5
12051 rm -rf conftest*
12052 glibcpp_cv_func_fpclass_use=no
12054 rm -f conftest*
12055 ac_ext=c
12056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12057 ac_cpp='$CPP $CPPFLAGS'
12058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12060 cross_compiling=$ac_cv_prog_cc_cross
12066 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
12068 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
12069 for ac_func in fpclass
12071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12072 echo "configure:12073: checking for $ac_func" >&5
12073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12074 echo $ac_n "(cached) $ac_c" 1>&6
12075 else
12076 cat > conftest.$ac_ext <<EOF
12077 #line 12078 "configure"
12078 #include "confdefs.h"
12079 /* System header to define __stub macros and hopefully few prototypes,
12080 which can conflict with char $ac_func(); below. */
12081 #include <assert.h>
12082 /* Override any gcc2 internal prototype to avoid an error. */
12083 /* We use char because int might match the return type of a gcc2
12084 builtin and then its argument prototype would still apply. */
12085 char $ac_func();
12087 int main() {
12089 /* The GNU C library defines this for functions which it implements
12090 to always fail with ENOSYS. Some functions are actually named
12091 something starting with __ and the normal name is an alias. */
12092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12093 choke me
12094 #else
12095 $ac_func();
12096 #endif
12098 ; return 0; }
12100 if { (eval echo configure:12101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12101 rm -rf conftest*
12102 eval "ac_cv_func_$ac_func=yes"
12103 else
12104 echo "configure: failed program was:" >&5
12105 cat conftest.$ac_ext >&5
12106 rm -rf conftest*
12107 eval "ac_cv_func_$ac_func=no"
12109 rm -f conftest*
12112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12113 echo "$ac_t""yes" 1>&6
12114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12115 cat >> confdefs.h <<EOF
12116 #define $ac_tr_func 1
12119 else
12120 echo "$ac_t""no" 1>&6
12122 done
12124 else
12126 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
12127 echo "configure:12128: checking for _fpclass declaration" >&5
12128 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
12129 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
12130 echo $ac_n "(cached) $ac_c" 1>&6
12131 else
12134 ac_ext=C
12135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12136 ac_cpp='$CXXCPP $CPPFLAGS'
12137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12139 cross_compiling=$ac_cv_prog_cxx_cross
12141 cat > conftest.$ac_ext <<EOF
12142 #line 12143 "configure"
12143 #include "confdefs.h"
12144 #include <math.h>
12145 #ifdef HAVE_IEEEFP_H
12146 #include <ieeefp.h>
12147 #endif
12149 int main() {
12150 _fpclass(0);
12151 ; return 0; }
12153 if { (eval echo configure:12154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12154 rm -rf conftest*
12155 glibcpp_cv_func__fpclass_use=yes
12156 else
12157 echo "configure: failed program was:" >&5
12158 cat conftest.$ac_ext >&5
12159 rm -rf conftest*
12160 glibcpp_cv_func__fpclass_use=no
12162 rm -f conftest*
12163 ac_ext=c
12164 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12165 ac_cpp='$CPP $CPPFLAGS'
12166 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12167 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12168 cross_compiling=$ac_cv_prog_cc_cross
12174 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
12176 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
12177 for ac_func in _fpclass
12179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12180 echo "configure:12181: checking for $ac_func" >&5
12181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12182 echo $ac_n "(cached) $ac_c" 1>&6
12183 else
12184 cat > conftest.$ac_ext <<EOF
12185 #line 12186 "configure"
12186 #include "confdefs.h"
12187 /* System header to define __stub macros and hopefully few prototypes,
12188 which can conflict with char $ac_func(); below. */
12189 #include <assert.h>
12190 /* Override any gcc2 internal prototype to avoid an error. */
12191 /* We use char because int might match the return type of a gcc2
12192 builtin and then its argument prototype would still apply. */
12193 char $ac_func();
12195 int main() {
12197 /* The GNU C library defines this for functions which it implements
12198 to always fail with ENOSYS. Some functions are actually named
12199 something starting with __ and the normal name is an alias. */
12200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12201 choke me
12202 #else
12203 $ac_func();
12204 #endif
12206 ; return 0; }
12208 if { (eval echo configure:12209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12209 rm -rf conftest*
12210 eval "ac_cv_func_$ac_func=yes"
12211 else
12212 echo "configure: failed program was:" >&5
12213 cat conftest.$ac_ext >&5
12214 rm -rf conftest*
12215 eval "ac_cv_func_$ac_func=no"
12217 rm -f conftest*
12220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12221 echo "$ac_t""yes" 1>&6
12222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12223 cat >> confdefs.h <<EOF
12224 #define $ac_tr_func 1
12227 else
12228 echo "$ac_t""no" 1>&6
12230 done
12237 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12238 echo "configure:12239: checking for qfpclass declaration" >&5
12239 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12240 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12241 echo $ac_n "(cached) $ac_c" 1>&6
12242 else
12245 ac_ext=C
12246 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12247 ac_cpp='$CXXCPP $CPPFLAGS'
12248 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12249 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12250 cross_compiling=$ac_cv_prog_cxx_cross
12252 cat > conftest.$ac_ext <<EOF
12253 #line 12254 "configure"
12254 #include "confdefs.h"
12255 #include <math.h>
12256 #ifdef HAVE_IEEEFP_H
12257 #include <ieeefp.h>
12258 #endif
12260 int main() {
12261 qfpclass(0);
12262 ; return 0; }
12264 if { (eval echo configure:12265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12265 rm -rf conftest*
12266 glibcpp_cv_func_qfpclass_use=yes
12267 else
12268 echo "configure: failed program was:" >&5
12269 cat conftest.$ac_ext >&5
12270 rm -rf conftest*
12271 glibcpp_cv_func_qfpclass_use=no
12273 rm -f conftest*
12274 ac_ext=c
12275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12276 ac_cpp='$CPP $CPPFLAGS'
12277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12279 cross_compiling=$ac_cv_prog_cc_cross
12285 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12287 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12288 for ac_func in qfpclass
12290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12291 echo "configure:12292: checking for $ac_func" >&5
12292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12293 echo $ac_n "(cached) $ac_c" 1>&6
12294 else
12295 cat > conftest.$ac_ext <<EOF
12296 #line 12297 "configure"
12297 #include "confdefs.h"
12298 /* System header to define __stub macros and hopefully few prototypes,
12299 which can conflict with char $ac_func(); below. */
12300 #include <assert.h>
12301 /* Override any gcc2 internal prototype to avoid an error. */
12302 /* We use char because int might match the return type of a gcc2
12303 builtin and then its argument prototype would still apply. */
12304 char $ac_func();
12306 int main() {
12308 /* The GNU C library defines this for functions which it implements
12309 to always fail with ENOSYS. Some functions are actually named
12310 something starting with __ and the normal name is an alias. */
12311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12312 choke me
12313 #else
12314 $ac_func();
12315 #endif
12317 ; return 0; }
12319 if { (eval echo configure:12320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12320 rm -rf conftest*
12321 eval "ac_cv_func_$ac_func=yes"
12322 else
12323 echo "configure: failed program was:" >&5
12324 cat conftest.$ac_ext >&5
12325 rm -rf conftest*
12326 eval "ac_cv_func_$ac_func=no"
12328 rm -f conftest*
12331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12332 echo "$ac_t""yes" 1>&6
12333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12334 cat >> confdefs.h <<EOF
12335 #define $ac_tr_func 1
12338 else
12339 echo "$ac_t""no" 1>&6
12341 done
12343 else
12345 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12346 echo "configure:12347: checking for _qfpclass declaration" >&5
12347 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12348 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12349 echo $ac_n "(cached) $ac_c" 1>&6
12350 else
12353 ac_ext=C
12354 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12355 ac_cpp='$CXXCPP $CPPFLAGS'
12356 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12357 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12358 cross_compiling=$ac_cv_prog_cxx_cross
12360 cat > conftest.$ac_ext <<EOF
12361 #line 12362 "configure"
12362 #include "confdefs.h"
12363 #include <math.h>
12364 #ifdef HAVE_IEEEFP_H
12365 #include <ieeefp.h>
12366 #endif
12368 int main() {
12369 _qfpclass(0);
12370 ; return 0; }
12372 if { (eval echo configure:12373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12373 rm -rf conftest*
12374 glibcpp_cv_func__qfpclass_use=yes
12375 else
12376 echo "configure: failed program was:" >&5
12377 cat conftest.$ac_ext >&5
12378 rm -rf conftest*
12379 glibcpp_cv_func__qfpclass_use=no
12381 rm -f conftest*
12382 ac_ext=c
12383 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12384 ac_cpp='$CPP $CPPFLAGS'
12385 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12386 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12387 cross_compiling=$ac_cv_prog_cc_cross
12393 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12395 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12396 for ac_func in _qfpclass
12398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12399 echo "configure:12400: checking for $ac_func" >&5
12400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12401 echo $ac_n "(cached) $ac_c" 1>&6
12402 else
12403 cat > conftest.$ac_ext <<EOF
12404 #line 12405 "configure"
12405 #include "confdefs.h"
12406 /* System header to define __stub macros and hopefully few prototypes,
12407 which can conflict with char $ac_func(); below. */
12408 #include <assert.h>
12409 /* Override any gcc2 internal prototype to avoid an error. */
12410 /* We use char because int might match the return type of a gcc2
12411 builtin and then its argument prototype would still apply. */
12412 char $ac_func();
12414 int main() {
12416 /* The GNU C library defines this for functions which it implements
12417 to always fail with ENOSYS. Some functions are actually named
12418 something starting with __ and the normal name is an alias. */
12419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12420 choke me
12421 #else
12422 $ac_func();
12423 #endif
12425 ; return 0; }
12427 if { (eval echo configure:12428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12428 rm -rf conftest*
12429 eval "ac_cv_func_$ac_func=yes"
12430 else
12431 echo "configure: failed program was:" >&5
12432 cat conftest.$ac_ext >&5
12433 rm -rf conftest*
12434 eval "ac_cv_func_$ac_func=no"
12436 rm -f conftest*
12439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12440 echo "$ac_t""yes" 1>&6
12441 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12442 cat >> confdefs.h <<EOF
12443 #define $ac_tr_func 1
12446 else
12447 echo "$ac_t""no" 1>&6
12449 done
12456 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12457 echo "configure:12458: checking for hypot declaration" >&5
12458 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12459 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12460 echo $ac_n "(cached) $ac_c" 1>&6
12461 else
12464 ac_ext=C
12465 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12466 ac_cpp='$CXXCPP $CPPFLAGS'
12467 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12468 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12469 cross_compiling=$ac_cv_prog_cxx_cross
12471 cat > conftest.$ac_ext <<EOF
12472 #line 12473 "configure"
12473 #include "confdefs.h"
12474 #include <math.h>
12475 int main() {
12476 hypot(0, 0);
12477 ; return 0; }
12479 if { (eval echo configure:12480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12480 rm -rf conftest*
12481 glibcpp_cv_func_hypot_use=yes
12482 else
12483 echo "configure: failed program was:" >&5
12484 cat conftest.$ac_ext >&5
12485 rm -rf conftest*
12486 glibcpp_cv_func_hypot_use=no
12488 rm -f conftest*
12489 ac_ext=c
12490 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12491 ac_cpp='$CPP $CPPFLAGS'
12492 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12493 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12494 cross_compiling=$ac_cv_prog_cc_cross
12500 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12502 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12503 for ac_func in hypot
12505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12506 echo "configure:12507: checking for $ac_func" >&5
12507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12508 echo $ac_n "(cached) $ac_c" 1>&6
12509 else
12510 cat > conftest.$ac_ext <<EOF
12511 #line 12512 "configure"
12512 #include "confdefs.h"
12513 /* System header to define __stub macros and hopefully few prototypes,
12514 which can conflict with char $ac_func(); below. */
12515 #include <assert.h>
12516 /* Override any gcc2 internal prototype to avoid an error. */
12517 /* We use char because int might match the return type of a gcc2
12518 builtin and then its argument prototype would still apply. */
12519 char $ac_func();
12521 int main() {
12523 /* The GNU C library defines this for functions which it implements
12524 to always fail with ENOSYS. Some functions are actually named
12525 something starting with __ and the normal name is an alias. */
12526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12527 choke me
12528 #else
12529 $ac_func();
12530 #endif
12532 ; return 0; }
12534 if { (eval echo configure:12535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12535 rm -rf conftest*
12536 eval "ac_cv_func_$ac_func=yes"
12537 else
12538 echo "configure: failed program was:" >&5
12539 cat conftest.$ac_ext >&5
12540 rm -rf conftest*
12541 eval "ac_cv_func_$ac_func=no"
12543 rm -f conftest*
12546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12547 echo "$ac_t""yes" 1>&6
12548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12549 cat >> confdefs.h <<EOF
12550 #define $ac_tr_func 1
12553 else
12554 echo "$ac_t""no" 1>&6
12556 done
12558 else
12560 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12561 echo "configure:12562: checking for _hypot declaration" >&5
12562 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12563 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12564 echo $ac_n "(cached) $ac_c" 1>&6
12565 else
12568 ac_ext=C
12569 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12570 ac_cpp='$CXXCPP $CPPFLAGS'
12571 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12572 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12573 cross_compiling=$ac_cv_prog_cxx_cross
12575 cat > conftest.$ac_ext <<EOF
12576 #line 12577 "configure"
12577 #include "confdefs.h"
12578 #include <math.h>
12579 int main() {
12580 _hypot(0, 0);
12581 ; return 0; }
12583 if { (eval echo configure:12584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12584 rm -rf conftest*
12585 glibcpp_cv_func__hypot_use=yes
12586 else
12587 echo "configure: failed program was:" >&5
12588 cat conftest.$ac_ext >&5
12589 rm -rf conftest*
12590 glibcpp_cv_func__hypot_use=no
12592 rm -f conftest*
12593 ac_ext=c
12594 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12595 ac_cpp='$CPP $CPPFLAGS'
12596 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12597 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12598 cross_compiling=$ac_cv_prog_cc_cross
12604 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12606 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12607 for ac_func in _hypot
12609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12610 echo "configure:12611: checking for $ac_func" >&5
12611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12612 echo $ac_n "(cached) $ac_c" 1>&6
12613 else
12614 cat > conftest.$ac_ext <<EOF
12615 #line 12616 "configure"
12616 #include "confdefs.h"
12617 /* System header to define __stub macros and hopefully few prototypes,
12618 which can conflict with char $ac_func(); below. */
12619 #include <assert.h>
12620 /* Override any gcc2 internal prototype to avoid an error. */
12621 /* We use char because int might match the return type of a gcc2
12622 builtin and then its argument prototype would still apply. */
12623 char $ac_func();
12625 int main() {
12627 /* The GNU C library defines this for functions which it implements
12628 to always fail with ENOSYS. Some functions are actually named
12629 something starting with __ and the normal name is an alias. */
12630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12631 choke me
12632 #else
12633 $ac_func();
12634 #endif
12636 ; return 0; }
12638 if { (eval echo configure:12639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12639 rm -rf conftest*
12640 eval "ac_cv_func_$ac_func=yes"
12641 else
12642 echo "configure: failed program was:" >&5
12643 cat conftest.$ac_ext >&5
12644 rm -rf conftest*
12645 eval "ac_cv_func_$ac_func=no"
12647 rm -f conftest*
12650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12651 echo "$ac_t""yes" 1>&6
12652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12653 cat >> confdefs.h <<EOF
12654 #define $ac_tr_func 1
12657 else
12658 echo "$ac_t""no" 1>&6
12660 done
12667 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12668 echo "configure:12669: checking for float trig functions" >&5
12669 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12670 echo $ac_n "(cached) $ac_c" 1>&6
12671 else
12674 ac_ext=C
12675 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12676 ac_cpp='$CXXCPP $CPPFLAGS'
12677 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12678 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12679 cross_compiling=$ac_cv_prog_cxx_cross
12681 cat > conftest.$ac_ext <<EOF
12682 #line 12683 "configure"
12683 #include "confdefs.h"
12684 #include <math.h>
12685 int main() {
12686 `for x in acosf asinf atanf \
12687 cosf sinf tanf \
12688 coshf sinhf tanhf; do echo "$x (0);"; done`
12689 ; return 0; }
12691 if { (eval echo configure:12692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12692 rm -rf conftest*
12693 glibcpp_cv_func_float_trig_use=yes
12694 else
12695 echo "configure: failed program was:" >&5
12696 cat conftest.$ac_ext >&5
12697 rm -rf conftest*
12698 glibcpp_cv_func_float_trig_use=no
12700 rm -f conftest*
12701 ac_ext=c
12702 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12703 ac_cpp='$CPP $CPPFLAGS'
12704 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12705 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12706 cross_compiling=$ac_cv_prog_cc_cross
12710 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12711 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12712 for ac_func in acosf asinf atanf \
12713 cosf sinf tanf \
12714 coshf sinhf tanhf
12716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12717 echo "configure:12718: checking for $ac_func" >&5
12718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12719 echo $ac_n "(cached) $ac_c" 1>&6
12720 else
12721 cat > conftest.$ac_ext <<EOF
12722 #line 12723 "configure"
12723 #include "confdefs.h"
12724 /* System header to define __stub macros and hopefully few prototypes,
12725 which can conflict with char $ac_func(); below. */
12726 #include <assert.h>
12727 /* Override any gcc2 internal prototype to avoid an error. */
12728 /* We use char because int might match the return type of a gcc2
12729 builtin and then its argument prototype would still apply. */
12730 char $ac_func();
12732 int main() {
12734 /* The GNU C library defines this for functions which it implements
12735 to always fail with ENOSYS. Some functions are actually named
12736 something starting with __ and the normal name is an alias. */
12737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12738 choke me
12739 #else
12740 $ac_func();
12741 #endif
12743 ; return 0; }
12745 if { (eval echo configure:12746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12746 rm -rf conftest*
12747 eval "ac_cv_func_$ac_func=yes"
12748 else
12749 echo "configure: failed program was:" >&5
12750 cat conftest.$ac_ext >&5
12751 rm -rf conftest*
12752 eval "ac_cv_func_$ac_func=no"
12754 rm -f conftest*
12757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12758 echo "$ac_t""yes" 1>&6
12759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12760 cat >> confdefs.h <<EOF
12761 #define $ac_tr_func 1
12764 else
12765 echo "$ac_t""no" 1>&6
12767 done
12772 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12773 echo "configure:12774: checking for float round functions" >&5
12774 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12775 echo $ac_n "(cached) $ac_c" 1>&6
12776 else
12779 ac_ext=C
12780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12781 ac_cpp='$CXXCPP $CPPFLAGS'
12782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12784 cross_compiling=$ac_cv_prog_cxx_cross
12786 cat > conftest.$ac_ext <<EOF
12787 #line 12788 "configure"
12788 #include "confdefs.h"
12789 #include <math.h>
12790 int main() {
12791 `for x in ceilf floorf; do echo "$x (0);"; done`
12792 ; return 0; }
12794 if { (eval echo configure:12795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12795 rm -rf conftest*
12796 glibcpp_cv_func_float_round_use=yes
12797 else
12798 echo "configure: failed program was:" >&5
12799 cat conftest.$ac_ext >&5
12800 rm -rf conftest*
12801 glibcpp_cv_func_float_round_use=no
12803 rm -f conftest*
12804 ac_ext=c
12805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12806 ac_cpp='$CPP $CPPFLAGS'
12807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12808 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12809 cross_compiling=$ac_cv_prog_cc_cross
12813 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12814 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12815 for ac_func in ceilf floorf
12817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12818 echo "configure:12819: checking for $ac_func" >&5
12819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12820 echo $ac_n "(cached) $ac_c" 1>&6
12821 else
12822 cat > conftest.$ac_ext <<EOF
12823 #line 12824 "configure"
12824 #include "confdefs.h"
12825 /* System header to define __stub macros and hopefully few prototypes,
12826 which can conflict with char $ac_func(); below. */
12827 #include <assert.h>
12828 /* Override any gcc2 internal prototype to avoid an error. */
12829 /* We use char because int might match the return type of a gcc2
12830 builtin and then its argument prototype would still apply. */
12831 char $ac_func();
12833 int main() {
12835 /* The GNU C library defines this for functions which it implements
12836 to always fail with ENOSYS. Some functions are actually named
12837 something starting with __ and the normal name is an alias. */
12838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12839 choke me
12840 #else
12841 $ac_func();
12842 #endif
12844 ; return 0; }
12846 if { (eval echo configure:12847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12847 rm -rf conftest*
12848 eval "ac_cv_func_$ac_func=yes"
12849 else
12850 echo "configure: failed program was:" >&5
12851 cat conftest.$ac_ext >&5
12852 rm -rf conftest*
12853 eval "ac_cv_func_$ac_func=no"
12855 rm -f conftest*
12858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12859 echo "$ac_t""yes" 1>&6
12860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12861 cat >> confdefs.h <<EOF
12862 #define $ac_tr_func 1
12865 else
12866 echo "$ac_t""no" 1>&6
12868 done
12874 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12875 echo "configure:12876: checking for expf declaration" >&5
12876 if test x${glibcpp_cv_func_expf_use+set} != xset; then
12877 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12878 echo $ac_n "(cached) $ac_c" 1>&6
12879 else
12882 ac_ext=C
12883 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12884 ac_cpp='$CXXCPP $CPPFLAGS'
12885 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12886 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12887 cross_compiling=$ac_cv_prog_cxx_cross
12889 cat > conftest.$ac_ext <<EOF
12890 #line 12891 "configure"
12891 #include "confdefs.h"
12892 #include <math.h>
12893 #ifdef HAVE_IEEEFP_H
12894 #include <ieeefp.h>
12895 #endif
12897 int main() {
12898 expf(0);
12899 ; return 0; }
12901 if { (eval echo configure:12902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12902 rm -rf conftest*
12903 glibcpp_cv_func_expf_use=yes
12904 else
12905 echo "configure: failed program was:" >&5
12906 cat conftest.$ac_ext >&5
12907 rm -rf conftest*
12908 glibcpp_cv_func_expf_use=no
12910 rm -f conftest*
12911 ac_ext=c
12912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12913 ac_cpp='$CPP $CPPFLAGS'
12914 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12915 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12916 cross_compiling=$ac_cv_prog_cc_cross
12922 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12924 if test x$glibcpp_cv_func_expf_use = x"yes"; then
12925 for ac_func in expf
12927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12928 echo "configure:12929: checking for $ac_func" >&5
12929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12930 echo $ac_n "(cached) $ac_c" 1>&6
12931 else
12932 cat > conftest.$ac_ext <<EOF
12933 #line 12934 "configure"
12934 #include "confdefs.h"
12935 /* System header to define __stub macros and hopefully few prototypes,
12936 which can conflict with char $ac_func(); below. */
12937 #include <assert.h>
12938 /* Override any gcc2 internal prototype to avoid an error. */
12939 /* We use char because int might match the return type of a gcc2
12940 builtin and then its argument prototype would still apply. */
12941 char $ac_func();
12943 int main() {
12945 /* The GNU C library defines this for functions which it implements
12946 to always fail with ENOSYS. Some functions are actually named
12947 something starting with __ and the normal name is an alias. */
12948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12949 choke me
12950 #else
12951 $ac_func();
12952 #endif
12954 ; return 0; }
12956 if { (eval echo configure:12957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12957 rm -rf conftest*
12958 eval "ac_cv_func_$ac_func=yes"
12959 else
12960 echo "configure: failed program was:" >&5
12961 cat conftest.$ac_ext >&5
12962 rm -rf conftest*
12963 eval "ac_cv_func_$ac_func=no"
12965 rm -f conftest*
12968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12969 echo "$ac_t""yes" 1>&6
12970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12971 cat >> confdefs.h <<EOF
12972 #define $ac_tr_func 1
12975 else
12976 echo "$ac_t""no" 1>&6
12978 done
12980 else
12982 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12983 echo "configure:12984: checking for _expf declaration" >&5
12984 if test x${glibcpp_cv_func__expf_use+set} != xset; then
12985 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12986 echo $ac_n "(cached) $ac_c" 1>&6
12987 else
12990 ac_ext=C
12991 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12992 ac_cpp='$CXXCPP $CPPFLAGS'
12993 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12994 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12995 cross_compiling=$ac_cv_prog_cxx_cross
12997 cat > conftest.$ac_ext <<EOF
12998 #line 12999 "configure"
12999 #include "confdefs.h"
13000 #include <math.h>
13001 #ifdef HAVE_IEEEFP_H
13002 #include <ieeefp.h>
13003 #endif
13005 int main() {
13006 _expf(0);
13007 ; return 0; }
13009 if { (eval echo configure:13010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13010 rm -rf conftest*
13011 glibcpp_cv_func__expf_use=yes
13012 else
13013 echo "configure: failed program was:" >&5
13014 cat conftest.$ac_ext >&5
13015 rm -rf conftest*
13016 glibcpp_cv_func__expf_use=no
13018 rm -f conftest*
13019 ac_ext=c
13020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13021 ac_cpp='$CPP $CPPFLAGS'
13022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13024 cross_compiling=$ac_cv_prog_cc_cross
13030 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
13032 if test x$glibcpp_cv_func__expf_use = x"yes"; then
13033 for ac_func in _expf
13035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13036 echo "configure:13037: checking for $ac_func" >&5
13037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13038 echo $ac_n "(cached) $ac_c" 1>&6
13039 else
13040 cat > conftest.$ac_ext <<EOF
13041 #line 13042 "configure"
13042 #include "confdefs.h"
13043 /* System header to define __stub macros and hopefully few prototypes,
13044 which can conflict with char $ac_func(); below. */
13045 #include <assert.h>
13046 /* Override any gcc2 internal prototype to avoid an error. */
13047 /* We use char because int might match the return type of a gcc2
13048 builtin and then its argument prototype would still apply. */
13049 char $ac_func();
13051 int main() {
13053 /* The GNU C library defines this for functions which it implements
13054 to always fail with ENOSYS. Some functions are actually named
13055 something starting with __ and the normal name is an alias. */
13056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13057 choke me
13058 #else
13059 $ac_func();
13060 #endif
13062 ; return 0; }
13064 if { (eval echo configure:13065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13065 rm -rf conftest*
13066 eval "ac_cv_func_$ac_func=yes"
13067 else
13068 echo "configure: failed program was:" >&5
13069 cat conftest.$ac_ext >&5
13070 rm -rf conftest*
13071 eval "ac_cv_func_$ac_func=no"
13073 rm -f conftest*
13076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13077 echo "$ac_t""yes" 1>&6
13078 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13079 cat >> confdefs.h <<EOF
13080 #define $ac_tr_func 1
13083 else
13084 echo "$ac_t""no" 1>&6
13086 done
13093 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
13094 echo "configure:13095: checking for isnanf declaration" >&5
13095 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
13096 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
13097 echo $ac_n "(cached) $ac_c" 1>&6
13098 else
13101 ac_ext=C
13102 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13103 ac_cpp='$CXXCPP $CPPFLAGS'
13104 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13105 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13106 cross_compiling=$ac_cv_prog_cxx_cross
13108 cat > conftest.$ac_ext <<EOF
13109 #line 13110 "configure"
13110 #include "confdefs.h"
13111 #include <math.h>
13112 #ifdef HAVE_IEEEFP_H
13113 #include <ieeefp.h>
13114 #endif
13116 int main() {
13117 isnanf(0);
13118 ; return 0; }
13120 if { (eval echo configure:13121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13121 rm -rf conftest*
13122 glibcpp_cv_func_isnanf_use=yes
13123 else
13124 echo "configure: failed program was:" >&5
13125 cat conftest.$ac_ext >&5
13126 rm -rf conftest*
13127 glibcpp_cv_func_isnanf_use=no
13129 rm -f conftest*
13130 ac_ext=c
13131 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13132 ac_cpp='$CPP $CPPFLAGS'
13133 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13134 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13135 cross_compiling=$ac_cv_prog_cc_cross
13141 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
13143 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
13144 for ac_func in isnanf
13146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13147 echo "configure:13148: checking for $ac_func" >&5
13148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13149 echo $ac_n "(cached) $ac_c" 1>&6
13150 else
13151 cat > conftest.$ac_ext <<EOF
13152 #line 13153 "configure"
13153 #include "confdefs.h"
13154 /* System header to define __stub macros and hopefully few prototypes,
13155 which can conflict with char $ac_func(); below. */
13156 #include <assert.h>
13157 /* Override any gcc2 internal prototype to avoid an error. */
13158 /* We use char because int might match the return type of a gcc2
13159 builtin and then its argument prototype would still apply. */
13160 char $ac_func();
13162 int main() {
13164 /* The GNU C library defines this for functions which it implements
13165 to always fail with ENOSYS. Some functions are actually named
13166 something starting with __ and the normal name is an alias. */
13167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13168 choke me
13169 #else
13170 $ac_func();
13171 #endif
13173 ; return 0; }
13175 if { (eval echo configure:13176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13176 rm -rf conftest*
13177 eval "ac_cv_func_$ac_func=yes"
13178 else
13179 echo "configure: failed program was:" >&5
13180 cat conftest.$ac_ext >&5
13181 rm -rf conftest*
13182 eval "ac_cv_func_$ac_func=no"
13184 rm -f conftest*
13187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13188 echo "$ac_t""yes" 1>&6
13189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13190 cat >> confdefs.h <<EOF
13191 #define $ac_tr_func 1
13194 else
13195 echo "$ac_t""no" 1>&6
13197 done
13199 else
13201 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
13202 echo "configure:13203: checking for _isnanf declaration" >&5
13203 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
13204 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
13205 echo $ac_n "(cached) $ac_c" 1>&6
13206 else
13209 ac_ext=C
13210 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13211 ac_cpp='$CXXCPP $CPPFLAGS'
13212 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13213 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13214 cross_compiling=$ac_cv_prog_cxx_cross
13216 cat > conftest.$ac_ext <<EOF
13217 #line 13218 "configure"
13218 #include "confdefs.h"
13219 #include <math.h>
13220 #ifdef HAVE_IEEEFP_H
13221 #include <ieeefp.h>
13222 #endif
13224 int main() {
13225 _isnanf(0);
13226 ; return 0; }
13228 if { (eval echo configure:13229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13229 rm -rf conftest*
13230 glibcpp_cv_func__isnanf_use=yes
13231 else
13232 echo "configure: failed program was:" >&5
13233 cat conftest.$ac_ext >&5
13234 rm -rf conftest*
13235 glibcpp_cv_func__isnanf_use=no
13237 rm -f conftest*
13238 ac_ext=c
13239 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13240 ac_cpp='$CPP $CPPFLAGS'
13241 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13242 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13243 cross_compiling=$ac_cv_prog_cc_cross
13249 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13251 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13252 for ac_func in _isnanf
13254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13255 echo "configure:13256: checking for $ac_func" >&5
13256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13257 echo $ac_n "(cached) $ac_c" 1>&6
13258 else
13259 cat > conftest.$ac_ext <<EOF
13260 #line 13261 "configure"
13261 #include "confdefs.h"
13262 /* System header to define __stub macros and hopefully few prototypes,
13263 which can conflict with char $ac_func(); below. */
13264 #include <assert.h>
13265 /* Override any gcc2 internal prototype to avoid an error. */
13266 /* We use char because int might match the return type of a gcc2
13267 builtin and then its argument prototype would still apply. */
13268 char $ac_func();
13270 int main() {
13272 /* The GNU C library defines this for functions which it implements
13273 to always fail with ENOSYS. Some functions are actually named
13274 something starting with __ and the normal name is an alias. */
13275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13276 choke me
13277 #else
13278 $ac_func();
13279 #endif
13281 ; return 0; }
13283 if { (eval echo configure:13284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13284 rm -rf conftest*
13285 eval "ac_cv_func_$ac_func=yes"
13286 else
13287 echo "configure: failed program was:" >&5
13288 cat conftest.$ac_ext >&5
13289 rm -rf conftest*
13290 eval "ac_cv_func_$ac_func=no"
13292 rm -f conftest*
13295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13296 echo "$ac_t""yes" 1>&6
13297 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13298 cat >> confdefs.h <<EOF
13299 #define $ac_tr_func 1
13302 else
13303 echo "$ac_t""no" 1>&6
13305 done
13312 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13313 echo "configure:13314: checking for isinff declaration" >&5
13314 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13315 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13316 echo $ac_n "(cached) $ac_c" 1>&6
13317 else
13320 ac_ext=C
13321 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13322 ac_cpp='$CXXCPP $CPPFLAGS'
13323 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13324 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13325 cross_compiling=$ac_cv_prog_cxx_cross
13327 cat > conftest.$ac_ext <<EOF
13328 #line 13329 "configure"
13329 #include "confdefs.h"
13330 #include <math.h>
13331 #ifdef HAVE_IEEEFP_H
13332 #include <ieeefp.h>
13333 #endif
13335 int main() {
13336 isinff(0);
13337 ; return 0; }
13339 if { (eval echo configure:13340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13340 rm -rf conftest*
13341 glibcpp_cv_func_isinff_use=yes
13342 else
13343 echo "configure: failed program was:" >&5
13344 cat conftest.$ac_ext >&5
13345 rm -rf conftest*
13346 glibcpp_cv_func_isinff_use=no
13348 rm -f conftest*
13349 ac_ext=c
13350 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13351 ac_cpp='$CPP $CPPFLAGS'
13352 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13353 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13354 cross_compiling=$ac_cv_prog_cc_cross
13360 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13362 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13363 for ac_func in isinff
13365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13366 echo "configure:13367: checking for $ac_func" >&5
13367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13368 echo $ac_n "(cached) $ac_c" 1>&6
13369 else
13370 cat > conftest.$ac_ext <<EOF
13371 #line 13372 "configure"
13372 #include "confdefs.h"
13373 /* System header to define __stub macros and hopefully few prototypes,
13374 which can conflict with char $ac_func(); below. */
13375 #include <assert.h>
13376 /* Override any gcc2 internal prototype to avoid an error. */
13377 /* We use char because int might match the return type of a gcc2
13378 builtin and then its argument prototype would still apply. */
13379 char $ac_func();
13381 int main() {
13383 /* The GNU C library defines this for functions which it implements
13384 to always fail with ENOSYS. Some functions are actually named
13385 something starting with __ and the normal name is an alias. */
13386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13387 choke me
13388 #else
13389 $ac_func();
13390 #endif
13392 ; return 0; }
13394 if { (eval echo configure:13395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13395 rm -rf conftest*
13396 eval "ac_cv_func_$ac_func=yes"
13397 else
13398 echo "configure: failed program was:" >&5
13399 cat conftest.$ac_ext >&5
13400 rm -rf conftest*
13401 eval "ac_cv_func_$ac_func=no"
13403 rm -f conftest*
13406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13407 echo "$ac_t""yes" 1>&6
13408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13409 cat >> confdefs.h <<EOF
13410 #define $ac_tr_func 1
13413 else
13414 echo "$ac_t""no" 1>&6
13416 done
13418 else
13420 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13421 echo "configure:13422: checking for _isinff declaration" >&5
13422 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13423 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13424 echo $ac_n "(cached) $ac_c" 1>&6
13425 else
13428 ac_ext=C
13429 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13430 ac_cpp='$CXXCPP $CPPFLAGS'
13431 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13432 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13433 cross_compiling=$ac_cv_prog_cxx_cross
13435 cat > conftest.$ac_ext <<EOF
13436 #line 13437 "configure"
13437 #include "confdefs.h"
13438 #include <math.h>
13439 #ifdef HAVE_IEEEFP_H
13440 #include <ieeefp.h>
13441 #endif
13443 int main() {
13444 _isinff(0);
13445 ; return 0; }
13447 if { (eval echo configure:13448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13448 rm -rf conftest*
13449 glibcpp_cv_func__isinff_use=yes
13450 else
13451 echo "configure: failed program was:" >&5
13452 cat conftest.$ac_ext >&5
13453 rm -rf conftest*
13454 glibcpp_cv_func__isinff_use=no
13456 rm -f conftest*
13457 ac_ext=c
13458 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13459 ac_cpp='$CPP $CPPFLAGS'
13460 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13461 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13462 cross_compiling=$ac_cv_prog_cc_cross
13468 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13470 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13471 for ac_func in _isinff
13473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13474 echo "configure:13475: checking for $ac_func" >&5
13475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13476 echo $ac_n "(cached) $ac_c" 1>&6
13477 else
13478 cat > conftest.$ac_ext <<EOF
13479 #line 13480 "configure"
13480 #include "confdefs.h"
13481 /* System header to define __stub macros and hopefully few prototypes,
13482 which can conflict with char $ac_func(); below. */
13483 #include <assert.h>
13484 /* Override any gcc2 internal prototype to avoid an error. */
13485 /* We use char because int might match the return type of a gcc2
13486 builtin and then its argument prototype would still apply. */
13487 char $ac_func();
13489 int main() {
13491 /* The GNU C library defines this for functions which it implements
13492 to always fail with ENOSYS. Some functions are actually named
13493 something starting with __ and the normal name is an alias. */
13494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13495 choke me
13496 #else
13497 $ac_func();
13498 #endif
13500 ; return 0; }
13502 if { (eval echo configure:13503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13503 rm -rf conftest*
13504 eval "ac_cv_func_$ac_func=yes"
13505 else
13506 echo "configure: failed program was:" >&5
13507 cat conftest.$ac_ext >&5
13508 rm -rf conftest*
13509 eval "ac_cv_func_$ac_func=no"
13511 rm -f conftest*
13514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13515 echo "$ac_t""yes" 1>&6
13516 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13517 cat >> confdefs.h <<EOF
13518 #define $ac_tr_func 1
13521 else
13522 echo "$ac_t""no" 1>&6
13524 done
13531 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13532 echo "configure:13533: checking for atan2f declaration" >&5
13533 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13534 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13535 echo $ac_n "(cached) $ac_c" 1>&6
13536 else
13539 ac_ext=C
13540 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13541 ac_cpp='$CXXCPP $CPPFLAGS'
13542 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13543 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13544 cross_compiling=$ac_cv_prog_cxx_cross
13546 cat > conftest.$ac_ext <<EOF
13547 #line 13548 "configure"
13548 #include "confdefs.h"
13549 #include <math.h>
13550 int main() {
13551 atan2f(0, 0);
13552 ; return 0; }
13554 if { (eval echo configure:13555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13555 rm -rf conftest*
13556 glibcpp_cv_func_atan2f_use=yes
13557 else
13558 echo "configure: failed program was:" >&5
13559 cat conftest.$ac_ext >&5
13560 rm -rf conftest*
13561 glibcpp_cv_func_atan2f_use=no
13563 rm -f conftest*
13564 ac_ext=c
13565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13566 ac_cpp='$CPP $CPPFLAGS'
13567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13569 cross_compiling=$ac_cv_prog_cc_cross
13575 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13577 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13578 for ac_func in atan2f
13580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13581 echo "configure:13582: checking for $ac_func" >&5
13582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13583 echo $ac_n "(cached) $ac_c" 1>&6
13584 else
13585 cat > conftest.$ac_ext <<EOF
13586 #line 13587 "configure"
13587 #include "confdefs.h"
13588 /* System header to define __stub macros and hopefully few prototypes,
13589 which can conflict with char $ac_func(); below. */
13590 #include <assert.h>
13591 /* Override any gcc2 internal prototype to avoid an error. */
13592 /* We use char because int might match the return type of a gcc2
13593 builtin and then its argument prototype would still apply. */
13594 char $ac_func();
13596 int main() {
13598 /* The GNU C library defines this for functions which it implements
13599 to always fail with ENOSYS. Some functions are actually named
13600 something starting with __ and the normal name is an alias. */
13601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13602 choke me
13603 #else
13604 $ac_func();
13605 #endif
13607 ; return 0; }
13609 if { (eval echo configure:13610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13610 rm -rf conftest*
13611 eval "ac_cv_func_$ac_func=yes"
13612 else
13613 echo "configure: failed program was:" >&5
13614 cat conftest.$ac_ext >&5
13615 rm -rf conftest*
13616 eval "ac_cv_func_$ac_func=no"
13618 rm -f conftest*
13621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13622 echo "$ac_t""yes" 1>&6
13623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13624 cat >> confdefs.h <<EOF
13625 #define $ac_tr_func 1
13628 else
13629 echo "$ac_t""no" 1>&6
13631 done
13633 else
13635 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13636 echo "configure:13637: checking for _atan2f declaration" >&5
13637 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13638 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13639 echo $ac_n "(cached) $ac_c" 1>&6
13640 else
13643 ac_ext=C
13644 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13645 ac_cpp='$CXXCPP $CPPFLAGS'
13646 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13647 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13648 cross_compiling=$ac_cv_prog_cxx_cross
13650 cat > conftest.$ac_ext <<EOF
13651 #line 13652 "configure"
13652 #include "confdefs.h"
13653 #include <math.h>
13654 int main() {
13655 _atan2f(0, 0);
13656 ; return 0; }
13658 if { (eval echo configure:13659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13659 rm -rf conftest*
13660 glibcpp_cv_func__atan2f_use=yes
13661 else
13662 echo "configure: failed program was:" >&5
13663 cat conftest.$ac_ext >&5
13664 rm -rf conftest*
13665 glibcpp_cv_func__atan2f_use=no
13667 rm -f conftest*
13668 ac_ext=c
13669 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13670 ac_cpp='$CPP $CPPFLAGS'
13671 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13672 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13673 cross_compiling=$ac_cv_prog_cc_cross
13679 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13681 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13682 for ac_func in _atan2f
13684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13685 echo "configure:13686: checking for $ac_func" >&5
13686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13687 echo $ac_n "(cached) $ac_c" 1>&6
13688 else
13689 cat > conftest.$ac_ext <<EOF
13690 #line 13691 "configure"
13691 #include "confdefs.h"
13692 /* System header to define __stub macros and hopefully few prototypes,
13693 which can conflict with char $ac_func(); below. */
13694 #include <assert.h>
13695 /* Override any gcc2 internal prototype to avoid an error. */
13696 /* We use char because int might match the return type of a gcc2
13697 builtin and then its argument prototype would still apply. */
13698 char $ac_func();
13700 int main() {
13702 /* The GNU C library defines this for functions which it implements
13703 to always fail with ENOSYS. Some functions are actually named
13704 something starting with __ and the normal name is an alias. */
13705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13706 choke me
13707 #else
13708 $ac_func();
13709 #endif
13711 ; return 0; }
13713 if { (eval echo configure:13714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13714 rm -rf conftest*
13715 eval "ac_cv_func_$ac_func=yes"
13716 else
13717 echo "configure: failed program was:" >&5
13718 cat conftest.$ac_ext >&5
13719 rm -rf conftest*
13720 eval "ac_cv_func_$ac_func=no"
13722 rm -f conftest*
13725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13726 echo "$ac_t""yes" 1>&6
13727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13728 cat >> confdefs.h <<EOF
13729 #define $ac_tr_func 1
13732 else
13733 echo "$ac_t""no" 1>&6
13735 done
13742 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13743 echo "configure:13744: checking for fabsf declaration" >&5
13744 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13745 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13746 echo $ac_n "(cached) $ac_c" 1>&6
13747 else
13750 ac_ext=C
13751 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13752 ac_cpp='$CXXCPP $CPPFLAGS'
13753 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13754 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13755 cross_compiling=$ac_cv_prog_cxx_cross
13757 cat > conftest.$ac_ext <<EOF
13758 #line 13759 "configure"
13759 #include "confdefs.h"
13760 #include <math.h>
13761 #ifdef HAVE_IEEEFP_H
13762 #include <ieeefp.h>
13763 #endif
13765 int main() {
13766 fabsf(0);
13767 ; return 0; }
13769 if { (eval echo configure:13770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13770 rm -rf conftest*
13771 glibcpp_cv_func_fabsf_use=yes
13772 else
13773 echo "configure: failed program was:" >&5
13774 cat conftest.$ac_ext >&5
13775 rm -rf conftest*
13776 glibcpp_cv_func_fabsf_use=no
13778 rm -f conftest*
13779 ac_ext=c
13780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13781 ac_cpp='$CPP $CPPFLAGS'
13782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13784 cross_compiling=$ac_cv_prog_cc_cross
13790 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13792 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13793 for ac_func in fabsf
13795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13796 echo "configure:13797: checking for $ac_func" >&5
13797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13798 echo $ac_n "(cached) $ac_c" 1>&6
13799 else
13800 cat > conftest.$ac_ext <<EOF
13801 #line 13802 "configure"
13802 #include "confdefs.h"
13803 /* System header to define __stub macros and hopefully few prototypes,
13804 which can conflict with char $ac_func(); below. */
13805 #include <assert.h>
13806 /* Override any gcc2 internal prototype to avoid an error. */
13807 /* We use char because int might match the return type of a gcc2
13808 builtin and then its argument prototype would still apply. */
13809 char $ac_func();
13811 int main() {
13813 /* The GNU C library defines this for functions which it implements
13814 to always fail with ENOSYS. Some functions are actually named
13815 something starting with __ and the normal name is an alias. */
13816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13817 choke me
13818 #else
13819 $ac_func();
13820 #endif
13822 ; return 0; }
13824 if { (eval echo configure:13825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13825 rm -rf conftest*
13826 eval "ac_cv_func_$ac_func=yes"
13827 else
13828 echo "configure: failed program was:" >&5
13829 cat conftest.$ac_ext >&5
13830 rm -rf conftest*
13831 eval "ac_cv_func_$ac_func=no"
13833 rm -f conftest*
13836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13837 echo "$ac_t""yes" 1>&6
13838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13839 cat >> confdefs.h <<EOF
13840 #define $ac_tr_func 1
13843 else
13844 echo "$ac_t""no" 1>&6
13846 done
13848 else
13850 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13851 echo "configure:13852: checking for _fabsf declaration" >&5
13852 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13853 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13854 echo $ac_n "(cached) $ac_c" 1>&6
13855 else
13858 ac_ext=C
13859 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13860 ac_cpp='$CXXCPP $CPPFLAGS'
13861 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13862 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13863 cross_compiling=$ac_cv_prog_cxx_cross
13865 cat > conftest.$ac_ext <<EOF
13866 #line 13867 "configure"
13867 #include "confdefs.h"
13868 #include <math.h>
13869 #ifdef HAVE_IEEEFP_H
13870 #include <ieeefp.h>
13871 #endif
13873 int main() {
13874 _fabsf(0);
13875 ; return 0; }
13877 if { (eval echo configure:13878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13878 rm -rf conftest*
13879 glibcpp_cv_func__fabsf_use=yes
13880 else
13881 echo "configure: failed program was:" >&5
13882 cat conftest.$ac_ext >&5
13883 rm -rf conftest*
13884 glibcpp_cv_func__fabsf_use=no
13886 rm -f conftest*
13887 ac_ext=c
13888 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13889 ac_cpp='$CPP $CPPFLAGS'
13890 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13891 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13892 cross_compiling=$ac_cv_prog_cc_cross
13898 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13900 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13901 for ac_func in _fabsf
13903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13904 echo "configure:13905: checking for $ac_func" >&5
13905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13906 echo $ac_n "(cached) $ac_c" 1>&6
13907 else
13908 cat > conftest.$ac_ext <<EOF
13909 #line 13910 "configure"
13910 #include "confdefs.h"
13911 /* System header to define __stub macros and hopefully few prototypes,
13912 which can conflict with char $ac_func(); below. */
13913 #include <assert.h>
13914 /* Override any gcc2 internal prototype to avoid an error. */
13915 /* We use char because int might match the return type of a gcc2
13916 builtin and then its argument prototype would still apply. */
13917 char $ac_func();
13919 int main() {
13921 /* The GNU C library defines this for functions which it implements
13922 to always fail with ENOSYS. Some functions are actually named
13923 something starting with __ and the normal name is an alias. */
13924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13925 choke me
13926 #else
13927 $ac_func();
13928 #endif
13930 ; return 0; }
13932 if { (eval echo configure:13933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13933 rm -rf conftest*
13934 eval "ac_cv_func_$ac_func=yes"
13935 else
13936 echo "configure: failed program was:" >&5
13937 cat conftest.$ac_ext >&5
13938 rm -rf conftest*
13939 eval "ac_cv_func_$ac_func=no"
13941 rm -f conftest*
13944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13945 echo "$ac_t""yes" 1>&6
13946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13947 cat >> confdefs.h <<EOF
13948 #define $ac_tr_func 1
13951 else
13952 echo "$ac_t""no" 1>&6
13954 done
13961 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13962 echo "configure:13963: checking for fmodf declaration" >&5
13963 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13964 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13965 echo $ac_n "(cached) $ac_c" 1>&6
13966 else
13969 ac_ext=C
13970 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13971 ac_cpp='$CXXCPP $CPPFLAGS'
13972 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13973 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13974 cross_compiling=$ac_cv_prog_cxx_cross
13976 cat > conftest.$ac_ext <<EOF
13977 #line 13978 "configure"
13978 #include "confdefs.h"
13979 #include <math.h>
13980 int main() {
13981 fmodf(0, 0);
13982 ; return 0; }
13984 if { (eval echo configure:13985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13985 rm -rf conftest*
13986 glibcpp_cv_func_fmodf_use=yes
13987 else
13988 echo "configure: failed program was:" >&5
13989 cat conftest.$ac_ext >&5
13990 rm -rf conftest*
13991 glibcpp_cv_func_fmodf_use=no
13993 rm -f conftest*
13994 ac_ext=c
13995 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13996 ac_cpp='$CPP $CPPFLAGS'
13997 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13998 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13999 cross_compiling=$ac_cv_prog_cc_cross
14005 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
14007 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
14008 for ac_func in fmodf
14010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14011 echo "configure:14012: checking for $ac_func" >&5
14012 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14013 echo $ac_n "(cached) $ac_c" 1>&6
14014 else
14015 cat > conftest.$ac_ext <<EOF
14016 #line 14017 "configure"
14017 #include "confdefs.h"
14018 /* System header to define __stub macros and hopefully few prototypes,
14019 which can conflict with char $ac_func(); below. */
14020 #include <assert.h>
14021 /* Override any gcc2 internal prototype to avoid an error. */
14022 /* We use char because int might match the return type of a gcc2
14023 builtin and then its argument prototype would still apply. */
14024 char $ac_func();
14026 int main() {
14028 /* The GNU C library defines this for functions which it implements
14029 to always fail with ENOSYS. Some functions are actually named
14030 something starting with __ and the normal name is an alias. */
14031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14032 choke me
14033 #else
14034 $ac_func();
14035 #endif
14037 ; return 0; }
14039 if { (eval echo configure:14040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14040 rm -rf conftest*
14041 eval "ac_cv_func_$ac_func=yes"
14042 else
14043 echo "configure: failed program was:" >&5
14044 cat conftest.$ac_ext >&5
14045 rm -rf conftest*
14046 eval "ac_cv_func_$ac_func=no"
14048 rm -f conftest*
14051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14052 echo "$ac_t""yes" 1>&6
14053 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14054 cat >> confdefs.h <<EOF
14055 #define $ac_tr_func 1
14058 else
14059 echo "$ac_t""no" 1>&6
14061 done
14063 else
14065 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
14066 echo "configure:14067: checking for _fmodf declaration" >&5
14067 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
14068 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
14069 echo $ac_n "(cached) $ac_c" 1>&6
14070 else
14073 ac_ext=C
14074 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14075 ac_cpp='$CXXCPP $CPPFLAGS'
14076 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14077 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14078 cross_compiling=$ac_cv_prog_cxx_cross
14080 cat > conftest.$ac_ext <<EOF
14081 #line 14082 "configure"
14082 #include "confdefs.h"
14083 #include <math.h>
14084 int main() {
14085 _fmodf(0, 0);
14086 ; return 0; }
14088 if { (eval echo configure:14089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14089 rm -rf conftest*
14090 glibcpp_cv_func__fmodf_use=yes
14091 else
14092 echo "configure: failed program was:" >&5
14093 cat conftest.$ac_ext >&5
14094 rm -rf conftest*
14095 glibcpp_cv_func__fmodf_use=no
14097 rm -f conftest*
14098 ac_ext=c
14099 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14100 ac_cpp='$CPP $CPPFLAGS'
14101 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14102 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14103 cross_compiling=$ac_cv_prog_cc_cross
14109 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
14111 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
14112 for ac_func in _fmodf
14114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14115 echo "configure:14116: checking for $ac_func" >&5
14116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14117 echo $ac_n "(cached) $ac_c" 1>&6
14118 else
14119 cat > conftest.$ac_ext <<EOF
14120 #line 14121 "configure"
14121 #include "confdefs.h"
14122 /* System header to define __stub macros and hopefully few prototypes,
14123 which can conflict with char $ac_func(); below. */
14124 #include <assert.h>
14125 /* Override any gcc2 internal prototype to avoid an error. */
14126 /* We use char because int might match the return type of a gcc2
14127 builtin and then its argument prototype would still apply. */
14128 char $ac_func();
14130 int main() {
14132 /* The GNU C library defines this for functions which it implements
14133 to always fail with ENOSYS. Some functions are actually named
14134 something starting with __ and the normal name is an alias. */
14135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14136 choke me
14137 #else
14138 $ac_func();
14139 #endif
14141 ; return 0; }
14143 if { (eval echo configure:14144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14144 rm -rf conftest*
14145 eval "ac_cv_func_$ac_func=yes"
14146 else
14147 echo "configure: failed program was:" >&5
14148 cat conftest.$ac_ext >&5
14149 rm -rf conftest*
14150 eval "ac_cv_func_$ac_func=no"
14152 rm -f conftest*
14155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14156 echo "$ac_t""yes" 1>&6
14157 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14158 cat >> confdefs.h <<EOF
14159 #define $ac_tr_func 1
14162 else
14163 echo "$ac_t""no" 1>&6
14165 done
14172 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
14173 echo "configure:14174: checking for frexpf declaration" >&5
14174 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
14175 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
14176 echo $ac_n "(cached) $ac_c" 1>&6
14177 else
14180 ac_ext=C
14181 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14182 ac_cpp='$CXXCPP $CPPFLAGS'
14183 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14184 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14185 cross_compiling=$ac_cv_prog_cxx_cross
14187 cat > conftest.$ac_ext <<EOF
14188 #line 14189 "configure"
14189 #include "confdefs.h"
14190 #include <math.h>
14191 int main() {
14192 frexpf(0, 0);
14193 ; return 0; }
14195 if { (eval echo configure:14196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14196 rm -rf conftest*
14197 glibcpp_cv_func_frexpf_use=yes
14198 else
14199 echo "configure: failed program was:" >&5
14200 cat conftest.$ac_ext >&5
14201 rm -rf conftest*
14202 glibcpp_cv_func_frexpf_use=no
14204 rm -f conftest*
14205 ac_ext=c
14206 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14207 ac_cpp='$CPP $CPPFLAGS'
14208 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14209 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14210 cross_compiling=$ac_cv_prog_cc_cross
14216 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
14218 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
14219 for ac_func in frexpf
14221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14222 echo "configure:14223: checking for $ac_func" >&5
14223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14224 echo $ac_n "(cached) $ac_c" 1>&6
14225 else
14226 cat > conftest.$ac_ext <<EOF
14227 #line 14228 "configure"
14228 #include "confdefs.h"
14229 /* System header to define __stub macros and hopefully few prototypes,
14230 which can conflict with char $ac_func(); below. */
14231 #include <assert.h>
14232 /* Override any gcc2 internal prototype to avoid an error. */
14233 /* We use char because int might match the return type of a gcc2
14234 builtin and then its argument prototype would still apply. */
14235 char $ac_func();
14237 int main() {
14239 /* The GNU C library defines this for functions which it implements
14240 to always fail with ENOSYS. Some functions are actually named
14241 something starting with __ and the normal name is an alias. */
14242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14243 choke me
14244 #else
14245 $ac_func();
14246 #endif
14248 ; return 0; }
14250 if { (eval echo configure:14251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14251 rm -rf conftest*
14252 eval "ac_cv_func_$ac_func=yes"
14253 else
14254 echo "configure: failed program was:" >&5
14255 cat conftest.$ac_ext >&5
14256 rm -rf conftest*
14257 eval "ac_cv_func_$ac_func=no"
14259 rm -f conftest*
14262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14263 echo "$ac_t""yes" 1>&6
14264 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14265 cat >> confdefs.h <<EOF
14266 #define $ac_tr_func 1
14269 else
14270 echo "$ac_t""no" 1>&6
14272 done
14274 else
14276 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14277 echo "configure:14278: checking for _frexpf declaration" >&5
14278 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14279 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14280 echo $ac_n "(cached) $ac_c" 1>&6
14281 else
14284 ac_ext=C
14285 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14286 ac_cpp='$CXXCPP $CPPFLAGS'
14287 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14288 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14289 cross_compiling=$ac_cv_prog_cxx_cross
14291 cat > conftest.$ac_ext <<EOF
14292 #line 14293 "configure"
14293 #include "confdefs.h"
14294 #include <math.h>
14295 int main() {
14296 _frexpf(0, 0);
14297 ; return 0; }
14299 if { (eval echo configure:14300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14300 rm -rf conftest*
14301 glibcpp_cv_func__frexpf_use=yes
14302 else
14303 echo "configure: failed program was:" >&5
14304 cat conftest.$ac_ext >&5
14305 rm -rf conftest*
14306 glibcpp_cv_func__frexpf_use=no
14308 rm -f conftest*
14309 ac_ext=c
14310 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14311 ac_cpp='$CPP $CPPFLAGS'
14312 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14313 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14314 cross_compiling=$ac_cv_prog_cc_cross
14320 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14322 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14323 for ac_func in _frexpf
14325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14326 echo "configure:14327: checking for $ac_func" >&5
14327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14328 echo $ac_n "(cached) $ac_c" 1>&6
14329 else
14330 cat > conftest.$ac_ext <<EOF
14331 #line 14332 "configure"
14332 #include "confdefs.h"
14333 /* System header to define __stub macros and hopefully few prototypes,
14334 which can conflict with char $ac_func(); below. */
14335 #include <assert.h>
14336 /* Override any gcc2 internal prototype to avoid an error. */
14337 /* We use char because int might match the return type of a gcc2
14338 builtin and then its argument prototype would still apply. */
14339 char $ac_func();
14341 int main() {
14343 /* The GNU C library defines this for functions which it implements
14344 to always fail with ENOSYS. Some functions are actually named
14345 something starting with __ and the normal name is an alias. */
14346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14347 choke me
14348 #else
14349 $ac_func();
14350 #endif
14352 ; return 0; }
14354 if { (eval echo configure:14355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14355 rm -rf conftest*
14356 eval "ac_cv_func_$ac_func=yes"
14357 else
14358 echo "configure: failed program was:" >&5
14359 cat conftest.$ac_ext >&5
14360 rm -rf conftest*
14361 eval "ac_cv_func_$ac_func=no"
14363 rm -f conftest*
14366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14367 echo "$ac_t""yes" 1>&6
14368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14369 cat >> confdefs.h <<EOF
14370 #define $ac_tr_func 1
14373 else
14374 echo "$ac_t""no" 1>&6
14376 done
14383 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14384 echo "configure:14385: checking for hypotf declaration" >&5
14385 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14386 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14387 echo $ac_n "(cached) $ac_c" 1>&6
14388 else
14391 ac_ext=C
14392 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14393 ac_cpp='$CXXCPP $CPPFLAGS'
14394 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14395 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14396 cross_compiling=$ac_cv_prog_cxx_cross
14398 cat > conftest.$ac_ext <<EOF
14399 #line 14400 "configure"
14400 #include "confdefs.h"
14401 #include <math.h>
14402 int main() {
14403 hypotf(0, 0);
14404 ; return 0; }
14406 if { (eval echo configure:14407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14407 rm -rf conftest*
14408 glibcpp_cv_func_hypotf_use=yes
14409 else
14410 echo "configure: failed program was:" >&5
14411 cat conftest.$ac_ext >&5
14412 rm -rf conftest*
14413 glibcpp_cv_func_hypotf_use=no
14415 rm -f conftest*
14416 ac_ext=c
14417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14418 ac_cpp='$CPP $CPPFLAGS'
14419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14421 cross_compiling=$ac_cv_prog_cc_cross
14427 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14429 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14430 for ac_func in hypotf
14432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14433 echo "configure:14434: checking for $ac_func" >&5
14434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14435 echo $ac_n "(cached) $ac_c" 1>&6
14436 else
14437 cat > conftest.$ac_ext <<EOF
14438 #line 14439 "configure"
14439 #include "confdefs.h"
14440 /* System header to define __stub macros and hopefully few prototypes,
14441 which can conflict with char $ac_func(); below. */
14442 #include <assert.h>
14443 /* Override any gcc2 internal prototype to avoid an error. */
14444 /* We use char because int might match the return type of a gcc2
14445 builtin and then its argument prototype would still apply. */
14446 char $ac_func();
14448 int main() {
14450 /* The GNU C library defines this for functions which it implements
14451 to always fail with ENOSYS. Some functions are actually named
14452 something starting with __ and the normal name is an alias. */
14453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14454 choke me
14455 #else
14456 $ac_func();
14457 #endif
14459 ; return 0; }
14461 if { (eval echo configure:14462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14462 rm -rf conftest*
14463 eval "ac_cv_func_$ac_func=yes"
14464 else
14465 echo "configure: failed program was:" >&5
14466 cat conftest.$ac_ext >&5
14467 rm -rf conftest*
14468 eval "ac_cv_func_$ac_func=no"
14470 rm -f conftest*
14473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14474 echo "$ac_t""yes" 1>&6
14475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14476 cat >> confdefs.h <<EOF
14477 #define $ac_tr_func 1
14480 else
14481 echo "$ac_t""no" 1>&6
14483 done
14485 else
14487 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14488 echo "configure:14489: checking for _hypotf declaration" >&5
14489 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14490 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14491 echo $ac_n "(cached) $ac_c" 1>&6
14492 else
14495 ac_ext=C
14496 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14497 ac_cpp='$CXXCPP $CPPFLAGS'
14498 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14499 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14500 cross_compiling=$ac_cv_prog_cxx_cross
14502 cat > conftest.$ac_ext <<EOF
14503 #line 14504 "configure"
14504 #include "confdefs.h"
14505 #include <math.h>
14506 int main() {
14507 _hypotf(0, 0);
14508 ; return 0; }
14510 if { (eval echo configure:14511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14511 rm -rf conftest*
14512 glibcpp_cv_func__hypotf_use=yes
14513 else
14514 echo "configure: failed program was:" >&5
14515 cat conftest.$ac_ext >&5
14516 rm -rf conftest*
14517 glibcpp_cv_func__hypotf_use=no
14519 rm -f conftest*
14520 ac_ext=c
14521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14522 ac_cpp='$CPP $CPPFLAGS'
14523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14525 cross_compiling=$ac_cv_prog_cc_cross
14531 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14533 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14534 for ac_func in _hypotf
14536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14537 echo "configure:14538: checking for $ac_func" >&5
14538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14539 echo $ac_n "(cached) $ac_c" 1>&6
14540 else
14541 cat > conftest.$ac_ext <<EOF
14542 #line 14543 "configure"
14543 #include "confdefs.h"
14544 /* System header to define __stub macros and hopefully few prototypes,
14545 which can conflict with char $ac_func(); below. */
14546 #include <assert.h>
14547 /* Override any gcc2 internal prototype to avoid an error. */
14548 /* We use char because int might match the return type of a gcc2
14549 builtin and then its argument prototype would still apply. */
14550 char $ac_func();
14552 int main() {
14554 /* The GNU C library defines this for functions which it implements
14555 to always fail with ENOSYS. Some functions are actually named
14556 something starting with __ and the normal name is an alias. */
14557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14558 choke me
14559 #else
14560 $ac_func();
14561 #endif
14563 ; return 0; }
14565 if { (eval echo configure:14566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14566 rm -rf conftest*
14567 eval "ac_cv_func_$ac_func=yes"
14568 else
14569 echo "configure: failed program was:" >&5
14570 cat conftest.$ac_ext >&5
14571 rm -rf conftest*
14572 eval "ac_cv_func_$ac_func=no"
14574 rm -f conftest*
14577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14578 echo "$ac_t""yes" 1>&6
14579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14580 cat >> confdefs.h <<EOF
14581 #define $ac_tr_func 1
14584 else
14585 echo "$ac_t""no" 1>&6
14587 done
14594 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14595 echo "configure:14596: checking for ldexpf declaration" >&5
14596 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14597 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14598 echo $ac_n "(cached) $ac_c" 1>&6
14599 else
14602 ac_ext=C
14603 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14604 ac_cpp='$CXXCPP $CPPFLAGS'
14605 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14606 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14607 cross_compiling=$ac_cv_prog_cxx_cross
14609 cat > conftest.$ac_ext <<EOF
14610 #line 14611 "configure"
14611 #include "confdefs.h"
14612 #include <math.h>
14613 int main() {
14614 ldexpf(0, 0);
14615 ; return 0; }
14617 if { (eval echo configure:14618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14618 rm -rf conftest*
14619 glibcpp_cv_func_ldexpf_use=yes
14620 else
14621 echo "configure: failed program was:" >&5
14622 cat conftest.$ac_ext >&5
14623 rm -rf conftest*
14624 glibcpp_cv_func_ldexpf_use=no
14626 rm -f conftest*
14627 ac_ext=c
14628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14629 ac_cpp='$CPP $CPPFLAGS'
14630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14632 cross_compiling=$ac_cv_prog_cc_cross
14638 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14640 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14641 for ac_func in ldexpf
14643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14644 echo "configure:14645: checking for $ac_func" >&5
14645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14646 echo $ac_n "(cached) $ac_c" 1>&6
14647 else
14648 cat > conftest.$ac_ext <<EOF
14649 #line 14650 "configure"
14650 #include "confdefs.h"
14651 /* System header to define __stub macros and hopefully few prototypes,
14652 which can conflict with char $ac_func(); below. */
14653 #include <assert.h>
14654 /* Override any gcc2 internal prototype to avoid an error. */
14655 /* We use char because int might match the return type of a gcc2
14656 builtin and then its argument prototype would still apply. */
14657 char $ac_func();
14659 int main() {
14661 /* The GNU C library defines this for functions which it implements
14662 to always fail with ENOSYS. Some functions are actually named
14663 something starting with __ and the normal name is an alias. */
14664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14665 choke me
14666 #else
14667 $ac_func();
14668 #endif
14670 ; return 0; }
14672 if { (eval echo configure:14673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14673 rm -rf conftest*
14674 eval "ac_cv_func_$ac_func=yes"
14675 else
14676 echo "configure: failed program was:" >&5
14677 cat conftest.$ac_ext >&5
14678 rm -rf conftest*
14679 eval "ac_cv_func_$ac_func=no"
14681 rm -f conftest*
14684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14685 echo "$ac_t""yes" 1>&6
14686 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14687 cat >> confdefs.h <<EOF
14688 #define $ac_tr_func 1
14691 else
14692 echo "$ac_t""no" 1>&6
14694 done
14696 else
14698 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14699 echo "configure:14700: checking for _ldexpf declaration" >&5
14700 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14701 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14702 echo $ac_n "(cached) $ac_c" 1>&6
14703 else
14706 ac_ext=C
14707 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14708 ac_cpp='$CXXCPP $CPPFLAGS'
14709 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14710 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14711 cross_compiling=$ac_cv_prog_cxx_cross
14713 cat > conftest.$ac_ext <<EOF
14714 #line 14715 "configure"
14715 #include "confdefs.h"
14716 #include <math.h>
14717 int main() {
14718 _ldexpf(0, 0);
14719 ; return 0; }
14721 if { (eval echo configure:14722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14722 rm -rf conftest*
14723 glibcpp_cv_func__ldexpf_use=yes
14724 else
14725 echo "configure: failed program was:" >&5
14726 cat conftest.$ac_ext >&5
14727 rm -rf conftest*
14728 glibcpp_cv_func__ldexpf_use=no
14730 rm -f conftest*
14731 ac_ext=c
14732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14733 ac_cpp='$CPP $CPPFLAGS'
14734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14736 cross_compiling=$ac_cv_prog_cc_cross
14742 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14744 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14745 for ac_func in _ldexpf
14747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14748 echo "configure:14749: checking for $ac_func" >&5
14749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14750 echo $ac_n "(cached) $ac_c" 1>&6
14751 else
14752 cat > conftest.$ac_ext <<EOF
14753 #line 14754 "configure"
14754 #include "confdefs.h"
14755 /* System header to define __stub macros and hopefully few prototypes,
14756 which can conflict with char $ac_func(); below. */
14757 #include <assert.h>
14758 /* Override any gcc2 internal prototype to avoid an error. */
14759 /* We use char because int might match the return type of a gcc2
14760 builtin and then its argument prototype would still apply. */
14761 char $ac_func();
14763 int main() {
14765 /* The GNU C library defines this for functions which it implements
14766 to always fail with ENOSYS. Some functions are actually named
14767 something starting with __ and the normal name is an alias. */
14768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14769 choke me
14770 #else
14771 $ac_func();
14772 #endif
14774 ; return 0; }
14776 if { (eval echo configure:14777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14777 rm -rf conftest*
14778 eval "ac_cv_func_$ac_func=yes"
14779 else
14780 echo "configure: failed program was:" >&5
14781 cat conftest.$ac_ext >&5
14782 rm -rf conftest*
14783 eval "ac_cv_func_$ac_func=no"
14785 rm -f conftest*
14788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14789 echo "$ac_t""yes" 1>&6
14790 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14791 cat >> confdefs.h <<EOF
14792 #define $ac_tr_func 1
14795 else
14796 echo "$ac_t""no" 1>&6
14798 done
14805 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14806 echo "configure:14807: checking for logf declaration" >&5
14807 if test x${glibcpp_cv_func_logf_use+set} != xset; then
14808 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14809 echo $ac_n "(cached) $ac_c" 1>&6
14810 else
14813 ac_ext=C
14814 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14815 ac_cpp='$CXXCPP $CPPFLAGS'
14816 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14817 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14818 cross_compiling=$ac_cv_prog_cxx_cross
14820 cat > conftest.$ac_ext <<EOF
14821 #line 14822 "configure"
14822 #include "confdefs.h"
14823 #include <math.h>
14824 #ifdef HAVE_IEEEFP_H
14825 #include <ieeefp.h>
14826 #endif
14828 int main() {
14829 logf(0);
14830 ; return 0; }
14832 if { (eval echo configure:14833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14833 rm -rf conftest*
14834 glibcpp_cv_func_logf_use=yes
14835 else
14836 echo "configure: failed program was:" >&5
14837 cat conftest.$ac_ext >&5
14838 rm -rf conftest*
14839 glibcpp_cv_func_logf_use=no
14841 rm -f conftest*
14842 ac_ext=c
14843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14844 ac_cpp='$CPP $CPPFLAGS'
14845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14847 cross_compiling=$ac_cv_prog_cc_cross
14853 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14855 if test x$glibcpp_cv_func_logf_use = x"yes"; then
14856 for ac_func in logf
14858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14859 echo "configure:14860: checking for $ac_func" >&5
14860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14861 echo $ac_n "(cached) $ac_c" 1>&6
14862 else
14863 cat > conftest.$ac_ext <<EOF
14864 #line 14865 "configure"
14865 #include "confdefs.h"
14866 /* System header to define __stub macros and hopefully few prototypes,
14867 which can conflict with char $ac_func(); below. */
14868 #include <assert.h>
14869 /* Override any gcc2 internal prototype to avoid an error. */
14870 /* We use char because int might match the return type of a gcc2
14871 builtin and then its argument prototype would still apply. */
14872 char $ac_func();
14874 int main() {
14876 /* The GNU C library defines this for functions which it implements
14877 to always fail with ENOSYS. Some functions are actually named
14878 something starting with __ and the normal name is an alias. */
14879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14880 choke me
14881 #else
14882 $ac_func();
14883 #endif
14885 ; return 0; }
14887 if { (eval echo configure:14888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14888 rm -rf conftest*
14889 eval "ac_cv_func_$ac_func=yes"
14890 else
14891 echo "configure: failed program was:" >&5
14892 cat conftest.$ac_ext >&5
14893 rm -rf conftest*
14894 eval "ac_cv_func_$ac_func=no"
14896 rm -f conftest*
14899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14900 echo "$ac_t""yes" 1>&6
14901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14902 cat >> confdefs.h <<EOF
14903 #define $ac_tr_func 1
14906 else
14907 echo "$ac_t""no" 1>&6
14909 done
14911 else
14913 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14914 echo "configure:14915: checking for _logf declaration" >&5
14915 if test x${glibcpp_cv_func__logf_use+set} != xset; then
14916 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14917 echo $ac_n "(cached) $ac_c" 1>&6
14918 else
14921 ac_ext=C
14922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14923 ac_cpp='$CXXCPP $CPPFLAGS'
14924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14926 cross_compiling=$ac_cv_prog_cxx_cross
14928 cat > conftest.$ac_ext <<EOF
14929 #line 14930 "configure"
14930 #include "confdefs.h"
14931 #include <math.h>
14932 #ifdef HAVE_IEEEFP_H
14933 #include <ieeefp.h>
14934 #endif
14936 int main() {
14937 _logf(0);
14938 ; return 0; }
14940 if { (eval echo configure:14941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14941 rm -rf conftest*
14942 glibcpp_cv_func__logf_use=yes
14943 else
14944 echo "configure: failed program was:" >&5
14945 cat conftest.$ac_ext >&5
14946 rm -rf conftest*
14947 glibcpp_cv_func__logf_use=no
14949 rm -f conftest*
14950 ac_ext=c
14951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14952 ac_cpp='$CPP $CPPFLAGS'
14953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14955 cross_compiling=$ac_cv_prog_cc_cross
14961 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14963 if test x$glibcpp_cv_func__logf_use = x"yes"; then
14964 for ac_func in _logf
14966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14967 echo "configure:14968: checking for $ac_func" >&5
14968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14969 echo $ac_n "(cached) $ac_c" 1>&6
14970 else
14971 cat > conftest.$ac_ext <<EOF
14972 #line 14973 "configure"
14973 #include "confdefs.h"
14974 /* System header to define __stub macros and hopefully few prototypes,
14975 which can conflict with char $ac_func(); below. */
14976 #include <assert.h>
14977 /* Override any gcc2 internal prototype to avoid an error. */
14978 /* We use char because int might match the return type of a gcc2
14979 builtin and then its argument prototype would still apply. */
14980 char $ac_func();
14982 int main() {
14984 /* The GNU C library defines this for functions which it implements
14985 to always fail with ENOSYS. Some functions are actually named
14986 something starting with __ and the normal name is an alias. */
14987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14988 choke me
14989 #else
14990 $ac_func();
14991 #endif
14993 ; return 0; }
14995 if { (eval echo configure:14996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14996 rm -rf conftest*
14997 eval "ac_cv_func_$ac_func=yes"
14998 else
14999 echo "configure: failed program was:" >&5
15000 cat conftest.$ac_ext >&5
15001 rm -rf conftest*
15002 eval "ac_cv_func_$ac_func=no"
15004 rm -f conftest*
15007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15008 echo "$ac_t""yes" 1>&6
15009 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15010 cat >> confdefs.h <<EOF
15011 #define $ac_tr_func 1
15014 else
15015 echo "$ac_t""no" 1>&6
15017 done
15024 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
15025 echo "configure:15026: checking for log10f declaration" >&5
15026 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
15027 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
15028 echo $ac_n "(cached) $ac_c" 1>&6
15029 else
15032 ac_ext=C
15033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15034 ac_cpp='$CXXCPP $CPPFLAGS'
15035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15037 cross_compiling=$ac_cv_prog_cxx_cross
15039 cat > conftest.$ac_ext <<EOF
15040 #line 15041 "configure"
15041 #include "confdefs.h"
15042 #include <math.h>
15043 #ifdef HAVE_IEEEFP_H
15044 #include <ieeefp.h>
15045 #endif
15047 int main() {
15048 log10f(0);
15049 ; return 0; }
15051 if { (eval echo configure:15052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15052 rm -rf conftest*
15053 glibcpp_cv_func_log10f_use=yes
15054 else
15055 echo "configure: failed program was:" >&5
15056 cat conftest.$ac_ext >&5
15057 rm -rf conftest*
15058 glibcpp_cv_func_log10f_use=no
15060 rm -f conftest*
15061 ac_ext=c
15062 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15063 ac_cpp='$CPP $CPPFLAGS'
15064 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15065 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15066 cross_compiling=$ac_cv_prog_cc_cross
15072 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
15074 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
15075 for ac_func in log10f
15077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15078 echo "configure:15079: checking for $ac_func" >&5
15079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15080 echo $ac_n "(cached) $ac_c" 1>&6
15081 else
15082 cat > conftest.$ac_ext <<EOF
15083 #line 15084 "configure"
15084 #include "confdefs.h"
15085 /* System header to define __stub macros and hopefully few prototypes,
15086 which can conflict with char $ac_func(); below. */
15087 #include <assert.h>
15088 /* Override any gcc2 internal prototype to avoid an error. */
15089 /* We use char because int might match the return type of a gcc2
15090 builtin and then its argument prototype would still apply. */
15091 char $ac_func();
15093 int main() {
15095 /* The GNU C library defines this for functions which it implements
15096 to always fail with ENOSYS. Some functions are actually named
15097 something starting with __ and the normal name is an alias. */
15098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15099 choke me
15100 #else
15101 $ac_func();
15102 #endif
15104 ; return 0; }
15106 if { (eval echo configure:15107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15107 rm -rf conftest*
15108 eval "ac_cv_func_$ac_func=yes"
15109 else
15110 echo "configure: failed program was:" >&5
15111 cat conftest.$ac_ext >&5
15112 rm -rf conftest*
15113 eval "ac_cv_func_$ac_func=no"
15115 rm -f conftest*
15118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15119 echo "$ac_t""yes" 1>&6
15120 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15121 cat >> confdefs.h <<EOF
15122 #define $ac_tr_func 1
15125 else
15126 echo "$ac_t""no" 1>&6
15128 done
15130 else
15132 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
15133 echo "configure:15134: checking for _log10f declaration" >&5
15134 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
15135 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
15136 echo $ac_n "(cached) $ac_c" 1>&6
15137 else
15140 ac_ext=C
15141 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15142 ac_cpp='$CXXCPP $CPPFLAGS'
15143 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15144 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15145 cross_compiling=$ac_cv_prog_cxx_cross
15147 cat > conftest.$ac_ext <<EOF
15148 #line 15149 "configure"
15149 #include "confdefs.h"
15150 #include <math.h>
15151 #ifdef HAVE_IEEEFP_H
15152 #include <ieeefp.h>
15153 #endif
15155 int main() {
15156 _log10f(0);
15157 ; return 0; }
15159 if { (eval echo configure:15160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15160 rm -rf conftest*
15161 glibcpp_cv_func__log10f_use=yes
15162 else
15163 echo "configure: failed program was:" >&5
15164 cat conftest.$ac_ext >&5
15165 rm -rf conftest*
15166 glibcpp_cv_func__log10f_use=no
15168 rm -f conftest*
15169 ac_ext=c
15170 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15171 ac_cpp='$CPP $CPPFLAGS'
15172 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15173 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15174 cross_compiling=$ac_cv_prog_cc_cross
15180 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
15182 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
15183 for ac_func in _log10f
15185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15186 echo "configure:15187: checking for $ac_func" >&5
15187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15188 echo $ac_n "(cached) $ac_c" 1>&6
15189 else
15190 cat > conftest.$ac_ext <<EOF
15191 #line 15192 "configure"
15192 #include "confdefs.h"
15193 /* System header to define __stub macros and hopefully few prototypes,
15194 which can conflict with char $ac_func(); below. */
15195 #include <assert.h>
15196 /* Override any gcc2 internal prototype to avoid an error. */
15197 /* We use char because int might match the return type of a gcc2
15198 builtin and then its argument prototype would still apply. */
15199 char $ac_func();
15201 int main() {
15203 /* The GNU C library defines this for functions which it implements
15204 to always fail with ENOSYS. Some functions are actually named
15205 something starting with __ and the normal name is an alias. */
15206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15207 choke me
15208 #else
15209 $ac_func();
15210 #endif
15212 ; return 0; }
15214 if { (eval echo configure:15215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15215 rm -rf conftest*
15216 eval "ac_cv_func_$ac_func=yes"
15217 else
15218 echo "configure: failed program was:" >&5
15219 cat conftest.$ac_ext >&5
15220 rm -rf conftest*
15221 eval "ac_cv_func_$ac_func=no"
15223 rm -f conftest*
15226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15227 echo "$ac_t""yes" 1>&6
15228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15229 cat >> confdefs.h <<EOF
15230 #define $ac_tr_func 1
15233 else
15234 echo "$ac_t""no" 1>&6
15236 done
15243 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15244 echo "configure:15245: checking for modff declaration" >&5
15245 if test x${glibcpp_cv_func_modff_use+set} != xset; then
15246 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15247 echo $ac_n "(cached) $ac_c" 1>&6
15248 else
15251 ac_ext=C
15252 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15253 ac_cpp='$CXXCPP $CPPFLAGS'
15254 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15255 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15256 cross_compiling=$ac_cv_prog_cxx_cross
15258 cat > conftest.$ac_ext <<EOF
15259 #line 15260 "configure"
15260 #include "confdefs.h"
15261 #include <math.h>
15262 int main() {
15263 modff(0, 0);
15264 ; return 0; }
15266 if { (eval echo configure:15267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15267 rm -rf conftest*
15268 glibcpp_cv_func_modff_use=yes
15269 else
15270 echo "configure: failed program was:" >&5
15271 cat conftest.$ac_ext >&5
15272 rm -rf conftest*
15273 glibcpp_cv_func_modff_use=no
15275 rm -f conftest*
15276 ac_ext=c
15277 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15278 ac_cpp='$CPP $CPPFLAGS'
15279 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15280 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15281 cross_compiling=$ac_cv_prog_cc_cross
15287 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15289 if test x$glibcpp_cv_func_modff_use = x"yes"; then
15290 for ac_func in modff
15292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15293 echo "configure:15294: checking for $ac_func" >&5
15294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15295 echo $ac_n "(cached) $ac_c" 1>&6
15296 else
15297 cat > conftest.$ac_ext <<EOF
15298 #line 15299 "configure"
15299 #include "confdefs.h"
15300 /* System header to define __stub macros and hopefully few prototypes,
15301 which can conflict with char $ac_func(); below. */
15302 #include <assert.h>
15303 /* Override any gcc2 internal prototype to avoid an error. */
15304 /* We use char because int might match the return type of a gcc2
15305 builtin and then its argument prototype would still apply. */
15306 char $ac_func();
15308 int main() {
15310 /* The GNU C library defines this for functions which it implements
15311 to always fail with ENOSYS. Some functions are actually named
15312 something starting with __ and the normal name is an alias. */
15313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15314 choke me
15315 #else
15316 $ac_func();
15317 #endif
15319 ; return 0; }
15321 if { (eval echo configure:15322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15322 rm -rf conftest*
15323 eval "ac_cv_func_$ac_func=yes"
15324 else
15325 echo "configure: failed program was:" >&5
15326 cat conftest.$ac_ext >&5
15327 rm -rf conftest*
15328 eval "ac_cv_func_$ac_func=no"
15330 rm -f conftest*
15333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15334 echo "$ac_t""yes" 1>&6
15335 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15336 cat >> confdefs.h <<EOF
15337 #define $ac_tr_func 1
15340 else
15341 echo "$ac_t""no" 1>&6
15343 done
15345 else
15347 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15348 echo "configure:15349: checking for _modff declaration" >&5
15349 if test x${glibcpp_cv_func__modff_use+set} != xset; then
15350 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15351 echo $ac_n "(cached) $ac_c" 1>&6
15352 else
15355 ac_ext=C
15356 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15357 ac_cpp='$CXXCPP $CPPFLAGS'
15358 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15359 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15360 cross_compiling=$ac_cv_prog_cxx_cross
15362 cat > conftest.$ac_ext <<EOF
15363 #line 15364 "configure"
15364 #include "confdefs.h"
15365 #include <math.h>
15366 int main() {
15367 _modff(0, 0);
15368 ; return 0; }
15370 if { (eval echo configure:15371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15371 rm -rf conftest*
15372 glibcpp_cv_func__modff_use=yes
15373 else
15374 echo "configure: failed program was:" >&5
15375 cat conftest.$ac_ext >&5
15376 rm -rf conftest*
15377 glibcpp_cv_func__modff_use=no
15379 rm -f conftest*
15380 ac_ext=c
15381 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15382 ac_cpp='$CPP $CPPFLAGS'
15383 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15384 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15385 cross_compiling=$ac_cv_prog_cc_cross
15391 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15393 if test x$glibcpp_cv_func__modff_use = x"yes"; then
15394 for ac_func in _modff
15396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15397 echo "configure:15398: checking for $ac_func" >&5
15398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15399 echo $ac_n "(cached) $ac_c" 1>&6
15400 else
15401 cat > conftest.$ac_ext <<EOF
15402 #line 15403 "configure"
15403 #include "confdefs.h"
15404 /* System header to define __stub macros and hopefully few prototypes,
15405 which can conflict with char $ac_func(); below. */
15406 #include <assert.h>
15407 /* Override any gcc2 internal prototype to avoid an error. */
15408 /* We use char because int might match the return type of a gcc2
15409 builtin and then its argument prototype would still apply. */
15410 char $ac_func();
15412 int main() {
15414 /* The GNU C library defines this for functions which it implements
15415 to always fail with ENOSYS. Some functions are actually named
15416 something starting with __ and the normal name is an alias. */
15417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15418 choke me
15419 #else
15420 $ac_func();
15421 #endif
15423 ; return 0; }
15425 if { (eval echo configure:15426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15426 rm -rf conftest*
15427 eval "ac_cv_func_$ac_func=yes"
15428 else
15429 echo "configure: failed program was:" >&5
15430 cat conftest.$ac_ext >&5
15431 rm -rf conftest*
15432 eval "ac_cv_func_$ac_func=no"
15434 rm -f conftest*
15437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15438 echo "$ac_t""yes" 1>&6
15439 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15440 cat >> confdefs.h <<EOF
15441 #define $ac_tr_func 1
15444 else
15445 echo "$ac_t""no" 1>&6
15447 done
15454 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15455 echo "configure:15456: checking for powf declaration" >&5
15456 if test x${glibcpp_cv_func_powf_use+set} != xset; then
15457 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15458 echo $ac_n "(cached) $ac_c" 1>&6
15459 else
15462 ac_ext=C
15463 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15464 ac_cpp='$CXXCPP $CPPFLAGS'
15465 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15466 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15467 cross_compiling=$ac_cv_prog_cxx_cross
15469 cat > conftest.$ac_ext <<EOF
15470 #line 15471 "configure"
15471 #include "confdefs.h"
15472 #include <math.h>
15473 int main() {
15474 powf(0, 0);
15475 ; return 0; }
15477 if { (eval echo configure:15478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15478 rm -rf conftest*
15479 glibcpp_cv_func_powf_use=yes
15480 else
15481 echo "configure: failed program was:" >&5
15482 cat conftest.$ac_ext >&5
15483 rm -rf conftest*
15484 glibcpp_cv_func_powf_use=no
15486 rm -f conftest*
15487 ac_ext=c
15488 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15489 ac_cpp='$CPP $CPPFLAGS'
15490 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15491 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15492 cross_compiling=$ac_cv_prog_cc_cross
15498 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15500 if test x$glibcpp_cv_func_powf_use = x"yes"; then
15501 for ac_func in powf
15503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15504 echo "configure:15505: checking for $ac_func" >&5
15505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15506 echo $ac_n "(cached) $ac_c" 1>&6
15507 else
15508 cat > conftest.$ac_ext <<EOF
15509 #line 15510 "configure"
15510 #include "confdefs.h"
15511 /* System header to define __stub macros and hopefully few prototypes,
15512 which can conflict with char $ac_func(); below. */
15513 #include <assert.h>
15514 /* Override any gcc2 internal prototype to avoid an error. */
15515 /* We use char because int might match the return type of a gcc2
15516 builtin and then its argument prototype would still apply. */
15517 char $ac_func();
15519 int main() {
15521 /* The GNU C library defines this for functions which it implements
15522 to always fail with ENOSYS. Some functions are actually named
15523 something starting with __ and the normal name is an alias. */
15524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15525 choke me
15526 #else
15527 $ac_func();
15528 #endif
15530 ; return 0; }
15532 if { (eval echo configure:15533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15533 rm -rf conftest*
15534 eval "ac_cv_func_$ac_func=yes"
15535 else
15536 echo "configure: failed program was:" >&5
15537 cat conftest.$ac_ext >&5
15538 rm -rf conftest*
15539 eval "ac_cv_func_$ac_func=no"
15541 rm -f conftest*
15544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15545 echo "$ac_t""yes" 1>&6
15546 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15547 cat >> confdefs.h <<EOF
15548 #define $ac_tr_func 1
15551 else
15552 echo "$ac_t""no" 1>&6
15554 done
15556 else
15558 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15559 echo "configure:15560: checking for _powf declaration" >&5
15560 if test x${glibcpp_cv_func__powf_use+set} != xset; then
15561 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15562 echo $ac_n "(cached) $ac_c" 1>&6
15563 else
15566 ac_ext=C
15567 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15568 ac_cpp='$CXXCPP $CPPFLAGS'
15569 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15570 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15571 cross_compiling=$ac_cv_prog_cxx_cross
15573 cat > conftest.$ac_ext <<EOF
15574 #line 15575 "configure"
15575 #include "confdefs.h"
15576 #include <math.h>
15577 int main() {
15578 _powf(0, 0);
15579 ; return 0; }
15581 if { (eval echo configure:15582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15582 rm -rf conftest*
15583 glibcpp_cv_func__powf_use=yes
15584 else
15585 echo "configure: failed program was:" >&5
15586 cat conftest.$ac_ext >&5
15587 rm -rf conftest*
15588 glibcpp_cv_func__powf_use=no
15590 rm -f conftest*
15591 ac_ext=c
15592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15593 ac_cpp='$CPP $CPPFLAGS'
15594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15596 cross_compiling=$ac_cv_prog_cc_cross
15602 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15604 if test x$glibcpp_cv_func__powf_use = x"yes"; then
15605 for ac_func in _powf
15607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15608 echo "configure:15609: checking for $ac_func" >&5
15609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15610 echo $ac_n "(cached) $ac_c" 1>&6
15611 else
15612 cat > conftest.$ac_ext <<EOF
15613 #line 15614 "configure"
15614 #include "confdefs.h"
15615 /* System header to define __stub macros and hopefully few prototypes,
15616 which can conflict with char $ac_func(); below. */
15617 #include <assert.h>
15618 /* Override any gcc2 internal prototype to avoid an error. */
15619 /* We use char because int might match the return type of a gcc2
15620 builtin and then its argument prototype would still apply. */
15621 char $ac_func();
15623 int main() {
15625 /* The GNU C library defines this for functions which it implements
15626 to always fail with ENOSYS. Some functions are actually named
15627 something starting with __ and the normal name is an alias. */
15628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15629 choke me
15630 #else
15631 $ac_func();
15632 #endif
15634 ; return 0; }
15636 if { (eval echo configure:15637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15637 rm -rf conftest*
15638 eval "ac_cv_func_$ac_func=yes"
15639 else
15640 echo "configure: failed program was:" >&5
15641 cat conftest.$ac_ext >&5
15642 rm -rf conftest*
15643 eval "ac_cv_func_$ac_func=no"
15645 rm -f conftest*
15648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15649 echo "$ac_t""yes" 1>&6
15650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15651 cat >> confdefs.h <<EOF
15652 #define $ac_tr_func 1
15655 else
15656 echo "$ac_t""no" 1>&6
15658 done
15665 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15666 echo "configure:15667: checking for sqrtf declaration" >&5
15667 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15668 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15669 echo $ac_n "(cached) $ac_c" 1>&6
15670 else
15673 ac_ext=C
15674 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15675 ac_cpp='$CXXCPP $CPPFLAGS'
15676 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15677 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15678 cross_compiling=$ac_cv_prog_cxx_cross
15680 cat > conftest.$ac_ext <<EOF
15681 #line 15682 "configure"
15682 #include "confdefs.h"
15683 #include <math.h>
15684 #ifdef HAVE_IEEEFP_H
15685 #include <ieeefp.h>
15686 #endif
15688 int main() {
15689 sqrtf(0);
15690 ; return 0; }
15692 if { (eval echo configure:15693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15693 rm -rf conftest*
15694 glibcpp_cv_func_sqrtf_use=yes
15695 else
15696 echo "configure: failed program was:" >&5
15697 cat conftest.$ac_ext >&5
15698 rm -rf conftest*
15699 glibcpp_cv_func_sqrtf_use=no
15701 rm -f conftest*
15702 ac_ext=c
15703 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15704 ac_cpp='$CPP $CPPFLAGS'
15705 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15706 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15707 cross_compiling=$ac_cv_prog_cc_cross
15713 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15715 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15716 for ac_func in sqrtf
15718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15719 echo "configure:15720: checking for $ac_func" >&5
15720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15721 echo $ac_n "(cached) $ac_c" 1>&6
15722 else
15723 cat > conftest.$ac_ext <<EOF
15724 #line 15725 "configure"
15725 #include "confdefs.h"
15726 /* System header to define __stub macros and hopefully few prototypes,
15727 which can conflict with char $ac_func(); below. */
15728 #include <assert.h>
15729 /* Override any gcc2 internal prototype to avoid an error. */
15730 /* We use char because int might match the return type of a gcc2
15731 builtin and then its argument prototype would still apply. */
15732 char $ac_func();
15734 int main() {
15736 /* The GNU C library defines this for functions which it implements
15737 to always fail with ENOSYS. Some functions are actually named
15738 something starting with __ and the normal name is an alias. */
15739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15740 choke me
15741 #else
15742 $ac_func();
15743 #endif
15745 ; return 0; }
15747 if { (eval echo configure:15748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15748 rm -rf conftest*
15749 eval "ac_cv_func_$ac_func=yes"
15750 else
15751 echo "configure: failed program was:" >&5
15752 cat conftest.$ac_ext >&5
15753 rm -rf conftest*
15754 eval "ac_cv_func_$ac_func=no"
15756 rm -f conftest*
15759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15760 echo "$ac_t""yes" 1>&6
15761 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15762 cat >> confdefs.h <<EOF
15763 #define $ac_tr_func 1
15766 else
15767 echo "$ac_t""no" 1>&6
15769 done
15771 else
15773 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15774 echo "configure:15775: checking for _sqrtf declaration" >&5
15775 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15776 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15777 echo $ac_n "(cached) $ac_c" 1>&6
15778 else
15781 ac_ext=C
15782 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15783 ac_cpp='$CXXCPP $CPPFLAGS'
15784 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15785 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15786 cross_compiling=$ac_cv_prog_cxx_cross
15788 cat > conftest.$ac_ext <<EOF
15789 #line 15790 "configure"
15790 #include "confdefs.h"
15791 #include <math.h>
15792 #ifdef HAVE_IEEEFP_H
15793 #include <ieeefp.h>
15794 #endif
15796 int main() {
15797 _sqrtf(0);
15798 ; return 0; }
15800 if { (eval echo configure:15801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15801 rm -rf conftest*
15802 glibcpp_cv_func__sqrtf_use=yes
15803 else
15804 echo "configure: failed program was:" >&5
15805 cat conftest.$ac_ext >&5
15806 rm -rf conftest*
15807 glibcpp_cv_func__sqrtf_use=no
15809 rm -f conftest*
15810 ac_ext=c
15811 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15812 ac_cpp='$CPP $CPPFLAGS'
15813 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15814 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15815 cross_compiling=$ac_cv_prog_cc_cross
15821 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15823 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15824 for ac_func in _sqrtf
15826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15827 echo "configure:15828: checking for $ac_func" >&5
15828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15829 echo $ac_n "(cached) $ac_c" 1>&6
15830 else
15831 cat > conftest.$ac_ext <<EOF
15832 #line 15833 "configure"
15833 #include "confdefs.h"
15834 /* System header to define __stub macros and hopefully few prototypes,
15835 which can conflict with char $ac_func(); below. */
15836 #include <assert.h>
15837 /* Override any gcc2 internal prototype to avoid an error. */
15838 /* We use char because int might match the return type of a gcc2
15839 builtin and then its argument prototype would still apply. */
15840 char $ac_func();
15842 int main() {
15844 /* The GNU C library defines this for functions which it implements
15845 to always fail with ENOSYS. Some functions are actually named
15846 something starting with __ and the normal name is an alias. */
15847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15848 choke me
15849 #else
15850 $ac_func();
15851 #endif
15853 ; return 0; }
15855 if { (eval echo configure:15856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15856 rm -rf conftest*
15857 eval "ac_cv_func_$ac_func=yes"
15858 else
15859 echo "configure: failed program was:" >&5
15860 cat conftest.$ac_ext >&5
15861 rm -rf conftest*
15862 eval "ac_cv_func_$ac_func=no"
15864 rm -f conftest*
15867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15868 echo "$ac_t""yes" 1>&6
15869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15870 cat >> confdefs.h <<EOF
15871 #define $ac_tr_func 1
15874 else
15875 echo "$ac_t""no" 1>&6
15877 done
15884 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15885 echo "configure:15886: checking for sincosf declaration" >&5
15886 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15887 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15888 echo $ac_n "(cached) $ac_c" 1>&6
15889 else
15892 ac_ext=C
15893 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15894 ac_cpp='$CXXCPP $CPPFLAGS'
15895 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15896 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15897 cross_compiling=$ac_cv_prog_cxx_cross
15899 cat > conftest.$ac_ext <<EOF
15900 #line 15901 "configure"
15901 #include "confdefs.h"
15902 #include <math.h>
15903 int main() {
15904 sincosf(0, 0, 0);
15905 ; return 0; }
15907 if { (eval echo configure:15908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15908 rm -rf conftest*
15909 glibcpp_cv_func_sincosf_use=yes
15910 else
15911 echo "configure: failed program was:" >&5
15912 cat conftest.$ac_ext >&5
15913 rm -rf conftest*
15914 glibcpp_cv_func_sincosf_use=no
15916 rm -f conftest*
15917 ac_ext=c
15918 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15919 ac_cpp='$CPP $CPPFLAGS'
15920 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15921 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15922 cross_compiling=$ac_cv_prog_cc_cross
15928 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15930 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15931 for ac_func in sincosf
15933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15934 echo "configure:15935: checking for $ac_func" >&5
15935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15936 echo $ac_n "(cached) $ac_c" 1>&6
15937 else
15938 cat > conftest.$ac_ext <<EOF
15939 #line 15940 "configure"
15940 #include "confdefs.h"
15941 /* System header to define __stub macros and hopefully few prototypes,
15942 which can conflict with char $ac_func(); below. */
15943 #include <assert.h>
15944 /* Override any gcc2 internal prototype to avoid an error. */
15945 /* We use char because int might match the return type of a gcc2
15946 builtin and then its argument prototype would still apply. */
15947 char $ac_func();
15949 int main() {
15951 /* The GNU C library defines this for functions which it implements
15952 to always fail with ENOSYS. Some functions are actually named
15953 something starting with __ and the normal name is an alias. */
15954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15955 choke me
15956 #else
15957 $ac_func();
15958 #endif
15960 ; return 0; }
15962 if { (eval echo configure:15963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15963 rm -rf conftest*
15964 eval "ac_cv_func_$ac_func=yes"
15965 else
15966 echo "configure: failed program was:" >&5
15967 cat conftest.$ac_ext >&5
15968 rm -rf conftest*
15969 eval "ac_cv_func_$ac_func=no"
15971 rm -f conftest*
15974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15975 echo "$ac_t""yes" 1>&6
15976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15977 cat >> confdefs.h <<EOF
15978 #define $ac_tr_func 1
15981 else
15982 echo "$ac_t""no" 1>&6
15984 done
15986 else
15988 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15989 echo "configure:15990: checking for _sincosf declaration" >&5
15990 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15991 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15992 echo $ac_n "(cached) $ac_c" 1>&6
15993 else
15996 ac_ext=C
15997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15998 ac_cpp='$CXXCPP $CPPFLAGS'
15999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16001 cross_compiling=$ac_cv_prog_cxx_cross
16003 cat > conftest.$ac_ext <<EOF
16004 #line 16005 "configure"
16005 #include "confdefs.h"
16006 #include <math.h>
16007 int main() {
16008 _sincosf(0, 0, 0);
16009 ; return 0; }
16011 if { (eval echo configure:16012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16012 rm -rf conftest*
16013 glibcpp_cv_func__sincosf_use=yes
16014 else
16015 echo "configure: failed program was:" >&5
16016 cat conftest.$ac_ext >&5
16017 rm -rf conftest*
16018 glibcpp_cv_func__sincosf_use=no
16020 rm -f conftest*
16021 ac_ext=c
16022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16023 ac_cpp='$CPP $CPPFLAGS'
16024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16026 cross_compiling=$ac_cv_prog_cc_cross
16032 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
16034 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
16035 for ac_func in _sincosf
16037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16038 echo "configure:16039: checking for $ac_func" >&5
16039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16040 echo $ac_n "(cached) $ac_c" 1>&6
16041 else
16042 cat > conftest.$ac_ext <<EOF
16043 #line 16044 "configure"
16044 #include "confdefs.h"
16045 /* System header to define __stub macros and hopefully few prototypes,
16046 which can conflict with char $ac_func(); below. */
16047 #include <assert.h>
16048 /* Override any gcc2 internal prototype to avoid an error. */
16049 /* We use char because int might match the return type of a gcc2
16050 builtin and then its argument prototype would still apply. */
16051 char $ac_func();
16053 int main() {
16055 /* The GNU C library defines this for functions which it implements
16056 to always fail with ENOSYS. Some functions are actually named
16057 something starting with __ and the normal name is an alias. */
16058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16059 choke me
16060 #else
16061 $ac_func();
16062 #endif
16064 ; return 0; }
16066 if { (eval echo configure:16067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16067 rm -rf conftest*
16068 eval "ac_cv_func_$ac_func=yes"
16069 else
16070 echo "configure: failed program was:" >&5
16071 cat conftest.$ac_ext >&5
16072 rm -rf conftest*
16073 eval "ac_cv_func_$ac_func=no"
16075 rm -f conftest*
16078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16079 echo "$ac_t""yes" 1>&6
16080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16081 cat >> confdefs.h <<EOF
16082 #define $ac_tr_func 1
16085 else
16086 echo "$ac_t""no" 1>&6
16088 done
16095 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
16096 echo "configure:16097: checking for finitef declaration" >&5
16097 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
16098 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
16099 echo $ac_n "(cached) $ac_c" 1>&6
16100 else
16103 ac_ext=C
16104 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16105 ac_cpp='$CXXCPP $CPPFLAGS'
16106 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16107 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16108 cross_compiling=$ac_cv_prog_cxx_cross
16110 cat > conftest.$ac_ext <<EOF
16111 #line 16112 "configure"
16112 #include "confdefs.h"
16113 #include <math.h>
16114 #ifdef HAVE_IEEEFP_H
16115 #include <ieeefp.h>
16116 #endif
16118 int main() {
16119 finitef(0);
16120 ; return 0; }
16122 if { (eval echo configure:16123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16123 rm -rf conftest*
16124 glibcpp_cv_func_finitef_use=yes
16125 else
16126 echo "configure: failed program was:" >&5
16127 cat conftest.$ac_ext >&5
16128 rm -rf conftest*
16129 glibcpp_cv_func_finitef_use=no
16131 rm -f conftest*
16132 ac_ext=c
16133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16134 ac_cpp='$CPP $CPPFLAGS'
16135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16137 cross_compiling=$ac_cv_prog_cc_cross
16143 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
16145 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
16146 for ac_func in finitef
16148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16149 echo "configure:16150: checking for $ac_func" >&5
16150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16151 echo $ac_n "(cached) $ac_c" 1>&6
16152 else
16153 cat > conftest.$ac_ext <<EOF
16154 #line 16155 "configure"
16155 #include "confdefs.h"
16156 /* System header to define __stub macros and hopefully few prototypes,
16157 which can conflict with char $ac_func(); below. */
16158 #include <assert.h>
16159 /* Override any gcc2 internal prototype to avoid an error. */
16160 /* We use char because int might match the return type of a gcc2
16161 builtin and then its argument prototype would still apply. */
16162 char $ac_func();
16164 int main() {
16166 /* The GNU C library defines this for functions which it implements
16167 to always fail with ENOSYS. Some functions are actually named
16168 something starting with __ and the normal name is an alias. */
16169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16170 choke me
16171 #else
16172 $ac_func();
16173 #endif
16175 ; return 0; }
16177 if { (eval echo configure:16178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16178 rm -rf conftest*
16179 eval "ac_cv_func_$ac_func=yes"
16180 else
16181 echo "configure: failed program was:" >&5
16182 cat conftest.$ac_ext >&5
16183 rm -rf conftest*
16184 eval "ac_cv_func_$ac_func=no"
16186 rm -f conftest*
16189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16190 echo "$ac_t""yes" 1>&6
16191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16192 cat >> confdefs.h <<EOF
16193 #define $ac_tr_func 1
16196 else
16197 echo "$ac_t""no" 1>&6
16199 done
16201 else
16203 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
16204 echo "configure:16205: checking for _finitef declaration" >&5
16205 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
16206 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
16207 echo $ac_n "(cached) $ac_c" 1>&6
16208 else
16211 ac_ext=C
16212 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16213 ac_cpp='$CXXCPP $CPPFLAGS'
16214 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16215 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16216 cross_compiling=$ac_cv_prog_cxx_cross
16218 cat > conftest.$ac_ext <<EOF
16219 #line 16220 "configure"
16220 #include "confdefs.h"
16221 #include <math.h>
16222 #ifdef HAVE_IEEEFP_H
16223 #include <ieeefp.h>
16224 #endif
16226 int main() {
16227 _finitef(0);
16228 ; return 0; }
16230 if { (eval echo configure:16231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16231 rm -rf conftest*
16232 glibcpp_cv_func__finitef_use=yes
16233 else
16234 echo "configure: failed program was:" >&5
16235 cat conftest.$ac_ext >&5
16236 rm -rf conftest*
16237 glibcpp_cv_func__finitef_use=no
16239 rm -f conftest*
16240 ac_ext=c
16241 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16242 ac_cpp='$CPP $CPPFLAGS'
16243 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16244 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16245 cross_compiling=$ac_cv_prog_cc_cross
16251 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16253 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16254 for ac_func in _finitef
16256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16257 echo "configure:16258: checking for $ac_func" >&5
16258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16259 echo $ac_n "(cached) $ac_c" 1>&6
16260 else
16261 cat > conftest.$ac_ext <<EOF
16262 #line 16263 "configure"
16263 #include "confdefs.h"
16264 /* System header to define __stub macros and hopefully few prototypes,
16265 which can conflict with char $ac_func(); below. */
16266 #include <assert.h>
16267 /* Override any gcc2 internal prototype to avoid an error. */
16268 /* We use char because int might match the return type of a gcc2
16269 builtin and then its argument prototype would still apply. */
16270 char $ac_func();
16272 int main() {
16274 /* The GNU C library defines this for functions which it implements
16275 to always fail with ENOSYS. Some functions are actually named
16276 something starting with __ and the normal name is an alias. */
16277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16278 choke me
16279 #else
16280 $ac_func();
16281 #endif
16283 ; return 0; }
16285 if { (eval echo configure:16286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16286 rm -rf conftest*
16287 eval "ac_cv_func_$ac_func=yes"
16288 else
16289 echo "configure: failed program was:" >&5
16290 cat conftest.$ac_ext >&5
16291 rm -rf conftest*
16292 eval "ac_cv_func_$ac_func=no"
16294 rm -f conftest*
16297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16298 echo "$ac_t""yes" 1>&6
16299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16300 cat >> confdefs.h <<EOF
16301 #define $ac_tr_func 1
16304 else
16305 echo "$ac_t""no" 1>&6
16307 done
16314 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16315 echo "configure:16316: checking for long double trig functions" >&5
16316 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16317 echo $ac_n "(cached) $ac_c" 1>&6
16318 else
16321 ac_ext=C
16322 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16323 ac_cpp='$CXXCPP $CPPFLAGS'
16324 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16325 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16326 cross_compiling=$ac_cv_prog_cxx_cross
16328 cat > conftest.$ac_ext <<EOF
16329 #line 16330 "configure"
16330 #include "confdefs.h"
16331 #include <math.h>
16332 int main() {
16333 `for x in acosl asinl atanl \
16334 cosl sinl tanl \
16335 coshl sinhl tanhl; do echo "$x (0);"; done`
16336 ; return 0; }
16338 if { (eval echo configure:16339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16339 rm -rf conftest*
16340 glibcpp_cv_func_long_double_trig_use=yes
16341 else
16342 echo "configure: failed program was:" >&5
16343 cat conftest.$ac_ext >&5
16344 rm -rf conftest*
16345 glibcpp_cv_func_long_double_trig_use=no
16347 rm -f conftest*
16348 ac_ext=c
16349 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16350 ac_cpp='$CPP $CPPFLAGS'
16351 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16352 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16353 cross_compiling=$ac_cv_prog_cc_cross
16357 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16358 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16359 for ac_func in acosl asinl atanl \
16360 cosl sinl tanl \
16361 coshl sinhl tanhl
16363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16364 echo "configure:16365: checking for $ac_func" >&5
16365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16366 echo $ac_n "(cached) $ac_c" 1>&6
16367 else
16368 cat > conftest.$ac_ext <<EOF
16369 #line 16370 "configure"
16370 #include "confdefs.h"
16371 /* System header to define __stub macros and hopefully few prototypes,
16372 which can conflict with char $ac_func(); below. */
16373 #include <assert.h>
16374 /* Override any gcc2 internal prototype to avoid an error. */
16375 /* We use char because int might match the return type of a gcc2
16376 builtin and then its argument prototype would still apply. */
16377 char $ac_func();
16379 int main() {
16381 /* The GNU C library defines this for functions which it implements
16382 to always fail with ENOSYS. Some functions are actually named
16383 something starting with __ and the normal name is an alias. */
16384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16385 choke me
16386 #else
16387 $ac_func();
16388 #endif
16390 ; return 0; }
16392 if { (eval echo configure:16393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16393 rm -rf conftest*
16394 eval "ac_cv_func_$ac_func=yes"
16395 else
16396 echo "configure: failed program was:" >&5
16397 cat conftest.$ac_ext >&5
16398 rm -rf conftest*
16399 eval "ac_cv_func_$ac_func=no"
16401 rm -f conftest*
16404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16405 echo "$ac_t""yes" 1>&6
16406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16407 cat >> confdefs.h <<EOF
16408 #define $ac_tr_func 1
16411 else
16412 echo "$ac_t""no" 1>&6
16414 done
16419 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16420 echo "configure:16421: checking for long double round functions" >&5
16421 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16422 echo $ac_n "(cached) $ac_c" 1>&6
16423 else
16426 ac_ext=C
16427 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16428 ac_cpp='$CXXCPP $CPPFLAGS'
16429 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16430 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16431 cross_compiling=$ac_cv_prog_cxx_cross
16433 cat > conftest.$ac_ext <<EOF
16434 #line 16435 "configure"
16435 #include "confdefs.h"
16436 #include <math.h>
16437 int main() {
16438 `for x in ceill floorl; do echo "$x (0);"; done`
16439 ; return 0; }
16441 if { (eval echo configure:16442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16442 rm -rf conftest*
16443 glibcpp_cv_func_long_double_round_use=yes
16444 else
16445 echo "configure: failed program was:" >&5
16446 cat conftest.$ac_ext >&5
16447 rm -rf conftest*
16448 glibcpp_cv_func_long_double_round_use=no
16450 rm -f conftest*
16451 ac_ext=c
16452 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16453 ac_cpp='$CPP $CPPFLAGS'
16454 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16455 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16456 cross_compiling=$ac_cv_prog_cc_cross
16460 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16461 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16462 for ac_func in ceill floorl
16464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16465 echo "configure:16466: checking for $ac_func" >&5
16466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16467 echo $ac_n "(cached) $ac_c" 1>&6
16468 else
16469 cat > conftest.$ac_ext <<EOF
16470 #line 16471 "configure"
16471 #include "confdefs.h"
16472 /* System header to define __stub macros and hopefully few prototypes,
16473 which can conflict with char $ac_func(); below. */
16474 #include <assert.h>
16475 /* Override any gcc2 internal prototype to avoid an error. */
16476 /* We use char because int might match the return type of a gcc2
16477 builtin and then its argument prototype would still apply. */
16478 char $ac_func();
16480 int main() {
16482 /* The GNU C library defines this for functions which it implements
16483 to always fail with ENOSYS. Some functions are actually named
16484 something starting with __ and the normal name is an alias. */
16485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16486 choke me
16487 #else
16488 $ac_func();
16489 #endif
16491 ; return 0; }
16493 if { (eval echo configure:16494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16494 rm -rf conftest*
16495 eval "ac_cv_func_$ac_func=yes"
16496 else
16497 echo "configure: failed program was:" >&5
16498 cat conftest.$ac_ext >&5
16499 rm -rf conftest*
16500 eval "ac_cv_func_$ac_func=no"
16502 rm -f conftest*
16505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16506 echo "$ac_t""yes" 1>&6
16507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16508 cat >> confdefs.h <<EOF
16509 #define $ac_tr_func 1
16512 else
16513 echo "$ac_t""no" 1>&6
16515 done
16521 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16522 echo "configure:16523: checking for isnanl declaration" >&5
16523 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16524 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16525 echo $ac_n "(cached) $ac_c" 1>&6
16526 else
16529 ac_ext=C
16530 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16531 ac_cpp='$CXXCPP $CPPFLAGS'
16532 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16533 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16534 cross_compiling=$ac_cv_prog_cxx_cross
16536 cat > conftest.$ac_ext <<EOF
16537 #line 16538 "configure"
16538 #include "confdefs.h"
16539 #include <math.h>
16540 #ifdef HAVE_IEEEFP_H
16541 #include <ieeefp.h>
16542 #endif
16544 int main() {
16545 isnanl(0);
16546 ; return 0; }
16548 if { (eval echo configure:16549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16549 rm -rf conftest*
16550 glibcpp_cv_func_isnanl_use=yes
16551 else
16552 echo "configure: failed program was:" >&5
16553 cat conftest.$ac_ext >&5
16554 rm -rf conftest*
16555 glibcpp_cv_func_isnanl_use=no
16557 rm -f conftest*
16558 ac_ext=c
16559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16560 ac_cpp='$CPP $CPPFLAGS'
16561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16563 cross_compiling=$ac_cv_prog_cc_cross
16569 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16571 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16572 for ac_func in isnanl
16574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16575 echo "configure:16576: checking for $ac_func" >&5
16576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16577 echo $ac_n "(cached) $ac_c" 1>&6
16578 else
16579 cat > conftest.$ac_ext <<EOF
16580 #line 16581 "configure"
16581 #include "confdefs.h"
16582 /* System header to define __stub macros and hopefully few prototypes,
16583 which can conflict with char $ac_func(); below. */
16584 #include <assert.h>
16585 /* Override any gcc2 internal prototype to avoid an error. */
16586 /* We use char because int might match the return type of a gcc2
16587 builtin and then its argument prototype would still apply. */
16588 char $ac_func();
16590 int main() {
16592 /* The GNU C library defines this for functions which it implements
16593 to always fail with ENOSYS. Some functions are actually named
16594 something starting with __ and the normal name is an alias. */
16595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16596 choke me
16597 #else
16598 $ac_func();
16599 #endif
16601 ; return 0; }
16603 if { (eval echo configure:16604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16604 rm -rf conftest*
16605 eval "ac_cv_func_$ac_func=yes"
16606 else
16607 echo "configure: failed program was:" >&5
16608 cat conftest.$ac_ext >&5
16609 rm -rf conftest*
16610 eval "ac_cv_func_$ac_func=no"
16612 rm -f conftest*
16615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16616 echo "$ac_t""yes" 1>&6
16617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16618 cat >> confdefs.h <<EOF
16619 #define $ac_tr_func 1
16622 else
16623 echo "$ac_t""no" 1>&6
16625 done
16627 else
16629 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16630 echo "configure:16631: checking for _isnanl declaration" >&5
16631 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16632 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16633 echo $ac_n "(cached) $ac_c" 1>&6
16634 else
16637 ac_ext=C
16638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16639 ac_cpp='$CXXCPP $CPPFLAGS'
16640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16642 cross_compiling=$ac_cv_prog_cxx_cross
16644 cat > conftest.$ac_ext <<EOF
16645 #line 16646 "configure"
16646 #include "confdefs.h"
16647 #include <math.h>
16648 #ifdef HAVE_IEEEFP_H
16649 #include <ieeefp.h>
16650 #endif
16652 int main() {
16653 _isnanl(0);
16654 ; return 0; }
16656 if { (eval echo configure:16657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16657 rm -rf conftest*
16658 glibcpp_cv_func__isnanl_use=yes
16659 else
16660 echo "configure: failed program was:" >&5
16661 cat conftest.$ac_ext >&5
16662 rm -rf conftest*
16663 glibcpp_cv_func__isnanl_use=no
16665 rm -f conftest*
16666 ac_ext=c
16667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16668 ac_cpp='$CPP $CPPFLAGS'
16669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16670 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16671 cross_compiling=$ac_cv_prog_cc_cross
16677 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16679 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16680 for ac_func in _isnanl
16682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16683 echo "configure:16684: checking for $ac_func" >&5
16684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16685 echo $ac_n "(cached) $ac_c" 1>&6
16686 else
16687 cat > conftest.$ac_ext <<EOF
16688 #line 16689 "configure"
16689 #include "confdefs.h"
16690 /* System header to define __stub macros and hopefully few prototypes,
16691 which can conflict with char $ac_func(); below. */
16692 #include <assert.h>
16693 /* Override any gcc2 internal prototype to avoid an error. */
16694 /* We use char because int might match the return type of a gcc2
16695 builtin and then its argument prototype would still apply. */
16696 char $ac_func();
16698 int main() {
16700 /* The GNU C library defines this for functions which it implements
16701 to always fail with ENOSYS. Some functions are actually named
16702 something starting with __ and the normal name is an alias. */
16703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16704 choke me
16705 #else
16706 $ac_func();
16707 #endif
16709 ; return 0; }
16711 if { (eval echo configure:16712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16712 rm -rf conftest*
16713 eval "ac_cv_func_$ac_func=yes"
16714 else
16715 echo "configure: failed program was:" >&5
16716 cat conftest.$ac_ext >&5
16717 rm -rf conftest*
16718 eval "ac_cv_func_$ac_func=no"
16720 rm -f conftest*
16723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16724 echo "$ac_t""yes" 1>&6
16725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16726 cat >> confdefs.h <<EOF
16727 #define $ac_tr_func 1
16730 else
16731 echo "$ac_t""no" 1>&6
16733 done
16740 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16741 echo "configure:16742: checking for isinfl declaration" >&5
16742 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16743 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16744 echo $ac_n "(cached) $ac_c" 1>&6
16745 else
16748 ac_ext=C
16749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16750 ac_cpp='$CXXCPP $CPPFLAGS'
16751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16753 cross_compiling=$ac_cv_prog_cxx_cross
16755 cat > conftest.$ac_ext <<EOF
16756 #line 16757 "configure"
16757 #include "confdefs.h"
16758 #include <math.h>
16759 #ifdef HAVE_IEEEFP_H
16760 #include <ieeefp.h>
16761 #endif
16763 int main() {
16764 isinfl(0);
16765 ; return 0; }
16767 if { (eval echo configure:16768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16768 rm -rf conftest*
16769 glibcpp_cv_func_isinfl_use=yes
16770 else
16771 echo "configure: failed program was:" >&5
16772 cat conftest.$ac_ext >&5
16773 rm -rf conftest*
16774 glibcpp_cv_func_isinfl_use=no
16776 rm -f conftest*
16777 ac_ext=c
16778 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16779 ac_cpp='$CPP $CPPFLAGS'
16780 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16781 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16782 cross_compiling=$ac_cv_prog_cc_cross
16788 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16790 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16791 for ac_func in isinfl
16793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16794 echo "configure:16795: checking for $ac_func" >&5
16795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16796 echo $ac_n "(cached) $ac_c" 1>&6
16797 else
16798 cat > conftest.$ac_ext <<EOF
16799 #line 16800 "configure"
16800 #include "confdefs.h"
16801 /* System header to define __stub macros and hopefully few prototypes,
16802 which can conflict with char $ac_func(); below. */
16803 #include <assert.h>
16804 /* Override any gcc2 internal prototype to avoid an error. */
16805 /* We use char because int might match the return type of a gcc2
16806 builtin and then its argument prototype would still apply. */
16807 char $ac_func();
16809 int main() {
16811 /* The GNU C library defines this for functions which it implements
16812 to always fail with ENOSYS. Some functions are actually named
16813 something starting with __ and the normal name is an alias. */
16814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16815 choke me
16816 #else
16817 $ac_func();
16818 #endif
16820 ; return 0; }
16822 if { (eval echo configure:16823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16823 rm -rf conftest*
16824 eval "ac_cv_func_$ac_func=yes"
16825 else
16826 echo "configure: failed program was:" >&5
16827 cat conftest.$ac_ext >&5
16828 rm -rf conftest*
16829 eval "ac_cv_func_$ac_func=no"
16831 rm -f conftest*
16834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16835 echo "$ac_t""yes" 1>&6
16836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16837 cat >> confdefs.h <<EOF
16838 #define $ac_tr_func 1
16841 else
16842 echo "$ac_t""no" 1>&6
16844 done
16846 else
16848 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16849 echo "configure:16850: checking for _isinfl declaration" >&5
16850 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16851 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16852 echo $ac_n "(cached) $ac_c" 1>&6
16853 else
16856 ac_ext=C
16857 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16858 ac_cpp='$CXXCPP $CPPFLAGS'
16859 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16860 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16861 cross_compiling=$ac_cv_prog_cxx_cross
16863 cat > conftest.$ac_ext <<EOF
16864 #line 16865 "configure"
16865 #include "confdefs.h"
16866 #include <math.h>
16867 #ifdef HAVE_IEEEFP_H
16868 #include <ieeefp.h>
16869 #endif
16871 int main() {
16872 _isinfl(0);
16873 ; return 0; }
16875 if { (eval echo configure:16876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16876 rm -rf conftest*
16877 glibcpp_cv_func__isinfl_use=yes
16878 else
16879 echo "configure: failed program was:" >&5
16880 cat conftest.$ac_ext >&5
16881 rm -rf conftest*
16882 glibcpp_cv_func__isinfl_use=no
16884 rm -f conftest*
16885 ac_ext=c
16886 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16887 ac_cpp='$CPP $CPPFLAGS'
16888 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16889 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16890 cross_compiling=$ac_cv_prog_cc_cross
16896 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16898 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16899 for ac_func in _isinfl
16901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16902 echo "configure:16903: checking for $ac_func" >&5
16903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16904 echo $ac_n "(cached) $ac_c" 1>&6
16905 else
16906 cat > conftest.$ac_ext <<EOF
16907 #line 16908 "configure"
16908 #include "confdefs.h"
16909 /* System header to define __stub macros and hopefully few prototypes,
16910 which can conflict with char $ac_func(); below. */
16911 #include <assert.h>
16912 /* Override any gcc2 internal prototype to avoid an error. */
16913 /* We use char because int might match the return type of a gcc2
16914 builtin and then its argument prototype would still apply. */
16915 char $ac_func();
16917 int main() {
16919 /* The GNU C library defines this for functions which it implements
16920 to always fail with ENOSYS. Some functions are actually named
16921 something starting with __ and the normal name is an alias. */
16922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16923 choke me
16924 #else
16925 $ac_func();
16926 #endif
16928 ; return 0; }
16930 if { (eval echo configure:16931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16931 rm -rf conftest*
16932 eval "ac_cv_func_$ac_func=yes"
16933 else
16934 echo "configure: failed program was:" >&5
16935 cat conftest.$ac_ext >&5
16936 rm -rf conftest*
16937 eval "ac_cv_func_$ac_func=no"
16939 rm -f conftest*
16942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16943 echo "$ac_t""yes" 1>&6
16944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16945 cat >> confdefs.h <<EOF
16946 #define $ac_tr_func 1
16949 else
16950 echo "$ac_t""no" 1>&6
16952 done
16959 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16960 echo "configure:16961: checking for copysignl declaration" >&5
16961 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16962 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16963 echo $ac_n "(cached) $ac_c" 1>&6
16964 else
16967 ac_ext=C
16968 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16969 ac_cpp='$CXXCPP $CPPFLAGS'
16970 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16971 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16972 cross_compiling=$ac_cv_prog_cxx_cross
16974 cat > conftest.$ac_ext <<EOF
16975 #line 16976 "configure"
16976 #include "confdefs.h"
16977 #include <math.h>
16978 int main() {
16979 copysignl(0, 0);
16980 ; return 0; }
16982 if { (eval echo configure:16983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16983 rm -rf conftest*
16984 glibcpp_cv_func_copysignl_use=yes
16985 else
16986 echo "configure: failed program was:" >&5
16987 cat conftest.$ac_ext >&5
16988 rm -rf conftest*
16989 glibcpp_cv_func_copysignl_use=no
16991 rm -f conftest*
16992 ac_ext=c
16993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16994 ac_cpp='$CPP $CPPFLAGS'
16995 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16996 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16997 cross_compiling=$ac_cv_prog_cc_cross
17003 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
17005 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
17006 for ac_func in copysignl
17008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17009 echo "configure:17010: checking for $ac_func" >&5
17010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17011 echo $ac_n "(cached) $ac_c" 1>&6
17012 else
17013 cat > conftest.$ac_ext <<EOF
17014 #line 17015 "configure"
17015 #include "confdefs.h"
17016 /* System header to define __stub macros and hopefully few prototypes,
17017 which can conflict with char $ac_func(); below. */
17018 #include <assert.h>
17019 /* Override any gcc2 internal prototype to avoid an error. */
17020 /* We use char because int might match the return type of a gcc2
17021 builtin and then its argument prototype would still apply. */
17022 char $ac_func();
17024 int main() {
17026 /* The GNU C library defines this for functions which it implements
17027 to always fail with ENOSYS. Some functions are actually named
17028 something starting with __ and the normal name is an alias. */
17029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17030 choke me
17031 #else
17032 $ac_func();
17033 #endif
17035 ; return 0; }
17037 if { (eval echo configure:17038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17038 rm -rf conftest*
17039 eval "ac_cv_func_$ac_func=yes"
17040 else
17041 echo "configure: failed program was:" >&5
17042 cat conftest.$ac_ext >&5
17043 rm -rf conftest*
17044 eval "ac_cv_func_$ac_func=no"
17046 rm -f conftest*
17049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17050 echo "$ac_t""yes" 1>&6
17051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17052 cat >> confdefs.h <<EOF
17053 #define $ac_tr_func 1
17056 else
17057 echo "$ac_t""no" 1>&6
17059 done
17061 else
17063 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
17064 echo "configure:17065: checking for _copysignl declaration" >&5
17065 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
17066 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
17067 echo $ac_n "(cached) $ac_c" 1>&6
17068 else
17071 ac_ext=C
17072 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17073 ac_cpp='$CXXCPP $CPPFLAGS'
17074 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17075 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17076 cross_compiling=$ac_cv_prog_cxx_cross
17078 cat > conftest.$ac_ext <<EOF
17079 #line 17080 "configure"
17080 #include "confdefs.h"
17081 #include <math.h>
17082 int main() {
17083 _copysignl(0, 0);
17084 ; return 0; }
17086 if { (eval echo configure:17087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17087 rm -rf conftest*
17088 glibcpp_cv_func__copysignl_use=yes
17089 else
17090 echo "configure: failed program was:" >&5
17091 cat conftest.$ac_ext >&5
17092 rm -rf conftest*
17093 glibcpp_cv_func__copysignl_use=no
17095 rm -f conftest*
17096 ac_ext=c
17097 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17098 ac_cpp='$CPP $CPPFLAGS'
17099 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17100 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17101 cross_compiling=$ac_cv_prog_cc_cross
17107 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
17109 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
17110 for ac_func in _copysignl
17112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17113 echo "configure:17114: checking for $ac_func" >&5
17114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17115 echo $ac_n "(cached) $ac_c" 1>&6
17116 else
17117 cat > conftest.$ac_ext <<EOF
17118 #line 17119 "configure"
17119 #include "confdefs.h"
17120 /* System header to define __stub macros and hopefully few prototypes,
17121 which can conflict with char $ac_func(); below. */
17122 #include <assert.h>
17123 /* Override any gcc2 internal prototype to avoid an error. */
17124 /* We use char because int might match the return type of a gcc2
17125 builtin and then its argument prototype would still apply. */
17126 char $ac_func();
17128 int main() {
17130 /* The GNU C library defines this for functions which it implements
17131 to always fail with ENOSYS. Some functions are actually named
17132 something starting with __ and the normal name is an alias. */
17133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17134 choke me
17135 #else
17136 $ac_func();
17137 #endif
17139 ; return 0; }
17141 if { (eval echo configure:17142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17142 rm -rf conftest*
17143 eval "ac_cv_func_$ac_func=yes"
17144 else
17145 echo "configure: failed program was:" >&5
17146 cat conftest.$ac_ext >&5
17147 rm -rf conftest*
17148 eval "ac_cv_func_$ac_func=no"
17150 rm -f conftest*
17153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17154 echo "$ac_t""yes" 1>&6
17155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17156 cat >> confdefs.h <<EOF
17157 #define $ac_tr_func 1
17160 else
17161 echo "$ac_t""no" 1>&6
17163 done
17170 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
17171 echo "configure:17172: checking for atan2l declaration" >&5
17172 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
17173 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
17174 echo $ac_n "(cached) $ac_c" 1>&6
17175 else
17178 ac_ext=C
17179 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17180 ac_cpp='$CXXCPP $CPPFLAGS'
17181 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17182 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17183 cross_compiling=$ac_cv_prog_cxx_cross
17185 cat > conftest.$ac_ext <<EOF
17186 #line 17187 "configure"
17187 #include "confdefs.h"
17188 #include <math.h>
17189 int main() {
17190 atan2l(0, 0);
17191 ; return 0; }
17193 if { (eval echo configure:17194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17194 rm -rf conftest*
17195 glibcpp_cv_func_atan2l_use=yes
17196 else
17197 echo "configure: failed program was:" >&5
17198 cat conftest.$ac_ext >&5
17199 rm -rf conftest*
17200 glibcpp_cv_func_atan2l_use=no
17202 rm -f conftest*
17203 ac_ext=c
17204 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17205 ac_cpp='$CPP $CPPFLAGS'
17206 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17207 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17208 cross_compiling=$ac_cv_prog_cc_cross
17214 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
17216 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
17217 for ac_func in atan2l
17219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17220 echo "configure:17221: checking for $ac_func" >&5
17221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17222 echo $ac_n "(cached) $ac_c" 1>&6
17223 else
17224 cat > conftest.$ac_ext <<EOF
17225 #line 17226 "configure"
17226 #include "confdefs.h"
17227 /* System header to define __stub macros and hopefully few prototypes,
17228 which can conflict with char $ac_func(); below. */
17229 #include <assert.h>
17230 /* Override any gcc2 internal prototype to avoid an error. */
17231 /* We use char because int might match the return type of a gcc2
17232 builtin and then its argument prototype would still apply. */
17233 char $ac_func();
17235 int main() {
17237 /* The GNU C library defines this for functions which it implements
17238 to always fail with ENOSYS. Some functions are actually named
17239 something starting with __ and the normal name is an alias. */
17240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17241 choke me
17242 #else
17243 $ac_func();
17244 #endif
17246 ; return 0; }
17248 if { (eval echo configure:17249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17249 rm -rf conftest*
17250 eval "ac_cv_func_$ac_func=yes"
17251 else
17252 echo "configure: failed program was:" >&5
17253 cat conftest.$ac_ext >&5
17254 rm -rf conftest*
17255 eval "ac_cv_func_$ac_func=no"
17257 rm -f conftest*
17260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17261 echo "$ac_t""yes" 1>&6
17262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17263 cat >> confdefs.h <<EOF
17264 #define $ac_tr_func 1
17267 else
17268 echo "$ac_t""no" 1>&6
17270 done
17272 else
17274 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17275 echo "configure:17276: checking for _atan2l declaration" >&5
17276 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17277 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17278 echo $ac_n "(cached) $ac_c" 1>&6
17279 else
17282 ac_ext=C
17283 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17284 ac_cpp='$CXXCPP $CPPFLAGS'
17285 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17286 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17287 cross_compiling=$ac_cv_prog_cxx_cross
17289 cat > conftest.$ac_ext <<EOF
17290 #line 17291 "configure"
17291 #include "confdefs.h"
17292 #include <math.h>
17293 int main() {
17294 _atan2l(0, 0);
17295 ; return 0; }
17297 if { (eval echo configure:17298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17298 rm -rf conftest*
17299 glibcpp_cv_func__atan2l_use=yes
17300 else
17301 echo "configure: failed program was:" >&5
17302 cat conftest.$ac_ext >&5
17303 rm -rf conftest*
17304 glibcpp_cv_func__atan2l_use=no
17306 rm -f conftest*
17307 ac_ext=c
17308 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17309 ac_cpp='$CPP $CPPFLAGS'
17310 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17311 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17312 cross_compiling=$ac_cv_prog_cc_cross
17318 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17320 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17321 for ac_func in _atan2l
17323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17324 echo "configure:17325: checking for $ac_func" >&5
17325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17326 echo $ac_n "(cached) $ac_c" 1>&6
17327 else
17328 cat > conftest.$ac_ext <<EOF
17329 #line 17330 "configure"
17330 #include "confdefs.h"
17331 /* System header to define __stub macros and hopefully few prototypes,
17332 which can conflict with char $ac_func(); below. */
17333 #include <assert.h>
17334 /* Override any gcc2 internal prototype to avoid an error. */
17335 /* We use char because int might match the return type of a gcc2
17336 builtin and then its argument prototype would still apply. */
17337 char $ac_func();
17339 int main() {
17341 /* The GNU C library defines this for functions which it implements
17342 to always fail with ENOSYS. Some functions are actually named
17343 something starting with __ and the normal name is an alias. */
17344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17345 choke me
17346 #else
17347 $ac_func();
17348 #endif
17350 ; return 0; }
17352 if { (eval echo configure:17353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17353 rm -rf conftest*
17354 eval "ac_cv_func_$ac_func=yes"
17355 else
17356 echo "configure: failed program was:" >&5
17357 cat conftest.$ac_ext >&5
17358 rm -rf conftest*
17359 eval "ac_cv_func_$ac_func=no"
17361 rm -f conftest*
17364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17365 echo "$ac_t""yes" 1>&6
17366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17367 cat >> confdefs.h <<EOF
17368 #define $ac_tr_func 1
17371 else
17372 echo "$ac_t""no" 1>&6
17374 done
17381 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17382 echo "configure:17383: checking for expl declaration" >&5
17383 if test x${glibcpp_cv_func_expl_use+set} != xset; then
17384 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17385 echo $ac_n "(cached) $ac_c" 1>&6
17386 else
17389 ac_ext=C
17390 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17391 ac_cpp='$CXXCPP $CPPFLAGS'
17392 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17393 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17394 cross_compiling=$ac_cv_prog_cxx_cross
17396 cat > conftest.$ac_ext <<EOF
17397 #line 17398 "configure"
17398 #include "confdefs.h"
17399 #include <math.h>
17400 #ifdef HAVE_IEEEFP_H
17401 #include <ieeefp.h>
17402 #endif
17404 int main() {
17405 expl(0);
17406 ; return 0; }
17408 if { (eval echo configure:17409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17409 rm -rf conftest*
17410 glibcpp_cv_func_expl_use=yes
17411 else
17412 echo "configure: failed program was:" >&5
17413 cat conftest.$ac_ext >&5
17414 rm -rf conftest*
17415 glibcpp_cv_func_expl_use=no
17417 rm -f conftest*
17418 ac_ext=c
17419 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17420 ac_cpp='$CPP $CPPFLAGS'
17421 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17422 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17423 cross_compiling=$ac_cv_prog_cc_cross
17429 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17431 if test x$glibcpp_cv_func_expl_use = x"yes"; then
17432 for ac_func in expl
17434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17435 echo "configure:17436: checking for $ac_func" >&5
17436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17437 echo $ac_n "(cached) $ac_c" 1>&6
17438 else
17439 cat > conftest.$ac_ext <<EOF
17440 #line 17441 "configure"
17441 #include "confdefs.h"
17442 /* System header to define __stub macros and hopefully few prototypes,
17443 which can conflict with char $ac_func(); below. */
17444 #include <assert.h>
17445 /* Override any gcc2 internal prototype to avoid an error. */
17446 /* We use char because int might match the return type of a gcc2
17447 builtin and then its argument prototype would still apply. */
17448 char $ac_func();
17450 int main() {
17452 /* The GNU C library defines this for functions which it implements
17453 to always fail with ENOSYS. Some functions are actually named
17454 something starting with __ and the normal name is an alias. */
17455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17456 choke me
17457 #else
17458 $ac_func();
17459 #endif
17461 ; return 0; }
17463 if { (eval echo configure:17464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17464 rm -rf conftest*
17465 eval "ac_cv_func_$ac_func=yes"
17466 else
17467 echo "configure: failed program was:" >&5
17468 cat conftest.$ac_ext >&5
17469 rm -rf conftest*
17470 eval "ac_cv_func_$ac_func=no"
17472 rm -f conftest*
17475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17476 echo "$ac_t""yes" 1>&6
17477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17478 cat >> confdefs.h <<EOF
17479 #define $ac_tr_func 1
17482 else
17483 echo "$ac_t""no" 1>&6
17485 done
17487 else
17489 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17490 echo "configure:17491: checking for _expl declaration" >&5
17491 if test x${glibcpp_cv_func__expl_use+set} != xset; then
17492 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17493 echo $ac_n "(cached) $ac_c" 1>&6
17494 else
17497 ac_ext=C
17498 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17499 ac_cpp='$CXXCPP $CPPFLAGS'
17500 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17501 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17502 cross_compiling=$ac_cv_prog_cxx_cross
17504 cat > conftest.$ac_ext <<EOF
17505 #line 17506 "configure"
17506 #include "confdefs.h"
17507 #include <math.h>
17508 #ifdef HAVE_IEEEFP_H
17509 #include <ieeefp.h>
17510 #endif
17512 int main() {
17513 _expl(0);
17514 ; return 0; }
17516 if { (eval echo configure:17517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17517 rm -rf conftest*
17518 glibcpp_cv_func__expl_use=yes
17519 else
17520 echo "configure: failed program was:" >&5
17521 cat conftest.$ac_ext >&5
17522 rm -rf conftest*
17523 glibcpp_cv_func__expl_use=no
17525 rm -f conftest*
17526 ac_ext=c
17527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17528 ac_cpp='$CPP $CPPFLAGS'
17529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17531 cross_compiling=$ac_cv_prog_cc_cross
17537 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17539 if test x$glibcpp_cv_func__expl_use = x"yes"; then
17540 for ac_func in _expl
17542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17543 echo "configure:17544: checking for $ac_func" >&5
17544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17545 echo $ac_n "(cached) $ac_c" 1>&6
17546 else
17547 cat > conftest.$ac_ext <<EOF
17548 #line 17549 "configure"
17549 #include "confdefs.h"
17550 /* System header to define __stub macros and hopefully few prototypes,
17551 which can conflict with char $ac_func(); below. */
17552 #include <assert.h>
17553 /* Override any gcc2 internal prototype to avoid an error. */
17554 /* We use char because int might match the return type of a gcc2
17555 builtin and then its argument prototype would still apply. */
17556 char $ac_func();
17558 int main() {
17560 /* The GNU C library defines this for functions which it implements
17561 to always fail with ENOSYS. Some functions are actually named
17562 something starting with __ and the normal name is an alias. */
17563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17564 choke me
17565 #else
17566 $ac_func();
17567 #endif
17569 ; return 0; }
17571 if { (eval echo configure:17572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17572 rm -rf conftest*
17573 eval "ac_cv_func_$ac_func=yes"
17574 else
17575 echo "configure: failed program was:" >&5
17576 cat conftest.$ac_ext >&5
17577 rm -rf conftest*
17578 eval "ac_cv_func_$ac_func=no"
17580 rm -f conftest*
17583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17584 echo "$ac_t""yes" 1>&6
17585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17586 cat >> confdefs.h <<EOF
17587 #define $ac_tr_func 1
17590 else
17591 echo "$ac_t""no" 1>&6
17593 done
17600 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17601 echo "configure:17602: checking for fabsl declaration" >&5
17602 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17603 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17604 echo $ac_n "(cached) $ac_c" 1>&6
17605 else
17608 ac_ext=C
17609 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17610 ac_cpp='$CXXCPP $CPPFLAGS'
17611 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17612 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17613 cross_compiling=$ac_cv_prog_cxx_cross
17615 cat > conftest.$ac_ext <<EOF
17616 #line 17617 "configure"
17617 #include "confdefs.h"
17618 #include <math.h>
17619 #ifdef HAVE_IEEEFP_H
17620 #include <ieeefp.h>
17621 #endif
17623 int main() {
17624 fabsl(0);
17625 ; return 0; }
17627 if { (eval echo configure:17628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17628 rm -rf conftest*
17629 glibcpp_cv_func_fabsl_use=yes
17630 else
17631 echo "configure: failed program was:" >&5
17632 cat conftest.$ac_ext >&5
17633 rm -rf conftest*
17634 glibcpp_cv_func_fabsl_use=no
17636 rm -f conftest*
17637 ac_ext=c
17638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17639 ac_cpp='$CPP $CPPFLAGS'
17640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17642 cross_compiling=$ac_cv_prog_cc_cross
17648 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17650 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17651 for ac_func in fabsl
17653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17654 echo "configure:17655: checking for $ac_func" >&5
17655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17656 echo $ac_n "(cached) $ac_c" 1>&6
17657 else
17658 cat > conftest.$ac_ext <<EOF
17659 #line 17660 "configure"
17660 #include "confdefs.h"
17661 /* System header to define __stub macros and hopefully few prototypes,
17662 which can conflict with char $ac_func(); below. */
17663 #include <assert.h>
17664 /* Override any gcc2 internal prototype to avoid an error. */
17665 /* We use char because int might match the return type of a gcc2
17666 builtin and then its argument prototype would still apply. */
17667 char $ac_func();
17669 int main() {
17671 /* The GNU C library defines this for functions which it implements
17672 to always fail with ENOSYS. Some functions are actually named
17673 something starting with __ and the normal name is an alias. */
17674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17675 choke me
17676 #else
17677 $ac_func();
17678 #endif
17680 ; return 0; }
17682 if { (eval echo configure:17683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17683 rm -rf conftest*
17684 eval "ac_cv_func_$ac_func=yes"
17685 else
17686 echo "configure: failed program was:" >&5
17687 cat conftest.$ac_ext >&5
17688 rm -rf conftest*
17689 eval "ac_cv_func_$ac_func=no"
17691 rm -f conftest*
17694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17695 echo "$ac_t""yes" 1>&6
17696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17697 cat >> confdefs.h <<EOF
17698 #define $ac_tr_func 1
17701 else
17702 echo "$ac_t""no" 1>&6
17704 done
17706 else
17708 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17709 echo "configure:17710: checking for _fabsl declaration" >&5
17710 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17711 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17712 echo $ac_n "(cached) $ac_c" 1>&6
17713 else
17716 ac_ext=C
17717 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17718 ac_cpp='$CXXCPP $CPPFLAGS'
17719 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17720 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17721 cross_compiling=$ac_cv_prog_cxx_cross
17723 cat > conftest.$ac_ext <<EOF
17724 #line 17725 "configure"
17725 #include "confdefs.h"
17726 #include <math.h>
17727 #ifdef HAVE_IEEEFP_H
17728 #include <ieeefp.h>
17729 #endif
17731 int main() {
17732 _fabsl(0);
17733 ; return 0; }
17735 if { (eval echo configure:17736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17736 rm -rf conftest*
17737 glibcpp_cv_func__fabsl_use=yes
17738 else
17739 echo "configure: failed program was:" >&5
17740 cat conftest.$ac_ext >&5
17741 rm -rf conftest*
17742 glibcpp_cv_func__fabsl_use=no
17744 rm -f conftest*
17745 ac_ext=c
17746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17747 ac_cpp='$CPP $CPPFLAGS'
17748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17750 cross_compiling=$ac_cv_prog_cc_cross
17756 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17758 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17759 for ac_func in _fabsl
17761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17762 echo "configure:17763: checking for $ac_func" >&5
17763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17764 echo $ac_n "(cached) $ac_c" 1>&6
17765 else
17766 cat > conftest.$ac_ext <<EOF
17767 #line 17768 "configure"
17768 #include "confdefs.h"
17769 /* System header to define __stub macros and hopefully few prototypes,
17770 which can conflict with char $ac_func(); below. */
17771 #include <assert.h>
17772 /* Override any gcc2 internal prototype to avoid an error. */
17773 /* We use char because int might match the return type of a gcc2
17774 builtin and then its argument prototype would still apply. */
17775 char $ac_func();
17777 int main() {
17779 /* The GNU C library defines this for functions which it implements
17780 to always fail with ENOSYS. Some functions are actually named
17781 something starting with __ and the normal name is an alias. */
17782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17783 choke me
17784 #else
17785 $ac_func();
17786 #endif
17788 ; return 0; }
17790 if { (eval echo configure:17791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17791 rm -rf conftest*
17792 eval "ac_cv_func_$ac_func=yes"
17793 else
17794 echo "configure: failed program was:" >&5
17795 cat conftest.$ac_ext >&5
17796 rm -rf conftest*
17797 eval "ac_cv_func_$ac_func=no"
17799 rm -f conftest*
17802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17803 echo "$ac_t""yes" 1>&6
17804 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17805 cat >> confdefs.h <<EOF
17806 #define $ac_tr_func 1
17809 else
17810 echo "$ac_t""no" 1>&6
17812 done
17819 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17820 echo "configure:17821: checking for fmodl declaration" >&5
17821 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17822 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17823 echo $ac_n "(cached) $ac_c" 1>&6
17824 else
17827 ac_ext=C
17828 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17829 ac_cpp='$CXXCPP $CPPFLAGS'
17830 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17831 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17832 cross_compiling=$ac_cv_prog_cxx_cross
17834 cat > conftest.$ac_ext <<EOF
17835 #line 17836 "configure"
17836 #include "confdefs.h"
17837 #include <math.h>
17838 int main() {
17839 fmodl(0, 0);
17840 ; return 0; }
17842 if { (eval echo configure:17843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17843 rm -rf conftest*
17844 glibcpp_cv_func_fmodl_use=yes
17845 else
17846 echo "configure: failed program was:" >&5
17847 cat conftest.$ac_ext >&5
17848 rm -rf conftest*
17849 glibcpp_cv_func_fmodl_use=no
17851 rm -f conftest*
17852 ac_ext=c
17853 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17854 ac_cpp='$CPP $CPPFLAGS'
17855 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17856 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17857 cross_compiling=$ac_cv_prog_cc_cross
17863 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17865 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17866 for ac_func in fmodl
17868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17869 echo "configure:17870: checking for $ac_func" >&5
17870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17871 echo $ac_n "(cached) $ac_c" 1>&6
17872 else
17873 cat > conftest.$ac_ext <<EOF
17874 #line 17875 "configure"
17875 #include "confdefs.h"
17876 /* System header to define __stub macros and hopefully few prototypes,
17877 which can conflict with char $ac_func(); below. */
17878 #include <assert.h>
17879 /* Override any gcc2 internal prototype to avoid an error. */
17880 /* We use char because int might match the return type of a gcc2
17881 builtin and then its argument prototype would still apply. */
17882 char $ac_func();
17884 int main() {
17886 /* The GNU C library defines this for functions which it implements
17887 to always fail with ENOSYS. Some functions are actually named
17888 something starting with __ and the normal name is an alias. */
17889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17890 choke me
17891 #else
17892 $ac_func();
17893 #endif
17895 ; return 0; }
17897 if { (eval echo configure:17898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17898 rm -rf conftest*
17899 eval "ac_cv_func_$ac_func=yes"
17900 else
17901 echo "configure: failed program was:" >&5
17902 cat conftest.$ac_ext >&5
17903 rm -rf conftest*
17904 eval "ac_cv_func_$ac_func=no"
17906 rm -f conftest*
17909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17910 echo "$ac_t""yes" 1>&6
17911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17912 cat >> confdefs.h <<EOF
17913 #define $ac_tr_func 1
17916 else
17917 echo "$ac_t""no" 1>&6
17919 done
17921 else
17923 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17924 echo "configure:17925: checking for _fmodl declaration" >&5
17925 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17926 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17927 echo $ac_n "(cached) $ac_c" 1>&6
17928 else
17931 ac_ext=C
17932 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17933 ac_cpp='$CXXCPP $CPPFLAGS'
17934 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17935 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17936 cross_compiling=$ac_cv_prog_cxx_cross
17938 cat > conftest.$ac_ext <<EOF
17939 #line 17940 "configure"
17940 #include "confdefs.h"
17941 #include <math.h>
17942 int main() {
17943 _fmodl(0, 0);
17944 ; return 0; }
17946 if { (eval echo configure:17947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17947 rm -rf conftest*
17948 glibcpp_cv_func__fmodl_use=yes
17949 else
17950 echo "configure: failed program was:" >&5
17951 cat conftest.$ac_ext >&5
17952 rm -rf conftest*
17953 glibcpp_cv_func__fmodl_use=no
17955 rm -f conftest*
17956 ac_ext=c
17957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17958 ac_cpp='$CPP $CPPFLAGS'
17959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17961 cross_compiling=$ac_cv_prog_cc_cross
17967 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17969 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17970 for ac_func in _fmodl
17972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17973 echo "configure:17974: checking for $ac_func" >&5
17974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17975 echo $ac_n "(cached) $ac_c" 1>&6
17976 else
17977 cat > conftest.$ac_ext <<EOF
17978 #line 17979 "configure"
17979 #include "confdefs.h"
17980 /* System header to define __stub macros and hopefully few prototypes,
17981 which can conflict with char $ac_func(); below. */
17982 #include <assert.h>
17983 /* Override any gcc2 internal prototype to avoid an error. */
17984 /* We use char because int might match the return type of a gcc2
17985 builtin and then its argument prototype would still apply. */
17986 char $ac_func();
17988 int main() {
17990 /* The GNU C library defines this for functions which it implements
17991 to always fail with ENOSYS. Some functions are actually named
17992 something starting with __ and the normal name is an alias. */
17993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17994 choke me
17995 #else
17996 $ac_func();
17997 #endif
17999 ; return 0; }
18001 if { (eval echo configure:18002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18002 rm -rf conftest*
18003 eval "ac_cv_func_$ac_func=yes"
18004 else
18005 echo "configure: failed program was:" >&5
18006 cat conftest.$ac_ext >&5
18007 rm -rf conftest*
18008 eval "ac_cv_func_$ac_func=no"
18010 rm -f conftest*
18013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18014 echo "$ac_t""yes" 1>&6
18015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18016 cat >> confdefs.h <<EOF
18017 #define $ac_tr_func 1
18020 else
18021 echo "$ac_t""no" 1>&6
18023 done
18030 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
18031 echo "configure:18032: checking for frexpl declaration" >&5
18032 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
18033 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
18034 echo $ac_n "(cached) $ac_c" 1>&6
18035 else
18038 ac_ext=C
18039 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18040 ac_cpp='$CXXCPP $CPPFLAGS'
18041 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18042 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18043 cross_compiling=$ac_cv_prog_cxx_cross
18045 cat > conftest.$ac_ext <<EOF
18046 #line 18047 "configure"
18047 #include "confdefs.h"
18048 #include <math.h>
18049 int main() {
18050 frexpl(0, 0);
18051 ; return 0; }
18053 if { (eval echo configure:18054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18054 rm -rf conftest*
18055 glibcpp_cv_func_frexpl_use=yes
18056 else
18057 echo "configure: failed program was:" >&5
18058 cat conftest.$ac_ext >&5
18059 rm -rf conftest*
18060 glibcpp_cv_func_frexpl_use=no
18062 rm -f conftest*
18063 ac_ext=c
18064 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18065 ac_cpp='$CPP $CPPFLAGS'
18066 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18067 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18068 cross_compiling=$ac_cv_prog_cc_cross
18074 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
18076 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
18077 for ac_func in frexpl
18079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18080 echo "configure:18081: checking for $ac_func" >&5
18081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18082 echo $ac_n "(cached) $ac_c" 1>&6
18083 else
18084 cat > conftest.$ac_ext <<EOF
18085 #line 18086 "configure"
18086 #include "confdefs.h"
18087 /* System header to define __stub macros and hopefully few prototypes,
18088 which can conflict with char $ac_func(); below. */
18089 #include <assert.h>
18090 /* Override any gcc2 internal prototype to avoid an error. */
18091 /* We use char because int might match the return type of a gcc2
18092 builtin and then its argument prototype would still apply. */
18093 char $ac_func();
18095 int main() {
18097 /* The GNU C library defines this for functions which it implements
18098 to always fail with ENOSYS. Some functions are actually named
18099 something starting with __ and the normal name is an alias. */
18100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18101 choke me
18102 #else
18103 $ac_func();
18104 #endif
18106 ; return 0; }
18108 if { (eval echo configure:18109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18109 rm -rf conftest*
18110 eval "ac_cv_func_$ac_func=yes"
18111 else
18112 echo "configure: failed program was:" >&5
18113 cat conftest.$ac_ext >&5
18114 rm -rf conftest*
18115 eval "ac_cv_func_$ac_func=no"
18117 rm -f conftest*
18120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18121 echo "$ac_t""yes" 1>&6
18122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18123 cat >> confdefs.h <<EOF
18124 #define $ac_tr_func 1
18127 else
18128 echo "$ac_t""no" 1>&6
18130 done
18132 else
18134 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
18135 echo "configure:18136: checking for _frexpl declaration" >&5
18136 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
18137 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
18138 echo $ac_n "(cached) $ac_c" 1>&6
18139 else
18142 ac_ext=C
18143 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18144 ac_cpp='$CXXCPP $CPPFLAGS'
18145 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18146 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18147 cross_compiling=$ac_cv_prog_cxx_cross
18149 cat > conftest.$ac_ext <<EOF
18150 #line 18151 "configure"
18151 #include "confdefs.h"
18152 #include <math.h>
18153 int main() {
18154 _frexpl(0, 0);
18155 ; return 0; }
18157 if { (eval echo configure:18158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18158 rm -rf conftest*
18159 glibcpp_cv_func__frexpl_use=yes
18160 else
18161 echo "configure: failed program was:" >&5
18162 cat conftest.$ac_ext >&5
18163 rm -rf conftest*
18164 glibcpp_cv_func__frexpl_use=no
18166 rm -f conftest*
18167 ac_ext=c
18168 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18169 ac_cpp='$CPP $CPPFLAGS'
18170 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18171 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18172 cross_compiling=$ac_cv_prog_cc_cross
18178 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
18180 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
18181 for ac_func in _frexpl
18183 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18184 echo "configure:18185: checking for $ac_func" >&5
18185 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18186 echo $ac_n "(cached) $ac_c" 1>&6
18187 else
18188 cat > conftest.$ac_ext <<EOF
18189 #line 18190 "configure"
18190 #include "confdefs.h"
18191 /* System header to define __stub macros and hopefully few prototypes,
18192 which can conflict with char $ac_func(); below. */
18193 #include <assert.h>
18194 /* Override any gcc2 internal prototype to avoid an error. */
18195 /* We use char because int might match the return type of a gcc2
18196 builtin and then its argument prototype would still apply. */
18197 char $ac_func();
18199 int main() {
18201 /* The GNU C library defines this for functions which it implements
18202 to always fail with ENOSYS. Some functions are actually named
18203 something starting with __ and the normal name is an alias. */
18204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18205 choke me
18206 #else
18207 $ac_func();
18208 #endif
18210 ; return 0; }
18212 if { (eval echo configure:18213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18213 rm -rf conftest*
18214 eval "ac_cv_func_$ac_func=yes"
18215 else
18216 echo "configure: failed program was:" >&5
18217 cat conftest.$ac_ext >&5
18218 rm -rf conftest*
18219 eval "ac_cv_func_$ac_func=no"
18221 rm -f conftest*
18224 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18225 echo "$ac_t""yes" 1>&6
18226 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18227 cat >> confdefs.h <<EOF
18228 #define $ac_tr_func 1
18231 else
18232 echo "$ac_t""no" 1>&6
18234 done
18241 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18242 echo "configure:18243: checking for hypotl declaration" >&5
18243 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18244 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18245 echo $ac_n "(cached) $ac_c" 1>&6
18246 else
18249 ac_ext=C
18250 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18251 ac_cpp='$CXXCPP $CPPFLAGS'
18252 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18253 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18254 cross_compiling=$ac_cv_prog_cxx_cross
18256 cat > conftest.$ac_ext <<EOF
18257 #line 18258 "configure"
18258 #include "confdefs.h"
18259 #include <math.h>
18260 int main() {
18261 hypotl(0, 0);
18262 ; return 0; }
18264 if { (eval echo configure:18265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18265 rm -rf conftest*
18266 glibcpp_cv_func_hypotl_use=yes
18267 else
18268 echo "configure: failed program was:" >&5
18269 cat conftest.$ac_ext >&5
18270 rm -rf conftest*
18271 glibcpp_cv_func_hypotl_use=no
18273 rm -f conftest*
18274 ac_ext=c
18275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18276 ac_cpp='$CPP $CPPFLAGS'
18277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18279 cross_compiling=$ac_cv_prog_cc_cross
18285 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18287 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18288 for ac_func in hypotl
18290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18291 echo "configure:18292: checking for $ac_func" >&5
18292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18293 echo $ac_n "(cached) $ac_c" 1>&6
18294 else
18295 cat > conftest.$ac_ext <<EOF
18296 #line 18297 "configure"
18297 #include "confdefs.h"
18298 /* System header to define __stub macros and hopefully few prototypes,
18299 which can conflict with char $ac_func(); below. */
18300 #include <assert.h>
18301 /* Override any gcc2 internal prototype to avoid an error. */
18302 /* We use char because int might match the return type of a gcc2
18303 builtin and then its argument prototype would still apply. */
18304 char $ac_func();
18306 int main() {
18308 /* The GNU C library defines this for functions which it implements
18309 to always fail with ENOSYS. Some functions are actually named
18310 something starting with __ and the normal name is an alias. */
18311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18312 choke me
18313 #else
18314 $ac_func();
18315 #endif
18317 ; return 0; }
18319 if { (eval echo configure:18320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18320 rm -rf conftest*
18321 eval "ac_cv_func_$ac_func=yes"
18322 else
18323 echo "configure: failed program was:" >&5
18324 cat conftest.$ac_ext >&5
18325 rm -rf conftest*
18326 eval "ac_cv_func_$ac_func=no"
18328 rm -f conftest*
18331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18332 echo "$ac_t""yes" 1>&6
18333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18334 cat >> confdefs.h <<EOF
18335 #define $ac_tr_func 1
18338 else
18339 echo "$ac_t""no" 1>&6
18341 done
18343 else
18345 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18346 echo "configure:18347: checking for _hypotl declaration" >&5
18347 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18348 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18349 echo $ac_n "(cached) $ac_c" 1>&6
18350 else
18353 ac_ext=C
18354 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18355 ac_cpp='$CXXCPP $CPPFLAGS'
18356 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18357 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18358 cross_compiling=$ac_cv_prog_cxx_cross
18360 cat > conftest.$ac_ext <<EOF
18361 #line 18362 "configure"
18362 #include "confdefs.h"
18363 #include <math.h>
18364 int main() {
18365 _hypotl(0, 0);
18366 ; return 0; }
18368 if { (eval echo configure:18369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18369 rm -rf conftest*
18370 glibcpp_cv_func__hypotl_use=yes
18371 else
18372 echo "configure: failed program was:" >&5
18373 cat conftest.$ac_ext >&5
18374 rm -rf conftest*
18375 glibcpp_cv_func__hypotl_use=no
18377 rm -f conftest*
18378 ac_ext=c
18379 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18380 ac_cpp='$CPP $CPPFLAGS'
18381 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18382 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18383 cross_compiling=$ac_cv_prog_cc_cross
18389 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18391 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18392 for ac_func in _hypotl
18394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18395 echo "configure:18396: checking for $ac_func" >&5
18396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18397 echo $ac_n "(cached) $ac_c" 1>&6
18398 else
18399 cat > conftest.$ac_ext <<EOF
18400 #line 18401 "configure"
18401 #include "confdefs.h"
18402 /* System header to define __stub macros and hopefully few prototypes,
18403 which can conflict with char $ac_func(); below. */
18404 #include <assert.h>
18405 /* Override any gcc2 internal prototype to avoid an error. */
18406 /* We use char because int might match the return type of a gcc2
18407 builtin and then its argument prototype would still apply. */
18408 char $ac_func();
18410 int main() {
18412 /* The GNU C library defines this for functions which it implements
18413 to always fail with ENOSYS. Some functions are actually named
18414 something starting with __ and the normal name is an alias. */
18415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18416 choke me
18417 #else
18418 $ac_func();
18419 #endif
18421 ; return 0; }
18423 if { (eval echo configure:18424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18424 rm -rf conftest*
18425 eval "ac_cv_func_$ac_func=yes"
18426 else
18427 echo "configure: failed program was:" >&5
18428 cat conftest.$ac_ext >&5
18429 rm -rf conftest*
18430 eval "ac_cv_func_$ac_func=no"
18432 rm -f conftest*
18435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18436 echo "$ac_t""yes" 1>&6
18437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18438 cat >> confdefs.h <<EOF
18439 #define $ac_tr_func 1
18442 else
18443 echo "$ac_t""no" 1>&6
18445 done
18452 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18453 echo "configure:18454: checking for ldexpl declaration" >&5
18454 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18455 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18456 echo $ac_n "(cached) $ac_c" 1>&6
18457 else
18460 ac_ext=C
18461 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18462 ac_cpp='$CXXCPP $CPPFLAGS'
18463 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18464 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18465 cross_compiling=$ac_cv_prog_cxx_cross
18467 cat > conftest.$ac_ext <<EOF
18468 #line 18469 "configure"
18469 #include "confdefs.h"
18470 #include <math.h>
18471 int main() {
18472 ldexpl(0, 0);
18473 ; return 0; }
18475 if { (eval echo configure:18476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18476 rm -rf conftest*
18477 glibcpp_cv_func_ldexpl_use=yes
18478 else
18479 echo "configure: failed program was:" >&5
18480 cat conftest.$ac_ext >&5
18481 rm -rf conftest*
18482 glibcpp_cv_func_ldexpl_use=no
18484 rm -f conftest*
18485 ac_ext=c
18486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18487 ac_cpp='$CPP $CPPFLAGS'
18488 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18489 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18490 cross_compiling=$ac_cv_prog_cc_cross
18496 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18498 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18499 for ac_func in ldexpl
18501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18502 echo "configure:18503: checking for $ac_func" >&5
18503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18504 echo $ac_n "(cached) $ac_c" 1>&6
18505 else
18506 cat > conftest.$ac_ext <<EOF
18507 #line 18508 "configure"
18508 #include "confdefs.h"
18509 /* System header to define __stub macros and hopefully few prototypes,
18510 which can conflict with char $ac_func(); below. */
18511 #include <assert.h>
18512 /* Override any gcc2 internal prototype to avoid an error. */
18513 /* We use char because int might match the return type of a gcc2
18514 builtin and then its argument prototype would still apply. */
18515 char $ac_func();
18517 int main() {
18519 /* The GNU C library defines this for functions which it implements
18520 to always fail with ENOSYS. Some functions are actually named
18521 something starting with __ and the normal name is an alias. */
18522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18523 choke me
18524 #else
18525 $ac_func();
18526 #endif
18528 ; return 0; }
18530 if { (eval echo configure:18531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18531 rm -rf conftest*
18532 eval "ac_cv_func_$ac_func=yes"
18533 else
18534 echo "configure: failed program was:" >&5
18535 cat conftest.$ac_ext >&5
18536 rm -rf conftest*
18537 eval "ac_cv_func_$ac_func=no"
18539 rm -f conftest*
18542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18543 echo "$ac_t""yes" 1>&6
18544 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18545 cat >> confdefs.h <<EOF
18546 #define $ac_tr_func 1
18549 else
18550 echo "$ac_t""no" 1>&6
18552 done
18554 else
18556 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18557 echo "configure:18558: checking for _ldexpl declaration" >&5
18558 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18559 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18560 echo $ac_n "(cached) $ac_c" 1>&6
18561 else
18564 ac_ext=C
18565 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18566 ac_cpp='$CXXCPP $CPPFLAGS'
18567 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18568 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18569 cross_compiling=$ac_cv_prog_cxx_cross
18571 cat > conftest.$ac_ext <<EOF
18572 #line 18573 "configure"
18573 #include "confdefs.h"
18574 #include <math.h>
18575 int main() {
18576 _ldexpl(0, 0);
18577 ; return 0; }
18579 if { (eval echo configure:18580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18580 rm -rf conftest*
18581 glibcpp_cv_func__ldexpl_use=yes
18582 else
18583 echo "configure: failed program was:" >&5
18584 cat conftest.$ac_ext >&5
18585 rm -rf conftest*
18586 glibcpp_cv_func__ldexpl_use=no
18588 rm -f conftest*
18589 ac_ext=c
18590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18591 ac_cpp='$CPP $CPPFLAGS'
18592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18594 cross_compiling=$ac_cv_prog_cc_cross
18600 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18602 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18603 for ac_func in _ldexpl
18605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18606 echo "configure:18607: checking for $ac_func" >&5
18607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18608 echo $ac_n "(cached) $ac_c" 1>&6
18609 else
18610 cat > conftest.$ac_ext <<EOF
18611 #line 18612 "configure"
18612 #include "confdefs.h"
18613 /* System header to define __stub macros and hopefully few prototypes,
18614 which can conflict with char $ac_func(); below. */
18615 #include <assert.h>
18616 /* Override any gcc2 internal prototype to avoid an error. */
18617 /* We use char because int might match the return type of a gcc2
18618 builtin and then its argument prototype would still apply. */
18619 char $ac_func();
18621 int main() {
18623 /* The GNU C library defines this for functions which it implements
18624 to always fail with ENOSYS. Some functions are actually named
18625 something starting with __ and the normal name is an alias. */
18626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18627 choke me
18628 #else
18629 $ac_func();
18630 #endif
18632 ; return 0; }
18634 if { (eval echo configure:18635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18635 rm -rf conftest*
18636 eval "ac_cv_func_$ac_func=yes"
18637 else
18638 echo "configure: failed program was:" >&5
18639 cat conftest.$ac_ext >&5
18640 rm -rf conftest*
18641 eval "ac_cv_func_$ac_func=no"
18643 rm -f conftest*
18646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18647 echo "$ac_t""yes" 1>&6
18648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18649 cat >> confdefs.h <<EOF
18650 #define $ac_tr_func 1
18653 else
18654 echo "$ac_t""no" 1>&6
18656 done
18663 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18664 echo "configure:18665: checking for logl declaration" >&5
18665 if test x${glibcpp_cv_func_logl_use+set} != xset; then
18666 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18667 echo $ac_n "(cached) $ac_c" 1>&6
18668 else
18671 ac_ext=C
18672 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18673 ac_cpp='$CXXCPP $CPPFLAGS'
18674 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18675 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18676 cross_compiling=$ac_cv_prog_cxx_cross
18678 cat > conftest.$ac_ext <<EOF
18679 #line 18680 "configure"
18680 #include "confdefs.h"
18681 #include <math.h>
18682 #ifdef HAVE_IEEEFP_H
18683 #include <ieeefp.h>
18684 #endif
18686 int main() {
18687 logl(0);
18688 ; return 0; }
18690 if { (eval echo configure:18691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18691 rm -rf conftest*
18692 glibcpp_cv_func_logl_use=yes
18693 else
18694 echo "configure: failed program was:" >&5
18695 cat conftest.$ac_ext >&5
18696 rm -rf conftest*
18697 glibcpp_cv_func_logl_use=no
18699 rm -f conftest*
18700 ac_ext=c
18701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18702 ac_cpp='$CPP $CPPFLAGS'
18703 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18704 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18705 cross_compiling=$ac_cv_prog_cc_cross
18711 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18713 if test x$glibcpp_cv_func_logl_use = x"yes"; then
18714 for ac_func in logl
18716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18717 echo "configure:18718: checking for $ac_func" >&5
18718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18719 echo $ac_n "(cached) $ac_c" 1>&6
18720 else
18721 cat > conftest.$ac_ext <<EOF
18722 #line 18723 "configure"
18723 #include "confdefs.h"
18724 /* System header to define __stub macros and hopefully few prototypes,
18725 which can conflict with char $ac_func(); below. */
18726 #include <assert.h>
18727 /* Override any gcc2 internal prototype to avoid an error. */
18728 /* We use char because int might match the return type of a gcc2
18729 builtin and then its argument prototype would still apply. */
18730 char $ac_func();
18732 int main() {
18734 /* The GNU C library defines this for functions which it implements
18735 to always fail with ENOSYS. Some functions are actually named
18736 something starting with __ and the normal name is an alias. */
18737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18738 choke me
18739 #else
18740 $ac_func();
18741 #endif
18743 ; return 0; }
18745 if { (eval echo configure:18746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18746 rm -rf conftest*
18747 eval "ac_cv_func_$ac_func=yes"
18748 else
18749 echo "configure: failed program was:" >&5
18750 cat conftest.$ac_ext >&5
18751 rm -rf conftest*
18752 eval "ac_cv_func_$ac_func=no"
18754 rm -f conftest*
18757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18758 echo "$ac_t""yes" 1>&6
18759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18760 cat >> confdefs.h <<EOF
18761 #define $ac_tr_func 1
18764 else
18765 echo "$ac_t""no" 1>&6
18767 done
18769 else
18771 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18772 echo "configure:18773: checking for _logl declaration" >&5
18773 if test x${glibcpp_cv_func__logl_use+set} != xset; then
18774 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18775 echo $ac_n "(cached) $ac_c" 1>&6
18776 else
18779 ac_ext=C
18780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18781 ac_cpp='$CXXCPP $CPPFLAGS'
18782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18784 cross_compiling=$ac_cv_prog_cxx_cross
18786 cat > conftest.$ac_ext <<EOF
18787 #line 18788 "configure"
18788 #include "confdefs.h"
18789 #include <math.h>
18790 #ifdef HAVE_IEEEFP_H
18791 #include <ieeefp.h>
18792 #endif
18794 int main() {
18795 _logl(0);
18796 ; return 0; }
18798 if { (eval echo configure:18799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18799 rm -rf conftest*
18800 glibcpp_cv_func__logl_use=yes
18801 else
18802 echo "configure: failed program was:" >&5
18803 cat conftest.$ac_ext >&5
18804 rm -rf conftest*
18805 glibcpp_cv_func__logl_use=no
18807 rm -f conftest*
18808 ac_ext=c
18809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18810 ac_cpp='$CPP $CPPFLAGS'
18811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18813 cross_compiling=$ac_cv_prog_cc_cross
18819 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18821 if test x$glibcpp_cv_func__logl_use = x"yes"; then
18822 for ac_func in _logl
18824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18825 echo "configure:18826: checking for $ac_func" >&5
18826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18827 echo $ac_n "(cached) $ac_c" 1>&6
18828 else
18829 cat > conftest.$ac_ext <<EOF
18830 #line 18831 "configure"
18831 #include "confdefs.h"
18832 /* System header to define __stub macros and hopefully few prototypes,
18833 which can conflict with char $ac_func(); below. */
18834 #include <assert.h>
18835 /* Override any gcc2 internal prototype to avoid an error. */
18836 /* We use char because int might match the return type of a gcc2
18837 builtin and then its argument prototype would still apply. */
18838 char $ac_func();
18840 int main() {
18842 /* The GNU C library defines this for functions which it implements
18843 to always fail with ENOSYS. Some functions are actually named
18844 something starting with __ and the normal name is an alias. */
18845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18846 choke me
18847 #else
18848 $ac_func();
18849 #endif
18851 ; return 0; }
18853 if { (eval echo configure:18854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18854 rm -rf conftest*
18855 eval "ac_cv_func_$ac_func=yes"
18856 else
18857 echo "configure: failed program was:" >&5
18858 cat conftest.$ac_ext >&5
18859 rm -rf conftest*
18860 eval "ac_cv_func_$ac_func=no"
18862 rm -f conftest*
18865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18866 echo "$ac_t""yes" 1>&6
18867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18868 cat >> confdefs.h <<EOF
18869 #define $ac_tr_func 1
18872 else
18873 echo "$ac_t""no" 1>&6
18875 done
18882 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18883 echo "configure:18884: checking for log10l declaration" >&5
18884 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18885 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18886 echo $ac_n "(cached) $ac_c" 1>&6
18887 else
18890 ac_ext=C
18891 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18892 ac_cpp='$CXXCPP $CPPFLAGS'
18893 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18894 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18895 cross_compiling=$ac_cv_prog_cxx_cross
18897 cat > conftest.$ac_ext <<EOF
18898 #line 18899 "configure"
18899 #include "confdefs.h"
18900 #include <math.h>
18901 #ifdef HAVE_IEEEFP_H
18902 #include <ieeefp.h>
18903 #endif
18905 int main() {
18906 log10l(0);
18907 ; return 0; }
18909 if { (eval echo configure:18910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18910 rm -rf conftest*
18911 glibcpp_cv_func_log10l_use=yes
18912 else
18913 echo "configure: failed program was:" >&5
18914 cat conftest.$ac_ext >&5
18915 rm -rf conftest*
18916 glibcpp_cv_func_log10l_use=no
18918 rm -f conftest*
18919 ac_ext=c
18920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18921 ac_cpp='$CPP $CPPFLAGS'
18922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18924 cross_compiling=$ac_cv_prog_cc_cross
18930 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18932 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18933 for ac_func in log10l
18935 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18936 echo "configure:18937: checking for $ac_func" >&5
18937 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18938 echo $ac_n "(cached) $ac_c" 1>&6
18939 else
18940 cat > conftest.$ac_ext <<EOF
18941 #line 18942 "configure"
18942 #include "confdefs.h"
18943 /* System header to define __stub macros and hopefully few prototypes,
18944 which can conflict with char $ac_func(); below. */
18945 #include <assert.h>
18946 /* Override any gcc2 internal prototype to avoid an error. */
18947 /* We use char because int might match the return type of a gcc2
18948 builtin and then its argument prototype would still apply. */
18949 char $ac_func();
18951 int main() {
18953 /* The GNU C library defines this for functions which it implements
18954 to always fail with ENOSYS. Some functions are actually named
18955 something starting with __ and the normal name is an alias. */
18956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18957 choke me
18958 #else
18959 $ac_func();
18960 #endif
18962 ; return 0; }
18964 if { (eval echo configure:18965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18965 rm -rf conftest*
18966 eval "ac_cv_func_$ac_func=yes"
18967 else
18968 echo "configure: failed program was:" >&5
18969 cat conftest.$ac_ext >&5
18970 rm -rf conftest*
18971 eval "ac_cv_func_$ac_func=no"
18973 rm -f conftest*
18976 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18977 echo "$ac_t""yes" 1>&6
18978 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18979 cat >> confdefs.h <<EOF
18980 #define $ac_tr_func 1
18983 else
18984 echo "$ac_t""no" 1>&6
18986 done
18988 else
18990 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18991 echo "configure:18992: checking for _log10l declaration" >&5
18992 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18993 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18994 echo $ac_n "(cached) $ac_c" 1>&6
18995 else
18998 ac_ext=C
18999 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19000 ac_cpp='$CXXCPP $CPPFLAGS'
19001 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19002 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19003 cross_compiling=$ac_cv_prog_cxx_cross
19005 cat > conftest.$ac_ext <<EOF
19006 #line 19007 "configure"
19007 #include "confdefs.h"
19008 #include <math.h>
19009 #ifdef HAVE_IEEEFP_H
19010 #include <ieeefp.h>
19011 #endif
19013 int main() {
19014 _log10l(0);
19015 ; return 0; }
19017 if { (eval echo configure:19018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19018 rm -rf conftest*
19019 glibcpp_cv_func__log10l_use=yes
19020 else
19021 echo "configure: failed program was:" >&5
19022 cat conftest.$ac_ext >&5
19023 rm -rf conftest*
19024 glibcpp_cv_func__log10l_use=no
19026 rm -f conftest*
19027 ac_ext=c
19028 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19029 ac_cpp='$CPP $CPPFLAGS'
19030 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19031 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19032 cross_compiling=$ac_cv_prog_cc_cross
19038 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
19040 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
19041 for ac_func in _log10l
19043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19044 echo "configure:19045: checking for $ac_func" >&5
19045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19046 echo $ac_n "(cached) $ac_c" 1>&6
19047 else
19048 cat > conftest.$ac_ext <<EOF
19049 #line 19050 "configure"
19050 #include "confdefs.h"
19051 /* System header to define __stub macros and hopefully few prototypes,
19052 which can conflict with char $ac_func(); below. */
19053 #include <assert.h>
19054 /* Override any gcc2 internal prototype to avoid an error. */
19055 /* We use char because int might match the return type of a gcc2
19056 builtin and then its argument prototype would still apply. */
19057 char $ac_func();
19059 int main() {
19061 /* The GNU C library defines this for functions which it implements
19062 to always fail with ENOSYS. Some functions are actually named
19063 something starting with __ and the normal name is an alias. */
19064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19065 choke me
19066 #else
19067 $ac_func();
19068 #endif
19070 ; return 0; }
19072 if { (eval echo configure:19073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19073 rm -rf conftest*
19074 eval "ac_cv_func_$ac_func=yes"
19075 else
19076 echo "configure: failed program was:" >&5
19077 cat conftest.$ac_ext >&5
19078 rm -rf conftest*
19079 eval "ac_cv_func_$ac_func=no"
19081 rm -f conftest*
19084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19085 echo "$ac_t""yes" 1>&6
19086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19087 cat >> confdefs.h <<EOF
19088 #define $ac_tr_func 1
19091 else
19092 echo "$ac_t""no" 1>&6
19094 done
19101 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
19102 echo "configure:19103: checking for modfl declaration" >&5
19103 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
19104 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
19105 echo $ac_n "(cached) $ac_c" 1>&6
19106 else
19109 ac_ext=C
19110 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19111 ac_cpp='$CXXCPP $CPPFLAGS'
19112 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19113 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19114 cross_compiling=$ac_cv_prog_cxx_cross
19116 cat > conftest.$ac_ext <<EOF
19117 #line 19118 "configure"
19118 #include "confdefs.h"
19119 #include <math.h>
19120 int main() {
19121 modfl(0, 0);
19122 ; return 0; }
19124 if { (eval echo configure:19125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19125 rm -rf conftest*
19126 glibcpp_cv_func_modfl_use=yes
19127 else
19128 echo "configure: failed program was:" >&5
19129 cat conftest.$ac_ext >&5
19130 rm -rf conftest*
19131 glibcpp_cv_func_modfl_use=no
19133 rm -f conftest*
19134 ac_ext=c
19135 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19136 ac_cpp='$CPP $CPPFLAGS'
19137 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19138 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19139 cross_compiling=$ac_cv_prog_cc_cross
19145 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
19147 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
19148 for ac_func in modfl
19150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19151 echo "configure:19152: checking for $ac_func" >&5
19152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19153 echo $ac_n "(cached) $ac_c" 1>&6
19154 else
19155 cat > conftest.$ac_ext <<EOF
19156 #line 19157 "configure"
19157 #include "confdefs.h"
19158 /* System header to define __stub macros and hopefully few prototypes,
19159 which can conflict with char $ac_func(); below. */
19160 #include <assert.h>
19161 /* Override any gcc2 internal prototype to avoid an error. */
19162 /* We use char because int might match the return type of a gcc2
19163 builtin and then its argument prototype would still apply. */
19164 char $ac_func();
19166 int main() {
19168 /* The GNU C library defines this for functions which it implements
19169 to always fail with ENOSYS. Some functions are actually named
19170 something starting with __ and the normal name is an alias. */
19171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19172 choke me
19173 #else
19174 $ac_func();
19175 #endif
19177 ; return 0; }
19179 if { (eval echo configure:19180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19180 rm -rf conftest*
19181 eval "ac_cv_func_$ac_func=yes"
19182 else
19183 echo "configure: failed program was:" >&5
19184 cat conftest.$ac_ext >&5
19185 rm -rf conftest*
19186 eval "ac_cv_func_$ac_func=no"
19188 rm -f conftest*
19191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19192 echo "$ac_t""yes" 1>&6
19193 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19194 cat >> confdefs.h <<EOF
19195 #define $ac_tr_func 1
19198 else
19199 echo "$ac_t""no" 1>&6
19201 done
19203 else
19205 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
19206 echo "configure:19207: checking for _modfl declaration" >&5
19207 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
19208 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
19209 echo $ac_n "(cached) $ac_c" 1>&6
19210 else
19213 ac_ext=C
19214 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19215 ac_cpp='$CXXCPP $CPPFLAGS'
19216 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19217 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19218 cross_compiling=$ac_cv_prog_cxx_cross
19220 cat > conftest.$ac_ext <<EOF
19221 #line 19222 "configure"
19222 #include "confdefs.h"
19223 #include <math.h>
19224 int main() {
19225 _modfl(0, 0);
19226 ; return 0; }
19228 if { (eval echo configure:19229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19229 rm -rf conftest*
19230 glibcpp_cv_func__modfl_use=yes
19231 else
19232 echo "configure: failed program was:" >&5
19233 cat conftest.$ac_ext >&5
19234 rm -rf conftest*
19235 glibcpp_cv_func__modfl_use=no
19237 rm -f conftest*
19238 ac_ext=c
19239 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19240 ac_cpp='$CPP $CPPFLAGS'
19241 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19242 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19243 cross_compiling=$ac_cv_prog_cc_cross
19249 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19251 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19252 for ac_func in _modfl
19254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19255 echo "configure:19256: checking for $ac_func" >&5
19256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19257 echo $ac_n "(cached) $ac_c" 1>&6
19258 else
19259 cat > conftest.$ac_ext <<EOF
19260 #line 19261 "configure"
19261 #include "confdefs.h"
19262 /* System header to define __stub macros and hopefully few prototypes,
19263 which can conflict with char $ac_func(); below. */
19264 #include <assert.h>
19265 /* Override any gcc2 internal prototype to avoid an error. */
19266 /* We use char because int might match the return type of a gcc2
19267 builtin and then its argument prototype would still apply. */
19268 char $ac_func();
19270 int main() {
19272 /* The GNU C library defines this for functions which it implements
19273 to always fail with ENOSYS. Some functions are actually named
19274 something starting with __ and the normal name is an alias. */
19275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19276 choke me
19277 #else
19278 $ac_func();
19279 #endif
19281 ; return 0; }
19283 if { (eval echo configure:19284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19284 rm -rf conftest*
19285 eval "ac_cv_func_$ac_func=yes"
19286 else
19287 echo "configure: failed program was:" >&5
19288 cat conftest.$ac_ext >&5
19289 rm -rf conftest*
19290 eval "ac_cv_func_$ac_func=no"
19292 rm -f conftest*
19295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19296 echo "$ac_t""yes" 1>&6
19297 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19298 cat >> confdefs.h <<EOF
19299 #define $ac_tr_func 1
19302 else
19303 echo "$ac_t""no" 1>&6
19305 done
19312 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19313 echo "configure:19314: checking for powl declaration" >&5
19314 if test x${glibcpp_cv_func_powl_use+set} != xset; then
19315 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19316 echo $ac_n "(cached) $ac_c" 1>&6
19317 else
19320 ac_ext=C
19321 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19322 ac_cpp='$CXXCPP $CPPFLAGS'
19323 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19324 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19325 cross_compiling=$ac_cv_prog_cxx_cross
19327 cat > conftest.$ac_ext <<EOF
19328 #line 19329 "configure"
19329 #include "confdefs.h"
19330 #include <math.h>
19331 int main() {
19332 powl(0, 0);
19333 ; return 0; }
19335 if { (eval echo configure:19336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19336 rm -rf conftest*
19337 glibcpp_cv_func_powl_use=yes
19338 else
19339 echo "configure: failed program was:" >&5
19340 cat conftest.$ac_ext >&5
19341 rm -rf conftest*
19342 glibcpp_cv_func_powl_use=no
19344 rm -f conftest*
19345 ac_ext=c
19346 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19347 ac_cpp='$CPP $CPPFLAGS'
19348 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19349 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19350 cross_compiling=$ac_cv_prog_cc_cross
19356 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19358 if test x$glibcpp_cv_func_powl_use = x"yes"; then
19359 for ac_func in powl
19361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19362 echo "configure:19363: checking for $ac_func" >&5
19363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19364 echo $ac_n "(cached) $ac_c" 1>&6
19365 else
19366 cat > conftest.$ac_ext <<EOF
19367 #line 19368 "configure"
19368 #include "confdefs.h"
19369 /* System header to define __stub macros and hopefully few prototypes,
19370 which can conflict with char $ac_func(); below. */
19371 #include <assert.h>
19372 /* Override any gcc2 internal prototype to avoid an error. */
19373 /* We use char because int might match the return type of a gcc2
19374 builtin and then its argument prototype would still apply. */
19375 char $ac_func();
19377 int main() {
19379 /* The GNU C library defines this for functions which it implements
19380 to always fail with ENOSYS. Some functions are actually named
19381 something starting with __ and the normal name is an alias. */
19382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19383 choke me
19384 #else
19385 $ac_func();
19386 #endif
19388 ; return 0; }
19390 if { (eval echo configure:19391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19391 rm -rf conftest*
19392 eval "ac_cv_func_$ac_func=yes"
19393 else
19394 echo "configure: failed program was:" >&5
19395 cat conftest.$ac_ext >&5
19396 rm -rf conftest*
19397 eval "ac_cv_func_$ac_func=no"
19399 rm -f conftest*
19402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19403 echo "$ac_t""yes" 1>&6
19404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19405 cat >> confdefs.h <<EOF
19406 #define $ac_tr_func 1
19409 else
19410 echo "$ac_t""no" 1>&6
19412 done
19414 else
19416 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19417 echo "configure:19418: checking for _powl declaration" >&5
19418 if test x${glibcpp_cv_func__powl_use+set} != xset; then
19419 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19420 echo $ac_n "(cached) $ac_c" 1>&6
19421 else
19424 ac_ext=C
19425 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19426 ac_cpp='$CXXCPP $CPPFLAGS'
19427 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19428 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19429 cross_compiling=$ac_cv_prog_cxx_cross
19431 cat > conftest.$ac_ext <<EOF
19432 #line 19433 "configure"
19433 #include "confdefs.h"
19434 #include <math.h>
19435 int main() {
19436 _powl(0, 0);
19437 ; return 0; }
19439 if { (eval echo configure:19440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19440 rm -rf conftest*
19441 glibcpp_cv_func__powl_use=yes
19442 else
19443 echo "configure: failed program was:" >&5
19444 cat conftest.$ac_ext >&5
19445 rm -rf conftest*
19446 glibcpp_cv_func__powl_use=no
19448 rm -f conftest*
19449 ac_ext=c
19450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19451 ac_cpp='$CPP $CPPFLAGS'
19452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19454 cross_compiling=$ac_cv_prog_cc_cross
19460 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19462 if test x$glibcpp_cv_func__powl_use = x"yes"; then
19463 for ac_func in _powl
19465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19466 echo "configure:19467: checking for $ac_func" >&5
19467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19468 echo $ac_n "(cached) $ac_c" 1>&6
19469 else
19470 cat > conftest.$ac_ext <<EOF
19471 #line 19472 "configure"
19472 #include "confdefs.h"
19473 /* System header to define __stub macros and hopefully few prototypes,
19474 which can conflict with char $ac_func(); below. */
19475 #include <assert.h>
19476 /* Override any gcc2 internal prototype to avoid an error. */
19477 /* We use char because int might match the return type of a gcc2
19478 builtin and then its argument prototype would still apply. */
19479 char $ac_func();
19481 int main() {
19483 /* The GNU C library defines this for functions which it implements
19484 to always fail with ENOSYS. Some functions are actually named
19485 something starting with __ and the normal name is an alias. */
19486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19487 choke me
19488 #else
19489 $ac_func();
19490 #endif
19492 ; return 0; }
19494 if { (eval echo configure:19495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19495 rm -rf conftest*
19496 eval "ac_cv_func_$ac_func=yes"
19497 else
19498 echo "configure: failed program was:" >&5
19499 cat conftest.$ac_ext >&5
19500 rm -rf conftest*
19501 eval "ac_cv_func_$ac_func=no"
19503 rm -f conftest*
19506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19507 echo "$ac_t""yes" 1>&6
19508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19509 cat >> confdefs.h <<EOF
19510 #define $ac_tr_func 1
19513 else
19514 echo "$ac_t""no" 1>&6
19516 done
19523 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19524 echo "configure:19525: checking for sqrtl declaration" >&5
19525 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19526 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19527 echo $ac_n "(cached) $ac_c" 1>&6
19528 else
19531 ac_ext=C
19532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19533 ac_cpp='$CXXCPP $CPPFLAGS'
19534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19536 cross_compiling=$ac_cv_prog_cxx_cross
19538 cat > conftest.$ac_ext <<EOF
19539 #line 19540 "configure"
19540 #include "confdefs.h"
19541 #include <math.h>
19542 #ifdef HAVE_IEEEFP_H
19543 #include <ieeefp.h>
19544 #endif
19546 int main() {
19547 sqrtl(0);
19548 ; return 0; }
19550 if { (eval echo configure:19551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19551 rm -rf conftest*
19552 glibcpp_cv_func_sqrtl_use=yes
19553 else
19554 echo "configure: failed program was:" >&5
19555 cat conftest.$ac_ext >&5
19556 rm -rf conftest*
19557 glibcpp_cv_func_sqrtl_use=no
19559 rm -f conftest*
19560 ac_ext=c
19561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19562 ac_cpp='$CPP $CPPFLAGS'
19563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19565 cross_compiling=$ac_cv_prog_cc_cross
19571 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19573 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19574 for ac_func in sqrtl
19576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19577 echo "configure:19578: checking for $ac_func" >&5
19578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19579 echo $ac_n "(cached) $ac_c" 1>&6
19580 else
19581 cat > conftest.$ac_ext <<EOF
19582 #line 19583 "configure"
19583 #include "confdefs.h"
19584 /* System header to define __stub macros and hopefully few prototypes,
19585 which can conflict with char $ac_func(); below. */
19586 #include <assert.h>
19587 /* Override any gcc2 internal prototype to avoid an error. */
19588 /* We use char because int might match the return type of a gcc2
19589 builtin and then its argument prototype would still apply. */
19590 char $ac_func();
19592 int main() {
19594 /* The GNU C library defines this for functions which it implements
19595 to always fail with ENOSYS. Some functions are actually named
19596 something starting with __ and the normal name is an alias. */
19597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19598 choke me
19599 #else
19600 $ac_func();
19601 #endif
19603 ; return 0; }
19605 if { (eval echo configure:19606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19606 rm -rf conftest*
19607 eval "ac_cv_func_$ac_func=yes"
19608 else
19609 echo "configure: failed program was:" >&5
19610 cat conftest.$ac_ext >&5
19611 rm -rf conftest*
19612 eval "ac_cv_func_$ac_func=no"
19614 rm -f conftest*
19617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19618 echo "$ac_t""yes" 1>&6
19619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19620 cat >> confdefs.h <<EOF
19621 #define $ac_tr_func 1
19624 else
19625 echo "$ac_t""no" 1>&6
19627 done
19629 else
19631 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19632 echo "configure:19633: checking for _sqrtl declaration" >&5
19633 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19634 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19635 echo $ac_n "(cached) $ac_c" 1>&6
19636 else
19639 ac_ext=C
19640 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19641 ac_cpp='$CXXCPP $CPPFLAGS'
19642 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19643 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19644 cross_compiling=$ac_cv_prog_cxx_cross
19646 cat > conftest.$ac_ext <<EOF
19647 #line 19648 "configure"
19648 #include "confdefs.h"
19649 #include <math.h>
19650 #ifdef HAVE_IEEEFP_H
19651 #include <ieeefp.h>
19652 #endif
19654 int main() {
19655 _sqrtl(0);
19656 ; return 0; }
19658 if { (eval echo configure:19659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19659 rm -rf conftest*
19660 glibcpp_cv_func__sqrtl_use=yes
19661 else
19662 echo "configure: failed program was:" >&5
19663 cat conftest.$ac_ext >&5
19664 rm -rf conftest*
19665 glibcpp_cv_func__sqrtl_use=no
19667 rm -f conftest*
19668 ac_ext=c
19669 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19670 ac_cpp='$CPP $CPPFLAGS'
19671 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19672 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19673 cross_compiling=$ac_cv_prog_cc_cross
19679 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19681 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19682 for ac_func in _sqrtl
19684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19685 echo "configure:19686: checking for $ac_func" >&5
19686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19687 echo $ac_n "(cached) $ac_c" 1>&6
19688 else
19689 cat > conftest.$ac_ext <<EOF
19690 #line 19691 "configure"
19691 #include "confdefs.h"
19692 /* System header to define __stub macros and hopefully few prototypes,
19693 which can conflict with char $ac_func(); below. */
19694 #include <assert.h>
19695 /* Override any gcc2 internal prototype to avoid an error. */
19696 /* We use char because int might match the return type of a gcc2
19697 builtin and then its argument prototype would still apply. */
19698 char $ac_func();
19700 int main() {
19702 /* The GNU C library defines this for functions which it implements
19703 to always fail with ENOSYS. Some functions are actually named
19704 something starting with __ and the normal name is an alias. */
19705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19706 choke me
19707 #else
19708 $ac_func();
19709 #endif
19711 ; return 0; }
19713 if { (eval echo configure:19714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19714 rm -rf conftest*
19715 eval "ac_cv_func_$ac_func=yes"
19716 else
19717 echo "configure: failed program was:" >&5
19718 cat conftest.$ac_ext >&5
19719 rm -rf conftest*
19720 eval "ac_cv_func_$ac_func=no"
19722 rm -f conftest*
19725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19726 echo "$ac_t""yes" 1>&6
19727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19728 cat >> confdefs.h <<EOF
19729 #define $ac_tr_func 1
19732 else
19733 echo "$ac_t""no" 1>&6
19735 done
19742 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19743 echo "configure:19744: checking for sincosl declaration" >&5
19744 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19745 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19746 echo $ac_n "(cached) $ac_c" 1>&6
19747 else
19750 ac_ext=C
19751 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19752 ac_cpp='$CXXCPP $CPPFLAGS'
19753 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19754 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19755 cross_compiling=$ac_cv_prog_cxx_cross
19757 cat > conftest.$ac_ext <<EOF
19758 #line 19759 "configure"
19759 #include "confdefs.h"
19760 #include <math.h>
19761 int main() {
19762 sincosl(0, 0, 0);
19763 ; return 0; }
19765 if { (eval echo configure:19766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19766 rm -rf conftest*
19767 glibcpp_cv_func_sincosl_use=yes
19768 else
19769 echo "configure: failed program was:" >&5
19770 cat conftest.$ac_ext >&5
19771 rm -rf conftest*
19772 glibcpp_cv_func_sincosl_use=no
19774 rm -f conftest*
19775 ac_ext=c
19776 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19777 ac_cpp='$CPP $CPPFLAGS'
19778 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19779 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19780 cross_compiling=$ac_cv_prog_cc_cross
19786 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19788 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19789 for ac_func in sincosl
19791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19792 echo "configure:19793: checking for $ac_func" >&5
19793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19794 echo $ac_n "(cached) $ac_c" 1>&6
19795 else
19796 cat > conftest.$ac_ext <<EOF
19797 #line 19798 "configure"
19798 #include "confdefs.h"
19799 /* System header to define __stub macros and hopefully few prototypes,
19800 which can conflict with char $ac_func(); below. */
19801 #include <assert.h>
19802 /* Override any gcc2 internal prototype to avoid an error. */
19803 /* We use char because int might match the return type of a gcc2
19804 builtin and then its argument prototype would still apply. */
19805 char $ac_func();
19807 int main() {
19809 /* The GNU C library defines this for functions which it implements
19810 to always fail with ENOSYS. Some functions are actually named
19811 something starting with __ and the normal name is an alias. */
19812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19813 choke me
19814 #else
19815 $ac_func();
19816 #endif
19818 ; return 0; }
19820 if { (eval echo configure:19821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19821 rm -rf conftest*
19822 eval "ac_cv_func_$ac_func=yes"
19823 else
19824 echo "configure: failed program was:" >&5
19825 cat conftest.$ac_ext >&5
19826 rm -rf conftest*
19827 eval "ac_cv_func_$ac_func=no"
19829 rm -f conftest*
19832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19833 echo "$ac_t""yes" 1>&6
19834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19835 cat >> confdefs.h <<EOF
19836 #define $ac_tr_func 1
19839 else
19840 echo "$ac_t""no" 1>&6
19842 done
19844 else
19846 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19847 echo "configure:19848: checking for _sincosl declaration" >&5
19848 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19849 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19850 echo $ac_n "(cached) $ac_c" 1>&6
19851 else
19854 ac_ext=C
19855 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19856 ac_cpp='$CXXCPP $CPPFLAGS'
19857 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19858 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19859 cross_compiling=$ac_cv_prog_cxx_cross
19861 cat > conftest.$ac_ext <<EOF
19862 #line 19863 "configure"
19863 #include "confdefs.h"
19864 #include <math.h>
19865 int main() {
19866 _sincosl(0, 0, 0);
19867 ; return 0; }
19869 if { (eval echo configure:19870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19870 rm -rf conftest*
19871 glibcpp_cv_func__sincosl_use=yes
19872 else
19873 echo "configure: failed program was:" >&5
19874 cat conftest.$ac_ext >&5
19875 rm -rf conftest*
19876 glibcpp_cv_func__sincosl_use=no
19878 rm -f conftest*
19879 ac_ext=c
19880 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19881 ac_cpp='$CPP $CPPFLAGS'
19882 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19883 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19884 cross_compiling=$ac_cv_prog_cc_cross
19890 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19892 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19893 for ac_func in _sincosl
19895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19896 echo "configure:19897: checking for $ac_func" >&5
19897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19898 echo $ac_n "(cached) $ac_c" 1>&6
19899 else
19900 cat > conftest.$ac_ext <<EOF
19901 #line 19902 "configure"
19902 #include "confdefs.h"
19903 /* System header to define __stub macros and hopefully few prototypes,
19904 which can conflict with char $ac_func(); below. */
19905 #include <assert.h>
19906 /* Override any gcc2 internal prototype to avoid an error. */
19907 /* We use char because int might match the return type of a gcc2
19908 builtin and then its argument prototype would still apply. */
19909 char $ac_func();
19911 int main() {
19913 /* The GNU C library defines this for functions which it implements
19914 to always fail with ENOSYS. Some functions are actually named
19915 something starting with __ and the normal name is an alias. */
19916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19917 choke me
19918 #else
19919 $ac_func();
19920 #endif
19922 ; return 0; }
19924 if { (eval echo configure:19925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19925 rm -rf conftest*
19926 eval "ac_cv_func_$ac_func=yes"
19927 else
19928 echo "configure: failed program was:" >&5
19929 cat conftest.$ac_ext >&5
19930 rm -rf conftest*
19931 eval "ac_cv_func_$ac_func=no"
19933 rm -f conftest*
19936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19937 echo "$ac_t""yes" 1>&6
19938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19939 cat >> confdefs.h <<EOF
19940 #define $ac_tr_func 1
19943 else
19944 echo "$ac_t""no" 1>&6
19946 done
19953 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19954 echo "configure:19955: checking for finitel declaration" >&5
19955 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19956 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19957 echo $ac_n "(cached) $ac_c" 1>&6
19958 else
19961 ac_ext=C
19962 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19963 ac_cpp='$CXXCPP $CPPFLAGS'
19964 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19965 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19966 cross_compiling=$ac_cv_prog_cxx_cross
19968 cat > conftest.$ac_ext <<EOF
19969 #line 19970 "configure"
19970 #include "confdefs.h"
19971 #include <math.h>
19972 #ifdef HAVE_IEEEFP_H
19973 #include <ieeefp.h>
19974 #endif
19976 int main() {
19977 finitel(0);
19978 ; return 0; }
19980 if { (eval echo configure:19981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19981 rm -rf conftest*
19982 glibcpp_cv_func_finitel_use=yes
19983 else
19984 echo "configure: failed program was:" >&5
19985 cat conftest.$ac_ext >&5
19986 rm -rf conftest*
19987 glibcpp_cv_func_finitel_use=no
19989 rm -f conftest*
19990 ac_ext=c
19991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19992 ac_cpp='$CPP $CPPFLAGS'
19993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19995 cross_compiling=$ac_cv_prog_cc_cross
20001 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
20003 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
20004 for ac_func in finitel
20006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20007 echo "configure:20008: checking for $ac_func" >&5
20008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20009 echo $ac_n "(cached) $ac_c" 1>&6
20010 else
20011 cat > conftest.$ac_ext <<EOF
20012 #line 20013 "configure"
20013 #include "confdefs.h"
20014 /* System header to define __stub macros and hopefully few prototypes,
20015 which can conflict with char $ac_func(); below. */
20016 #include <assert.h>
20017 /* Override any gcc2 internal prototype to avoid an error. */
20018 /* We use char because int might match the return type of a gcc2
20019 builtin and then its argument prototype would still apply. */
20020 char $ac_func();
20022 int main() {
20024 /* The GNU C library defines this for functions which it implements
20025 to always fail with ENOSYS. Some functions are actually named
20026 something starting with __ and the normal name is an alias. */
20027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20028 choke me
20029 #else
20030 $ac_func();
20031 #endif
20033 ; return 0; }
20035 if { (eval echo configure:20036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20036 rm -rf conftest*
20037 eval "ac_cv_func_$ac_func=yes"
20038 else
20039 echo "configure: failed program was:" >&5
20040 cat conftest.$ac_ext >&5
20041 rm -rf conftest*
20042 eval "ac_cv_func_$ac_func=no"
20044 rm -f conftest*
20047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20048 echo "$ac_t""yes" 1>&6
20049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20050 cat >> confdefs.h <<EOF
20051 #define $ac_tr_func 1
20054 else
20055 echo "$ac_t""no" 1>&6
20057 done
20059 else
20061 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
20062 echo "configure:20063: checking for _finitel declaration" >&5
20063 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
20064 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
20065 echo $ac_n "(cached) $ac_c" 1>&6
20066 else
20069 ac_ext=C
20070 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20071 ac_cpp='$CXXCPP $CPPFLAGS'
20072 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20073 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20074 cross_compiling=$ac_cv_prog_cxx_cross
20076 cat > conftest.$ac_ext <<EOF
20077 #line 20078 "configure"
20078 #include "confdefs.h"
20079 #include <math.h>
20080 #ifdef HAVE_IEEEFP_H
20081 #include <ieeefp.h>
20082 #endif
20084 int main() {
20085 _finitel(0);
20086 ; return 0; }
20088 if { (eval echo configure:20089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20089 rm -rf conftest*
20090 glibcpp_cv_func__finitel_use=yes
20091 else
20092 echo "configure: failed program was:" >&5
20093 cat conftest.$ac_ext >&5
20094 rm -rf conftest*
20095 glibcpp_cv_func__finitel_use=no
20097 rm -f conftest*
20098 ac_ext=c
20099 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20100 ac_cpp='$CPP $CPPFLAGS'
20101 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20102 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20103 cross_compiling=$ac_cv_prog_cc_cross
20109 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
20111 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
20112 for ac_func in _finitel
20114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20115 echo "configure:20116: checking for $ac_func" >&5
20116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20117 echo $ac_n "(cached) $ac_c" 1>&6
20118 else
20119 cat > conftest.$ac_ext <<EOF
20120 #line 20121 "configure"
20121 #include "confdefs.h"
20122 /* System header to define __stub macros and hopefully few prototypes,
20123 which can conflict with char $ac_func(); below. */
20124 #include <assert.h>
20125 /* Override any gcc2 internal prototype to avoid an error. */
20126 /* We use char because int might match the return type of a gcc2
20127 builtin and then its argument prototype would still apply. */
20128 char $ac_func();
20130 int main() {
20132 /* The GNU C library defines this for functions which it implements
20133 to always fail with ENOSYS. Some functions are actually named
20134 something starting with __ and the normal name is an alias. */
20135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20136 choke me
20137 #else
20138 $ac_func();
20139 #endif
20141 ; return 0; }
20143 if { (eval echo configure:20144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20144 rm -rf conftest*
20145 eval "ac_cv_func_$ac_func=yes"
20146 else
20147 echo "configure: failed program was:" >&5
20148 cat conftest.$ac_ext >&5
20149 rm -rf conftest*
20150 eval "ac_cv_func_$ac_func=no"
20152 rm -f conftest*
20155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20156 echo "$ac_t""yes" 1>&6
20157 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20158 cat >> confdefs.h <<EOF
20159 #define $ac_tr_func 1
20162 else
20163 echo "$ac_t""no" 1>&6
20165 done
20173 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
20174 echo "configure:20175: checking for _float trig functions" >&5
20175 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
20176 echo $ac_n "(cached) $ac_c" 1>&6
20177 else
20180 ac_ext=C
20181 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20182 ac_cpp='$CXXCPP $CPPFLAGS'
20183 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20184 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20185 cross_compiling=$ac_cv_prog_cxx_cross
20187 cat > conftest.$ac_ext <<EOF
20188 #line 20189 "configure"
20189 #include "confdefs.h"
20190 #include <math.h>
20191 int main() {
20192 `for x in _acosf _asinf _atanf \
20193 _cosf _sinf _tanf \
20194 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
20195 ; return 0; }
20197 if { (eval echo configure:20198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20198 rm -rf conftest*
20199 glibcpp_cv_func__float_trig_use=yes
20200 else
20201 echo "configure: failed program was:" >&5
20202 cat conftest.$ac_ext >&5
20203 rm -rf conftest*
20204 glibcpp_cv_func__float_trig_use=no
20206 rm -f conftest*
20207 ac_ext=c
20208 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20209 ac_cpp='$CPP $CPPFLAGS'
20210 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20211 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20212 cross_compiling=$ac_cv_prog_cc_cross
20216 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
20217 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
20218 for ac_func in _acosf _asinf _atanf \
20219 _cosf _sinf _tanf \
20220 _coshf _sinhf _tanhf
20222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20223 echo "configure:20224: checking for $ac_func" >&5
20224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20225 echo $ac_n "(cached) $ac_c" 1>&6
20226 else
20227 cat > conftest.$ac_ext <<EOF
20228 #line 20229 "configure"
20229 #include "confdefs.h"
20230 /* System header to define __stub macros and hopefully few prototypes,
20231 which can conflict with char $ac_func(); below. */
20232 #include <assert.h>
20233 /* Override any gcc2 internal prototype to avoid an error. */
20234 /* We use char because int might match the return type of a gcc2
20235 builtin and then its argument prototype would still apply. */
20236 char $ac_func();
20238 int main() {
20240 /* The GNU C library defines this for functions which it implements
20241 to always fail with ENOSYS. Some functions are actually named
20242 something starting with __ and the normal name is an alias. */
20243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20244 choke me
20245 #else
20246 $ac_func();
20247 #endif
20249 ; return 0; }
20251 if { (eval echo configure:20252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20252 rm -rf conftest*
20253 eval "ac_cv_func_$ac_func=yes"
20254 else
20255 echo "configure: failed program was:" >&5
20256 cat conftest.$ac_ext >&5
20257 rm -rf conftest*
20258 eval "ac_cv_func_$ac_func=no"
20260 rm -f conftest*
20263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20264 echo "$ac_t""yes" 1>&6
20265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20266 cat >> confdefs.h <<EOF
20267 #define $ac_tr_func 1
20270 else
20271 echo "$ac_t""no" 1>&6
20273 done
20278 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20279 echo "configure:20280: checking for _float round functions" >&5
20280 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20281 echo $ac_n "(cached) $ac_c" 1>&6
20282 else
20285 ac_ext=C
20286 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20287 ac_cpp='$CXXCPP $CPPFLAGS'
20288 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20289 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20290 cross_compiling=$ac_cv_prog_cxx_cross
20292 cat > conftest.$ac_ext <<EOF
20293 #line 20294 "configure"
20294 #include "confdefs.h"
20295 #include <math.h>
20296 int main() {
20297 `for x in _ceilf _floorf; do echo "$x (0);"; done`
20298 ; return 0; }
20300 if { (eval echo configure:20301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20301 rm -rf conftest*
20302 glibcpp_cv_func__float_round_use=yes
20303 else
20304 echo "configure: failed program was:" >&5
20305 cat conftest.$ac_ext >&5
20306 rm -rf conftest*
20307 glibcpp_cv_func__float_round_use=no
20309 rm -f conftest*
20310 ac_ext=c
20311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20312 ac_cpp='$CPP $CPPFLAGS'
20313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20315 cross_compiling=$ac_cv_prog_cc_cross
20319 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20320 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20321 for ac_func in _ceilf _floorf
20323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20324 echo "configure:20325: checking for $ac_func" >&5
20325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20326 echo $ac_n "(cached) $ac_c" 1>&6
20327 else
20328 cat > conftest.$ac_ext <<EOF
20329 #line 20330 "configure"
20330 #include "confdefs.h"
20331 /* System header to define __stub macros and hopefully few prototypes,
20332 which can conflict with char $ac_func(); below. */
20333 #include <assert.h>
20334 /* Override any gcc2 internal prototype to avoid an error. */
20335 /* We use char because int might match the return type of a gcc2
20336 builtin and then its argument prototype would still apply. */
20337 char $ac_func();
20339 int main() {
20341 /* The GNU C library defines this for functions which it implements
20342 to always fail with ENOSYS. Some functions are actually named
20343 something starting with __ and the normal name is an alias. */
20344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20345 choke me
20346 #else
20347 $ac_func();
20348 #endif
20350 ; return 0; }
20352 if { (eval echo configure:20353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20353 rm -rf conftest*
20354 eval "ac_cv_func_$ac_func=yes"
20355 else
20356 echo "configure: failed program was:" >&5
20357 cat conftest.$ac_ext >&5
20358 rm -rf conftest*
20359 eval "ac_cv_func_$ac_func=no"
20361 rm -f conftest*
20364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20365 echo "$ac_t""yes" 1>&6
20366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20367 cat >> confdefs.h <<EOF
20368 #define $ac_tr_func 1
20371 else
20372 echo "$ac_t""no" 1>&6
20374 done
20380 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20381 echo "configure:20382: checking for _long double trig functions" >&5
20382 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20383 echo $ac_n "(cached) $ac_c" 1>&6
20384 else
20387 ac_ext=C
20388 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20389 ac_cpp='$CXXCPP $CPPFLAGS'
20390 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20391 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20392 cross_compiling=$ac_cv_prog_cxx_cross
20394 cat > conftest.$ac_ext <<EOF
20395 #line 20396 "configure"
20396 #include "confdefs.h"
20397 #include <math.h>
20398 int main() {
20399 `for x in _acosl _asinl _atanl \
20400 _cosl _sinl _tanl \
20401 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
20402 ; return 0; }
20404 if { (eval echo configure:20405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20405 rm -rf conftest*
20406 glibcpp_cv_func__long_double_trig_use=yes
20407 else
20408 echo "configure: failed program was:" >&5
20409 cat conftest.$ac_ext >&5
20410 rm -rf conftest*
20411 glibcpp_cv_func__long_double_trig_use=no
20413 rm -f conftest*
20414 ac_ext=c
20415 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20416 ac_cpp='$CPP $CPPFLAGS'
20417 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20418 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20419 cross_compiling=$ac_cv_prog_cc_cross
20423 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20424 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20425 for ac_func in _acosl _asinl _atanl \
20426 _cosl _sinl _tanl \
20427 _coshl _sinhl _tanhl
20429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20430 echo "configure:20431: checking for $ac_func" >&5
20431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20432 echo $ac_n "(cached) $ac_c" 1>&6
20433 else
20434 cat > conftest.$ac_ext <<EOF
20435 #line 20436 "configure"
20436 #include "confdefs.h"
20437 /* System header to define __stub macros and hopefully few prototypes,
20438 which can conflict with char $ac_func(); below. */
20439 #include <assert.h>
20440 /* Override any gcc2 internal prototype to avoid an error. */
20441 /* We use char because int might match the return type of a gcc2
20442 builtin and then its argument prototype would still apply. */
20443 char $ac_func();
20445 int main() {
20447 /* The GNU C library defines this for functions which it implements
20448 to always fail with ENOSYS. Some functions are actually named
20449 something starting with __ and the normal name is an alias. */
20450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20451 choke me
20452 #else
20453 $ac_func();
20454 #endif
20456 ; return 0; }
20458 if { (eval echo configure:20459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20459 rm -rf conftest*
20460 eval "ac_cv_func_$ac_func=yes"
20461 else
20462 echo "configure: failed program was:" >&5
20463 cat conftest.$ac_ext >&5
20464 rm -rf conftest*
20465 eval "ac_cv_func_$ac_func=no"
20467 rm -f conftest*
20470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20471 echo "$ac_t""yes" 1>&6
20472 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20473 cat >> confdefs.h <<EOF
20474 #define $ac_tr_func 1
20477 else
20478 echo "$ac_t""no" 1>&6
20480 done
20485 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20486 echo "configure:20487: checking for _long double round functions" >&5
20487 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20488 echo $ac_n "(cached) $ac_c" 1>&6
20489 else
20492 ac_ext=C
20493 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20494 ac_cpp='$CXXCPP $CPPFLAGS'
20495 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20496 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20497 cross_compiling=$ac_cv_prog_cxx_cross
20499 cat > conftest.$ac_ext <<EOF
20500 #line 20501 "configure"
20501 #include "confdefs.h"
20502 #include <math.h>
20503 int main() {
20504 `for x in _ceill _floorl; do echo "$x (0);"; done`
20505 ; return 0; }
20507 if { (eval echo configure:20508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20508 rm -rf conftest*
20509 glibcpp_cv_func__long_double_round_use=yes
20510 else
20511 echo "configure: failed program was:" >&5
20512 cat conftest.$ac_ext >&5
20513 rm -rf conftest*
20514 glibcpp_cv_func__long_double_round_use=no
20516 rm -f conftest*
20517 ac_ext=c
20518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20519 ac_cpp='$CPP $CPPFLAGS'
20520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20522 cross_compiling=$ac_cv_prog_cc_cross
20526 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20527 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20528 for ac_func in _ceill _floorl
20530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20531 echo "configure:20532: checking for $ac_func" >&5
20532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20533 echo $ac_n "(cached) $ac_c" 1>&6
20534 else
20535 cat > conftest.$ac_ext <<EOF
20536 #line 20537 "configure"
20537 #include "confdefs.h"
20538 /* System header to define __stub macros and hopefully few prototypes,
20539 which can conflict with char $ac_func(); below. */
20540 #include <assert.h>
20541 /* Override any gcc2 internal prototype to avoid an error. */
20542 /* We use char because int might match the return type of a gcc2
20543 builtin and then its argument prototype would still apply. */
20544 char $ac_func();
20546 int main() {
20548 /* The GNU C library defines this for functions which it implements
20549 to always fail with ENOSYS. Some functions are actually named
20550 something starting with __ and the normal name is an alias. */
20551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20552 choke me
20553 #else
20554 $ac_func();
20555 #endif
20557 ; return 0; }
20559 if { (eval echo configure:20560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20560 rm -rf conftest*
20561 eval "ac_cv_func_$ac_func=yes"
20562 else
20563 echo "configure: failed program was:" >&5
20564 cat conftest.$ac_ext >&5
20565 rm -rf conftest*
20566 eval "ac_cv_func_$ac_func=no"
20568 rm -f conftest*
20571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20572 echo "$ac_t""yes" 1>&6
20573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20574 cat >> confdefs.h <<EOF
20575 #define $ac_tr_func 1
20578 else
20579 echo "$ac_t""no" 1>&6
20581 done
20586 LIBS="$ac_save_LIBS"
20587 CXXFLAGS="$ac_save_CXXFLAGS"
20591 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
20592 echo "configure:20593: checking for __builtin_abs declaration" >&5
20593 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
20594 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
20595 echo $ac_n "(cached) $ac_c" 1>&6
20596 else
20599 ac_ext=C
20600 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20601 ac_cpp='$CXXCPP $CPPFLAGS'
20602 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20603 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20604 cross_compiling=$ac_cv_prog_cxx_cross
20606 cat > conftest.$ac_ext <<EOF
20607 #line 20608 "configure"
20608 #include "confdefs.h"
20609 #include <math.h>
20610 int main() {
20611 __builtin_abs(0);
20612 ; return 0; }
20614 if { (eval echo configure:20615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20615 rm -rf conftest*
20616 glibcpp_cv_func___builtin_abs_use=yes
20617 else
20618 echo "configure: failed program was:" >&5
20619 cat conftest.$ac_ext >&5
20620 rm -rf conftest*
20621 glibcpp_cv_func___builtin_abs_use=no
20623 rm -f conftest*
20624 ac_ext=c
20625 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20626 ac_cpp='$CPP $CPPFLAGS'
20627 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20628 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20629 cross_compiling=$ac_cv_prog_cc_cross
20635 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
20636 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
20637 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
20638 echo "configure:20639: checking for __builtin_abs linkage" >&5
20639 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
20640 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
20641 echo $ac_n "(cached) $ac_c" 1>&6
20642 else
20644 cat > conftest.$ac_ext <<EOF
20645 #line 20646 "configure"
20646 #include "confdefs.h"
20647 #include <math.h>
20648 int main() {
20649 __builtin_abs(0);
20650 ; return 0; }
20652 if { (eval echo configure:20653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20653 rm -rf conftest*
20654 glibcpp_cv_func___builtin_abs_link=yes
20655 else
20656 echo "configure: failed program was:" >&5
20657 cat conftest.$ac_ext >&5
20658 rm -rf conftest*
20659 glibcpp_cv_func___builtin_abs_link=no
20661 rm -f conftest*
20666 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
20667 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
20668 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20669 cat >> confdefs.h <<EOF
20670 #define ${ac_tr_func} 1
20677 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
20678 echo "configure:20679: checking for __builtin_fabsf declaration" >&5
20679 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
20680 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
20681 echo $ac_n "(cached) $ac_c" 1>&6
20682 else
20685 ac_ext=C
20686 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20687 ac_cpp='$CXXCPP $CPPFLAGS'
20688 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20689 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20690 cross_compiling=$ac_cv_prog_cxx_cross
20692 cat > conftest.$ac_ext <<EOF
20693 #line 20694 "configure"
20694 #include "confdefs.h"
20695 #include <math.h>
20696 int main() {
20697 __builtin_fabsf(0);
20698 ; return 0; }
20700 if { (eval echo configure:20701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20701 rm -rf conftest*
20702 glibcpp_cv_func___builtin_fabsf_use=yes
20703 else
20704 echo "configure: failed program was:" >&5
20705 cat conftest.$ac_ext >&5
20706 rm -rf conftest*
20707 glibcpp_cv_func___builtin_fabsf_use=no
20709 rm -f conftest*
20710 ac_ext=c
20711 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20712 ac_cpp='$CPP $CPPFLAGS'
20713 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20714 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20715 cross_compiling=$ac_cv_prog_cc_cross
20721 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
20722 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
20723 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
20724 echo "configure:20725: checking for __builtin_fabsf linkage" >&5
20725 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
20726 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
20727 echo $ac_n "(cached) $ac_c" 1>&6
20728 else
20730 cat > conftest.$ac_ext <<EOF
20731 #line 20732 "configure"
20732 #include "confdefs.h"
20733 #include <math.h>
20734 int main() {
20735 __builtin_fabsf(0);
20736 ; return 0; }
20738 if { (eval echo configure:20739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20739 rm -rf conftest*
20740 glibcpp_cv_func___builtin_fabsf_link=yes
20741 else
20742 echo "configure: failed program was:" >&5
20743 cat conftest.$ac_ext >&5
20744 rm -rf conftest*
20745 glibcpp_cv_func___builtin_fabsf_link=no
20747 rm -f conftest*
20752 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
20753 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
20754 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20755 cat >> confdefs.h <<EOF
20756 #define ${ac_tr_func} 1
20763 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
20764 echo "configure:20765: checking for __builtin_fabs declaration" >&5
20765 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
20766 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
20767 echo $ac_n "(cached) $ac_c" 1>&6
20768 else
20771 ac_ext=C
20772 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20773 ac_cpp='$CXXCPP $CPPFLAGS'
20774 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20775 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20776 cross_compiling=$ac_cv_prog_cxx_cross
20778 cat > conftest.$ac_ext <<EOF
20779 #line 20780 "configure"
20780 #include "confdefs.h"
20781 #include <math.h>
20782 int main() {
20783 __builtin_fabs(0);
20784 ; return 0; }
20786 if { (eval echo configure:20787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20787 rm -rf conftest*
20788 glibcpp_cv_func___builtin_fabs_use=yes
20789 else
20790 echo "configure: failed program was:" >&5
20791 cat conftest.$ac_ext >&5
20792 rm -rf conftest*
20793 glibcpp_cv_func___builtin_fabs_use=no
20795 rm -f conftest*
20796 ac_ext=c
20797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20798 ac_cpp='$CPP $CPPFLAGS'
20799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20801 cross_compiling=$ac_cv_prog_cc_cross
20807 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
20808 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
20809 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
20810 echo "configure:20811: checking for __builtin_fabs linkage" >&5
20811 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
20812 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
20813 echo $ac_n "(cached) $ac_c" 1>&6
20814 else
20816 cat > conftest.$ac_ext <<EOF
20817 #line 20818 "configure"
20818 #include "confdefs.h"
20819 #include <math.h>
20820 int main() {
20821 __builtin_fabs(0);
20822 ; return 0; }
20824 if { (eval echo configure:20825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20825 rm -rf conftest*
20826 glibcpp_cv_func___builtin_fabs_link=yes
20827 else
20828 echo "configure: failed program was:" >&5
20829 cat conftest.$ac_ext >&5
20830 rm -rf conftest*
20831 glibcpp_cv_func___builtin_fabs_link=no
20833 rm -f conftest*
20838 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
20839 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
20840 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20841 cat >> confdefs.h <<EOF
20842 #define ${ac_tr_func} 1
20849 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
20850 echo "configure:20851: checking for __builtin_fabsl declaration" >&5
20851 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
20852 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
20853 echo $ac_n "(cached) $ac_c" 1>&6
20854 else
20857 ac_ext=C
20858 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20859 ac_cpp='$CXXCPP $CPPFLAGS'
20860 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20861 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20862 cross_compiling=$ac_cv_prog_cxx_cross
20864 cat > conftest.$ac_ext <<EOF
20865 #line 20866 "configure"
20866 #include "confdefs.h"
20867 #include <math.h>
20868 int main() {
20869 __builtin_fabsl(0);
20870 ; return 0; }
20872 if { (eval echo configure:20873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20873 rm -rf conftest*
20874 glibcpp_cv_func___builtin_fabsl_use=yes
20875 else
20876 echo "configure: failed program was:" >&5
20877 cat conftest.$ac_ext >&5
20878 rm -rf conftest*
20879 glibcpp_cv_func___builtin_fabsl_use=no
20881 rm -f conftest*
20882 ac_ext=c
20883 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20884 ac_cpp='$CPP $CPPFLAGS'
20885 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20886 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20887 cross_compiling=$ac_cv_prog_cc_cross
20893 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
20894 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
20895 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
20896 echo "configure:20897: checking for __builtin_fabsl linkage" >&5
20897 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
20898 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
20899 echo $ac_n "(cached) $ac_c" 1>&6
20900 else
20902 cat > conftest.$ac_ext <<EOF
20903 #line 20904 "configure"
20904 #include "confdefs.h"
20905 #include <math.h>
20906 int main() {
20907 __builtin_fabsl(0);
20908 ; return 0; }
20910 if { (eval echo configure:20911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20911 rm -rf conftest*
20912 glibcpp_cv_func___builtin_fabsl_link=yes
20913 else
20914 echo "configure: failed program was:" >&5
20915 cat conftest.$ac_ext >&5
20916 rm -rf conftest*
20917 glibcpp_cv_func___builtin_fabsl_link=no
20919 rm -f conftest*
20924 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
20925 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
20926 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20927 cat >> confdefs.h <<EOF
20928 #define ${ac_tr_func} 1
20935 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
20936 echo "configure:20937: checking for __builtin_labs declaration" >&5
20937 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
20938 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
20939 echo $ac_n "(cached) $ac_c" 1>&6
20940 else
20943 ac_ext=C
20944 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20945 ac_cpp='$CXXCPP $CPPFLAGS'
20946 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20947 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20948 cross_compiling=$ac_cv_prog_cxx_cross
20950 cat > conftest.$ac_ext <<EOF
20951 #line 20952 "configure"
20952 #include "confdefs.h"
20953 #include <math.h>
20954 int main() {
20955 __builtin_labs(0);
20956 ; return 0; }
20958 if { (eval echo configure:20959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20959 rm -rf conftest*
20960 glibcpp_cv_func___builtin_labs_use=yes
20961 else
20962 echo "configure: failed program was:" >&5
20963 cat conftest.$ac_ext >&5
20964 rm -rf conftest*
20965 glibcpp_cv_func___builtin_labs_use=no
20967 rm -f conftest*
20968 ac_ext=c
20969 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20970 ac_cpp='$CPP $CPPFLAGS'
20971 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20972 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20973 cross_compiling=$ac_cv_prog_cc_cross
20979 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
20980 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
20981 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
20982 echo "configure:20983: checking for __builtin_labs linkage" >&5
20983 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
20984 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
20985 echo $ac_n "(cached) $ac_c" 1>&6
20986 else
20988 cat > conftest.$ac_ext <<EOF
20989 #line 20990 "configure"
20990 #include "confdefs.h"
20991 #include <math.h>
20992 int main() {
20993 __builtin_labs(0);
20994 ; return 0; }
20996 if { (eval echo configure:20997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20997 rm -rf conftest*
20998 glibcpp_cv_func___builtin_labs_link=yes
20999 else
21000 echo "configure: failed program was:" >&5
21001 cat conftest.$ac_ext >&5
21002 rm -rf conftest*
21003 glibcpp_cv_func___builtin_labs_link=no
21005 rm -f conftest*
21010 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
21011 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
21012 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21013 cat >> confdefs.h <<EOF
21014 #define ${ac_tr_func} 1
21022 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
21023 echo "configure:21024: checking for __builtin_sqrtf declaration" >&5
21024 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
21025 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
21026 echo $ac_n "(cached) $ac_c" 1>&6
21027 else
21030 ac_ext=C
21031 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21032 ac_cpp='$CXXCPP $CPPFLAGS'
21033 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21034 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21035 cross_compiling=$ac_cv_prog_cxx_cross
21037 cat > conftest.$ac_ext <<EOF
21038 #line 21039 "configure"
21039 #include "confdefs.h"
21040 #include <math.h>
21041 int main() {
21042 __builtin_sqrtf(0);
21043 ; return 0; }
21045 if { (eval echo configure:21046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21046 rm -rf conftest*
21047 glibcpp_cv_func___builtin_sqrtf_use=yes
21048 else
21049 echo "configure: failed program was:" >&5
21050 cat conftest.$ac_ext >&5
21051 rm -rf conftest*
21052 glibcpp_cv_func___builtin_sqrtf_use=no
21054 rm -f conftest*
21055 ac_ext=c
21056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21057 ac_cpp='$CPP $CPPFLAGS'
21058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21060 cross_compiling=$ac_cv_prog_cc_cross
21066 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
21067 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
21068 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
21069 echo "configure:21070: checking for __builtin_sqrtf linkage" >&5
21070 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
21071 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
21072 echo $ac_n "(cached) $ac_c" 1>&6
21073 else
21075 cat > conftest.$ac_ext <<EOF
21076 #line 21077 "configure"
21077 #include "confdefs.h"
21078 #include <math.h>
21079 int main() {
21080 __builtin_sqrtf(0);
21081 ; return 0; }
21083 if { (eval echo configure:21084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21084 rm -rf conftest*
21085 glibcpp_cv_func___builtin_sqrtf_link=yes
21086 else
21087 echo "configure: failed program was:" >&5
21088 cat conftest.$ac_ext >&5
21089 rm -rf conftest*
21090 glibcpp_cv_func___builtin_sqrtf_link=no
21092 rm -f conftest*
21097 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
21098 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
21099 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21100 cat >> confdefs.h <<EOF
21101 #define ${ac_tr_func} 1
21108 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
21109 echo "configure:21110: checking for __builtin_sqrt declaration" >&5
21110 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
21111 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
21112 echo $ac_n "(cached) $ac_c" 1>&6
21113 else
21116 ac_ext=C
21117 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21118 ac_cpp='$CXXCPP $CPPFLAGS'
21119 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21120 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21121 cross_compiling=$ac_cv_prog_cxx_cross
21123 cat > conftest.$ac_ext <<EOF
21124 #line 21125 "configure"
21125 #include "confdefs.h"
21126 #include <math.h>
21127 int main() {
21128 __builtin_sqrt(0);
21129 ; return 0; }
21131 if { (eval echo configure:21132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21132 rm -rf conftest*
21133 glibcpp_cv_func___builtin_sqrt_use=yes
21134 else
21135 echo "configure: failed program was:" >&5
21136 cat conftest.$ac_ext >&5
21137 rm -rf conftest*
21138 glibcpp_cv_func___builtin_sqrt_use=no
21140 rm -f conftest*
21141 ac_ext=c
21142 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21143 ac_cpp='$CPP $CPPFLAGS'
21144 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21145 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21146 cross_compiling=$ac_cv_prog_cc_cross
21152 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
21153 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
21154 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
21155 echo "configure:21156: checking for __builtin_sqrt linkage" >&5
21156 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
21157 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
21158 echo $ac_n "(cached) $ac_c" 1>&6
21159 else
21161 cat > conftest.$ac_ext <<EOF
21162 #line 21163 "configure"
21163 #include "confdefs.h"
21164 #include <math.h>
21165 int main() {
21166 __builtin_sqrt(0);
21167 ; return 0; }
21169 if { (eval echo configure:21170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21170 rm -rf conftest*
21171 glibcpp_cv_func___builtin_sqrt_link=yes
21172 else
21173 echo "configure: failed program was:" >&5
21174 cat conftest.$ac_ext >&5
21175 rm -rf conftest*
21176 glibcpp_cv_func___builtin_sqrt_link=no
21178 rm -f conftest*
21183 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
21184 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
21185 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21186 cat >> confdefs.h <<EOF
21187 #define ${ac_tr_func} 1
21194 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
21195 echo "configure:21196: checking for __builtin_sqrtl declaration" >&5
21196 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
21197 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
21198 echo $ac_n "(cached) $ac_c" 1>&6
21199 else
21202 ac_ext=C
21203 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21204 ac_cpp='$CXXCPP $CPPFLAGS'
21205 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21206 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21207 cross_compiling=$ac_cv_prog_cxx_cross
21209 cat > conftest.$ac_ext <<EOF
21210 #line 21211 "configure"
21211 #include "confdefs.h"
21212 #include <math.h>
21213 int main() {
21214 __builtin_sqrtl(0);
21215 ; return 0; }
21217 if { (eval echo configure:21218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21218 rm -rf conftest*
21219 glibcpp_cv_func___builtin_sqrtl_use=yes
21220 else
21221 echo "configure: failed program was:" >&5
21222 cat conftest.$ac_ext >&5
21223 rm -rf conftest*
21224 glibcpp_cv_func___builtin_sqrtl_use=no
21226 rm -f conftest*
21227 ac_ext=c
21228 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21229 ac_cpp='$CPP $CPPFLAGS'
21230 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21231 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21232 cross_compiling=$ac_cv_prog_cc_cross
21238 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
21239 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
21240 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
21241 echo "configure:21242: checking for __builtin_sqrtl linkage" >&5
21242 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
21243 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
21244 echo $ac_n "(cached) $ac_c" 1>&6
21245 else
21247 cat > conftest.$ac_ext <<EOF
21248 #line 21249 "configure"
21249 #include "confdefs.h"
21250 #include <math.h>
21251 int main() {
21252 __builtin_sqrtl(0);
21253 ; return 0; }
21255 if { (eval echo configure:21256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21256 rm -rf conftest*
21257 glibcpp_cv_func___builtin_sqrtl_link=yes
21258 else
21259 echo "configure: failed program was:" >&5
21260 cat conftest.$ac_ext >&5
21261 rm -rf conftest*
21262 glibcpp_cv_func___builtin_sqrtl_link=no
21264 rm -f conftest*
21269 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
21270 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
21271 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21272 cat >> confdefs.h <<EOF
21273 #define ${ac_tr_func} 1
21281 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
21282 echo "configure:21283: checking for __builtin_sinf declaration" >&5
21283 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
21284 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
21285 echo $ac_n "(cached) $ac_c" 1>&6
21286 else
21289 ac_ext=C
21290 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21291 ac_cpp='$CXXCPP $CPPFLAGS'
21292 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21293 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21294 cross_compiling=$ac_cv_prog_cxx_cross
21296 cat > conftest.$ac_ext <<EOF
21297 #line 21298 "configure"
21298 #include "confdefs.h"
21299 #include <math.h>
21300 int main() {
21301 __builtin_sinf(0);
21302 ; return 0; }
21304 if { (eval echo configure:21305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21305 rm -rf conftest*
21306 glibcpp_cv_func___builtin_sinf_use=yes
21307 else
21308 echo "configure: failed program was:" >&5
21309 cat conftest.$ac_ext >&5
21310 rm -rf conftest*
21311 glibcpp_cv_func___builtin_sinf_use=no
21313 rm -f conftest*
21314 ac_ext=c
21315 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21316 ac_cpp='$CPP $CPPFLAGS'
21317 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21318 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21319 cross_compiling=$ac_cv_prog_cc_cross
21325 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
21326 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
21327 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
21328 echo "configure:21329: checking for __builtin_sinf linkage" >&5
21329 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
21330 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
21331 echo $ac_n "(cached) $ac_c" 1>&6
21332 else
21334 cat > conftest.$ac_ext <<EOF
21335 #line 21336 "configure"
21336 #include "confdefs.h"
21337 #include <math.h>
21338 int main() {
21339 __builtin_sinf(0);
21340 ; return 0; }
21342 if { (eval echo configure:21343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21343 rm -rf conftest*
21344 glibcpp_cv_func___builtin_sinf_link=yes
21345 else
21346 echo "configure: failed program was:" >&5
21347 cat conftest.$ac_ext >&5
21348 rm -rf conftest*
21349 glibcpp_cv_func___builtin_sinf_link=no
21351 rm -f conftest*
21356 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
21357 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
21358 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21359 cat >> confdefs.h <<EOF
21360 #define ${ac_tr_func} 1
21367 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
21368 echo "configure:21369: checking for __builtin_sin declaration" >&5
21369 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
21370 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
21371 echo $ac_n "(cached) $ac_c" 1>&6
21372 else
21375 ac_ext=C
21376 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21377 ac_cpp='$CXXCPP $CPPFLAGS'
21378 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21379 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21380 cross_compiling=$ac_cv_prog_cxx_cross
21382 cat > conftest.$ac_ext <<EOF
21383 #line 21384 "configure"
21384 #include "confdefs.h"
21385 #include <math.h>
21386 int main() {
21387 __builtin_sin(0);
21388 ; return 0; }
21390 if { (eval echo configure:21391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21391 rm -rf conftest*
21392 glibcpp_cv_func___builtin_sin_use=yes
21393 else
21394 echo "configure: failed program was:" >&5
21395 cat conftest.$ac_ext >&5
21396 rm -rf conftest*
21397 glibcpp_cv_func___builtin_sin_use=no
21399 rm -f conftest*
21400 ac_ext=c
21401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21402 ac_cpp='$CPP $CPPFLAGS'
21403 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21404 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21405 cross_compiling=$ac_cv_prog_cc_cross
21411 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
21412 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
21413 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
21414 echo "configure:21415: checking for __builtin_sin linkage" >&5
21415 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
21416 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
21417 echo $ac_n "(cached) $ac_c" 1>&6
21418 else
21420 cat > conftest.$ac_ext <<EOF
21421 #line 21422 "configure"
21422 #include "confdefs.h"
21423 #include <math.h>
21424 int main() {
21425 __builtin_sin(0);
21426 ; return 0; }
21428 if { (eval echo configure:21429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21429 rm -rf conftest*
21430 glibcpp_cv_func___builtin_sin_link=yes
21431 else
21432 echo "configure: failed program was:" >&5
21433 cat conftest.$ac_ext >&5
21434 rm -rf conftest*
21435 glibcpp_cv_func___builtin_sin_link=no
21437 rm -f conftest*
21442 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
21443 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
21444 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21445 cat >> confdefs.h <<EOF
21446 #define ${ac_tr_func} 1
21453 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
21454 echo "configure:21455: checking for __builtin_sinl declaration" >&5
21455 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
21456 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
21457 echo $ac_n "(cached) $ac_c" 1>&6
21458 else
21461 ac_ext=C
21462 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21463 ac_cpp='$CXXCPP $CPPFLAGS'
21464 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21465 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21466 cross_compiling=$ac_cv_prog_cxx_cross
21468 cat > conftest.$ac_ext <<EOF
21469 #line 21470 "configure"
21470 #include "confdefs.h"
21471 #include <math.h>
21472 int main() {
21473 __builtin_sinl(0);
21474 ; return 0; }
21476 if { (eval echo configure:21477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21477 rm -rf conftest*
21478 glibcpp_cv_func___builtin_sinl_use=yes
21479 else
21480 echo "configure: failed program was:" >&5
21481 cat conftest.$ac_ext >&5
21482 rm -rf conftest*
21483 glibcpp_cv_func___builtin_sinl_use=no
21485 rm -f conftest*
21486 ac_ext=c
21487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21488 ac_cpp='$CPP $CPPFLAGS'
21489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21491 cross_compiling=$ac_cv_prog_cc_cross
21497 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
21498 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
21499 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
21500 echo "configure:21501: checking for __builtin_sinl linkage" >&5
21501 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
21502 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
21503 echo $ac_n "(cached) $ac_c" 1>&6
21504 else
21506 cat > conftest.$ac_ext <<EOF
21507 #line 21508 "configure"
21508 #include "confdefs.h"
21509 #include <math.h>
21510 int main() {
21511 __builtin_sinl(0);
21512 ; return 0; }
21514 if { (eval echo configure:21515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21515 rm -rf conftest*
21516 glibcpp_cv_func___builtin_sinl_link=yes
21517 else
21518 echo "configure: failed program was:" >&5
21519 cat conftest.$ac_ext >&5
21520 rm -rf conftest*
21521 glibcpp_cv_func___builtin_sinl_link=no
21523 rm -f conftest*
21528 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
21529 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
21530 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21531 cat >> confdefs.h <<EOF
21532 #define ${ac_tr_func} 1
21540 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
21541 echo "configure:21542: checking for __builtin_cosf declaration" >&5
21542 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
21543 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
21544 echo $ac_n "(cached) $ac_c" 1>&6
21545 else
21548 ac_ext=C
21549 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21550 ac_cpp='$CXXCPP $CPPFLAGS'
21551 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21552 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21553 cross_compiling=$ac_cv_prog_cxx_cross
21555 cat > conftest.$ac_ext <<EOF
21556 #line 21557 "configure"
21557 #include "confdefs.h"
21558 #include <math.h>
21559 int main() {
21560 __builtin_cosf(0);
21561 ; return 0; }
21563 if { (eval echo configure:21564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21564 rm -rf conftest*
21565 glibcpp_cv_func___builtin_cosf_use=yes
21566 else
21567 echo "configure: failed program was:" >&5
21568 cat conftest.$ac_ext >&5
21569 rm -rf conftest*
21570 glibcpp_cv_func___builtin_cosf_use=no
21572 rm -f conftest*
21573 ac_ext=c
21574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21575 ac_cpp='$CPP $CPPFLAGS'
21576 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21577 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21578 cross_compiling=$ac_cv_prog_cc_cross
21584 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
21585 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
21586 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
21587 echo "configure:21588: checking for __builtin_cosf linkage" >&5
21588 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
21589 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
21590 echo $ac_n "(cached) $ac_c" 1>&6
21591 else
21593 cat > conftest.$ac_ext <<EOF
21594 #line 21595 "configure"
21595 #include "confdefs.h"
21596 #include <math.h>
21597 int main() {
21598 __builtin_cosf(0);
21599 ; return 0; }
21601 if { (eval echo configure:21602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21602 rm -rf conftest*
21603 glibcpp_cv_func___builtin_cosf_link=yes
21604 else
21605 echo "configure: failed program was:" >&5
21606 cat conftest.$ac_ext >&5
21607 rm -rf conftest*
21608 glibcpp_cv_func___builtin_cosf_link=no
21610 rm -f conftest*
21615 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
21616 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
21617 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21618 cat >> confdefs.h <<EOF
21619 #define ${ac_tr_func} 1
21626 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
21627 echo "configure:21628: checking for __builtin_cos declaration" >&5
21628 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
21629 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
21630 echo $ac_n "(cached) $ac_c" 1>&6
21631 else
21634 ac_ext=C
21635 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21636 ac_cpp='$CXXCPP $CPPFLAGS'
21637 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21638 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21639 cross_compiling=$ac_cv_prog_cxx_cross
21641 cat > conftest.$ac_ext <<EOF
21642 #line 21643 "configure"
21643 #include "confdefs.h"
21644 #include <math.h>
21645 int main() {
21646 __builtin_cos(0);
21647 ; return 0; }
21649 if { (eval echo configure:21650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21650 rm -rf conftest*
21651 glibcpp_cv_func___builtin_cos_use=yes
21652 else
21653 echo "configure: failed program was:" >&5
21654 cat conftest.$ac_ext >&5
21655 rm -rf conftest*
21656 glibcpp_cv_func___builtin_cos_use=no
21658 rm -f conftest*
21659 ac_ext=c
21660 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21661 ac_cpp='$CPP $CPPFLAGS'
21662 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21663 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21664 cross_compiling=$ac_cv_prog_cc_cross
21670 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
21671 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
21672 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
21673 echo "configure:21674: checking for __builtin_cos linkage" >&5
21674 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
21675 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
21676 echo $ac_n "(cached) $ac_c" 1>&6
21677 else
21679 cat > conftest.$ac_ext <<EOF
21680 #line 21681 "configure"
21681 #include "confdefs.h"
21682 #include <math.h>
21683 int main() {
21684 __builtin_cos(0);
21685 ; return 0; }
21687 if { (eval echo configure:21688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21688 rm -rf conftest*
21689 glibcpp_cv_func___builtin_cos_link=yes
21690 else
21691 echo "configure: failed program was:" >&5
21692 cat conftest.$ac_ext >&5
21693 rm -rf conftest*
21694 glibcpp_cv_func___builtin_cos_link=no
21696 rm -f conftest*
21701 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
21702 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
21703 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21704 cat >> confdefs.h <<EOF
21705 #define ${ac_tr_func} 1
21712 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
21713 echo "configure:21714: checking for __builtin_cosl declaration" >&5
21714 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
21715 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
21716 echo $ac_n "(cached) $ac_c" 1>&6
21717 else
21720 ac_ext=C
21721 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21722 ac_cpp='$CXXCPP $CPPFLAGS'
21723 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21724 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21725 cross_compiling=$ac_cv_prog_cxx_cross
21727 cat > conftest.$ac_ext <<EOF
21728 #line 21729 "configure"
21729 #include "confdefs.h"
21730 #include <math.h>
21731 int main() {
21732 __builtin_cosl(0);
21733 ; return 0; }
21735 if { (eval echo configure:21736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21736 rm -rf conftest*
21737 glibcpp_cv_func___builtin_cosl_use=yes
21738 else
21739 echo "configure: failed program was:" >&5
21740 cat conftest.$ac_ext >&5
21741 rm -rf conftest*
21742 glibcpp_cv_func___builtin_cosl_use=no
21744 rm -f conftest*
21745 ac_ext=c
21746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21747 ac_cpp='$CPP $CPPFLAGS'
21748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21750 cross_compiling=$ac_cv_prog_cc_cross
21756 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
21757 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
21758 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
21759 echo "configure:21760: checking for __builtin_cosl linkage" >&5
21760 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
21761 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
21762 echo $ac_n "(cached) $ac_c" 1>&6
21763 else
21765 cat > conftest.$ac_ext <<EOF
21766 #line 21767 "configure"
21767 #include "confdefs.h"
21768 #include <math.h>
21769 int main() {
21770 __builtin_cosl(0);
21771 ; return 0; }
21773 if { (eval echo configure:21774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21774 rm -rf conftest*
21775 glibcpp_cv_func___builtin_cosl_link=yes
21776 else
21777 echo "configure: failed program was:" >&5
21778 cat conftest.$ac_ext >&5
21779 rm -rf conftest*
21780 glibcpp_cv_func___builtin_cosl_link=no
21782 rm -f conftest*
21787 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
21788 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
21789 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21790 cat >> confdefs.h <<EOF
21791 #define ${ac_tr_func} 1
21798 dummyvar=no
21799 if test x$dummyvar = x"yes"; then
21800 cat >> confdefs.h <<\EOF
21801 #define HAVE___BUILTIN_ABS 1
21804 cat >> confdefs.h <<\EOF
21805 #define HAVE___BUILTIN_LABS 1
21808 cat >> confdefs.h <<\EOF
21809 #define HAVE___BUILTIN_COS 1
21812 cat >> confdefs.h <<\EOF
21813 #define HAVE___BUILTIN_COSF 1
21816 cat >> confdefs.h <<\EOF
21817 #define HAVE___BUILTIN_COSL 1
21820 cat >> confdefs.h <<\EOF
21821 #define HAVE___BUILTIN_FABS 1
21824 cat >> confdefs.h <<\EOF
21825 #define HAVE___BUILTIN_FABSF 1
21828 cat >> confdefs.h <<\EOF
21829 #define HAVE___BUILTIN_FABSL 1
21832 cat >> confdefs.h <<\EOF
21833 #define HAVE___BUILTIN_SIN 1
21836 cat >> confdefs.h <<\EOF
21837 #define HAVE___BUILTIN_SINF 1
21840 cat >> confdefs.h <<\EOF
21841 #define HAVE___BUILTIN_SINL 1
21844 cat >> confdefs.h <<\EOF
21845 #define HAVE___BUILTIN_SQRT 1
21848 cat >> confdefs.h <<\EOF
21849 #define HAVE___BUILTIN_SQRTF 1
21852 cat >> confdefs.h <<\EOF
21853 #define HAVE___BUILTIN_SQRTL 1
21859 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21860 echo "configure:21861: checking for main in -lm" >&5
21861 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21863 echo $ac_n "(cached) $ac_c" 1>&6
21864 else
21865 ac_save_LIBS="$LIBS"
21866 LIBS="-lm $LIBS"
21867 cat > conftest.$ac_ext <<EOF
21868 #line 21869 "configure"
21869 #include "confdefs.h"
21871 int main() {
21872 main()
21873 ; return 0; }
21875 if { (eval echo configure:21876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21876 rm -rf conftest*
21877 eval "ac_cv_lib_$ac_lib_var=yes"
21878 else
21879 echo "configure: failed program was:" >&5
21880 cat conftest.$ac_ext >&5
21881 rm -rf conftest*
21882 eval "ac_cv_lib_$ac_lib_var=no"
21884 rm -f conftest*
21885 LIBS="$ac_save_LIBS"
21888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21889 echo "$ac_t""yes" 1>&6
21890 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21891 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21892 cat >> confdefs.h <<EOF
21893 #define $ac_tr_lib 1
21896 LIBS="-lm $LIBS"
21898 else
21899 echo "$ac_t""no" 1>&6
21902 for ac_func in nan copysignf
21904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21905 echo "configure:21906: checking for $ac_func" >&5
21906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21907 echo $ac_n "(cached) $ac_c" 1>&6
21908 else
21909 cat > conftest.$ac_ext <<EOF
21910 #line 21911 "configure"
21911 #include "confdefs.h"
21912 /* System header to define __stub macros and hopefully few prototypes,
21913 which can conflict with char $ac_func(); below. */
21914 #include <assert.h>
21915 /* Override any gcc2 internal prototype to avoid an error. */
21916 /* We use char because int might match the return type of a gcc2
21917 builtin and then its argument prototype would still apply. */
21918 char $ac_func();
21920 int main() {
21922 /* The GNU C library defines this for functions which it implements
21923 to always fail with ENOSYS. Some functions are actually named
21924 something starting with __ and the normal name is an alias. */
21925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21926 choke me
21927 #else
21928 $ac_func();
21929 #endif
21931 ; return 0; }
21933 if { (eval echo configure:21934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21934 rm -rf conftest*
21935 eval "ac_cv_func_$ac_func=yes"
21936 else
21937 echo "configure: failed program was:" >&5
21938 cat conftest.$ac_ext >&5
21939 rm -rf conftest*
21940 eval "ac_cv_func_$ac_func=no"
21942 rm -f conftest*
21945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21946 echo "$ac_t""yes" 1>&6
21947 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21948 cat >> confdefs.h <<EOF
21949 #define $ac_tr_func 1
21952 else
21953 echo "$ac_t""no" 1>&6
21954 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21956 done
21959 for ac_func in __signbit
21961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21962 echo "configure:21963: checking for $ac_func" >&5
21963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21964 echo $ac_n "(cached) $ac_c" 1>&6
21965 else
21966 cat > conftest.$ac_ext <<EOF
21967 #line 21968 "configure"
21968 #include "confdefs.h"
21969 /* System header to define __stub macros and hopefully few prototypes,
21970 which can conflict with char $ac_func(); below. */
21971 #include <assert.h>
21972 /* Override any gcc2 internal prototype to avoid an error. */
21973 /* We use char because int might match the return type of a gcc2
21974 builtin and then its argument prototype would still apply. */
21975 char $ac_func();
21977 int main() {
21979 /* The GNU C library defines this for functions which it implements
21980 to always fail with ENOSYS. Some functions are actually named
21981 something starting with __ and the normal name is an alias. */
21982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21983 choke me
21984 #else
21985 $ac_func();
21986 #endif
21988 ; return 0; }
21990 if { (eval echo configure:21991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21991 rm -rf conftest*
21992 eval "ac_cv_func_$ac_func=yes"
21993 else
21994 echo "configure: failed program was:" >&5
21995 cat conftest.$ac_ext >&5
21996 rm -rf conftest*
21997 eval "ac_cv_func_$ac_func=no"
21999 rm -f conftest*
22002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22003 echo "$ac_t""yes" 1>&6
22004 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22005 cat >> confdefs.h <<EOF
22006 #define $ac_tr_func 1
22009 else
22010 echo "$ac_t""no" 1>&6
22011 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
22013 done
22015 for ac_func in __signbitf
22017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22018 echo "configure:22019: checking for $ac_func" >&5
22019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22020 echo $ac_n "(cached) $ac_c" 1>&6
22021 else
22022 cat > conftest.$ac_ext <<EOF
22023 #line 22024 "configure"
22024 #include "confdefs.h"
22025 /* System header to define __stub macros and hopefully few prototypes,
22026 which can conflict with char $ac_func(); below. */
22027 #include <assert.h>
22028 /* Override any gcc2 internal prototype to avoid an error. */
22029 /* We use char because int might match the return type of a gcc2
22030 builtin and then its argument prototype would still apply. */
22031 char $ac_func();
22033 int main() {
22035 /* The GNU C library defines this for functions which it implements
22036 to always fail with ENOSYS. Some functions are actually named
22037 something starting with __ and the normal name is an alias. */
22038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22039 choke me
22040 #else
22041 $ac_func();
22042 #endif
22044 ; return 0; }
22046 if { (eval echo configure:22047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22047 rm -rf conftest*
22048 eval "ac_cv_func_$ac_func=yes"
22049 else
22050 echo "configure: failed program was:" >&5
22051 cat conftest.$ac_ext >&5
22052 rm -rf conftest*
22053 eval "ac_cv_func_$ac_func=no"
22055 rm -f conftest*
22058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22059 echo "$ac_t""yes" 1>&6
22060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22061 cat >> confdefs.h <<EOF
22062 #define $ac_tr_func 1
22065 else
22066 echo "$ac_t""no" 1>&6
22067 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
22069 done
22072 if test x$ac_cv_func_copysignl = x"yes"; then
22073 for ac_func in __signbitl
22075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22076 echo "configure:22077: checking for $ac_func" >&5
22077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22078 echo $ac_n "(cached) $ac_c" 1>&6
22079 else
22080 cat > conftest.$ac_ext <<EOF
22081 #line 22082 "configure"
22082 #include "confdefs.h"
22083 /* System header to define __stub macros and hopefully few prototypes,
22084 which can conflict with char $ac_func(); below. */
22085 #include <assert.h>
22086 /* Override any gcc2 internal prototype to avoid an error. */
22087 /* We use char because int might match the return type of a gcc2
22088 builtin and then its argument prototype would still apply. */
22089 char $ac_func();
22091 int main() {
22093 /* The GNU C library defines this for functions which it implements
22094 to always fail with ENOSYS. Some functions are actually named
22095 something starting with __ and the normal name is an alias. */
22096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22097 choke me
22098 #else
22099 $ac_func();
22100 #endif
22102 ; return 0; }
22104 if { (eval echo configure:22105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22105 rm -rf conftest*
22106 eval "ac_cv_func_$ac_func=yes"
22107 else
22108 echo "configure: failed program was:" >&5
22109 cat conftest.$ac_ext >&5
22110 rm -rf conftest*
22111 eval "ac_cv_func_$ac_func=no"
22113 rm -f conftest*
22116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22117 echo "$ac_t""yes" 1>&6
22118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22119 cat >> confdefs.h <<EOF
22120 #define $ac_tr_func 1
22123 else
22124 echo "$ac_t""no" 1>&6
22125 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
22127 done
22131 if test -n "$LIBMATHOBJS"; then
22132 need_libmath=yes
22137 if test "$need_libmath" = yes; then
22138 GLIBCPP_BUILD_LIBMATH_TRUE=
22139 GLIBCPP_BUILD_LIBMATH_FALSE='#'
22140 else
22141 GLIBCPP_BUILD_LIBMATH_TRUE='#'
22142 GLIBCPP_BUILD_LIBMATH_FALSE=
22146 enable_wchar_t=no
22148 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
22149 echo "configure:22150: checking for mbstate_t" >&5
22150 cat > conftest.$ac_ext <<EOF
22151 #line 22152 "configure"
22152 #include "confdefs.h"
22153 #include <wchar.h>
22154 int main() {
22155 mbstate_t teststate;
22156 ; return 0; }
22158 if { (eval echo configure:22159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22159 rm -rf conftest*
22160 have_mbstate_t=yes
22161 else
22162 echo "configure: failed program was:" >&5
22163 cat conftest.$ac_ext >&5
22164 rm -rf conftest*
22165 have_mbstate_t=no
22167 rm -f conftest*
22168 echo "$ac_t""$have_mbstate_t" 1>&6
22169 if test x"$have_mbstate_t" = xyes; then
22170 cat >> confdefs.h <<\EOF
22171 #define HAVE_MBSTATE_T 1
22176 for ac_hdr in wchar.h
22178 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22179 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22180 echo "configure:22181: checking for $ac_hdr" >&5
22181 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22182 echo $ac_n "(cached) $ac_c" 1>&6
22183 else
22184 cat > conftest.$ac_ext <<EOF
22185 #line 22186 "configure"
22186 #include "confdefs.h"
22187 #include <$ac_hdr>
22189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22190 { (eval echo configure:22191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22192 if test -z "$ac_err"; then
22193 rm -rf conftest*
22194 eval "ac_cv_header_$ac_safe=yes"
22195 else
22196 echo "$ac_err" >&5
22197 echo "configure: failed program was:" >&5
22198 cat conftest.$ac_ext >&5
22199 rm -rf conftest*
22200 eval "ac_cv_header_$ac_safe=no"
22202 rm -f conftest*
22204 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22205 echo "$ac_t""yes" 1>&6
22206 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22207 cat >> confdefs.h <<EOF
22208 #define $ac_tr_hdr 1
22210 ac_has_wchar_h=yes
22211 else
22212 echo "$ac_t""no" 1>&6
22213 ac_has_wchar_h=no
22215 done
22217 for ac_hdr in wctype.h
22219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22221 echo "configure:22222: checking for $ac_hdr" >&5
22222 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 #include <$ac_hdr>
22230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22231 { (eval echo configure:22232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22233 if test -z "$ac_err"; then
22234 rm -rf conftest*
22235 eval "ac_cv_header_$ac_safe=yes"
22236 else
22237 echo "$ac_err" >&5
22238 echo "configure: failed program was:" >&5
22239 cat conftest.$ac_ext >&5
22240 rm -rf conftest*
22241 eval "ac_cv_header_$ac_safe=no"
22243 rm -f conftest*
22245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22246 echo "$ac_t""yes" 1>&6
22247 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22248 cat >> confdefs.h <<EOF
22249 #define $ac_tr_hdr 1
22251 ac_has_wctype_h=yes
22252 else
22253 echo "$ac_t""no" 1>&6
22254 ac_has_wctype_h=no
22256 done
22259 if test x"$ac_has_wchar_h" = xyes &&
22260 test x"$ac_has_wctype_h" = xyes &&
22261 test x"$enable_c_mbchar" != xno; then
22263 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22264 echo "configure:22265: checking for WCHAR_MIN and WCHAR_MAX" >&5
22265 cat > conftest.$ac_ext <<EOF
22266 #line 22267 "configure"
22267 #include "confdefs.h"
22268 #include <wchar.h>
22269 int main() {
22270 int i = WCHAR_MIN; int j = WCHAR_MAX;
22271 ; return 0; }
22273 if { (eval echo configure:22274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22274 rm -rf conftest*
22275 has_wchar_minmax=yes
22276 else
22277 echo "configure: failed program was:" >&5
22278 cat conftest.$ac_ext >&5
22279 rm -rf conftest*
22280 has_wchar_minmax=no
22282 rm -f conftest*
22283 echo "$ac_t""$has_wchar_minmax" 1>&6
22285 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22286 echo "configure:22287: checking for WEOF" >&5
22287 cat > conftest.$ac_ext <<EOF
22288 #line 22289 "configure"
22289 #include "confdefs.h"
22291 #include <wchar.h>
22292 #include <stddef.h>
22293 int main() {
22294 wint_t i = WEOF;
22295 ; return 0; }
22297 if { (eval echo configure:22298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22298 rm -rf conftest*
22299 has_weof=yes
22300 else
22301 echo "configure: failed program was:" >&5
22302 cat conftest.$ac_ext >&5
22303 rm -rf conftest*
22304 has_weof=no
22306 rm -f conftest*
22307 echo "$ac_t""$has_weof" 1>&6
22309 ac_wfuncs=yes
22310 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22313 echo "configure:22314: checking for $ac_func" >&5
22314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22315 echo $ac_n "(cached) $ac_c" 1>&6
22316 else
22317 cat > conftest.$ac_ext <<EOF
22318 #line 22319 "configure"
22319 #include "confdefs.h"
22320 /* System header to define __stub macros and hopefully few prototypes,
22321 which can conflict with char $ac_func(); below. */
22322 #include <assert.h>
22323 /* Override any gcc2 internal prototype to avoid an error. */
22324 /* We use char because int might match the return type of a gcc2
22325 builtin and then its argument prototype would still apply. */
22326 char $ac_func();
22328 int main() {
22330 /* The GNU C library defines this for functions which it implements
22331 to always fail with ENOSYS. Some functions are actually named
22332 something starting with __ and the normal name is an alias. */
22333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22334 choke me
22335 #else
22336 $ac_func();
22337 #endif
22339 ; return 0; }
22341 if { (eval echo configure:22342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22342 rm -rf conftest*
22343 eval "ac_cv_func_$ac_func=yes"
22344 else
22345 echo "configure: failed program was:" >&5
22346 cat conftest.$ac_ext >&5
22347 rm -rf conftest*
22348 eval "ac_cv_func_$ac_func=no"
22350 rm -f conftest*
22353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22354 echo "$ac_t""yes" 1>&6
22355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22356 cat >> confdefs.h <<EOF
22357 #define $ac_tr_func 1
22360 else
22361 echo "$ac_t""no" 1>&6
22363 ac_wfuncs=no
22365 done
22368 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22369 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22370 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22371 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22372 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22373 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22376 echo "configure:22377: checking for $ac_func" >&5
22377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22378 echo $ac_n "(cached) $ac_c" 1>&6
22379 else
22380 cat > conftest.$ac_ext <<EOF
22381 #line 22382 "configure"
22382 #include "confdefs.h"
22383 /* System header to define __stub macros and hopefully few prototypes,
22384 which can conflict with char $ac_func(); below. */
22385 #include <assert.h>
22386 /* Override any gcc2 internal prototype to avoid an error. */
22387 /* We use char because int might match the return type of a gcc2
22388 builtin and then its argument prototype would still apply. */
22389 char $ac_func();
22391 int main() {
22393 /* The GNU C library defines this for functions which it implements
22394 to always fail with ENOSYS. Some functions are actually named
22395 something starting with __ and the normal name is an alias. */
22396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22397 choke me
22398 #else
22399 $ac_func();
22400 #endif
22402 ; return 0; }
22404 if { (eval echo configure:22405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22405 rm -rf conftest*
22406 eval "ac_cv_func_$ac_func=yes"
22407 else
22408 echo "configure: failed program was:" >&5
22409 cat conftest.$ac_ext >&5
22410 rm -rf conftest*
22411 eval "ac_cv_func_$ac_func=no"
22413 rm -f conftest*
22416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22417 echo "$ac_t""yes" 1>&6
22418 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22419 cat >> confdefs.h <<EOF
22420 #define $ac_tr_func 1
22423 else
22424 echo "$ac_t""no" 1>&6
22426 ac_wfuncs=no
22428 done
22431 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22432 echo "configure:22433: checking for ISO C99 wchar_t support" >&5
22433 if test x"$has_weof" = xyes &&
22434 test x"$has_wchar_minmax" = xyes &&
22435 test x"$ac_wfuncs" = xyes; then
22436 ac_isoC99_wchar_t=yes
22437 else
22438 ac_isoC99_wchar_t=no
22440 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22442 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22443 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22444 echo "configure:22445: checking for iconv.h" >&5
22445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22446 echo $ac_n "(cached) $ac_c" 1>&6
22447 else
22448 cat > conftest.$ac_ext <<EOF
22449 #line 22450 "configure"
22450 #include "confdefs.h"
22451 #include <iconv.h>
22453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22454 { (eval echo configure:22455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22456 if test -z "$ac_err"; then
22457 rm -rf conftest*
22458 eval "ac_cv_header_$ac_safe=yes"
22459 else
22460 echo "$ac_err" >&5
22461 echo "configure: failed program was:" >&5
22462 cat conftest.$ac_ext >&5
22463 rm -rf conftest*
22464 eval "ac_cv_header_$ac_safe=no"
22466 rm -f conftest*
22468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22469 echo "$ac_t""yes" 1>&6
22470 ac_has_iconv_h=yes
22471 else
22472 echo "$ac_t""no" 1>&6
22473 ac_has_iconv_h=no
22476 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22477 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22478 echo "configure:22479: checking for langinfo.h" >&5
22479 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22480 echo $ac_n "(cached) $ac_c" 1>&6
22481 else
22482 cat > conftest.$ac_ext <<EOF
22483 #line 22484 "configure"
22484 #include "confdefs.h"
22485 #include <langinfo.h>
22487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22488 { (eval echo configure:22489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22489 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22490 if test -z "$ac_err"; then
22491 rm -rf conftest*
22492 eval "ac_cv_header_$ac_safe=yes"
22493 else
22494 echo "$ac_err" >&5
22495 echo "configure: failed program was:" >&5
22496 cat conftest.$ac_ext >&5
22497 rm -rf conftest*
22498 eval "ac_cv_header_$ac_safe=no"
22500 rm -f conftest*
22502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22503 echo "$ac_t""yes" 1>&6
22504 ac_has_langinfo_h=yes
22505 else
22506 echo "$ac_t""no" 1>&6
22507 ac_has_langinfo_h=no
22511 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22512 echo "configure:22513: checking for iconv in -liconv" >&5
22513 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22515 echo $ac_n "(cached) $ac_c" 1>&6
22516 else
22517 ac_save_LIBS="$LIBS"
22518 LIBS="-liconv $LIBS"
22519 cat > conftest.$ac_ext <<EOF
22520 #line 22521 "configure"
22521 #include "confdefs.h"
22522 /* Override any gcc2 internal prototype to avoid an error. */
22523 /* We use char because int might match the return type of a gcc2
22524 builtin and then its argument prototype would still apply. */
22525 char iconv();
22527 int main() {
22528 iconv()
22529 ; return 0; }
22531 if { (eval echo configure:22532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22532 rm -rf conftest*
22533 eval "ac_cv_lib_$ac_lib_var=yes"
22534 else
22535 echo "configure: failed program was:" >&5
22536 cat conftest.$ac_ext >&5
22537 rm -rf conftest*
22538 eval "ac_cv_lib_$ac_lib_var=no"
22540 rm -f conftest*
22541 LIBS="$ac_save_LIBS"
22544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22545 echo "$ac_t""yes" 1>&6
22546 libiconv="-liconv"
22547 else
22548 echo "$ac_t""no" 1>&6
22551 ac_save_LIBS="$LIBS"
22552 LIBS="$LIBS $libiconv"
22554 for ac_func in iconv_open iconv_close iconv nl_langinfo
22556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22557 echo "configure:22558: checking for $ac_func" >&5
22558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22559 echo $ac_n "(cached) $ac_c" 1>&6
22560 else
22561 cat > conftest.$ac_ext <<EOF
22562 #line 22563 "configure"
22563 #include "confdefs.h"
22564 /* System header to define __stub macros and hopefully few prototypes,
22565 which can conflict with char $ac_func(); below. */
22566 #include <assert.h>
22567 /* Override any gcc2 internal prototype to avoid an error. */
22568 /* We use char because int might match the return type of a gcc2
22569 builtin and then its argument prototype would still apply. */
22570 char $ac_func();
22572 int main() {
22574 /* The GNU C library defines this for functions which it implements
22575 to always fail with ENOSYS. Some functions are actually named
22576 something starting with __ and the normal name is an alias. */
22577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22578 choke me
22579 #else
22580 $ac_func();
22581 #endif
22583 ; return 0; }
22585 if { (eval echo configure:22586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22586 rm -rf conftest*
22587 eval "ac_cv_func_$ac_func=yes"
22588 else
22589 echo "configure: failed program was:" >&5
22590 cat conftest.$ac_ext >&5
22591 rm -rf conftest*
22592 eval "ac_cv_func_$ac_func=no"
22594 rm -f conftest*
22597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22598 echo "$ac_t""yes" 1>&6
22599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22600 cat >> confdefs.h <<EOF
22601 #define $ac_tr_func 1
22604 ac_XPG2funcs=yes
22605 else
22606 echo "$ac_t""no" 1>&6
22607 ac_XPG2funcs=no
22609 done
22612 LIBS="$ac_save_LIBS"
22614 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22615 echo "configure:22616: checking for XPG2 wchar_t support" >&5
22616 if test x"$ac_has_iconv_h" = xyes &&
22617 test x"$ac_has_langinfo_h" = xyes &&
22618 test x"$ac_XPG2funcs" = xyes; then
22619 ac_XPG2_wchar_t=yes
22620 else
22621 ac_XPG2_wchar_t=no
22623 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22625 if test x"$ac_isoC99_wchar_t" = xyes &&
22626 test x"$ac_XPG2_wchar_t" = xyes; then
22627 cat >> confdefs.h <<\EOF
22628 #define _GLIBCPP_USE_WCHAR_T 1
22631 enable_wchar_t=yes
22634 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22635 echo "configure:22636: checking for enabled wchar_t specializations" >&5
22636 echo "$ac_t""$enable_wchar_t" 1>&6
22639 if test "$enable_wchar_t" = yes; then
22640 GLIBCPP_TEST_WCHAR_T_TRUE=
22641 GLIBCPP_TEST_WCHAR_T_FALSE='#'
22642 else
22643 GLIBCPP_TEST_WCHAR_T_TRUE='#'
22644 GLIBCPP_TEST_WCHAR_T_FALSE=
22648 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22649 ac_save_CXXFLAGS="$CXXFLAGS"
22650 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22653 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22654 echo "configure:22655: checking for strtold declaration" >&5
22655 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22656 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22657 echo $ac_n "(cached) $ac_c" 1>&6
22658 else
22661 ac_ext=C
22662 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22663 ac_cpp='$CXXCPP $CPPFLAGS'
22664 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22665 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22666 cross_compiling=$ac_cv_prog_cxx_cross
22668 cat > conftest.$ac_ext <<EOF
22669 #line 22670 "configure"
22670 #include "confdefs.h"
22671 #include <stdlib.h>
22672 int main() {
22673 strtold(0, 0);
22674 ; return 0; }
22676 if { (eval echo configure:22677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22677 rm -rf conftest*
22678 glibcpp_cv_func_strtold_use=yes
22679 else
22680 echo "configure: failed program was:" >&5
22681 cat conftest.$ac_ext >&5
22682 rm -rf conftest*
22683 glibcpp_cv_func_strtold_use=no
22685 rm -f conftest*
22686 ac_ext=c
22687 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22688 ac_cpp='$CPP $CPPFLAGS'
22689 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22690 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22691 cross_compiling=$ac_cv_prog_cc_cross
22697 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22698 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22699 for ac_func in strtold
22701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22702 echo "configure:22703: checking for $ac_func" >&5
22703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22704 echo $ac_n "(cached) $ac_c" 1>&6
22705 else
22706 cat > conftest.$ac_ext <<EOF
22707 #line 22708 "configure"
22708 #include "confdefs.h"
22709 /* System header to define __stub macros and hopefully few prototypes,
22710 which can conflict with char $ac_func(); below. */
22711 #include <assert.h>
22712 /* Override any gcc2 internal prototype to avoid an error. */
22713 /* We use char because int might match the return type of a gcc2
22714 builtin and then its argument prototype would still apply. */
22715 char $ac_func();
22717 int main() {
22719 /* The GNU C library defines this for functions which it implements
22720 to always fail with ENOSYS. Some functions are actually named
22721 something starting with __ and the normal name is an alias. */
22722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22723 choke me
22724 #else
22725 $ac_func();
22726 #endif
22728 ; return 0; }
22730 if { (eval echo configure:22731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22731 rm -rf conftest*
22732 eval "ac_cv_func_$ac_func=yes"
22733 else
22734 echo "configure: failed program was:" >&5
22735 cat conftest.$ac_ext >&5
22736 rm -rf conftest*
22737 eval "ac_cv_func_$ac_func=no"
22739 rm -f conftest*
22742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22743 echo "$ac_t""yes" 1>&6
22744 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22745 cat >> confdefs.h <<EOF
22746 #define $ac_tr_func 1
22749 else
22750 echo "$ac_t""no" 1>&6
22752 done
22757 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22758 echo "configure:22759: checking for strtof declaration" >&5
22759 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22760 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22761 echo $ac_n "(cached) $ac_c" 1>&6
22762 else
22765 ac_ext=C
22766 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22767 ac_cpp='$CXXCPP $CPPFLAGS'
22768 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22769 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22770 cross_compiling=$ac_cv_prog_cxx_cross
22772 cat > conftest.$ac_ext <<EOF
22773 #line 22774 "configure"
22774 #include "confdefs.h"
22775 #include <stdlib.h>
22776 int main() {
22777 strtof(0, 0);
22778 ; return 0; }
22780 if { (eval echo configure:22781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22781 rm -rf conftest*
22782 glibcpp_cv_func_strtof_use=yes
22783 else
22784 echo "configure: failed program was:" >&5
22785 cat conftest.$ac_ext >&5
22786 rm -rf conftest*
22787 glibcpp_cv_func_strtof_use=no
22789 rm -f conftest*
22790 ac_ext=c
22791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22792 ac_cpp='$CPP $CPPFLAGS'
22793 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22794 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22795 cross_compiling=$ac_cv_prog_cc_cross
22801 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22802 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22803 for ac_func in strtof
22805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22806 echo "configure:22807: checking for $ac_func" >&5
22807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22808 echo $ac_n "(cached) $ac_c" 1>&6
22809 else
22810 cat > conftest.$ac_ext <<EOF
22811 #line 22812 "configure"
22812 #include "confdefs.h"
22813 /* System header to define __stub macros and hopefully few prototypes,
22814 which can conflict with char $ac_func(); below. */
22815 #include <assert.h>
22816 /* Override any gcc2 internal prototype to avoid an error. */
22817 /* We use char because int might match the return type of a gcc2
22818 builtin and then its argument prototype would still apply. */
22819 char $ac_func();
22821 int main() {
22823 /* The GNU C library defines this for functions which it implements
22824 to always fail with ENOSYS. Some functions are actually named
22825 something starting with __ and the normal name is an alias. */
22826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22827 choke me
22828 #else
22829 $ac_func();
22830 #endif
22832 ; return 0; }
22834 if { (eval echo configure:22835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22835 rm -rf conftest*
22836 eval "ac_cv_func_$ac_func=yes"
22837 else
22838 echo "configure: failed program was:" >&5
22839 cat conftest.$ac_ext >&5
22840 rm -rf conftest*
22841 eval "ac_cv_func_$ac_func=no"
22843 rm -f conftest*
22846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22847 echo "$ac_t""yes" 1>&6
22848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22849 cat >> confdefs.h <<EOF
22850 #define $ac_tr_func 1
22853 else
22854 echo "$ac_t""no" 1>&6
22856 done
22860 for ac_func in drand48
22862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22863 echo "configure:22864: checking for $ac_func" >&5
22864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22865 echo $ac_n "(cached) $ac_c" 1>&6
22866 else
22867 cat > conftest.$ac_ext <<EOF
22868 #line 22869 "configure"
22869 #include "confdefs.h"
22870 /* System header to define __stub macros and hopefully few prototypes,
22871 which can conflict with char $ac_func(); below. */
22872 #include <assert.h>
22873 /* Override any gcc2 internal prototype to avoid an error. */
22874 /* We use char because int might match the return type of a gcc2
22875 builtin and then its argument prototype would still apply. */
22876 char $ac_func();
22878 int main() {
22880 /* The GNU C library defines this for functions which it implements
22881 to always fail with ENOSYS. Some functions are actually named
22882 something starting with __ and the normal name is an alias. */
22883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22884 choke me
22885 #else
22886 $ac_func();
22887 #endif
22889 ; return 0; }
22891 if { (eval echo configure:22892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22892 rm -rf conftest*
22893 eval "ac_cv_func_$ac_func=yes"
22894 else
22895 echo "configure: failed program was:" >&5
22896 cat conftest.$ac_ext >&5
22897 rm -rf conftest*
22898 eval "ac_cv_func_$ac_func=no"
22900 rm -f conftest*
22903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22904 echo "$ac_t""yes" 1>&6
22905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22906 cat >> confdefs.h <<EOF
22907 #define $ac_tr_func 1
22910 else
22911 echo "$ac_t""no" 1>&6
22913 done
22916 CXXFLAGS="$ac_save_CXXFLAGS"
22919 # For showmanyc_helper().
22920 for ac_hdr in sys/ioctl.h sys/filio.h
22922 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22923 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22924 echo "configure:22925: checking for $ac_hdr" >&5
22925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22926 echo $ac_n "(cached) $ac_c" 1>&6
22927 else
22928 cat > conftest.$ac_ext <<EOF
22929 #line 22930 "configure"
22930 #include "confdefs.h"
22931 #include <$ac_hdr>
22933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22934 { (eval echo configure:22935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22936 if test -z "$ac_err"; then
22937 rm -rf conftest*
22938 eval "ac_cv_header_$ac_safe=yes"
22939 else
22940 echo "$ac_err" >&5
22941 echo "configure: failed program was:" >&5
22942 cat conftest.$ac_ext >&5
22943 rm -rf conftest*
22944 eval "ac_cv_header_$ac_safe=no"
22946 rm -f conftest*
22948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22949 echo "$ac_t""yes" 1>&6
22950 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22951 cat >> confdefs.h <<EOF
22952 #define $ac_tr_hdr 1
22955 else
22956 echo "$ac_t""no" 1>&6
22958 done
22961 if eval "test \"`echo '$''{'glibcpp_cv_POLL'+set}'`\" = set"; then
22962 echo $ac_n "(cached) $ac_c" 1>&6
22963 else
22965 cat > conftest.$ac_ext <<EOF
22966 #line 22967 "configure"
22967 #include "confdefs.h"
22968 #include <poll.h>
22969 int main() {
22970 struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0);
22971 ; return 0; }
22973 if { (eval echo configure:22974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22974 rm -rf conftest*
22975 glibcpp_cv_POLL=yes
22976 else
22977 echo "configure: failed program was:" >&5
22978 cat conftest.$ac_ext >&5
22979 rm -rf conftest*
22980 glibcpp_cv_POLL=no
22982 rm -f conftest*
22986 if test x$glibcpp_cv_POLL = xyes; then
22987 cat >> confdefs.h <<\EOF
22988 #define HAVE_POLL 1
22994 if eval "test \"`echo '$''{'glibcpp_cv_S_ISREG'+set}'`\" = set"; then
22995 echo $ac_n "(cached) $ac_c" 1>&6
22996 else
22998 cat > conftest.$ac_ext <<EOF
22999 #line 23000 "configure"
23000 #include "confdefs.h"
23001 #include <sys/stat.h>
23002 int main() {
23003 struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode);
23004 ; return 0; }
23006 if { (eval echo configure:23007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23007 rm -rf conftest*
23008 glibcpp_cv_S_ISREG=yes
23009 else
23010 echo "configure: failed program was:" >&5
23011 cat conftest.$ac_ext >&5
23012 rm -rf conftest*
23013 glibcpp_cv_S_ISREG=no
23015 rm -f conftest*
23019 if eval "test \"`echo '$''{'glibcpp_cv_S_IFREG'+set}'`\" = set"; then
23020 echo $ac_n "(cached) $ac_c" 1>&6
23021 else
23023 cat > conftest.$ac_ext <<EOF
23024 #line 23025 "configure"
23025 #include "confdefs.h"
23026 #include <sys/stat.h>
23027 int main() {
23028 struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode;
23029 ; return 0; }
23031 if { (eval echo configure:23032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23032 rm -rf conftest*
23033 glibcpp_cv_S_IFREG=yes
23034 else
23035 echo "configure: failed program was:" >&5
23036 cat conftest.$ac_ext >&5
23037 rm -rf conftest*
23038 glibcpp_cv_S_IFREG=no
23040 rm -f conftest*
23044 if test x$glibcpp_cv_S_ISREG = xyes; then
23045 cat >> confdefs.h <<\EOF
23046 #define HAVE_S_ISREG 1
23049 elif test x$glibcpp_cv_S_IFREG = xyes; then
23050 cat >> confdefs.h <<\EOF
23051 #define HAVE_S_IFREG 1
23058 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
23059 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
23060 echo "configure:23061: checking for locale.h" >&5
23061 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23062 echo $ac_n "(cached) $ac_c" 1>&6
23063 else
23064 cat > conftest.$ac_ext <<EOF
23065 #line 23066 "configure"
23066 #include "confdefs.h"
23067 #include <locale.h>
23069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23070 { (eval echo configure:23071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23072 if test -z "$ac_err"; then
23073 rm -rf conftest*
23074 eval "ac_cv_header_$ac_safe=yes"
23075 else
23076 echo "$ac_err" >&5
23077 echo "configure: failed program was:" >&5
23078 cat conftest.$ac_ext >&5
23079 rm -rf conftest*
23080 eval "ac_cv_header_$ac_safe=no"
23082 rm -f conftest*
23084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23085 echo "$ac_t""yes" 1>&6
23087 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
23088 echo "configure:23089: checking for LC_MESSAGES" >&5
23089 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
23090 echo $ac_n "(cached) $ac_c" 1>&6
23091 else
23092 cat > conftest.$ac_ext <<EOF
23093 #line 23094 "configure"
23094 #include "confdefs.h"
23095 #include <locale.h>
23096 int main() {
23097 return LC_MESSAGES
23098 ; return 0; }
23100 if { (eval echo configure:23101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23101 rm -rf conftest*
23102 ac_cv_val_LC_MESSAGES=yes
23103 else
23104 echo "configure: failed program was:" >&5
23105 cat conftest.$ac_ext >&5
23106 rm -rf conftest*
23107 ac_cv_val_LC_MESSAGES=no
23109 rm -f conftest*
23112 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
23113 if test $ac_cv_val_LC_MESSAGES = yes; then
23114 cat >> confdefs.h <<\EOF
23115 #define HAVE_LC_MESSAGES 1
23120 else
23121 echo "$ac_t""no" 1>&6
23126 cat > conftest.$ac_ext <<EOF
23127 #line 23128 "configure"
23128 #include "confdefs.h"
23130 #include <setjmp.h>
23132 int main() {
23133 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
23134 ; return 0; }
23136 if { (eval echo configure:23137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23137 rm -rf conftest*
23138 cat >> confdefs.h <<\EOF
23139 #define HAVE_SIGSETJMP 1
23143 else
23144 echo "configure: failed program was:" >&5
23145 cat conftest.$ac_ext >&5
23147 rm -f conftest*
23149 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
23151 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23153 echo "configure:23154: checking for $ac_hdr" >&5
23154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23155 echo $ac_n "(cached) $ac_c" 1>&6
23156 else
23157 cat > conftest.$ac_ext <<EOF
23158 #line 23159 "configure"
23159 #include "confdefs.h"
23160 #include <$ac_hdr>
23162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23163 { (eval echo configure:23164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23165 if test -z "$ac_err"; then
23166 rm -rf conftest*
23167 eval "ac_cv_header_$ac_safe=yes"
23168 else
23169 echo "$ac_err" >&5
23170 echo "configure: failed program was:" >&5
23171 cat conftest.$ac_ext >&5
23172 rm -rf conftest*
23173 eval "ac_cv_header_$ac_safe=no"
23175 rm -f conftest*
23177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23178 echo "$ac_t""yes" 1>&6
23179 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23180 cat >> confdefs.h <<EOF
23181 #define $ac_tr_hdr 1
23184 else
23185 echo "$ac_t""no" 1>&6
23187 done
23189 for ac_func in getpagesize
23191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23192 echo "configure:23193: checking for $ac_func" >&5
23193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23194 echo $ac_n "(cached) $ac_c" 1>&6
23195 else
23196 cat > conftest.$ac_ext <<EOF
23197 #line 23198 "configure"
23198 #include "confdefs.h"
23199 /* System header to define __stub macros and hopefully few prototypes,
23200 which can conflict with char $ac_func(); below. */
23201 #include <assert.h>
23202 /* Override any gcc2 internal prototype to avoid an error. */
23203 /* We use char because int might match the return type of a gcc2
23204 builtin and then its argument prototype would still apply. */
23205 char $ac_func();
23207 int main() {
23209 /* The GNU C library defines this for functions which it implements
23210 to always fail with ENOSYS. Some functions are actually named
23211 something starting with __ and the normal name is an alias. */
23212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23213 choke me
23214 #else
23215 $ac_func();
23216 #endif
23218 ; return 0; }
23220 if { (eval echo configure:23221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23221 rm -rf conftest*
23222 eval "ac_cv_func_$ac_func=yes"
23223 else
23224 echo "configure: failed program was:" >&5
23225 cat conftest.$ac_ext >&5
23226 rm -rf conftest*
23227 eval "ac_cv_func_$ac_func=no"
23229 rm -f conftest*
23232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23233 echo "$ac_t""yes" 1>&6
23234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23235 cat >> confdefs.h <<EOF
23236 #define $ac_tr_func 1
23239 else
23240 echo "$ac_t""no" 1>&6
23242 done
23244 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23245 echo "configure:23246: checking for working mmap" >&5
23246 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23247 echo $ac_n "(cached) $ac_c" 1>&6
23248 else
23249 if test "$cross_compiling" = yes; then
23250 ac_cv_func_mmap_fixed_mapped=no
23251 else
23252 cat > conftest.$ac_ext <<EOF
23253 #line 23254 "configure"
23254 #include "confdefs.h"
23256 /* Thanks to Mike Haertel and Jim Avera for this test.
23257 Here is a matrix of mmap possibilities:
23258 mmap private not fixed
23259 mmap private fixed at somewhere currently unmapped
23260 mmap private fixed at somewhere already mapped
23261 mmap shared not fixed
23262 mmap shared fixed at somewhere currently unmapped
23263 mmap shared fixed at somewhere already mapped
23264 For private mappings, we should verify that changes cannot be read()
23265 back from the file, nor mmap's back from the file at a different
23266 address. (There have been systems where private was not correctly
23267 implemented like the infamous i386 svr4.0, and systems where the
23268 VM page cache was not coherent with the filesystem buffer cache
23269 like early versions of FreeBSD and possibly contemporary NetBSD.)
23270 For shared mappings, we should conversely verify that changes get
23271 propogated back to all the places they're supposed to be.
23273 Grep wants private fixed already mapped.
23274 The main things grep needs to know about mmap are:
23275 * does it exist and is it safe to write into the mmap'd area
23276 * how to use it (BSD variants) */
23277 #include <sys/types.h>
23278 #include <fcntl.h>
23279 #include <sys/mman.h>
23281 #if HAVE_SYS_TYPES_H
23282 # include <sys/types.h>
23283 #endif
23285 #if HAVE_STDLIB_H
23286 # include <stdlib.h>
23287 #endif
23289 #if HAVE_SYS_STAT_H
23290 # include <sys/stat.h>
23291 #endif
23293 #if HAVE_UNISTD_H
23294 # include <unistd.h>
23295 #endif
23297 /* This mess was copied from the GNU getpagesize.h. */
23298 #ifndef HAVE_GETPAGESIZE
23300 /* Assume that all systems that can run configure have sys/param.h. */
23301 # ifndef HAVE_SYS_PARAM_H
23302 # define HAVE_SYS_PARAM_H 1
23303 # endif
23305 # ifdef _SC_PAGESIZE
23306 # define getpagesize() sysconf(_SC_PAGESIZE)
23307 # else /* no _SC_PAGESIZE */
23308 # ifdef HAVE_SYS_PARAM_H
23309 # include <sys/param.h>
23310 # ifdef EXEC_PAGESIZE
23311 # define getpagesize() EXEC_PAGESIZE
23312 # else /* no EXEC_PAGESIZE */
23313 # ifdef NBPG
23314 # define getpagesize() NBPG * CLSIZE
23315 # ifndef CLSIZE
23316 # define CLSIZE 1
23317 # endif /* no CLSIZE */
23318 # else /* no NBPG */
23319 # ifdef NBPC
23320 # define getpagesize() NBPC
23321 # else /* no NBPC */
23322 # ifdef PAGESIZE
23323 # define getpagesize() PAGESIZE
23324 # endif /* PAGESIZE */
23325 # endif /* no NBPC */
23326 # endif /* no NBPG */
23327 # endif /* no EXEC_PAGESIZE */
23328 # else /* no HAVE_SYS_PARAM_H */
23329 # define getpagesize() 8192 /* punt totally */
23330 # endif /* no HAVE_SYS_PARAM_H */
23331 # endif /* no _SC_PAGESIZE */
23333 #endif /* no HAVE_GETPAGESIZE */
23335 #ifdef __cplusplus
23336 extern "C" { void *malloc(unsigned); }
23337 #else
23338 char *malloc();
23339 #endif
23342 main()
23344 char *data, *data2, *data3;
23345 int i, pagesize;
23346 int fd;
23348 pagesize = getpagesize();
23351 * First, make a file with some known garbage in it.
23353 data = malloc(pagesize);
23354 if (!data)
23355 exit(1);
23356 for (i = 0; i < pagesize; ++i)
23357 *(data + i) = rand();
23358 umask(0);
23359 fd = creat("conftestmmap", 0600);
23360 if (fd < 0)
23361 exit(1);
23362 if (write(fd, data, pagesize) != pagesize)
23363 exit(1);
23364 close(fd);
23367 * Next, try to mmap the file at a fixed address which
23368 * already has something else allocated at it. If we can,
23369 * also make sure that we see the same garbage.
23371 fd = open("conftestmmap", O_RDWR);
23372 if (fd < 0)
23373 exit(1);
23374 data2 = malloc(2 * pagesize);
23375 if (!data2)
23376 exit(1);
23377 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23378 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23379 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23380 exit(1);
23381 for (i = 0; i < pagesize; ++i)
23382 if (*(data + i) != *(data2 + i))
23383 exit(1);
23386 * Finally, make sure that changes to the mapped area
23387 * do not percolate back to the file as seen by read().
23388 * (This is a bug on some variants of i386 svr4.0.)
23390 for (i = 0; i < pagesize; ++i)
23391 *(data2 + i) = *(data2 + i) + 1;
23392 data3 = malloc(pagesize);
23393 if (!data3)
23394 exit(1);
23395 if (read(fd, data3, pagesize) != pagesize)
23396 exit(1);
23397 for (i = 0; i < pagesize; ++i)
23398 if (*(data + i) != *(data3 + i))
23399 exit(1);
23400 close(fd);
23401 unlink("conftestmmap");
23402 exit(0);
23406 if { (eval echo configure:23407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23407 then
23408 ac_cv_func_mmap_fixed_mapped=yes
23409 else
23410 echo "configure: failed program was:" >&5
23411 cat conftest.$ac_ext >&5
23412 rm -fr conftest*
23413 ac_cv_func_mmap_fixed_mapped=no
23415 rm -fr conftest*
23420 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23421 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23422 cat >> confdefs.h <<\EOF
23423 #define HAVE_MMAP 1
23429 # Establish limits on memory usage during 'make check'
23432 setrlimit_have_headers=yes
23433 for ac_hdr in unistd.h sys/time.h sys/resource.h
23435 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23436 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23437 echo "configure:23438: checking for $ac_hdr" >&5
23438 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23439 echo $ac_n "(cached) $ac_c" 1>&6
23440 else
23441 cat > conftest.$ac_ext <<EOF
23442 #line 23443 "configure"
23443 #include "confdefs.h"
23444 #include <$ac_hdr>
23446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23447 { (eval echo configure:23448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23448 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23449 if test -z "$ac_err"; then
23450 rm -rf conftest*
23451 eval "ac_cv_header_$ac_safe=yes"
23452 else
23453 echo "$ac_err" >&5
23454 echo "configure: failed program was:" >&5
23455 cat conftest.$ac_ext >&5
23456 rm -rf conftest*
23457 eval "ac_cv_header_$ac_safe=no"
23459 rm -f conftest*
23461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23462 echo "$ac_t""yes" 1>&6
23463 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23464 cat >> confdefs.h <<EOF
23465 #define $ac_tr_hdr 1
23468 else
23469 echo "$ac_t""no" 1>&6
23470 setrlimit_have_headers=no
23472 done
23474 # If don't have the headers, then we can't run the tests now, and we
23475 # won't be seeing any of these during testsuite compilation.
23476 if test $setrlimit_have_headers = yes; then
23477 # Can't do these in a loop, else the resulting syntax is wrong.
23479 cat > conftest.$ac_ext <<EOF
23480 #line 23481 "configure"
23481 #include "confdefs.h"
23482 #include <unistd.h>
23483 #include <sys/time.h>
23484 #include <sys/resource.h>
23486 int main() {
23487 int f = RLIMIT_DATA ;
23488 ; return 0; }
23490 if { (eval echo configure:23491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23491 rm -rf conftest*
23492 glibcpp_mresult=1
23493 else
23494 echo "configure: failed program was:" >&5
23495 cat conftest.$ac_ext >&5
23496 rm -rf conftest*
23497 glibcpp_mresult=0
23499 rm -f conftest*
23500 cat >> confdefs.h <<EOF
23501 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23506 cat > conftest.$ac_ext <<EOF
23507 #line 23508 "configure"
23508 #include "confdefs.h"
23509 #include <unistd.h>
23510 #include <sys/time.h>
23511 #include <sys/resource.h>
23513 int main() {
23514 int f = RLIMIT_RSS ;
23515 ; return 0; }
23517 if { (eval echo configure:23518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23518 rm -rf conftest*
23519 glibcpp_mresult=1
23520 else
23521 echo "configure: failed program was:" >&5
23522 cat conftest.$ac_ext >&5
23523 rm -rf conftest*
23524 glibcpp_mresult=0
23526 rm -f conftest*
23527 cat >> confdefs.h <<EOF
23528 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23533 cat > conftest.$ac_ext <<EOF
23534 #line 23535 "configure"
23535 #include "confdefs.h"
23536 #include <unistd.h>
23537 #include <sys/time.h>
23538 #include <sys/resource.h>
23540 int main() {
23541 int f = RLIMIT_VMEM ;
23542 ; return 0; }
23544 if { (eval echo configure:23545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23545 rm -rf conftest*
23546 glibcpp_mresult=1
23547 else
23548 echo "configure: failed program was:" >&5
23549 cat conftest.$ac_ext >&5
23550 rm -rf conftest*
23551 glibcpp_mresult=0
23553 rm -f conftest*
23554 cat >> confdefs.h <<EOF
23555 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23560 cat > conftest.$ac_ext <<EOF
23561 #line 23562 "configure"
23562 #include "confdefs.h"
23563 #include <unistd.h>
23564 #include <sys/time.h>
23565 #include <sys/resource.h>
23567 int main() {
23568 int f = RLIMIT_AS ;
23569 ; return 0; }
23571 if { (eval echo configure:23572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23572 rm -rf conftest*
23573 glibcpp_mresult=1
23574 else
23575 echo "configure: failed program was:" >&5
23576 cat conftest.$ac_ext >&5
23577 rm -rf conftest*
23578 glibcpp_mresult=0
23580 rm -f conftest*
23581 cat >> confdefs.h <<EOF
23582 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23587 # Check for rlimit, setrlimit.
23588 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23589 echo $ac_n "(cached) $ac_c" 1>&6
23590 else
23592 cat > conftest.$ac_ext <<EOF
23593 #line 23594 "configure"
23594 #include "confdefs.h"
23595 #include <unistd.h>
23596 #include <sys/time.h>
23597 #include <sys/resource.h>
23599 int main() {
23600 struct rlimit r; setrlimit(0, &r);
23601 ; return 0; }
23603 if { (eval echo configure:23604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23604 rm -rf conftest*
23605 ac_setrlimit=yes
23606 else
23607 echo "configure: failed program was:" >&5
23608 cat conftest.$ac_ext >&5
23609 rm -rf conftest*
23610 ac_setrlimit=no
23612 rm -f conftest*
23618 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23619 echo "configure:23620: checking for testsuite memory limit support" >&5
23620 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23621 ac_mem_limits=yes
23622 cat >> confdefs.h <<\EOF
23623 #define _GLIBCPP_MEM_LIMITS 1
23626 else
23627 ac_mem_limits=no
23629 echo "$ac_t""$ac_mem_limits" 1>&6
23632 # Look for setenv, so that extended locale tests can be performed.
23634 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23635 echo "configure:23636: checking for setenv declaration" >&5
23636 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23637 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23638 echo $ac_n "(cached) $ac_c" 1>&6
23639 else
23642 ac_ext=C
23643 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23644 ac_cpp='$CXXCPP $CPPFLAGS'
23645 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23646 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23647 cross_compiling=$ac_cv_prog_cxx_cross
23649 cat > conftest.$ac_ext <<EOF
23650 #line 23651 "configure"
23651 #include "confdefs.h"
23652 #include <stdlib.h>
23653 int main() {
23654 setenv(0, 0, 0);
23655 ; return 0; }
23657 if { (eval echo configure:23658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23658 rm -rf conftest*
23659 glibcpp_cv_func_setenv_use=yes
23660 else
23661 echo "configure: failed program was:" >&5
23662 cat conftest.$ac_ext >&5
23663 rm -rf conftest*
23664 glibcpp_cv_func_setenv_use=no
23666 rm -f conftest*
23667 ac_ext=c
23668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23669 ac_cpp='$CPP $CPPFLAGS'
23670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23672 cross_compiling=$ac_cv_prog_cc_cross
23678 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23679 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23680 for ac_func in setenv
23682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23683 echo "configure:23684: checking for $ac_func" >&5
23684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23685 echo $ac_n "(cached) $ac_c" 1>&6
23686 else
23687 cat > conftest.$ac_ext <<EOF
23688 #line 23689 "configure"
23689 #include "confdefs.h"
23690 /* System header to define __stub macros and hopefully few prototypes,
23691 which can conflict with char $ac_func(); below. */
23692 #include <assert.h>
23693 /* Override any gcc2 internal prototype to avoid an error. */
23694 /* We use char because int might match the return type of a gcc2
23695 builtin and then its argument prototype would still apply. */
23696 char $ac_func();
23698 int main() {
23700 /* The GNU C library defines this for functions which it implements
23701 to always fail with ENOSYS. Some functions are actually named
23702 something starting with __ and the normal name is an alias. */
23703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23704 choke me
23705 #else
23706 $ac_func();
23707 #endif
23709 ; return 0; }
23711 if { (eval echo configure:23712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23712 rm -rf conftest*
23713 eval "ac_cv_func_$ac_func=yes"
23714 else
23715 echo "configure: failed program was:" >&5
23716 cat conftest.$ac_ext >&5
23717 rm -rf conftest*
23718 eval "ac_cv_func_$ac_func=no"
23720 rm -f conftest*
23723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23724 echo "$ac_t""yes" 1>&6
23725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23726 cat >> confdefs.h <<EOF
23727 #define $ac_tr_func 1
23730 else
23731 echo "$ac_t""no" 1>&6
23733 done
23738 # Export file names for ABI checking.
23739 baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23742 case "$target" in
23743 *-*-cygwin* ) enable_abi_check=no ;;
23744 * ) enable_abi_check=yes ;;
23745 esac
23747 # Don't do ABI checking unless native.
23750 if test x"$build" = x"$host" && test -z "$with_cross_host" \
23751 && test "$enable_abi_check" = yes ; then
23752 GLIBCPP_BUILD_ABI_CHECK_TRUE=
23753 GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23754 else
23755 GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23756 GLIBCPP_BUILD_ABI_CHECK_FALSE=
23761 # This depends on the possibly-skipped linker test above.
23762 # Check whether --enable-symvers or --disable-symvers was given.
23763 if test "${enable_symvers+set}" = set; then
23764 enableval="$enable_symvers"
23765 case "$enableval" in
23766 yes) enable_symvers=yes ;;
23767 no) enable_symvers=no ;;
23768 # other names here, just as sanity checks
23769 #gnu|sun|etcetera) enable_symvers=$enableval ;;
23770 gnu) enable_symvers=$enableval ;;
23771 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23772 esac
23773 else
23774 enable_symvers=yes
23777 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23778 # don't know enough about $LD to do tricks...
23779 if test x$enable_shared = xno ||
23780 test "x$LD" = x ||
23781 test x$glibcpp_gnu_ld_version = x; then
23782 enable_symvers=no
23785 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23786 if test $enable_symvers != no; then
23787 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23788 echo "configure:23789: checking for shared libgcc" >&5
23789 ac_save_CFLAGS="$CFLAGS"
23790 CFLAGS=' -lgcc_s'
23791 cat > conftest.$ac_ext <<EOF
23792 #line 23793 "configure"
23793 #include "confdefs.h"
23795 int main() {
23796 return 0
23797 ; return 0; }
23799 if { (eval echo configure:23800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23800 rm -rf conftest*
23801 glibcpp_shared_libgcc=yes
23802 else
23803 echo "configure: failed program was:" >&5
23804 cat conftest.$ac_ext >&5
23805 rm -rf conftest*
23806 glibcpp_shared_libgcc=no
23808 rm -f conftest*
23809 CFLAGS="$ac_save_CFLAGS"
23810 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23813 # For GNU ld, we need at least this version. It's 2.12 in the same format
23814 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
23815 glibcpp_min_gnu_ld_version=21200
23817 # Check to see if unspecified "yes" value can win, given results
23818 # above.
23819 if test $enable_symvers = yes ; then
23820 if test $with_gnu_ld = yes &&
23821 test $glibcpp_shared_libgcc = yes ;
23822 then
23823 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23824 enable_symvers=gnu
23825 else
23826 ac_test_CFLAGS="${CFLAGS+set}"
23827 ac_save_CFLAGS="$CFLAGS"
23828 CFLAGS='-shared -Wl,--version-script,conftest.map'
23829 enable_symvers=no
23831 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23833 cat > conftest.$ac_ext <<EOF
23834 #line 23835 "configure"
23835 #include "confdefs.h"
23836 int foo;
23837 int main() {
23839 ; return 0; }
23841 if { (eval echo configure:23842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23842 rm -rf conftest*
23843 enable_symvers=gnu
23844 else
23845 echo "configure: failed program was:" >&5
23846 cat conftest.$ac_ext >&5
23848 rm -f conftest*
23849 if test "$ac_test_CFLAGS" = set; then
23850 CFLAGS="$ac_save_CFLAGS"
23851 else
23852 # this is the suspicious part
23853 CFLAGS=''
23855 rm -f conftest.map
23857 else
23858 # just fail for now
23859 enable_symvers=no
23863 case $enable_symvers in
23865 SYMVER_MAP=config/linker-map.dummy
23867 gnu)
23868 SYMVER_MAP=config/linker-map.gnu
23869 cat >> confdefs.h <<\EOF
23870 #define _GLIBCPP_SYMVER 1
23874 esac
23879 if test $enable_symvers != no; then
23880 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23881 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23882 else
23883 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23884 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23886 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23887 echo "configure:23888: checking versioning on shared library symbols" >&5
23888 echo "$ac_t""$enable_symvers" 1>&6
23891 # Propagate the target-specific source directories through the build chain.
23892 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
23893 # uses it, and it only gets used in this file.)
23894 OS_INC_SRCDIR=config/${os_include_dir}
23895 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23899 # Set up cross-compile flags
23902 if test "$CANADIAN" = yes; then
23903 CANADIAN_TRUE=
23904 CANADIAN_FALSE='#'
23905 else
23906 CANADIAN_TRUE='#'
23907 CANADIAN_FALSE=
23910 cat > confcache <<\EOF
23911 # This file is a shell script that caches the results of configure
23912 # tests run on this system so they can be shared between configure
23913 # scripts and configure runs. It is not useful on other systems.
23914 # If it contains results you don't want to keep, you may remove or edit it.
23916 # By default, configure uses ./config.cache as the cache file,
23917 # creating it if it does not exist already. You can give configure
23918 # the --cache-file=FILE option to use a different cache file; that is
23919 # what configure does when it calls configure scripts in
23920 # subdirectories, so they share the cache.
23921 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23922 # config.status only pays attention to the cache file if you give it the
23923 # --recheck option to rerun configure.
23926 # The following way of writing the cache mishandles newlines in values,
23927 # but we know of no workaround that is simple, portable, and efficient.
23928 # So, don't put newlines in cache variables' values.
23929 # Ultrix sh set writes to stderr and can't be redirected directly,
23930 # and sets the high bit in the cache file unless we assign to the vars.
23931 (set) 2>&1 |
23932 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23933 *ac_space=\ *)
23934 # `set' does not quote correctly, so add quotes (double-quote substitution
23935 # turns \\\\ into \\, and sed turns \\ into \).
23936 sed -n \
23937 -e "s/'/'\\\\''/g" \
23938 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23941 # `set' quotes correctly as required by POSIX, so do not add quotes.
23942 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23944 esac >> confcache
23945 if cmp -s $cache_file confcache; then
23947 else
23948 if test -w $cache_file; then
23949 echo "updating cache $cache_file"
23950 cat confcache > $cache_file
23951 else
23952 echo "not updating unwritable cache $cache_file"
23955 rm -f confcache
23958 if test "${multilib}" = "yes"; then
23959 multilib_arg="--enable-multilib"
23960 else
23961 multilib_arg=
23964 # Export all the install information
23966 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23967 # exported correctly in GLIBCPP_CONFIGURE.
23968 glibcpp_toolexecdir=no
23969 glibcpp_toolexeclibdir=no
23970 glibcpp_prefixdir=${prefix}
23972 # Process the option --with-gxx-include-dir=<path to include-files directory>
23973 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23974 echo "configure:23975: checking for --with-gxx-include-dir" >&5
23975 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23976 if test "${with_gxx_include_dir+set}" = set; then
23977 withval="$with_gxx_include_dir"
23978 case "${withval}" in
23979 yes)
23980 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23981 gxx_include_dir=no
23984 gxx_include_dir=no
23987 gxx_include_dir=${withval}
23989 esac
23990 else
23991 gxx_include_dir=no
23994 echo "$ac_t""$gxx_include_dir" 1>&6
23996 # Process the option "--enable-version-specific-runtime-libs"
23997 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23998 echo "configure:23999: checking for --enable-version-specific-runtime-libs" >&5
23999 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
24000 if test "${enable_version_specific_runtime_libs+set}" = set; then
24001 enableval="$enable_version_specific_runtime_libs"
24002 case "$enableval" in
24003 yes) version_specific_libs=yes ;;
24004 no) version_specific_libs=no ;;
24005 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
24006 esac
24007 else
24008 version_specific_libs=no
24010 # Option set, now we can test it.
24011 echo "$ac_t""$version_specific_libs" 1>&6
24013 # Default case for install directory for include files.
24014 if test $version_specific_libs = no && test $gxx_include_dir = no; then
24015 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
24018 # Version-specific runtime libs processing.
24019 if test $version_specific_libs = yes; then
24020 # Need the gcc compiler version to know where to install libraries
24021 # and header files if --enable-version-specific-runtime-libs option
24022 # is selected.
24023 if test x"$gxx_include_dir" = x"no"; then
24024 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
24026 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
24027 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
24030 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
24031 # Install a library built with a cross compiler in tooldir, not libdir.
24032 if test x"$glibcpp_toolexecdir" = x"no"; then
24033 if test -n "$with_cross_host" &&
24034 test x"$with_cross_host" != x"no"; then
24035 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
24036 glibcpp_toolexeclibdir='$(toolexecdir)/lib'
24037 else
24038 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
24039 glibcpp_toolexeclibdir='$(libdir)'
24041 multi_os_directory=`$CC -print-multi-os-directory`
24042 case $multi_os_directory in
24043 .) ;; # Avoid trailing /.
24044 *) glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/$multi_os_directory ;;
24045 esac
24048 echo $ac_n "checking for install location""... $ac_c" 1>&6
24049 echo "configure:24050: checking for install location" >&5
24050 echo "$ac_t""$gxx_include_dir" 1>&6
24058 # Export all the include and flag information to Makefiles.
24060 # Root level of the build directory include sources.
24061 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
24063 # Passed down for canadian crosses.
24064 if test x"$CANADIAN" = xyes; then
24065 TOPLEVEL_INCLUDES='-I$(includedir)'
24068 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
24070 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
24072 if test x"$need_libio" = xyes; then
24073 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
24077 # Now, export this to all the little Makefiles....
24084 # Optimization flags that are probably a good idea for thrill-seekers. Just
24085 # uncomment the lines below and make, everything else is ready to go...
24086 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
24087 OPTIMIZE_CXXFLAGS=
24090 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
24094 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
24095 grep "enable shared" > /dev/null; then
24096 LIBSUPCXX_PICFLAGS=-prefer-pic
24097 else
24098 LIBSUPCXX_PICFLAGS=
24102 # Generate the various Makefiles, include files, and scripts.
24103 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
24104 # and libsupc++/Makefile.am so that multilib installs will end up
24105 # installed in the correct place. To work around this not being passed
24106 # down from config-ml.in -> top_srcdir/Makefile.am ->
24107 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
24108 trap '' 1 2 15
24109 cat > confcache <<\EOF
24110 # This file is a shell script that caches the results of configure
24111 # tests run on this system so they can be shared between configure
24112 # scripts and configure runs. It is not useful on other systems.
24113 # If it contains results you don't want to keep, you may remove or edit it.
24115 # By default, configure uses ./config.cache as the cache file,
24116 # creating it if it does not exist already. You can give configure
24117 # the --cache-file=FILE option to use a different cache file; that is
24118 # what configure does when it calls configure scripts in
24119 # subdirectories, so they share the cache.
24120 # Giving --cache-file=/dev/null disables caching, for debugging configure.
24121 # config.status only pays attention to the cache file if you give it the
24122 # --recheck option to rerun configure.
24125 # The following way of writing the cache mishandles newlines in values,
24126 # but we know of no workaround that is simple, portable, and efficient.
24127 # So, don't put newlines in cache variables' values.
24128 # Ultrix sh set writes to stderr and can't be redirected directly,
24129 # and sets the high bit in the cache file unless we assign to the vars.
24130 (set) 2>&1 |
24131 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24132 *ac_space=\ *)
24133 # `set' does not quote correctly, so add quotes (double-quote substitution
24134 # turns \\\\ into \\, and sed turns \\ into \).
24135 sed -n \
24136 -e "s/'/'\\\\''/g" \
24137 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
24140 # `set' quotes correctly as required by POSIX, so do not add quotes.
24141 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
24143 esac >> confcache
24144 if cmp -s $cache_file confcache; then
24146 else
24147 if test -w $cache_file; then
24148 echo "updating cache $cache_file"
24149 cat confcache > $cache_file
24150 else
24151 echo "not updating unwritable cache $cache_file"
24154 rm -f confcache
24156 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24158 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24159 # Let make expand exec_prefix.
24160 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24162 # Any assignment to VPATH causes Sun make to only execute
24163 # the first set of double-colon rules, so remove it if not needed.
24164 # If there is a colon in the path, we need to keep it.
24165 if test "x$srcdir" = x.; then
24166 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
24169 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24171 DEFS=-DHAVE_CONFIG_H
24173 # Without the "./", some shells look in PATH for config.status.
24174 : ${CONFIG_STATUS=./config.status}
24176 echo creating $CONFIG_STATUS
24177 rm -f $CONFIG_STATUS
24178 cat > $CONFIG_STATUS <<EOF
24179 #! /bin/sh
24180 # Generated automatically by configure.
24181 # Run this file to recreate the current configuration.
24182 # This directory was configured as follows,
24183 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24185 # $0 $ac_configure_args
24187 # Compiler output produced by configure, useful for debugging
24188 # configure, is in ./config.log if it exists.
24190 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24191 for ac_option
24193 case "\$ac_option" in
24194 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24195 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24196 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24197 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24198 echo "$CONFIG_STATUS generated by autoconf version 2.13"
24199 exit 0 ;;
24200 -help | --help | --hel | --he | --h)
24201 echo "\$ac_cs_usage"; exit 0 ;;
24202 *) echo "\$ac_cs_usage"; exit 1 ;;
24203 esac
24204 done
24206 ac_given_srcdir=$srcdir
24207 ac_given_INSTALL="$INSTALL"
24209 trap 'rm -fr `echo "Makefile \
24210 include/Makefile src/Makefile \
24211 libmath/Makefile libio/Makefile libsupc++/Makefile \
24212 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24214 cat >> $CONFIG_STATUS <<EOF
24216 # Protect against being on the right side of a sed subst in config.status.
24217 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24218 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24219 $ac_vpsub
24220 $extrasub
24221 s%@SHELL@%$SHELL%g
24222 s%@CFLAGS@%$CFLAGS%g
24223 s%@CPPFLAGS@%$CPPFLAGS%g
24224 s%@CXXFLAGS@%$CXXFLAGS%g
24225 s%@FFLAGS@%$FFLAGS%g
24226 s%@DEFS@%$DEFS%g
24227 s%@LDFLAGS@%$LDFLAGS%g
24228 s%@LIBS@%$LIBS%g
24229 s%@exec_prefix@%$exec_prefix%g
24230 s%@prefix@%$prefix%g
24231 s%@program_transform_name@%$program_transform_name%g
24232 s%@bindir@%$bindir%g
24233 s%@sbindir@%$sbindir%g
24234 s%@libexecdir@%$libexecdir%g
24235 s%@datadir@%$datadir%g
24236 s%@sysconfdir@%$sysconfdir%g
24237 s%@sharedstatedir@%$sharedstatedir%g
24238 s%@localstatedir@%$localstatedir%g
24239 s%@libdir@%$libdir%g
24240 s%@includedir@%$includedir%g
24241 s%@oldincludedir@%$oldincludedir%g
24242 s%@infodir@%$infodir%g
24243 s%@mandir@%$mandir%g
24244 s%@PACKAGE@%$PACKAGE%g
24245 s%@libtool_VERSION@%$libtool_VERSION%g
24246 s%@toplevel_srcdir@%$toplevel_srcdir%g
24247 s%@host@%$host%g
24248 s%@host_alias@%$host_alias%g
24249 s%@host_cpu@%$host_cpu%g
24250 s%@host_vendor@%$host_vendor%g
24251 s%@host_os@%$host_os%g
24252 s%@target@%$target%g
24253 s%@target_alias@%$target_alias%g
24254 s%@target_cpu@%$target_cpu%g
24255 s%@target_vendor@%$target_vendor%g
24256 s%@target_os@%$target_os%g
24257 s%@build@%$build%g
24258 s%@build_alias@%$build_alias%g
24259 s%@build_cpu@%$build_cpu%g
24260 s%@build_vendor@%$build_vendor%g
24261 s%@build_os@%$build_os%g
24262 s%@glibcpp_builddir@%$glibcpp_builddir%g
24263 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
24264 s%@AWK@%$AWK%g
24265 s%@LN_S@%$LN_S%g
24266 s%@glibcpp_basedir@%$glibcpp_basedir%g
24267 s%@CC@%$CC%g
24268 s%@glibcpp_CXX@%$glibcpp_CXX%g
24269 s%@AS@%$AS%g
24270 s%@AR@%$AR%g
24271 s%@RANLIB@%$RANLIB%g
24272 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24273 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24274 s%@INSTALL_DATA@%$INSTALL_DATA%g
24275 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24276 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24277 s%@MAINT@%$MAINT%g
24278 s%@EXEEXT@%$EXEEXT%g
24279 s%@VERSION@%$VERSION%g
24280 s%@ACLOCAL@%$ACLOCAL%g
24281 s%@AUTOCONF@%$AUTOCONF%g
24282 s%@AUTOMAKE@%$AUTOMAKE%g
24283 s%@AUTOHEADER@%$AUTOHEADER%g
24284 s%@MAKEINFO@%$MAKEINFO%g
24285 s%@SET_MAKE@%$SET_MAKE%g
24286 s%@OBJEXT@%$OBJEXT%g
24287 s%@STRIP@%$STRIP%g
24288 s%@LIBTOOL@%$LIBTOOL%g
24289 s%@CXXCPP@%$CXXCPP%g
24290 s%@enable_shared@%$enable_shared%g
24291 s%@enable_static@%$enable_static%g
24292 s%@ifGNUmake@%$ifGNUmake%g
24293 s%@GLIBCPP_BUILD_PCH_TRUE@%$GLIBCPP_BUILD_PCH_TRUE%g
24294 s%@GLIBCPP_BUILD_PCH_FALSE@%$GLIBCPP_BUILD_PCH_FALSE%g
24295 s%@CPP@%$CPP%g
24296 s%@CSTDIO_H@%$CSTDIO_H%g
24297 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24298 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24299 s%@CCODECVT_C@%$CCODECVT_C%g
24300 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
24301 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
24302 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
24303 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
24304 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
24305 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
24306 s%@libio_la@%$libio_la%g
24307 s%@check_msgfmt@%$check_msgfmt%g
24308 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24309 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24310 s%@glibcpp_localedir@%$glibcpp_localedir%g
24311 s%@USE_NLS@%$USE_NLS%g
24312 s%@CLOCALE_H@%$CLOCALE_H%g
24313 s%@CCODECVT_H@%$CCODECVT_H%g
24314 s%@CMESSAGES_H@%$CMESSAGES_H%g
24315 s%@CCODECVT_CC@%$CCODECVT_CC%g
24316 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24317 s%@CCTYPE_CC@%$CCTYPE_CC%g
24318 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24319 s%@CMONEY_CC@%$CMONEY_CC%g
24320 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24321 s%@CTIME_H@%$CTIME_H%g
24322 s%@CTIME_CC@%$CTIME_CC%g
24323 s%@CLOCALE_CC@%$CLOCALE_CC%g
24324 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24325 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24326 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24327 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24328 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24329 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24330 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24331 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24332 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24333 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24334 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24335 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24336 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24337 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24338 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24339 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24340 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24341 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24342 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24343 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24344 s%@GLIBCPP_TEST_WCHAR_T_TRUE@%$GLIBCPP_TEST_WCHAR_T_TRUE%g
24345 s%@GLIBCPP_TEST_WCHAR_T_FALSE@%$GLIBCPP_TEST_WCHAR_T_FALSE%g
24346 s%@WERROR@%$WERROR%g
24347 s%@baseline_file@%$baseline_file%g
24348 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
24349 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
24350 s%@SYMVER_MAP@%$SYMVER_MAP%g
24351 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24352 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24353 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24354 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24355 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24356 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24357 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24358 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24359 s%@gxx_include_dir@%$gxx_include_dir%g
24360 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24361 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24362 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
24363 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24364 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24365 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24366 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24367 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24368 s%@WARN_FLAGS@%$WARN_FLAGS%g
24369 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24371 CEOF
24374 cat >> $CONFIG_STATUS <<\EOF
24376 # Split the substitutions into bite-sized pieces for seds with
24377 # small command number limits, like on Digital OSF/1 and HP-UX.
24378 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24379 ac_file=1 # Number of current file.
24380 ac_beg=1 # First line for current file.
24381 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24382 ac_more_lines=:
24383 ac_sed_cmds=""
24384 while $ac_more_lines; do
24385 if test $ac_beg -gt 1; then
24386 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24387 else
24388 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24390 if test ! -s conftest.s$ac_file; then
24391 ac_more_lines=false
24392 rm -f conftest.s$ac_file
24393 else
24394 if test -z "$ac_sed_cmds"; then
24395 ac_sed_cmds="sed -f conftest.s$ac_file"
24396 else
24397 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24399 ac_file=`expr $ac_file + 1`
24400 ac_beg=$ac_end
24401 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24403 done
24404 if test -z "$ac_sed_cmds"; then
24405 ac_sed_cmds=cat
24409 cat >> $CONFIG_STATUS <<EOF
24411 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24412 include/Makefile src/Makefile \
24413 libmath/Makefile libio/Makefile libsupc++/Makefile \
24414 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
24416 cat >> $CONFIG_STATUS <<\EOF
24417 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24418 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24419 case "$ac_file" in
24420 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24421 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24422 *) ac_file_in="${ac_file}.in" ;;
24423 esac
24425 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24427 # Remove last slash and all that follows it. Not all systems have dirname.
24428 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24429 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24430 # The file is in a subdirectory.
24431 test ! -d "$ac_dir" && mkdir "$ac_dir"
24432 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24433 # A "../" for each directory in $ac_dir_suffix.
24434 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24435 else
24436 ac_dir_suffix= ac_dots=
24439 case "$ac_given_srcdir" in
24440 .) srcdir=.
24441 if test -z "$ac_dots"; then top_srcdir=.
24442 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24443 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24444 *) # Relative path.
24445 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24446 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24447 esac
24449 case "$ac_given_INSTALL" in
24450 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24451 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24452 esac
24454 echo creating "$ac_file"
24455 rm -f "$ac_file"
24456 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24457 case "$ac_file" in
24458 *Makefile*) ac_comsub="1i\\
24459 # $configure_input" ;;
24460 *) ac_comsub= ;;
24461 esac
24463 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24464 sed -e "$ac_comsub
24465 s%@configure_input@%$configure_input%g
24466 s%@srcdir@%$srcdir%g
24467 s%@top_srcdir@%$top_srcdir%g
24468 s%@INSTALL@%$INSTALL%g
24469 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24470 fi; done
24471 rm -f conftest.s*
24473 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24474 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24476 # ac_d sets the value in "#define NAME VALUE" lines.
24477 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24478 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24479 ac_dC='\3'
24480 ac_dD='%g'
24481 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24482 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24483 ac_uB='\([ ]\)%\1#\2define\3'
24484 ac_uC=' '
24485 ac_uD='\4%g'
24486 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24487 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24488 ac_eB='$%\1#\2define\3'
24489 ac_eC=' '
24490 ac_eD='%g'
24492 if test "${CONFIG_HEADERS+set}" != set; then
24494 cat >> $CONFIG_STATUS <<EOF
24495 CONFIG_HEADERS="config.h"
24497 cat >> $CONFIG_STATUS <<\EOF
24499 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24500 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24501 case "$ac_file" in
24502 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24503 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24504 *) ac_file_in="${ac_file}.in" ;;
24505 esac
24507 echo creating $ac_file
24509 rm -f conftest.frag conftest.in conftest.out
24510 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24511 cat $ac_file_inputs > conftest.in
24515 # Transform confdefs.h into a sed script conftest.vals that substitutes
24516 # the proper values into config.h.in to produce config.h. And first:
24517 # Protect against being on the right side of a sed subst in config.status.
24518 # Protect against being in an unquoted here document in config.status.
24519 rm -f conftest.vals
24520 cat > conftest.hdr <<\EOF
24521 s/[\\&%]/\\&/g
24522 s%[\\$`]%\\&%g
24523 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24524 s%ac_d%ac_u%gp
24525 s%ac_u%ac_e%gp
24527 sed -n -f conftest.hdr confdefs.h > conftest.vals
24528 rm -f conftest.hdr
24530 # This sed command replaces #undef with comments. This is necessary, for
24531 # example, in the case of _POSIX_SOURCE, which is predefined and required
24532 # on some systems where configure will not decide to define it.
24533 cat >> conftest.vals <<\EOF
24534 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24537 # Break up conftest.vals because some shells have a limit on
24538 # the size of here documents, and old seds have small limits too.
24540 rm -f conftest.tail
24541 while :
24543 ac_lines=`grep -c . conftest.vals`
24544 # grep -c gives empty output for an empty file on some AIX systems.
24545 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24546 # Write a limited-size here document to conftest.frag.
24547 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24548 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24549 echo 'CEOF
24550 sed -f conftest.frag conftest.in > conftest.out
24551 rm -f conftest.in
24552 mv conftest.out conftest.in
24553 ' >> $CONFIG_STATUS
24554 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24555 rm -f conftest.vals
24556 mv conftest.tail conftest.vals
24557 done
24558 rm -f conftest.vals
24560 cat >> $CONFIG_STATUS <<\EOF
24561 rm -f conftest.frag conftest.h
24562 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24563 cat conftest.in >> conftest.h
24564 rm -f conftest.in
24565 if cmp -s $ac_file conftest.h 2>/dev/null; then
24566 echo "$ac_file is unchanged"
24567 rm -f conftest.h
24568 else
24569 # Remove last slash and all that follows it. Not all systems have dirname.
24570 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24571 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24572 # The file is in a subdirectory.
24573 test ! -d "$ac_dir" && mkdir "$ac_dir"
24575 rm -f $ac_file
24576 mv conftest.h $ac_file
24578 fi; done
24581 cat >> $CONFIG_STATUS <<EOF
24583 srcdir=${srcdir}
24584 host=${host}
24585 target=${target}
24586 with_target_subdir=${with_target_subdir}
24587 with_build_subdir=${with_build_subdir}
24588 with_multisubdir=${with_multisubdir}
24589 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24590 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24591 glibcpp_basedir=${glibcpp_basedir}
24592 CC="${CC}"
24593 CXX="${CXX}"
24594 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24597 cat >> $CONFIG_STATUS <<\EOF
24598 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24599 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24600 if test -n "$CONFIG_FILES"; then
24601 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24602 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24603 # Ony modify Makefiles that are just being created.
24604 case " $CONFIG_FILES" in
24605 *" Makefile"*)
24606 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24608 esac
24609 case $CONFIG_FILES in
24610 *src/Makefile*)
24611 grep '^MULTISUBDIR =' Makefile >> src/Makefile
24613 esac
24614 case $CONFIG_FILES in
24615 *libsupc++/Makefile*)
24616 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24618 esac
24621 chmod +x mkcheck
24622 chmod +x testsuite_flags
24623 exit 0
24625 chmod +x $CONFIG_STATUS
24626 rm -fr confdefs* $ac_clean_files
24627 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24631 # Sanity checking & User-visible messages.
24632 # Checks down here, otherwise they get scrolled off before
24633 # the user will notice.
24635 # Trying to get more people to read documentation. Possibly remove
24636 # check and warn all the time. There is no "informational" AC_MSG_
24637 # macro, so these are going to be printed even when --quiet/--silent
24638 # is given.
24639 if test ! -f stamp-sanity-warned; then
24640 touch stamp-sanity-warned
24641 echo ""
24642 echo "Please make certain that you read the installation information here:"
24643 echo " faster => ${srcdir}/docs/html/install.html"
24644 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24645 echo ""
24646 echo "and the configuration information here:"
24647 echo " faster => ${srcdir}/docs/html/configopts.html"
24648 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24649 echo ""
24650 echo "before proceeding with ${_cv_gnu_make_command}."
24651 echo ""