* config/ia64/ia64.md: Follow recent emit_note API change.
[official-gcc.git] / libstdc++-v3 / configure
blob311519195309c33b2d6a7c6d61e761a55a39f40e
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 # Set up safe default values for all subsequent AM_CONDITIONAL tests.
1501 need_libmath=no
1502 enable_wchar_t=no
1503 #enable_debug=no
1504 #glibcpp_pch_comp=no
1505 #enable_cheaders=c
1506 #c_compatibility=no
1507 #enable_abi_check=no
1508 #enable_symvers=no
1510 # Find platform-specific directories containing configuration info. In
1511 # addition to possibly modifying the same flags, it also sets up symlinks.
1513 . ${glibcpp_basedir}/configure.host
1514 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1515 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1519 am__api_version="1.4"
1520 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1521 echo "configure:1522: checking whether build environment is sane" >&5
1522 # Just in case
1523 sleep 1
1524 echo timestamp > conftestfile
1525 # Do `set' in a subshell so we don't clobber the current shell's
1526 # arguments. Must try -L first in case configure is actually a
1527 # symlink; some systems play weird games with the mod time of symlinks
1528 # (eg FreeBSD returns the mod time of the symlink's containing
1529 # directory).
1530 if (
1531 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1532 if test "$*" = "X"; then
1533 # -L didn't work.
1534 set X `ls -t $srcdir/configure conftestfile`
1536 if test "$*" != "X $srcdir/configure conftestfile" \
1537 && test "$*" != "X conftestfile $srcdir/configure"; then
1539 # If neither matched, then we have a broken ls. This can happen
1540 # if, for instance, CONFIG_SHELL is bash and it inherits a
1541 # broken ls alias from the environment. This has actually
1542 # happened. Such a system could not be considered "sane".
1543 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1544 alias in your environment" 1>&2; exit 1; }
1547 test "$2" = conftestfile
1549 then
1550 # Ok.
1552 else
1553 { echo "configure: error: newly created file is older than distributed files!
1554 Check your system clock" 1>&2; exit 1; }
1556 rm -f conftest*
1557 echo "$ac_t""yes" 1>&6
1558 if test "$program_transform_name" = s,x,x,; then
1559 program_transform_name=
1560 else
1561 # Double any \ or $. echo might interpret backslashes.
1562 cat <<\EOF_SED > conftestsed
1563 s,\\,\\\\,g; s,\$,$$,g
1564 EOF_SED
1565 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1566 rm -f conftestsed
1568 test "$program_prefix" != NONE &&
1569 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1570 # Use a double $ so make ignores it.
1571 test "$program_suffix" != NONE &&
1572 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1574 # sed with no file args requires a program.
1575 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1577 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1578 echo "configure:1579: checking whether ${MAKE-make} sets \${MAKE}" >&5
1579 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1580 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1581 echo $ac_n "(cached) $ac_c" 1>&6
1582 else
1583 cat > conftestmake <<\EOF
1584 all:
1585 @echo 'ac_maketemp="${MAKE}"'
1587 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1588 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1589 if test -n "$ac_maketemp"; then
1590 eval ac_cv_prog_make_${ac_make}_set=yes
1591 else
1592 eval ac_cv_prog_make_${ac_make}_set=no
1594 rm -f conftestmake
1596 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1597 echo "$ac_t""yes" 1>&6
1598 SET_MAKE=
1599 else
1600 echo "$ac_t""no" 1>&6
1601 SET_MAKE="MAKE=${MAKE-make}"
1605 PACKAGE=$PACKAGE
1607 VERSION=$gcc_version
1609 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1610 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1612 cat >> confdefs.h <<EOF
1613 #define PACKAGE "$PACKAGE"
1616 cat >> confdefs.h <<EOF
1617 #define VERSION "$VERSION"
1622 missing_dir=`cd $ac_aux_dir && pwd`
1623 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1624 echo "configure:1625: checking for working aclocal-${am__api_version}" >&5
1625 # Run test in a subshell; some versions of sh will print an error if
1626 # an executable is not found, even if stderr is redirected.
1627 # Redirect stdin to placate older versions of autoconf. Sigh.
1628 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1629 ACLOCAL=aclocal-${am__api_version}
1630 echo "$ac_t""found" 1>&6
1631 else
1632 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1633 echo "$ac_t""missing" 1>&6
1636 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1637 echo "configure:1638: checking for working autoconf" >&5
1638 # Run test in a subshell; some versions of sh will print an error if
1639 # an executable is not found, even if stderr is redirected.
1640 # Redirect stdin to placate older versions of autoconf. Sigh.
1641 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1642 AUTOCONF=autoconf
1643 echo "$ac_t""found" 1>&6
1644 else
1645 AUTOCONF="$missing_dir/missing autoconf"
1646 echo "$ac_t""missing" 1>&6
1649 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1650 echo "configure:1651: checking for working automake-${am__api_version}" >&5
1651 # Run test in a subshell; some versions of sh will print an error if
1652 # an executable is not found, even if stderr is redirected.
1653 # Redirect stdin to placate older versions of autoconf. Sigh.
1654 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1655 AUTOMAKE=automake-${am__api_version}
1656 echo "$ac_t""found" 1>&6
1657 else
1658 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1659 echo "$ac_t""missing" 1>&6
1662 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1663 echo "configure:1664: checking for working autoheader" >&5
1664 # Run test in a subshell; some versions of sh will print an error if
1665 # an executable is not found, even if stderr is redirected.
1666 # Redirect stdin to placate older versions of autoconf. Sigh.
1667 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1668 AUTOHEADER=autoheader
1669 echo "$ac_t""found" 1>&6
1670 else
1671 AUTOHEADER="$missing_dir/missing autoheader"
1672 echo "$ac_t""missing" 1>&6
1675 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1676 echo "configure:1677: checking for working makeinfo" >&5
1677 # Run test in a subshell; some versions of sh will print an error if
1678 # an executable is not found, even if stderr is redirected.
1679 # Redirect stdin to placate older versions of autoconf. Sigh.
1680 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1681 MAKEINFO=makeinfo
1682 echo "$ac_t""found" 1>&6
1683 else
1684 MAKEINFO="$missing_dir/missing makeinfo"
1685 echo "$ac_t""missing" 1>&6
1694 # Check whether --enable-shared or --disable-shared was given.
1695 if test "${enable_shared+set}" = set; then
1696 enableval="$enable_shared"
1697 p=${PACKAGE-default}
1698 case $enableval in
1699 yes) enable_shared=yes ;;
1700 no) enable_shared=no ;;
1702 enable_shared=no
1703 # Look at the argument we got. We use all the common list separators.
1704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1705 for pkg in $enableval; do
1706 if test "X$pkg" = "X$p"; then
1707 enable_shared=yes
1709 done
1710 IFS="$ac_save_ifs"
1712 esac
1713 else
1714 enable_shared=yes
1717 # Check whether --enable-static or --disable-static was given.
1718 if test "${enable_static+set}" = set; then
1719 enableval="$enable_static"
1720 p=${PACKAGE-default}
1721 case $enableval in
1722 yes) enable_static=yes ;;
1723 no) enable_static=no ;;
1725 enable_static=no
1726 # Look at the argument we got. We use all the common list separators.
1727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1728 for pkg in $enableval; do
1729 if test "X$pkg" = "X$p"; then
1730 enable_static=yes
1732 done
1733 IFS="$ac_save_ifs"
1735 esac
1736 else
1737 enable_static=yes
1740 # Check whether --enable-fast-install or --disable-fast-install was given.
1741 if test "${enable_fast_install+set}" = set; then
1742 enableval="$enable_fast_install"
1743 p=${PACKAGE-default}
1744 case $enableval in
1745 yes) enable_fast_install=yes ;;
1746 no) enable_fast_install=no ;;
1748 enable_fast_install=no
1749 # Look at the argument we got. We use all the common list separators.
1750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1751 for pkg in $enableval; do
1752 if test "X$pkg" = "X$p"; then
1753 enable_fast_install=yes
1755 done
1756 IFS="$ac_save_ifs"
1758 esac
1759 else
1760 enable_fast_install=yes
1763 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1764 if test "${with_gnu_ld+set}" = set; then
1765 withval="$with_gnu_ld"
1766 test "$withval" = no || with_gnu_ld=yes
1767 else
1768 with_gnu_ld=no
1771 ac_prog=ld
1772 if test "$GCC" = yes; then
1773 # Check if gcc -print-prog-name=ld gives a path.
1774 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1775 echo "configure:1776: checking for ld used by GCC" >&5
1776 case $host in
1777 *-*-mingw*)
1778 # gcc leaves a trailing carriage return which upsets mingw
1779 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1781 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1782 esac
1783 case $ac_prog in
1784 # Accept absolute paths.
1785 [\\/]* | [A-Za-z]:[\\/]*)
1786 re_direlt='/[^/][^/]*/\.\./'
1787 # Canonicalize the path of ld
1788 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1789 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1790 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1791 done
1792 test -z "$LD" && LD="$ac_prog"
1795 # If it fails, then pretend we aren't using GCC.
1796 ac_prog=ld
1799 # If it is relative, then search for the first ld in PATH.
1800 with_gnu_ld=unknown
1802 esac
1803 elif test "$with_gnu_ld" = yes; then
1804 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1805 echo "configure:1806: checking for GNU ld" >&5
1806 else
1807 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1808 echo "configure:1809: checking for non-GNU ld" >&5
1810 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1812 else
1813 if test -z "$LD"; then
1814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1815 for ac_dir in $PATH; do
1816 test -z "$ac_dir" && ac_dir=.
1817 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1818 lt_cv_path_LD="$ac_dir/$ac_prog"
1819 # Check to see if the program is GNU ld. I'd rather use --version,
1820 # but apparently some GNU ld's only accept -v.
1821 # Break only if it was the GNU/non-GNU ld that we prefer.
1822 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1823 test "$with_gnu_ld" != no && break
1824 else
1825 test "$with_gnu_ld" != yes && break
1828 done
1829 IFS="$ac_save_ifs"
1830 else
1831 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1835 LD="$lt_cv_path_LD"
1836 if test -n "$LD"; then
1837 echo "$ac_t""$LD" 1>&6
1838 else
1839 echo "$ac_t""no" 1>&6
1841 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1842 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1843 echo "configure:1844: checking if the linker ($LD) is GNU ld" >&5
1844 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1846 else
1847 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1848 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1849 lt_cv_prog_gnu_ld=yes
1850 else
1851 lt_cv_prog_gnu_ld=no
1855 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1856 with_gnu_ld=$lt_cv_prog_gnu_ld
1859 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1860 echo "configure:1861: checking for $LD option to reload object files" >&5
1861 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1863 else
1864 lt_cv_ld_reload_flag='-r'
1867 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1868 reload_flag=$lt_cv_ld_reload_flag
1869 test -n "$reload_flag" && reload_flag=" $reload_flag"
1871 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1872 echo "configure:1873: checking for BSD-compatible nm" >&5
1873 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1875 else
1876 if test -n "$NM"; then
1877 # Let the user override the test.
1878 lt_cv_path_NM="$NM"
1879 else
1880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1881 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1882 test -z "$ac_dir" && ac_dir=.
1883 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1884 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1885 # Check to see if the nm accepts a BSD-compat flag.
1886 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1887 # nm: unknown option "B" ignored
1888 # Tru64's nm complains that /dev/null is an invalid object file
1889 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1890 lt_cv_path_NM="$tmp_nm -B"
1891 break
1892 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1893 lt_cv_path_NM="$tmp_nm -p"
1894 break
1895 else
1896 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1897 continue # so that we can try to find one that supports BSD flags
1900 done
1901 IFS="$ac_save_ifs"
1902 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1906 NM="$lt_cv_path_NM"
1907 echo "$ac_t""$NM" 1>&6
1909 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1910 echo "configure:1911: checking how to recognise dependant libraries" >&5
1911 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1913 else
1914 lt_cv_file_magic_cmd='$MAGIC_CMD'
1915 lt_cv_file_magic_test_file=
1916 lt_cv_deplibs_check_method='unknown'
1917 # Need to set the preceding variable on all platforms that support
1918 # interlibrary dependencies.
1919 # 'none' -- dependencies not supported.
1920 # `unknown' -- same as none, but documents that we really don't know.
1921 # 'pass_all' -- all dependencies passed with no checks.
1922 # 'test_compile' -- check by making test program.
1923 # 'file_magic [regex]' -- check by looking for files in library path
1924 # which responds to the $file_magic_cmd with a given egrep regex.
1925 # If you have `file' or equivalent on your system and you're not sure
1926 # whether `pass_all' will *always* work, you probably want this one.
1928 case $host_os in
1929 aix*)
1930 lt_cv_deplibs_check_method=pass_all
1933 beos*)
1934 lt_cv_deplibs_check_method=pass_all
1937 bsdi4*)
1938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1939 lt_cv_file_magic_cmd='/usr/bin/file -L'
1940 lt_cv_file_magic_test_file=/shlib/libc.so
1943 cygwin* | mingw* |pw32*)
1944 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1945 lt_cv_file_magic_cmd='$OBJDUMP -f'
1948 darwin* | rhapsody*)
1949 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1950 lt_cv_file_magic_cmd='/usr/bin/file -L'
1951 case "$host_os" in
1952 rhapsody* | darwin1.012)
1953 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1955 *) # Darwin 1.3 on
1956 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1958 esac
1961 freebsd* )
1962 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1963 case $host_cpu in
1964 i*86 )
1965 # Not sure whether the presence of OpenBSD here was a mistake.
1966 # Let's accept both of them until this is cleared up.
1967 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1968 lt_cv_file_magic_cmd=/usr/bin/file
1969 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1971 esac
1972 else
1973 lt_cv_deplibs_check_method=pass_all
1977 gnu*)
1978 lt_cv_deplibs_check_method=pass_all
1981 hpux10.20*|hpux11*)
1982 case $host_cpu in
1983 hppa*)
1984 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1985 lt_cv_file_magic_cmd=/usr/bin/file
1986 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1988 ia64*)
1989 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1990 lt_cv_file_magic_cmd=/usr/bin/file
1991 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1993 esac
1996 irix5* | irix6*)
1997 case $host_os in
1998 irix5*)
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 32-bit MSB dynamic lib MIPS - version 1"
2003 case $LD in
2004 *-32|*"-32 ") libmagic=32-bit;;
2005 *-n32|*"-n32 ") libmagic=N32;;
2006 *-64|*"-64 ") libmagic=64-bit;;
2007 *) libmagic=never-match;;
2008 esac
2009 # this will be overridden with pass_all, but let us keep it just in case
2010 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2012 esac
2013 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2014 lt_cv_deplibs_check_method=pass_all
2017 # This must be Linux ELF.
2018 linux-gnu*)
2019 case $host_cpu in
2020 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2021 lt_cv_deplibs_check_method=pass_all ;;
2023 # glibc up to 2.1.1 does not perform some relocations on ARM
2024 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2025 esac
2026 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2029 netbsd*)
2030 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2031 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2032 else
2033 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2037 newsos6)
2038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2039 lt_cv_file_magic_cmd=/usr/bin/file
2040 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2043 osf3* | osf4* | osf5*)
2044 # this will be overridden with pass_all, but let us keep it just in case
2045 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2046 lt_cv_file_magic_test_file=/shlib/libc.so
2047 lt_cv_deplibs_check_method=pass_all
2050 sco3.2v5*)
2051 lt_cv_deplibs_check_method=pass_all
2054 solaris*)
2055 lt_cv_deplibs_check_method=pass_all
2056 lt_cv_file_magic_test_file=/lib/libc.so
2059 sysv5uw[78]* | sysv4*uw2*)
2060 lt_cv_deplibs_check_method=pass_all
2063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2064 case $host_vendor in
2065 ncr)
2066 lt_cv_deplibs_check_method=pass_all
2068 motorola)
2069 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]'
2070 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2072 esac
2074 esac
2078 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2079 file_magic_cmd=$lt_cv_file_magic_cmd
2080 deplibs_check_method=$lt_cv_deplibs_check_method
2082 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2083 echo "configure:2084: checking for object suffix" >&5
2084 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2086 else
2087 rm -f conftest*
2088 echo 'int i = 1;' > conftest.$ac_ext
2089 if { (eval echo configure:2090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2090 for ac_file in conftest.*; do
2091 case $ac_file in
2092 *.c) ;;
2093 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2094 esac
2095 done
2096 else
2097 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2099 rm -f conftest*
2102 echo "$ac_t""$ac_cv_objext" 1>&6
2103 OBJEXT=$ac_cv_objext
2104 ac_objext=$ac_cv_objext
2106 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2108 # Only perform the check for file, if the check method requires it
2109 case $deplibs_check_method in
2110 file_magic*)
2111 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2112 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2113 echo "configure:2114: checking for ${ac_tool_prefix}file" >&5
2114 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2115 echo $ac_n "(cached) $ac_c" 1>&6
2116 else
2117 case $MAGIC_CMD in
2119 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2121 ?:/*)
2122 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2125 ac_save_MAGIC_CMD="$MAGIC_CMD"
2126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2127 ac_dummy="/usr/bin:$PATH"
2128 for ac_dir in $ac_dummy; do
2129 test -z "$ac_dir" && ac_dir=.
2130 if test -f $ac_dir/${ac_tool_prefix}file; then
2131 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2132 if test -n "$file_magic_test_file"; then
2133 case $deplibs_check_method in
2134 "file_magic "*)
2135 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2137 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2138 egrep "$file_magic_regex" > /dev/null; then
2140 else
2141 cat <<EOF 1>&2
2143 *** Warning: the command libtool uses to detect shared libraries,
2144 *** $file_magic_cmd, produces output that libtool cannot recognize.
2145 *** The result is that libtool may fail to recognize shared libraries
2146 *** as such. This will affect the creation of libtool libraries that
2147 *** depend on shared libraries, but programs linked with such libtool
2148 *** libraries will work regardless of this problem. Nevertheless, you
2149 *** may want to report the problem to your system manager and/or to
2150 *** bug-libtool@gnu.org
2153 fi ;;
2154 esac
2156 break
2158 done
2159 IFS="$ac_save_ifs"
2160 MAGIC_CMD="$ac_save_MAGIC_CMD"
2162 esac
2165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2166 if test -n "$MAGIC_CMD"; then
2167 echo "$ac_t""$MAGIC_CMD" 1>&6
2168 else
2169 echo "$ac_t""no" 1>&6
2172 if test -z "$lt_cv_path_MAGIC_CMD"; then
2173 if test -n "$ac_tool_prefix"; then
2174 echo $ac_n "checking for file""... $ac_c" 1>&6
2175 echo "configure:2176: checking for file" >&5
2176 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2178 else
2179 case $MAGIC_CMD in
2181 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2183 ?:/*)
2184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2187 ac_save_MAGIC_CMD="$MAGIC_CMD"
2188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2189 ac_dummy="/usr/bin:$PATH"
2190 for ac_dir in $ac_dummy; do
2191 test -z "$ac_dir" && ac_dir=.
2192 if test -f $ac_dir/file; then
2193 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2194 if test -n "$file_magic_test_file"; then
2195 case $deplibs_check_method in
2196 "file_magic "*)
2197 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2198 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2199 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2200 egrep "$file_magic_regex" > /dev/null; then
2202 else
2203 cat <<EOF 1>&2
2205 *** Warning: the command libtool uses to detect shared libraries,
2206 *** $file_magic_cmd, produces output that libtool cannot recognize.
2207 *** The result is that libtool may fail to recognize shared libraries
2208 *** as such. This will affect the creation of libtool libraries that
2209 *** depend on shared libraries, but programs linked with such libtool
2210 *** libraries will work regardless of this problem. Nevertheless, you
2211 *** may want to report the problem to your system manager and/or to
2212 *** bug-libtool@gnu.org
2215 fi ;;
2216 esac
2218 break
2220 done
2221 IFS="$ac_save_ifs"
2222 MAGIC_CMD="$ac_save_MAGIC_CMD"
2224 esac
2227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2228 if test -n "$MAGIC_CMD"; then
2229 echo "$ac_t""$MAGIC_CMD" 1>&6
2230 else
2231 echo "$ac_t""no" 1>&6
2234 else
2235 MAGIC_CMD=:
2241 esac
2243 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $ac_word" >&5
2247 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2249 else
2250 if test -n "$RANLIB"; then
2251 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2252 else
2253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2254 ac_dummy="$PATH"
2255 for ac_dir in $ac_dummy; do
2256 test -z "$ac_dir" && ac_dir=.
2257 if test -f $ac_dir/$ac_word; then
2258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2259 break
2261 done
2262 IFS="$ac_save_ifs"
2265 RANLIB="$ac_cv_prog_RANLIB"
2266 if test -n "$RANLIB"; then
2267 echo "$ac_t""$RANLIB" 1>&6
2268 else
2269 echo "$ac_t""no" 1>&6
2273 if test -z "$ac_cv_prog_RANLIB"; then
2274 if test -n "$ac_tool_prefix"; then
2275 # Extract the first word of "ranlib", so it can be a program name with args.
2276 set dummy ranlib; ac_word=$2
2277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2278 echo "configure:2279: checking for $ac_word" >&5
2279 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2281 else
2282 if test -n "$RANLIB"; then
2283 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2284 else
2285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2286 ac_dummy="$PATH"
2287 for ac_dir in $ac_dummy; do
2288 test -z "$ac_dir" && ac_dir=.
2289 if test -f $ac_dir/$ac_word; then
2290 ac_cv_prog_RANLIB="ranlib"
2291 break
2293 done
2294 IFS="$ac_save_ifs"
2295 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2298 RANLIB="$ac_cv_prog_RANLIB"
2299 if test -n "$RANLIB"; then
2300 echo "$ac_t""$RANLIB" 1>&6
2301 else
2302 echo "$ac_t""no" 1>&6
2305 else
2306 RANLIB=":"
2310 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2311 set dummy ${ac_tool_prefix}strip; ac_word=$2
2312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2313 echo "configure:2314: checking for $ac_word" >&5
2314 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2316 else
2317 if test -n "$STRIP"; then
2318 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2319 else
2320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2321 ac_dummy="$PATH"
2322 for ac_dir in $ac_dummy; do
2323 test -z "$ac_dir" && ac_dir=.
2324 if test -f $ac_dir/$ac_word; then
2325 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2326 break
2328 done
2329 IFS="$ac_save_ifs"
2332 STRIP="$ac_cv_prog_STRIP"
2333 if test -n "$STRIP"; then
2334 echo "$ac_t""$STRIP" 1>&6
2335 else
2336 echo "$ac_t""no" 1>&6
2340 if test -z "$ac_cv_prog_STRIP"; then
2341 if test -n "$ac_tool_prefix"; then
2342 # Extract the first word of "strip", so it can be a program name with args.
2343 set dummy strip; ac_word=$2
2344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2345 echo "configure:2346: checking for $ac_word" >&5
2346 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2348 else
2349 if test -n "$STRIP"; then
2350 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2351 else
2352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2353 ac_dummy="$PATH"
2354 for ac_dir in $ac_dummy; do
2355 test -z "$ac_dir" && ac_dir=.
2356 if test -f $ac_dir/$ac_word; then
2357 ac_cv_prog_STRIP="strip"
2358 break
2360 done
2361 IFS="$ac_save_ifs"
2362 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2365 STRIP="$ac_cv_prog_STRIP"
2366 if test -n "$STRIP"; then
2367 echo "$ac_t""$STRIP" 1>&6
2368 else
2369 echo "$ac_t""no" 1>&6
2372 else
2373 STRIP=":"
2378 # Check for any special flags to pass to ltconfig.
2379 libtool_flags="--cache-file=$cache_file"
2380 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2381 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2382 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2383 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2384 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2385 libtool_flags="$libtool_flags --enable-dlopen"
2387 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2388 if test "${enable_libtool_lock+set}" = set; then
2389 enableval="$enable_libtool_lock"
2393 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2394 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2396 # Check whether --with-pic or --without-pic was given.
2397 if test "${with_pic+set}" = set; then
2398 withval="$with_pic"
2399 pic_mode="$withval"
2400 else
2401 pic_mode=default
2404 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2405 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2407 # Some flags need to be propagated to the compiler or linker for good
2408 # libtool support.
2409 case $host in
2410 *-*-irix6*)
2411 # Find out which ABI we are using.
2412 echo '#line 2413 "configure"' > conftest.$ac_ext
2413 if { (eval echo configure:2414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2414 if test "$lt_cv_prog_gnu_ld" = yes; then
2415 case `/usr/bin/file conftest.$ac_objext` in
2416 *32-bit*)
2417 LD="${LD-ld} -melf32bsmip"
2419 *N32*)
2420 LD="${LD-ld} -melf32bmipn32"
2422 *64-bit*)
2423 LD="${LD-ld} -melf64bmip"
2425 esac
2426 else
2427 case `/usr/bin/file conftest.$ac_objext` in
2428 *32-bit*)
2429 LD="${LD-ld} -32"
2431 *N32*)
2432 LD="${LD-ld} -n32"
2434 *64-bit*)
2435 LD="${LD-ld} -64"
2437 esac
2440 rm -rf conftest*
2443 ia64-*-hpux*)
2444 # Find out which ABI we are using.
2445 echo 'int i;' > conftest.$ac_ext
2446 if { (eval echo configure:2447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2447 case "`/usr/bin/file conftest.o`" in
2448 *ELF-32*)
2449 HPUX_IA64_MODE="32"
2451 *ELF-64*)
2452 HPUX_IA64_MODE="64"
2454 esac
2456 rm -rf conftest*
2459 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2460 # Find out which ABI we are using.
2461 echo 'int i;' > conftest.$ac_ext
2462 if { (eval echo configure:2463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2463 case "`/usr/bin/file conftest.o`" in
2464 *32-bit*)
2465 case $host in
2466 x86_64-*linux*)
2467 LD="${LD-ld} -m elf_i386"
2469 ppc64-*linux*)
2470 LD="${LD-ld} -m elf32ppclinux"
2472 s390x-*linux*)
2473 LD="${LD-ld} -m elf_s390"
2475 sparc64-*linux*)
2476 LD="${LD-ld} -m elf32_sparc"
2478 esac
2480 *64-bit*)
2481 case $host in
2482 x86_64-*linux*)
2483 LD="${LD-ld} -m elf_x86_64"
2485 ppc*-*linux*|powerpc*-*linux*)
2486 LD="${LD-ld} -m elf64ppc"
2488 s390*-*linux*)
2489 LD="${LD-ld} -m elf64_s390"
2491 sparc*-*linux*)
2492 LD="${LD-ld} -m elf64_sparc"
2494 esac
2496 esac
2498 rm -rf conftest*
2501 *-*-sco3.2v5*)
2502 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2503 SAVE_CFLAGS="$CFLAGS"
2504 CFLAGS="$CFLAGS -belf"
2505 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2506 echo "configure:2507: checking whether the C compiler needs -belf" >&5
2507 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2509 else
2511 ac_ext=c
2512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2513 ac_cpp='$CPP $CPPFLAGS'
2514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2516 cross_compiling=$ac_cv_prog_cc_cross
2518 cat > conftest.$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2522 int main() {
2524 ; return 0; }
2526 if { (eval echo configure:2527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2527 rm -rf conftest*
2528 lt_cv_cc_needs_belf=yes
2529 else
2530 echo "configure: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2532 rm -rf conftest*
2533 lt_cv_cc_needs_belf=no
2535 rm -f conftest*
2536 ac_ext=c
2537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2538 ac_cpp='$CPP $CPPFLAGS'
2539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2541 cross_compiling=$ac_cv_prog_cc_cross
2545 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2546 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2547 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2548 CFLAGS="$SAVE_CFLAGS"
2553 esac
2555 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2556 echo "configure:2557: checking how to run the C++ preprocessor" >&5
2557 if test -z "$CXXCPP"; then
2558 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2559 echo $ac_n "(cached) $ac_c" 1>&6
2560 else
2561 ac_ext=C
2562 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2563 ac_cpp='$CXXCPP $CPPFLAGS'
2564 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2565 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2566 cross_compiling=$ac_cv_prog_cxx_cross
2567 CXXCPP="${CXX-g++} -E"
2568 cat > conftest.$ac_ext <<EOF
2569 #line 2570 "configure"
2570 #include "confdefs.h"
2571 #include <stdlib.h>
2573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2574 { (eval echo configure:2575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2576 if test -z "$ac_err"; then
2578 else
2579 echo "$ac_err" >&5
2580 echo "configure: failed program was:" >&5
2581 cat conftest.$ac_ext >&5
2582 rm -rf conftest*
2583 CXXCPP=/lib/cpp
2585 rm -f conftest*
2586 ac_cv_prog_CXXCPP="$CXXCPP"
2587 ac_ext=c
2588 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2589 ac_cpp='$CPP $CPPFLAGS'
2590 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2591 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2592 cross_compiling=$ac_cv_prog_cc_cross
2595 CXXCPP="$ac_cv_prog_CXXCPP"
2596 echo "$ac_t""$CXXCPP" 1>&6
2599 # Save cache, so that ltconfig can load it
2600 cat > confcache <<\EOF
2601 # This file is a shell script that caches the results of configure
2602 # tests run on this system so they can be shared between configure
2603 # scripts and configure runs. It is not useful on other systems.
2604 # If it contains results you don't want to keep, you may remove or edit it.
2606 # By default, configure uses ./config.cache as the cache file,
2607 # creating it if it does not exist already. You can give configure
2608 # the --cache-file=FILE option to use a different cache file; that is
2609 # what configure does when it calls configure scripts in
2610 # subdirectories, so they share the cache.
2611 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2612 # config.status only pays attention to the cache file if you give it the
2613 # --recheck option to rerun configure.
2616 # The following way of writing the cache mishandles newlines in values,
2617 # but we know of no workaround that is simple, portable, and efficient.
2618 # So, don't put newlines in cache variables' values.
2619 # Ultrix sh set writes to stderr and can't be redirected directly,
2620 # and sets the high bit in the cache file unless we assign to the vars.
2621 (set) 2>&1 |
2622 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2623 *ac_space=\ *)
2624 # `set' does not quote correctly, so add quotes (double-quote substitution
2625 # turns \\\\ into \\, and sed turns \\ into \).
2626 sed -n \
2627 -e "s/'/'\\\\''/g" \
2628 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2631 # `set' quotes correctly as required by POSIX, so do not add quotes.
2632 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2634 esac >> confcache
2635 if cmp -s $cache_file confcache; then
2637 else
2638 if test -w $cache_file; then
2639 echo "updating cache $cache_file"
2640 cat confcache > $cache_file
2641 else
2642 echo "not updating unwritable cache $cache_file"
2645 rm -f confcache
2648 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2649 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2650 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2651 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2652 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2653 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2654 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2655 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2656 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2657 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2659 # Reload cache, that may have been modified by ltconfig
2660 if test -r "$cache_file"; then
2661 echo "loading cache $cache_file"
2662 . $cache_file
2663 else
2664 echo "creating cache $cache_file"
2665 > $cache_file
2669 # This can be used to rebuild libtool when needed
2670 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2672 # Always use our own libtool.
2673 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2675 # Redirect the config.log output again, so that the ltconfig log is not
2676 # clobbered by the next message.
2677 exec 5>>./config.log
2681 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2682 lt_save_CC="$CC"
2683 lt_save_CFLAGS="$CFLAGS"
2684 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2685 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2686 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2687 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2688 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2689 deplibs_check_method="$deplibs_check_method" \
2690 file_magic_cmd="$file_magic_cmd" \
2691 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2692 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2693 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2694 CC="$lt_save_CC"
2695 CFLAGS="$lt_save_CFLAGS"
2697 # Redirect the config.log output again, so that the ltconfig log is not
2698 # clobbered by the next message.
2699 exec 5>>./config.log
2709 # Check for c++ or library specific bits that don't require linking.
2710 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2711 echo "configure:2712: checking for GNU make" >&5
2712 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2714 else
2715 _cv_gnu_make_command='' ;
2716 for a in "${MAKE-make}" make gmake gnumake ; do
2717 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2718 then
2719 _cv_gnu_make_command=$a ;
2720 break;
2722 done ;
2726 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2727 if test "x$_cv_gnu_make_command" != "x" ; then
2728 ifGNUmake='' ;
2729 else
2730 ifGNUmake='#' ;
2734 #GLIBCPP_CHECK_COMPILER_VERSION
2736 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2737 ac_save_CXXFLAGS="$CXXFLAGS"
2738 CXXFLAGS='-Werror -Winvalid-pch -Wno-deprecated -x c++-header'
2740 echo $ac_n "checking for compiler that seems to compile .gch files""... $ac_c" 1>&6
2741 echo "configure:2742: checking for compiler that seems to compile .gch files" >&5
2742 if test x${glibcpp_pch_comp+set} != xset; then
2743 if eval "test \"`echo '$''{'glibcpp_pch_comp'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2745 else
2748 ac_ext=C
2749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2750 ac_cpp='$CXXCPP $CPPFLAGS'
2751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2753 cross_compiling=$ac_cv_prog_cxx_cross
2755 cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 #include <math.h>
2760 int main() {
2761 (0);
2762 ; return 0; }
2764 if { (eval echo configure:2765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2765 rm -rf conftest*
2766 glibcpp_pch_comp=yes
2767 else
2768 echo "configure: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2770 rm -rf conftest*
2771 glibcpp_pch_comp=no
2773 rm -f conftest*
2774 ac_ext=c
2775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2776 ac_cpp='$CPP $CPPFLAGS'
2777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2779 cross_compiling=$ac_cv_prog_cc_cross
2785 echo "$ac_t""$glibcpp_pch_comp" 1>&6
2787 CXXFLAGS="$ac_save_CXXFLAGS"
2790 if test "$glibcpp_pch_comp" = yes; then
2791 GLIBCPP_BUILD_PCH_TRUE=
2792 GLIBCPP_BUILD_PCH_FALSE='#'
2793 else
2794 GLIBCPP_BUILD_PCH_TRUE='#'
2795 GLIBCPP_BUILD_PCH_FALSE=
2797 if test "$glibcpp_pch_comp" = yes; then
2798 glibcpp_PCHFLAGS="-include bits/stdc++.h"
2799 else
2800 glibcpp_PCHFLAGS=""
2805 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2807 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2808 echo "configure:2809: checking for cstdio to use" >&5
2809 # Check whether --enable-cstdio or --disable-cstdio was given.
2810 if test "${enable_cstdio+set}" = set; then
2811 enableval="$enable_cstdio"
2812 if test x$enable_cstdio = xno; then
2813 enable_cstdio=stdio
2815 else
2816 enable_cstdio=stdio
2820 enable_cstdio_flag=$enable_cstdio
2822 case x${enable_cstdio_flag} in
2823 xstdio | x | xno | xnone | xyes)
2824 # default
2825 CSTDIO_H=config/io/c_io_stdio.h
2826 BASIC_FILE_H=config/io/basic_file_stdio.h
2827 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2828 echo "$ac_t""stdio" 1>&6
2831 echo "$enable_cstdio is an unknown io package" 1>&2
2832 exit 1
2834 esac
2839 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2840 echo "configure:2841: checking how to run the C preprocessor" >&5
2841 # On Suns, sometimes $CPP names a directory.
2842 if test -n "$CPP" && test -d "$CPP"; then
2843 CPP=
2845 if test -z "$CPP"; then
2846 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2848 else
2849 # This must be in double quotes, not single quotes, because CPP may get
2850 # substituted into the Makefile and "${CC-cc}" will confuse make.
2851 CPP="${CC-cc} -E"
2852 # On the NeXT, cc -E runs the code through the compiler's parser,
2853 # not just through cpp.
2854 cat > conftest.$ac_ext <<EOF
2855 #line 2856 "configure"
2856 #include "confdefs.h"
2857 #include <assert.h>
2858 Syntax Error
2860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2861 { (eval echo configure:2862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2863 if test -z "$ac_err"; then
2865 else
2866 echo "$ac_err" >&5
2867 echo "configure: failed program was:" >&5
2868 cat conftest.$ac_ext >&5
2869 rm -rf conftest*
2870 CPP="${CC-cc} -E -traditional-cpp"
2871 cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2874 #include <assert.h>
2875 Syntax Error
2877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2878 { (eval echo configure:2879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2880 if test -z "$ac_err"; then
2882 else
2883 echo "$ac_err" >&5
2884 echo "configure: failed program was:" >&5
2885 cat conftest.$ac_ext >&5
2886 rm -rf conftest*
2887 CPP="${CC-cc} -nologo -E"
2888 cat > conftest.$ac_ext <<EOF
2889 #line 2890 "configure"
2890 #include "confdefs.h"
2891 #include <assert.h>
2892 Syntax Error
2894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2895 { (eval echo configure:2896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2897 if test -z "$ac_err"; then
2899 else
2900 echo "$ac_err" >&5
2901 echo "configure: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2903 rm -rf conftest*
2904 CPP=/lib/cpp
2906 rm -f conftest*
2908 rm -f conftest*
2910 rm -f conftest*
2911 ac_cv_prog_CPP="$CPP"
2913 CPP="$ac_cv_prog_CPP"
2914 else
2915 ac_cv_prog_CPP="$CPP"
2917 echo "$ac_t""$CPP" 1>&6
2920 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2921 echo "configure:2922: checking for clocale to use" >&5
2922 # Check whether --enable-clocale or --disable-clocale was given.
2923 if test "${enable_clocale+set}" = set; then
2924 enableval="$enable_clocale"
2925 if test x$enable_clocale = xno; then
2926 enable_clocale=no
2928 else
2929 enable_clocale=no
2933 enable_clocale_flag=$enable_clocale
2935 if test x$enable_clocale_flag = xno; then
2936 case x${target_os} in
2937 xlinux* | xgnu*)
2938 cat > conftest.$ac_ext <<EOF
2939 #line 2940 "configure"
2940 #include "confdefs.h"
2942 #include <features.h>
2943 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2944 _GLIBCPP_ok
2945 #endif
2948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2949 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2950 rm -rf conftest*
2951 enable_clocale_flag=gnu
2952 else
2953 rm -rf conftest*
2954 enable_clocale_flag=generic
2956 rm -f conftest*
2959 # Test for bugs early in glibc-2.2.x series
2960 if test x$enable_clocale_flag = xgnu; then
2961 if test "$cross_compiling" = yes; then
2962 enable_clocale_flag=generic
2963 else
2964 cat > conftest.$ac_ext <<EOF
2965 #line 2966 "configure"
2966 #include "confdefs.h"
2968 #define _GNU_SOURCE 1
2969 #include <locale.h>
2970 #include <string.h>
2971 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
2972 extern __typeof(newlocale) __newlocale;
2973 extern __typeof(duplocale) __duplocale;
2974 extern __typeof(strcoll_l) __strcoll_l;
2975 #endif
2976 int main()
2978 const char __one[] = "Äuglein Augmen";
2979 const char __two[] = "Äuglein";
2980 int i;
2981 int j;
2982 __locale_t loc;
2983 __locale_t loc_dup;
2984 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
2985 loc_dup = __duplocale(loc);
2986 i = __strcoll_l(__one, __two, loc);
2987 j = __strcoll_l(__one, __two, loc_dup);
2988 return 0;
2992 if { (eval echo configure:2993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2993 then
2994 enable_clocale_flag=gnu
2995 else
2996 echo "configure: failed program was:" >&5
2997 cat conftest.$ac_ext >&5
2998 rm -fr conftest*
2999 enable_clocale_flag=generic
3001 rm -fr conftest*
3006 # ... at some point put __strxfrm_l tests in as well.
3009 enable_clocale_flag=generic
3011 esac
3014 # Check whether --enable-nls or --disable-nls was given.
3015 if test "${enable_nls+set}" = set; then
3016 enableval="$enable_nls"
3018 else
3019 enable_nls=yes
3022 USE_NLS=no
3024 case x${enable_clocale_flag} in
3025 xgeneric)
3026 echo "$ac_t""generic" 1>&6
3028 CLOCALE_H=config/locale/generic/c_locale.h
3029 CLOCALE_CC=config/locale/generic/c_locale.cc
3030 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3031 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3032 CCOLLATE_CC=config/locale/generic/collate_members.cc
3033 CCTYPE_CC=config/locale/generic/ctype_members.cc
3034 CMESSAGES_H=config/locale/generic/messages_members.h
3035 CMESSAGES_CC=config/locale/generic/messages_members.cc
3036 CMONEY_CC=config/locale/generic/monetary_members.cc
3037 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3038 CTIME_H=config/locale/generic/time_members.h
3039 CTIME_CC=config/locale/generic/time_members.cc
3040 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3042 xgnu)
3043 echo "$ac_t""gnu" 1>&6
3045 # Declare intention to use gettext, and add support for specific
3046 # languages.
3047 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3048 ALL_LINGUAS="de fr"
3050 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3051 # Extract the first word of "msgfmt", so it can be a program name with args.
3052 set dummy msgfmt; ac_word=$2
3053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3054 echo "configure:3055: checking for $ac_word" >&5
3055 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3057 else
3058 if test -n "$check_msgfmt"; then
3059 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3060 else
3061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3062 ac_dummy="$PATH"
3063 for ac_dir in $ac_dummy; do
3064 test -z "$ac_dir" && ac_dir=.
3065 if test -f $ac_dir/$ac_word; then
3066 ac_cv_prog_check_msgfmt="yes"
3067 break
3069 done
3070 IFS="$ac_save_ifs"
3071 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3074 check_msgfmt="$ac_cv_prog_check_msgfmt"
3075 if test -n "$check_msgfmt"; then
3076 echo "$ac_t""$check_msgfmt" 1>&6
3077 else
3078 echo "$ac_t""no" 1>&6
3081 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3082 USE_NLS=yes
3084 # Export the build objects.
3085 for ling in $ALL_LINGUAS; do \
3086 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3087 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3088 done
3092 CLOCALE_H=config/locale/gnu/c_locale.h
3093 CLOCALE_CC=config/locale/gnu/c_locale.cc
3094 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3095 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3096 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3097 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3098 CMESSAGES_H=config/locale/gnu/messages_members.h
3099 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3100 CMONEY_CC=config/locale/gnu/monetary_members.cc
3101 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3102 CTIME_H=config/locale/gnu/time_members.h
3103 CTIME_CC=config/locale/gnu/time_members.cc
3104 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3106 xieee_1003.1-2001)
3107 echo "$ac_t""IEEE 1003.1" 1>&6
3109 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3110 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3111 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3112 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3113 CCOLLATE_CC=config/locale/generic/collate_members.cc
3114 CCTYPE_CC=config/locale/generic/ctype_members.cc
3115 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3116 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3117 CMONEY_CC=config/locale/generic/monetary_members.cc
3118 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3119 CTIME_H=config/locale/generic/time_members.h
3120 CTIME_CC=config/locale/generic/time_members.cc
3121 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3124 echo "$enable_clocale is an unknown locale package" 1>&2
3125 exit 1
3127 esac
3129 # This is where the testsuite looks for locale catalogs, using the
3130 # -DLOCALEDIR define during testsuite compilation.
3131 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3134 # A standalone libintl (e.g., GNU libintl) may be in use.
3135 if test $USE_NLS = yes; then
3136 for ac_hdr in libintl.h
3138 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3139 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3140 echo "configure:3141: checking for $ac_hdr" >&5
3141 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3143 else
3144 cat > conftest.$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3147 #include <$ac_hdr>
3149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3150 { (eval echo configure:3151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3151 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3152 if test -z "$ac_err"; then
3153 rm -rf conftest*
3154 eval "ac_cv_header_$ac_safe=yes"
3155 else
3156 echo "$ac_err" >&5
3157 echo "configure: failed program was:" >&5
3158 cat conftest.$ac_ext >&5
3159 rm -rf conftest*
3160 eval "ac_cv_header_$ac_safe=no"
3162 rm -f conftest*
3164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3165 echo "$ac_t""yes" 1>&6
3166 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3167 cat >> confdefs.h <<EOF
3168 #define $ac_tr_hdr 1
3171 else
3172 echo "$ac_t""no" 1>&6
3173 USE_NLS=no
3175 done
3178 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
3179 echo "configure:3180: checking for library containing gettext" >&5
3180 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
3181 echo $ac_n "(cached) $ac_c" 1>&6
3182 else
3183 ac_func_search_save_LIBS="$LIBS"
3184 ac_cv_search_gettext="no"
3185 cat > conftest.$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3188 /* Override any gcc2 internal prototype to avoid an error. */
3189 /* We use char because int might match the return type of a gcc2
3190 builtin and then its argument prototype would still apply. */
3191 char gettext();
3193 int main() {
3194 gettext()
3195 ; return 0; }
3197 if { (eval echo configure:3198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3198 rm -rf conftest*
3199 ac_cv_search_gettext="none required"
3200 else
3201 echo "configure: failed program was:" >&5
3202 cat conftest.$ac_ext >&5
3204 rm -f conftest*
3205 test "$ac_cv_search_gettext" = "no" && for i in intl; do
3206 LIBS="-l$i $ac_func_search_save_LIBS"
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3210 /* Override any gcc2 internal prototype to avoid an error. */
3211 /* We use char because int might match the return type of a gcc2
3212 builtin and then its argument prototype would still apply. */
3213 char gettext();
3215 int main() {
3216 gettext()
3217 ; return 0; }
3219 if { (eval echo configure:3220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3220 rm -rf conftest*
3221 ac_cv_search_gettext="-l$i"
3222 break
3223 else
3224 echo "configure: failed program was:" >&5
3225 cat conftest.$ac_ext >&5
3227 rm -f conftest*
3228 done
3229 LIBS="$ac_func_search_save_LIBS"
3232 echo "$ac_t""$ac_cv_search_gettext" 1>&6
3233 if test "$ac_cv_search_gettext" != "no"; then
3234 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
3236 else :
3237 USE_NLS=no
3240 if test $USE_NLS = yes; then
3241 cat >> confdefs.h <<\EOF
3242 #define _GLIBCPP_USE_NLS 1
3262 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3263 echo "configure:3264: checking for c header strategy to use" >&5
3264 # Check whether --enable-cheaders or --disable-cheaders was given.
3265 if test "${enable_cheaders+set}" = set; then
3266 enableval="$enable_cheaders"
3268 case "$enableval" in
3270 enable_cheaders=c
3272 c_std)
3273 enable_cheaders=c_std
3275 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3277 esac
3278 else
3279 enable_cheaders=c_std
3282 echo "$ac_t""$enable_cheaders" 1>&6
3284 case "$enable_cheaders" in
3285 c_std)
3286 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3289 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3291 esac
3296 if test "$enable_cheaders" = c; then
3297 GLIBCPP_C_HEADERS_C_TRUE=
3298 GLIBCPP_C_HEADERS_C_FALSE='#'
3299 else
3300 GLIBCPP_C_HEADERS_C_TRUE='#'
3301 GLIBCPP_C_HEADERS_C_FALSE=
3305 if test "$enable_cheaders" = c_std; then
3306 GLIBCPP_C_HEADERS_C_STD_TRUE=
3307 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3308 else
3309 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3310 GLIBCPP_C_HEADERS_C_STD_FALSE=
3314 if test "$c_compatibility" = yes; then
3315 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3316 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3317 else
3318 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3319 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3322 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3323 if test "${enable_c_mbchar+set}" = set; then
3324 enableval="$enable_c_mbchar"
3325 case "$enableval" in
3326 yes) enable_c_mbchar=yes ;;
3327 no) enable_c_mbchar=no ;;
3328 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3329 esac
3330 else
3331 enable_c_mbchar=yes
3335 # Check whether --enable-c99 or --disable-c99 was given.
3336 if test "${enable_c99+set}" = set; then
3337 enableval="$enable_c99"
3338 case "$enableval" in
3339 yes) enable_c99=yes ;;
3340 no) enable_c99=no ;;
3341 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3342 esac
3343 else
3344 enable_c99=yes
3348 ac_ext=C
3349 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3350 ac_cpp='$CXXCPP $CPPFLAGS'
3351 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3352 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3353 cross_compiling=$ac_cv_prog_cxx_cross
3356 # Check for the existence of <math.h> functions used if C99 is enabled.
3357 ac_c99_math=yes;
3358 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3359 echo "configure:3360: checking for ISO C99 support in <math.h>" >&5
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3363 #include <math.h>
3364 int main() {
3365 fpclassify(0.0);
3366 ; return 0; }
3368 if { (eval echo configure:3369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3370 else
3371 echo "configure: failed program was:" >&5
3372 cat conftest.$ac_ext >&5
3373 rm -rf conftest*
3374 ac_c99_math=no
3376 rm -f conftest*
3377 cat > conftest.$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3380 #include <math.h>
3381 int main() {
3382 isfinite(0.0);
3383 ; return 0; }
3385 if { (eval echo configure:3386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3387 else
3388 echo "configure: failed program was:" >&5
3389 cat conftest.$ac_ext >&5
3390 rm -rf conftest*
3391 ac_c99_math=no
3393 rm -f conftest*
3394 cat > conftest.$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3397 #include <math.h>
3398 int main() {
3399 isinf(0.0);
3400 ; return 0; }
3402 if { (eval echo configure:3403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3404 else
3405 echo "configure: failed program was:" >&5
3406 cat conftest.$ac_ext >&5
3407 rm -rf conftest*
3408 ac_c99_math=no
3410 rm -f conftest*
3411 cat > conftest.$ac_ext <<EOF
3412 #line 3413 "configure"
3413 #include "confdefs.h"
3414 #include <math.h>
3415 int main() {
3416 isnan(0.0);
3417 ; return 0; }
3419 if { (eval echo configure:3420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3421 else
3422 echo "configure: failed program was:" >&5
3423 cat conftest.$ac_ext >&5
3424 rm -rf conftest*
3425 ac_c99_math=no
3427 rm -f conftest*
3428 cat > conftest.$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3431 #include <math.h>
3432 int main() {
3433 isnormal(0.0);
3434 ; return 0; }
3436 if { (eval echo configure:3437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3438 else
3439 echo "configure: failed program was:" >&5
3440 cat conftest.$ac_ext >&5
3441 rm -rf conftest*
3442 ac_c99_math=no
3444 rm -f conftest*
3445 cat > conftest.$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3448 #include <math.h>
3449 int main() {
3450 signbit(0.0);
3451 ; return 0; }
3453 if { (eval echo configure:3454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3455 else
3456 echo "configure: failed program was:" >&5
3457 cat conftest.$ac_ext >&5
3458 rm -rf conftest*
3459 ac_c99_math=no
3461 rm -f conftest*
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 #include <math.h>
3466 int main() {
3467 isgreater(0.0,0.0);
3468 ; return 0; }
3470 if { (eval echo configure:3471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3472 else
3473 echo "configure: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3475 rm -rf conftest*
3476 ac_c99_math=no
3478 rm -f conftest*
3479 cat > conftest.$ac_ext <<EOF
3480 #line 3481 "configure"
3481 #include "confdefs.h"
3482 #include <math.h>
3483 int main() {
3484 isgreaterequal(0.0,0.0);
3485 ; return 0; }
3487 if { (eval echo configure:3488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3489 else
3490 echo "configure: failed program was:" >&5
3491 cat conftest.$ac_ext >&5
3492 rm -rf conftest*
3493 ac_c99_math=no
3495 rm -f conftest*
3496 cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 #include <math.h>
3500 int main() {
3501 isless(0.0,0.0);
3502 ; return 0; }
3504 if { (eval echo configure:3505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3506 else
3507 echo "configure: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3509 rm -rf conftest*
3510 ac_c99_math=no
3512 rm -f conftest*
3513 cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3516 #include <math.h>
3517 int main() {
3518 islessequal(0.0,0.0);
3519 ; return 0; }
3521 if { (eval echo configure:3522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3523 else
3524 echo "configure: failed program was:" >&5
3525 cat conftest.$ac_ext >&5
3526 rm -rf conftest*
3527 ac_c99_math=no
3529 rm -f conftest*
3530 cat > conftest.$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3533 #include <math.h>
3534 int main() {
3535 islessgreater(0.0,0.0);
3536 ; return 0; }
3538 if { (eval echo configure:3539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3540 else
3541 echo "configure: failed program was:" >&5
3542 cat conftest.$ac_ext >&5
3543 rm -rf conftest*
3544 ac_c99_math=no
3546 rm -f conftest*
3547 cat > conftest.$ac_ext <<EOF
3548 #line 3549 "configure"
3549 #include "confdefs.h"
3550 #include <math.h>
3551 int main() {
3552 isunordered(0.0,0.0);
3553 ; return 0; }
3555 if { (eval echo configure:3556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3557 else
3558 echo "configure: failed program was:" >&5
3559 cat conftest.$ac_ext >&5
3560 rm -rf conftest*
3561 ac_c99_math=no
3563 rm -f conftest*
3564 echo "$ac_t""$ac_c99_math" 1>&6
3566 # Check for the existence in <stdio.h> of vscanf, et. al.
3567 ac_c99_stdio=yes;
3568 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3569 echo "configure:3570: checking for ISO C99 support in <stdio.h>" >&5
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3573 #include <stdio.h>
3574 int main() {
3575 snprintf("12", 0, "%i");
3576 ; return 0; }
3578 if { (eval echo configure:3579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3580 else
3581 echo "configure: failed program was:" >&5
3582 cat conftest.$ac_ext >&5
3583 rm -rf conftest*
3584 ac_c99_stdio=no
3586 rm -f conftest*
3587 cat > conftest.$ac_ext <<EOF
3588 #line 3589 "configure"
3589 #include "confdefs.h"
3590 #include <stdio.h>
3591 #include <stdarg.h>
3592 void foo(char* fmt, ...)
3593 {va_list args; va_start(args, fmt);
3594 vfscanf(stderr, "%i", args);}
3595 int main() {
3597 ; return 0; }
3599 if { (eval echo configure:3600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3601 else
3602 echo "configure: failed program was:" >&5
3603 cat conftest.$ac_ext >&5
3604 rm -rf conftest*
3605 ac_c99_stdio=no
3607 rm -f conftest*
3608 cat > conftest.$ac_ext <<EOF
3609 #line 3610 "configure"
3610 #include "confdefs.h"
3611 #include <stdio.h>
3612 #include <stdarg.h>
3613 void foo(char* fmt, ...)
3614 {va_list args; va_start(args, fmt);
3615 vscanf("%i", args);}
3616 int main() {
3618 ; return 0; }
3620 if { (eval echo configure:3621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3622 else
3623 echo "configure: failed program was:" >&5
3624 cat conftest.$ac_ext >&5
3625 rm -rf conftest*
3626 ac_c99_stdio=no
3628 rm -f conftest*
3629 cat > conftest.$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3632 #include <stdio.h>
3633 #include <stdarg.h>
3634 void foo(char* fmt, ...)
3635 {va_list args; va_start(args, fmt);
3636 vsnprintf(fmt, 0, "%i", args);}
3637 int main() {
3639 ; return 0; }
3641 if { (eval echo configure:3642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3643 else
3644 echo "configure: failed program was:" >&5
3645 cat conftest.$ac_ext >&5
3646 rm -rf conftest*
3647 ac_c99_stdio=no
3649 rm -f conftest*
3650 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3653 #include <stdio.h>
3654 #include <stdarg.h>
3655 void foo(char* fmt, ...)
3656 {va_list args; va_start(args, fmt);
3657 vsscanf(fmt, "%i", args);}
3658 int main() {
3660 ; return 0; }
3662 if { (eval echo configure:3663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3664 else
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3667 rm -rf conftest*
3668 ac_c99_stdio=no
3670 rm -f conftest*
3671 echo "$ac_t""$ac_c99_stdio" 1>&6
3673 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3674 ac_c99_stdlib=yes;
3675 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3676 echo "configure:3677: checking for lldiv_t declaration" >&5
3677 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3679 else
3681 cat > conftest.$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 #include <stdlib.h>
3685 int main() {
3686 lldiv_t mydivt;
3687 ; return 0; }
3689 if { (eval echo configure:3690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3690 rm -rf conftest*
3691 ac_c99_lldiv_t=yes
3692 else
3693 echo "configure: failed program was:" >&5
3694 cat conftest.$ac_ext >&5
3695 rm -rf conftest*
3696 ac_c99_lldiv_t=no
3698 rm -f conftest*
3702 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3704 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3705 echo "configure:3706: checking for ISO C99 support in <stdlib.h>" >&5
3706 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3709 #include <stdlib.h>
3710 int main() {
3711 char* tmp; strtof("gnu", &tmp);
3712 ; return 0; }
3714 if { (eval echo configure:3715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3716 else
3717 echo "configure: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3719 rm -rf conftest*
3720 ac_c99_stdlib=no
3722 rm -f conftest*
3723 cat > conftest.$ac_ext <<EOF
3724 #line 3725 "configure"
3725 #include "confdefs.h"
3726 #include <stdlib.h>
3727 int main() {
3728 char* tmp; strtold("gnu", &tmp);
3729 ; return 0; }
3731 if { (eval echo configure:3732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3733 else
3734 echo "configure: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3736 rm -rf conftest*
3737 ac_c99_stdlib=no
3739 rm -f conftest*
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 #include <stdlib.h>
3744 int main() {
3745 llabs(10);
3746 ; return 0; }
3748 if { (eval echo configure:3749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3750 else
3751 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3753 rm -rf conftest*
3754 ac_c99_stdlib=no
3756 rm -f conftest*
3757 cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3760 #include <stdlib.h>
3761 int main() {
3762 lldiv(10,1);
3763 ; return 0; }
3765 if { (eval echo configure:3766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3767 else
3768 echo "configure: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3770 rm -rf conftest*
3771 ac_c99_stdlib=no
3773 rm -f conftest*
3774 cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3777 #include <stdlib.h>
3778 int main() {
3779 atoll("10");
3780 ; return 0; }
3782 if { (eval echo configure:3783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3784 else
3785 echo "configure: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3787 rm -rf conftest*
3788 ac_c99_stdlib=no
3790 rm -f conftest*
3791 cat > conftest.$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3794 #include <stdlib.h>
3795 int main() {
3796 _Exit(0);
3797 ; return 0; }
3799 if { (eval echo configure:3800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3801 else
3802 echo "configure: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3804 rm -rf conftest*
3805 ac_c99_stdlib=no
3807 rm -f conftest*
3808 if test x"$ac_c99_lldiv_t" = x"no"; then
3809 ac_c99_stdlib=no;
3811 echo "$ac_t""$ac_c99_stdlib" 1>&6
3813 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3814 # XXX the wchar.h checks should be rolled into the general C99 bits.
3815 ac_c99_wchar=yes;
3816 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3817 echo "configure:3818: checking for additional ISO C99 support in <wchar.h>" >&5
3818 cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3821 #include <wchar.h>
3822 int main() {
3823 wcstold(L"10.0", NULL);
3824 ; return 0; }
3826 if { (eval echo configure:3827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3828 else
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3831 rm -rf conftest*
3832 ac_c99_wchar=no
3834 rm -f conftest*
3835 cat > conftest.$ac_ext <<EOF
3836 #line 3837 "configure"
3837 #include "confdefs.h"
3838 #include <wchar.h>
3839 int main() {
3840 wcstoll(L"10", NULL, 10);
3841 ; return 0; }
3843 if { (eval echo configure:3844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3845 else
3846 echo "configure: failed program was:" >&5
3847 cat conftest.$ac_ext >&5
3848 rm -rf conftest*
3849 ac_c99_wchar=no
3851 rm -f conftest*
3852 cat > conftest.$ac_ext <<EOF
3853 #line 3854 "configure"
3854 #include "confdefs.h"
3855 #include <wchar.h>
3856 int main() {
3857 wcstoull(L"10", NULL, 10);
3858 ; return 0; }
3860 if { (eval echo configure:3861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3862 else
3863 echo "configure: failed program was:" >&5
3864 cat conftest.$ac_ext >&5
3865 rm -rf conftest*
3866 ac_c99_wchar=no
3868 rm -f conftest*
3869 echo "$ac_t""$ac_c99_wchar" 1>&6
3871 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3872 echo "configure:3873: checking for enabled ISO C99 support" >&5
3873 if test x"$ac_c99_math" = x"no" ||
3874 test x"$ac_c99_stdio" = x"no" ||
3875 test x"$ac_c99_stdlib" = x"no" ||
3876 test x"$ac_c99_wchar" = x"no"; then
3877 enable_c99=no;
3879 echo "$ac_t""$enable_c99" 1>&6
3881 # Option parsed, now set things appropriately
3882 if test x"$enable_c99" = x"yes"; then
3883 cat >> confdefs.h <<\EOF
3884 #define _GLIBCPP_USE_C99 1
3889 ac_ext=c
3890 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3891 ac_cpp='$CPP $CPPFLAGS'
3892 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3893 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3894 cross_compiling=$ac_cv_prog_cc_cross
3898 # Check whether --enable-long-long or --disable-long-long was given.
3899 if test "${enable_long_long+set}" = set; then
3900 enableval="$enable_long_long"
3901 case "$enableval" in
3902 yes) enable_long_long=yes ;;
3903 no) enable_long_long=no ;;
3904 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3905 esac
3906 else
3907 enable_long_long=yes
3911 ac_ext=C
3912 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3913 ac_cpp='$CXXCPP $CPPFLAGS'
3914 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3915 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3916 cross_compiling=$ac_cv_prog_cxx_cross
3919 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3920 echo "configure:3921: checking for enabled long long I/O support" >&5
3921 # iostreams require strtoll, strtoull to compile
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3925 #include <stdlib.h>
3926 int main() {
3927 char* tmp; strtoll("gnu", &tmp, 10);
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 enable_long_long=no
3938 rm -f conftest*
3939 cat > conftest.$ac_ext <<EOF
3940 #line 3941 "configure"
3941 #include "confdefs.h"
3942 #include <stdlib.h>
3943 int main() {
3944 char* tmp; strtoull("gnu", &tmp, 10);
3945 ; return 0; }
3947 if { (eval echo configure:3948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3949 else
3950 echo "configure: failed program was:" >&5
3951 cat conftest.$ac_ext >&5
3952 rm -rf conftest*
3953 enable_long_long=no
3955 rm -f conftest*
3957 # Option parsed, now set things appropriately
3958 if test x"$enable_long_long" = xyes; then
3959 cat >> confdefs.h <<\EOF
3960 #define _GLIBCPP_USE_LONG_LONG 1
3964 echo "$ac_t""$enable_long_long" 1>&6
3966 ac_ext=c
3967 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3968 ac_cpp='$CPP $CPPFLAGS'
3969 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3970 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3971 cross_compiling=$ac_cv_prog_cc_cross
3975 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3976 echo "configure:3977: checking for thread model used by GCC" >&5
3977 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3978 echo "$ac_t""$target_thread_file" 1>&6
3980 if test $target_thread_file != single; then
3981 cat >> confdefs.h <<\EOF
3982 #define HAVE_GTHR_DEFAULT 1
3985 cat >> confdefs.h <<\EOF
3986 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3991 glibcpp_thread_h=gthr-$target_thread_file.h
3995 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3996 echo "configure:3997: checking for exception model to use" >&5
3998 ac_ext=C
3999 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4000 ac_cpp='$CXXCPP $CPPFLAGS'
4001 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4002 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4003 cross_compiling=$ac_cv_prog_cxx_cross
4005 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4006 if test "${enable_sjlj_exceptions+set}" = set; then
4007 enableval="$enable_sjlj_exceptions"
4009 else
4010 cat > conftest.$ac_ext << EOF
4011 #line 4012 "configure"
4012 struct S { ~S(); };
4013 void bar();
4014 void foo()
4016 S s;
4017 bar();
4020 old_CXXFLAGS="$CXXFLAGS"
4021 CXXFLAGS=-S
4022 if { (eval echo configure:4023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4023 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4024 enable_sjlj_exceptions=yes
4025 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4026 enable_sjlj_exceptions=no
4029 CXXFLAGS="$old_CXXFLAGS"
4030 rm -f conftest*
4033 if test x$enable_sjlj_exceptions = xyes; then
4034 cat >> confdefs.h <<\EOF
4035 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4038 ac_exception_model_name=sjlj
4039 elif test x$enable_sjlj_exceptions = xno; then
4040 ac_exception_model_name="call frame"
4041 else
4042 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4044 ac_ext=c
4045 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4046 ac_cpp='$CPP $CPPFLAGS'
4047 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4048 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4049 cross_compiling=$ac_cv_prog_cc_cross
4051 echo "$ac_t""$ac_exception_model_name" 1>&6
4054 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4055 echo "configure:4056: checking for use of libunwind" >&5
4056 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4057 if test "${enable_libunwind_exceptions+set}" = set; then
4058 enableval="$enable_libunwind_exceptions"
4059 use_libunwind_exceptions=$enableval
4060 else
4061 use_libunwind_exceptions=no
4064 echo "$ac_t""$use_libunwind_exceptions" 1>&6
4065 if test x"$use_libunwind_exceptions" = xyes; then
4066 LIBUNWIND_FLAG="-lunwind"
4067 else
4068 LIBUNWIND_FLAG=""
4072 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4073 if test "${enable_concept_checks+set}" = set; then
4074 enableval="$enable_concept_checks"
4075 case "$enableval" in
4076 yes) enable_concept_checks=yes ;;
4077 no) enable_concept_checks=no ;;
4078 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4079 esac
4080 else
4081 enable_concept_checks=no
4083 if test x"$enable_concept_checks" = xyes; then
4084 cat >> confdefs.h <<\EOF
4085 #define _GLIBCPP_CONCEPT_CHECKS 1
4090 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4091 echo "configure:4092: checking for extra compiler flags for building" >&5
4092 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4093 if test "${enable_cxx_flags+set}" = set; then
4094 enableval="$enable_cxx_flags"
4095 case "x$enable_cxx_flags" in
4096 xyes)
4097 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4098 xno | xnone | x)
4099 enable_cxx_flags='' ;;
4101 enable_cxx_flags="$enableval" ;;
4102 esac
4103 else
4104 enable_cxx_flags=
4108 if test -n "$enable_cxx_flags"; then
4109 for f in $enable_cxx_flags; do
4110 case "$f" in
4111 -fhonor-std) ;;
4112 -*) ;;
4113 *) # and we're trying to pass /what/ exactly?
4114 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4115 esac
4116 done
4118 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4119 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4122 # Check whether --enable-debug or --disable-debug was given.
4123 if test "${enable_debug+set}" = set; then
4124 enableval="$enable_debug"
4125 case "${enableval}" in
4126 yes) enable_debug=yes ;;
4127 no) enable_debug=no ;;
4128 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4129 esac
4130 else
4131 enable_debug=no
4133 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4134 echo "configure:4135: checking for additional debug build" >&5
4135 echo "$ac_t""$enable_debug" 1>&6
4138 if test "$enable_debug" = yes; then
4139 GLIBCPP_BUILD_DEBUG_TRUE=
4140 GLIBCPP_BUILD_DEBUG_FALSE='#'
4141 else
4142 GLIBCPP_BUILD_DEBUG_TRUE='#'
4143 GLIBCPP_BUILD_DEBUG_FALSE=
4146 # Check whether --enable-debug_flags or --disable-debug_flags was given.
4147 if test "${enable_debug_flags+set}" = set; then
4148 enableval="$enable_debug_flags"
4149 case "${enableval}" in
4150 none) ;;
4151 -*) enable_debug_flags="${enableval}" ;;
4152 *) { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4153 esac
4154 else
4155 enable_debug_flags=none
4158 case x"$enable_debug" in
4159 xyes)
4160 case "$enable_debug_flags" in
4161 none)
4162 DEBUG_FLAGS="-g3 -O0";;
4163 -*) #valid input
4164 DEBUG_FLAGS="${enableval}"
4165 esac
4167 xno)
4168 DEBUG_FLAGS=""
4170 esac
4173 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4174 echo "configure:4175: checking for debug build flags" >&5
4175 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4178 # No surprises, no surprises...
4179 if test $ATOMICITYH = cpu/generic ; then
4180 echo "configure: warning: No native atomic operations are provided for this platform." 1>&2
4181 if test $target_thread_file = single; then
4182 echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4183 echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4184 else
4185 echo "configure: warning: They will be faked using a mutex." 1>&2
4186 echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4191 if test x"$build" != x"$host"; then
4193 # We are being configured with some form of cross compiler.
4194 GLIBCPP_IS_CROSS_COMPILING=true
4196 # This lets us hard-code the functionality we know we'll have in the cross
4197 # target environment. "Let" is a sugar-coated word placed on an especially
4198 # dull and tedious hack, actually.
4200 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4201 # that involve linking, can't be used:
4202 # "cannot open sim-crt0.o"
4203 # "cannot open crt0.o"
4204 # etc. All this is because there currently exists no unified, consistent
4205 # way for top level CC information to be passed down to target directories:
4206 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4207 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4208 # crosses can be removed.
4210 # If Canadian cross, then don't pick up tools from the build directory.
4211 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4212 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host" \
4213 && test x"$build" != x"$target"; then
4214 CANADIAN=yes
4215 else
4216 CANADIAN=no
4219 # Construct crosses by hand, eliminating bits that need ld...
4220 # GLIBCPP_CHECK_COMPILER_FEATURES
4221 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4222 # GLIBCPP_CHECK_MATH_SUPPORT
4224 case "${host}" in
4225 *-freebsd*)
4226 os_include_dir="os/bsd/freebsd"
4227 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4228 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4229 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
4230 sys/time.h unistd.h
4232 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4233 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4234 echo "configure:4235: checking for $ac_hdr" >&5
4235 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4237 else
4238 cat > conftest.$ac_ext <<EOF
4239 #line 4240 "configure"
4240 #include "confdefs.h"
4241 #include <$ac_hdr>
4243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4244 { (eval echo configure:4245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4246 if test -z "$ac_err"; then
4247 rm -rf conftest*
4248 eval "ac_cv_header_$ac_safe=yes"
4249 else
4250 echo "$ac_err" >&5
4251 echo "configure: failed program was:" >&5
4252 cat conftest.$ac_ext >&5
4253 rm -rf conftest*
4254 eval "ac_cv_header_$ac_safe=no"
4256 rm -f conftest*
4258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4259 echo "$ac_t""yes" 1>&6
4260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4261 cat >> confdefs.h <<EOF
4262 #define $ac_tr_hdr 1
4265 else
4266 echo "$ac_t""no" 1>&6
4268 done
4270 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4273 # If we're not using GNU ld, then there's no point in even trying these
4274 # tests. Check for that first. We should have already tested for gld
4275 # by now (in libtool), but require it now just to be safe...
4276 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4277 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4280 # The name set by libtool depends on the version of libtool. Shame on us
4281 # for depending on an impl detail, but c'est la vie. Older versions used
4282 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4283 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4284 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4285 # set (hence we're using an older libtool), then set it.
4286 if test x${with_gnu_ld+set} != xset; then
4287 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4288 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4289 with_gnu_ld=no
4290 else
4291 with_gnu_ld=$ac_cv_prog_gnu_ld
4295 # Start by getting the version number. I think the libtool test already
4296 # does some of this, but throws away the result.
4298 ldver=`$LD --version 2>/dev/null | head -1 | \
4299 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4301 glibcpp_gnu_ld_version=`echo $ldver | \
4302 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4304 # Set --gc-sections.
4305 if test "$with_gnu_ld" = "notbroken"; then
4306 # GNU ld it is! Joy and bunny rabbits!
4308 # All these tests are for C++; save the language and the compiler flags.
4309 # Need to do this so that g++ won't try to link in libstdc++
4310 ac_test_CFLAGS="${CFLAGS+set}"
4311 ac_save_CFLAGS="$CFLAGS"
4312 CFLAGS='-x c++ -Wl,--gc-sections'
4314 # Check for -Wl,--gc-sections
4315 # XXX This test is broken at the moment, as symbols required for
4316 # linking are now in libsupc++ (not built yet.....). In addition,
4317 # this test has cored on solaris in the past. In addition,
4318 # --gc-sections doesn't really work at the moment (keeps on discarding
4319 # used sections, first .eh_frame and now some of the glibc sections for
4320 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4321 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4322 echo "configure:4323: checking for ld that supports -Wl,--gc-sections" >&5
4323 if test "$cross_compiling" = yes; then
4324 ac_sectionLDflags=yes
4325 else
4326 cat > conftest.$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4330 int main(void)
4332 try { throw 1; }
4333 catch (...) { };
4334 return 0;
4338 if { (eval echo configure:4339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4339 then
4340 ac_sectionLDflags=yes
4341 else
4342 echo "configure: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4344 rm -fr conftest*
4345 ac_sectionLDflags=no
4347 rm -fr conftest*
4350 if test "$ac_test_CFLAGS" = set; then
4351 CFLAGS="$ac_save_CFLAGS"
4352 else
4353 # this is the suspicious part
4354 CFLAGS=''
4356 if test "$ac_sectionLDflags" = "yes"; then
4357 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4359 echo "$ac_t""$ac_sectionLDflags" 1>&6
4362 # Set linker optimization flags.
4363 if test x"$with_gnu_ld" = x"yes"; then
4364 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4371 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4372 echo "configure:4373: checking for main in -lm" >&5
4373 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4374 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4375 echo $ac_n "(cached) $ac_c" 1>&6
4376 else
4377 ac_save_LIBS="$LIBS"
4378 LIBS="-lm $LIBS"
4379 cat > conftest.$ac_ext <<EOF
4380 #line 4381 "configure"
4381 #include "confdefs.h"
4383 int main() {
4384 main()
4385 ; return 0; }
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4388 rm -rf conftest*
4389 eval "ac_cv_lib_$ac_lib_var=yes"
4390 else
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4393 rm -rf conftest*
4394 eval "ac_cv_lib_$ac_lib_var=no"
4396 rm -f conftest*
4397 LIBS="$ac_save_LIBS"
4400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4401 echo "$ac_t""yes" 1>&6
4402 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4403 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4404 cat >> confdefs.h <<EOF
4405 #define $ac_tr_lib 1
4408 LIBS="-lm $LIBS"
4410 else
4411 echo "$ac_t""no" 1>&6
4414 for ac_func in nan copysignf
4416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4417 echo "configure:4418: checking for $ac_func" >&5
4418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4420 else
4421 cat > conftest.$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4424 /* System header to define __stub macros and hopefully few prototypes,
4425 which can conflict with char $ac_func(); below. */
4426 #include <assert.h>
4427 /* Override any gcc2 internal prototype to avoid an error. */
4428 /* We use char because int might match the return type of a gcc2
4429 builtin and then its argument prototype would still apply. */
4430 char $ac_func();
4432 int main() {
4434 /* The GNU C library defines this for functions which it implements
4435 to always fail with ENOSYS. Some functions are actually named
4436 something starting with __ and the normal name is an alias. */
4437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4438 choke me
4439 #else
4440 $ac_func();
4441 #endif
4443 ; return 0; }
4445 if { (eval echo configure:4446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4446 rm -rf conftest*
4447 eval "ac_cv_func_$ac_func=yes"
4448 else
4449 echo "configure: failed program was:" >&5
4450 cat conftest.$ac_ext >&5
4451 rm -rf conftest*
4452 eval "ac_cv_func_$ac_func=no"
4454 rm -f conftest*
4457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4458 echo "$ac_t""yes" 1>&6
4459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4460 cat >> confdefs.h <<EOF
4461 #define $ac_tr_func 1
4464 else
4465 echo "$ac_t""no" 1>&6
4466 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4468 done
4471 for ac_func in __signbit
4473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4474 echo "configure:4475: checking for $ac_func" >&5
4475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4477 else
4478 cat > conftest.$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4481 /* System header to define __stub macros and hopefully few prototypes,
4482 which can conflict with char $ac_func(); below. */
4483 #include <assert.h>
4484 /* Override any gcc2 internal prototype to avoid an error. */
4485 /* We use char because int might match the return type of a gcc2
4486 builtin and then its argument prototype would still apply. */
4487 char $ac_func();
4489 int main() {
4491 /* The GNU C library defines this for functions which it implements
4492 to always fail with ENOSYS. Some functions are actually named
4493 something starting with __ and the normal name is an alias. */
4494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4495 choke me
4496 #else
4497 $ac_func();
4498 #endif
4500 ; return 0; }
4502 if { (eval echo configure:4503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4503 rm -rf conftest*
4504 eval "ac_cv_func_$ac_func=yes"
4505 else
4506 echo "configure: failed program was:" >&5
4507 cat conftest.$ac_ext >&5
4508 rm -rf conftest*
4509 eval "ac_cv_func_$ac_func=no"
4511 rm -f conftest*
4514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4515 echo "$ac_t""yes" 1>&6
4516 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4517 cat >> confdefs.h <<EOF
4518 #define $ac_tr_func 1
4521 else
4522 echo "$ac_t""no" 1>&6
4523 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4525 done
4527 for ac_func in __signbitf
4529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4530 echo "configure:4531: checking for $ac_func" >&5
4531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4533 else
4534 cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4537 /* System header to define __stub macros and hopefully few prototypes,
4538 which can conflict with char $ac_func(); below. */
4539 #include <assert.h>
4540 /* Override any gcc2 internal prototype to avoid an error. */
4541 /* We use char because int might match the return type of a gcc2
4542 builtin and then its argument prototype would still apply. */
4543 char $ac_func();
4545 int main() {
4547 /* The GNU C library defines this for functions which it implements
4548 to always fail with ENOSYS. Some functions are actually named
4549 something starting with __ and the normal name is an alias. */
4550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4551 choke me
4552 #else
4553 $ac_func();
4554 #endif
4556 ; return 0; }
4558 if { (eval echo configure:4559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4559 rm -rf conftest*
4560 eval "ac_cv_func_$ac_func=yes"
4561 else
4562 echo "configure: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4564 rm -rf conftest*
4565 eval "ac_cv_func_$ac_func=no"
4567 rm -f conftest*
4570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4571 echo "$ac_t""yes" 1>&6
4572 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4573 cat >> confdefs.h <<EOF
4574 #define $ac_tr_func 1
4577 else
4578 echo "$ac_t""no" 1>&6
4579 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4581 done
4584 if test x$ac_cv_func_copysignl = x"yes"; then
4585 for ac_func in __signbitl
4587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4588 echo "configure:4589: checking for $ac_func" >&5
4589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4590 echo $ac_n "(cached) $ac_c" 1>&6
4591 else
4592 cat > conftest.$ac_ext <<EOF
4593 #line 4594 "configure"
4594 #include "confdefs.h"
4595 /* System header to define __stub macros and hopefully few prototypes,
4596 which can conflict with char $ac_func(); below. */
4597 #include <assert.h>
4598 /* Override any gcc2 internal prototype to avoid an error. */
4599 /* We use char because int might match the return type of a gcc2
4600 builtin and then its argument prototype would still apply. */
4601 char $ac_func();
4603 int main() {
4605 /* The GNU C library defines this for functions which it implements
4606 to always fail with ENOSYS. Some functions are actually named
4607 something starting with __ and the normal name is an alias. */
4608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4609 choke me
4610 #else
4611 $ac_func();
4612 #endif
4614 ; return 0; }
4616 if { (eval echo configure:4617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4617 rm -rf conftest*
4618 eval "ac_cv_func_$ac_func=yes"
4619 else
4620 echo "configure: failed program was:" >&5
4621 cat conftest.$ac_ext >&5
4622 rm -rf conftest*
4623 eval "ac_cv_func_$ac_func=no"
4625 rm -f conftest*
4628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4629 echo "$ac_t""yes" 1>&6
4630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4631 cat >> confdefs.h <<EOF
4632 #define $ac_tr_func 1
4635 else
4636 echo "$ac_t""no" 1>&6
4637 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4639 done
4643 if test -n "$LIBMATHOBJS"; then
4644 need_libmath=yes
4650 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4651 echo "configure:4652: checking for mbstate_t" >&5
4652 cat > conftest.$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4655 #include <wchar.h>
4656 int main() {
4657 mbstate_t teststate;
4658 ; return 0; }
4660 if { (eval echo configure:4661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4661 rm -rf conftest*
4662 have_mbstate_t=yes
4663 else
4664 echo "configure: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4666 rm -rf conftest*
4667 have_mbstate_t=no
4669 rm -f conftest*
4670 echo "$ac_t""$have_mbstate_t" 1>&6
4671 if test x"$have_mbstate_t" = xyes; then
4672 cat >> confdefs.h <<\EOF
4673 #define HAVE_MBSTATE_T 1
4678 for ac_hdr in wchar.h
4680 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4681 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4682 echo "configure:4683: checking for $ac_hdr" >&5
4683 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4685 else
4686 cat > conftest.$ac_ext <<EOF
4687 #line 4688 "configure"
4688 #include "confdefs.h"
4689 #include <$ac_hdr>
4691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4692 { (eval echo configure:4693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4694 if test -z "$ac_err"; then
4695 rm -rf conftest*
4696 eval "ac_cv_header_$ac_safe=yes"
4697 else
4698 echo "$ac_err" >&5
4699 echo "configure: failed program was:" >&5
4700 cat conftest.$ac_ext >&5
4701 rm -rf conftest*
4702 eval "ac_cv_header_$ac_safe=no"
4704 rm -f conftest*
4706 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4707 echo "$ac_t""yes" 1>&6
4708 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4709 cat >> confdefs.h <<EOF
4710 #define $ac_tr_hdr 1
4712 ac_has_wchar_h=yes
4713 else
4714 echo "$ac_t""no" 1>&6
4715 ac_has_wchar_h=no
4717 done
4719 for ac_hdr in wctype.h
4721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4723 echo "configure:4724: checking for $ac_hdr" >&5
4724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6
4726 else
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4730 #include <$ac_hdr>
4732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4733 { (eval echo configure:4734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4735 if test -z "$ac_err"; then
4736 rm -rf conftest*
4737 eval "ac_cv_header_$ac_safe=yes"
4738 else
4739 echo "$ac_err" >&5
4740 echo "configure: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4742 rm -rf conftest*
4743 eval "ac_cv_header_$ac_safe=no"
4745 rm -f conftest*
4747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4748 echo "$ac_t""yes" 1>&6
4749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4750 cat >> confdefs.h <<EOF
4751 #define $ac_tr_hdr 1
4753 ac_has_wctype_h=yes
4754 else
4755 echo "$ac_t""no" 1>&6
4756 ac_has_wctype_h=no
4758 done
4761 if test x"$ac_has_wchar_h" = xyes &&
4762 test x"$ac_has_wctype_h" = xyes &&
4763 test x"$enable_c_mbchar" != xno; then
4765 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4766 echo "configure:4767: checking for WCHAR_MIN and WCHAR_MAX" >&5
4767 cat > conftest.$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4770 #include <wchar.h>
4771 int main() {
4772 int i = WCHAR_MIN; int j = WCHAR_MAX;
4773 ; return 0; }
4775 if { (eval echo configure:4776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4776 rm -rf conftest*
4777 has_wchar_minmax=yes
4778 else
4779 echo "configure: failed program was:" >&5
4780 cat conftest.$ac_ext >&5
4781 rm -rf conftest*
4782 has_wchar_minmax=no
4784 rm -f conftest*
4785 echo "$ac_t""$has_wchar_minmax" 1>&6
4787 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4788 echo "configure:4789: checking for WEOF" >&5
4789 cat > conftest.$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4793 #include <wchar.h>
4794 #include <stddef.h>
4795 int main() {
4796 wint_t i = WEOF;
4797 ; return 0; }
4799 if { (eval echo configure:4800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4800 rm -rf conftest*
4801 has_weof=yes
4802 else
4803 echo "configure: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4805 rm -rf conftest*
4806 has_weof=no
4808 rm -f conftest*
4809 echo "$ac_t""$has_weof" 1>&6
4811 ac_wfuncs=yes
4812 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4815 echo "configure:4816: checking for $ac_func" >&5
4816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4818 else
4819 cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4822 /* System header to define __stub macros and hopefully few prototypes,
4823 which can conflict with char $ac_func(); below. */
4824 #include <assert.h>
4825 /* Override any gcc2 internal prototype to avoid an error. */
4826 /* We use char because int might match the return type of a gcc2
4827 builtin and then its argument prototype would still apply. */
4828 char $ac_func();
4830 int main() {
4832 /* The GNU C library defines this for functions which it implements
4833 to always fail with ENOSYS. Some functions are actually named
4834 something starting with __ and the normal name is an alias. */
4835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4836 choke me
4837 #else
4838 $ac_func();
4839 #endif
4841 ; return 0; }
4843 if { (eval echo configure:4844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4844 rm -rf conftest*
4845 eval "ac_cv_func_$ac_func=yes"
4846 else
4847 echo "configure: failed program was:" >&5
4848 cat conftest.$ac_ext >&5
4849 rm -rf conftest*
4850 eval "ac_cv_func_$ac_func=no"
4852 rm -f conftest*
4855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4856 echo "$ac_t""yes" 1>&6
4857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4858 cat >> confdefs.h <<EOF
4859 #define $ac_tr_func 1
4862 else
4863 echo "$ac_t""no" 1>&6
4865 ac_wfuncs=no
4867 done
4870 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
4871 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4872 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4873 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4874 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4875 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4878 echo "configure:4879: checking for $ac_func" >&5
4879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4880 echo $ac_n "(cached) $ac_c" 1>&6
4881 else
4882 cat > conftest.$ac_ext <<EOF
4883 #line 4884 "configure"
4884 #include "confdefs.h"
4885 /* System header to define __stub macros and hopefully few prototypes,
4886 which can conflict with char $ac_func(); below. */
4887 #include <assert.h>
4888 /* Override any gcc2 internal prototype to avoid an error. */
4889 /* We use char because int might match the return type of a gcc2
4890 builtin and then its argument prototype would still apply. */
4891 char $ac_func();
4893 int main() {
4895 /* The GNU C library defines this for functions which it implements
4896 to always fail with ENOSYS. Some functions are actually named
4897 something starting with __ and the normal name is an alias. */
4898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4899 choke me
4900 #else
4901 $ac_func();
4902 #endif
4904 ; return 0; }
4906 if { (eval echo configure:4907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4907 rm -rf conftest*
4908 eval "ac_cv_func_$ac_func=yes"
4909 else
4910 echo "configure: failed program was:" >&5
4911 cat conftest.$ac_ext >&5
4912 rm -rf conftest*
4913 eval "ac_cv_func_$ac_func=no"
4915 rm -f conftest*
4918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4919 echo "$ac_t""yes" 1>&6
4920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4921 cat >> confdefs.h <<EOF
4922 #define $ac_tr_func 1
4925 else
4926 echo "$ac_t""no" 1>&6
4928 ac_wfuncs=no
4930 done
4933 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4934 echo "configure:4935: checking for ISO C99 wchar_t support" >&5
4935 if test x"$has_weof" = xyes &&
4936 test x"$has_wchar_minmax" = xyes &&
4937 test x"$ac_wfuncs" = xyes; then
4938 ac_isoC99_wchar_t=yes
4939 else
4940 ac_isoC99_wchar_t=no
4942 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4944 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4945 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4946 echo "configure:4947: checking for iconv.h" >&5
4947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4949 else
4950 cat > conftest.$ac_ext <<EOF
4951 #line 4952 "configure"
4952 #include "confdefs.h"
4953 #include <iconv.h>
4955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4956 { (eval echo configure:4957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4958 if test -z "$ac_err"; then
4959 rm -rf conftest*
4960 eval "ac_cv_header_$ac_safe=yes"
4961 else
4962 echo "$ac_err" >&5
4963 echo "configure: failed program was:" >&5
4964 cat conftest.$ac_ext >&5
4965 rm -rf conftest*
4966 eval "ac_cv_header_$ac_safe=no"
4968 rm -f conftest*
4970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4971 echo "$ac_t""yes" 1>&6
4972 ac_has_iconv_h=yes
4973 else
4974 echo "$ac_t""no" 1>&6
4975 ac_has_iconv_h=no
4978 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4979 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4980 echo "configure:4981: checking for langinfo.h" >&5
4981 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6
4983 else
4984 cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4987 #include <langinfo.h>
4989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4990 { (eval echo configure:4991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4992 if test -z "$ac_err"; then
4993 rm -rf conftest*
4994 eval "ac_cv_header_$ac_safe=yes"
4995 else
4996 echo "$ac_err" >&5
4997 echo "configure: failed program was:" >&5
4998 cat conftest.$ac_ext >&5
4999 rm -rf conftest*
5000 eval "ac_cv_header_$ac_safe=no"
5002 rm -f conftest*
5004 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5005 echo "$ac_t""yes" 1>&6
5006 ac_has_langinfo_h=yes
5007 else
5008 echo "$ac_t""no" 1>&6
5009 ac_has_langinfo_h=no
5013 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5014 echo "configure:5015: checking for iconv in -liconv" >&5
5015 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5017 echo $ac_n "(cached) $ac_c" 1>&6
5018 else
5019 ac_save_LIBS="$LIBS"
5020 LIBS="-liconv $LIBS"
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5024 /* Override any gcc2 internal prototype to avoid an error. */
5025 /* We use char because int might match the return type of a gcc2
5026 builtin and then its argument prototype would still apply. */
5027 char iconv();
5029 int main() {
5030 iconv()
5031 ; return 0; }
5033 if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5034 rm -rf conftest*
5035 eval "ac_cv_lib_$ac_lib_var=yes"
5036 else
5037 echo "configure: failed program was:" >&5
5038 cat conftest.$ac_ext >&5
5039 rm -rf conftest*
5040 eval "ac_cv_lib_$ac_lib_var=no"
5042 rm -f conftest*
5043 LIBS="$ac_save_LIBS"
5046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5047 echo "$ac_t""yes" 1>&6
5048 libiconv="-liconv"
5049 else
5050 echo "$ac_t""no" 1>&6
5053 ac_save_LIBS="$LIBS"
5054 LIBS="$LIBS $libiconv"
5056 for ac_func in iconv_open iconv_close iconv nl_langinfo
5058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5059 echo "configure:5060: checking for $ac_func" >&5
5060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5061 echo $ac_n "(cached) $ac_c" 1>&6
5062 else
5063 cat > conftest.$ac_ext <<EOF
5064 #line 5065 "configure"
5065 #include "confdefs.h"
5066 /* System header to define __stub macros and hopefully few prototypes,
5067 which can conflict with char $ac_func(); below. */
5068 #include <assert.h>
5069 /* Override any gcc2 internal prototype to avoid an error. */
5070 /* We use char because int might match the return type of a gcc2
5071 builtin and then its argument prototype would still apply. */
5072 char $ac_func();
5074 int main() {
5076 /* The GNU C library defines this for functions which it implements
5077 to always fail with ENOSYS. Some functions are actually named
5078 something starting with __ and the normal name is an alias. */
5079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5080 choke me
5081 #else
5082 $ac_func();
5083 #endif
5085 ; return 0; }
5087 if { (eval echo configure:5088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5088 rm -rf conftest*
5089 eval "ac_cv_func_$ac_func=yes"
5090 else
5091 echo "configure: failed program was:" >&5
5092 cat conftest.$ac_ext >&5
5093 rm -rf conftest*
5094 eval "ac_cv_func_$ac_func=no"
5096 rm -f conftest*
5099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5100 echo "$ac_t""yes" 1>&6
5101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5102 cat >> confdefs.h <<EOF
5103 #define $ac_tr_func 1
5106 ac_XPG2funcs=yes
5107 else
5108 echo "$ac_t""no" 1>&6
5109 ac_XPG2funcs=no
5111 done
5114 LIBS="$ac_save_LIBS"
5116 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5117 echo "configure:5118: checking for XPG2 wchar_t support" >&5
5118 if test x"$ac_has_iconv_h" = xyes &&
5119 test x"$ac_has_langinfo_h" = xyes &&
5120 test x"$ac_XPG2funcs" = xyes; then
5121 ac_XPG2_wchar_t=yes
5122 else
5123 ac_XPG2_wchar_t=no
5125 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5127 if test x"$ac_isoC99_wchar_t" = xyes &&
5128 test x"$ac_XPG2_wchar_t" = xyes; then
5129 cat >> confdefs.h <<\EOF
5130 #define _GLIBCPP_USE_WCHAR_T 1
5133 enable_wchar_t=yes
5136 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5137 echo "configure:5138: checking for enabled wchar_t specializations" >&5
5138 echo "$ac_t""$enable_wchar_t" 1>&6
5140 cat >> confdefs.h <<\EOF
5141 #define HAVE_LC_MESSAGES 1
5144 cat >> confdefs.h <<\EOF
5145 #define HAVE_DRAND48 1
5148 cat >> confdefs.h <<\EOF
5149 #define HAVE_GETPAGESIZE 1
5152 cat >> confdefs.h <<\EOF
5153 #define HAVE_SETENV 1
5156 cat >> confdefs.h <<\EOF
5157 #define HAVE_SIGSETJMP 1
5160 cat >> confdefs.h <<\EOF
5161 #define HAVE_COPYSIGN 1
5164 cat >> confdefs.h <<\EOF
5165 #define HAVE_COPYSIGNF 1
5168 cat >> confdefs.h <<\EOF
5169 #define HAVE_FINITEF 1
5172 cat >> confdefs.h <<\EOF
5173 #define HAVE_FINITE 1
5176 cat >> confdefs.h <<\EOF
5177 #define HAVE_FREXPF 1
5180 cat >> confdefs.h <<\EOF
5181 #define HAVE_HYPOT 1
5184 cat >> confdefs.h <<\EOF
5185 #define HAVE_HYPOTF 1
5188 cat >> confdefs.h <<\EOF
5189 #define HAVE_ISINF 1
5192 cat >> confdefs.h <<\EOF
5193 #define HAVE_ISNAN 1
5196 cat >> confdefs.h <<\EOF
5197 #define HAVE_ISNANF 1
5201 cat >> confdefs.h <<\EOF
5202 #define HAVE_MMAP 1
5205 cat >> confdefs.h <<\EOF
5206 #define HAVE_ACOSF 1
5209 cat >> confdefs.h <<\EOF
5210 #define HAVE_ASINF 1
5213 cat >> confdefs.h <<\EOF
5214 #define HAVE_ATAN2F 1
5217 cat >> confdefs.h <<\EOF
5218 #define HAVE_ATANF 1
5221 cat >> confdefs.h <<\EOF
5222 #define HAVE_CEILF 1
5225 cat >> confdefs.h <<\EOF
5226 #define HAVE_COPYSIGN 1
5229 cat >> confdefs.h <<\EOF
5230 #define HAVE_COPYSIGNF 1
5233 cat >> confdefs.h <<\EOF
5234 #define HAVE_COSF 1
5237 cat >> confdefs.h <<\EOF
5238 #define HAVE_COSHF 1
5241 cat >> confdefs.h <<\EOF
5242 #define HAVE_EXPF 1
5245 cat >> confdefs.h <<\EOF
5246 #define HAVE_FABSF 1
5249 cat >> confdefs.h <<\EOF
5250 #define HAVE_FLOORF 1
5253 cat >> confdefs.h <<\EOF
5254 #define HAVE_FMODF 1
5257 cat >> confdefs.h <<\EOF
5258 #define HAVE_FREXPF 1
5261 cat >> confdefs.h <<\EOF
5262 #define HAVE_LDEXPF 1
5265 cat >> confdefs.h <<\EOF
5266 #define HAVE_LOG10F 1
5269 cat >> confdefs.h <<\EOF
5270 #define HAVE_LOGF 1
5273 cat >> confdefs.h <<\EOF
5274 #define HAVE_MODFF 1
5277 cat >> confdefs.h <<\EOF
5278 #define HAVE_POWF 1
5281 cat >> confdefs.h <<\EOF
5282 #define HAVE_SINF 1
5285 cat >> confdefs.h <<\EOF
5286 #define HAVE_SINHF 1
5289 cat >> confdefs.h <<\EOF
5290 #define HAVE_SQRTF 1
5293 cat >> confdefs.h <<\EOF
5294 #define HAVE_TANF 1
5297 cat >> confdefs.h <<\EOF
5298 #define HAVE_TANHF 1
5301 if test x"long_double_math_on_this_cpu" = x"yes"; then
5302 cat >> confdefs.h <<\EOF
5303 #define HAVE_FINITEL 1
5306 cat >> confdefs.h <<\EOF
5307 #define HAVE_ISINFL 1
5310 cat >> confdefs.h <<\EOF
5311 #define HAVE_ISNANL 1
5316 *-hpux*)
5317 os_include_dir="os/hpux"
5318 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5319 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5320 fp.h locale.h float.h inttypes.h
5322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5324 echo "configure:5325: checking for $ac_hdr" >&5
5325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5326 echo $ac_n "(cached) $ac_c" 1>&6
5327 else
5328 cat > conftest.$ac_ext <<EOF
5329 #line 5330 "configure"
5330 #include "confdefs.h"
5331 #include <$ac_hdr>
5333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5334 { (eval echo configure:5335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5336 if test -z "$ac_err"; then
5337 rm -rf conftest*
5338 eval "ac_cv_header_$ac_safe=yes"
5339 else
5340 echo "$ac_err" >&5
5341 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
5343 rm -rf conftest*
5344 eval "ac_cv_header_$ac_safe=no"
5346 rm -f conftest*
5348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5349 echo "$ac_t""yes" 1>&6
5350 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5351 cat >> confdefs.h <<EOF
5352 #define $ac_tr_hdr 1
5355 else
5356 echo "$ac_t""no" 1>&6
5358 done
5360 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5363 # If we're not using GNU ld, then there's no point in even trying these
5364 # tests. Check for that first. We should have already tested for gld
5365 # by now (in libtool), but require it now just to be safe...
5366 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5367 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5370 # The name set by libtool depends on the version of libtool. Shame on us
5371 # for depending on an impl detail, but c'est la vie. Older versions used
5372 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5373 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5374 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5375 # set (hence we're using an older libtool), then set it.
5376 if test x${with_gnu_ld+set} != xset; then
5377 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5378 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5379 with_gnu_ld=no
5380 else
5381 with_gnu_ld=$ac_cv_prog_gnu_ld
5385 # Start by getting the version number. I think the libtool test already
5386 # does some of this, but throws away the result.
5388 ldver=`$LD --version 2>/dev/null | head -1 | \
5389 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5391 glibcpp_gnu_ld_version=`echo $ldver | \
5392 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5394 # Set --gc-sections.
5395 if test "$with_gnu_ld" = "notbroken"; then
5396 # GNU ld it is! Joy and bunny rabbits!
5398 # All these tests are for C++; save the language and the compiler flags.
5399 # Need to do this so that g++ won't try to link in libstdc++
5400 ac_test_CFLAGS="${CFLAGS+set}"
5401 ac_save_CFLAGS="$CFLAGS"
5402 CFLAGS='-x c++ -Wl,--gc-sections'
5404 # Check for -Wl,--gc-sections
5405 # XXX This test is broken at the moment, as symbols required for
5406 # linking are now in libsupc++ (not built yet.....). In addition,
5407 # this test has cored on solaris in the past. In addition,
5408 # --gc-sections doesn't really work at the moment (keeps on discarding
5409 # used sections, first .eh_frame and now some of the glibc sections for
5410 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5411 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5412 echo "configure:5413: checking for ld that supports -Wl,--gc-sections" >&5
5413 if test "$cross_compiling" = yes; then
5414 ac_sectionLDflags=yes
5415 else
5416 cat > conftest.$ac_ext <<EOF
5417 #line 5418 "configure"
5418 #include "confdefs.h"
5420 int main(void)
5422 try { throw 1; }
5423 catch (...) { };
5424 return 0;
5428 if { (eval echo configure:5429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5429 then
5430 ac_sectionLDflags=yes
5431 else
5432 echo "configure: failed program was:" >&5
5433 cat conftest.$ac_ext >&5
5434 rm -fr conftest*
5435 ac_sectionLDflags=no
5437 rm -fr conftest*
5440 if test "$ac_test_CFLAGS" = set; then
5441 CFLAGS="$ac_save_CFLAGS"
5442 else
5443 # this is the suspicious part
5444 CFLAGS=''
5446 if test "$ac_sectionLDflags" = "yes"; then
5447 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5449 echo "$ac_t""$ac_sectionLDflags" 1>&6
5452 # Set linker optimization flags.
5453 if test x"$with_gnu_ld" = x"yes"; then
5454 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5461 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5462 echo "configure:5463: checking for main in -lm" >&5
5463 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5464 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5465 echo $ac_n "(cached) $ac_c" 1>&6
5466 else
5467 ac_save_LIBS="$LIBS"
5468 LIBS="-lm $LIBS"
5469 cat > conftest.$ac_ext <<EOF
5470 #line 5471 "configure"
5471 #include "confdefs.h"
5473 int main() {
5474 main()
5475 ; return 0; }
5477 if { (eval echo configure:5478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5478 rm -rf conftest*
5479 eval "ac_cv_lib_$ac_lib_var=yes"
5480 else
5481 echo "configure: failed program was:" >&5
5482 cat conftest.$ac_ext >&5
5483 rm -rf conftest*
5484 eval "ac_cv_lib_$ac_lib_var=no"
5486 rm -f conftest*
5487 LIBS="$ac_save_LIBS"
5490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5491 echo "$ac_t""yes" 1>&6
5492 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5493 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5494 cat >> confdefs.h <<EOF
5495 #define $ac_tr_lib 1
5498 LIBS="-lm $LIBS"
5500 else
5501 echo "$ac_t""no" 1>&6
5504 for ac_func in nan copysignf
5506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5507 echo "configure:5508: checking for $ac_func" >&5
5508 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5509 echo $ac_n "(cached) $ac_c" 1>&6
5510 else
5511 cat > conftest.$ac_ext <<EOF
5512 #line 5513 "configure"
5513 #include "confdefs.h"
5514 /* System header to define __stub macros and hopefully few prototypes,
5515 which can conflict with char $ac_func(); below. */
5516 #include <assert.h>
5517 /* Override any gcc2 internal prototype to avoid an error. */
5518 /* We use char because int might match the return type of a gcc2
5519 builtin and then its argument prototype would still apply. */
5520 char $ac_func();
5522 int main() {
5524 /* The GNU C library defines this for functions which it implements
5525 to always fail with ENOSYS. Some functions are actually named
5526 something starting with __ and the normal name is an alias. */
5527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5528 choke me
5529 #else
5530 $ac_func();
5531 #endif
5533 ; return 0; }
5535 if { (eval echo configure:5536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5536 rm -rf conftest*
5537 eval "ac_cv_func_$ac_func=yes"
5538 else
5539 echo "configure: failed program was:" >&5
5540 cat conftest.$ac_ext >&5
5541 rm -rf conftest*
5542 eval "ac_cv_func_$ac_func=no"
5544 rm -f conftest*
5547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5548 echo "$ac_t""yes" 1>&6
5549 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5550 cat >> confdefs.h <<EOF
5551 #define $ac_tr_func 1
5554 else
5555 echo "$ac_t""no" 1>&6
5556 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5558 done
5561 for ac_func in __signbit
5563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5564 echo "configure:5565: checking for $ac_func" >&5
5565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5566 echo $ac_n "(cached) $ac_c" 1>&6
5567 else
5568 cat > conftest.$ac_ext <<EOF
5569 #line 5570 "configure"
5570 #include "confdefs.h"
5571 /* System header to define __stub macros and hopefully few prototypes,
5572 which can conflict with char $ac_func(); below. */
5573 #include <assert.h>
5574 /* Override any gcc2 internal prototype to avoid an error. */
5575 /* We use char because int might match the return type of a gcc2
5576 builtin and then its argument prototype would still apply. */
5577 char $ac_func();
5579 int main() {
5581 /* The GNU C library defines this for functions which it implements
5582 to always fail with ENOSYS. Some functions are actually named
5583 something starting with __ and the normal name is an alias. */
5584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5585 choke me
5586 #else
5587 $ac_func();
5588 #endif
5590 ; return 0; }
5592 if { (eval echo configure:5593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5593 rm -rf conftest*
5594 eval "ac_cv_func_$ac_func=yes"
5595 else
5596 echo "configure: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5598 rm -rf conftest*
5599 eval "ac_cv_func_$ac_func=no"
5601 rm -f conftest*
5604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5605 echo "$ac_t""yes" 1>&6
5606 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5607 cat >> confdefs.h <<EOF
5608 #define $ac_tr_func 1
5611 else
5612 echo "$ac_t""no" 1>&6
5613 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5615 done
5617 for ac_func in __signbitf
5619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5620 echo "configure:5621: checking for $ac_func" >&5
5621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5622 echo $ac_n "(cached) $ac_c" 1>&6
5623 else
5624 cat > conftest.$ac_ext <<EOF
5625 #line 5626 "configure"
5626 #include "confdefs.h"
5627 /* System header to define __stub macros and hopefully few prototypes,
5628 which can conflict with char $ac_func(); below. */
5629 #include <assert.h>
5630 /* Override any gcc2 internal prototype to avoid an error. */
5631 /* We use char because int might match the return type of a gcc2
5632 builtin and then its argument prototype would still apply. */
5633 char $ac_func();
5635 int main() {
5637 /* The GNU C library defines this for functions which it implements
5638 to always fail with ENOSYS. Some functions are actually named
5639 something starting with __ and the normal name is an alias. */
5640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5641 choke me
5642 #else
5643 $ac_func();
5644 #endif
5646 ; return 0; }
5648 if { (eval echo configure:5649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5649 rm -rf conftest*
5650 eval "ac_cv_func_$ac_func=yes"
5651 else
5652 echo "configure: failed program was:" >&5
5653 cat conftest.$ac_ext >&5
5654 rm -rf conftest*
5655 eval "ac_cv_func_$ac_func=no"
5657 rm -f conftest*
5660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5661 echo "$ac_t""yes" 1>&6
5662 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5663 cat >> confdefs.h <<EOF
5664 #define $ac_tr_func 1
5667 else
5668 echo "$ac_t""no" 1>&6
5669 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5671 done
5674 if test x$ac_cv_func_copysignl = x"yes"; then
5675 for ac_func in __signbitl
5677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5678 echo "configure:5679: checking for $ac_func" >&5
5679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5680 echo $ac_n "(cached) $ac_c" 1>&6
5681 else
5682 cat > conftest.$ac_ext <<EOF
5683 #line 5684 "configure"
5684 #include "confdefs.h"
5685 /* System header to define __stub macros and hopefully few prototypes,
5686 which can conflict with char $ac_func(); below. */
5687 #include <assert.h>
5688 /* Override any gcc2 internal prototype to avoid an error. */
5689 /* We use char because int might match the return type of a gcc2
5690 builtin and then its argument prototype would still apply. */
5691 char $ac_func();
5693 int main() {
5695 /* The GNU C library defines this for functions which it implements
5696 to always fail with ENOSYS. Some functions are actually named
5697 something starting with __ and the normal name is an alias. */
5698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5699 choke me
5700 #else
5701 $ac_func();
5702 #endif
5704 ; return 0; }
5706 if { (eval echo configure:5707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5707 rm -rf conftest*
5708 eval "ac_cv_func_$ac_func=yes"
5709 else
5710 echo "configure: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5712 rm -rf conftest*
5713 eval "ac_cv_func_$ac_func=no"
5715 rm -f conftest*
5718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5719 echo "$ac_t""yes" 1>&6
5720 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5721 cat >> confdefs.h <<EOF
5722 #define $ac_tr_func 1
5725 else
5726 echo "$ac_t""no" 1>&6
5727 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5729 done
5733 if test -n "$LIBMATHOBJS"; then
5734 need_libmath=yes
5740 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5741 echo "configure:5742: checking for mbstate_t" >&5
5742 cat > conftest.$ac_ext <<EOF
5743 #line 5744 "configure"
5744 #include "confdefs.h"
5745 #include <wchar.h>
5746 int main() {
5747 mbstate_t teststate;
5748 ; return 0; }
5750 if { (eval echo configure:5751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5751 rm -rf conftest*
5752 have_mbstate_t=yes
5753 else
5754 echo "configure: failed program was:" >&5
5755 cat conftest.$ac_ext >&5
5756 rm -rf conftest*
5757 have_mbstate_t=no
5759 rm -f conftest*
5760 echo "$ac_t""$have_mbstate_t" 1>&6
5761 if test x"$have_mbstate_t" = xyes; then
5762 cat >> confdefs.h <<\EOF
5763 #define HAVE_MBSTATE_T 1
5768 for ac_hdr in wchar.h
5770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5772 echo "configure:5773: checking for $ac_hdr" >&5
5773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5774 echo $ac_n "(cached) $ac_c" 1>&6
5775 else
5776 cat > conftest.$ac_ext <<EOF
5777 #line 5778 "configure"
5778 #include "confdefs.h"
5779 #include <$ac_hdr>
5781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5782 { (eval echo configure:5783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5784 if test -z "$ac_err"; then
5785 rm -rf conftest*
5786 eval "ac_cv_header_$ac_safe=yes"
5787 else
5788 echo "$ac_err" >&5
5789 echo "configure: failed program was:" >&5
5790 cat conftest.$ac_ext >&5
5791 rm -rf conftest*
5792 eval "ac_cv_header_$ac_safe=no"
5794 rm -f conftest*
5796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5797 echo "$ac_t""yes" 1>&6
5798 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5799 cat >> confdefs.h <<EOF
5800 #define $ac_tr_hdr 1
5802 ac_has_wchar_h=yes
5803 else
5804 echo "$ac_t""no" 1>&6
5805 ac_has_wchar_h=no
5807 done
5809 for ac_hdr in wctype.h
5811 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5813 echo "configure:5814: checking for $ac_hdr" >&5
5814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5816 else
5817 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5820 #include <$ac_hdr>
5822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5823 { (eval echo configure:5824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5825 if test -z "$ac_err"; then
5826 rm -rf conftest*
5827 eval "ac_cv_header_$ac_safe=yes"
5828 else
5829 echo "$ac_err" >&5
5830 echo "configure: failed program was:" >&5
5831 cat conftest.$ac_ext >&5
5832 rm -rf conftest*
5833 eval "ac_cv_header_$ac_safe=no"
5835 rm -f conftest*
5837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5838 echo "$ac_t""yes" 1>&6
5839 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5840 cat >> confdefs.h <<EOF
5841 #define $ac_tr_hdr 1
5843 ac_has_wctype_h=yes
5844 else
5845 echo "$ac_t""no" 1>&6
5846 ac_has_wctype_h=no
5848 done
5851 if test x"$ac_has_wchar_h" = xyes &&
5852 test x"$ac_has_wctype_h" = xyes &&
5853 test x"$enable_c_mbchar" != xno; then
5855 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5856 echo "configure:5857: checking for WCHAR_MIN and WCHAR_MAX" >&5
5857 cat > conftest.$ac_ext <<EOF
5858 #line 5859 "configure"
5859 #include "confdefs.h"
5860 #include <wchar.h>
5861 int main() {
5862 int i = WCHAR_MIN; int j = WCHAR_MAX;
5863 ; return 0; }
5865 if { (eval echo configure:5866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5866 rm -rf conftest*
5867 has_wchar_minmax=yes
5868 else
5869 echo "configure: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5871 rm -rf conftest*
5872 has_wchar_minmax=no
5874 rm -f conftest*
5875 echo "$ac_t""$has_wchar_minmax" 1>&6
5877 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5878 echo "configure:5879: checking for WEOF" >&5
5879 cat > conftest.$ac_ext <<EOF
5880 #line 5881 "configure"
5881 #include "confdefs.h"
5883 #include <wchar.h>
5884 #include <stddef.h>
5885 int main() {
5886 wint_t i = WEOF;
5887 ; return 0; }
5889 if { (eval echo configure:5890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5890 rm -rf conftest*
5891 has_weof=yes
5892 else
5893 echo "configure: failed program was:" >&5
5894 cat conftest.$ac_ext >&5
5895 rm -rf conftest*
5896 has_weof=no
5898 rm -f conftest*
5899 echo "$ac_t""$has_weof" 1>&6
5901 ac_wfuncs=yes
5902 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5905 echo "configure:5906: checking for $ac_func" >&5
5906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5907 echo $ac_n "(cached) $ac_c" 1>&6
5908 else
5909 cat > conftest.$ac_ext <<EOF
5910 #line 5911 "configure"
5911 #include "confdefs.h"
5912 /* System header to define __stub macros and hopefully few prototypes,
5913 which can conflict with char $ac_func(); below. */
5914 #include <assert.h>
5915 /* Override any gcc2 internal prototype to avoid an error. */
5916 /* We use char because int might match the return type of a gcc2
5917 builtin and then its argument prototype would still apply. */
5918 char $ac_func();
5920 int main() {
5922 /* The GNU C library defines this for functions which it implements
5923 to always fail with ENOSYS. Some functions are actually named
5924 something starting with __ and the normal name is an alias. */
5925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5926 choke me
5927 #else
5928 $ac_func();
5929 #endif
5931 ; return 0; }
5933 if { (eval echo configure:5934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5934 rm -rf conftest*
5935 eval "ac_cv_func_$ac_func=yes"
5936 else
5937 echo "configure: failed program was:" >&5
5938 cat conftest.$ac_ext >&5
5939 rm -rf conftest*
5940 eval "ac_cv_func_$ac_func=no"
5942 rm -f conftest*
5945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5946 echo "$ac_t""yes" 1>&6
5947 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5948 cat >> confdefs.h <<EOF
5949 #define $ac_tr_func 1
5952 else
5953 echo "$ac_t""no" 1>&6
5955 ac_wfuncs=no
5957 done
5960 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5961 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5962 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5963 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5964 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5965 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5968 echo "configure:5969: checking for $ac_func" >&5
5969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5970 echo $ac_n "(cached) $ac_c" 1>&6
5971 else
5972 cat > conftest.$ac_ext <<EOF
5973 #line 5974 "configure"
5974 #include "confdefs.h"
5975 /* System header to define __stub macros and hopefully few prototypes,
5976 which can conflict with char $ac_func(); below. */
5977 #include <assert.h>
5978 /* Override any gcc2 internal prototype to avoid an error. */
5979 /* We use char because int might match the return type of a gcc2
5980 builtin and then its argument prototype would still apply. */
5981 char $ac_func();
5983 int main() {
5985 /* The GNU C library defines this for functions which it implements
5986 to always fail with ENOSYS. Some functions are actually named
5987 something starting with __ and the normal name is an alias. */
5988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5989 choke me
5990 #else
5991 $ac_func();
5992 #endif
5994 ; return 0; }
5996 if { (eval echo configure:5997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5997 rm -rf conftest*
5998 eval "ac_cv_func_$ac_func=yes"
5999 else
6000 echo "configure: failed program was:" >&5
6001 cat conftest.$ac_ext >&5
6002 rm -rf conftest*
6003 eval "ac_cv_func_$ac_func=no"
6005 rm -f conftest*
6008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6009 echo "$ac_t""yes" 1>&6
6010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6011 cat >> confdefs.h <<EOF
6012 #define $ac_tr_func 1
6015 else
6016 echo "$ac_t""no" 1>&6
6018 ac_wfuncs=no
6020 done
6023 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6024 echo "configure:6025: checking for ISO C99 wchar_t support" >&5
6025 if test x"$has_weof" = xyes &&
6026 test x"$has_wchar_minmax" = xyes &&
6027 test x"$ac_wfuncs" = xyes; then
6028 ac_isoC99_wchar_t=yes
6029 else
6030 ac_isoC99_wchar_t=no
6032 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6034 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6035 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6036 echo "configure:6037: checking for iconv.h" >&5
6037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6038 echo $ac_n "(cached) $ac_c" 1>&6
6039 else
6040 cat > conftest.$ac_ext <<EOF
6041 #line 6042 "configure"
6042 #include "confdefs.h"
6043 #include <iconv.h>
6045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6046 { (eval echo configure:6047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6048 if test -z "$ac_err"; then
6049 rm -rf conftest*
6050 eval "ac_cv_header_$ac_safe=yes"
6051 else
6052 echo "$ac_err" >&5
6053 echo "configure: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6055 rm -rf conftest*
6056 eval "ac_cv_header_$ac_safe=no"
6058 rm -f conftest*
6060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6061 echo "$ac_t""yes" 1>&6
6062 ac_has_iconv_h=yes
6063 else
6064 echo "$ac_t""no" 1>&6
6065 ac_has_iconv_h=no
6068 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6069 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6070 echo "configure:6071: checking for langinfo.h" >&5
6071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6072 echo $ac_n "(cached) $ac_c" 1>&6
6073 else
6074 cat > conftest.$ac_ext <<EOF
6075 #line 6076 "configure"
6076 #include "confdefs.h"
6077 #include <langinfo.h>
6079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6080 { (eval echo configure:6081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6082 if test -z "$ac_err"; then
6083 rm -rf conftest*
6084 eval "ac_cv_header_$ac_safe=yes"
6085 else
6086 echo "$ac_err" >&5
6087 echo "configure: failed program was:" >&5
6088 cat conftest.$ac_ext >&5
6089 rm -rf conftest*
6090 eval "ac_cv_header_$ac_safe=no"
6092 rm -f conftest*
6094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6095 echo "$ac_t""yes" 1>&6
6096 ac_has_langinfo_h=yes
6097 else
6098 echo "$ac_t""no" 1>&6
6099 ac_has_langinfo_h=no
6103 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6104 echo "configure:6105: checking for iconv in -liconv" >&5
6105 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6107 echo $ac_n "(cached) $ac_c" 1>&6
6108 else
6109 ac_save_LIBS="$LIBS"
6110 LIBS="-liconv $LIBS"
6111 cat > conftest.$ac_ext <<EOF
6112 #line 6113 "configure"
6113 #include "confdefs.h"
6114 /* Override any gcc2 internal prototype to avoid an error. */
6115 /* We use char because int might match the return type of a gcc2
6116 builtin and then its argument prototype would still apply. */
6117 char iconv();
6119 int main() {
6120 iconv()
6121 ; return 0; }
6123 if { (eval echo configure:6124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6124 rm -rf conftest*
6125 eval "ac_cv_lib_$ac_lib_var=yes"
6126 else
6127 echo "configure: failed program was:" >&5
6128 cat conftest.$ac_ext >&5
6129 rm -rf conftest*
6130 eval "ac_cv_lib_$ac_lib_var=no"
6132 rm -f conftest*
6133 LIBS="$ac_save_LIBS"
6136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6137 echo "$ac_t""yes" 1>&6
6138 libiconv="-liconv"
6139 else
6140 echo "$ac_t""no" 1>&6
6143 ac_save_LIBS="$LIBS"
6144 LIBS="$LIBS $libiconv"
6146 for ac_func in iconv_open iconv_close iconv nl_langinfo
6148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6149 echo "configure:6150: checking for $ac_func" >&5
6150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6151 echo $ac_n "(cached) $ac_c" 1>&6
6152 else
6153 cat > conftest.$ac_ext <<EOF
6154 #line 6155 "configure"
6155 #include "confdefs.h"
6156 /* System header to define __stub macros and hopefully few prototypes,
6157 which can conflict with char $ac_func(); below. */
6158 #include <assert.h>
6159 /* Override any gcc2 internal prototype to avoid an error. */
6160 /* We use char because int might match the return type of a gcc2
6161 builtin and then its argument prototype would still apply. */
6162 char $ac_func();
6164 int main() {
6166 /* The GNU C library defines this for functions which it implements
6167 to always fail with ENOSYS. Some functions are actually named
6168 something starting with __ and the normal name is an alias. */
6169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6170 choke me
6171 #else
6172 $ac_func();
6173 #endif
6175 ; return 0; }
6177 if { (eval echo configure:6178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6178 rm -rf conftest*
6179 eval "ac_cv_func_$ac_func=yes"
6180 else
6181 echo "configure: failed program was:" >&5
6182 cat conftest.$ac_ext >&5
6183 rm -rf conftest*
6184 eval "ac_cv_func_$ac_func=no"
6186 rm -f conftest*
6189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6190 echo "$ac_t""yes" 1>&6
6191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6192 cat >> confdefs.h <<EOF
6193 #define $ac_tr_func 1
6196 ac_XPG2funcs=yes
6197 else
6198 echo "$ac_t""no" 1>&6
6199 ac_XPG2funcs=no
6201 done
6204 LIBS="$ac_save_LIBS"
6206 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6207 echo "configure:6208: checking for XPG2 wchar_t support" >&5
6208 if test x"$ac_has_iconv_h" = xyes &&
6209 test x"$ac_has_langinfo_h" = xyes &&
6210 test x"$ac_XPG2funcs" = xyes; then
6211 ac_XPG2_wchar_t=yes
6212 else
6213 ac_XPG2_wchar_t=no
6215 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6217 if test x"$ac_isoC99_wchar_t" = xyes &&
6218 test x"$ac_XPG2_wchar_t" = xyes; then
6219 cat >> confdefs.h <<\EOF
6220 #define _GLIBCPP_USE_WCHAR_T 1
6223 enable_wchar_t=yes
6226 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6227 echo "configure:6228: checking for enabled wchar_t specializations" >&5
6228 echo "$ac_t""$enable_wchar_t" 1>&6
6230 cat >> confdefs.h <<\EOF
6231 #define HAVE_COPYSIGN 1
6234 cat >> confdefs.h <<\EOF
6235 #define HAVE_COPYSIGNF 1
6238 cat >> confdefs.h <<\EOF
6239 #define HAVE_FREXPF 1
6242 cat >> confdefs.h <<\EOF
6243 #define HAVE_HYPOT 1
6246 case "$target" in
6247 *-hpux10*)
6248 cat >> confdefs.h <<\EOF
6249 #define HAVE_FINITE 1
6252 cat >> confdefs.h <<\EOF
6253 #define HAVE_FINITEF 1
6256 cat >> confdefs.h <<\EOF
6257 #define HAVE_ISINF 1
6260 cat >> confdefs.h <<\EOF
6261 #define HAVE_ISINFF 1
6264 cat >> confdefs.h <<\EOF
6265 #define HAVE_ISNAN 1
6268 cat >> confdefs.h <<\EOF
6269 #define HAVE_ISNANF 1
6273 esac
6275 *-linux*)
6276 os_include_dir="os/gnu-linux"
6277 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6278 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6279 fp.h locale.h float.h inttypes.h
6281 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6282 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6283 echo "configure:6284: checking for $ac_hdr" >&5
6284 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6285 echo $ac_n "(cached) $ac_c" 1>&6
6286 else
6287 cat > conftest.$ac_ext <<EOF
6288 #line 6289 "configure"
6289 #include "confdefs.h"
6290 #include <$ac_hdr>
6292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6293 { (eval echo configure:6294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6295 if test -z "$ac_err"; then
6296 rm -rf conftest*
6297 eval "ac_cv_header_$ac_safe=yes"
6298 else
6299 echo "$ac_err" >&5
6300 echo "configure: failed program was:" >&5
6301 cat conftest.$ac_ext >&5
6302 rm -rf conftest*
6303 eval "ac_cv_header_$ac_safe=no"
6305 rm -f conftest*
6307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6308 echo "$ac_t""yes" 1>&6
6309 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6310 cat >> confdefs.h <<EOF
6311 #define $ac_tr_hdr 1
6314 else
6315 echo "$ac_t""no" 1>&6
6317 done
6319 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6322 # If we're not using GNU ld, then there's no point in even trying these
6323 # tests. Check for that first. We should have already tested for gld
6324 # by now (in libtool), but require it now just to be safe...
6325 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6326 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6329 # The name set by libtool depends on the version of libtool. Shame on us
6330 # for depending on an impl detail, but c'est la vie. Older versions used
6331 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6332 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6333 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6334 # set (hence we're using an older libtool), then set it.
6335 if test x${with_gnu_ld+set} != xset; then
6336 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6337 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6338 with_gnu_ld=no
6339 else
6340 with_gnu_ld=$ac_cv_prog_gnu_ld
6344 # Start by getting the version number. I think the libtool test already
6345 # does some of this, but throws away the result.
6347 ldver=`$LD --version 2>/dev/null | head -1 | \
6348 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6350 glibcpp_gnu_ld_version=`echo $ldver | \
6351 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6353 # Set --gc-sections.
6354 if test "$with_gnu_ld" = "notbroken"; then
6355 # GNU ld it is! Joy and bunny rabbits!
6357 # All these tests are for C++; save the language and the compiler flags.
6358 # Need to do this so that g++ won't try to link in libstdc++
6359 ac_test_CFLAGS="${CFLAGS+set}"
6360 ac_save_CFLAGS="$CFLAGS"
6361 CFLAGS='-x c++ -Wl,--gc-sections'
6363 # Check for -Wl,--gc-sections
6364 # XXX This test is broken at the moment, as symbols required for
6365 # linking are now in libsupc++ (not built yet.....). In addition,
6366 # this test has cored on solaris in the past. In addition,
6367 # --gc-sections doesn't really work at the moment (keeps on discarding
6368 # used sections, first .eh_frame and now some of the glibc sections for
6369 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6370 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6371 echo "configure:6372: checking for ld that supports -Wl,--gc-sections" >&5
6372 if test "$cross_compiling" = yes; then
6373 ac_sectionLDflags=yes
6374 else
6375 cat > conftest.$ac_ext <<EOF
6376 #line 6377 "configure"
6377 #include "confdefs.h"
6379 int main(void)
6381 try { throw 1; }
6382 catch (...) { };
6383 return 0;
6387 if { (eval echo configure:6388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6388 then
6389 ac_sectionLDflags=yes
6390 else
6391 echo "configure: failed program was:" >&5
6392 cat conftest.$ac_ext >&5
6393 rm -fr conftest*
6394 ac_sectionLDflags=no
6396 rm -fr conftest*
6399 if test "$ac_test_CFLAGS" = set; then
6400 CFLAGS="$ac_save_CFLAGS"
6401 else
6402 # this is the suspicious part
6403 CFLAGS=''
6405 if test "$ac_sectionLDflags" = "yes"; then
6406 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6408 echo "$ac_t""$ac_sectionLDflags" 1>&6
6411 # Set linker optimization flags.
6412 if test x"$with_gnu_ld" = x"yes"; then
6413 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6420 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6421 echo "configure:6422: checking for main in -lm" >&5
6422 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6424 echo $ac_n "(cached) $ac_c" 1>&6
6425 else
6426 ac_save_LIBS="$LIBS"
6427 LIBS="-lm $LIBS"
6428 cat > conftest.$ac_ext <<EOF
6429 #line 6430 "configure"
6430 #include "confdefs.h"
6432 int main() {
6433 main()
6434 ; return 0; }
6436 if { (eval echo configure:6437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6437 rm -rf conftest*
6438 eval "ac_cv_lib_$ac_lib_var=yes"
6439 else
6440 echo "configure: failed program was:" >&5
6441 cat conftest.$ac_ext >&5
6442 rm -rf conftest*
6443 eval "ac_cv_lib_$ac_lib_var=no"
6445 rm -f conftest*
6446 LIBS="$ac_save_LIBS"
6449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6450 echo "$ac_t""yes" 1>&6
6451 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6452 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6453 cat >> confdefs.h <<EOF
6454 #define $ac_tr_lib 1
6457 LIBS="-lm $LIBS"
6459 else
6460 echo "$ac_t""no" 1>&6
6463 for ac_func in nan copysignf
6465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6466 echo "configure:6467: checking for $ac_func" >&5
6467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6468 echo $ac_n "(cached) $ac_c" 1>&6
6469 else
6470 cat > conftest.$ac_ext <<EOF
6471 #line 6472 "configure"
6472 #include "confdefs.h"
6473 /* System header to define __stub macros and hopefully few prototypes,
6474 which can conflict with char $ac_func(); below. */
6475 #include <assert.h>
6476 /* Override any gcc2 internal prototype to avoid an error. */
6477 /* We use char because int might match the return type of a gcc2
6478 builtin and then its argument prototype would still apply. */
6479 char $ac_func();
6481 int main() {
6483 /* The GNU C library defines this for functions which it implements
6484 to always fail with ENOSYS. Some functions are actually named
6485 something starting with __ and the normal name is an alias. */
6486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6487 choke me
6488 #else
6489 $ac_func();
6490 #endif
6492 ; return 0; }
6494 if { (eval echo configure:6495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6495 rm -rf conftest*
6496 eval "ac_cv_func_$ac_func=yes"
6497 else
6498 echo "configure: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6500 rm -rf conftest*
6501 eval "ac_cv_func_$ac_func=no"
6503 rm -f conftest*
6506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6507 echo "$ac_t""yes" 1>&6
6508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6509 cat >> confdefs.h <<EOF
6510 #define $ac_tr_func 1
6513 else
6514 echo "$ac_t""no" 1>&6
6515 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6517 done
6520 for ac_func in __signbit
6522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6523 echo "configure:6524: checking for $ac_func" >&5
6524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6525 echo $ac_n "(cached) $ac_c" 1>&6
6526 else
6527 cat > conftest.$ac_ext <<EOF
6528 #line 6529 "configure"
6529 #include "confdefs.h"
6530 /* System header to define __stub macros and hopefully few prototypes,
6531 which can conflict with char $ac_func(); below. */
6532 #include <assert.h>
6533 /* Override any gcc2 internal prototype to avoid an error. */
6534 /* We use char because int might match the return type of a gcc2
6535 builtin and then its argument prototype would still apply. */
6536 char $ac_func();
6538 int main() {
6540 /* The GNU C library defines this for functions which it implements
6541 to always fail with ENOSYS. Some functions are actually named
6542 something starting with __ and the normal name is an alias. */
6543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6544 choke me
6545 #else
6546 $ac_func();
6547 #endif
6549 ; return 0; }
6551 if { (eval echo configure:6552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6552 rm -rf conftest*
6553 eval "ac_cv_func_$ac_func=yes"
6554 else
6555 echo "configure: failed program was:" >&5
6556 cat conftest.$ac_ext >&5
6557 rm -rf conftest*
6558 eval "ac_cv_func_$ac_func=no"
6560 rm -f conftest*
6563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6564 echo "$ac_t""yes" 1>&6
6565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6566 cat >> confdefs.h <<EOF
6567 #define $ac_tr_func 1
6570 else
6571 echo "$ac_t""no" 1>&6
6572 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6574 done
6576 for ac_func in __signbitf
6578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6579 echo "configure:6580: checking for $ac_func" >&5
6580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6581 echo $ac_n "(cached) $ac_c" 1>&6
6582 else
6583 cat > conftest.$ac_ext <<EOF
6584 #line 6585 "configure"
6585 #include "confdefs.h"
6586 /* System header to define __stub macros and hopefully few prototypes,
6587 which can conflict with char $ac_func(); below. */
6588 #include <assert.h>
6589 /* Override any gcc2 internal prototype to avoid an error. */
6590 /* We use char because int might match the return type of a gcc2
6591 builtin and then its argument prototype would still apply. */
6592 char $ac_func();
6594 int main() {
6596 /* The GNU C library defines this for functions which it implements
6597 to always fail with ENOSYS. Some functions are actually named
6598 something starting with __ and the normal name is an alias. */
6599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6600 choke me
6601 #else
6602 $ac_func();
6603 #endif
6605 ; return 0; }
6607 if { (eval echo configure:6608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6608 rm -rf conftest*
6609 eval "ac_cv_func_$ac_func=yes"
6610 else
6611 echo "configure: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6613 rm -rf conftest*
6614 eval "ac_cv_func_$ac_func=no"
6616 rm -f conftest*
6619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6620 echo "$ac_t""yes" 1>&6
6621 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6622 cat >> confdefs.h <<EOF
6623 #define $ac_tr_func 1
6626 else
6627 echo "$ac_t""no" 1>&6
6628 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6630 done
6633 if test x$ac_cv_func_copysignl = x"yes"; then
6634 for ac_func in __signbitl
6636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6637 echo "configure:6638: checking for $ac_func" >&5
6638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6639 echo $ac_n "(cached) $ac_c" 1>&6
6640 else
6641 cat > conftest.$ac_ext <<EOF
6642 #line 6643 "configure"
6643 #include "confdefs.h"
6644 /* System header to define __stub macros and hopefully few prototypes,
6645 which can conflict with char $ac_func(); below. */
6646 #include <assert.h>
6647 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6650 char $ac_func();
6652 int main() {
6654 /* The GNU C library defines this for functions which it implements
6655 to always fail with ENOSYS. Some functions are actually named
6656 something starting with __ and the normal name is an alias. */
6657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6658 choke me
6659 #else
6660 $ac_func();
6661 #endif
6663 ; return 0; }
6665 if { (eval echo configure:6666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6666 rm -rf conftest*
6667 eval "ac_cv_func_$ac_func=yes"
6668 else
6669 echo "configure: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6671 rm -rf conftest*
6672 eval "ac_cv_func_$ac_func=no"
6674 rm -f conftest*
6677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6678 echo "$ac_t""yes" 1>&6
6679 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6680 cat >> confdefs.h <<EOF
6681 #define $ac_tr_func 1
6684 else
6685 echo "$ac_t""no" 1>&6
6686 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6688 done
6692 if test -n "$LIBMATHOBJS"; then
6693 need_libmath=yes
6699 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6700 echo "configure:6701: checking for mbstate_t" >&5
6701 cat > conftest.$ac_ext <<EOF
6702 #line 6703 "configure"
6703 #include "confdefs.h"
6704 #include <wchar.h>
6705 int main() {
6706 mbstate_t teststate;
6707 ; return 0; }
6709 if { (eval echo configure:6710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6710 rm -rf conftest*
6711 have_mbstate_t=yes
6712 else
6713 echo "configure: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6715 rm -rf conftest*
6716 have_mbstate_t=no
6718 rm -f conftest*
6719 echo "$ac_t""$have_mbstate_t" 1>&6
6720 if test x"$have_mbstate_t" = xyes; then
6721 cat >> confdefs.h <<\EOF
6722 #define HAVE_MBSTATE_T 1
6727 for ac_hdr in wchar.h
6729 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6730 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6731 echo "configure:6732: checking for $ac_hdr" >&5
6732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6733 echo $ac_n "(cached) $ac_c" 1>&6
6734 else
6735 cat > conftest.$ac_ext <<EOF
6736 #line 6737 "configure"
6737 #include "confdefs.h"
6738 #include <$ac_hdr>
6740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6741 { (eval echo configure:6742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6743 if test -z "$ac_err"; then
6744 rm -rf conftest*
6745 eval "ac_cv_header_$ac_safe=yes"
6746 else
6747 echo "$ac_err" >&5
6748 echo "configure: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6750 rm -rf conftest*
6751 eval "ac_cv_header_$ac_safe=no"
6753 rm -f conftest*
6755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6756 echo "$ac_t""yes" 1>&6
6757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6758 cat >> confdefs.h <<EOF
6759 #define $ac_tr_hdr 1
6761 ac_has_wchar_h=yes
6762 else
6763 echo "$ac_t""no" 1>&6
6764 ac_has_wchar_h=no
6766 done
6768 for ac_hdr in wctype.h
6770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6772 echo "configure:6773: checking for $ac_hdr" >&5
6773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6774 echo $ac_n "(cached) $ac_c" 1>&6
6775 else
6776 cat > conftest.$ac_ext <<EOF
6777 #line 6778 "configure"
6778 #include "confdefs.h"
6779 #include <$ac_hdr>
6781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6782 { (eval echo configure:6783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6784 if test -z "$ac_err"; then
6785 rm -rf conftest*
6786 eval "ac_cv_header_$ac_safe=yes"
6787 else
6788 echo "$ac_err" >&5
6789 echo "configure: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6791 rm -rf conftest*
6792 eval "ac_cv_header_$ac_safe=no"
6794 rm -f conftest*
6796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6797 echo "$ac_t""yes" 1>&6
6798 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6799 cat >> confdefs.h <<EOF
6800 #define $ac_tr_hdr 1
6802 ac_has_wctype_h=yes
6803 else
6804 echo "$ac_t""no" 1>&6
6805 ac_has_wctype_h=no
6807 done
6810 if test x"$ac_has_wchar_h" = xyes &&
6811 test x"$ac_has_wctype_h" = xyes &&
6812 test x"$enable_c_mbchar" != xno; then
6814 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6815 echo "configure:6816: checking for WCHAR_MIN and WCHAR_MAX" >&5
6816 cat > conftest.$ac_ext <<EOF
6817 #line 6818 "configure"
6818 #include "confdefs.h"
6819 #include <wchar.h>
6820 int main() {
6821 int i = WCHAR_MIN; int j = WCHAR_MAX;
6822 ; return 0; }
6824 if { (eval echo configure:6825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6825 rm -rf conftest*
6826 has_wchar_minmax=yes
6827 else
6828 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6830 rm -rf conftest*
6831 has_wchar_minmax=no
6833 rm -f conftest*
6834 echo "$ac_t""$has_wchar_minmax" 1>&6
6836 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6837 echo "configure:6838: checking for WEOF" >&5
6838 cat > conftest.$ac_ext <<EOF
6839 #line 6840 "configure"
6840 #include "confdefs.h"
6842 #include <wchar.h>
6843 #include <stddef.h>
6844 int main() {
6845 wint_t i = WEOF;
6846 ; return 0; }
6848 if { (eval echo configure:6849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6849 rm -rf conftest*
6850 has_weof=yes
6851 else
6852 echo "configure: failed program was:" >&5
6853 cat conftest.$ac_ext >&5
6854 rm -rf conftest*
6855 has_weof=no
6857 rm -f conftest*
6858 echo "$ac_t""$has_weof" 1>&6
6860 ac_wfuncs=yes
6861 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6864 echo "configure:6865: checking for $ac_func" >&5
6865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6866 echo $ac_n "(cached) $ac_c" 1>&6
6867 else
6868 cat > conftest.$ac_ext <<EOF
6869 #line 6870 "configure"
6870 #include "confdefs.h"
6871 /* System header to define __stub macros and hopefully few prototypes,
6872 which can conflict with char $ac_func(); below. */
6873 #include <assert.h>
6874 /* Override any gcc2 internal prototype to avoid an error. */
6875 /* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */
6877 char $ac_func();
6879 int main() {
6881 /* The GNU C library defines this for functions which it implements
6882 to always fail with ENOSYS. Some functions are actually named
6883 something starting with __ and the normal name is an alias. */
6884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6885 choke me
6886 #else
6887 $ac_func();
6888 #endif
6890 ; return 0; }
6892 if { (eval echo configure:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6893 rm -rf conftest*
6894 eval "ac_cv_func_$ac_func=yes"
6895 else
6896 echo "configure: failed program was:" >&5
6897 cat conftest.$ac_ext >&5
6898 rm -rf conftest*
6899 eval "ac_cv_func_$ac_func=no"
6901 rm -f conftest*
6904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6905 echo "$ac_t""yes" 1>&6
6906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6907 cat >> confdefs.h <<EOF
6908 #define $ac_tr_func 1
6911 else
6912 echo "$ac_t""no" 1>&6
6914 ac_wfuncs=no
6916 done
6919 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6920 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6921 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6922 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6923 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6924 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6927 echo "configure:6928: checking for $ac_func" >&5
6928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6929 echo $ac_n "(cached) $ac_c" 1>&6
6930 else
6931 cat > conftest.$ac_ext <<EOF
6932 #line 6933 "configure"
6933 #include "confdefs.h"
6934 /* System header to define __stub macros and hopefully few prototypes,
6935 which can conflict with char $ac_func(); below. */
6936 #include <assert.h>
6937 /* Override any gcc2 internal prototype to avoid an error. */
6938 /* We use char because int might match the return type of a gcc2
6939 builtin and then its argument prototype would still apply. */
6940 char $ac_func();
6942 int main() {
6944 /* The GNU C library defines this for functions which it implements
6945 to always fail with ENOSYS. Some functions are actually named
6946 something starting with __ and the normal name is an alias. */
6947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6948 choke me
6949 #else
6950 $ac_func();
6951 #endif
6953 ; return 0; }
6955 if { (eval echo configure:6956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6956 rm -rf conftest*
6957 eval "ac_cv_func_$ac_func=yes"
6958 else
6959 echo "configure: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6961 rm -rf conftest*
6962 eval "ac_cv_func_$ac_func=no"
6964 rm -f conftest*
6967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6968 echo "$ac_t""yes" 1>&6
6969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6970 cat >> confdefs.h <<EOF
6971 #define $ac_tr_func 1
6974 else
6975 echo "$ac_t""no" 1>&6
6977 ac_wfuncs=no
6979 done
6982 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6983 echo "configure:6984: checking for ISO C99 wchar_t support" >&5
6984 if test x"$has_weof" = xyes &&
6985 test x"$has_wchar_minmax" = xyes &&
6986 test x"$ac_wfuncs" = xyes; then
6987 ac_isoC99_wchar_t=yes
6988 else
6989 ac_isoC99_wchar_t=no
6991 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6993 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6994 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6995 echo "configure:6996: checking for iconv.h" >&5
6996 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6997 echo $ac_n "(cached) $ac_c" 1>&6
6998 else
6999 cat > conftest.$ac_ext <<EOF
7000 #line 7001 "configure"
7001 #include "confdefs.h"
7002 #include <iconv.h>
7004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7005 { (eval echo configure:7006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7007 if test -z "$ac_err"; then
7008 rm -rf conftest*
7009 eval "ac_cv_header_$ac_safe=yes"
7010 else
7011 echo "$ac_err" >&5
7012 echo "configure: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7014 rm -rf conftest*
7015 eval "ac_cv_header_$ac_safe=no"
7017 rm -f conftest*
7019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7020 echo "$ac_t""yes" 1>&6
7021 ac_has_iconv_h=yes
7022 else
7023 echo "$ac_t""no" 1>&6
7024 ac_has_iconv_h=no
7027 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7028 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7029 echo "configure:7030: checking for langinfo.h" >&5
7030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7031 echo $ac_n "(cached) $ac_c" 1>&6
7032 else
7033 cat > conftest.$ac_ext <<EOF
7034 #line 7035 "configure"
7035 #include "confdefs.h"
7036 #include <langinfo.h>
7038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7039 { (eval echo configure:7040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7041 if test -z "$ac_err"; then
7042 rm -rf conftest*
7043 eval "ac_cv_header_$ac_safe=yes"
7044 else
7045 echo "$ac_err" >&5
7046 echo "configure: failed program was:" >&5
7047 cat conftest.$ac_ext >&5
7048 rm -rf conftest*
7049 eval "ac_cv_header_$ac_safe=no"
7051 rm -f conftest*
7053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7054 echo "$ac_t""yes" 1>&6
7055 ac_has_langinfo_h=yes
7056 else
7057 echo "$ac_t""no" 1>&6
7058 ac_has_langinfo_h=no
7062 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7063 echo "configure:7064: checking for iconv in -liconv" >&5
7064 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7066 echo $ac_n "(cached) $ac_c" 1>&6
7067 else
7068 ac_save_LIBS="$LIBS"
7069 LIBS="-liconv $LIBS"
7070 cat > conftest.$ac_ext <<EOF
7071 #line 7072 "configure"
7072 #include "confdefs.h"
7073 /* Override any gcc2 internal prototype to avoid an error. */
7074 /* We use char because int might match the return type of a gcc2
7075 builtin and then its argument prototype would still apply. */
7076 char iconv();
7078 int main() {
7079 iconv()
7080 ; return 0; }
7082 if { (eval echo configure:7083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7083 rm -rf conftest*
7084 eval "ac_cv_lib_$ac_lib_var=yes"
7085 else
7086 echo "configure: failed program was:" >&5
7087 cat conftest.$ac_ext >&5
7088 rm -rf conftest*
7089 eval "ac_cv_lib_$ac_lib_var=no"
7091 rm -f conftest*
7092 LIBS="$ac_save_LIBS"
7095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7096 echo "$ac_t""yes" 1>&6
7097 libiconv="-liconv"
7098 else
7099 echo "$ac_t""no" 1>&6
7102 ac_save_LIBS="$LIBS"
7103 LIBS="$LIBS $libiconv"
7105 for ac_func in iconv_open iconv_close iconv nl_langinfo
7107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7108 echo "configure:7109: checking for $ac_func" >&5
7109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7110 echo $ac_n "(cached) $ac_c" 1>&6
7111 else
7112 cat > conftest.$ac_ext <<EOF
7113 #line 7114 "configure"
7114 #include "confdefs.h"
7115 /* System header to define __stub macros and hopefully few prototypes,
7116 which can conflict with char $ac_func(); below. */
7117 #include <assert.h>
7118 /* Override any gcc2 internal prototype to avoid an error. */
7119 /* We use char because int might match the return type of a gcc2
7120 builtin and then its argument prototype would still apply. */
7121 char $ac_func();
7123 int main() {
7125 /* The GNU C library defines this for functions which it implements
7126 to always fail with ENOSYS. Some functions are actually named
7127 something starting with __ and the normal name is an alias. */
7128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7129 choke me
7130 #else
7131 $ac_func();
7132 #endif
7134 ; return 0; }
7136 if { (eval echo configure:7137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7137 rm -rf conftest*
7138 eval "ac_cv_func_$ac_func=yes"
7139 else
7140 echo "configure: failed program was:" >&5
7141 cat conftest.$ac_ext >&5
7142 rm -rf conftest*
7143 eval "ac_cv_func_$ac_func=no"
7145 rm -f conftest*
7148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7149 echo "$ac_t""yes" 1>&6
7150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7151 cat >> confdefs.h <<EOF
7152 #define $ac_tr_func 1
7155 ac_XPG2funcs=yes
7156 else
7157 echo "$ac_t""no" 1>&6
7158 ac_XPG2funcs=no
7160 done
7163 LIBS="$ac_save_LIBS"
7165 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7166 echo "configure:7167: checking for XPG2 wchar_t support" >&5
7167 if test x"$ac_has_iconv_h" = xyes &&
7168 test x"$ac_has_langinfo_h" = xyes &&
7169 test x"$ac_XPG2funcs" = xyes; then
7170 ac_XPG2_wchar_t=yes
7171 else
7172 ac_XPG2_wchar_t=no
7174 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7176 if test x"$ac_isoC99_wchar_t" = xyes &&
7177 test x"$ac_XPG2_wchar_t" = xyes; then
7178 cat >> confdefs.h <<\EOF
7179 #define _GLIBCPP_USE_WCHAR_T 1
7182 enable_wchar_t=yes
7185 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7186 echo "configure:7187: checking for enabled wchar_t specializations" >&5
7187 echo "$ac_t""$enable_wchar_t" 1>&6
7189 cat >> confdefs.h <<\EOF
7190 #define HAVE_COPYSIGN 1
7193 cat >> confdefs.h <<\EOF
7194 #define HAVE_COPYSIGNF 1
7197 cat >> confdefs.h <<\EOF
7198 #define HAVE_FINITE 1
7201 cat >> confdefs.h <<\EOF
7202 #define HAVE_FINITEF 1
7205 cat >> confdefs.h <<\EOF
7206 #define HAVE_FREXPF 1
7209 cat >> confdefs.h <<\EOF
7210 #define HAVE_HYPOTF 1
7213 cat >> confdefs.h <<\EOF
7214 #define HAVE_ISINF 1
7217 cat >> confdefs.h <<\EOF
7218 #define HAVE_ISINFF 1
7221 cat >> confdefs.h <<\EOF
7222 #define HAVE_ISNAN 1
7225 cat >> confdefs.h <<\EOF
7226 #define HAVE_ISNANF 1
7229 cat >> confdefs.h <<\EOF
7230 #define HAVE_SINCOS 1
7233 cat >> confdefs.h <<\EOF
7234 #define HAVE_SINCOSF 1
7237 if test x"long_double_math_on_this_cpu" = x"yes"; then
7238 cat >> confdefs.h <<\EOF
7239 #define HAVE_FINITEL 1
7242 cat >> confdefs.h <<\EOF
7243 #define HAVE_HYPOTL 1
7246 cat >> confdefs.h <<\EOF
7247 #define HAVE_ISINFL 1
7250 cat >> confdefs.h <<\EOF
7251 #define HAVE_ISNANL 1
7256 *-mingw32*)
7257 os_include_dir="os/mingw32"
7258 for ac_hdr in sys/types.h locale.h float.h
7260 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7261 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7262 echo "configure:7263: checking for $ac_hdr" >&5
7263 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7264 echo $ac_n "(cached) $ac_c" 1>&6
7265 else
7266 cat > conftest.$ac_ext <<EOF
7267 #line 7268 "configure"
7268 #include "confdefs.h"
7269 #include <$ac_hdr>
7271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7272 { (eval echo configure:7273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7273 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7274 if test -z "$ac_err"; then
7275 rm -rf conftest*
7276 eval "ac_cv_header_$ac_safe=yes"
7277 else
7278 echo "$ac_err" >&5
7279 echo "configure: failed program was:" >&5
7280 cat conftest.$ac_ext >&5
7281 rm -rf conftest*
7282 eval "ac_cv_header_$ac_safe=no"
7284 rm -f conftest*
7286 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7287 echo "$ac_t""yes" 1>&6
7288 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7289 cat >> confdefs.h <<EOF
7290 #define $ac_tr_hdr 1
7293 else
7294 echo "$ac_t""no" 1>&6
7296 done
7299 # If we're not using GNU ld, then there's no point in even trying these
7300 # tests. Check for that first. We should have already tested for gld
7301 # by now (in libtool), but require it now just to be safe...
7302 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7303 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7306 # The name set by libtool depends on the version of libtool. Shame on us
7307 # for depending on an impl detail, but c'est la vie. Older versions used
7308 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7309 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7310 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7311 # set (hence we're using an older libtool), then set it.
7312 if test x${with_gnu_ld+set} != xset; then
7313 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7314 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7315 with_gnu_ld=no
7316 else
7317 with_gnu_ld=$ac_cv_prog_gnu_ld
7321 # Start by getting the version number. I think the libtool test already
7322 # does some of this, but throws away the result.
7324 ldver=`$LD --version 2>/dev/null | head -1 | \
7325 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7327 glibcpp_gnu_ld_version=`echo $ldver | \
7328 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7330 # Set --gc-sections.
7331 if test "$with_gnu_ld" = "notbroken"; then
7332 # GNU ld it is! Joy and bunny rabbits!
7334 # All these tests are for C++; save the language and the compiler flags.
7335 # Need to do this so that g++ won't try to link in libstdc++
7336 ac_test_CFLAGS="${CFLAGS+set}"
7337 ac_save_CFLAGS="$CFLAGS"
7338 CFLAGS='-x c++ -Wl,--gc-sections'
7340 # Check for -Wl,--gc-sections
7341 # XXX This test is broken at the moment, as symbols required for
7342 # linking are now in libsupc++ (not built yet.....). In addition,
7343 # this test has cored on solaris in the past. In addition,
7344 # --gc-sections doesn't really work at the moment (keeps on discarding
7345 # used sections, first .eh_frame and now some of the glibc sections for
7346 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7347 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7348 echo "configure:7349: checking for ld that supports -Wl,--gc-sections" >&5
7349 if test "$cross_compiling" = yes; then
7350 ac_sectionLDflags=yes
7351 else
7352 cat > conftest.$ac_ext <<EOF
7353 #line 7354 "configure"
7354 #include "confdefs.h"
7356 int main(void)
7358 try { throw 1; }
7359 catch (...) { };
7360 return 0;
7364 if { (eval echo configure:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7365 then
7366 ac_sectionLDflags=yes
7367 else
7368 echo "configure: failed program was:" >&5
7369 cat conftest.$ac_ext >&5
7370 rm -fr conftest*
7371 ac_sectionLDflags=no
7373 rm -fr conftest*
7376 if test "$ac_test_CFLAGS" = set; then
7377 CFLAGS="$ac_save_CFLAGS"
7378 else
7379 # this is the suspicious part
7380 CFLAGS=''
7382 if test "$ac_sectionLDflags" = "yes"; then
7383 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7385 echo "$ac_t""$ac_sectionLDflags" 1>&6
7388 # Set linker optimization flags.
7389 if test x"$with_gnu_ld" = x"yes"; then
7390 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7397 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7398 echo "configure:7399: checking for main in -lm" >&5
7399 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7401 echo $ac_n "(cached) $ac_c" 1>&6
7402 else
7403 ac_save_LIBS="$LIBS"
7404 LIBS="-lm $LIBS"
7405 cat > conftest.$ac_ext <<EOF
7406 #line 7407 "configure"
7407 #include "confdefs.h"
7409 int main() {
7410 main()
7411 ; return 0; }
7413 if { (eval echo configure:7414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7414 rm -rf conftest*
7415 eval "ac_cv_lib_$ac_lib_var=yes"
7416 else
7417 echo "configure: failed program was:" >&5
7418 cat conftest.$ac_ext >&5
7419 rm -rf conftest*
7420 eval "ac_cv_lib_$ac_lib_var=no"
7422 rm -f conftest*
7423 LIBS="$ac_save_LIBS"
7426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7427 echo "$ac_t""yes" 1>&6
7428 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7429 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7430 cat >> confdefs.h <<EOF
7431 #define $ac_tr_lib 1
7434 LIBS="-lm $LIBS"
7436 else
7437 echo "$ac_t""no" 1>&6
7440 for ac_func in nan copysignf
7442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7443 echo "configure:7444: checking for $ac_func" >&5
7444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7445 echo $ac_n "(cached) $ac_c" 1>&6
7446 else
7447 cat > conftest.$ac_ext <<EOF
7448 #line 7449 "configure"
7449 #include "confdefs.h"
7450 /* System header to define __stub macros and hopefully few prototypes,
7451 which can conflict with char $ac_func(); below. */
7452 #include <assert.h>
7453 /* Override any gcc2 internal prototype to avoid an error. */
7454 /* We use char because int might match the return type of a gcc2
7455 builtin and then its argument prototype would still apply. */
7456 char $ac_func();
7458 int main() {
7460 /* The GNU C library defines this for functions which it implements
7461 to always fail with ENOSYS. Some functions are actually named
7462 something starting with __ and the normal name is an alias. */
7463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7464 choke me
7465 #else
7466 $ac_func();
7467 #endif
7469 ; return 0; }
7471 if { (eval echo configure:7472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7472 rm -rf conftest*
7473 eval "ac_cv_func_$ac_func=yes"
7474 else
7475 echo "configure: failed program was:" >&5
7476 cat conftest.$ac_ext >&5
7477 rm -rf conftest*
7478 eval "ac_cv_func_$ac_func=no"
7480 rm -f conftest*
7483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7484 echo "$ac_t""yes" 1>&6
7485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7486 cat >> confdefs.h <<EOF
7487 #define $ac_tr_func 1
7490 else
7491 echo "$ac_t""no" 1>&6
7492 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7494 done
7497 for ac_func in __signbit
7499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7500 echo "configure:7501: checking for $ac_func" >&5
7501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7502 echo $ac_n "(cached) $ac_c" 1>&6
7503 else
7504 cat > conftest.$ac_ext <<EOF
7505 #line 7506 "configure"
7506 #include "confdefs.h"
7507 /* System header to define __stub macros and hopefully few prototypes,
7508 which can conflict with char $ac_func(); below. */
7509 #include <assert.h>
7510 /* Override any gcc2 internal prototype to avoid an error. */
7511 /* We use char because int might match the return type of a gcc2
7512 builtin and then its argument prototype would still apply. */
7513 char $ac_func();
7515 int main() {
7517 /* The GNU C library defines this for functions which it implements
7518 to always fail with ENOSYS. Some functions are actually named
7519 something starting with __ and the normal name is an alias. */
7520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7521 choke me
7522 #else
7523 $ac_func();
7524 #endif
7526 ; return 0; }
7528 if { (eval echo configure:7529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7529 rm -rf conftest*
7530 eval "ac_cv_func_$ac_func=yes"
7531 else
7532 echo "configure: failed program was:" >&5
7533 cat conftest.$ac_ext >&5
7534 rm -rf conftest*
7535 eval "ac_cv_func_$ac_func=no"
7537 rm -f conftest*
7540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7541 echo "$ac_t""yes" 1>&6
7542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7543 cat >> confdefs.h <<EOF
7544 #define $ac_tr_func 1
7547 else
7548 echo "$ac_t""no" 1>&6
7549 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7551 done
7553 for ac_func in __signbitf
7555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7556 echo "configure:7557: checking for $ac_func" >&5
7557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7558 echo $ac_n "(cached) $ac_c" 1>&6
7559 else
7560 cat > conftest.$ac_ext <<EOF
7561 #line 7562 "configure"
7562 #include "confdefs.h"
7563 /* System header to define __stub macros and hopefully few prototypes,
7564 which can conflict with char $ac_func(); below. */
7565 #include <assert.h>
7566 /* Override any gcc2 internal prototype to avoid an error. */
7567 /* We use char because int might match the return type of a gcc2
7568 builtin and then its argument prototype would still apply. */
7569 char $ac_func();
7571 int main() {
7573 /* The GNU C library defines this for functions which it implements
7574 to always fail with ENOSYS. Some functions are actually named
7575 something starting with __ and the normal name is an alias. */
7576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7577 choke me
7578 #else
7579 $ac_func();
7580 #endif
7582 ; return 0; }
7584 if { (eval echo configure:7585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7585 rm -rf conftest*
7586 eval "ac_cv_func_$ac_func=yes"
7587 else
7588 echo "configure: failed program was:" >&5
7589 cat conftest.$ac_ext >&5
7590 rm -rf conftest*
7591 eval "ac_cv_func_$ac_func=no"
7593 rm -f conftest*
7596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7597 echo "$ac_t""yes" 1>&6
7598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7599 cat >> confdefs.h <<EOF
7600 #define $ac_tr_func 1
7603 else
7604 echo "$ac_t""no" 1>&6
7605 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7607 done
7610 if test x$ac_cv_func_copysignl = x"yes"; then
7611 for ac_func in __signbitl
7613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7614 echo "configure:7615: checking for $ac_func" >&5
7615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7616 echo $ac_n "(cached) $ac_c" 1>&6
7617 else
7618 cat > conftest.$ac_ext <<EOF
7619 #line 7620 "configure"
7620 #include "confdefs.h"
7621 /* System header to define __stub macros and hopefully few prototypes,
7622 which can conflict with char $ac_func(); below. */
7623 #include <assert.h>
7624 /* Override any gcc2 internal prototype to avoid an error. */
7625 /* We use char because int might match the return type of a gcc2
7626 builtin and then its argument prototype would still apply. */
7627 char $ac_func();
7629 int main() {
7631 /* The GNU C library defines this for functions which it implements
7632 to always fail with ENOSYS. Some functions are actually named
7633 something starting with __ and the normal name is an alias. */
7634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7635 choke me
7636 #else
7637 $ac_func();
7638 #endif
7640 ; return 0; }
7642 if { (eval echo configure:7643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7643 rm -rf conftest*
7644 eval "ac_cv_func_$ac_func=yes"
7645 else
7646 echo "configure: failed program was:" >&5
7647 cat conftest.$ac_ext >&5
7648 rm -rf conftest*
7649 eval "ac_cv_func_$ac_func=no"
7651 rm -f conftest*
7654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7655 echo "$ac_t""yes" 1>&6
7656 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7657 cat >> confdefs.h <<EOF
7658 #define $ac_tr_func 1
7661 else
7662 echo "$ac_t""no" 1>&6
7663 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7665 done
7669 if test -n "$LIBMATHOBJS"; then
7670 need_libmath=yes
7676 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7677 echo "configure:7678: checking for mbstate_t" >&5
7678 cat > conftest.$ac_ext <<EOF
7679 #line 7680 "configure"
7680 #include "confdefs.h"
7681 #include <wchar.h>
7682 int main() {
7683 mbstate_t teststate;
7684 ; return 0; }
7686 if { (eval echo configure:7687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7687 rm -rf conftest*
7688 have_mbstate_t=yes
7689 else
7690 echo "configure: failed program was:" >&5
7691 cat conftest.$ac_ext >&5
7692 rm -rf conftest*
7693 have_mbstate_t=no
7695 rm -f conftest*
7696 echo "$ac_t""$have_mbstate_t" 1>&6
7697 if test x"$have_mbstate_t" = xyes; then
7698 cat >> confdefs.h <<\EOF
7699 #define HAVE_MBSTATE_T 1
7704 for ac_hdr in wchar.h
7706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7708 echo "configure:7709: checking for $ac_hdr" >&5
7709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7710 echo $ac_n "(cached) $ac_c" 1>&6
7711 else
7712 cat > conftest.$ac_ext <<EOF
7713 #line 7714 "configure"
7714 #include "confdefs.h"
7715 #include <$ac_hdr>
7717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7718 { (eval echo configure:7719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7720 if test -z "$ac_err"; then
7721 rm -rf conftest*
7722 eval "ac_cv_header_$ac_safe=yes"
7723 else
7724 echo "$ac_err" >&5
7725 echo "configure: failed program was:" >&5
7726 cat conftest.$ac_ext >&5
7727 rm -rf conftest*
7728 eval "ac_cv_header_$ac_safe=no"
7730 rm -f conftest*
7732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7733 echo "$ac_t""yes" 1>&6
7734 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7735 cat >> confdefs.h <<EOF
7736 #define $ac_tr_hdr 1
7738 ac_has_wchar_h=yes
7739 else
7740 echo "$ac_t""no" 1>&6
7741 ac_has_wchar_h=no
7743 done
7745 for ac_hdr in wctype.h
7747 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7748 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7749 echo "configure:7750: checking for $ac_hdr" >&5
7750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7751 echo $ac_n "(cached) $ac_c" 1>&6
7752 else
7753 cat > conftest.$ac_ext <<EOF
7754 #line 7755 "configure"
7755 #include "confdefs.h"
7756 #include <$ac_hdr>
7758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7759 { (eval echo configure:7760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7761 if test -z "$ac_err"; then
7762 rm -rf conftest*
7763 eval "ac_cv_header_$ac_safe=yes"
7764 else
7765 echo "$ac_err" >&5
7766 echo "configure: failed program was:" >&5
7767 cat conftest.$ac_ext >&5
7768 rm -rf conftest*
7769 eval "ac_cv_header_$ac_safe=no"
7771 rm -f conftest*
7773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7774 echo "$ac_t""yes" 1>&6
7775 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7776 cat >> confdefs.h <<EOF
7777 #define $ac_tr_hdr 1
7779 ac_has_wctype_h=yes
7780 else
7781 echo "$ac_t""no" 1>&6
7782 ac_has_wctype_h=no
7784 done
7787 if test x"$ac_has_wchar_h" = xyes &&
7788 test x"$ac_has_wctype_h" = xyes &&
7789 test x"$enable_c_mbchar" != xno; then
7791 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7792 echo "configure:7793: checking for WCHAR_MIN and WCHAR_MAX" >&5
7793 cat > conftest.$ac_ext <<EOF
7794 #line 7795 "configure"
7795 #include "confdefs.h"
7796 #include <wchar.h>
7797 int main() {
7798 int i = WCHAR_MIN; int j = WCHAR_MAX;
7799 ; return 0; }
7801 if { (eval echo configure:7802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7802 rm -rf conftest*
7803 has_wchar_minmax=yes
7804 else
7805 echo "configure: failed program was:" >&5
7806 cat conftest.$ac_ext >&5
7807 rm -rf conftest*
7808 has_wchar_minmax=no
7810 rm -f conftest*
7811 echo "$ac_t""$has_wchar_minmax" 1>&6
7813 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7814 echo "configure:7815: checking for WEOF" >&5
7815 cat > conftest.$ac_ext <<EOF
7816 #line 7817 "configure"
7817 #include "confdefs.h"
7819 #include <wchar.h>
7820 #include <stddef.h>
7821 int main() {
7822 wint_t i = WEOF;
7823 ; return 0; }
7825 if { (eval echo configure:7826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7826 rm -rf conftest*
7827 has_weof=yes
7828 else
7829 echo "configure: failed program was:" >&5
7830 cat conftest.$ac_ext >&5
7831 rm -rf conftest*
7832 has_weof=no
7834 rm -f conftest*
7835 echo "$ac_t""$has_weof" 1>&6
7837 ac_wfuncs=yes
7838 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7841 echo "configure:7842: checking for $ac_func" >&5
7842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7843 echo $ac_n "(cached) $ac_c" 1>&6
7844 else
7845 cat > conftest.$ac_ext <<EOF
7846 #line 7847 "configure"
7847 #include "confdefs.h"
7848 /* System header to define __stub macros and hopefully few prototypes,
7849 which can conflict with char $ac_func(); below. */
7850 #include <assert.h>
7851 /* Override any gcc2 internal prototype to avoid an error. */
7852 /* We use char because int might match the return type of a gcc2
7853 builtin and then its argument prototype would still apply. */
7854 char $ac_func();
7856 int main() {
7858 /* The GNU C library defines this for functions which it implements
7859 to always fail with ENOSYS. Some functions are actually named
7860 something starting with __ and the normal name is an alias. */
7861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7862 choke me
7863 #else
7864 $ac_func();
7865 #endif
7867 ; return 0; }
7869 if { (eval echo configure:7870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7870 rm -rf conftest*
7871 eval "ac_cv_func_$ac_func=yes"
7872 else
7873 echo "configure: failed program was:" >&5
7874 cat conftest.$ac_ext >&5
7875 rm -rf conftest*
7876 eval "ac_cv_func_$ac_func=no"
7878 rm -f conftest*
7881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7882 echo "$ac_t""yes" 1>&6
7883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7884 cat >> confdefs.h <<EOF
7885 #define $ac_tr_func 1
7888 else
7889 echo "$ac_t""no" 1>&6
7891 ac_wfuncs=no
7893 done
7896 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7897 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7898 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7899 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7900 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7901 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7904 echo "configure:7905: checking for $ac_func" >&5
7905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7906 echo $ac_n "(cached) $ac_c" 1>&6
7907 else
7908 cat > conftest.$ac_ext <<EOF
7909 #line 7910 "configure"
7910 #include "confdefs.h"
7911 /* System header to define __stub macros and hopefully few prototypes,
7912 which can conflict with char $ac_func(); below. */
7913 #include <assert.h>
7914 /* Override any gcc2 internal prototype to avoid an error. */
7915 /* We use char because int might match the return type of a gcc2
7916 builtin and then its argument prototype would still apply. */
7917 char $ac_func();
7919 int main() {
7921 /* The GNU C library defines this for functions which it implements
7922 to always fail with ENOSYS. Some functions are actually named
7923 something starting with __ and the normal name is an alias. */
7924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7925 choke me
7926 #else
7927 $ac_func();
7928 #endif
7930 ; return 0; }
7932 if { (eval echo configure:7933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7933 rm -rf conftest*
7934 eval "ac_cv_func_$ac_func=yes"
7935 else
7936 echo "configure: failed program was:" >&5
7937 cat conftest.$ac_ext >&5
7938 rm -rf conftest*
7939 eval "ac_cv_func_$ac_func=no"
7941 rm -f conftest*
7944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7945 echo "$ac_t""yes" 1>&6
7946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7947 cat >> confdefs.h <<EOF
7948 #define $ac_tr_func 1
7951 else
7952 echo "$ac_t""no" 1>&6
7954 ac_wfuncs=no
7956 done
7959 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7960 echo "configure:7961: checking for ISO C99 wchar_t support" >&5
7961 if test x"$has_weof" = xyes &&
7962 test x"$has_wchar_minmax" = xyes &&
7963 test x"$ac_wfuncs" = xyes; then
7964 ac_isoC99_wchar_t=yes
7965 else
7966 ac_isoC99_wchar_t=no
7968 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7970 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7971 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7972 echo "configure:7973: checking for iconv.h" >&5
7973 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7974 echo $ac_n "(cached) $ac_c" 1>&6
7975 else
7976 cat > conftest.$ac_ext <<EOF
7977 #line 7978 "configure"
7978 #include "confdefs.h"
7979 #include <iconv.h>
7981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7982 { (eval echo configure:7983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7984 if test -z "$ac_err"; then
7985 rm -rf conftest*
7986 eval "ac_cv_header_$ac_safe=yes"
7987 else
7988 echo "$ac_err" >&5
7989 echo "configure: failed program was:" >&5
7990 cat conftest.$ac_ext >&5
7991 rm -rf conftest*
7992 eval "ac_cv_header_$ac_safe=no"
7994 rm -f conftest*
7996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7997 echo "$ac_t""yes" 1>&6
7998 ac_has_iconv_h=yes
7999 else
8000 echo "$ac_t""no" 1>&6
8001 ac_has_iconv_h=no
8004 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8005 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8006 echo "configure:8007: checking for langinfo.h" >&5
8007 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8008 echo $ac_n "(cached) $ac_c" 1>&6
8009 else
8010 cat > conftest.$ac_ext <<EOF
8011 #line 8012 "configure"
8012 #include "confdefs.h"
8013 #include <langinfo.h>
8015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8016 { (eval echo configure:8017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8017 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8018 if test -z "$ac_err"; then
8019 rm -rf conftest*
8020 eval "ac_cv_header_$ac_safe=yes"
8021 else
8022 echo "$ac_err" >&5
8023 echo "configure: failed program was:" >&5
8024 cat conftest.$ac_ext >&5
8025 rm -rf conftest*
8026 eval "ac_cv_header_$ac_safe=no"
8028 rm -f conftest*
8030 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8031 echo "$ac_t""yes" 1>&6
8032 ac_has_langinfo_h=yes
8033 else
8034 echo "$ac_t""no" 1>&6
8035 ac_has_langinfo_h=no
8039 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8040 echo "configure:8041: checking for iconv in -liconv" >&5
8041 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8043 echo $ac_n "(cached) $ac_c" 1>&6
8044 else
8045 ac_save_LIBS="$LIBS"
8046 LIBS="-liconv $LIBS"
8047 cat > conftest.$ac_ext <<EOF
8048 #line 8049 "configure"
8049 #include "confdefs.h"
8050 /* Override any gcc2 internal prototype to avoid an error. */
8051 /* We use char because int might match the return type of a gcc2
8052 builtin and then its argument prototype would still apply. */
8053 char iconv();
8055 int main() {
8056 iconv()
8057 ; return 0; }
8059 if { (eval echo configure:8060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8060 rm -rf conftest*
8061 eval "ac_cv_lib_$ac_lib_var=yes"
8062 else
8063 echo "configure: failed program was:" >&5
8064 cat conftest.$ac_ext >&5
8065 rm -rf conftest*
8066 eval "ac_cv_lib_$ac_lib_var=no"
8068 rm -f conftest*
8069 LIBS="$ac_save_LIBS"
8072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8073 echo "$ac_t""yes" 1>&6
8074 libiconv="-liconv"
8075 else
8076 echo "$ac_t""no" 1>&6
8079 ac_save_LIBS="$LIBS"
8080 LIBS="$LIBS $libiconv"
8082 for ac_func in iconv_open iconv_close iconv nl_langinfo
8084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8085 echo "configure:8086: checking for $ac_func" >&5
8086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8087 echo $ac_n "(cached) $ac_c" 1>&6
8088 else
8089 cat > conftest.$ac_ext <<EOF
8090 #line 8091 "configure"
8091 #include "confdefs.h"
8092 /* System header to define __stub macros and hopefully few prototypes,
8093 which can conflict with char $ac_func(); below. */
8094 #include <assert.h>
8095 /* Override any gcc2 internal prototype to avoid an error. */
8096 /* We use char because int might match the return type of a gcc2
8097 builtin and then its argument prototype would still apply. */
8098 char $ac_func();
8100 int main() {
8102 /* The GNU C library defines this for functions which it implements
8103 to always fail with ENOSYS. Some functions are actually named
8104 something starting with __ and the normal name is an alias. */
8105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8106 choke me
8107 #else
8108 $ac_func();
8109 #endif
8111 ; return 0; }
8113 if { (eval echo configure:8114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8114 rm -rf conftest*
8115 eval "ac_cv_func_$ac_func=yes"
8116 else
8117 echo "configure: failed program was:" >&5
8118 cat conftest.$ac_ext >&5
8119 rm -rf conftest*
8120 eval "ac_cv_func_$ac_func=no"
8122 rm -f conftest*
8125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8126 echo "$ac_t""yes" 1>&6
8127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8128 cat >> confdefs.h <<EOF
8129 #define $ac_tr_func 1
8132 ac_XPG2funcs=yes
8133 else
8134 echo "$ac_t""no" 1>&6
8135 ac_XPG2funcs=no
8137 done
8140 LIBS="$ac_save_LIBS"
8142 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8143 echo "configure:8144: checking for XPG2 wchar_t support" >&5
8144 if test x"$ac_has_iconv_h" = xyes &&
8145 test x"$ac_has_langinfo_h" = xyes &&
8146 test x"$ac_XPG2funcs" = xyes; then
8147 ac_XPG2_wchar_t=yes
8148 else
8149 ac_XPG2_wchar_t=no
8151 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8153 if test x"$ac_isoC99_wchar_t" = xyes &&
8154 test x"$ac_XPG2_wchar_t" = xyes; then
8155 cat >> confdefs.h <<\EOF
8156 #define _GLIBCPP_USE_WCHAR_T 1
8159 enable_wchar_t=yes
8162 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8163 echo "configure:8164: checking for enabled wchar_t specializations" >&5
8164 echo "$ac_t""$enable_wchar_t" 1>&6
8167 *-netbsd*)
8168 os_include_dir="os/bsd/netbsd"
8169 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
8170 machine/endian.h machine/param.h sys/machine.h sys/types.h \
8171 fp.h locale.h float.h inttypes.h
8173 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8174 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8175 echo "configure:8176: checking for $ac_hdr" >&5
8176 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8177 echo $ac_n "(cached) $ac_c" 1>&6
8178 else
8179 cat > conftest.$ac_ext <<EOF
8180 #line 8181 "configure"
8181 #include "confdefs.h"
8182 #include <$ac_hdr>
8184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8185 { (eval echo configure:8186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8187 if test -z "$ac_err"; then
8188 rm -rf conftest*
8189 eval "ac_cv_header_$ac_safe=yes"
8190 else
8191 echo "$ac_err" >&5
8192 echo "configure: failed program was:" >&5
8193 cat conftest.$ac_ext >&5
8194 rm -rf conftest*
8195 eval "ac_cv_header_$ac_safe=no"
8197 rm -f conftest*
8199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8200 echo "$ac_t""yes" 1>&6
8201 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8202 cat >> confdefs.h <<EOF
8203 #define $ac_tr_hdr 1
8206 else
8207 echo "$ac_t""no" 1>&6
8209 done
8211 SECTION_FLAGS='-ffunction-sections -fdata-sections'
8214 # If we're not using GNU ld, then there's no point in even trying these
8215 # tests. Check for that first. We should have already tested for gld
8216 # by now (in libtool), but require it now just to be safe...
8217 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8218 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8221 # The name set by libtool depends on the version of libtool. Shame on us
8222 # for depending on an impl detail, but c'est la vie. Older versions used
8223 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8224 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8225 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8226 # set (hence we're using an older libtool), then set it.
8227 if test x${with_gnu_ld+set} != xset; then
8228 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8229 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8230 with_gnu_ld=no
8231 else
8232 with_gnu_ld=$ac_cv_prog_gnu_ld
8236 # Start by getting the version number. I think the libtool test already
8237 # does some of this, but throws away the result.
8239 ldver=`$LD --version 2>/dev/null | head -1 | \
8240 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8242 glibcpp_gnu_ld_version=`echo $ldver | \
8243 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8245 # Set --gc-sections.
8246 if test "$with_gnu_ld" = "notbroken"; then
8247 # GNU ld it is! Joy and bunny rabbits!
8249 # All these tests are for C++; save the language and the compiler flags.
8250 # Need to do this so that g++ won't try to link in libstdc++
8251 ac_test_CFLAGS="${CFLAGS+set}"
8252 ac_save_CFLAGS="$CFLAGS"
8253 CFLAGS='-x c++ -Wl,--gc-sections'
8255 # Check for -Wl,--gc-sections
8256 # XXX This test is broken at the moment, as symbols required for
8257 # linking are now in libsupc++ (not built yet.....). In addition,
8258 # this test has cored on solaris in the past. In addition,
8259 # --gc-sections doesn't really work at the moment (keeps on discarding
8260 # used sections, first .eh_frame and now some of the glibc sections for
8261 # iconv). Bzzzzt. Thanks for playing, maybe next time.
8262 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8263 echo "configure:8264: checking for ld that supports -Wl,--gc-sections" >&5
8264 if test "$cross_compiling" = yes; then
8265 ac_sectionLDflags=yes
8266 else
8267 cat > conftest.$ac_ext <<EOF
8268 #line 8269 "configure"
8269 #include "confdefs.h"
8271 int main(void)
8273 try { throw 1; }
8274 catch (...) { };
8275 return 0;
8279 if { (eval echo configure:8280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8280 then
8281 ac_sectionLDflags=yes
8282 else
8283 echo "configure: failed program was:" >&5
8284 cat conftest.$ac_ext >&5
8285 rm -fr conftest*
8286 ac_sectionLDflags=no
8288 rm -fr conftest*
8291 if test "$ac_test_CFLAGS" = set; then
8292 CFLAGS="$ac_save_CFLAGS"
8293 else
8294 # this is the suspicious part
8295 CFLAGS=''
8297 if test "$ac_sectionLDflags" = "yes"; then
8298 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8300 echo "$ac_t""$ac_sectionLDflags" 1>&6
8303 # Set linker optimization flags.
8304 if test x"$with_gnu_ld" = x"yes"; then
8305 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8312 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8313 echo "configure:8314: checking for main in -lm" >&5
8314 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8316 echo $ac_n "(cached) $ac_c" 1>&6
8317 else
8318 ac_save_LIBS="$LIBS"
8319 LIBS="-lm $LIBS"
8320 cat > conftest.$ac_ext <<EOF
8321 #line 8322 "configure"
8322 #include "confdefs.h"
8324 int main() {
8325 main()
8326 ; return 0; }
8328 if { (eval echo configure:8329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8329 rm -rf conftest*
8330 eval "ac_cv_lib_$ac_lib_var=yes"
8331 else
8332 echo "configure: failed program was:" >&5
8333 cat conftest.$ac_ext >&5
8334 rm -rf conftest*
8335 eval "ac_cv_lib_$ac_lib_var=no"
8337 rm -f conftest*
8338 LIBS="$ac_save_LIBS"
8341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8342 echo "$ac_t""yes" 1>&6
8343 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8344 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8345 cat >> confdefs.h <<EOF
8346 #define $ac_tr_lib 1
8349 LIBS="-lm $LIBS"
8351 else
8352 echo "$ac_t""no" 1>&6
8355 for ac_func in nan copysignf
8357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8358 echo "configure:8359: checking for $ac_func" >&5
8359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8360 echo $ac_n "(cached) $ac_c" 1>&6
8361 else
8362 cat > conftest.$ac_ext <<EOF
8363 #line 8364 "configure"
8364 #include "confdefs.h"
8365 /* System header to define __stub macros and hopefully few prototypes,
8366 which can conflict with char $ac_func(); below. */
8367 #include <assert.h>
8368 /* Override any gcc2 internal prototype to avoid an error. */
8369 /* We use char because int might match the return type of a gcc2
8370 builtin and then its argument prototype would still apply. */
8371 char $ac_func();
8373 int main() {
8375 /* The GNU C library defines this for functions which it implements
8376 to always fail with ENOSYS. Some functions are actually named
8377 something starting with __ and the normal name is an alias. */
8378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8379 choke me
8380 #else
8381 $ac_func();
8382 #endif
8384 ; return 0; }
8386 if { (eval echo configure:8387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8387 rm -rf conftest*
8388 eval "ac_cv_func_$ac_func=yes"
8389 else
8390 echo "configure: failed program was:" >&5
8391 cat conftest.$ac_ext >&5
8392 rm -rf conftest*
8393 eval "ac_cv_func_$ac_func=no"
8395 rm -f conftest*
8398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8399 echo "$ac_t""yes" 1>&6
8400 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8401 cat >> confdefs.h <<EOF
8402 #define $ac_tr_func 1
8405 else
8406 echo "$ac_t""no" 1>&6
8407 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8409 done
8412 for ac_func in __signbit
8414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8415 echo "configure:8416: checking for $ac_func" >&5
8416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8417 echo $ac_n "(cached) $ac_c" 1>&6
8418 else
8419 cat > conftest.$ac_ext <<EOF
8420 #line 8421 "configure"
8421 #include "confdefs.h"
8422 /* System header to define __stub macros and hopefully few prototypes,
8423 which can conflict with char $ac_func(); below. */
8424 #include <assert.h>
8425 /* Override any gcc2 internal prototype to avoid an error. */
8426 /* We use char because int might match the return type of a gcc2
8427 builtin and then its argument prototype would still apply. */
8428 char $ac_func();
8430 int main() {
8432 /* The GNU C library defines this for functions which it implements
8433 to always fail with ENOSYS. Some functions are actually named
8434 something starting with __ and the normal name is an alias. */
8435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8436 choke me
8437 #else
8438 $ac_func();
8439 #endif
8441 ; return 0; }
8443 if { (eval echo configure:8444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8444 rm -rf conftest*
8445 eval "ac_cv_func_$ac_func=yes"
8446 else
8447 echo "configure: failed program was:" >&5
8448 cat conftest.$ac_ext >&5
8449 rm -rf conftest*
8450 eval "ac_cv_func_$ac_func=no"
8452 rm -f conftest*
8455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8456 echo "$ac_t""yes" 1>&6
8457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8458 cat >> confdefs.h <<EOF
8459 #define $ac_tr_func 1
8462 else
8463 echo "$ac_t""no" 1>&6
8464 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8466 done
8468 for ac_func in __signbitf
8470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8471 echo "configure:8472: checking for $ac_func" >&5
8472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8473 echo $ac_n "(cached) $ac_c" 1>&6
8474 else
8475 cat > conftest.$ac_ext <<EOF
8476 #line 8477 "configure"
8477 #include "confdefs.h"
8478 /* System header to define __stub macros and hopefully few prototypes,
8479 which can conflict with char $ac_func(); below. */
8480 #include <assert.h>
8481 /* Override any gcc2 internal prototype to avoid an error. */
8482 /* We use char because int might match the return type of a gcc2
8483 builtin and then its argument prototype would still apply. */
8484 char $ac_func();
8486 int main() {
8488 /* The GNU C library defines this for functions which it implements
8489 to always fail with ENOSYS. Some functions are actually named
8490 something starting with __ and the normal name is an alias. */
8491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8492 choke me
8493 #else
8494 $ac_func();
8495 #endif
8497 ; return 0; }
8499 if { (eval echo configure:8500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8500 rm -rf conftest*
8501 eval "ac_cv_func_$ac_func=yes"
8502 else
8503 echo "configure: failed program was:" >&5
8504 cat conftest.$ac_ext >&5
8505 rm -rf conftest*
8506 eval "ac_cv_func_$ac_func=no"
8508 rm -f conftest*
8511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8512 echo "$ac_t""yes" 1>&6
8513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8514 cat >> confdefs.h <<EOF
8515 #define $ac_tr_func 1
8518 else
8519 echo "$ac_t""no" 1>&6
8520 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8522 done
8525 if test x$ac_cv_func_copysignl = x"yes"; then
8526 for ac_func in __signbitl
8528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8529 echo "configure:8530: checking for $ac_func" >&5
8530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8531 echo $ac_n "(cached) $ac_c" 1>&6
8532 else
8533 cat > conftest.$ac_ext <<EOF
8534 #line 8535 "configure"
8535 #include "confdefs.h"
8536 /* System header to define __stub macros and hopefully few prototypes,
8537 which can conflict with char $ac_func(); below. */
8538 #include <assert.h>
8539 /* Override any gcc2 internal prototype to avoid an error. */
8540 /* We use char because int might match the return type of a gcc2
8541 builtin and then its argument prototype would still apply. */
8542 char $ac_func();
8544 int main() {
8546 /* The GNU C library defines this for functions which it implements
8547 to always fail with ENOSYS. Some functions are actually named
8548 something starting with __ and the normal name is an alias. */
8549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8550 choke me
8551 #else
8552 $ac_func();
8553 #endif
8555 ; return 0; }
8557 if { (eval echo configure:8558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8558 rm -rf conftest*
8559 eval "ac_cv_func_$ac_func=yes"
8560 else
8561 echo "configure: failed program was:" >&5
8562 cat conftest.$ac_ext >&5
8563 rm -rf conftest*
8564 eval "ac_cv_func_$ac_func=no"
8566 rm -f conftest*
8569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8570 echo "$ac_t""yes" 1>&6
8571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8572 cat >> confdefs.h <<EOF
8573 #define $ac_tr_func 1
8576 else
8577 echo "$ac_t""no" 1>&6
8578 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8580 done
8584 if test -n "$LIBMATHOBJS"; then
8585 need_libmath=yes
8591 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8592 echo "configure:8593: checking for mbstate_t" >&5
8593 cat > conftest.$ac_ext <<EOF
8594 #line 8595 "configure"
8595 #include "confdefs.h"
8596 #include <wchar.h>
8597 int main() {
8598 mbstate_t teststate;
8599 ; return 0; }
8601 if { (eval echo configure:8602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8602 rm -rf conftest*
8603 have_mbstate_t=yes
8604 else
8605 echo "configure: failed program was:" >&5
8606 cat conftest.$ac_ext >&5
8607 rm -rf conftest*
8608 have_mbstate_t=no
8610 rm -f conftest*
8611 echo "$ac_t""$have_mbstate_t" 1>&6
8612 if test x"$have_mbstate_t" = xyes; then
8613 cat >> confdefs.h <<\EOF
8614 #define HAVE_MBSTATE_T 1
8619 for ac_hdr in wchar.h
8621 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8622 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8623 echo "configure:8624: checking for $ac_hdr" >&5
8624 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8625 echo $ac_n "(cached) $ac_c" 1>&6
8626 else
8627 cat > conftest.$ac_ext <<EOF
8628 #line 8629 "configure"
8629 #include "confdefs.h"
8630 #include <$ac_hdr>
8632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8633 { (eval echo configure:8634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8635 if test -z "$ac_err"; then
8636 rm -rf conftest*
8637 eval "ac_cv_header_$ac_safe=yes"
8638 else
8639 echo "$ac_err" >&5
8640 echo "configure: failed program was:" >&5
8641 cat conftest.$ac_ext >&5
8642 rm -rf conftest*
8643 eval "ac_cv_header_$ac_safe=no"
8645 rm -f conftest*
8647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8648 echo "$ac_t""yes" 1>&6
8649 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8650 cat >> confdefs.h <<EOF
8651 #define $ac_tr_hdr 1
8653 ac_has_wchar_h=yes
8654 else
8655 echo "$ac_t""no" 1>&6
8656 ac_has_wchar_h=no
8658 done
8660 for ac_hdr in wctype.h
8662 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8663 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8664 echo "configure:8665: checking for $ac_hdr" >&5
8665 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8666 echo $ac_n "(cached) $ac_c" 1>&6
8667 else
8668 cat > conftest.$ac_ext <<EOF
8669 #line 8670 "configure"
8670 #include "confdefs.h"
8671 #include <$ac_hdr>
8673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8674 { (eval echo configure:8675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8676 if test -z "$ac_err"; then
8677 rm -rf conftest*
8678 eval "ac_cv_header_$ac_safe=yes"
8679 else
8680 echo "$ac_err" >&5
8681 echo "configure: failed program was:" >&5
8682 cat conftest.$ac_ext >&5
8683 rm -rf conftest*
8684 eval "ac_cv_header_$ac_safe=no"
8686 rm -f conftest*
8688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8689 echo "$ac_t""yes" 1>&6
8690 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8691 cat >> confdefs.h <<EOF
8692 #define $ac_tr_hdr 1
8694 ac_has_wctype_h=yes
8695 else
8696 echo "$ac_t""no" 1>&6
8697 ac_has_wctype_h=no
8699 done
8702 if test x"$ac_has_wchar_h" = xyes &&
8703 test x"$ac_has_wctype_h" = xyes &&
8704 test x"$enable_c_mbchar" != xno; then
8706 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8707 echo "configure:8708: checking for WCHAR_MIN and WCHAR_MAX" >&5
8708 cat > conftest.$ac_ext <<EOF
8709 #line 8710 "configure"
8710 #include "confdefs.h"
8711 #include <wchar.h>
8712 int main() {
8713 int i = WCHAR_MIN; int j = WCHAR_MAX;
8714 ; return 0; }
8716 if { (eval echo configure:8717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8717 rm -rf conftest*
8718 has_wchar_minmax=yes
8719 else
8720 echo "configure: failed program was:" >&5
8721 cat conftest.$ac_ext >&5
8722 rm -rf conftest*
8723 has_wchar_minmax=no
8725 rm -f conftest*
8726 echo "$ac_t""$has_wchar_minmax" 1>&6
8728 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8729 echo "configure:8730: checking for WEOF" >&5
8730 cat > conftest.$ac_ext <<EOF
8731 #line 8732 "configure"
8732 #include "confdefs.h"
8734 #include <wchar.h>
8735 #include <stddef.h>
8736 int main() {
8737 wint_t i = WEOF;
8738 ; return 0; }
8740 if { (eval echo configure:8741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8741 rm -rf conftest*
8742 has_weof=yes
8743 else
8744 echo "configure: failed program was:" >&5
8745 cat conftest.$ac_ext >&5
8746 rm -rf conftest*
8747 has_weof=no
8749 rm -f conftest*
8750 echo "$ac_t""$has_weof" 1>&6
8752 ac_wfuncs=yes
8753 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8756 echo "configure:8757: checking for $ac_func" >&5
8757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8758 echo $ac_n "(cached) $ac_c" 1>&6
8759 else
8760 cat > conftest.$ac_ext <<EOF
8761 #line 8762 "configure"
8762 #include "confdefs.h"
8763 /* System header to define __stub macros and hopefully few prototypes,
8764 which can conflict with char $ac_func(); below. */
8765 #include <assert.h>
8766 /* Override any gcc2 internal prototype to avoid an error. */
8767 /* We use char because int might match the return type of a gcc2
8768 builtin and then its argument prototype would still apply. */
8769 char $ac_func();
8771 int main() {
8773 /* The GNU C library defines this for functions which it implements
8774 to always fail with ENOSYS. Some functions are actually named
8775 something starting with __ and the normal name is an alias. */
8776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8777 choke me
8778 #else
8779 $ac_func();
8780 #endif
8782 ; return 0; }
8784 if { (eval echo configure:8785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8785 rm -rf conftest*
8786 eval "ac_cv_func_$ac_func=yes"
8787 else
8788 echo "configure: failed program was:" >&5
8789 cat conftest.$ac_ext >&5
8790 rm -rf conftest*
8791 eval "ac_cv_func_$ac_func=no"
8793 rm -f conftest*
8796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8797 echo "$ac_t""yes" 1>&6
8798 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8799 cat >> confdefs.h <<EOF
8800 #define $ac_tr_func 1
8803 else
8804 echo "$ac_t""no" 1>&6
8806 ac_wfuncs=no
8808 done
8811 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8812 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8813 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8814 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8815 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8816 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8819 echo "configure:8820: checking for $ac_func" >&5
8820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8821 echo $ac_n "(cached) $ac_c" 1>&6
8822 else
8823 cat > conftest.$ac_ext <<EOF
8824 #line 8825 "configure"
8825 #include "confdefs.h"
8826 /* System header to define __stub macros and hopefully few prototypes,
8827 which can conflict with char $ac_func(); below. */
8828 #include <assert.h>
8829 /* Override any gcc2 internal prototype to avoid an error. */
8830 /* We use char because int might match the return type of a gcc2
8831 builtin and then its argument prototype would still apply. */
8832 char $ac_func();
8834 int main() {
8836 /* The GNU C library defines this for functions which it implements
8837 to always fail with ENOSYS. Some functions are actually named
8838 something starting with __ and the normal name is an alias. */
8839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8840 choke me
8841 #else
8842 $ac_func();
8843 #endif
8845 ; return 0; }
8847 if { (eval echo configure:8848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8848 rm -rf conftest*
8849 eval "ac_cv_func_$ac_func=yes"
8850 else
8851 echo "configure: failed program was:" >&5
8852 cat conftest.$ac_ext >&5
8853 rm -rf conftest*
8854 eval "ac_cv_func_$ac_func=no"
8856 rm -f conftest*
8859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8860 echo "$ac_t""yes" 1>&6
8861 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8862 cat >> confdefs.h <<EOF
8863 #define $ac_tr_func 1
8866 else
8867 echo "$ac_t""no" 1>&6
8869 ac_wfuncs=no
8871 done
8874 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8875 echo "configure:8876: checking for ISO C99 wchar_t support" >&5
8876 if test x"$has_weof" = xyes &&
8877 test x"$has_wchar_minmax" = xyes &&
8878 test x"$ac_wfuncs" = xyes; then
8879 ac_isoC99_wchar_t=yes
8880 else
8881 ac_isoC99_wchar_t=no
8883 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8885 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8886 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8887 echo "configure:8888: checking for iconv.h" >&5
8888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8889 echo $ac_n "(cached) $ac_c" 1>&6
8890 else
8891 cat > conftest.$ac_ext <<EOF
8892 #line 8893 "configure"
8893 #include "confdefs.h"
8894 #include <iconv.h>
8896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8897 { (eval echo configure:8898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8899 if test -z "$ac_err"; then
8900 rm -rf conftest*
8901 eval "ac_cv_header_$ac_safe=yes"
8902 else
8903 echo "$ac_err" >&5
8904 echo "configure: failed program was:" >&5
8905 cat conftest.$ac_ext >&5
8906 rm -rf conftest*
8907 eval "ac_cv_header_$ac_safe=no"
8909 rm -f conftest*
8911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8912 echo "$ac_t""yes" 1>&6
8913 ac_has_iconv_h=yes
8914 else
8915 echo "$ac_t""no" 1>&6
8916 ac_has_iconv_h=no
8919 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8920 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8921 echo "configure:8922: checking for langinfo.h" >&5
8922 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8923 echo $ac_n "(cached) $ac_c" 1>&6
8924 else
8925 cat > conftest.$ac_ext <<EOF
8926 #line 8927 "configure"
8927 #include "confdefs.h"
8928 #include <langinfo.h>
8930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8931 { (eval echo configure:8932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8933 if test -z "$ac_err"; then
8934 rm -rf conftest*
8935 eval "ac_cv_header_$ac_safe=yes"
8936 else
8937 echo "$ac_err" >&5
8938 echo "configure: failed program was:" >&5
8939 cat conftest.$ac_ext >&5
8940 rm -rf conftest*
8941 eval "ac_cv_header_$ac_safe=no"
8943 rm -f conftest*
8945 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8946 echo "$ac_t""yes" 1>&6
8947 ac_has_langinfo_h=yes
8948 else
8949 echo "$ac_t""no" 1>&6
8950 ac_has_langinfo_h=no
8954 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8955 echo "configure:8956: checking for iconv in -liconv" >&5
8956 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8958 echo $ac_n "(cached) $ac_c" 1>&6
8959 else
8960 ac_save_LIBS="$LIBS"
8961 LIBS="-liconv $LIBS"
8962 cat > conftest.$ac_ext <<EOF
8963 #line 8964 "configure"
8964 #include "confdefs.h"
8965 /* Override any gcc2 internal prototype to avoid an error. */
8966 /* We use char because int might match the return type of a gcc2
8967 builtin and then its argument prototype would still apply. */
8968 char iconv();
8970 int main() {
8971 iconv()
8972 ; return 0; }
8974 if { (eval echo configure:8975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8975 rm -rf conftest*
8976 eval "ac_cv_lib_$ac_lib_var=yes"
8977 else
8978 echo "configure: failed program was:" >&5
8979 cat conftest.$ac_ext >&5
8980 rm -rf conftest*
8981 eval "ac_cv_lib_$ac_lib_var=no"
8983 rm -f conftest*
8984 LIBS="$ac_save_LIBS"
8987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8988 echo "$ac_t""yes" 1>&6
8989 libiconv="-liconv"
8990 else
8991 echo "$ac_t""no" 1>&6
8994 ac_save_LIBS="$LIBS"
8995 LIBS="$LIBS $libiconv"
8997 for ac_func in iconv_open iconv_close iconv nl_langinfo
8999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9000 echo "configure:9001: checking for $ac_func" >&5
9001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9002 echo $ac_n "(cached) $ac_c" 1>&6
9003 else
9004 cat > conftest.$ac_ext <<EOF
9005 #line 9006 "configure"
9006 #include "confdefs.h"
9007 /* System header to define __stub macros and hopefully few prototypes,
9008 which can conflict with char $ac_func(); below. */
9009 #include <assert.h>
9010 /* Override any gcc2 internal prototype to avoid an error. */
9011 /* We use char because int might match the return type of a gcc2
9012 builtin and then its argument prototype would still apply. */
9013 char $ac_func();
9015 int main() {
9017 /* The GNU C library defines this for functions which it implements
9018 to always fail with ENOSYS. Some functions are actually named
9019 something starting with __ and the normal name is an alias. */
9020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9021 choke me
9022 #else
9023 $ac_func();
9024 #endif
9026 ; return 0; }
9028 if { (eval echo configure:9029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9029 rm -rf conftest*
9030 eval "ac_cv_func_$ac_func=yes"
9031 else
9032 echo "configure: failed program was:" >&5
9033 cat conftest.$ac_ext >&5
9034 rm -rf conftest*
9035 eval "ac_cv_func_$ac_func=no"
9037 rm -f conftest*
9040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9041 echo "$ac_t""yes" 1>&6
9042 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9043 cat >> confdefs.h <<EOF
9044 #define $ac_tr_func 1
9047 ac_XPG2funcs=yes
9048 else
9049 echo "$ac_t""no" 1>&6
9050 ac_XPG2funcs=no
9052 done
9055 LIBS="$ac_save_LIBS"
9057 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9058 echo "configure:9059: checking for XPG2 wchar_t support" >&5
9059 if test x"$ac_has_iconv_h" = xyes &&
9060 test x"$ac_has_langinfo_h" = xyes &&
9061 test x"$ac_XPG2funcs" = xyes; then
9062 ac_XPG2_wchar_t=yes
9063 else
9064 ac_XPG2_wchar_t=no
9066 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9068 if test x"$ac_isoC99_wchar_t" = xyes &&
9069 test x"$ac_XPG2_wchar_t" = xyes; then
9070 cat >> confdefs.h <<\EOF
9071 #define _GLIBCPP_USE_WCHAR_T 1
9074 enable_wchar_t=yes
9077 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9078 echo "configure:9079: checking for enabled wchar_t specializations" >&5
9079 echo "$ac_t""$enable_wchar_t" 1>&6
9081 cat >> confdefs.h <<\EOF
9082 #define HAVE_COPYSIGN 1
9085 cat >> confdefs.h <<\EOF
9086 #define HAVE_COPYSIGNF 1
9089 cat >> confdefs.h <<\EOF
9090 #define HAVE_FINITEF 1
9093 cat >> confdefs.h <<\EOF
9094 #define HAVE_FINITE 1
9097 cat >> confdefs.h <<\EOF
9098 #define HAVE_FREXPF 1
9101 cat >> confdefs.h <<\EOF
9102 #define HAVE_HYPOTF 1
9105 cat >> confdefs.h <<\EOF
9106 #define HAVE_ISINF 1
9109 cat >> confdefs.h <<\EOF
9110 #define HAVE_ISINFF 1
9113 cat >> confdefs.h <<\EOF
9114 #define HAVE_ISNAN 1
9117 cat >> confdefs.h <<\EOF
9118 #define HAVE_ISNANF 1
9121 if test x"long_double_math_on_this_cpu" = x"yes"; then
9122 cat >> confdefs.h <<\EOF
9123 #define HAVE_FINITEL 1
9126 cat >> confdefs.h <<\EOF
9127 #define HAVE_ISINFL 1
9130 cat >> confdefs.h <<\EOF
9131 #define HAVE_ISNANL 1
9136 *-qnx6.1* | *-qnx6.2*)
9137 os_include_dir="os/qnx/qnx6.1"
9138 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9141 # If we're not using GNU ld, then there's no point in even trying these
9142 # tests. Check for that first. We should have already tested for gld
9143 # by now (in libtool), but require it now just to be safe...
9144 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9145 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9148 # The name set by libtool depends on the version of libtool. Shame on us
9149 # for depending on an impl detail, but c'est la vie. Older versions used
9150 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9151 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9152 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9153 # set (hence we're using an older libtool), then set it.
9154 if test x${with_gnu_ld+set} != xset; then
9155 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9156 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9157 with_gnu_ld=no
9158 else
9159 with_gnu_ld=$ac_cv_prog_gnu_ld
9163 # Start by getting the version number. I think the libtool test already
9164 # does some of this, but throws away the result.
9166 ldver=`$LD --version 2>/dev/null | head -1 | \
9167 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9169 glibcpp_gnu_ld_version=`echo $ldver | \
9170 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9172 # Set --gc-sections.
9173 if test "$with_gnu_ld" = "notbroken"; then
9174 # GNU ld it is! Joy and bunny rabbits!
9176 # All these tests are for C++; save the language and the compiler flags.
9177 # Need to do this so that g++ won't try to link in libstdc++
9178 ac_test_CFLAGS="${CFLAGS+set}"
9179 ac_save_CFLAGS="$CFLAGS"
9180 CFLAGS='-x c++ -Wl,--gc-sections'
9182 # Check for -Wl,--gc-sections
9183 # XXX This test is broken at the moment, as symbols required for
9184 # linking are now in libsupc++ (not built yet.....). In addition,
9185 # this test has cored on solaris in the past. In addition,
9186 # --gc-sections doesn't really work at the moment (keeps on discarding
9187 # used sections, first .eh_frame and now some of the glibc sections for
9188 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9189 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9190 echo "configure:9191: checking for ld that supports -Wl,--gc-sections" >&5
9191 if test "$cross_compiling" = yes; then
9192 ac_sectionLDflags=yes
9193 else
9194 cat > conftest.$ac_ext <<EOF
9195 #line 9196 "configure"
9196 #include "confdefs.h"
9198 int main(void)
9200 try { throw 1; }
9201 catch (...) { };
9202 return 0;
9206 if { (eval echo configure:9207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9207 then
9208 ac_sectionLDflags=yes
9209 else
9210 echo "configure: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9212 rm -fr conftest*
9213 ac_sectionLDflags=no
9215 rm -fr conftest*
9218 if test "$ac_test_CFLAGS" = set; then
9219 CFLAGS="$ac_save_CFLAGS"
9220 else
9221 # this is the suspicious part
9222 CFLAGS=''
9224 if test "$ac_sectionLDflags" = "yes"; then
9225 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9227 echo "$ac_t""$ac_sectionLDflags" 1>&6
9230 # Set linker optimization flags.
9231 if test x"$with_gnu_ld" = x"yes"; then
9232 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9239 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9240 echo "configure:9241: checking for main in -lm" >&5
9241 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9243 echo $ac_n "(cached) $ac_c" 1>&6
9244 else
9245 ac_save_LIBS="$LIBS"
9246 LIBS="-lm $LIBS"
9247 cat > conftest.$ac_ext <<EOF
9248 #line 9249 "configure"
9249 #include "confdefs.h"
9251 int main() {
9252 main()
9253 ; return 0; }
9255 if { (eval echo configure:9256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9256 rm -rf conftest*
9257 eval "ac_cv_lib_$ac_lib_var=yes"
9258 else
9259 echo "configure: failed program was:" >&5
9260 cat conftest.$ac_ext >&5
9261 rm -rf conftest*
9262 eval "ac_cv_lib_$ac_lib_var=no"
9264 rm -f conftest*
9265 LIBS="$ac_save_LIBS"
9268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9269 echo "$ac_t""yes" 1>&6
9270 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9271 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9272 cat >> confdefs.h <<EOF
9273 #define $ac_tr_lib 1
9276 LIBS="-lm $LIBS"
9278 else
9279 echo "$ac_t""no" 1>&6
9282 for ac_func in nan copysignf
9284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9285 echo "configure:9286: checking for $ac_func" >&5
9286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9287 echo $ac_n "(cached) $ac_c" 1>&6
9288 else
9289 cat > conftest.$ac_ext <<EOF
9290 #line 9291 "configure"
9291 #include "confdefs.h"
9292 /* System header to define __stub macros and hopefully few prototypes,
9293 which can conflict with char $ac_func(); below. */
9294 #include <assert.h>
9295 /* Override any gcc2 internal prototype to avoid an error. */
9296 /* We use char because int might match the return type of a gcc2
9297 builtin and then its argument prototype would still apply. */
9298 char $ac_func();
9300 int main() {
9302 /* The GNU C library defines this for functions which it implements
9303 to always fail with ENOSYS. Some functions are actually named
9304 something starting with __ and the normal name is an alias. */
9305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9306 choke me
9307 #else
9308 $ac_func();
9309 #endif
9311 ; return 0; }
9313 if { (eval echo configure:9314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9314 rm -rf conftest*
9315 eval "ac_cv_func_$ac_func=yes"
9316 else
9317 echo "configure: failed program was:" >&5
9318 cat conftest.$ac_ext >&5
9319 rm -rf conftest*
9320 eval "ac_cv_func_$ac_func=no"
9322 rm -f conftest*
9325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9326 echo "$ac_t""yes" 1>&6
9327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9328 cat >> confdefs.h <<EOF
9329 #define $ac_tr_func 1
9332 else
9333 echo "$ac_t""no" 1>&6
9334 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9336 done
9339 for ac_func in __signbit
9341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9342 echo "configure:9343: checking for $ac_func" >&5
9343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9344 echo $ac_n "(cached) $ac_c" 1>&6
9345 else
9346 cat > conftest.$ac_ext <<EOF
9347 #line 9348 "configure"
9348 #include "confdefs.h"
9349 /* System header to define __stub macros and hopefully few prototypes,
9350 which can conflict with char $ac_func(); below. */
9351 #include <assert.h>
9352 /* Override any gcc2 internal prototype to avoid an error. */
9353 /* We use char because int might match the return type of a gcc2
9354 builtin and then its argument prototype would still apply. */
9355 char $ac_func();
9357 int main() {
9359 /* The GNU C library defines this for functions which it implements
9360 to always fail with ENOSYS. Some functions are actually named
9361 something starting with __ and the normal name is an alias. */
9362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9363 choke me
9364 #else
9365 $ac_func();
9366 #endif
9368 ; return 0; }
9370 if { (eval echo configure:9371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9371 rm -rf conftest*
9372 eval "ac_cv_func_$ac_func=yes"
9373 else
9374 echo "configure: failed program was:" >&5
9375 cat conftest.$ac_ext >&5
9376 rm -rf conftest*
9377 eval "ac_cv_func_$ac_func=no"
9379 rm -f conftest*
9382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9383 echo "$ac_t""yes" 1>&6
9384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9385 cat >> confdefs.h <<EOF
9386 #define $ac_tr_func 1
9389 else
9390 echo "$ac_t""no" 1>&6
9391 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9393 done
9395 for ac_func in __signbitf
9397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9398 echo "configure:9399: checking for $ac_func" >&5
9399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9400 echo $ac_n "(cached) $ac_c" 1>&6
9401 else
9402 cat > conftest.$ac_ext <<EOF
9403 #line 9404 "configure"
9404 #include "confdefs.h"
9405 /* System header to define __stub macros and hopefully few prototypes,
9406 which can conflict with char $ac_func(); below. */
9407 #include <assert.h>
9408 /* Override any gcc2 internal prototype to avoid an error. */
9409 /* We use char because int might match the return type of a gcc2
9410 builtin and then its argument prototype would still apply. */
9411 char $ac_func();
9413 int main() {
9415 /* The GNU C library defines this for functions which it implements
9416 to always fail with ENOSYS. Some functions are actually named
9417 something starting with __ and the normal name is an alias. */
9418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9419 choke me
9420 #else
9421 $ac_func();
9422 #endif
9424 ; return 0; }
9426 if { (eval echo configure:9427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9427 rm -rf conftest*
9428 eval "ac_cv_func_$ac_func=yes"
9429 else
9430 echo "configure: failed program was:" >&5
9431 cat conftest.$ac_ext >&5
9432 rm -rf conftest*
9433 eval "ac_cv_func_$ac_func=no"
9435 rm -f conftest*
9438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9439 echo "$ac_t""yes" 1>&6
9440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9441 cat >> confdefs.h <<EOF
9442 #define $ac_tr_func 1
9445 else
9446 echo "$ac_t""no" 1>&6
9447 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9449 done
9452 if test x$ac_cv_func_copysignl = x"yes"; then
9453 for ac_func in __signbitl
9455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9456 echo "configure:9457: checking for $ac_func" >&5
9457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9458 echo $ac_n "(cached) $ac_c" 1>&6
9459 else
9460 cat > conftest.$ac_ext <<EOF
9461 #line 9462 "configure"
9462 #include "confdefs.h"
9463 /* System header to define __stub macros and hopefully few prototypes,
9464 which can conflict with char $ac_func(); below. */
9465 #include <assert.h>
9466 /* Override any gcc2 internal prototype to avoid an error. */
9467 /* We use char because int might match the return type of a gcc2
9468 builtin and then its argument prototype would still apply. */
9469 char $ac_func();
9471 int main() {
9473 /* The GNU C library defines this for functions which it implements
9474 to always fail with ENOSYS. Some functions are actually named
9475 something starting with __ and the normal name is an alias. */
9476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9477 choke me
9478 #else
9479 $ac_func();
9480 #endif
9482 ; return 0; }
9484 if { (eval echo configure:9485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9485 rm -rf conftest*
9486 eval "ac_cv_func_$ac_func=yes"
9487 else
9488 echo "configure: failed program was:" >&5
9489 cat conftest.$ac_ext >&5
9490 rm -rf conftest*
9491 eval "ac_cv_func_$ac_func=no"
9493 rm -f conftest*
9496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9497 echo "$ac_t""yes" 1>&6
9498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9499 cat >> confdefs.h <<EOF
9500 #define $ac_tr_func 1
9503 else
9504 echo "$ac_t""no" 1>&6
9505 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9507 done
9511 if test -n "$LIBMATHOBJS"; then
9512 need_libmath=yes
9518 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9519 echo "configure:9520: checking for mbstate_t" >&5
9520 cat > conftest.$ac_ext <<EOF
9521 #line 9522 "configure"
9522 #include "confdefs.h"
9523 #include <wchar.h>
9524 int main() {
9525 mbstate_t teststate;
9526 ; return 0; }
9528 if { (eval echo configure:9529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9529 rm -rf conftest*
9530 have_mbstate_t=yes
9531 else
9532 echo "configure: failed program was:" >&5
9533 cat conftest.$ac_ext >&5
9534 rm -rf conftest*
9535 have_mbstate_t=no
9537 rm -f conftest*
9538 echo "$ac_t""$have_mbstate_t" 1>&6
9539 if test x"$have_mbstate_t" = xyes; then
9540 cat >> confdefs.h <<\EOF
9541 #define HAVE_MBSTATE_T 1
9546 for ac_hdr in wchar.h
9548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9550 echo "configure:9551: checking for $ac_hdr" >&5
9551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9552 echo $ac_n "(cached) $ac_c" 1>&6
9553 else
9554 cat > conftest.$ac_ext <<EOF
9555 #line 9556 "configure"
9556 #include "confdefs.h"
9557 #include <$ac_hdr>
9559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9560 { (eval echo configure:9561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9562 if test -z "$ac_err"; then
9563 rm -rf conftest*
9564 eval "ac_cv_header_$ac_safe=yes"
9565 else
9566 echo "$ac_err" >&5
9567 echo "configure: failed program was:" >&5
9568 cat conftest.$ac_ext >&5
9569 rm -rf conftest*
9570 eval "ac_cv_header_$ac_safe=no"
9572 rm -f conftest*
9574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9575 echo "$ac_t""yes" 1>&6
9576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9577 cat >> confdefs.h <<EOF
9578 #define $ac_tr_hdr 1
9580 ac_has_wchar_h=yes
9581 else
9582 echo "$ac_t""no" 1>&6
9583 ac_has_wchar_h=no
9585 done
9587 for ac_hdr in wctype.h
9589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9591 echo "configure:9592: checking for $ac_hdr" >&5
9592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9593 echo $ac_n "(cached) $ac_c" 1>&6
9594 else
9595 cat > conftest.$ac_ext <<EOF
9596 #line 9597 "configure"
9597 #include "confdefs.h"
9598 #include <$ac_hdr>
9600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9601 { (eval echo configure:9602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9603 if test -z "$ac_err"; then
9604 rm -rf conftest*
9605 eval "ac_cv_header_$ac_safe=yes"
9606 else
9607 echo "$ac_err" >&5
9608 echo "configure: failed program was:" >&5
9609 cat conftest.$ac_ext >&5
9610 rm -rf conftest*
9611 eval "ac_cv_header_$ac_safe=no"
9613 rm -f conftest*
9615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9616 echo "$ac_t""yes" 1>&6
9617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9618 cat >> confdefs.h <<EOF
9619 #define $ac_tr_hdr 1
9621 ac_has_wctype_h=yes
9622 else
9623 echo "$ac_t""no" 1>&6
9624 ac_has_wctype_h=no
9626 done
9629 if test x"$ac_has_wchar_h" = xyes &&
9630 test x"$ac_has_wctype_h" = xyes &&
9631 test x"$enable_c_mbchar" != xno; then
9633 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9634 echo "configure:9635: checking for WCHAR_MIN and WCHAR_MAX" >&5
9635 cat > conftest.$ac_ext <<EOF
9636 #line 9637 "configure"
9637 #include "confdefs.h"
9638 #include <wchar.h>
9639 int main() {
9640 int i = WCHAR_MIN; int j = WCHAR_MAX;
9641 ; return 0; }
9643 if { (eval echo configure:9644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9644 rm -rf conftest*
9645 has_wchar_minmax=yes
9646 else
9647 echo "configure: failed program was:" >&5
9648 cat conftest.$ac_ext >&5
9649 rm -rf conftest*
9650 has_wchar_minmax=no
9652 rm -f conftest*
9653 echo "$ac_t""$has_wchar_minmax" 1>&6
9655 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9656 echo "configure:9657: checking for WEOF" >&5
9657 cat > conftest.$ac_ext <<EOF
9658 #line 9659 "configure"
9659 #include "confdefs.h"
9661 #include <wchar.h>
9662 #include <stddef.h>
9663 int main() {
9664 wint_t i = WEOF;
9665 ; return 0; }
9667 if { (eval echo configure:9668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9668 rm -rf conftest*
9669 has_weof=yes
9670 else
9671 echo "configure: failed program was:" >&5
9672 cat conftest.$ac_ext >&5
9673 rm -rf conftest*
9674 has_weof=no
9676 rm -f conftest*
9677 echo "$ac_t""$has_weof" 1>&6
9679 ac_wfuncs=yes
9680 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9683 echo "configure:9684: checking for $ac_func" >&5
9684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9685 echo $ac_n "(cached) $ac_c" 1>&6
9686 else
9687 cat > conftest.$ac_ext <<EOF
9688 #line 9689 "configure"
9689 #include "confdefs.h"
9690 /* System header to define __stub macros and hopefully few prototypes,
9691 which can conflict with char $ac_func(); below. */
9692 #include <assert.h>
9693 /* Override any gcc2 internal prototype to avoid an error. */
9694 /* We use char because int might match the return type of a gcc2
9695 builtin and then its argument prototype would still apply. */
9696 char $ac_func();
9698 int main() {
9700 /* The GNU C library defines this for functions which it implements
9701 to always fail with ENOSYS. Some functions are actually named
9702 something starting with __ and the normal name is an alias. */
9703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9704 choke me
9705 #else
9706 $ac_func();
9707 #endif
9709 ; return 0; }
9711 if { (eval echo configure:9712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9712 rm -rf conftest*
9713 eval "ac_cv_func_$ac_func=yes"
9714 else
9715 echo "configure: failed program was:" >&5
9716 cat conftest.$ac_ext >&5
9717 rm -rf conftest*
9718 eval "ac_cv_func_$ac_func=no"
9720 rm -f conftest*
9723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9724 echo "$ac_t""yes" 1>&6
9725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9726 cat >> confdefs.h <<EOF
9727 #define $ac_tr_func 1
9730 else
9731 echo "$ac_t""no" 1>&6
9733 ac_wfuncs=no
9735 done
9738 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9739 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9740 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9741 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9742 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9743 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9746 echo "configure:9747: checking for $ac_func" >&5
9747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9748 echo $ac_n "(cached) $ac_c" 1>&6
9749 else
9750 cat > conftest.$ac_ext <<EOF
9751 #line 9752 "configure"
9752 #include "confdefs.h"
9753 /* System header to define __stub macros and hopefully few prototypes,
9754 which can conflict with char $ac_func(); below. */
9755 #include <assert.h>
9756 /* Override any gcc2 internal prototype to avoid an error. */
9757 /* We use char because int might match the return type of a gcc2
9758 builtin and then its argument prototype would still apply. */
9759 char $ac_func();
9761 int main() {
9763 /* The GNU C library defines this for functions which it implements
9764 to always fail with ENOSYS. Some functions are actually named
9765 something starting with __ and the normal name is an alias. */
9766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9767 choke me
9768 #else
9769 $ac_func();
9770 #endif
9772 ; return 0; }
9774 if { (eval echo configure:9775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9775 rm -rf conftest*
9776 eval "ac_cv_func_$ac_func=yes"
9777 else
9778 echo "configure: failed program was:" >&5
9779 cat conftest.$ac_ext >&5
9780 rm -rf conftest*
9781 eval "ac_cv_func_$ac_func=no"
9783 rm -f conftest*
9786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9787 echo "$ac_t""yes" 1>&6
9788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9789 cat >> confdefs.h <<EOF
9790 #define $ac_tr_func 1
9793 else
9794 echo "$ac_t""no" 1>&6
9796 ac_wfuncs=no
9798 done
9801 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9802 echo "configure:9803: checking for ISO C99 wchar_t support" >&5
9803 if test x"$has_weof" = xyes &&
9804 test x"$has_wchar_minmax" = xyes &&
9805 test x"$ac_wfuncs" = xyes; then
9806 ac_isoC99_wchar_t=yes
9807 else
9808 ac_isoC99_wchar_t=no
9810 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9812 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9813 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9814 echo "configure:9815: checking for iconv.h" >&5
9815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9816 echo $ac_n "(cached) $ac_c" 1>&6
9817 else
9818 cat > conftest.$ac_ext <<EOF
9819 #line 9820 "configure"
9820 #include "confdefs.h"
9821 #include <iconv.h>
9823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9824 { (eval echo configure:9825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9826 if test -z "$ac_err"; then
9827 rm -rf conftest*
9828 eval "ac_cv_header_$ac_safe=yes"
9829 else
9830 echo "$ac_err" >&5
9831 echo "configure: failed program was:" >&5
9832 cat conftest.$ac_ext >&5
9833 rm -rf conftest*
9834 eval "ac_cv_header_$ac_safe=no"
9836 rm -f conftest*
9838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9839 echo "$ac_t""yes" 1>&6
9840 ac_has_iconv_h=yes
9841 else
9842 echo "$ac_t""no" 1>&6
9843 ac_has_iconv_h=no
9846 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9847 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9848 echo "configure:9849: checking for langinfo.h" >&5
9849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9850 echo $ac_n "(cached) $ac_c" 1>&6
9851 else
9852 cat > conftest.$ac_ext <<EOF
9853 #line 9854 "configure"
9854 #include "confdefs.h"
9855 #include <langinfo.h>
9857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9858 { (eval echo configure:9859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9860 if test -z "$ac_err"; then
9861 rm -rf conftest*
9862 eval "ac_cv_header_$ac_safe=yes"
9863 else
9864 echo "$ac_err" >&5
9865 echo "configure: failed program was:" >&5
9866 cat conftest.$ac_ext >&5
9867 rm -rf conftest*
9868 eval "ac_cv_header_$ac_safe=no"
9870 rm -f conftest*
9872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9873 echo "$ac_t""yes" 1>&6
9874 ac_has_langinfo_h=yes
9875 else
9876 echo "$ac_t""no" 1>&6
9877 ac_has_langinfo_h=no
9881 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9882 echo "configure:9883: checking for iconv in -liconv" >&5
9883 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9885 echo $ac_n "(cached) $ac_c" 1>&6
9886 else
9887 ac_save_LIBS="$LIBS"
9888 LIBS="-liconv $LIBS"
9889 cat > conftest.$ac_ext <<EOF
9890 #line 9891 "configure"
9891 #include "confdefs.h"
9892 /* Override any gcc2 internal prototype to avoid an error. */
9893 /* We use char because int might match the return type of a gcc2
9894 builtin and then its argument prototype would still apply. */
9895 char iconv();
9897 int main() {
9898 iconv()
9899 ; return 0; }
9901 if { (eval echo configure:9902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9902 rm -rf conftest*
9903 eval "ac_cv_lib_$ac_lib_var=yes"
9904 else
9905 echo "configure: failed program was:" >&5
9906 cat conftest.$ac_ext >&5
9907 rm -rf conftest*
9908 eval "ac_cv_lib_$ac_lib_var=no"
9910 rm -f conftest*
9911 LIBS="$ac_save_LIBS"
9914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9915 echo "$ac_t""yes" 1>&6
9916 libiconv="-liconv"
9917 else
9918 echo "$ac_t""no" 1>&6
9921 ac_save_LIBS="$LIBS"
9922 LIBS="$LIBS $libiconv"
9924 for ac_func in iconv_open iconv_close iconv nl_langinfo
9926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9927 echo "configure:9928: checking for $ac_func" >&5
9928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9929 echo $ac_n "(cached) $ac_c" 1>&6
9930 else
9931 cat > conftest.$ac_ext <<EOF
9932 #line 9933 "configure"
9933 #include "confdefs.h"
9934 /* System header to define __stub macros and hopefully few prototypes,
9935 which can conflict with char $ac_func(); below. */
9936 #include <assert.h>
9937 /* Override any gcc2 internal prototype to avoid an error. */
9938 /* We use char because int might match the return type of a gcc2
9939 builtin and then its argument prototype would still apply. */
9940 char $ac_func();
9942 int main() {
9944 /* The GNU C library defines this for functions which it implements
9945 to always fail with ENOSYS. Some functions are actually named
9946 something starting with __ and the normal name is an alias. */
9947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9948 choke me
9949 #else
9950 $ac_func();
9951 #endif
9953 ; return 0; }
9955 if { (eval echo configure:9956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9956 rm -rf conftest*
9957 eval "ac_cv_func_$ac_func=yes"
9958 else
9959 echo "configure: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9961 rm -rf conftest*
9962 eval "ac_cv_func_$ac_func=no"
9964 rm -f conftest*
9967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9968 echo "$ac_t""yes" 1>&6
9969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9970 cat >> confdefs.h <<EOF
9971 #define $ac_tr_func 1
9974 ac_XPG2funcs=yes
9975 else
9976 echo "$ac_t""no" 1>&6
9977 ac_XPG2funcs=no
9979 done
9982 LIBS="$ac_save_LIBS"
9984 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9985 echo "configure:9986: checking for XPG2 wchar_t support" >&5
9986 if test x"$ac_has_iconv_h" = xyes &&
9987 test x"$ac_has_langinfo_h" = xyes &&
9988 test x"$ac_XPG2funcs" = xyes; then
9989 ac_XPG2_wchar_t=yes
9990 else
9991 ac_XPG2_wchar_t=no
9993 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9995 if test x"$ac_isoC99_wchar_t" = xyes &&
9996 test x"$ac_XPG2_wchar_t" = xyes; then
9997 cat >> confdefs.h <<\EOF
9998 #define _GLIBCPP_USE_WCHAR_T 1
10001 enable_wchar_t=yes
10004 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
10005 echo "configure:10006: checking for enabled wchar_t specializations" >&5
10006 echo "$ac_t""$enable_wchar_t" 1>&6
10008 cat >> confdefs.h <<\EOF
10009 #define HAVE_COSF 1
10012 cat >> confdefs.h <<\EOF
10013 #define HAVE_COSL 1
10016 cat >> confdefs.h <<\EOF
10017 #define HAVE_COSHF 1
10020 cat >> confdefs.h <<\EOF
10021 #define HAVE_COSHL 1
10024 cat >> confdefs.h <<\EOF
10025 #define HAVE_LOGF 1
10028 cat >> confdefs.h <<\EOF
10029 #define HAVE_LOGL 1
10032 cat >> confdefs.h <<\EOF
10033 #define HAVE_LOG10F 1
10036 cat >> confdefs.h <<\EOF
10037 #define HAVE_LOG10L 1
10040 cat >> confdefs.h <<\EOF
10041 #define HAVE_SINF 1
10044 cat >> confdefs.h <<\EOF
10045 #define HAVE_SINL 1
10048 cat >> confdefs.h <<\EOF
10049 #define HAVE_SINHF 1
10052 cat >> confdefs.h <<\EOF
10053 #define HAVE_SINHL 1
10057 *-solaris*)
10058 case "$target" in
10059 *-solaris2.5)
10060 os_include_dir="os/solaris/solaris2.5"
10062 *-solaris2.6)
10063 os_include_dir="os/solaris/solaris2.6"
10065 *-solaris2.7 | *-solaris2.8 | *-solaris2.9)
10066 os_include_dir="os/solaris/solaris2.7"
10068 esac
10069 cat >> confdefs.h <<\EOF
10070 #define HAVE_STRTOF 1
10073 cat >> confdefs.h <<\EOF
10074 #define HAVE_STRTOLD 1
10077 cat >> confdefs.h <<\EOF
10078 #define HAVE_MMAP 1
10081 cat >> confdefs.h <<\EOF
10082 #define HAVE_COPYSIGN 1
10085 cat >> confdefs.h <<\EOF
10086 #define HAVE_ISNAN 1
10089 cat >> confdefs.h <<\EOF
10090 #define HAVE_ISNANF 1
10093 cat >> confdefs.h <<\EOF
10094 #define HAVE_MODFF 1
10097 cat >> confdefs.h <<\EOF
10098 #define HAVE_HYPOT 1
10102 *-windiss*)
10103 os_include_dir="os/windiss"
10104 cat >> confdefs.h <<\EOF
10105 #define HAVE_ACOSF 1
10108 cat >> confdefs.h <<\EOF
10109 #define HAVE_ASINF 1
10112 cat >> confdefs.h <<\EOF
10113 #define HAVE_ATAN2F 1
10116 cat >> confdefs.h <<\EOF
10117 #define HAVE_ATANF 1
10120 cat >> confdefs.h <<\EOF
10121 #define HAVE_CEILF 1
10124 cat >> confdefs.h <<\EOF
10125 #define HAVE_COPYSIGN 1
10128 cat >> confdefs.h <<\EOF
10129 #define HAVE_COPYSIGNF 1
10132 cat >> confdefs.h <<\EOF
10133 #define HAVE_COSF 1
10136 cat >> confdefs.h <<\EOF
10137 #define HAVE_COSHF 1
10140 cat >> confdefs.h <<\EOF
10141 #define HAVE_EXPF 1
10144 cat >> confdefs.h <<\EOF
10145 #define HAVE_FABSF 1
10148 cat >> confdefs.h <<\EOF
10149 #define HAVE_FLOORF 1
10152 cat >> confdefs.h <<\EOF
10153 #define HAVE_FMODF 1
10156 cat >> confdefs.h <<\EOF
10157 #define HAVE_FREXPF 1
10160 cat >> confdefs.h <<\EOF
10161 #define HAVE_LDEXPF 1
10164 cat >> confdefs.h <<\EOF
10165 #define HAVE_LOG10F 1
10168 cat >> confdefs.h <<\EOF
10169 #define HAVE_LOGF 1
10172 cat >> confdefs.h <<\EOF
10173 #define HAVE_MODFF 1
10176 cat >> confdefs.h <<\EOF
10177 #define HAVE_POWF 1
10180 cat >> confdefs.h <<\EOF
10181 #define HAVE_SINF 1
10184 cat >> confdefs.h <<\EOF
10185 #define HAVE_SINHF 1
10188 cat >> confdefs.h <<\EOF
10189 #define HAVE_SQRTF 1
10192 cat >> confdefs.h <<\EOF
10193 #define HAVE_TANF 1
10196 cat >> confdefs.h <<\EOF
10197 #define HAVE_TANHF 1
10202 if test "x${with_newlib}" = "xyes"; then
10203 os_include_dir="os/newlib"
10204 cat >> confdefs.h <<\EOF
10205 #define HAVE_HYPOT 1
10209 # GLIBCPP_CHECK_STDLIB_SUPPORT
10210 cat >> confdefs.h <<\EOF
10211 #define HAVE_STRTOF 1
10214 cat >> confdefs.h <<\EOF
10215 #define HAVE_STRTOLD 1
10218 # AC_FUNC_MMAP
10219 cat >> confdefs.h <<\EOF
10220 #define HAVE_MMAP 1
10224 cat >> confdefs.h <<\EOF
10225 #define HAVE_ACOSF 1
10228 cat >> confdefs.h <<\EOF
10229 #define HAVE_ASINF 1
10232 cat >> confdefs.h <<\EOF
10233 #define HAVE_ATAN2F 1
10236 cat >> confdefs.h <<\EOF
10237 #define HAVE_ATANF 1
10240 cat >> confdefs.h <<\EOF
10241 #define HAVE_CEILF 1
10244 cat >> confdefs.h <<\EOF
10245 #define HAVE_COPYSIGN 1
10248 cat >> confdefs.h <<\EOF
10249 #define HAVE_COPYSIGNF 1
10252 cat >> confdefs.h <<\EOF
10253 #define HAVE_COSF 1
10256 cat >> confdefs.h <<\EOF
10257 #define HAVE_COSHF 1
10260 cat >> confdefs.h <<\EOF
10261 #define HAVE_EXPF 1
10264 cat >> confdefs.h <<\EOF
10265 #define HAVE_FABSF 1
10268 cat >> confdefs.h <<\EOF
10269 #define HAVE_FLOORF 1
10272 cat >> confdefs.h <<\EOF
10273 #define HAVE_FMODF 1
10276 cat >> confdefs.h <<\EOF
10277 #define HAVE_FREXPF 1
10280 cat >> confdefs.h <<\EOF
10281 #define HAVE_LDEXPF 1
10284 cat >> confdefs.h <<\EOF
10285 #define HAVE_LOG10F 1
10288 cat >> confdefs.h <<\EOF
10289 #define HAVE_LOGF 1
10292 cat >> confdefs.h <<\EOF
10293 #define HAVE_MODFF 1
10296 cat >> confdefs.h <<\EOF
10297 #define HAVE_POWF 1
10300 cat >> confdefs.h <<\EOF
10301 #define HAVE_SINF 1
10304 cat >> confdefs.h <<\EOF
10305 #define HAVE_SINHF 1
10308 cat >> confdefs.h <<\EOF
10309 #define HAVE_SQRTF 1
10312 cat >> confdefs.h <<\EOF
10313 #define HAVE_TANF 1
10316 cat >> confdefs.h <<\EOF
10317 #define HAVE_TANHF 1
10320 else
10321 { echo "configure: error: No support for this host/target combination." 1>&2; exit 1; }
10324 esac
10326 # At some point, we should differentiate between architectures
10327 # like x86, which have long double versions, and alpha/powerpc/etc.,
10328 # which don't. For the time being, punt.
10329 if test x"long_double_math_on_this_cpu" = x"yes"; then
10330 cat >> confdefs.h <<\EOF
10331 #define HAVE_ACOSL 1
10334 cat >> confdefs.h <<\EOF
10335 #define HAVE_ASINL 1
10338 cat >> confdefs.h <<\EOF
10339 #define HAVE_ATAN2L 1
10342 cat >> confdefs.h <<\EOF
10343 #define HAVE_ATANL 1
10346 cat >> confdefs.h <<\EOF
10347 #define HAVE_CEILL 1
10350 cat >> confdefs.h <<\EOF
10351 #define HAVE_COPYSIGNL 1
10354 cat >> confdefs.h <<\EOF
10355 #define HAVE_COSL 1
10358 cat >> confdefs.h <<\EOF
10359 #define HAVE_COSHL 1
10362 cat >> confdefs.h <<\EOF
10363 #define HAVE_EXPL 1
10366 cat >> confdefs.h <<\EOF
10367 #define HAVE_FABSL 1
10370 cat >> confdefs.h <<\EOF
10371 #define HAVE_FLOORL 1
10374 cat >> confdefs.h <<\EOF
10375 #define HAVE_FMODL 1
10378 cat >> confdefs.h <<\EOF
10379 #define HAVE_FREXPL 1
10382 cat >> confdefs.h <<\EOF
10383 #define HAVE_LDEXPL 1
10386 cat >> confdefs.h <<\EOF
10387 #define HAVE_LOG10L 1
10390 cat >> confdefs.h <<\EOF
10391 #define HAVE_LOGL 1
10394 cat >> confdefs.h <<\EOF
10395 #define HAVE_MODFL 1
10398 cat >> confdefs.h <<\EOF
10399 #define HAVE_POWL 1
10402 cat >> confdefs.h <<\EOF
10403 #define HAVE_SINCOSL 1
10406 cat >> confdefs.h <<\EOF
10407 #define HAVE_SINL 1
10410 cat >> confdefs.h <<\EOF
10411 #define HAVE_SINHL 1
10414 cat >> confdefs.h <<\EOF
10415 #define HAVE_SQRTL 1
10418 cat >> confdefs.h <<\EOF
10419 #define HAVE_TANL 1
10422 cat >> confdefs.h <<\EOF
10423 #define HAVE_TANHL 1
10428 else
10430 # We are being configured natively. We can do more elaborate tests
10431 # that include AC_TRY_COMPILE now, as the linker is assumed to be
10432 # working.
10433 GLIBCPP_IS_CROSS_COMPILING=false
10434 CANADIAN=no
10436 # Check for available headers.
10437 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10438 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
10439 sys/types.h
10441 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10442 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10443 echo "configure:10444: checking for $ac_hdr" >&5
10444 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10445 echo $ac_n "(cached) $ac_c" 1>&6
10446 else
10447 cat > conftest.$ac_ext <<EOF
10448 #line 10449 "configure"
10449 #include "confdefs.h"
10450 #include <$ac_hdr>
10452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10453 { (eval echo configure:10454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10455 if test -z "$ac_err"; then
10456 rm -rf conftest*
10457 eval "ac_cv_header_$ac_safe=yes"
10458 else
10459 echo "$ac_err" >&5
10460 echo "configure: failed program was:" >&5
10461 cat conftest.$ac_ext >&5
10462 rm -rf conftest*
10463 eval "ac_cv_header_$ac_safe=no"
10465 rm -f conftest*
10467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10468 echo "$ac_t""yes" 1>&6
10469 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10470 cat >> confdefs.h <<EOF
10471 #define $ac_tr_hdr 1
10474 else
10475 echo "$ac_t""no" 1>&6
10477 done
10481 # All these tests are for C++; save the language and the compiler flags.
10482 # The CXXFLAGS thing is suspicious, but based on similar bits previously
10483 # found in GLIBCPP_CONFIGURE.
10485 ac_ext=C
10486 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10487 ac_cpp='$CXXCPP $CPPFLAGS'
10488 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10489 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10490 cross_compiling=$ac_cv_prog_cxx_cross
10492 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10493 ac_save_CXXFLAGS="$CXXFLAGS"
10495 # Check for maintainer-mode bits.
10496 if test x"$USE_MAINTAINER_MODE" = xno; then
10497 WERROR=''
10498 else
10499 WERROR='-Werror'
10502 # Check for -ffunction-sections -fdata-sections
10503 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10504 echo "configure:10505: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10505 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10506 cat > conftest.$ac_ext <<EOF
10507 #line 10508 "configure"
10508 #include "confdefs.h"
10510 int main() {
10511 int foo;
10513 ; return 0; }
10515 if { (eval echo configure:10516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10516 rm -rf conftest*
10517 ac_fdsections=yes
10518 else
10519 echo "configure: failed program was:" >&5
10520 cat conftest.$ac_ext >&5
10521 rm -rf conftest*
10522 ac_fdsections=no
10524 rm -f conftest*
10525 if test "$ac_test_CXXFLAGS" = set; then
10526 CXXFLAGS="$ac_save_CXXFLAGS"
10527 else
10528 # this is the suspicious part
10529 CXXFLAGS=''
10531 if test x"$ac_fdsections" = x"yes"; then
10532 SECTION_FLAGS='-ffunction-sections -fdata-sections'
10534 echo "$ac_t""$ac_fdsections" 1>&6
10536 ac_ext=c
10537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10538 ac_cpp='$CPP $CPPFLAGS'
10539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10541 cross_compiling=$ac_cv_prog_cc_cross
10547 # If we're not using GNU ld, then there's no point in even trying these
10548 # tests. Check for that first. We should have already tested for gld
10549 # by now (in libtool), but require it now just to be safe...
10550 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10551 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10554 # The name set by libtool depends on the version of libtool. Shame on us
10555 # for depending on an impl detail, but c'est la vie. Older versions used
10556 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10557 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10558 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
10559 # set (hence we're using an older libtool), then set it.
10560 if test x${with_gnu_ld+set} != xset; then
10561 if test x${ac_cv_prog_gnu_ld+set} != xset; then
10562 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
10563 with_gnu_ld=no
10564 else
10565 with_gnu_ld=$ac_cv_prog_gnu_ld
10569 # Start by getting the version number. I think the libtool test already
10570 # does some of this, but throws away the result.
10572 ldver=`$LD --version 2>/dev/null | head -1 | \
10573 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10575 glibcpp_gnu_ld_version=`echo $ldver | \
10576 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10578 # Set --gc-sections.
10579 if test "$with_gnu_ld" = "notbroken"; then
10580 # GNU ld it is! Joy and bunny rabbits!
10582 # All these tests are for C++; save the language and the compiler flags.
10583 # Need to do this so that g++ won't try to link in libstdc++
10584 ac_test_CFLAGS="${CFLAGS+set}"
10585 ac_save_CFLAGS="$CFLAGS"
10586 CFLAGS='-x c++ -Wl,--gc-sections'
10588 # Check for -Wl,--gc-sections
10589 # XXX This test is broken at the moment, as symbols required for
10590 # linking are now in libsupc++ (not built yet.....). In addition,
10591 # this test has cored on solaris in the past. In addition,
10592 # --gc-sections doesn't really work at the moment (keeps on discarding
10593 # used sections, first .eh_frame and now some of the glibc sections for
10594 # iconv). Bzzzzt. Thanks for playing, maybe next time.
10595 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10596 echo "configure:10597: checking for ld that supports -Wl,--gc-sections" >&5
10597 if test "$cross_compiling" = yes; then
10598 ac_sectionLDflags=yes
10599 else
10600 cat > conftest.$ac_ext <<EOF
10601 #line 10602 "configure"
10602 #include "confdefs.h"
10604 int main(void)
10606 try { throw 1; }
10607 catch (...) { };
10608 return 0;
10612 if { (eval echo configure:10613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10613 then
10614 ac_sectionLDflags=yes
10615 else
10616 echo "configure: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10618 rm -fr conftest*
10619 ac_sectionLDflags=no
10621 rm -fr conftest*
10624 if test "$ac_test_CFLAGS" = set; then
10625 CFLAGS="$ac_save_CFLAGS"
10626 else
10627 # this is the suspicious part
10628 CFLAGS=''
10630 if test "$ac_sectionLDflags" = "yes"; then
10631 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10633 echo "$ac_t""$ac_sectionLDflags" 1>&6
10636 # Set linker optimization flags.
10637 if test x"$with_gnu_ld" = x"yes"; then
10638 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10645 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10646 ac_save_CXXFLAGS="$CXXFLAGS"
10647 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10649 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10650 echo "configure:10651: checking for sin in -lm" >&5
10651 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10653 echo $ac_n "(cached) $ac_c" 1>&6
10654 else
10655 ac_save_LIBS="$LIBS"
10656 LIBS="-lm $LIBS"
10657 cat > conftest.$ac_ext <<EOF
10658 #line 10659 "configure"
10659 #include "confdefs.h"
10660 /* Override any gcc2 internal prototype to avoid an error. */
10661 /* We use char because int might match the return type of a gcc2
10662 builtin and then its argument prototype would still apply. */
10663 char sin();
10665 int main() {
10666 sin()
10667 ; return 0; }
10669 if { (eval echo configure:10670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10670 rm -rf conftest*
10671 eval "ac_cv_lib_$ac_lib_var=yes"
10672 else
10673 echo "configure: failed program was:" >&5
10674 cat conftest.$ac_ext >&5
10675 rm -rf conftest*
10676 eval "ac_cv_lib_$ac_lib_var=no"
10678 rm -f conftest*
10679 LIBS="$ac_save_LIBS"
10682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10683 echo "$ac_t""yes" 1>&6
10684 libm="-lm"
10685 else
10686 echo "$ac_t""no" 1>&6
10689 ac_save_LIBS="$LIBS"
10690 LIBS="$LIBS $libm"
10694 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10695 echo "configure:10696: checking for isinf declaration" >&5
10696 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10697 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10698 echo $ac_n "(cached) $ac_c" 1>&6
10699 else
10702 ac_ext=C
10703 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10704 ac_cpp='$CXXCPP $CPPFLAGS'
10705 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10706 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10707 cross_compiling=$ac_cv_prog_cxx_cross
10709 cat > conftest.$ac_ext <<EOF
10710 #line 10711 "configure"
10711 #include "confdefs.h"
10712 #include <math.h>
10713 #ifdef HAVE_IEEEFP_H
10714 #include <ieeefp.h>
10715 #endif
10717 int main() {
10718 isinf(0);
10719 ; return 0; }
10721 if { (eval echo configure:10722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10722 rm -rf conftest*
10723 glibcpp_cv_func_isinf_use=yes
10724 else
10725 echo "configure: failed program was:" >&5
10726 cat conftest.$ac_ext >&5
10727 rm -rf conftest*
10728 glibcpp_cv_func_isinf_use=no
10730 rm -f conftest*
10731 ac_ext=c
10732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10733 ac_cpp='$CPP $CPPFLAGS'
10734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10736 cross_compiling=$ac_cv_prog_cc_cross
10742 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10744 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10745 for ac_func in isinf
10747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10748 echo "configure:10749: checking for $ac_func" >&5
10749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10750 echo $ac_n "(cached) $ac_c" 1>&6
10751 else
10752 cat > conftest.$ac_ext <<EOF
10753 #line 10754 "configure"
10754 #include "confdefs.h"
10755 /* System header to define __stub macros and hopefully few prototypes,
10756 which can conflict with char $ac_func(); below. */
10757 #include <assert.h>
10758 /* Override any gcc2 internal prototype to avoid an error. */
10759 /* We use char because int might match the return type of a gcc2
10760 builtin and then its argument prototype would still apply. */
10761 char $ac_func();
10763 int main() {
10765 /* The GNU C library defines this for functions which it implements
10766 to always fail with ENOSYS. Some functions are actually named
10767 something starting with __ and the normal name is an alias. */
10768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10769 choke me
10770 #else
10771 $ac_func();
10772 #endif
10774 ; return 0; }
10776 if { (eval echo configure:10777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10777 rm -rf conftest*
10778 eval "ac_cv_func_$ac_func=yes"
10779 else
10780 echo "configure: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10782 rm -rf conftest*
10783 eval "ac_cv_func_$ac_func=no"
10785 rm -f conftest*
10788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10789 echo "$ac_t""yes" 1>&6
10790 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10791 cat >> confdefs.h <<EOF
10792 #define $ac_tr_func 1
10795 else
10796 echo "$ac_t""no" 1>&6
10798 done
10800 else
10802 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10803 echo "configure:10804: checking for _isinf declaration" >&5
10804 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10805 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10806 echo $ac_n "(cached) $ac_c" 1>&6
10807 else
10810 ac_ext=C
10811 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10812 ac_cpp='$CXXCPP $CPPFLAGS'
10813 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10814 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10815 cross_compiling=$ac_cv_prog_cxx_cross
10817 cat > conftest.$ac_ext <<EOF
10818 #line 10819 "configure"
10819 #include "confdefs.h"
10820 #include <math.h>
10821 #ifdef HAVE_IEEEFP_H
10822 #include <ieeefp.h>
10823 #endif
10825 int main() {
10826 _isinf(0);
10827 ; return 0; }
10829 if { (eval echo configure:10830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10830 rm -rf conftest*
10831 glibcpp_cv_func__isinf_use=yes
10832 else
10833 echo "configure: failed program was:" >&5
10834 cat conftest.$ac_ext >&5
10835 rm -rf conftest*
10836 glibcpp_cv_func__isinf_use=no
10838 rm -f conftest*
10839 ac_ext=c
10840 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10841 ac_cpp='$CPP $CPPFLAGS'
10842 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10843 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10844 cross_compiling=$ac_cv_prog_cc_cross
10850 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10852 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10853 for ac_func in _isinf
10855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10856 echo "configure:10857: checking for $ac_func" >&5
10857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10858 echo $ac_n "(cached) $ac_c" 1>&6
10859 else
10860 cat > conftest.$ac_ext <<EOF
10861 #line 10862 "configure"
10862 #include "confdefs.h"
10863 /* System header to define __stub macros and hopefully few prototypes,
10864 which can conflict with char $ac_func(); below. */
10865 #include <assert.h>
10866 /* Override any gcc2 internal prototype to avoid an error. */
10867 /* We use char because int might match the return type of a gcc2
10868 builtin and then its argument prototype would still apply. */
10869 char $ac_func();
10871 int main() {
10873 /* The GNU C library defines this for functions which it implements
10874 to always fail with ENOSYS. Some functions are actually named
10875 something starting with __ and the normal name is an alias. */
10876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10877 choke me
10878 #else
10879 $ac_func();
10880 #endif
10882 ; return 0; }
10884 if { (eval echo configure:10885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10885 rm -rf conftest*
10886 eval "ac_cv_func_$ac_func=yes"
10887 else
10888 echo "configure: failed program was:" >&5
10889 cat conftest.$ac_ext >&5
10890 rm -rf conftest*
10891 eval "ac_cv_func_$ac_func=no"
10893 rm -f conftest*
10896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10897 echo "$ac_t""yes" 1>&6
10898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10899 cat >> confdefs.h <<EOF
10900 #define $ac_tr_func 1
10903 else
10904 echo "$ac_t""no" 1>&6
10906 done
10913 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10914 echo "configure:10915: checking for isnan declaration" >&5
10915 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10916 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10917 echo $ac_n "(cached) $ac_c" 1>&6
10918 else
10921 ac_ext=C
10922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10923 ac_cpp='$CXXCPP $CPPFLAGS'
10924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10926 cross_compiling=$ac_cv_prog_cxx_cross
10928 cat > conftest.$ac_ext <<EOF
10929 #line 10930 "configure"
10930 #include "confdefs.h"
10931 #include <math.h>
10932 #ifdef HAVE_IEEEFP_H
10933 #include <ieeefp.h>
10934 #endif
10936 int main() {
10937 isnan(0);
10938 ; return 0; }
10940 if { (eval echo configure:10941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10941 rm -rf conftest*
10942 glibcpp_cv_func_isnan_use=yes
10943 else
10944 echo "configure: failed program was:" >&5
10945 cat conftest.$ac_ext >&5
10946 rm -rf conftest*
10947 glibcpp_cv_func_isnan_use=no
10949 rm -f conftest*
10950 ac_ext=c
10951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10952 ac_cpp='$CPP $CPPFLAGS'
10953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10955 cross_compiling=$ac_cv_prog_cc_cross
10961 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10963 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10964 for ac_func in isnan
10966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10967 echo "configure:10968: checking for $ac_func" >&5
10968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10969 echo $ac_n "(cached) $ac_c" 1>&6
10970 else
10971 cat > conftest.$ac_ext <<EOF
10972 #line 10973 "configure"
10973 #include "confdefs.h"
10974 /* System header to define __stub macros and hopefully few prototypes,
10975 which can conflict with char $ac_func(); below. */
10976 #include <assert.h>
10977 /* Override any gcc2 internal prototype to avoid an error. */
10978 /* We use char because int might match the return type of a gcc2
10979 builtin and then its argument prototype would still apply. */
10980 char $ac_func();
10982 int main() {
10984 /* The GNU C library defines this for functions which it implements
10985 to always fail with ENOSYS. Some functions are actually named
10986 something starting with __ and the normal name is an alias. */
10987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10988 choke me
10989 #else
10990 $ac_func();
10991 #endif
10993 ; return 0; }
10995 if { (eval echo configure:10996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10996 rm -rf conftest*
10997 eval "ac_cv_func_$ac_func=yes"
10998 else
10999 echo "configure: failed program was:" >&5
11000 cat conftest.$ac_ext >&5
11001 rm -rf conftest*
11002 eval "ac_cv_func_$ac_func=no"
11004 rm -f conftest*
11007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11008 echo "$ac_t""yes" 1>&6
11009 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11010 cat >> confdefs.h <<EOF
11011 #define $ac_tr_func 1
11014 else
11015 echo "$ac_t""no" 1>&6
11017 done
11019 else
11021 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11022 echo "configure:11023: checking for _isnan declaration" >&5
11023 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11024 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11025 echo $ac_n "(cached) $ac_c" 1>&6
11026 else
11029 ac_ext=C
11030 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11031 ac_cpp='$CXXCPP $CPPFLAGS'
11032 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11033 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11034 cross_compiling=$ac_cv_prog_cxx_cross
11036 cat > conftest.$ac_ext <<EOF
11037 #line 11038 "configure"
11038 #include "confdefs.h"
11039 #include <math.h>
11040 #ifdef HAVE_IEEEFP_H
11041 #include <ieeefp.h>
11042 #endif
11044 int main() {
11045 _isnan(0);
11046 ; return 0; }
11048 if { (eval echo configure:11049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11049 rm -rf conftest*
11050 glibcpp_cv_func__isnan_use=yes
11051 else
11052 echo "configure: failed program was:" >&5
11053 cat conftest.$ac_ext >&5
11054 rm -rf conftest*
11055 glibcpp_cv_func__isnan_use=no
11057 rm -f conftest*
11058 ac_ext=c
11059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11060 ac_cpp='$CPP $CPPFLAGS'
11061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11063 cross_compiling=$ac_cv_prog_cc_cross
11069 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11071 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11072 for ac_func in _isnan
11074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11075 echo "configure:11076: checking for $ac_func" >&5
11076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11077 echo $ac_n "(cached) $ac_c" 1>&6
11078 else
11079 cat > conftest.$ac_ext <<EOF
11080 #line 11081 "configure"
11081 #include "confdefs.h"
11082 /* System header to define __stub macros and hopefully few prototypes,
11083 which can conflict with char $ac_func(); below. */
11084 #include <assert.h>
11085 /* Override any gcc2 internal prototype to avoid an error. */
11086 /* We use char because int might match the return type of a gcc2
11087 builtin and then its argument prototype would still apply. */
11088 char $ac_func();
11090 int main() {
11092 /* The GNU C library defines this for functions which it implements
11093 to always fail with ENOSYS. Some functions are actually named
11094 something starting with __ and the normal name is an alias. */
11095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11096 choke me
11097 #else
11098 $ac_func();
11099 #endif
11101 ; return 0; }
11103 if { (eval echo configure:11104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11104 rm -rf conftest*
11105 eval "ac_cv_func_$ac_func=yes"
11106 else
11107 echo "configure: failed program was:" >&5
11108 cat conftest.$ac_ext >&5
11109 rm -rf conftest*
11110 eval "ac_cv_func_$ac_func=no"
11112 rm -f conftest*
11115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11116 echo "$ac_t""yes" 1>&6
11117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11118 cat >> confdefs.h <<EOF
11119 #define $ac_tr_func 1
11122 else
11123 echo "$ac_t""no" 1>&6
11125 done
11132 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11133 echo "configure:11134: checking for finite declaration" >&5
11134 if test x${glibcpp_cv_func_finite_use+set} != xset; then
11135 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11136 echo $ac_n "(cached) $ac_c" 1>&6
11137 else
11140 ac_ext=C
11141 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11142 ac_cpp='$CXXCPP $CPPFLAGS'
11143 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11144 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11145 cross_compiling=$ac_cv_prog_cxx_cross
11147 cat > conftest.$ac_ext <<EOF
11148 #line 11149 "configure"
11149 #include "confdefs.h"
11150 #include <math.h>
11151 #ifdef HAVE_IEEEFP_H
11152 #include <ieeefp.h>
11153 #endif
11155 int main() {
11156 finite(0);
11157 ; return 0; }
11159 if { (eval echo configure:11160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11160 rm -rf conftest*
11161 glibcpp_cv_func_finite_use=yes
11162 else
11163 echo "configure: failed program was:" >&5
11164 cat conftest.$ac_ext >&5
11165 rm -rf conftest*
11166 glibcpp_cv_func_finite_use=no
11168 rm -f conftest*
11169 ac_ext=c
11170 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11171 ac_cpp='$CPP $CPPFLAGS'
11172 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11173 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11174 cross_compiling=$ac_cv_prog_cc_cross
11180 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11182 if test x$glibcpp_cv_func_finite_use = x"yes"; then
11183 for ac_func in finite
11185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11186 echo "configure:11187: checking for $ac_func" >&5
11187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11188 echo $ac_n "(cached) $ac_c" 1>&6
11189 else
11190 cat > conftest.$ac_ext <<EOF
11191 #line 11192 "configure"
11192 #include "confdefs.h"
11193 /* System header to define __stub macros and hopefully few prototypes,
11194 which can conflict with char $ac_func(); below. */
11195 #include <assert.h>
11196 /* Override any gcc2 internal prototype to avoid an error. */
11197 /* We use char because int might match the return type of a gcc2
11198 builtin and then its argument prototype would still apply. */
11199 char $ac_func();
11201 int main() {
11203 /* The GNU C library defines this for functions which it implements
11204 to always fail with ENOSYS. Some functions are actually named
11205 something starting with __ and the normal name is an alias. */
11206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11207 choke me
11208 #else
11209 $ac_func();
11210 #endif
11212 ; return 0; }
11214 if { (eval echo configure:11215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11215 rm -rf conftest*
11216 eval "ac_cv_func_$ac_func=yes"
11217 else
11218 echo "configure: failed program was:" >&5
11219 cat conftest.$ac_ext >&5
11220 rm -rf conftest*
11221 eval "ac_cv_func_$ac_func=no"
11223 rm -f conftest*
11226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11227 echo "$ac_t""yes" 1>&6
11228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11229 cat >> confdefs.h <<EOF
11230 #define $ac_tr_func 1
11233 else
11234 echo "$ac_t""no" 1>&6
11236 done
11238 else
11240 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11241 echo "configure:11242: checking for _finite declaration" >&5
11242 if test x${glibcpp_cv_func__finite_use+set} != xset; then
11243 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11244 echo $ac_n "(cached) $ac_c" 1>&6
11245 else
11248 ac_ext=C
11249 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11250 ac_cpp='$CXXCPP $CPPFLAGS'
11251 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11252 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11253 cross_compiling=$ac_cv_prog_cxx_cross
11255 cat > conftest.$ac_ext <<EOF
11256 #line 11257 "configure"
11257 #include "confdefs.h"
11258 #include <math.h>
11259 #ifdef HAVE_IEEEFP_H
11260 #include <ieeefp.h>
11261 #endif
11263 int main() {
11264 _finite(0);
11265 ; return 0; }
11267 if { (eval echo configure:11268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11268 rm -rf conftest*
11269 glibcpp_cv_func__finite_use=yes
11270 else
11271 echo "configure: failed program was:" >&5
11272 cat conftest.$ac_ext >&5
11273 rm -rf conftest*
11274 glibcpp_cv_func__finite_use=no
11276 rm -f conftest*
11277 ac_ext=c
11278 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11279 ac_cpp='$CPP $CPPFLAGS'
11280 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11281 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11282 cross_compiling=$ac_cv_prog_cc_cross
11288 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11290 if test x$glibcpp_cv_func__finite_use = x"yes"; then
11291 for ac_func in _finite
11293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11294 echo "configure:11295: checking for $ac_func" >&5
11295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11296 echo $ac_n "(cached) $ac_c" 1>&6
11297 else
11298 cat > conftest.$ac_ext <<EOF
11299 #line 11300 "configure"
11300 #include "confdefs.h"
11301 /* System header to define __stub macros and hopefully few prototypes,
11302 which can conflict with char $ac_func(); below. */
11303 #include <assert.h>
11304 /* Override any gcc2 internal prototype to avoid an error. */
11305 /* We use char because int might match the return type of a gcc2
11306 builtin and then its argument prototype would still apply. */
11307 char $ac_func();
11309 int main() {
11311 /* The GNU C library defines this for functions which it implements
11312 to always fail with ENOSYS. Some functions are actually named
11313 something starting with __ and the normal name is an alias. */
11314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11315 choke me
11316 #else
11317 $ac_func();
11318 #endif
11320 ; return 0; }
11322 if { (eval echo configure:11323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11323 rm -rf conftest*
11324 eval "ac_cv_func_$ac_func=yes"
11325 else
11326 echo "configure: failed program was:" >&5
11327 cat conftest.$ac_ext >&5
11328 rm -rf conftest*
11329 eval "ac_cv_func_$ac_func=no"
11331 rm -f conftest*
11334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11335 echo "$ac_t""yes" 1>&6
11336 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11337 cat >> confdefs.h <<EOF
11338 #define $ac_tr_func 1
11341 else
11342 echo "$ac_t""no" 1>&6
11344 done
11351 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11352 echo "configure:11353: checking for copysign declaration" >&5
11353 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11354 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11355 echo $ac_n "(cached) $ac_c" 1>&6
11356 else
11359 ac_ext=C
11360 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11361 ac_cpp='$CXXCPP $CPPFLAGS'
11362 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11363 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11364 cross_compiling=$ac_cv_prog_cxx_cross
11366 cat > conftest.$ac_ext <<EOF
11367 #line 11368 "configure"
11368 #include "confdefs.h"
11369 #include <math.h>
11370 int main() {
11371 copysign(0, 0);
11372 ; return 0; }
11374 if { (eval echo configure:11375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11375 rm -rf conftest*
11376 glibcpp_cv_func_copysign_use=yes
11377 else
11378 echo "configure: failed program was:" >&5
11379 cat conftest.$ac_ext >&5
11380 rm -rf conftest*
11381 glibcpp_cv_func_copysign_use=no
11383 rm -f conftest*
11384 ac_ext=c
11385 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11386 ac_cpp='$CPP $CPPFLAGS'
11387 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11388 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11389 cross_compiling=$ac_cv_prog_cc_cross
11395 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11397 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11398 for ac_func in copysign
11400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11401 echo "configure:11402: checking for $ac_func" >&5
11402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11403 echo $ac_n "(cached) $ac_c" 1>&6
11404 else
11405 cat > conftest.$ac_ext <<EOF
11406 #line 11407 "configure"
11407 #include "confdefs.h"
11408 /* System header to define __stub macros and hopefully few prototypes,
11409 which can conflict with char $ac_func(); below. */
11410 #include <assert.h>
11411 /* Override any gcc2 internal prototype to avoid an error. */
11412 /* We use char because int might match the return type of a gcc2
11413 builtin and then its argument prototype would still apply. */
11414 char $ac_func();
11416 int main() {
11418 /* The GNU C library defines this for functions which it implements
11419 to always fail with ENOSYS. Some functions are actually named
11420 something starting with __ and the normal name is an alias. */
11421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11422 choke me
11423 #else
11424 $ac_func();
11425 #endif
11427 ; return 0; }
11429 if { (eval echo configure:11430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11430 rm -rf conftest*
11431 eval "ac_cv_func_$ac_func=yes"
11432 else
11433 echo "configure: failed program was:" >&5
11434 cat conftest.$ac_ext >&5
11435 rm -rf conftest*
11436 eval "ac_cv_func_$ac_func=no"
11438 rm -f conftest*
11441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11442 echo "$ac_t""yes" 1>&6
11443 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11444 cat >> confdefs.h <<EOF
11445 #define $ac_tr_func 1
11448 else
11449 echo "$ac_t""no" 1>&6
11451 done
11453 else
11455 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11456 echo "configure:11457: checking for _copysign declaration" >&5
11457 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11458 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11459 echo $ac_n "(cached) $ac_c" 1>&6
11460 else
11463 ac_ext=C
11464 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11465 ac_cpp='$CXXCPP $CPPFLAGS'
11466 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11467 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11468 cross_compiling=$ac_cv_prog_cxx_cross
11470 cat > conftest.$ac_ext <<EOF
11471 #line 11472 "configure"
11472 #include "confdefs.h"
11473 #include <math.h>
11474 int main() {
11475 _copysign(0, 0);
11476 ; return 0; }
11478 if { (eval echo configure:11479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11479 rm -rf conftest*
11480 glibcpp_cv_func__copysign_use=yes
11481 else
11482 echo "configure: failed program was:" >&5
11483 cat conftest.$ac_ext >&5
11484 rm -rf conftest*
11485 glibcpp_cv_func__copysign_use=no
11487 rm -f conftest*
11488 ac_ext=c
11489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11490 ac_cpp='$CPP $CPPFLAGS'
11491 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11492 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11493 cross_compiling=$ac_cv_prog_cc_cross
11499 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11501 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11502 for ac_func in _copysign
11504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11505 echo "configure:11506: checking for $ac_func" >&5
11506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11507 echo $ac_n "(cached) $ac_c" 1>&6
11508 else
11509 cat > conftest.$ac_ext <<EOF
11510 #line 11511 "configure"
11511 #include "confdefs.h"
11512 /* System header to define __stub macros and hopefully few prototypes,
11513 which can conflict with char $ac_func(); below. */
11514 #include <assert.h>
11515 /* Override any gcc2 internal prototype to avoid an error. */
11516 /* We use char because int might match the return type of a gcc2
11517 builtin and then its argument prototype would still apply. */
11518 char $ac_func();
11520 int main() {
11522 /* The GNU C library defines this for functions which it implements
11523 to always fail with ENOSYS. Some functions are actually named
11524 something starting with __ and the normal name is an alias. */
11525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11526 choke me
11527 #else
11528 $ac_func();
11529 #endif
11531 ; return 0; }
11533 if { (eval echo configure:11534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11534 rm -rf conftest*
11535 eval "ac_cv_func_$ac_func=yes"
11536 else
11537 echo "configure: failed program was:" >&5
11538 cat conftest.$ac_ext >&5
11539 rm -rf conftest*
11540 eval "ac_cv_func_$ac_func=no"
11542 rm -f conftest*
11545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11546 echo "$ac_t""yes" 1>&6
11547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11548 cat >> confdefs.h <<EOF
11549 #define $ac_tr_func 1
11552 else
11553 echo "$ac_t""no" 1>&6
11555 done
11562 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11563 echo "configure:11564: checking for sincos declaration" >&5
11564 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11565 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11566 echo $ac_n "(cached) $ac_c" 1>&6
11567 else
11570 ac_ext=C
11571 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11572 ac_cpp='$CXXCPP $CPPFLAGS'
11573 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11574 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11575 cross_compiling=$ac_cv_prog_cxx_cross
11577 cat > conftest.$ac_ext <<EOF
11578 #line 11579 "configure"
11579 #include "confdefs.h"
11580 #include <math.h>
11581 int main() {
11582 sincos(0, 0, 0);
11583 ; return 0; }
11585 if { (eval echo configure:11586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11586 rm -rf conftest*
11587 glibcpp_cv_func_sincos_use=yes
11588 else
11589 echo "configure: failed program was:" >&5
11590 cat conftest.$ac_ext >&5
11591 rm -rf conftest*
11592 glibcpp_cv_func_sincos_use=no
11594 rm -f conftest*
11595 ac_ext=c
11596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11597 ac_cpp='$CPP $CPPFLAGS'
11598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11600 cross_compiling=$ac_cv_prog_cc_cross
11606 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11608 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11609 for ac_func in sincos
11611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11612 echo "configure:11613: checking for $ac_func" >&5
11613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11614 echo $ac_n "(cached) $ac_c" 1>&6
11615 else
11616 cat > conftest.$ac_ext <<EOF
11617 #line 11618 "configure"
11618 #include "confdefs.h"
11619 /* System header to define __stub macros and hopefully few prototypes,
11620 which can conflict with char $ac_func(); below. */
11621 #include <assert.h>
11622 /* Override any gcc2 internal prototype to avoid an error. */
11623 /* We use char because int might match the return type of a gcc2
11624 builtin and then its argument prototype would still apply. */
11625 char $ac_func();
11627 int main() {
11629 /* The GNU C library defines this for functions which it implements
11630 to always fail with ENOSYS. Some functions are actually named
11631 something starting with __ and the normal name is an alias. */
11632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11633 choke me
11634 #else
11635 $ac_func();
11636 #endif
11638 ; return 0; }
11640 if { (eval echo configure:11641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11641 rm -rf conftest*
11642 eval "ac_cv_func_$ac_func=yes"
11643 else
11644 echo "configure: failed program was:" >&5
11645 cat conftest.$ac_ext >&5
11646 rm -rf conftest*
11647 eval "ac_cv_func_$ac_func=no"
11649 rm -f conftest*
11652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11653 echo "$ac_t""yes" 1>&6
11654 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11655 cat >> confdefs.h <<EOF
11656 #define $ac_tr_func 1
11659 else
11660 echo "$ac_t""no" 1>&6
11662 done
11664 else
11666 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11667 echo "configure:11668: checking for _sincos declaration" >&5
11668 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11669 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11670 echo $ac_n "(cached) $ac_c" 1>&6
11671 else
11674 ac_ext=C
11675 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11676 ac_cpp='$CXXCPP $CPPFLAGS'
11677 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11678 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11679 cross_compiling=$ac_cv_prog_cxx_cross
11681 cat > conftest.$ac_ext <<EOF
11682 #line 11683 "configure"
11683 #include "confdefs.h"
11684 #include <math.h>
11685 int main() {
11686 _sincos(0, 0, 0);
11687 ; return 0; }
11689 if { (eval echo configure:11690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11690 rm -rf conftest*
11691 glibcpp_cv_func__sincos_use=yes
11692 else
11693 echo "configure: failed program was:" >&5
11694 cat conftest.$ac_ext >&5
11695 rm -rf conftest*
11696 glibcpp_cv_func__sincos_use=no
11698 rm -f conftest*
11699 ac_ext=c
11700 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11701 ac_cpp='$CPP $CPPFLAGS'
11702 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11703 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11704 cross_compiling=$ac_cv_prog_cc_cross
11710 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11712 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11713 for ac_func in _sincos
11715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11716 echo "configure:11717: checking for $ac_func" >&5
11717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11718 echo $ac_n "(cached) $ac_c" 1>&6
11719 else
11720 cat > conftest.$ac_ext <<EOF
11721 #line 11722 "configure"
11722 #include "confdefs.h"
11723 /* System header to define __stub macros and hopefully few prototypes,
11724 which can conflict with char $ac_func(); below. */
11725 #include <assert.h>
11726 /* Override any gcc2 internal prototype to avoid an error. */
11727 /* We use char because int might match the return type of a gcc2
11728 builtin and then its argument prototype would still apply. */
11729 char $ac_func();
11731 int main() {
11733 /* The GNU C library defines this for functions which it implements
11734 to always fail with ENOSYS. Some functions are actually named
11735 something starting with __ and the normal name is an alias. */
11736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11737 choke me
11738 #else
11739 $ac_func();
11740 #endif
11742 ; return 0; }
11744 if { (eval echo configure:11745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11745 rm -rf conftest*
11746 eval "ac_cv_func_$ac_func=yes"
11747 else
11748 echo "configure: failed program was:" >&5
11749 cat conftest.$ac_ext >&5
11750 rm -rf conftest*
11751 eval "ac_cv_func_$ac_func=no"
11753 rm -f conftest*
11756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11757 echo "$ac_t""yes" 1>&6
11758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11759 cat >> confdefs.h <<EOF
11760 #define $ac_tr_func 1
11763 else
11764 echo "$ac_t""no" 1>&6
11766 done
11773 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11774 echo "configure:11775: checking for fpclass declaration" >&5
11775 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11776 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11777 echo $ac_n "(cached) $ac_c" 1>&6
11778 else
11781 ac_ext=C
11782 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11783 ac_cpp='$CXXCPP $CPPFLAGS'
11784 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11785 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11786 cross_compiling=$ac_cv_prog_cxx_cross
11788 cat > conftest.$ac_ext <<EOF
11789 #line 11790 "configure"
11790 #include "confdefs.h"
11791 #include <math.h>
11792 #ifdef HAVE_IEEEFP_H
11793 #include <ieeefp.h>
11794 #endif
11796 int main() {
11797 fpclass(0);
11798 ; return 0; }
11800 if { (eval echo configure:11801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11801 rm -rf conftest*
11802 glibcpp_cv_func_fpclass_use=yes
11803 else
11804 echo "configure: failed program was:" >&5
11805 cat conftest.$ac_ext >&5
11806 rm -rf conftest*
11807 glibcpp_cv_func_fpclass_use=no
11809 rm -f conftest*
11810 ac_ext=c
11811 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11812 ac_cpp='$CPP $CPPFLAGS'
11813 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11814 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11815 cross_compiling=$ac_cv_prog_cc_cross
11821 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11823 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11824 for ac_func in fpclass
11826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11827 echo "configure:11828: checking for $ac_func" >&5
11828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11829 echo $ac_n "(cached) $ac_c" 1>&6
11830 else
11831 cat > conftest.$ac_ext <<EOF
11832 #line 11833 "configure"
11833 #include "confdefs.h"
11834 /* System header to define __stub macros and hopefully few prototypes,
11835 which can conflict with char $ac_func(); below. */
11836 #include <assert.h>
11837 /* Override any gcc2 internal prototype to avoid an error. */
11838 /* We use char because int might match the return type of a gcc2
11839 builtin and then its argument prototype would still apply. */
11840 char $ac_func();
11842 int main() {
11844 /* The GNU C library defines this for functions which it implements
11845 to always fail with ENOSYS. Some functions are actually named
11846 something starting with __ and the normal name is an alias. */
11847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11848 choke me
11849 #else
11850 $ac_func();
11851 #endif
11853 ; return 0; }
11855 if { (eval echo configure:11856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11856 rm -rf conftest*
11857 eval "ac_cv_func_$ac_func=yes"
11858 else
11859 echo "configure: failed program was:" >&5
11860 cat conftest.$ac_ext >&5
11861 rm -rf conftest*
11862 eval "ac_cv_func_$ac_func=no"
11864 rm -f conftest*
11867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11868 echo "$ac_t""yes" 1>&6
11869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11870 cat >> confdefs.h <<EOF
11871 #define $ac_tr_func 1
11874 else
11875 echo "$ac_t""no" 1>&6
11877 done
11879 else
11881 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11882 echo "configure:11883: checking for _fpclass declaration" >&5
11883 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11884 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11885 echo $ac_n "(cached) $ac_c" 1>&6
11886 else
11889 ac_ext=C
11890 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11891 ac_cpp='$CXXCPP $CPPFLAGS'
11892 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11893 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11894 cross_compiling=$ac_cv_prog_cxx_cross
11896 cat > conftest.$ac_ext <<EOF
11897 #line 11898 "configure"
11898 #include "confdefs.h"
11899 #include <math.h>
11900 #ifdef HAVE_IEEEFP_H
11901 #include <ieeefp.h>
11902 #endif
11904 int main() {
11905 _fpclass(0);
11906 ; return 0; }
11908 if { (eval echo configure:11909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11909 rm -rf conftest*
11910 glibcpp_cv_func__fpclass_use=yes
11911 else
11912 echo "configure: failed program was:" >&5
11913 cat conftest.$ac_ext >&5
11914 rm -rf conftest*
11915 glibcpp_cv_func__fpclass_use=no
11917 rm -f conftest*
11918 ac_ext=c
11919 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11920 ac_cpp='$CPP $CPPFLAGS'
11921 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11922 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11923 cross_compiling=$ac_cv_prog_cc_cross
11929 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11931 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11932 for ac_func in _fpclass
11934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11935 echo "configure:11936: checking for $ac_func" >&5
11936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11937 echo $ac_n "(cached) $ac_c" 1>&6
11938 else
11939 cat > conftest.$ac_ext <<EOF
11940 #line 11941 "configure"
11941 #include "confdefs.h"
11942 /* System header to define __stub macros and hopefully few prototypes,
11943 which can conflict with char $ac_func(); below. */
11944 #include <assert.h>
11945 /* Override any gcc2 internal prototype to avoid an error. */
11946 /* We use char because int might match the return type of a gcc2
11947 builtin and then its argument prototype would still apply. */
11948 char $ac_func();
11950 int main() {
11952 /* The GNU C library defines this for functions which it implements
11953 to always fail with ENOSYS. Some functions are actually named
11954 something starting with __ and the normal name is an alias. */
11955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11956 choke me
11957 #else
11958 $ac_func();
11959 #endif
11961 ; return 0; }
11963 if { (eval echo configure:11964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11964 rm -rf conftest*
11965 eval "ac_cv_func_$ac_func=yes"
11966 else
11967 echo "configure: failed program was:" >&5
11968 cat conftest.$ac_ext >&5
11969 rm -rf conftest*
11970 eval "ac_cv_func_$ac_func=no"
11972 rm -f conftest*
11975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11976 echo "$ac_t""yes" 1>&6
11977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11978 cat >> confdefs.h <<EOF
11979 #define $ac_tr_func 1
11982 else
11983 echo "$ac_t""no" 1>&6
11985 done
11992 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
11993 echo "configure:11994: checking for qfpclass declaration" >&5
11994 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
11995 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
11996 echo $ac_n "(cached) $ac_c" 1>&6
11997 else
12000 ac_ext=C
12001 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12002 ac_cpp='$CXXCPP $CPPFLAGS'
12003 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12004 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12005 cross_compiling=$ac_cv_prog_cxx_cross
12007 cat > conftest.$ac_ext <<EOF
12008 #line 12009 "configure"
12009 #include "confdefs.h"
12010 #include <math.h>
12011 #ifdef HAVE_IEEEFP_H
12012 #include <ieeefp.h>
12013 #endif
12015 int main() {
12016 qfpclass(0);
12017 ; return 0; }
12019 if { (eval echo configure:12020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12020 rm -rf conftest*
12021 glibcpp_cv_func_qfpclass_use=yes
12022 else
12023 echo "configure: failed program was:" >&5
12024 cat conftest.$ac_ext >&5
12025 rm -rf conftest*
12026 glibcpp_cv_func_qfpclass_use=no
12028 rm -f conftest*
12029 ac_ext=c
12030 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12031 ac_cpp='$CPP $CPPFLAGS'
12032 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12033 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12034 cross_compiling=$ac_cv_prog_cc_cross
12040 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12042 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12043 for ac_func in qfpclass
12045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12046 echo "configure:12047: checking for $ac_func" >&5
12047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12048 echo $ac_n "(cached) $ac_c" 1>&6
12049 else
12050 cat > conftest.$ac_ext <<EOF
12051 #line 12052 "configure"
12052 #include "confdefs.h"
12053 /* System header to define __stub macros and hopefully few prototypes,
12054 which can conflict with char $ac_func(); below. */
12055 #include <assert.h>
12056 /* Override any gcc2 internal prototype to avoid an error. */
12057 /* We use char because int might match the return type of a gcc2
12058 builtin and then its argument prototype would still apply. */
12059 char $ac_func();
12061 int main() {
12063 /* The GNU C library defines this for functions which it implements
12064 to always fail with ENOSYS. Some functions are actually named
12065 something starting with __ and the normal name is an alias. */
12066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12067 choke me
12068 #else
12069 $ac_func();
12070 #endif
12072 ; return 0; }
12074 if { (eval echo configure:12075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12075 rm -rf conftest*
12076 eval "ac_cv_func_$ac_func=yes"
12077 else
12078 echo "configure: failed program was:" >&5
12079 cat conftest.$ac_ext >&5
12080 rm -rf conftest*
12081 eval "ac_cv_func_$ac_func=no"
12083 rm -f conftest*
12086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12087 echo "$ac_t""yes" 1>&6
12088 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12089 cat >> confdefs.h <<EOF
12090 #define $ac_tr_func 1
12093 else
12094 echo "$ac_t""no" 1>&6
12096 done
12098 else
12100 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12101 echo "configure:12102: checking for _qfpclass declaration" >&5
12102 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12103 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12104 echo $ac_n "(cached) $ac_c" 1>&6
12105 else
12108 ac_ext=C
12109 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12110 ac_cpp='$CXXCPP $CPPFLAGS'
12111 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12112 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12113 cross_compiling=$ac_cv_prog_cxx_cross
12115 cat > conftest.$ac_ext <<EOF
12116 #line 12117 "configure"
12117 #include "confdefs.h"
12118 #include <math.h>
12119 #ifdef HAVE_IEEEFP_H
12120 #include <ieeefp.h>
12121 #endif
12123 int main() {
12124 _qfpclass(0);
12125 ; return 0; }
12127 if { (eval echo configure:12128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12128 rm -rf conftest*
12129 glibcpp_cv_func__qfpclass_use=yes
12130 else
12131 echo "configure: failed program was:" >&5
12132 cat conftest.$ac_ext >&5
12133 rm -rf conftest*
12134 glibcpp_cv_func__qfpclass_use=no
12136 rm -f conftest*
12137 ac_ext=c
12138 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12139 ac_cpp='$CPP $CPPFLAGS'
12140 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12141 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12142 cross_compiling=$ac_cv_prog_cc_cross
12148 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12150 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12151 for ac_func in _qfpclass
12153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12154 echo "configure:12155: checking for $ac_func" >&5
12155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12156 echo $ac_n "(cached) $ac_c" 1>&6
12157 else
12158 cat > conftest.$ac_ext <<EOF
12159 #line 12160 "configure"
12160 #include "confdefs.h"
12161 /* System header to define __stub macros and hopefully few prototypes,
12162 which can conflict with char $ac_func(); below. */
12163 #include <assert.h>
12164 /* Override any gcc2 internal prototype to avoid an error. */
12165 /* We use char because int might match the return type of a gcc2
12166 builtin and then its argument prototype would still apply. */
12167 char $ac_func();
12169 int main() {
12171 /* The GNU C library defines this for functions which it implements
12172 to always fail with ENOSYS. Some functions are actually named
12173 something starting with __ and the normal name is an alias. */
12174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12175 choke me
12176 #else
12177 $ac_func();
12178 #endif
12180 ; return 0; }
12182 if { (eval echo configure:12183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12183 rm -rf conftest*
12184 eval "ac_cv_func_$ac_func=yes"
12185 else
12186 echo "configure: failed program was:" >&5
12187 cat conftest.$ac_ext >&5
12188 rm -rf conftest*
12189 eval "ac_cv_func_$ac_func=no"
12191 rm -f conftest*
12194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12195 echo "$ac_t""yes" 1>&6
12196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12197 cat >> confdefs.h <<EOF
12198 #define $ac_tr_func 1
12201 else
12202 echo "$ac_t""no" 1>&6
12204 done
12211 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12212 echo "configure:12213: checking for hypot declaration" >&5
12213 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12214 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12215 echo $ac_n "(cached) $ac_c" 1>&6
12216 else
12219 ac_ext=C
12220 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12221 ac_cpp='$CXXCPP $CPPFLAGS'
12222 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12223 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12224 cross_compiling=$ac_cv_prog_cxx_cross
12226 cat > conftest.$ac_ext <<EOF
12227 #line 12228 "configure"
12228 #include "confdefs.h"
12229 #include <math.h>
12230 int main() {
12231 hypot(0, 0);
12232 ; return 0; }
12234 if { (eval echo configure:12235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12235 rm -rf conftest*
12236 glibcpp_cv_func_hypot_use=yes
12237 else
12238 echo "configure: failed program was:" >&5
12239 cat conftest.$ac_ext >&5
12240 rm -rf conftest*
12241 glibcpp_cv_func_hypot_use=no
12243 rm -f conftest*
12244 ac_ext=c
12245 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12246 ac_cpp='$CPP $CPPFLAGS'
12247 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12248 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12249 cross_compiling=$ac_cv_prog_cc_cross
12255 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12257 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12258 for ac_func in hypot
12260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12261 echo "configure:12262: checking for $ac_func" >&5
12262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12263 echo $ac_n "(cached) $ac_c" 1>&6
12264 else
12265 cat > conftest.$ac_ext <<EOF
12266 #line 12267 "configure"
12267 #include "confdefs.h"
12268 /* System header to define __stub macros and hopefully few prototypes,
12269 which can conflict with char $ac_func(); below. */
12270 #include <assert.h>
12271 /* Override any gcc2 internal prototype to avoid an error. */
12272 /* We use char because int might match the return type of a gcc2
12273 builtin and then its argument prototype would still apply. */
12274 char $ac_func();
12276 int main() {
12278 /* The GNU C library defines this for functions which it implements
12279 to always fail with ENOSYS. Some functions are actually named
12280 something starting with __ and the normal name is an alias. */
12281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12282 choke me
12283 #else
12284 $ac_func();
12285 #endif
12287 ; return 0; }
12289 if { (eval echo configure:12290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12290 rm -rf conftest*
12291 eval "ac_cv_func_$ac_func=yes"
12292 else
12293 echo "configure: failed program was:" >&5
12294 cat conftest.$ac_ext >&5
12295 rm -rf conftest*
12296 eval "ac_cv_func_$ac_func=no"
12298 rm -f conftest*
12301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12302 echo "$ac_t""yes" 1>&6
12303 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12304 cat >> confdefs.h <<EOF
12305 #define $ac_tr_func 1
12308 else
12309 echo "$ac_t""no" 1>&6
12311 done
12313 else
12315 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12316 echo "configure:12317: checking for _hypot declaration" >&5
12317 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12318 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12319 echo $ac_n "(cached) $ac_c" 1>&6
12320 else
12323 ac_ext=C
12324 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12325 ac_cpp='$CXXCPP $CPPFLAGS'
12326 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12327 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12328 cross_compiling=$ac_cv_prog_cxx_cross
12330 cat > conftest.$ac_ext <<EOF
12331 #line 12332 "configure"
12332 #include "confdefs.h"
12333 #include <math.h>
12334 int main() {
12335 _hypot(0, 0);
12336 ; return 0; }
12338 if { (eval echo configure:12339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12339 rm -rf conftest*
12340 glibcpp_cv_func__hypot_use=yes
12341 else
12342 echo "configure: failed program was:" >&5
12343 cat conftest.$ac_ext >&5
12344 rm -rf conftest*
12345 glibcpp_cv_func__hypot_use=no
12347 rm -f conftest*
12348 ac_ext=c
12349 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12350 ac_cpp='$CPP $CPPFLAGS'
12351 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12352 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12353 cross_compiling=$ac_cv_prog_cc_cross
12359 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12361 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12362 for ac_func in _hypot
12364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12365 echo "configure:12366: checking for $ac_func" >&5
12366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12367 echo $ac_n "(cached) $ac_c" 1>&6
12368 else
12369 cat > conftest.$ac_ext <<EOF
12370 #line 12371 "configure"
12371 #include "confdefs.h"
12372 /* System header to define __stub macros and hopefully few prototypes,
12373 which can conflict with char $ac_func(); below. */
12374 #include <assert.h>
12375 /* Override any gcc2 internal prototype to avoid an error. */
12376 /* We use char because int might match the return type of a gcc2
12377 builtin and then its argument prototype would still apply. */
12378 char $ac_func();
12380 int main() {
12382 /* The GNU C library defines this for functions which it implements
12383 to always fail with ENOSYS. Some functions are actually named
12384 something starting with __ and the normal name is an alias. */
12385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12386 choke me
12387 #else
12388 $ac_func();
12389 #endif
12391 ; return 0; }
12393 if { (eval echo configure:12394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12394 rm -rf conftest*
12395 eval "ac_cv_func_$ac_func=yes"
12396 else
12397 echo "configure: failed program was:" >&5
12398 cat conftest.$ac_ext >&5
12399 rm -rf conftest*
12400 eval "ac_cv_func_$ac_func=no"
12402 rm -f conftest*
12405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12406 echo "$ac_t""yes" 1>&6
12407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12408 cat >> confdefs.h <<EOF
12409 #define $ac_tr_func 1
12412 else
12413 echo "$ac_t""no" 1>&6
12415 done
12422 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12423 echo "configure:12424: checking for float trig functions" >&5
12424 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12425 echo $ac_n "(cached) $ac_c" 1>&6
12426 else
12429 ac_ext=C
12430 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12431 ac_cpp='$CXXCPP $CPPFLAGS'
12432 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12433 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12434 cross_compiling=$ac_cv_prog_cxx_cross
12436 cat > conftest.$ac_ext <<EOF
12437 #line 12438 "configure"
12438 #include "confdefs.h"
12439 #include <math.h>
12440 int main() {
12441 `for x in acosf asinf atanf \
12442 cosf sinf tanf \
12443 coshf sinhf tanhf; do echo "$x (0);"; done`
12444 ; return 0; }
12446 if { (eval echo configure:12447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12447 rm -rf conftest*
12448 glibcpp_cv_func_float_trig_use=yes
12449 else
12450 echo "configure: failed program was:" >&5
12451 cat conftest.$ac_ext >&5
12452 rm -rf conftest*
12453 glibcpp_cv_func_float_trig_use=no
12455 rm -f conftest*
12456 ac_ext=c
12457 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12458 ac_cpp='$CPP $CPPFLAGS'
12459 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12460 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12461 cross_compiling=$ac_cv_prog_cc_cross
12465 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12466 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12467 for ac_func in acosf asinf atanf \
12468 cosf sinf tanf \
12469 coshf sinhf tanhf
12471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12472 echo "configure:12473: checking for $ac_func" >&5
12473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12474 echo $ac_n "(cached) $ac_c" 1>&6
12475 else
12476 cat > conftest.$ac_ext <<EOF
12477 #line 12478 "configure"
12478 #include "confdefs.h"
12479 /* System header to define __stub macros and hopefully few prototypes,
12480 which can conflict with char $ac_func(); below. */
12481 #include <assert.h>
12482 /* Override any gcc2 internal prototype to avoid an error. */
12483 /* We use char because int might match the return type of a gcc2
12484 builtin and then its argument prototype would still apply. */
12485 char $ac_func();
12487 int main() {
12489 /* The GNU C library defines this for functions which it implements
12490 to always fail with ENOSYS. Some functions are actually named
12491 something starting with __ and the normal name is an alias. */
12492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12493 choke me
12494 #else
12495 $ac_func();
12496 #endif
12498 ; return 0; }
12500 if { (eval echo configure:12501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12501 rm -rf conftest*
12502 eval "ac_cv_func_$ac_func=yes"
12503 else
12504 echo "configure: failed program was:" >&5
12505 cat conftest.$ac_ext >&5
12506 rm -rf conftest*
12507 eval "ac_cv_func_$ac_func=no"
12509 rm -f conftest*
12512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12513 echo "$ac_t""yes" 1>&6
12514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12515 cat >> confdefs.h <<EOF
12516 #define $ac_tr_func 1
12519 else
12520 echo "$ac_t""no" 1>&6
12522 done
12527 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12528 echo "configure:12529: checking for float round functions" >&5
12529 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12530 echo $ac_n "(cached) $ac_c" 1>&6
12531 else
12534 ac_ext=C
12535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12536 ac_cpp='$CXXCPP $CPPFLAGS'
12537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12539 cross_compiling=$ac_cv_prog_cxx_cross
12541 cat > conftest.$ac_ext <<EOF
12542 #line 12543 "configure"
12543 #include "confdefs.h"
12544 #include <math.h>
12545 int main() {
12546 `for x in ceilf floorf; do echo "$x (0);"; done`
12547 ; return 0; }
12549 if { (eval echo configure:12550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12550 rm -rf conftest*
12551 glibcpp_cv_func_float_round_use=yes
12552 else
12553 echo "configure: failed program was:" >&5
12554 cat conftest.$ac_ext >&5
12555 rm -rf conftest*
12556 glibcpp_cv_func_float_round_use=no
12558 rm -f conftest*
12559 ac_ext=c
12560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12561 ac_cpp='$CPP $CPPFLAGS'
12562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12564 cross_compiling=$ac_cv_prog_cc_cross
12568 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12569 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12570 for ac_func in ceilf floorf
12572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12573 echo "configure:12574: checking for $ac_func" >&5
12574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12575 echo $ac_n "(cached) $ac_c" 1>&6
12576 else
12577 cat > conftest.$ac_ext <<EOF
12578 #line 12579 "configure"
12579 #include "confdefs.h"
12580 /* System header to define __stub macros and hopefully few prototypes,
12581 which can conflict with char $ac_func(); below. */
12582 #include <assert.h>
12583 /* Override any gcc2 internal prototype to avoid an error. */
12584 /* We use char because int might match the return type of a gcc2
12585 builtin and then its argument prototype would still apply. */
12586 char $ac_func();
12588 int main() {
12590 /* The GNU C library defines this for functions which it implements
12591 to always fail with ENOSYS. Some functions are actually named
12592 something starting with __ and the normal name is an alias. */
12593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12594 choke me
12595 #else
12596 $ac_func();
12597 #endif
12599 ; return 0; }
12601 if { (eval echo configure:12602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12602 rm -rf conftest*
12603 eval "ac_cv_func_$ac_func=yes"
12604 else
12605 echo "configure: failed program was:" >&5
12606 cat conftest.$ac_ext >&5
12607 rm -rf conftest*
12608 eval "ac_cv_func_$ac_func=no"
12610 rm -f conftest*
12613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12614 echo "$ac_t""yes" 1>&6
12615 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12616 cat >> confdefs.h <<EOF
12617 #define $ac_tr_func 1
12620 else
12621 echo "$ac_t""no" 1>&6
12623 done
12629 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12630 echo "configure:12631: checking for expf declaration" >&5
12631 if test x${glibcpp_cv_func_expf_use+set} != xset; then
12632 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12633 echo $ac_n "(cached) $ac_c" 1>&6
12634 else
12637 ac_ext=C
12638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12639 ac_cpp='$CXXCPP $CPPFLAGS'
12640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12642 cross_compiling=$ac_cv_prog_cxx_cross
12644 cat > conftest.$ac_ext <<EOF
12645 #line 12646 "configure"
12646 #include "confdefs.h"
12647 #include <math.h>
12648 #ifdef HAVE_IEEEFP_H
12649 #include <ieeefp.h>
12650 #endif
12652 int main() {
12653 expf(0);
12654 ; return 0; }
12656 if { (eval echo configure:12657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12657 rm -rf conftest*
12658 glibcpp_cv_func_expf_use=yes
12659 else
12660 echo "configure: failed program was:" >&5
12661 cat conftest.$ac_ext >&5
12662 rm -rf conftest*
12663 glibcpp_cv_func_expf_use=no
12665 rm -f conftest*
12666 ac_ext=c
12667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12668 ac_cpp='$CPP $CPPFLAGS'
12669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12670 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12671 cross_compiling=$ac_cv_prog_cc_cross
12677 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12679 if test x$glibcpp_cv_func_expf_use = x"yes"; then
12680 for ac_func in expf
12682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12683 echo "configure:12684: checking for $ac_func" >&5
12684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12685 echo $ac_n "(cached) $ac_c" 1>&6
12686 else
12687 cat > conftest.$ac_ext <<EOF
12688 #line 12689 "configure"
12689 #include "confdefs.h"
12690 /* System header to define __stub macros and hopefully few prototypes,
12691 which can conflict with char $ac_func(); below. */
12692 #include <assert.h>
12693 /* Override any gcc2 internal prototype to avoid an error. */
12694 /* We use char because int might match the return type of a gcc2
12695 builtin and then its argument prototype would still apply. */
12696 char $ac_func();
12698 int main() {
12700 /* The GNU C library defines this for functions which it implements
12701 to always fail with ENOSYS. Some functions are actually named
12702 something starting with __ and the normal name is an alias. */
12703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12704 choke me
12705 #else
12706 $ac_func();
12707 #endif
12709 ; return 0; }
12711 if { (eval echo configure:12712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12712 rm -rf conftest*
12713 eval "ac_cv_func_$ac_func=yes"
12714 else
12715 echo "configure: failed program was:" >&5
12716 cat conftest.$ac_ext >&5
12717 rm -rf conftest*
12718 eval "ac_cv_func_$ac_func=no"
12720 rm -f conftest*
12723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12724 echo "$ac_t""yes" 1>&6
12725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12726 cat >> confdefs.h <<EOF
12727 #define $ac_tr_func 1
12730 else
12731 echo "$ac_t""no" 1>&6
12733 done
12735 else
12737 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12738 echo "configure:12739: checking for _expf declaration" >&5
12739 if test x${glibcpp_cv_func__expf_use+set} != xset; then
12740 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12741 echo $ac_n "(cached) $ac_c" 1>&6
12742 else
12745 ac_ext=C
12746 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12747 ac_cpp='$CXXCPP $CPPFLAGS'
12748 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12749 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12750 cross_compiling=$ac_cv_prog_cxx_cross
12752 cat > conftest.$ac_ext <<EOF
12753 #line 12754 "configure"
12754 #include "confdefs.h"
12755 #include <math.h>
12756 #ifdef HAVE_IEEEFP_H
12757 #include <ieeefp.h>
12758 #endif
12760 int main() {
12761 _expf(0);
12762 ; return 0; }
12764 if { (eval echo configure:12765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12765 rm -rf conftest*
12766 glibcpp_cv_func__expf_use=yes
12767 else
12768 echo "configure: failed program was:" >&5
12769 cat conftest.$ac_ext >&5
12770 rm -rf conftest*
12771 glibcpp_cv_func__expf_use=no
12773 rm -f conftest*
12774 ac_ext=c
12775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12776 ac_cpp='$CPP $CPPFLAGS'
12777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12779 cross_compiling=$ac_cv_prog_cc_cross
12785 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12787 if test x$glibcpp_cv_func__expf_use = x"yes"; then
12788 for ac_func in _expf
12790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12791 echo "configure:12792: checking for $ac_func" >&5
12792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12793 echo $ac_n "(cached) $ac_c" 1>&6
12794 else
12795 cat > conftest.$ac_ext <<EOF
12796 #line 12797 "configure"
12797 #include "confdefs.h"
12798 /* System header to define __stub macros and hopefully few prototypes,
12799 which can conflict with char $ac_func(); below. */
12800 #include <assert.h>
12801 /* Override any gcc2 internal prototype to avoid an error. */
12802 /* We use char because int might match the return type of a gcc2
12803 builtin and then its argument prototype would still apply. */
12804 char $ac_func();
12806 int main() {
12808 /* The GNU C library defines this for functions which it implements
12809 to always fail with ENOSYS. Some functions are actually named
12810 something starting with __ and the normal name is an alias. */
12811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12812 choke me
12813 #else
12814 $ac_func();
12815 #endif
12817 ; return 0; }
12819 if { (eval echo configure:12820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12820 rm -rf conftest*
12821 eval "ac_cv_func_$ac_func=yes"
12822 else
12823 echo "configure: failed program was:" >&5
12824 cat conftest.$ac_ext >&5
12825 rm -rf conftest*
12826 eval "ac_cv_func_$ac_func=no"
12828 rm -f conftest*
12831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12832 echo "$ac_t""yes" 1>&6
12833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12834 cat >> confdefs.h <<EOF
12835 #define $ac_tr_func 1
12838 else
12839 echo "$ac_t""no" 1>&6
12841 done
12848 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12849 echo "configure:12850: checking for isnanf declaration" >&5
12850 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12851 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12852 echo $ac_n "(cached) $ac_c" 1>&6
12853 else
12856 ac_ext=C
12857 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12858 ac_cpp='$CXXCPP $CPPFLAGS'
12859 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12860 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12861 cross_compiling=$ac_cv_prog_cxx_cross
12863 cat > conftest.$ac_ext <<EOF
12864 #line 12865 "configure"
12865 #include "confdefs.h"
12866 #include <math.h>
12867 #ifdef HAVE_IEEEFP_H
12868 #include <ieeefp.h>
12869 #endif
12871 int main() {
12872 isnanf(0);
12873 ; return 0; }
12875 if { (eval echo configure:12876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12876 rm -rf conftest*
12877 glibcpp_cv_func_isnanf_use=yes
12878 else
12879 echo "configure: failed program was:" >&5
12880 cat conftest.$ac_ext >&5
12881 rm -rf conftest*
12882 glibcpp_cv_func_isnanf_use=no
12884 rm -f conftest*
12885 ac_ext=c
12886 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12887 ac_cpp='$CPP $CPPFLAGS'
12888 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12889 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12890 cross_compiling=$ac_cv_prog_cc_cross
12896 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12898 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12899 for ac_func in isnanf
12901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12902 echo "configure:12903: checking for $ac_func" >&5
12903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12904 echo $ac_n "(cached) $ac_c" 1>&6
12905 else
12906 cat > conftest.$ac_ext <<EOF
12907 #line 12908 "configure"
12908 #include "confdefs.h"
12909 /* System header to define __stub macros and hopefully few prototypes,
12910 which can conflict with char $ac_func(); below. */
12911 #include <assert.h>
12912 /* Override any gcc2 internal prototype to avoid an error. */
12913 /* We use char because int might match the return type of a gcc2
12914 builtin and then its argument prototype would still apply. */
12915 char $ac_func();
12917 int main() {
12919 /* The GNU C library defines this for functions which it implements
12920 to always fail with ENOSYS. Some functions are actually named
12921 something starting with __ and the normal name is an alias. */
12922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12923 choke me
12924 #else
12925 $ac_func();
12926 #endif
12928 ; return 0; }
12930 if { (eval echo configure:12931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12931 rm -rf conftest*
12932 eval "ac_cv_func_$ac_func=yes"
12933 else
12934 echo "configure: failed program was:" >&5
12935 cat conftest.$ac_ext >&5
12936 rm -rf conftest*
12937 eval "ac_cv_func_$ac_func=no"
12939 rm -f conftest*
12942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12943 echo "$ac_t""yes" 1>&6
12944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12945 cat >> confdefs.h <<EOF
12946 #define $ac_tr_func 1
12949 else
12950 echo "$ac_t""no" 1>&6
12952 done
12954 else
12956 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12957 echo "configure:12958: checking for _isnanf declaration" >&5
12958 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12959 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12960 echo $ac_n "(cached) $ac_c" 1>&6
12961 else
12964 ac_ext=C
12965 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12966 ac_cpp='$CXXCPP $CPPFLAGS'
12967 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12968 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12969 cross_compiling=$ac_cv_prog_cxx_cross
12971 cat > conftest.$ac_ext <<EOF
12972 #line 12973 "configure"
12973 #include "confdefs.h"
12974 #include <math.h>
12975 #ifdef HAVE_IEEEFP_H
12976 #include <ieeefp.h>
12977 #endif
12979 int main() {
12980 _isnanf(0);
12981 ; return 0; }
12983 if { (eval echo configure:12984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12984 rm -rf conftest*
12985 glibcpp_cv_func__isnanf_use=yes
12986 else
12987 echo "configure: failed program was:" >&5
12988 cat conftest.$ac_ext >&5
12989 rm -rf conftest*
12990 glibcpp_cv_func__isnanf_use=no
12992 rm -f conftest*
12993 ac_ext=c
12994 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12995 ac_cpp='$CPP $CPPFLAGS'
12996 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12997 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12998 cross_compiling=$ac_cv_prog_cc_cross
13004 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13006 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13007 for ac_func in _isnanf
13009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13010 echo "configure:13011: checking for $ac_func" >&5
13011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13012 echo $ac_n "(cached) $ac_c" 1>&6
13013 else
13014 cat > conftest.$ac_ext <<EOF
13015 #line 13016 "configure"
13016 #include "confdefs.h"
13017 /* System header to define __stub macros and hopefully few prototypes,
13018 which can conflict with char $ac_func(); below. */
13019 #include <assert.h>
13020 /* Override any gcc2 internal prototype to avoid an error. */
13021 /* We use char because int might match the return type of a gcc2
13022 builtin and then its argument prototype would still apply. */
13023 char $ac_func();
13025 int main() {
13027 /* The GNU C library defines this for functions which it implements
13028 to always fail with ENOSYS. Some functions are actually named
13029 something starting with __ and the normal name is an alias. */
13030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13031 choke me
13032 #else
13033 $ac_func();
13034 #endif
13036 ; return 0; }
13038 if { (eval echo configure:13039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13039 rm -rf conftest*
13040 eval "ac_cv_func_$ac_func=yes"
13041 else
13042 echo "configure: failed program was:" >&5
13043 cat conftest.$ac_ext >&5
13044 rm -rf conftest*
13045 eval "ac_cv_func_$ac_func=no"
13047 rm -f conftest*
13050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13051 echo "$ac_t""yes" 1>&6
13052 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13053 cat >> confdefs.h <<EOF
13054 #define $ac_tr_func 1
13057 else
13058 echo "$ac_t""no" 1>&6
13060 done
13067 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13068 echo "configure:13069: checking for isinff declaration" >&5
13069 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13070 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13071 echo $ac_n "(cached) $ac_c" 1>&6
13072 else
13075 ac_ext=C
13076 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13077 ac_cpp='$CXXCPP $CPPFLAGS'
13078 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13079 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13080 cross_compiling=$ac_cv_prog_cxx_cross
13082 cat > conftest.$ac_ext <<EOF
13083 #line 13084 "configure"
13084 #include "confdefs.h"
13085 #include <math.h>
13086 #ifdef HAVE_IEEEFP_H
13087 #include <ieeefp.h>
13088 #endif
13090 int main() {
13091 isinff(0);
13092 ; return 0; }
13094 if { (eval echo configure:13095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13095 rm -rf conftest*
13096 glibcpp_cv_func_isinff_use=yes
13097 else
13098 echo "configure: failed program was:" >&5
13099 cat conftest.$ac_ext >&5
13100 rm -rf conftest*
13101 glibcpp_cv_func_isinff_use=no
13103 rm -f conftest*
13104 ac_ext=c
13105 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13106 ac_cpp='$CPP $CPPFLAGS'
13107 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13108 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13109 cross_compiling=$ac_cv_prog_cc_cross
13115 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13117 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13118 for ac_func in isinff
13120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13121 echo "configure:13122: checking for $ac_func" >&5
13122 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13123 echo $ac_n "(cached) $ac_c" 1>&6
13124 else
13125 cat > conftest.$ac_ext <<EOF
13126 #line 13127 "configure"
13127 #include "confdefs.h"
13128 /* System header to define __stub macros and hopefully few prototypes,
13129 which can conflict with char $ac_func(); below. */
13130 #include <assert.h>
13131 /* Override any gcc2 internal prototype to avoid an error. */
13132 /* We use char because int might match the return type of a gcc2
13133 builtin and then its argument prototype would still apply. */
13134 char $ac_func();
13136 int main() {
13138 /* The GNU C library defines this for functions which it implements
13139 to always fail with ENOSYS. Some functions are actually named
13140 something starting with __ and the normal name is an alias. */
13141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13142 choke me
13143 #else
13144 $ac_func();
13145 #endif
13147 ; return 0; }
13149 if { (eval echo configure:13150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13150 rm -rf conftest*
13151 eval "ac_cv_func_$ac_func=yes"
13152 else
13153 echo "configure: failed program was:" >&5
13154 cat conftest.$ac_ext >&5
13155 rm -rf conftest*
13156 eval "ac_cv_func_$ac_func=no"
13158 rm -f conftest*
13161 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13162 echo "$ac_t""yes" 1>&6
13163 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13164 cat >> confdefs.h <<EOF
13165 #define $ac_tr_func 1
13168 else
13169 echo "$ac_t""no" 1>&6
13171 done
13173 else
13175 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13176 echo "configure:13177: checking for _isinff declaration" >&5
13177 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13178 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13179 echo $ac_n "(cached) $ac_c" 1>&6
13180 else
13183 ac_ext=C
13184 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13185 ac_cpp='$CXXCPP $CPPFLAGS'
13186 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13187 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13188 cross_compiling=$ac_cv_prog_cxx_cross
13190 cat > conftest.$ac_ext <<EOF
13191 #line 13192 "configure"
13192 #include "confdefs.h"
13193 #include <math.h>
13194 #ifdef HAVE_IEEEFP_H
13195 #include <ieeefp.h>
13196 #endif
13198 int main() {
13199 _isinff(0);
13200 ; return 0; }
13202 if { (eval echo configure:13203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13203 rm -rf conftest*
13204 glibcpp_cv_func__isinff_use=yes
13205 else
13206 echo "configure: failed program was:" >&5
13207 cat conftest.$ac_ext >&5
13208 rm -rf conftest*
13209 glibcpp_cv_func__isinff_use=no
13211 rm -f conftest*
13212 ac_ext=c
13213 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13214 ac_cpp='$CPP $CPPFLAGS'
13215 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13216 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13217 cross_compiling=$ac_cv_prog_cc_cross
13223 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13225 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13226 for ac_func in _isinff
13228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13229 echo "configure:13230: checking for $ac_func" >&5
13230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13231 echo $ac_n "(cached) $ac_c" 1>&6
13232 else
13233 cat > conftest.$ac_ext <<EOF
13234 #line 13235 "configure"
13235 #include "confdefs.h"
13236 /* System header to define __stub macros and hopefully few prototypes,
13237 which can conflict with char $ac_func(); below. */
13238 #include <assert.h>
13239 /* Override any gcc2 internal prototype to avoid an error. */
13240 /* We use char because int might match the return type of a gcc2
13241 builtin and then its argument prototype would still apply. */
13242 char $ac_func();
13244 int main() {
13246 /* The GNU C library defines this for functions which it implements
13247 to always fail with ENOSYS. Some functions are actually named
13248 something starting with __ and the normal name is an alias. */
13249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13250 choke me
13251 #else
13252 $ac_func();
13253 #endif
13255 ; return 0; }
13257 if { (eval echo configure:13258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13258 rm -rf conftest*
13259 eval "ac_cv_func_$ac_func=yes"
13260 else
13261 echo "configure: failed program was:" >&5
13262 cat conftest.$ac_ext >&5
13263 rm -rf conftest*
13264 eval "ac_cv_func_$ac_func=no"
13266 rm -f conftest*
13269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13270 echo "$ac_t""yes" 1>&6
13271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13272 cat >> confdefs.h <<EOF
13273 #define $ac_tr_func 1
13276 else
13277 echo "$ac_t""no" 1>&6
13279 done
13286 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13287 echo "configure:13288: checking for atan2f declaration" >&5
13288 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13289 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13290 echo $ac_n "(cached) $ac_c" 1>&6
13291 else
13294 ac_ext=C
13295 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13296 ac_cpp='$CXXCPP $CPPFLAGS'
13297 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13298 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13299 cross_compiling=$ac_cv_prog_cxx_cross
13301 cat > conftest.$ac_ext <<EOF
13302 #line 13303 "configure"
13303 #include "confdefs.h"
13304 #include <math.h>
13305 int main() {
13306 atan2f(0, 0);
13307 ; return 0; }
13309 if { (eval echo configure:13310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13310 rm -rf conftest*
13311 glibcpp_cv_func_atan2f_use=yes
13312 else
13313 echo "configure: failed program was:" >&5
13314 cat conftest.$ac_ext >&5
13315 rm -rf conftest*
13316 glibcpp_cv_func_atan2f_use=no
13318 rm -f conftest*
13319 ac_ext=c
13320 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13321 ac_cpp='$CPP $CPPFLAGS'
13322 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13323 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13324 cross_compiling=$ac_cv_prog_cc_cross
13330 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13332 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13333 for ac_func in atan2f
13335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13336 echo "configure:13337: checking for $ac_func" >&5
13337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13338 echo $ac_n "(cached) $ac_c" 1>&6
13339 else
13340 cat > conftest.$ac_ext <<EOF
13341 #line 13342 "configure"
13342 #include "confdefs.h"
13343 /* System header to define __stub macros and hopefully few prototypes,
13344 which can conflict with char $ac_func(); below. */
13345 #include <assert.h>
13346 /* Override any gcc2 internal prototype to avoid an error. */
13347 /* We use char because int might match the return type of a gcc2
13348 builtin and then its argument prototype would still apply. */
13349 char $ac_func();
13351 int main() {
13353 /* The GNU C library defines this for functions which it implements
13354 to always fail with ENOSYS. Some functions are actually named
13355 something starting with __ and the normal name is an alias. */
13356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13357 choke me
13358 #else
13359 $ac_func();
13360 #endif
13362 ; return 0; }
13364 if { (eval echo configure:13365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13365 rm -rf conftest*
13366 eval "ac_cv_func_$ac_func=yes"
13367 else
13368 echo "configure: failed program was:" >&5
13369 cat conftest.$ac_ext >&5
13370 rm -rf conftest*
13371 eval "ac_cv_func_$ac_func=no"
13373 rm -f conftest*
13376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13377 echo "$ac_t""yes" 1>&6
13378 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13379 cat >> confdefs.h <<EOF
13380 #define $ac_tr_func 1
13383 else
13384 echo "$ac_t""no" 1>&6
13386 done
13388 else
13390 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13391 echo "configure:13392: checking for _atan2f declaration" >&5
13392 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13393 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13394 echo $ac_n "(cached) $ac_c" 1>&6
13395 else
13398 ac_ext=C
13399 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13400 ac_cpp='$CXXCPP $CPPFLAGS'
13401 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13402 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13403 cross_compiling=$ac_cv_prog_cxx_cross
13405 cat > conftest.$ac_ext <<EOF
13406 #line 13407 "configure"
13407 #include "confdefs.h"
13408 #include <math.h>
13409 int main() {
13410 _atan2f(0, 0);
13411 ; return 0; }
13413 if { (eval echo configure:13414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13414 rm -rf conftest*
13415 glibcpp_cv_func__atan2f_use=yes
13416 else
13417 echo "configure: failed program was:" >&5
13418 cat conftest.$ac_ext >&5
13419 rm -rf conftest*
13420 glibcpp_cv_func__atan2f_use=no
13422 rm -f conftest*
13423 ac_ext=c
13424 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13425 ac_cpp='$CPP $CPPFLAGS'
13426 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13427 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13428 cross_compiling=$ac_cv_prog_cc_cross
13434 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13436 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13437 for ac_func in _atan2f
13439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13440 echo "configure:13441: checking for $ac_func" >&5
13441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13442 echo $ac_n "(cached) $ac_c" 1>&6
13443 else
13444 cat > conftest.$ac_ext <<EOF
13445 #line 13446 "configure"
13446 #include "confdefs.h"
13447 /* System header to define __stub macros and hopefully few prototypes,
13448 which can conflict with char $ac_func(); below. */
13449 #include <assert.h>
13450 /* Override any gcc2 internal prototype to avoid an error. */
13451 /* We use char because int might match the return type of a gcc2
13452 builtin and then its argument prototype would still apply. */
13453 char $ac_func();
13455 int main() {
13457 /* The GNU C library defines this for functions which it implements
13458 to always fail with ENOSYS. Some functions are actually named
13459 something starting with __ and the normal name is an alias. */
13460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13461 choke me
13462 #else
13463 $ac_func();
13464 #endif
13466 ; return 0; }
13468 if { (eval echo configure:13469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13469 rm -rf conftest*
13470 eval "ac_cv_func_$ac_func=yes"
13471 else
13472 echo "configure: failed program was:" >&5
13473 cat conftest.$ac_ext >&5
13474 rm -rf conftest*
13475 eval "ac_cv_func_$ac_func=no"
13477 rm -f conftest*
13480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13481 echo "$ac_t""yes" 1>&6
13482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13483 cat >> confdefs.h <<EOF
13484 #define $ac_tr_func 1
13487 else
13488 echo "$ac_t""no" 1>&6
13490 done
13497 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13498 echo "configure:13499: checking for fabsf declaration" >&5
13499 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13500 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13501 echo $ac_n "(cached) $ac_c" 1>&6
13502 else
13505 ac_ext=C
13506 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13507 ac_cpp='$CXXCPP $CPPFLAGS'
13508 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13509 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13510 cross_compiling=$ac_cv_prog_cxx_cross
13512 cat > conftest.$ac_ext <<EOF
13513 #line 13514 "configure"
13514 #include "confdefs.h"
13515 #include <math.h>
13516 #ifdef HAVE_IEEEFP_H
13517 #include <ieeefp.h>
13518 #endif
13520 int main() {
13521 fabsf(0);
13522 ; return 0; }
13524 if { (eval echo configure:13525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13525 rm -rf conftest*
13526 glibcpp_cv_func_fabsf_use=yes
13527 else
13528 echo "configure: failed program was:" >&5
13529 cat conftest.$ac_ext >&5
13530 rm -rf conftest*
13531 glibcpp_cv_func_fabsf_use=no
13533 rm -f conftest*
13534 ac_ext=c
13535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13536 ac_cpp='$CPP $CPPFLAGS'
13537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13539 cross_compiling=$ac_cv_prog_cc_cross
13545 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13547 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13548 for ac_func in fabsf
13550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13551 echo "configure:13552: checking for $ac_func" >&5
13552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13553 echo $ac_n "(cached) $ac_c" 1>&6
13554 else
13555 cat > conftest.$ac_ext <<EOF
13556 #line 13557 "configure"
13557 #include "confdefs.h"
13558 /* System header to define __stub macros and hopefully few prototypes,
13559 which can conflict with char $ac_func(); below. */
13560 #include <assert.h>
13561 /* Override any gcc2 internal prototype to avoid an error. */
13562 /* We use char because int might match the return type of a gcc2
13563 builtin and then its argument prototype would still apply. */
13564 char $ac_func();
13566 int main() {
13568 /* The GNU C library defines this for functions which it implements
13569 to always fail with ENOSYS. Some functions are actually named
13570 something starting with __ and the normal name is an alias. */
13571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13572 choke me
13573 #else
13574 $ac_func();
13575 #endif
13577 ; return 0; }
13579 if { (eval echo configure:13580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13580 rm -rf conftest*
13581 eval "ac_cv_func_$ac_func=yes"
13582 else
13583 echo "configure: failed program was:" >&5
13584 cat conftest.$ac_ext >&5
13585 rm -rf conftest*
13586 eval "ac_cv_func_$ac_func=no"
13588 rm -f conftest*
13591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13592 echo "$ac_t""yes" 1>&6
13593 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13594 cat >> confdefs.h <<EOF
13595 #define $ac_tr_func 1
13598 else
13599 echo "$ac_t""no" 1>&6
13601 done
13603 else
13605 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13606 echo "configure:13607: checking for _fabsf declaration" >&5
13607 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13608 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13609 echo $ac_n "(cached) $ac_c" 1>&6
13610 else
13613 ac_ext=C
13614 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13615 ac_cpp='$CXXCPP $CPPFLAGS'
13616 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13617 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13618 cross_compiling=$ac_cv_prog_cxx_cross
13620 cat > conftest.$ac_ext <<EOF
13621 #line 13622 "configure"
13622 #include "confdefs.h"
13623 #include <math.h>
13624 #ifdef HAVE_IEEEFP_H
13625 #include <ieeefp.h>
13626 #endif
13628 int main() {
13629 _fabsf(0);
13630 ; return 0; }
13632 if { (eval echo configure:13633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13633 rm -rf conftest*
13634 glibcpp_cv_func__fabsf_use=yes
13635 else
13636 echo "configure: failed program was:" >&5
13637 cat conftest.$ac_ext >&5
13638 rm -rf conftest*
13639 glibcpp_cv_func__fabsf_use=no
13641 rm -f conftest*
13642 ac_ext=c
13643 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13644 ac_cpp='$CPP $CPPFLAGS'
13645 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13646 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13647 cross_compiling=$ac_cv_prog_cc_cross
13653 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13655 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13656 for ac_func in _fabsf
13658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13659 echo "configure:13660: checking for $ac_func" >&5
13660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13661 echo $ac_n "(cached) $ac_c" 1>&6
13662 else
13663 cat > conftest.$ac_ext <<EOF
13664 #line 13665 "configure"
13665 #include "confdefs.h"
13666 /* System header to define __stub macros and hopefully few prototypes,
13667 which can conflict with char $ac_func(); below. */
13668 #include <assert.h>
13669 /* Override any gcc2 internal prototype to avoid an error. */
13670 /* We use char because int might match the return type of a gcc2
13671 builtin and then its argument prototype would still apply. */
13672 char $ac_func();
13674 int main() {
13676 /* The GNU C library defines this for functions which it implements
13677 to always fail with ENOSYS. Some functions are actually named
13678 something starting with __ and the normal name is an alias. */
13679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13680 choke me
13681 #else
13682 $ac_func();
13683 #endif
13685 ; return 0; }
13687 if { (eval echo configure:13688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13688 rm -rf conftest*
13689 eval "ac_cv_func_$ac_func=yes"
13690 else
13691 echo "configure: failed program was:" >&5
13692 cat conftest.$ac_ext >&5
13693 rm -rf conftest*
13694 eval "ac_cv_func_$ac_func=no"
13696 rm -f conftest*
13699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13700 echo "$ac_t""yes" 1>&6
13701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13702 cat >> confdefs.h <<EOF
13703 #define $ac_tr_func 1
13706 else
13707 echo "$ac_t""no" 1>&6
13709 done
13716 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13717 echo "configure:13718: checking for fmodf declaration" >&5
13718 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13719 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13720 echo $ac_n "(cached) $ac_c" 1>&6
13721 else
13724 ac_ext=C
13725 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13726 ac_cpp='$CXXCPP $CPPFLAGS'
13727 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13728 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13729 cross_compiling=$ac_cv_prog_cxx_cross
13731 cat > conftest.$ac_ext <<EOF
13732 #line 13733 "configure"
13733 #include "confdefs.h"
13734 #include <math.h>
13735 int main() {
13736 fmodf(0, 0);
13737 ; return 0; }
13739 if { (eval echo configure:13740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13740 rm -rf conftest*
13741 glibcpp_cv_func_fmodf_use=yes
13742 else
13743 echo "configure: failed program was:" >&5
13744 cat conftest.$ac_ext >&5
13745 rm -rf conftest*
13746 glibcpp_cv_func_fmodf_use=no
13748 rm -f conftest*
13749 ac_ext=c
13750 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13751 ac_cpp='$CPP $CPPFLAGS'
13752 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13753 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13754 cross_compiling=$ac_cv_prog_cc_cross
13760 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13762 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13763 for ac_func in fmodf
13765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13766 echo "configure:13767: checking for $ac_func" >&5
13767 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13768 echo $ac_n "(cached) $ac_c" 1>&6
13769 else
13770 cat > conftest.$ac_ext <<EOF
13771 #line 13772 "configure"
13772 #include "confdefs.h"
13773 /* System header to define __stub macros and hopefully few prototypes,
13774 which can conflict with char $ac_func(); below. */
13775 #include <assert.h>
13776 /* Override any gcc2 internal prototype to avoid an error. */
13777 /* We use char because int might match the return type of a gcc2
13778 builtin and then its argument prototype would still apply. */
13779 char $ac_func();
13781 int main() {
13783 /* The GNU C library defines this for functions which it implements
13784 to always fail with ENOSYS. Some functions are actually named
13785 something starting with __ and the normal name is an alias. */
13786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13787 choke me
13788 #else
13789 $ac_func();
13790 #endif
13792 ; return 0; }
13794 if { (eval echo configure:13795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13795 rm -rf conftest*
13796 eval "ac_cv_func_$ac_func=yes"
13797 else
13798 echo "configure: failed program was:" >&5
13799 cat conftest.$ac_ext >&5
13800 rm -rf conftest*
13801 eval "ac_cv_func_$ac_func=no"
13803 rm -f conftest*
13806 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13807 echo "$ac_t""yes" 1>&6
13808 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13809 cat >> confdefs.h <<EOF
13810 #define $ac_tr_func 1
13813 else
13814 echo "$ac_t""no" 1>&6
13816 done
13818 else
13820 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13821 echo "configure:13822: checking for _fmodf declaration" >&5
13822 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13823 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13824 echo $ac_n "(cached) $ac_c" 1>&6
13825 else
13828 ac_ext=C
13829 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13830 ac_cpp='$CXXCPP $CPPFLAGS'
13831 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13832 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13833 cross_compiling=$ac_cv_prog_cxx_cross
13835 cat > conftest.$ac_ext <<EOF
13836 #line 13837 "configure"
13837 #include "confdefs.h"
13838 #include <math.h>
13839 int main() {
13840 _fmodf(0, 0);
13841 ; return 0; }
13843 if { (eval echo configure:13844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13844 rm -rf conftest*
13845 glibcpp_cv_func__fmodf_use=yes
13846 else
13847 echo "configure: failed program was:" >&5
13848 cat conftest.$ac_ext >&5
13849 rm -rf conftest*
13850 glibcpp_cv_func__fmodf_use=no
13852 rm -f conftest*
13853 ac_ext=c
13854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13855 ac_cpp='$CPP $CPPFLAGS'
13856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13858 cross_compiling=$ac_cv_prog_cc_cross
13864 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13866 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13867 for ac_func in _fmodf
13869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13870 echo "configure:13871: checking for $ac_func" >&5
13871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13872 echo $ac_n "(cached) $ac_c" 1>&6
13873 else
13874 cat > conftest.$ac_ext <<EOF
13875 #line 13876 "configure"
13876 #include "confdefs.h"
13877 /* System header to define __stub macros and hopefully few prototypes,
13878 which can conflict with char $ac_func(); below. */
13879 #include <assert.h>
13880 /* Override any gcc2 internal prototype to avoid an error. */
13881 /* We use char because int might match the return type of a gcc2
13882 builtin and then its argument prototype would still apply. */
13883 char $ac_func();
13885 int main() {
13887 /* The GNU C library defines this for functions which it implements
13888 to always fail with ENOSYS. Some functions are actually named
13889 something starting with __ and the normal name is an alias. */
13890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13891 choke me
13892 #else
13893 $ac_func();
13894 #endif
13896 ; return 0; }
13898 if { (eval echo configure:13899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13899 rm -rf conftest*
13900 eval "ac_cv_func_$ac_func=yes"
13901 else
13902 echo "configure: failed program was:" >&5
13903 cat conftest.$ac_ext >&5
13904 rm -rf conftest*
13905 eval "ac_cv_func_$ac_func=no"
13907 rm -f conftest*
13910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13911 echo "$ac_t""yes" 1>&6
13912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13913 cat >> confdefs.h <<EOF
13914 #define $ac_tr_func 1
13917 else
13918 echo "$ac_t""no" 1>&6
13920 done
13927 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13928 echo "configure:13929: checking for frexpf declaration" >&5
13929 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13930 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13931 echo $ac_n "(cached) $ac_c" 1>&6
13932 else
13935 ac_ext=C
13936 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13937 ac_cpp='$CXXCPP $CPPFLAGS'
13938 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13939 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13940 cross_compiling=$ac_cv_prog_cxx_cross
13942 cat > conftest.$ac_ext <<EOF
13943 #line 13944 "configure"
13944 #include "confdefs.h"
13945 #include <math.h>
13946 int main() {
13947 frexpf(0, 0);
13948 ; return 0; }
13950 if { (eval echo configure:13951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13951 rm -rf conftest*
13952 glibcpp_cv_func_frexpf_use=yes
13953 else
13954 echo "configure: failed program was:" >&5
13955 cat conftest.$ac_ext >&5
13956 rm -rf conftest*
13957 glibcpp_cv_func_frexpf_use=no
13959 rm -f conftest*
13960 ac_ext=c
13961 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13962 ac_cpp='$CPP $CPPFLAGS'
13963 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13964 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13965 cross_compiling=$ac_cv_prog_cc_cross
13971 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
13973 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
13974 for ac_func in frexpf
13976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13977 echo "configure:13978: checking for $ac_func" >&5
13978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13979 echo $ac_n "(cached) $ac_c" 1>&6
13980 else
13981 cat > conftest.$ac_ext <<EOF
13982 #line 13983 "configure"
13983 #include "confdefs.h"
13984 /* System header to define __stub macros and hopefully few prototypes,
13985 which can conflict with char $ac_func(); below. */
13986 #include <assert.h>
13987 /* Override any gcc2 internal prototype to avoid an error. */
13988 /* We use char because int might match the return type of a gcc2
13989 builtin and then its argument prototype would still apply. */
13990 char $ac_func();
13992 int main() {
13994 /* The GNU C library defines this for functions which it implements
13995 to always fail with ENOSYS. Some functions are actually named
13996 something starting with __ and the normal name is an alias. */
13997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13998 choke me
13999 #else
14000 $ac_func();
14001 #endif
14003 ; return 0; }
14005 if { (eval echo configure:14006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14006 rm -rf conftest*
14007 eval "ac_cv_func_$ac_func=yes"
14008 else
14009 echo "configure: failed program was:" >&5
14010 cat conftest.$ac_ext >&5
14011 rm -rf conftest*
14012 eval "ac_cv_func_$ac_func=no"
14014 rm -f conftest*
14017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14018 echo "$ac_t""yes" 1>&6
14019 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14020 cat >> confdefs.h <<EOF
14021 #define $ac_tr_func 1
14024 else
14025 echo "$ac_t""no" 1>&6
14027 done
14029 else
14031 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14032 echo "configure:14033: checking for _frexpf declaration" >&5
14033 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14034 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14035 echo $ac_n "(cached) $ac_c" 1>&6
14036 else
14039 ac_ext=C
14040 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14041 ac_cpp='$CXXCPP $CPPFLAGS'
14042 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14043 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14044 cross_compiling=$ac_cv_prog_cxx_cross
14046 cat > conftest.$ac_ext <<EOF
14047 #line 14048 "configure"
14048 #include "confdefs.h"
14049 #include <math.h>
14050 int main() {
14051 _frexpf(0, 0);
14052 ; return 0; }
14054 if { (eval echo configure:14055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14055 rm -rf conftest*
14056 glibcpp_cv_func__frexpf_use=yes
14057 else
14058 echo "configure: failed program was:" >&5
14059 cat conftest.$ac_ext >&5
14060 rm -rf conftest*
14061 glibcpp_cv_func__frexpf_use=no
14063 rm -f conftest*
14064 ac_ext=c
14065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14066 ac_cpp='$CPP $CPPFLAGS'
14067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14069 cross_compiling=$ac_cv_prog_cc_cross
14075 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14077 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14078 for ac_func in _frexpf
14080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14081 echo "configure:14082: checking for $ac_func" >&5
14082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14083 echo $ac_n "(cached) $ac_c" 1>&6
14084 else
14085 cat > conftest.$ac_ext <<EOF
14086 #line 14087 "configure"
14087 #include "confdefs.h"
14088 /* System header to define __stub macros and hopefully few prototypes,
14089 which can conflict with char $ac_func(); below. */
14090 #include <assert.h>
14091 /* Override any gcc2 internal prototype to avoid an error. */
14092 /* We use char because int might match the return type of a gcc2
14093 builtin and then its argument prototype would still apply. */
14094 char $ac_func();
14096 int main() {
14098 /* The GNU C library defines this for functions which it implements
14099 to always fail with ENOSYS. Some functions are actually named
14100 something starting with __ and the normal name is an alias. */
14101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14102 choke me
14103 #else
14104 $ac_func();
14105 #endif
14107 ; return 0; }
14109 if { (eval echo configure:14110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14110 rm -rf conftest*
14111 eval "ac_cv_func_$ac_func=yes"
14112 else
14113 echo "configure: failed program was:" >&5
14114 cat conftest.$ac_ext >&5
14115 rm -rf conftest*
14116 eval "ac_cv_func_$ac_func=no"
14118 rm -f conftest*
14121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14122 echo "$ac_t""yes" 1>&6
14123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14124 cat >> confdefs.h <<EOF
14125 #define $ac_tr_func 1
14128 else
14129 echo "$ac_t""no" 1>&6
14131 done
14138 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14139 echo "configure:14140: checking for hypotf declaration" >&5
14140 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14141 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14142 echo $ac_n "(cached) $ac_c" 1>&6
14143 else
14146 ac_ext=C
14147 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14148 ac_cpp='$CXXCPP $CPPFLAGS'
14149 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14150 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14151 cross_compiling=$ac_cv_prog_cxx_cross
14153 cat > conftest.$ac_ext <<EOF
14154 #line 14155 "configure"
14155 #include "confdefs.h"
14156 #include <math.h>
14157 int main() {
14158 hypotf(0, 0);
14159 ; return 0; }
14161 if { (eval echo configure:14162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14162 rm -rf conftest*
14163 glibcpp_cv_func_hypotf_use=yes
14164 else
14165 echo "configure: failed program was:" >&5
14166 cat conftest.$ac_ext >&5
14167 rm -rf conftest*
14168 glibcpp_cv_func_hypotf_use=no
14170 rm -f conftest*
14171 ac_ext=c
14172 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14173 ac_cpp='$CPP $CPPFLAGS'
14174 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14175 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14176 cross_compiling=$ac_cv_prog_cc_cross
14182 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14184 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14185 for ac_func in hypotf
14187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14188 echo "configure:14189: checking for $ac_func" >&5
14189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14190 echo $ac_n "(cached) $ac_c" 1>&6
14191 else
14192 cat > conftest.$ac_ext <<EOF
14193 #line 14194 "configure"
14194 #include "confdefs.h"
14195 /* System header to define __stub macros and hopefully few prototypes,
14196 which can conflict with char $ac_func(); below. */
14197 #include <assert.h>
14198 /* Override any gcc2 internal prototype to avoid an error. */
14199 /* We use char because int might match the return type of a gcc2
14200 builtin and then its argument prototype would still apply. */
14201 char $ac_func();
14203 int main() {
14205 /* The GNU C library defines this for functions which it implements
14206 to always fail with ENOSYS. Some functions are actually named
14207 something starting with __ and the normal name is an alias. */
14208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14209 choke me
14210 #else
14211 $ac_func();
14212 #endif
14214 ; return 0; }
14216 if { (eval echo configure:14217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14217 rm -rf conftest*
14218 eval "ac_cv_func_$ac_func=yes"
14219 else
14220 echo "configure: failed program was:" >&5
14221 cat conftest.$ac_ext >&5
14222 rm -rf conftest*
14223 eval "ac_cv_func_$ac_func=no"
14225 rm -f conftest*
14228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14229 echo "$ac_t""yes" 1>&6
14230 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14231 cat >> confdefs.h <<EOF
14232 #define $ac_tr_func 1
14235 else
14236 echo "$ac_t""no" 1>&6
14238 done
14240 else
14242 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14243 echo "configure:14244: checking for _hypotf declaration" >&5
14244 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14245 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14246 echo $ac_n "(cached) $ac_c" 1>&6
14247 else
14250 ac_ext=C
14251 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14252 ac_cpp='$CXXCPP $CPPFLAGS'
14253 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14254 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14255 cross_compiling=$ac_cv_prog_cxx_cross
14257 cat > conftest.$ac_ext <<EOF
14258 #line 14259 "configure"
14259 #include "confdefs.h"
14260 #include <math.h>
14261 int main() {
14262 _hypotf(0, 0);
14263 ; return 0; }
14265 if { (eval echo configure:14266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14266 rm -rf conftest*
14267 glibcpp_cv_func__hypotf_use=yes
14268 else
14269 echo "configure: failed program was:" >&5
14270 cat conftest.$ac_ext >&5
14271 rm -rf conftest*
14272 glibcpp_cv_func__hypotf_use=no
14274 rm -f conftest*
14275 ac_ext=c
14276 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14277 ac_cpp='$CPP $CPPFLAGS'
14278 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14279 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14280 cross_compiling=$ac_cv_prog_cc_cross
14286 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14288 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14289 for ac_func in _hypotf
14291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14292 echo "configure:14293: checking for $ac_func" >&5
14293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14294 echo $ac_n "(cached) $ac_c" 1>&6
14295 else
14296 cat > conftest.$ac_ext <<EOF
14297 #line 14298 "configure"
14298 #include "confdefs.h"
14299 /* System header to define __stub macros and hopefully few prototypes,
14300 which can conflict with char $ac_func(); below. */
14301 #include <assert.h>
14302 /* Override any gcc2 internal prototype to avoid an error. */
14303 /* We use char because int might match the return type of a gcc2
14304 builtin and then its argument prototype would still apply. */
14305 char $ac_func();
14307 int main() {
14309 /* The GNU C library defines this for functions which it implements
14310 to always fail with ENOSYS. Some functions are actually named
14311 something starting with __ and the normal name is an alias. */
14312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14313 choke me
14314 #else
14315 $ac_func();
14316 #endif
14318 ; return 0; }
14320 if { (eval echo configure:14321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14321 rm -rf conftest*
14322 eval "ac_cv_func_$ac_func=yes"
14323 else
14324 echo "configure: failed program was:" >&5
14325 cat conftest.$ac_ext >&5
14326 rm -rf conftest*
14327 eval "ac_cv_func_$ac_func=no"
14329 rm -f conftest*
14332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14333 echo "$ac_t""yes" 1>&6
14334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14335 cat >> confdefs.h <<EOF
14336 #define $ac_tr_func 1
14339 else
14340 echo "$ac_t""no" 1>&6
14342 done
14349 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14350 echo "configure:14351: checking for ldexpf declaration" >&5
14351 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14352 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14353 echo $ac_n "(cached) $ac_c" 1>&6
14354 else
14357 ac_ext=C
14358 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14359 ac_cpp='$CXXCPP $CPPFLAGS'
14360 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14361 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14362 cross_compiling=$ac_cv_prog_cxx_cross
14364 cat > conftest.$ac_ext <<EOF
14365 #line 14366 "configure"
14366 #include "confdefs.h"
14367 #include <math.h>
14368 int main() {
14369 ldexpf(0, 0);
14370 ; return 0; }
14372 if { (eval echo configure:14373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14373 rm -rf conftest*
14374 glibcpp_cv_func_ldexpf_use=yes
14375 else
14376 echo "configure: failed program was:" >&5
14377 cat conftest.$ac_ext >&5
14378 rm -rf conftest*
14379 glibcpp_cv_func_ldexpf_use=no
14381 rm -f conftest*
14382 ac_ext=c
14383 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14384 ac_cpp='$CPP $CPPFLAGS'
14385 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14386 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14387 cross_compiling=$ac_cv_prog_cc_cross
14393 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14395 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14396 for ac_func in ldexpf
14398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14399 echo "configure:14400: checking for $ac_func" >&5
14400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14401 echo $ac_n "(cached) $ac_c" 1>&6
14402 else
14403 cat > conftest.$ac_ext <<EOF
14404 #line 14405 "configure"
14405 #include "confdefs.h"
14406 /* System header to define __stub macros and hopefully few prototypes,
14407 which can conflict with char $ac_func(); below. */
14408 #include <assert.h>
14409 /* Override any gcc2 internal prototype to avoid an error. */
14410 /* We use char because int might match the return type of a gcc2
14411 builtin and then its argument prototype would still apply. */
14412 char $ac_func();
14414 int main() {
14416 /* The GNU C library defines this for functions which it implements
14417 to always fail with ENOSYS. Some functions are actually named
14418 something starting with __ and the normal name is an alias. */
14419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14420 choke me
14421 #else
14422 $ac_func();
14423 #endif
14425 ; return 0; }
14427 if { (eval echo configure:14428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14428 rm -rf conftest*
14429 eval "ac_cv_func_$ac_func=yes"
14430 else
14431 echo "configure: failed program was:" >&5
14432 cat conftest.$ac_ext >&5
14433 rm -rf conftest*
14434 eval "ac_cv_func_$ac_func=no"
14436 rm -f conftest*
14439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14440 echo "$ac_t""yes" 1>&6
14441 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14442 cat >> confdefs.h <<EOF
14443 #define $ac_tr_func 1
14446 else
14447 echo "$ac_t""no" 1>&6
14449 done
14451 else
14453 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14454 echo "configure:14455: checking for _ldexpf declaration" >&5
14455 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14456 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14457 echo $ac_n "(cached) $ac_c" 1>&6
14458 else
14461 ac_ext=C
14462 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14463 ac_cpp='$CXXCPP $CPPFLAGS'
14464 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14465 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14466 cross_compiling=$ac_cv_prog_cxx_cross
14468 cat > conftest.$ac_ext <<EOF
14469 #line 14470 "configure"
14470 #include "confdefs.h"
14471 #include <math.h>
14472 int main() {
14473 _ldexpf(0, 0);
14474 ; return 0; }
14476 if { (eval echo configure:14477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14477 rm -rf conftest*
14478 glibcpp_cv_func__ldexpf_use=yes
14479 else
14480 echo "configure: failed program was:" >&5
14481 cat conftest.$ac_ext >&5
14482 rm -rf conftest*
14483 glibcpp_cv_func__ldexpf_use=no
14485 rm -f conftest*
14486 ac_ext=c
14487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14488 ac_cpp='$CPP $CPPFLAGS'
14489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14491 cross_compiling=$ac_cv_prog_cc_cross
14497 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14499 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14500 for ac_func in _ldexpf
14502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14503 echo "configure:14504: checking for $ac_func" >&5
14504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14505 echo $ac_n "(cached) $ac_c" 1>&6
14506 else
14507 cat > conftest.$ac_ext <<EOF
14508 #line 14509 "configure"
14509 #include "confdefs.h"
14510 /* System header to define __stub macros and hopefully few prototypes,
14511 which can conflict with char $ac_func(); below. */
14512 #include <assert.h>
14513 /* Override any gcc2 internal prototype to avoid an error. */
14514 /* We use char because int might match the return type of a gcc2
14515 builtin and then its argument prototype would still apply. */
14516 char $ac_func();
14518 int main() {
14520 /* The GNU C library defines this for functions which it implements
14521 to always fail with ENOSYS. Some functions are actually named
14522 something starting with __ and the normal name is an alias. */
14523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14524 choke me
14525 #else
14526 $ac_func();
14527 #endif
14529 ; return 0; }
14531 if { (eval echo configure:14532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14532 rm -rf conftest*
14533 eval "ac_cv_func_$ac_func=yes"
14534 else
14535 echo "configure: failed program was:" >&5
14536 cat conftest.$ac_ext >&5
14537 rm -rf conftest*
14538 eval "ac_cv_func_$ac_func=no"
14540 rm -f conftest*
14543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14544 echo "$ac_t""yes" 1>&6
14545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14546 cat >> confdefs.h <<EOF
14547 #define $ac_tr_func 1
14550 else
14551 echo "$ac_t""no" 1>&6
14553 done
14560 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14561 echo "configure:14562: checking for logf declaration" >&5
14562 if test x${glibcpp_cv_func_logf_use+set} != xset; then
14563 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14564 echo $ac_n "(cached) $ac_c" 1>&6
14565 else
14568 ac_ext=C
14569 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14570 ac_cpp='$CXXCPP $CPPFLAGS'
14571 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14572 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14573 cross_compiling=$ac_cv_prog_cxx_cross
14575 cat > conftest.$ac_ext <<EOF
14576 #line 14577 "configure"
14577 #include "confdefs.h"
14578 #include <math.h>
14579 #ifdef HAVE_IEEEFP_H
14580 #include <ieeefp.h>
14581 #endif
14583 int main() {
14584 logf(0);
14585 ; return 0; }
14587 if { (eval echo configure:14588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14588 rm -rf conftest*
14589 glibcpp_cv_func_logf_use=yes
14590 else
14591 echo "configure: failed program was:" >&5
14592 cat conftest.$ac_ext >&5
14593 rm -rf conftest*
14594 glibcpp_cv_func_logf_use=no
14596 rm -f conftest*
14597 ac_ext=c
14598 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14599 ac_cpp='$CPP $CPPFLAGS'
14600 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14601 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14602 cross_compiling=$ac_cv_prog_cc_cross
14608 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14610 if test x$glibcpp_cv_func_logf_use = x"yes"; then
14611 for ac_func in logf
14613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14614 echo "configure:14615: checking for $ac_func" >&5
14615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14616 echo $ac_n "(cached) $ac_c" 1>&6
14617 else
14618 cat > conftest.$ac_ext <<EOF
14619 #line 14620 "configure"
14620 #include "confdefs.h"
14621 /* System header to define __stub macros and hopefully few prototypes,
14622 which can conflict with char $ac_func(); below. */
14623 #include <assert.h>
14624 /* Override any gcc2 internal prototype to avoid an error. */
14625 /* We use char because int might match the return type of a gcc2
14626 builtin and then its argument prototype would still apply. */
14627 char $ac_func();
14629 int main() {
14631 /* The GNU C library defines this for functions which it implements
14632 to always fail with ENOSYS. Some functions are actually named
14633 something starting with __ and the normal name is an alias. */
14634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14635 choke me
14636 #else
14637 $ac_func();
14638 #endif
14640 ; return 0; }
14642 if { (eval echo configure:14643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14643 rm -rf conftest*
14644 eval "ac_cv_func_$ac_func=yes"
14645 else
14646 echo "configure: failed program was:" >&5
14647 cat conftest.$ac_ext >&5
14648 rm -rf conftest*
14649 eval "ac_cv_func_$ac_func=no"
14651 rm -f conftest*
14654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14655 echo "$ac_t""yes" 1>&6
14656 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14657 cat >> confdefs.h <<EOF
14658 #define $ac_tr_func 1
14661 else
14662 echo "$ac_t""no" 1>&6
14664 done
14666 else
14668 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14669 echo "configure:14670: checking for _logf declaration" >&5
14670 if test x${glibcpp_cv_func__logf_use+set} != xset; then
14671 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14672 echo $ac_n "(cached) $ac_c" 1>&6
14673 else
14676 ac_ext=C
14677 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14678 ac_cpp='$CXXCPP $CPPFLAGS'
14679 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14680 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14681 cross_compiling=$ac_cv_prog_cxx_cross
14683 cat > conftest.$ac_ext <<EOF
14684 #line 14685 "configure"
14685 #include "confdefs.h"
14686 #include <math.h>
14687 #ifdef HAVE_IEEEFP_H
14688 #include <ieeefp.h>
14689 #endif
14691 int main() {
14692 _logf(0);
14693 ; return 0; }
14695 if { (eval echo configure:14696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14696 rm -rf conftest*
14697 glibcpp_cv_func__logf_use=yes
14698 else
14699 echo "configure: failed program was:" >&5
14700 cat conftest.$ac_ext >&5
14701 rm -rf conftest*
14702 glibcpp_cv_func__logf_use=no
14704 rm -f conftest*
14705 ac_ext=c
14706 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14707 ac_cpp='$CPP $CPPFLAGS'
14708 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14709 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14710 cross_compiling=$ac_cv_prog_cc_cross
14716 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14718 if test x$glibcpp_cv_func__logf_use = x"yes"; then
14719 for ac_func in _logf
14721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14722 echo "configure:14723: checking for $ac_func" >&5
14723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14724 echo $ac_n "(cached) $ac_c" 1>&6
14725 else
14726 cat > conftest.$ac_ext <<EOF
14727 #line 14728 "configure"
14728 #include "confdefs.h"
14729 /* System header to define __stub macros and hopefully few prototypes,
14730 which can conflict with char $ac_func(); below. */
14731 #include <assert.h>
14732 /* Override any gcc2 internal prototype to avoid an error. */
14733 /* We use char because int might match the return type of a gcc2
14734 builtin and then its argument prototype would still apply. */
14735 char $ac_func();
14737 int main() {
14739 /* The GNU C library defines this for functions which it implements
14740 to always fail with ENOSYS. Some functions are actually named
14741 something starting with __ and the normal name is an alias. */
14742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14743 choke me
14744 #else
14745 $ac_func();
14746 #endif
14748 ; return 0; }
14750 if { (eval echo configure:14751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14751 rm -rf conftest*
14752 eval "ac_cv_func_$ac_func=yes"
14753 else
14754 echo "configure: failed program was:" >&5
14755 cat conftest.$ac_ext >&5
14756 rm -rf conftest*
14757 eval "ac_cv_func_$ac_func=no"
14759 rm -f conftest*
14762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14763 echo "$ac_t""yes" 1>&6
14764 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14765 cat >> confdefs.h <<EOF
14766 #define $ac_tr_func 1
14769 else
14770 echo "$ac_t""no" 1>&6
14772 done
14779 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14780 echo "configure:14781: checking for log10f declaration" >&5
14781 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14782 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14783 echo $ac_n "(cached) $ac_c" 1>&6
14784 else
14787 ac_ext=C
14788 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14789 ac_cpp='$CXXCPP $CPPFLAGS'
14790 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14791 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14792 cross_compiling=$ac_cv_prog_cxx_cross
14794 cat > conftest.$ac_ext <<EOF
14795 #line 14796 "configure"
14796 #include "confdefs.h"
14797 #include <math.h>
14798 #ifdef HAVE_IEEEFP_H
14799 #include <ieeefp.h>
14800 #endif
14802 int main() {
14803 log10f(0);
14804 ; return 0; }
14806 if { (eval echo configure:14807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14807 rm -rf conftest*
14808 glibcpp_cv_func_log10f_use=yes
14809 else
14810 echo "configure: failed program was:" >&5
14811 cat conftest.$ac_ext >&5
14812 rm -rf conftest*
14813 glibcpp_cv_func_log10f_use=no
14815 rm -f conftest*
14816 ac_ext=c
14817 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14818 ac_cpp='$CPP $CPPFLAGS'
14819 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14820 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14821 cross_compiling=$ac_cv_prog_cc_cross
14827 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14829 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14830 for ac_func in log10f
14832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14833 echo "configure:14834: checking for $ac_func" >&5
14834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14835 echo $ac_n "(cached) $ac_c" 1>&6
14836 else
14837 cat > conftest.$ac_ext <<EOF
14838 #line 14839 "configure"
14839 #include "confdefs.h"
14840 /* System header to define __stub macros and hopefully few prototypes,
14841 which can conflict with char $ac_func(); below. */
14842 #include <assert.h>
14843 /* Override any gcc2 internal prototype to avoid an error. */
14844 /* We use char because int might match the return type of a gcc2
14845 builtin and then its argument prototype would still apply. */
14846 char $ac_func();
14848 int main() {
14850 /* The GNU C library defines this for functions which it implements
14851 to always fail with ENOSYS. Some functions are actually named
14852 something starting with __ and the normal name is an alias. */
14853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14854 choke me
14855 #else
14856 $ac_func();
14857 #endif
14859 ; return 0; }
14861 if { (eval echo configure:14862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14862 rm -rf conftest*
14863 eval "ac_cv_func_$ac_func=yes"
14864 else
14865 echo "configure: failed program was:" >&5
14866 cat conftest.$ac_ext >&5
14867 rm -rf conftest*
14868 eval "ac_cv_func_$ac_func=no"
14870 rm -f conftest*
14873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14874 echo "$ac_t""yes" 1>&6
14875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14876 cat >> confdefs.h <<EOF
14877 #define $ac_tr_func 1
14880 else
14881 echo "$ac_t""no" 1>&6
14883 done
14885 else
14887 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14888 echo "configure:14889: checking for _log10f declaration" >&5
14889 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14890 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14891 echo $ac_n "(cached) $ac_c" 1>&6
14892 else
14895 ac_ext=C
14896 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14897 ac_cpp='$CXXCPP $CPPFLAGS'
14898 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14899 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14900 cross_compiling=$ac_cv_prog_cxx_cross
14902 cat > conftest.$ac_ext <<EOF
14903 #line 14904 "configure"
14904 #include "confdefs.h"
14905 #include <math.h>
14906 #ifdef HAVE_IEEEFP_H
14907 #include <ieeefp.h>
14908 #endif
14910 int main() {
14911 _log10f(0);
14912 ; return 0; }
14914 if { (eval echo configure:14915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14915 rm -rf conftest*
14916 glibcpp_cv_func__log10f_use=yes
14917 else
14918 echo "configure: failed program was:" >&5
14919 cat conftest.$ac_ext >&5
14920 rm -rf conftest*
14921 glibcpp_cv_func__log10f_use=no
14923 rm -f conftest*
14924 ac_ext=c
14925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14926 ac_cpp='$CPP $CPPFLAGS'
14927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14929 cross_compiling=$ac_cv_prog_cc_cross
14935 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14937 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14938 for ac_func in _log10f
14940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14941 echo "configure:14942: checking for $ac_func" >&5
14942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14943 echo $ac_n "(cached) $ac_c" 1>&6
14944 else
14945 cat > conftest.$ac_ext <<EOF
14946 #line 14947 "configure"
14947 #include "confdefs.h"
14948 /* System header to define __stub macros and hopefully few prototypes,
14949 which can conflict with char $ac_func(); below. */
14950 #include <assert.h>
14951 /* Override any gcc2 internal prototype to avoid an error. */
14952 /* We use char because int might match the return type of a gcc2
14953 builtin and then its argument prototype would still apply. */
14954 char $ac_func();
14956 int main() {
14958 /* The GNU C library defines this for functions which it implements
14959 to always fail with ENOSYS. Some functions are actually named
14960 something starting with __ and the normal name is an alias. */
14961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14962 choke me
14963 #else
14964 $ac_func();
14965 #endif
14967 ; return 0; }
14969 if { (eval echo configure:14970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14970 rm -rf conftest*
14971 eval "ac_cv_func_$ac_func=yes"
14972 else
14973 echo "configure: failed program was:" >&5
14974 cat conftest.$ac_ext >&5
14975 rm -rf conftest*
14976 eval "ac_cv_func_$ac_func=no"
14978 rm -f conftest*
14981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14982 echo "$ac_t""yes" 1>&6
14983 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14984 cat >> confdefs.h <<EOF
14985 #define $ac_tr_func 1
14988 else
14989 echo "$ac_t""no" 1>&6
14991 done
14998 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
14999 echo "configure:15000: checking for modff declaration" >&5
15000 if test x${glibcpp_cv_func_modff_use+set} != xset; then
15001 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15002 echo $ac_n "(cached) $ac_c" 1>&6
15003 else
15006 ac_ext=C
15007 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15008 ac_cpp='$CXXCPP $CPPFLAGS'
15009 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15010 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15011 cross_compiling=$ac_cv_prog_cxx_cross
15013 cat > conftest.$ac_ext <<EOF
15014 #line 15015 "configure"
15015 #include "confdefs.h"
15016 #include <math.h>
15017 int main() {
15018 modff(0, 0);
15019 ; return 0; }
15021 if { (eval echo configure:15022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15022 rm -rf conftest*
15023 glibcpp_cv_func_modff_use=yes
15024 else
15025 echo "configure: failed program was:" >&5
15026 cat conftest.$ac_ext >&5
15027 rm -rf conftest*
15028 glibcpp_cv_func_modff_use=no
15030 rm -f conftest*
15031 ac_ext=c
15032 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15033 ac_cpp='$CPP $CPPFLAGS'
15034 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15035 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15036 cross_compiling=$ac_cv_prog_cc_cross
15042 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15044 if test x$glibcpp_cv_func_modff_use = x"yes"; then
15045 for ac_func in modff
15047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15048 echo "configure:15049: checking for $ac_func" >&5
15049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15050 echo $ac_n "(cached) $ac_c" 1>&6
15051 else
15052 cat > conftest.$ac_ext <<EOF
15053 #line 15054 "configure"
15054 #include "confdefs.h"
15055 /* System header to define __stub macros and hopefully few prototypes,
15056 which can conflict with char $ac_func(); below. */
15057 #include <assert.h>
15058 /* Override any gcc2 internal prototype to avoid an error. */
15059 /* We use char because int might match the return type of a gcc2
15060 builtin and then its argument prototype would still apply. */
15061 char $ac_func();
15063 int main() {
15065 /* The GNU C library defines this for functions which it implements
15066 to always fail with ENOSYS. Some functions are actually named
15067 something starting with __ and the normal name is an alias. */
15068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15069 choke me
15070 #else
15071 $ac_func();
15072 #endif
15074 ; return 0; }
15076 if { (eval echo configure:15077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15077 rm -rf conftest*
15078 eval "ac_cv_func_$ac_func=yes"
15079 else
15080 echo "configure: failed program was:" >&5
15081 cat conftest.$ac_ext >&5
15082 rm -rf conftest*
15083 eval "ac_cv_func_$ac_func=no"
15085 rm -f conftest*
15088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15089 echo "$ac_t""yes" 1>&6
15090 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15091 cat >> confdefs.h <<EOF
15092 #define $ac_tr_func 1
15095 else
15096 echo "$ac_t""no" 1>&6
15098 done
15100 else
15102 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15103 echo "configure:15104: checking for _modff declaration" >&5
15104 if test x${glibcpp_cv_func__modff_use+set} != xset; then
15105 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15106 echo $ac_n "(cached) $ac_c" 1>&6
15107 else
15110 ac_ext=C
15111 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15112 ac_cpp='$CXXCPP $CPPFLAGS'
15113 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15114 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15115 cross_compiling=$ac_cv_prog_cxx_cross
15117 cat > conftest.$ac_ext <<EOF
15118 #line 15119 "configure"
15119 #include "confdefs.h"
15120 #include <math.h>
15121 int main() {
15122 _modff(0, 0);
15123 ; return 0; }
15125 if { (eval echo configure:15126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15126 rm -rf conftest*
15127 glibcpp_cv_func__modff_use=yes
15128 else
15129 echo "configure: failed program was:" >&5
15130 cat conftest.$ac_ext >&5
15131 rm -rf conftest*
15132 glibcpp_cv_func__modff_use=no
15134 rm -f conftest*
15135 ac_ext=c
15136 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15137 ac_cpp='$CPP $CPPFLAGS'
15138 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15139 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15140 cross_compiling=$ac_cv_prog_cc_cross
15146 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15148 if test x$glibcpp_cv_func__modff_use = x"yes"; then
15149 for ac_func in _modff
15151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15152 echo "configure:15153: checking for $ac_func" >&5
15153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15154 echo $ac_n "(cached) $ac_c" 1>&6
15155 else
15156 cat > conftest.$ac_ext <<EOF
15157 #line 15158 "configure"
15158 #include "confdefs.h"
15159 /* System header to define __stub macros and hopefully few prototypes,
15160 which can conflict with char $ac_func(); below. */
15161 #include <assert.h>
15162 /* Override any gcc2 internal prototype to avoid an error. */
15163 /* We use char because int might match the return type of a gcc2
15164 builtin and then its argument prototype would still apply. */
15165 char $ac_func();
15167 int main() {
15169 /* The GNU C library defines this for functions which it implements
15170 to always fail with ENOSYS. Some functions are actually named
15171 something starting with __ and the normal name is an alias. */
15172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15173 choke me
15174 #else
15175 $ac_func();
15176 #endif
15178 ; return 0; }
15180 if { (eval echo configure:15181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15181 rm -rf conftest*
15182 eval "ac_cv_func_$ac_func=yes"
15183 else
15184 echo "configure: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15186 rm -rf conftest*
15187 eval "ac_cv_func_$ac_func=no"
15189 rm -f conftest*
15192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15193 echo "$ac_t""yes" 1>&6
15194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15195 cat >> confdefs.h <<EOF
15196 #define $ac_tr_func 1
15199 else
15200 echo "$ac_t""no" 1>&6
15202 done
15209 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15210 echo "configure:15211: checking for powf declaration" >&5
15211 if test x${glibcpp_cv_func_powf_use+set} != xset; then
15212 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15213 echo $ac_n "(cached) $ac_c" 1>&6
15214 else
15217 ac_ext=C
15218 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15219 ac_cpp='$CXXCPP $CPPFLAGS'
15220 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15221 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15222 cross_compiling=$ac_cv_prog_cxx_cross
15224 cat > conftest.$ac_ext <<EOF
15225 #line 15226 "configure"
15226 #include "confdefs.h"
15227 #include <math.h>
15228 int main() {
15229 powf(0, 0);
15230 ; return 0; }
15232 if { (eval echo configure:15233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15233 rm -rf conftest*
15234 glibcpp_cv_func_powf_use=yes
15235 else
15236 echo "configure: failed program was:" >&5
15237 cat conftest.$ac_ext >&5
15238 rm -rf conftest*
15239 glibcpp_cv_func_powf_use=no
15241 rm -f conftest*
15242 ac_ext=c
15243 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15244 ac_cpp='$CPP $CPPFLAGS'
15245 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15246 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15247 cross_compiling=$ac_cv_prog_cc_cross
15253 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15255 if test x$glibcpp_cv_func_powf_use = x"yes"; then
15256 for ac_func in powf
15258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15259 echo "configure:15260: checking for $ac_func" >&5
15260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15261 echo $ac_n "(cached) $ac_c" 1>&6
15262 else
15263 cat > conftest.$ac_ext <<EOF
15264 #line 15265 "configure"
15265 #include "confdefs.h"
15266 /* System header to define __stub macros and hopefully few prototypes,
15267 which can conflict with char $ac_func(); below. */
15268 #include <assert.h>
15269 /* Override any gcc2 internal prototype to avoid an error. */
15270 /* We use char because int might match the return type of a gcc2
15271 builtin and then its argument prototype would still apply. */
15272 char $ac_func();
15274 int main() {
15276 /* The GNU C library defines this for functions which it implements
15277 to always fail with ENOSYS. Some functions are actually named
15278 something starting with __ and the normal name is an alias. */
15279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15280 choke me
15281 #else
15282 $ac_func();
15283 #endif
15285 ; return 0; }
15287 if { (eval echo configure:15288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15288 rm -rf conftest*
15289 eval "ac_cv_func_$ac_func=yes"
15290 else
15291 echo "configure: failed program was:" >&5
15292 cat conftest.$ac_ext >&5
15293 rm -rf conftest*
15294 eval "ac_cv_func_$ac_func=no"
15296 rm -f conftest*
15299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15300 echo "$ac_t""yes" 1>&6
15301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15302 cat >> confdefs.h <<EOF
15303 #define $ac_tr_func 1
15306 else
15307 echo "$ac_t""no" 1>&6
15309 done
15311 else
15313 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15314 echo "configure:15315: checking for _powf declaration" >&5
15315 if test x${glibcpp_cv_func__powf_use+set} != xset; then
15316 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15317 echo $ac_n "(cached) $ac_c" 1>&6
15318 else
15321 ac_ext=C
15322 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15323 ac_cpp='$CXXCPP $CPPFLAGS'
15324 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15325 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15326 cross_compiling=$ac_cv_prog_cxx_cross
15328 cat > conftest.$ac_ext <<EOF
15329 #line 15330 "configure"
15330 #include "confdefs.h"
15331 #include <math.h>
15332 int main() {
15333 _powf(0, 0);
15334 ; return 0; }
15336 if { (eval echo configure:15337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15337 rm -rf conftest*
15338 glibcpp_cv_func__powf_use=yes
15339 else
15340 echo "configure: failed program was:" >&5
15341 cat conftest.$ac_ext >&5
15342 rm -rf conftest*
15343 glibcpp_cv_func__powf_use=no
15345 rm -f conftest*
15346 ac_ext=c
15347 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15348 ac_cpp='$CPP $CPPFLAGS'
15349 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15350 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15351 cross_compiling=$ac_cv_prog_cc_cross
15357 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15359 if test x$glibcpp_cv_func__powf_use = x"yes"; then
15360 for ac_func in _powf
15362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15363 echo "configure:15364: checking for $ac_func" >&5
15364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15365 echo $ac_n "(cached) $ac_c" 1>&6
15366 else
15367 cat > conftest.$ac_ext <<EOF
15368 #line 15369 "configure"
15369 #include "confdefs.h"
15370 /* System header to define __stub macros and hopefully few prototypes,
15371 which can conflict with char $ac_func(); below. */
15372 #include <assert.h>
15373 /* Override any gcc2 internal prototype to avoid an error. */
15374 /* We use char because int might match the return type of a gcc2
15375 builtin and then its argument prototype would still apply. */
15376 char $ac_func();
15378 int main() {
15380 /* The GNU C library defines this for functions which it implements
15381 to always fail with ENOSYS. Some functions are actually named
15382 something starting with __ and the normal name is an alias. */
15383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15384 choke me
15385 #else
15386 $ac_func();
15387 #endif
15389 ; return 0; }
15391 if { (eval echo configure:15392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15392 rm -rf conftest*
15393 eval "ac_cv_func_$ac_func=yes"
15394 else
15395 echo "configure: failed program was:" >&5
15396 cat conftest.$ac_ext >&5
15397 rm -rf conftest*
15398 eval "ac_cv_func_$ac_func=no"
15400 rm -f conftest*
15403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15404 echo "$ac_t""yes" 1>&6
15405 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15406 cat >> confdefs.h <<EOF
15407 #define $ac_tr_func 1
15410 else
15411 echo "$ac_t""no" 1>&6
15413 done
15420 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15421 echo "configure:15422: checking for sqrtf declaration" >&5
15422 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15423 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15424 echo $ac_n "(cached) $ac_c" 1>&6
15425 else
15428 ac_ext=C
15429 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15430 ac_cpp='$CXXCPP $CPPFLAGS'
15431 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15432 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15433 cross_compiling=$ac_cv_prog_cxx_cross
15435 cat > conftest.$ac_ext <<EOF
15436 #line 15437 "configure"
15437 #include "confdefs.h"
15438 #include <math.h>
15439 #ifdef HAVE_IEEEFP_H
15440 #include <ieeefp.h>
15441 #endif
15443 int main() {
15444 sqrtf(0);
15445 ; return 0; }
15447 if { (eval echo configure:15448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15448 rm -rf conftest*
15449 glibcpp_cv_func_sqrtf_use=yes
15450 else
15451 echo "configure: failed program was:" >&5
15452 cat conftest.$ac_ext >&5
15453 rm -rf conftest*
15454 glibcpp_cv_func_sqrtf_use=no
15456 rm -f conftest*
15457 ac_ext=c
15458 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15459 ac_cpp='$CPP $CPPFLAGS'
15460 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15461 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15462 cross_compiling=$ac_cv_prog_cc_cross
15468 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15470 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15471 for ac_func in sqrtf
15473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15474 echo "configure:15475: checking for $ac_func" >&5
15475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15476 echo $ac_n "(cached) $ac_c" 1>&6
15477 else
15478 cat > conftest.$ac_ext <<EOF
15479 #line 15480 "configure"
15480 #include "confdefs.h"
15481 /* System header to define __stub macros and hopefully few prototypes,
15482 which can conflict with char $ac_func(); below. */
15483 #include <assert.h>
15484 /* Override any gcc2 internal prototype to avoid an error. */
15485 /* We use char because int might match the return type of a gcc2
15486 builtin and then its argument prototype would still apply. */
15487 char $ac_func();
15489 int main() {
15491 /* The GNU C library defines this for functions which it implements
15492 to always fail with ENOSYS. Some functions are actually named
15493 something starting with __ and the normal name is an alias. */
15494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15495 choke me
15496 #else
15497 $ac_func();
15498 #endif
15500 ; return 0; }
15502 if { (eval echo configure:15503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15503 rm -rf conftest*
15504 eval "ac_cv_func_$ac_func=yes"
15505 else
15506 echo "configure: failed program was:" >&5
15507 cat conftest.$ac_ext >&5
15508 rm -rf conftest*
15509 eval "ac_cv_func_$ac_func=no"
15511 rm -f conftest*
15514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15515 echo "$ac_t""yes" 1>&6
15516 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15517 cat >> confdefs.h <<EOF
15518 #define $ac_tr_func 1
15521 else
15522 echo "$ac_t""no" 1>&6
15524 done
15526 else
15528 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15529 echo "configure:15530: checking for _sqrtf declaration" >&5
15530 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15531 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15532 echo $ac_n "(cached) $ac_c" 1>&6
15533 else
15536 ac_ext=C
15537 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15538 ac_cpp='$CXXCPP $CPPFLAGS'
15539 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15540 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15541 cross_compiling=$ac_cv_prog_cxx_cross
15543 cat > conftest.$ac_ext <<EOF
15544 #line 15545 "configure"
15545 #include "confdefs.h"
15546 #include <math.h>
15547 #ifdef HAVE_IEEEFP_H
15548 #include <ieeefp.h>
15549 #endif
15551 int main() {
15552 _sqrtf(0);
15553 ; return 0; }
15555 if { (eval echo configure:15556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15556 rm -rf conftest*
15557 glibcpp_cv_func__sqrtf_use=yes
15558 else
15559 echo "configure: failed program was:" >&5
15560 cat conftest.$ac_ext >&5
15561 rm -rf conftest*
15562 glibcpp_cv_func__sqrtf_use=no
15564 rm -f conftest*
15565 ac_ext=c
15566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15567 ac_cpp='$CPP $CPPFLAGS'
15568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15570 cross_compiling=$ac_cv_prog_cc_cross
15576 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15578 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15579 for ac_func in _sqrtf
15581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15582 echo "configure:15583: checking for $ac_func" >&5
15583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15584 echo $ac_n "(cached) $ac_c" 1>&6
15585 else
15586 cat > conftest.$ac_ext <<EOF
15587 #line 15588 "configure"
15588 #include "confdefs.h"
15589 /* System header to define __stub macros and hopefully few prototypes,
15590 which can conflict with char $ac_func(); below. */
15591 #include <assert.h>
15592 /* Override any gcc2 internal prototype to avoid an error. */
15593 /* We use char because int might match the return type of a gcc2
15594 builtin and then its argument prototype would still apply. */
15595 char $ac_func();
15597 int main() {
15599 /* The GNU C library defines this for functions which it implements
15600 to always fail with ENOSYS. Some functions are actually named
15601 something starting with __ and the normal name is an alias. */
15602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15603 choke me
15604 #else
15605 $ac_func();
15606 #endif
15608 ; return 0; }
15610 if { (eval echo configure:15611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15611 rm -rf conftest*
15612 eval "ac_cv_func_$ac_func=yes"
15613 else
15614 echo "configure: failed program was:" >&5
15615 cat conftest.$ac_ext >&5
15616 rm -rf conftest*
15617 eval "ac_cv_func_$ac_func=no"
15619 rm -f conftest*
15622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15623 echo "$ac_t""yes" 1>&6
15624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15625 cat >> confdefs.h <<EOF
15626 #define $ac_tr_func 1
15629 else
15630 echo "$ac_t""no" 1>&6
15632 done
15639 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15640 echo "configure:15641: checking for sincosf declaration" >&5
15641 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15642 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15643 echo $ac_n "(cached) $ac_c" 1>&6
15644 else
15647 ac_ext=C
15648 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15649 ac_cpp='$CXXCPP $CPPFLAGS'
15650 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15651 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15652 cross_compiling=$ac_cv_prog_cxx_cross
15654 cat > conftest.$ac_ext <<EOF
15655 #line 15656 "configure"
15656 #include "confdefs.h"
15657 #include <math.h>
15658 int main() {
15659 sincosf(0, 0, 0);
15660 ; return 0; }
15662 if { (eval echo configure:15663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15663 rm -rf conftest*
15664 glibcpp_cv_func_sincosf_use=yes
15665 else
15666 echo "configure: failed program was:" >&5
15667 cat conftest.$ac_ext >&5
15668 rm -rf conftest*
15669 glibcpp_cv_func_sincosf_use=no
15671 rm -f conftest*
15672 ac_ext=c
15673 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15674 ac_cpp='$CPP $CPPFLAGS'
15675 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15676 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15677 cross_compiling=$ac_cv_prog_cc_cross
15683 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15685 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15686 for ac_func in sincosf
15688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15689 echo "configure:15690: checking for $ac_func" >&5
15690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15691 echo $ac_n "(cached) $ac_c" 1>&6
15692 else
15693 cat > conftest.$ac_ext <<EOF
15694 #line 15695 "configure"
15695 #include "confdefs.h"
15696 /* System header to define __stub macros and hopefully few prototypes,
15697 which can conflict with char $ac_func(); below. */
15698 #include <assert.h>
15699 /* Override any gcc2 internal prototype to avoid an error. */
15700 /* We use char because int might match the return type of a gcc2
15701 builtin and then its argument prototype would still apply. */
15702 char $ac_func();
15704 int main() {
15706 /* The GNU C library defines this for functions which it implements
15707 to always fail with ENOSYS. Some functions are actually named
15708 something starting with __ and the normal name is an alias. */
15709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15710 choke me
15711 #else
15712 $ac_func();
15713 #endif
15715 ; return 0; }
15717 if { (eval echo configure:15718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15718 rm -rf conftest*
15719 eval "ac_cv_func_$ac_func=yes"
15720 else
15721 echo "configure: failed program was:" >&5
15722 cat conftest.$ac_ext >&5
15723 rm -rf conftest*
15724 eval "ac_cv_func_$ac_func=no"
15726 rm -f conftest*
15729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15730 echo "$ac_t""yes" 1>&6
15731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15732 cat >> confdefs.h <<EOF
15733 #define $ac_tr_func 1
15736 else
15737 echo "$ac_t""no" 1>&6
15739 done
15741 else
15743 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15744 echo "configure:15745: checking for _sincosf declaration" >&5
15745 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15746 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15747 echo $ac_n "(cached) $ac_c" 1>&6
15748 else
15751 ac_ext=C
15752 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15753 ac_cpp='$CXXCPP $CPPFLAGS'
15754 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15755 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15756 cross_compiling=$ac_cv_prog_cxx_cross
15758 cat > conftest.$ac_ext <<EOF
15759 #line 15760 "configure"
15760 #include "confdefs.h"
15761 #include <math.h>
15762 int main() {
15763 _sincosf(0, 0, 0);
15764 ; return 0; }
15766 if { (eval echo configure:15767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15767 rm -rf conftest*
15768 glibcpp_cv_func__sincosf_use=yes
15769 else
15770 echo "configure: failed program was:" >&5
15771 cat conftest.$ac_ext >&5
15772 rm -rf conftest*
15773 glibcpp_cv_func__sincosf_use=no
15775 rm -f conftest*
15776 ac_ext=c
15777 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15778 ac_cpp='$CPP $CPPFLAGS'
15779 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15780 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15781 cross_compiling=$ac_cv_prog_cc_cross
15787 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15789 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15790 for ac_func in _sincosf
15792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15793 echo "configure:15794: checking for $ac_func" >&5
15794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15795 echo $ac_n "(cached) $ac_c" 1>&6
15796 else
15797 cat > conftest.$ac_ext <<EOF
15798 #line 15799 "configure"
15799 #include "confdefs.h"
15800 /* System header to define __stub macros and hopefully few prototypes,
15801 which can conflict with char $ac_func(); below. */
15802 #include <assert.h>
15803 /* Override any gcc2 internal prototype to avoid an error. */
15804 /* We use char because int might match the return type of a gcc2
15805 builtin and then its argument prototype would still apply. */
15806 char $ac_func();
15808 int main() {
15810 /* The GNU C library defines this for functions which it implements
15811 to always fail with ENOSYS. Some functions are actually named
15812 something starting with __ and the normal name is an alias. */
15813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15814 choke me
15815 #else
15816 $ac_func();
15817 #endif
15819 ; return 0; }
15821 if { (eval echo configure:15822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15822 rm -rf conftest*
15823 eval "ac_cv_func_$ac_func=yes"
15824 else
15825 echo "configure: failed program was:" >&5
15826 cat conftest.$ac_ext >&5
15827 rm -rf conftest*
15828 eval "ac_cv_func_$ac_func=no"
15830 rm -f conftest*
15833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15834 echo "$ac_t""yes" 1>&6
15835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15836 cat >> confdefs.h <<EOF
15837 #define $ac_tr_func 1
15840 else
15841 echo "$ac_t""no" 1>&6
15843 done
15850 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15851 echo "configure:15852: checking for finitef declaration" >&5
15852 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15853 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15854 echo $ac_n "(cached) $ac_c" 1>&6
15855 else
15858 ac_ext=C
15859 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15860 ac_cpp='$CXXCPP $CPPFLAGS'
15861 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15862 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15863 cross_compiling=$ac_cv_prog_cxx_cross
15865 cat > conftest.$ac_ext <<EOF
15866 #line 15867 "configure"
15867 #include "confdefs.h"
15868 #include <math.h>
15869 #ifdef HAVE_IEEEFP_H
15870 #include <ieeefp.h>
15871 #endif
15873 int main() {
15874 finitef(0);
15875 ; return 0; }
15877 if { (eval echo configure:15878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15878 rm -rf conftest*
15879 glibcpp_cv_func_finitef_use=yes
15880 else
15881 echo "configure: failed program was:" >&5
15882 cat conftest.$ac_ext >&5
15883 rm -rf conftest*
15884 glibcpp_cv_func_finitef_use=no
15886 rm -f conftest*
15887 ac_ext=c
15888 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15889 ac_cpp='$CPP $CPPFLAGS'
15890 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15891 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15892 cross_compiling=$ac_cv_prog_cc_cross
15898 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15900 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15901 for ac_func in finitef
15903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15904 echo "configure:15905: checking for $ac_func" >&5
15905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15906 echo $ac_n "(cached) $ac_c" 1>&6
15907 else
15908 cat > conftest.$ac_ext <<EOF
15909 #line 15910 "configure"
15910 #include "confdefs.h"
15911 /* System header to define __stub macros and hopefully few prototypes,
15912 which can conflict with char $ac_func(); below. */
15913 #include <assert.h>
15914 /* Override any gcc2 internal prototype to avoid an error. */
15915 /* We use char because int might match the return type of a gcc2
15916 builtin and then its argument prototype would still apply. */
15917 char $ac_func();
15919 int main() {
15921 /* The GNU C library defines this for functions which it implements
15922 to always fail with ENOSYS. Some functions are actually named
15923 something starting with __ and the normal name is an alias. */
15924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15925 choke me
15926 #else
15927 $ac_func();
15928 #endif
15930 ; return 0; }
15932 if { (eval echo configure:15933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15933 rm -rf conftest*
15934 eval "ac_cv_func_$ac_func=yes"
15935 else
15936 echo "configure: failed program was:" >&5
15937 cat conftest.$ac_ext >&5
15938 rm -rf conftest*
15939 eval "ac_cv_func_$ac_func=no"
15941 rm -f conftest*
15944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15945 echo "$ac_t""yes" 1>&6
15946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15947 cat >> confdefs.h <<EOF
15948 #define $ac_tr_func 1
15951 else
15952 echo "$ac_t""no" 1>&6
15954 done
15956 else
15958 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15959 echo "configure:15960: checking for _finitef declaration" >&5
15960 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15961 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15962 echo $ac_n "(cached) $ac_c" 1>&6
15963 else
15966 ac_ext=C
15967 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15968 ac_cpp='$CXXCPP $CPPFLAGS'
15969 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15970 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15971 cross_compiling=$ac_cv_prog_cxx_cross
15973 cat > conftest.$ac_ext <<EOF
15974 #line 15975 "configure"
15975 #include "confdefs.h"
15976 #include <math.h>
15977 #ifdef HAVE_IEEEFP_H
15978 #include <ieeefp.h>
15979 #endif
15981 int main() {
15982 _finitef(0);
15983 ; return 0; }
15985 if { (eval echo configure:15986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15986 rm -rf conftest*
15987 glibcpp_cv_func__finitef_use=yes
15988 else
15989 echo "configure: failed program was:" >&5
15990 cat conftest.$ac_ext >&5
15991 rm -rf conftest*
15992 glibcpp_cv_func__finitef_use=no
15994 rm -f conftest*
15995 ac_ext=c
15996 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15997 ac_cpp='$CPP $CPPFLAGS'
15998 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15999 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16000 cross_compiling=$ac_cv_prog_cc_cross
16006 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16008 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16009 for ac_func in _finitef
16011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16012 echo "configure:16013: checking for $ac_func" >&5
16013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16014 echo $ac_n "(cached) $ac_c" 1>&6
16015 else
16016 cat > conftest.$ac_ext <<EOF
16017 #line 16018 "configure"
16018 #include "confdefs.h"
16019 /* System header to define __stub macros and hopefully few prototypes,
16020 which can conflict with char $ac_func(); below. */
16021 #include <assert.h>
16022 /* Override any gcc2 internal prototype to avoid an error. */
16023 /* We use char because int might match the return type of a gcc2
16024 builtin and then its argument prototype would still apply. */
16025 char $ac_func();
16027 int main() {
16029 /* The GNU C library defines this for functions which it implements
16030 to always fail with ENOSYS. Some functions are actually named
16031 something starting with __ and the normal name is an alias. */
16032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16033 choke me
16034 #else
16035 $ac_func();
16036 #endif
16038 ; return 0; }
16040 if { (eval echo configure:16041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16041 rm -rf conftest*
16042 eval "ac_cv_func_$ac_func=yes"
16043 else
16044 echo "configure: failed program was:" >&5
16045 cat conftest.$ac_ext >&5
16046 rm -rf conftest*
16047 eval "ac_cv_func_$ac_func=no"
16049 rm -f conftest*
16052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16053 echo "$ac_t""yes" 1>&6
16054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16055 cat >> confdefs.h <<EOF
16056 #define $ac_tr_func 1
16059 else
16060 echo "$ac_t""no" 1>&6
16062 done
16069 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16070 echo "configure:16071: checking for long double trig functions" >&5
16071 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16072 echo $ac_n "(cached) $ac_c" 1>&6
16073 else
16076 ac_ext=C
16077 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16078 ac_cpp='$CXXCPP $CPPFLAGS'
16079 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16080 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16081 cross_compiling=$ac_cv_prog_cxx_cross
16083 cat > conftest.$ac_ext <<EOF
16084 #line 16085 "configure"
16085 #include "confdefs.h"
16086 #include <math.h>
16087 int main() {
16088 `for x in acosl asinl atanl \
16089 cosl sinl tanl \
16090 coshl sinhl tanhl; do echo "$x (0);"; done`
16091 ; return 0; }
16093 if { (eval echo configure:16094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16094 rm -rf conftest*
16095 glibcpp_cv_func_long_double_trig_use=yes
16096 else
16097 echo "configure: failed program was:" >&5
16098 cat conftest.$ac_ext >&5
16099 rm -rf conftest*
16100 glibcpp_cv_func_long_double_trig_use=no
16102 rm -f conftest*
16103 ac_ext=c
16104 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16105 ac_cpp='$CPP $CPPFLAGS'
16106 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16107 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16108 cross_compiling=$ac_cv_prog_cc_cross
16112 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16113 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16114 for ac_func in acosl asinl atanl \
16115 cosl sinl tanl \
16116 coshl sinhl tanhl
16118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16119 echo "configure:16120: checking for $ac_func" >&5
16120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16121 echo $ac_n "(cached) $ac_c" 1>&6
16122 else
16123 cat > conftest.$ac_ext <<EOF
16124 #line 16125 "configure"
16125 #include "confdefs.h"
16126 /* System header to define __stub macros and hopefully few prototypes,
16127 which can conflict with char $ac_func(); below. */
16128 #include <assert.h>
16129 /* Override any gcc2 internal prototype to avoid an error. */
16130 /* We use char because int might match the return type of a gcc2
16131 builtin and then its argument prototype would still apply. */
16132 char $ac_func();
16134 int main() {
16136 /* The GNU C library defines this for functions which it implements
16137 to always fail with ENOSYS. Some functions are actually named
16138 something starting with __ and the normal name is an alias. */
16139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16140 choke me
16141 #else
16142 $ac_func();
16143 #endif
16145 ; return 0; }
16147 if { (eval echo configure:16148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16148 rm -rf conftest*
16149 eval "ac_cv_func_$ac_func=yes"
16150 else
16151 echo "configure: failed program was:" >&5
16152 cat conftest.$ac_ext >&5
16153 rm -rf conftest*
16154 eval "ac_cv_func_$ac_func=no"
16156 rm -f conftest*
16159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16160 echo "$ac_t""yes" 1>&6
16161 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16162 cat >> confdefs.h <<EOF
16163 #define $ac_tr_func 1
16166 else
16167 echo "$ac_t""no" 1>&6
16169 done
16174 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16175 echo "configure:16176: checking for long double round functions" >&5
16176 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16177 echo $ac_n "(cached) $ac_c" 1>&6
16178 else
16181 ac_ext=C
16182 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16183 ac_cpp='$CXXCPP $CPPFLAGS'
16184 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16185 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16186 cross_compiling=$ac_cv_prog_cxx_cross
16188 cat > conftest.$ac_ext <<EOF
16189 #line 16190 "configure"
16190 #include "confdefs.h"
16191 #include <math.h>
16192 int main() {
16193 `for x in ceill floorl; do echo "$x (0);"; done`
16194 ; return 0; }
16196 if { (eval echo configure:16197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16197 rm -rf conftest*
16198 glibcpp_cv_func_long_double_round_use=yes
16199 else
16200 echo "configure: failed program was:" >&5
16201 cat conftest.$ac_ext >&5
16202 rm -rf conftest*
16203 glibcpp_cv_func_long_double_round_use=no
16205 rm -f conftest*
16206 ac_ext=c
16207 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16208 ac_cpp='$CPP $CPPFLAGS'
16209 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16210 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16211 cross_compiling=$ac_cv_prog_cc_cross
16215 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16216 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16217 for ac_func in ceill floorl
16219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16220 echo "configure:16221: checking for $ac_func" >&5
16221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16222 echo $ac_n "(cached) $ac_c" 1>&6
16223 else
16224 cat > conftest.$ac_ext <<EOF
16225 #line 16226 "configure"
16226 #include "confdefs.h"
16227 /* System header to define __stub macros and hopefully few prototypes,
16228 which can conflict with char $ac_func(); below. */
16229 #include <assert.h>
16230 /* Override any gcc2 internal prototype to avoid an error. */
16231 /* We use char because int might match the return type of a gcc2
16232 builtin and then its argument prototype would still apply. */
16233 char $ac_func();
16235 int main() {
16237 /* The GNU C library defines this for functions which it implements
16238 to always fail with ENOSYS. Some functions are actually named
16239 something starting with __ and the normal name is an alias. */
16240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16241 choke me
16242 #else
16243 $ac_func();
16244 #endif
16246 ; return 0; }
16248 if { (eval echo configure:16249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16249 rm -rf conftest*
16250 eval "ac_cv_func_$ac_func=yes"
16251 else
16252 echo "configure: failed program was:" >&5
16253 cat conftest.$ac_ext >&5
16254 rm -rf conftest*
16255 eval "ac_cv_func_$ac_func=no"
16257 rm -f conftest*
16260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16261 echo "$ac_t""yes" 1>&6
16262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16263 cat >> confdefs.h <<EOF
16264 #define $ac_tr_func 1
16267 else
16268 echo "$ac_t""no" 1>&6
16270 done
16276 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16277 echo "configure:16278: checking for isnanl declaration" >&5
16278 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16279 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16280 echo $ac_n "(cached) $ac_c" 1>&6
16281 else
16284 ac_ext=C
16285 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16286 ac_cpp='$CXXCPP $CPPFLAGS'
16287 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16288 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16289 cross_compiling=$ac_cv_prog_cxx_cross
16291 cat > conftest.$ac_ext <<EOF
16292 #line 16293 "configure"
16293 #include "confdefs.h"
16294 #include <math.h>
16295 #ifdef HAVE_IEEEFP_H
16296 #include <ieeefp.h>
16297 #endif
16299 int main() {
16300 isnanl(0);
16301 ; return 0; }
16303 if { (eval echo configure:16304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16304 rm -rf conftest*
16305 glibcpp_cv_func_isnanl_use=yes
16306 else
16307 echo "configure: failed program was:" >&5
16308 cat conftest.$ac_ext >&5
16309 rm -rf conftest*
16310 glibcpp_cv_func_isnanl_use=no
16312 rm -f conftest*
16313 ac_ext=c
16314 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16315 ac_cpp='$CPP $CPPFLAGS'
16316 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16317 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16318 cross_compiling=$ac_cv_prog_cc_cross
16324 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16326 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16327 for ac_func in isnanl
16329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16330 echo "configure:16331: checking for $ac_func" >&5
16331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16332 echo $ac_n "(cached) $ac_c" 1>&6
16333 else
16334 cat > conftest.$ac_ext <<EOF
16335 #line 16336 "configure"
16336 #include "confdefs.h"
16337 /* System header to define __stub macros and hopefully few prototypes,
16338 which can conflict with char $ac_func(); below. */
16339 #include <assert.h>
16340 /* Override any gcc2 internal prototype to avoid an error. */
16341 /* We use char because int might match the return type of a gcc2
16342 builtin and then its argument prototype would still apply. */
16343 char $ac_func();
16345 int main() {
16347 /* The GNU C library defines this for functions which it implements
16348 to always fail with ENOSYS. Some functions are actually named
16349 something starting with __ and the normal name is an alias. */
16350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16351 choke me
16352 #else
16353 $ac_func();
16354 #endif
16356 ; return 0; }
16358 if { (eval echo configure:16359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16359 rm -rf conftest*
16360 eval "ac_cv_func_$ac_func=yes"
16361 else
16362 echo "configure: failed program was:" >&5
16363 cat conftest.$ac_ext >&5
16364 rm -rf conftest*
16365 eval "ac_cv_func_$ac_func=no"
16367 rm -f conftest*
16370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16371 echo "$ac_t""yes" 1>&6
16372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16373 cat >> confdefs.h <<EOF
16374 #define $ac_tr_func 1
16377 else
16378 echo "$ac_t""no" 1>&6
16380 done
16382 else
16384 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16385 echo "configure:16386: checking for _isnanl declaration" >&5
16386 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16387 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16388 echo $ac_n "(cached) $ac_c" 1>&6
16389 else
16392 ac_ext=C
16393 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16394 ac_cpp='$CXXCPP $CPPFLAGS'
16395 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16396 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16397 cross_compiling=$ac_cv_prog_cxx_cross
16399 cat > conftest.$ac_ext <<EOF
16400 #line 16401 "configure"
16401 #include "confdefs.h"
16402 #include <math.h>
16403 #ifdef HAVE_IEEEFP_H
16404 #include <ieeefp.h>
16405 #endif
16407 int main() {
16408 _isnanl(0);
16409 ; return 0; }
16411 if { (eval echo configure:16412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16412 rm -rf conftest*
16413 glibcpp_cv_func__isnanl_use=yes
16414 else
16415 echo "configure: failed program was:" >&5
16416 cat conftest.$ac_ext >&5
16417 rm -rf conftest*
16418 glibcpp_cv_func__isnanl_use=no
16420 rm -f conftest*
16421 ac_ext=c
16422 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16423 ac_cpp='$CPP $CPPFLAGS'
16424 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16425 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16426 cross_compiling=$ac_cv_prog_cc_cross
16432 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16434 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16435 for ac_func in _isnanl
16437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16438 echo "configure:16439: checking for $ac_func" >&5
16439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16440 echo $ac_n "(cached) $ac_c" 1>&6
16441 else
16442 cat > conftest.$ac_ext <<EOF
16443 #line 16444 "configure"
16444 #include "confdefs.h"
16445 /* System header to define __stub macros and hopefully few prototypes,
16446 which can conflict with char $ac_func(); below. */
16447 #include <assert.h>
16448 /* Override any gcc2 internal prototype to avoid an error. */
16449 /* We use char because int might match the return type of a gcc2
16450 builtin and then its argument prototype would still apply. */
16451 char $ac_func();
16453 int main() {
16455 /* The GNU C library defines this for functions which it implements
16456 to always fail with ENOSYS. Some functions are actually named
16457 something starting with __ and the normal name is an alias. */
16458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16459 choke me
16460 #else
16461 $ac_func();
16462 #endif
16464 ; return 0; }
16466 if { (eval echo configure:16467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16467 rm -rf conftest*
16468 eval "ac_cv_func_$ac_func=yes"
16469 else
16470 echo "configure: failed program was:" >&5
16471 cat conftest.$ac_ext >&5
16472 rm -rf conftest*
16473 eval "ac_cv_func_$ac_func=no"
16475 rm -f conftest*
16478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16479 echo "$ac_t""yes" 1>&6
16480 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16481 cat >> confdefs.h <<EOF
16482 #define $ac_tr_func 1
16485 else
16486 echo "$ac_t""no" 1>&6
16488 done
16495 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16496 echo "configure:16497: checking for isinfl declaration" >&5
16497 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16498 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16499 echo $ac_n "(cached) $ac_c" 1>&6
16500 else
16503 ac_ext=C
16504 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16505 ac_cpp='$CXXCPP $CPPFLAGS'
16506 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16507 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16508 cross_compiling=$ac_cv_prog_cxx_cross
16510 cat > conftest.$ac_ext <<EOF
16511 #line 16512 "configure"
16512 #include "confdefs.h"
16513 #include <math.h>
16514 #ifdef HAVE_IEEEFP_H
16515 #include <ieeefp.h>
16516 #endif
16518 int main() {
16519 isinfl(0);
16520 ; return 0; }
16522 if { (eval echo configure:16523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16523 rm -rf conftest*
16524 glibcpp_cv_func_isinfl_use=yes
16525 else
16526 echo "configure: failed program was:" >&5
16527 cat conftest.$ac_ext >&5
16528 rm -rf conftest*
16529 glibcpp_cv_func_isinfl_use=no
16531 rm -f conftest*
16532 ac_ext=c
16533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16534 ac_cpp='$CPP $CPPFLAGS'
16535 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16536 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16537 cross_compiling=$ac_cv_prog_cc_cross
16543 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16545 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16546 for ac_func in isinfl
16548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16549 echo "configure:16550: checking for $ac_func" >&5
16550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16551 echo $ac_n "(cached) $ac_c" 1>&6
16552 else
16553 cat > conftest.$ac_ext <<EOF
16554 #line 16555 "configure"
16555 #include "confdefs.h"
16556 /* System header to define __stub macros and hopefully few prototypes,
16557 which can conflict with char $ac_func(); below. */
16558 #include <assert.h>
16559 /* Override any gcc2 internal prototype to avoid an error. */
16560 /* We use char because int might match the return type of a gcc2
16561 builtin and then its argument prototype would still apply. */
16562 char $ac_func();
16564 int main() {
16566 /* The GNU C library defines this for functions which it implements
16567 to always fail with ENOSYS. Some functions are actually named
16568 something starting with __ and the normal name is an alias. */
16569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16570 choke me
16571 #else
16572 $ac_func();
16573 #endif
16575 ; return 0; }
16577 if { (eval echo configure:16578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16578 rm -rf conftest*
16579 eval "ac_cv_func_$ac_func=yes"
16580 else
16581 echo "configure: failed program was:" >&5
16582 cat conftest.$ac_ext >&5
16583 rm -rf conftest*
16584 eval "ac_cv_func_$ac_func=no"
16586 rm -f conftest*
16589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16590 echo "$ac_t""yes" 1>&6
16591 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16592 cat >> confdefs.h <<EOF
16593 #define $ac_tr_func 1
16596 else
16597 echo "$ac_t""no" 1>&6
16599 done
16601 else
16603 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16604 echo "configure:16605: checking for _isinfl declaration" >&5
16605 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16606 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16607 echo $ac_n "(cached) $ac_c" 1>&6
16608 else
16611 ac_ext=C
16612 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16613 ac_cpp='$CXXCPP $CPPFLAGS'
16614 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16615 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16616 cross_compiling=$ac_cv_prog_cxx_cross
16618 cat > conftest.$ac_ext <<EOF
16619 #line 16620 "configure"
16620 #include "confdefs.h"
16621 #include <math.h>
16622 #ifdef HAVE_IEEEFP_H
16623 #include <ieeefp.h>
16624 #endif
16626 int main() {
16627 _isinfl(0);
16628 ; return 0; }
16630 if { (eval echo configure:16631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16631 rm -rf conftest*
16632 glibcpp_cv_func__isinfl_use=yes
16633 else
16634 echo "configure: failed program was:" >&5
16635 cat conftest.$ac_ext >&5
16636 rm -rf conftest*
16637 glibcpp_cv_func__isinfl_use=no
16639 rm -f conftest*
16640 ac_ext=c
16641 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16642 ac_cpp='$CPP $CPPFLAGS'
16643 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16644 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16645 cross_compiling=$ac_cv_prog_cc_cross
16651 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16653 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16654 for ac_func in _isinfl
16656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16657 echo "configure:16658: checking for $ac_func" >&5
16658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16659 echo $ac_n "(cached) $ac_c" 1>&6
16660 else
16661 cat > conftest.$ac_ext <<EOF
16662 #line 16663 "configure"
16663 #include "confdefs.h"
16664 /* System header to define __stub macros and hopefully few prototypes,
16665 which can conflict with char $ac_func(); below. */
16666 #include <assert.h>
16667 /* Override any gcc2 internal prototype to avoid an error. */
16668 /* We use char because int might match the return type of a gcc2
16669 builtin and then its argument prototype would still apply. */
16670 char $ac_func();
16672 int main() {
16674 /* The GNU C library defines this for functions which it implements
16675 to always fail with ENOSYS. Some functions are actually named
16676 something starting with __ and the normal name is an alias. */
16677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16678 choke me
16679 #else
16680 $ac_func();
16681 #endif
16683 ; return 0; }
16685 if { (eval echo configure:16686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16686 rm -rf conftest*
16687 eval "ac_cv_func_$ac_func=yes"
16688 else
16689 echo "configure: failed program was:" >&5
16690 cat conftest.$ac_ext >&5
16691 rm -rf conftest*
16692 eval "ac_cv_func_$ac_func=no"
16694 rm -f conftest*
16697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16698 echo "$ac_t""yes" 1>&6
16699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16700 cat >> confdefs.h <<EOF
16701 #define $ac_tr_func 1
16704 else
16705 echo "$ac_t""no" 1>&6
16707 done
16714 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16715 echo "configure:16716: checking for copysignl declaration" >&5
16716 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16717 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16718 echo $ac_n "(cached) $ac_c" 1>&6
16719 else
16722 ac_ext=C
16723 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16724 ac_cpp='$CXXCPP $CPPFLAGS'
16725 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16726 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16727 cross_compiling=$ac_cv_prog_cxx_cross
16729 cat > conftest.$ac_ext <<EOF
16730 #line 16731 "configure"
16731 #include "confdefs.h"
16732 #include <math.h>
16733 int main() {
16734 copysignl(0, 0);
16735 ; return 0; }
16737 if { (eval echo configure:16738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16738 rm -rf conftest*
16739 glibcpp_cv_func_copysignl_use=yes
16740 else
16741 echo "configure: failed program was:" >&5
16742 cat conftest.$ac_ext >&5
16743 rm -rf conftest*
16744 glibcpp_cv_func_copysignl_use=no
16746 rm -f conftest*
16747 ac_ext=c
16748 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16749 ac_cpp='$CPP $CPPFLAGS'
16750 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16751 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16752 cross_compiling=$ac_cv_prog_cc_cross
16758 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16760 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16761 for ac_func in copysignl
16763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16764 echo "configure:16765: checking for $ac_func" >&5
16765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16766 echo $ac_n "(cached) $ac_c" 1>&6
16767 else
16768 cat > conftest.$ac_ext <<EOF
16769 #line 16770 "configure"
16770 #include "confdefs.h"
16771 /* System header to define __stub macros and hopefully few prototypes,
16772 which can conflict with char $ac_func(); below. */
16773 #include <assert.h>
16774 /* Override any gcc2 internal prototype to avoid an error. */
16775 /* We use char because int might match the return type of a gcc2
16776 builtin and then its argument prototype would still apply. */
16777 char $ac_func();
16779 int main() {
16781 /* The GNU C library defines this for functions which it implements
16782 to always fail with ENOSYS. Some functions are actually named
16783 something starting with __ and the normal name is an alias. */
16784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16785 choke me
16786 #else
16787 $ac_func();
16788 #endif
16790 ; return 0; }
16792 if { (eval echo configure:16793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16793 rm -rf conftest*
16794 eval "ac_cv_func_$ac_func=yes"
16795 else
16796 echo "configure: failed program was:" >&5
16797 cat conftest.$ac_ext >&5
16798 rm -rf conftest*
16799 eval "ac_cv_func_$ac_func=no"
16801 rm -f conftest*
16804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16805 echo "$ac_t""yes" 1>&6
16806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16807 cat >> confdefs.h <<EOF
16808 #define $ac_tr_func 1
16811 else
16812 echo "$ac_t""no" 1>&6
16814 done
16816 else
16818 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16819 echo "configure:16820: checking for _copysignl declaration" >&5
16820 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16821 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16822 echo $ac_n "(cached) $ac_c" 1>&6
16823 else
16826 ac_ext=C
16827 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16828 ac_cpp='$CXXCPP $CPPFLAGS'
16829 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16830 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16831 cross_compiling=$ac_cv_prog_cxx_cross
16833 cat > conftest.$ac_ext <<EOF
16834 #line 16835 "configure"
16835 #include "confdefs.h"
16836 #include <math.h>
16837 int main() {
16838 _copysignl(0, 0);
16839 ; return 0; }
16841 if { (eval echo configure:16842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16842 rm -rf conftest*
16843 glibcpp_cv_func__copysignl_use=yes
16844 else
16845 echo "configure: failed program was:" >&5
16846 cat conftest.$ac_ext >&5
16847 rm -rf conftest*
16848 glibcpp_cv_func__copysignl_use=no
16850 rm -f conftest*
16851 ac_ext=c
16852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16853 ac_cpp='$CPP $CPPFLAGS'
16854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16856 cross_compiling=$ac_cv_prog_cc_cross
16862 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16864 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16865 for ac_func in _copysignl
16867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16868 echo "configure:16869: checking for $ac_func" >&5
16869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16870 echo $ac_n "(cached) $ac_c" 1>&6
16871 else
16872 cat > conftest.$ac_ext <<EOF
16873 #line 16874 "configure"
16874 #include "confdefs.h"
16875 /* System header to define __stub macros and hopefully few prototypes,
16876 which can conflict with char $ac_func(); below. */
16877 #include <assert.h>
16878 /* Override any gcc2 internal prototype to avoid an error. */
16879 /* We use char because int might match the return type of a gcc2
16880 builtin and then its argument prototype would still apply. */
16881 char $ac_func();
16883 int main() {
16885 /* The GNU C library defines this for functions which it implements
16886 to always fail with ENOSYS. Some functions are actually named
16887 something starting with __ and the normal name is an alias. */
16888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16889 choke me
16890 #else
16891 $ac_func();
16892 #endif
16894 ; return 0; }
16896 if { (eval echo configure:16897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16897 rm -rf conftest*
16898 eval "ac_cv_func_$ac_func=yes"
16899 else
16900 echo "configure: failed program was:" >&5
16901 cat conftest.$ac_ext >&5
16902 rm -rf conftest*
16903 eval "ac_cv_func_$ac_func=no"
16905 rm -f conftest*
16908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16909 echo "$ac_t""yes" 1>&6
16910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16911 cat >> confdefs.h <<EOF
16912 #define $ac_tr_func 1
16915 else
16916 echo "$ac_t""no" 1>&6
16918 done
16925 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16926 echo "configure:16927: checking for atan2l declaration" >&5
16927 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16928 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16929 echo $ac_n "(cached) $ac_c" 1>&6
16930 else
16933 ac_ext=C
16934 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16935 ac_cpp='$CXXCPP $CPPFLAGS'
16936 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16937 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16938 cross_compiling=$ac_cv_prog_cxx_cross
16940 cat > conftest.$ac_ext <<EOF
16941 #line 16942 "configure"
16942 #include "confdefs.h"
16943 #include <math.h>
16944 int main() {
16945 atan2l(0, 0);
16946 ; return 0; }
16948 if { (eval echo configure:16949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16949 rm -rf conftest*
16950 glibcpp_cv_func_atan2l_use=yes
16951 else
16952 echo "configure: failed program was:" >&5
16953 cat conftest.$ac_ext >&5
16954 rm -rf conftest*
16955 glibcpp_cv_func_atan2l_use=no
16957 rm -f conftest*
16958 ac_ext=c
16959 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16960 ac_cpp='$CPP $CPPFLAGS'
16961 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16962 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16963 cross_compiling=$ac_cv_prog_cc_cross
16969 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
16971 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
16972 for ac_func in atan2l
16974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16975 echo "configure:16976: checking for $ac_func" >&5
16976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16977 echo $ac_n "(cached) $ac_c" 1>&6
16978 else
16979 cat > conftest.$ac_ext <<EOF
16980 #line 16981 "configure"
16981 #include "confdefs.h"
16982 /* System header to define __stub macros and hopefully few prototypes,
16983 which can conflict with char $ac_func(); below. */
16984 #include <assert.h>
16985 /* Override any gcc2 internal prototype to avoid an error. */
16986 /* We use char because int might match the return type of a gcc2
16987 builtin and then its argument prototype would still apply. */
16988 char $ac_func();
16990 int main() {
16992 /* The GNU C library defines this for functions which it implements
16993 to always fail with ENOSYS. Some functions are actually named
16994 something starting with __ and the normal name is an alias. */
16995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16996 choke me
16997 #else
16998 $ac_func();
16999 #endif
17001 ; return 0; }
17003 if { (eval echo configure:17004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17004 rm -rf conftest*
17005 eval "ac_cv_func_$ac_func=yes"
17006 else
17007 echo "configure: failed program was:" >&5
17008 cat conftest.$ac_ext >&5
17009 rm -rf conftest*
17010 eval "ac_cv_func_$ac_func=no"
17012 rm -f conftest*
17015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17016 echo "$ac_t""yes" 1>&6
17017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17018 cat >> confdefs.h <<EOF
17019 #define $ac_tr_func 1
17022 else
17023 echo "$ac_t""no" 1>&6
17025 done
17027 else
17029 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17030 echo "configure:17031: checking for _atan2l declaration" >&5
17031 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17032 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17033 echo $ac_n "(cached) $ac_c" 1>&6
17034 else
17037 ac_ext=C
17038 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17039 ac_cpp='$CXXCPP $CPPFLAGS'
17040 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17041 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17042 cross_compiling=$ac_cv_prog_cxx_cross
17044 cat > conftest.$ac_ext <<EOF
17045 #line 17046 "configure"
17046 #include "confdefs.h"
17047 #include <math.h>
17048 int main() {
17049 _atan2l(0, 0);
17050 ; return 0; }
17052 if { (eval echo configure:17053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17053 rm -rf conftest*
17054 glibcpp_cv_func__atan2l_use=yes
17055 else
17056 echo "configure: failed program was:" >&5
17057 cat conftest.$ac_ext >&5
17058 rm -rf conftest*
17059 glibcpp_cv_func__atan2l_use=no
17061 rm -f conftest*
17062 ac_ext=c
17063 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17064 ac_cpp='$CPP $CPPFLAGS'
17065 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17066 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17067 cross_compiling=$ac_cv_prog_cc_cross
17073 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17075 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17076 for ac_func in _atan2l
17078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17079 echo "configure:17080: checking for $ac_func" >&5
17080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17081 echo $ac_n "(cached) $ac_c" 1>&6
17082 else
17083 cat > conftest.$ac_ext <<EOF
17084 #line 17085 "configure"
17085 #include "confdefs.h"
17086 /* System header to define __stub macros and hopefully few prototypes,
17087 which can conflict with char $ac_func(); below. */
17088 #include <assert.h>
17089 /* Override any gcc2 internal prototype to avoid an error. */
17090 /* We use char because int might match the return type of a gcc2
17091 builtin and then its argument prototype would still apply. */
17092 char $ac_func();
17094 int main() {
17096 /* The GNU C library defines this for functions which it implements
17097 to always fail with ENOSYS. Some functions are actually named
17098 something starting with __ and the normal name is an alias. */
17099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17100 choke me
17101 #else
17102 $ac_func();
17103 #endif
17105 ; return 0; }
17107 if { (eval echo configure:17108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17108 rm -rf conftest*
17109 eval "ac_cv_func_$ac_func=yes"
17110 else
17111 echo "configure: failed program was:" >&5
17112 cat conftest.$ac_ext >&5
17113 rm -rf conftest*
17114 eval "ac_cv_func_$ac_func=no"
17116 rm -f conftest*
17119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17120 echo "$ac_t""yes" 1>&6
17121 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17122 cat >> confdefs.h <<EOF
17123 #define $ac_tr_func 1
17126 else
17127 echo "$ac_t""no" 1>&6
17129 done
17136 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17137 echo "configure:17138: checking for expl declaration" >&5
17138 if test x${glibcpp_cv_func_expl_use+set} != xset; then
17139 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17140 echo $ac_n "(cached) $ac_c" 1>&6
17141 else
17144 ac_ext=C
17145 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17146 ac_cpp='$CXXCPP $CPPFLAGS'
17147 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17148 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17149 cross_compiling=$ac_cv_prog_cxx_cross
17151 cat > conftest.$ac_ext <<EOF
17152 #line 17153 "configure"
17153 #include "confdefs.h"
17154 #include <math.h>
17155 #ifdef HAVE_IEEEFP_H
17156 #include <ieeefp.h>
17157 #endif
17159 int main() {
17160 expl(0);
17161 ; return 0; }
17163 if { (eval echo configure:17164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17164 rm -rf conftest*
17165 glibcpp_cv_func_expl_use=yes
17166 else
17167 echo "configure: failed program was:" >&5
17168 cat conftest.$ac_ext >&5
17169 rm -rf conftest*
17170 glibcpp_cv_func_expl_use=no
17172 rm -f conftest*
17173 ac_ext=c
17174 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17175 ac_cpp='$CPP $CPPFLAGS'
17176 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17177 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17178 cross_compiling=$ac_cv_prog_cc_cross
17184 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17186 if test x$glibcpp_cv_func_expl_use = x"yes"; then
17187 for ac_func in expl
17189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17190 echo "configure:17191: checking for $ac_func" >&5
17191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17192 echo $ac_n "(cached) $ac_c" 1>&6
17193 else
17194 cat > conftest.$ac_ext <<EOF
17195 #line 17196 "configure"
17196 #include "confdefs.h"
17197 /* System header to define __stub macros and hopefully few prototypes,
17198 which can conflict with char $ac_func(); below. */
17199 #include <assert.h>
17200 /* Override any gcc2 internal prototype to avoid an error. */
17201 /* We use char because int might match the return type of a gcc2
17202 builtin and then its argument prototype would still apply. */
17203 char $ac_func();
17205 int main() {
17207 /* The GNU C library defines this for functions which it implements
17208 to always fail with ENOSYS. Some functions are actually named
17209 something starting with __ and the normal name is an alias. */
17210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17211 choke me
17212 #else
17213 $ac_func();
17214 #endif
17216 ; return 0; }
17218 if { (eval echo configure:17219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17219 rm -rf conftest*
17220 eval "ac_cv_func_$ac_func=yes"
17221 else
17222 echo "configure: failed program was:" >&5
17223 cat conftest.$ac_ext >&5
17224 rm -rf conftest*
17225 eval "ac_cv_func_$ac_func=no"
17227 rm -f conftest*
17230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17231 echo "$ac_t""yes" 1>&6
17232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17233 cat >> confdefs.h <<EOF
17234 #define $ac_tr_func 1
17237 else
17238 echo "$ac_t""no" 1>&6
17240 done
17242 else
17244 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17245 echo "configure:17246: checking for _expl declaration" >&5
17246 if test x${glibcpp_cv_func__expl_use+set} != xset; then
17247 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17248 echo $ac_n "(cached) $ac_c" 1>&6
17249 else
17252 ac_ext=C
17253 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17254 ac_cpp='$CXXCPP $CPPFLAGS'
17255 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17256 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17257 cross_compiling=$ac_cv_prog_cxx_cross
17259 cat > conftest.$ac_ext <<EOF
17260 #line 17261 "configure"
17261 #include "confdefs.h"
17262 #include <math.h>
17263 #ifdef HAVE_IEEEFP_H
17264 #include <ieeefp.h>
17265 #endif
17267 int main() {
17268 _expl(0);
17269 ; return 0; }
17271 if { (eval echo configure:17272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17272 rm -rf conftest*
17273 glibcpp_cv_func__expl_use=yes
17274 else
17275 echo "configure: failed program was:" >&5
17276 cat conftest.$ac_ext >&5
17277 rm -rf conftest*
17278 glibcpp_cv_func__expl_use=no
17280 rm -f conftest*
17281 ac_ext=c
17282 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17283 ac_cpp='$CPP $CPPFLAGS'
17284 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17285 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17286 cross_compiling=$ac_cv_prog_cc_cross
17292 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17294 if test x$glibcpp_cv_func__expl_use = x"yes"; then
17295 for ac_func in _expl
17297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17298 echo "configure:17299: checking for $ac_func" >&5
17299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17300 echo $ac_n "(cached) $ac_c" 1>&6
17301 else
17302 cat > conftest.$ac_ext <<EOF
17303 #line 17304 "configure"
17304 #include "confdefs.h"
17305 /* System header to define __stub macros and hopefully few prototypes,
17306 which can conflict with char $ac_func(); below. */
17307 #include <assert.h>
17308 /* Override any gcc2 internal prototype to avoid an error. */
17309 /* We use char because int might match the return type of a gcc2
17310 builtin and then its argument prototype would still apply. */
17311 char $ac_func();
17313 int main() {
17315 /* The GNU C library defines this for functions which it implements
17316 to always fail with ENOSYS. Some functions are actually named
17317 something starting with __ and the normal name is an alias. */
17318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17319 choke me
17320 #else
17321 $ac_func();
17322 #endif
17324 ; return 0; }
17326 if { (eval echo configure:17327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17327 rm -rf conftest*
17328 eval "ac_cv_func_$ac_func=yes"
17329 else
17330 echo "configure: failed program was:" >&5
17331 cat conftest.$ac_ext >&5
17332 rm -rf conftest*
17333 eval "ac_cv_func_$ac_func=no"
17335 rm -f conftest*
17338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17339 echo "$ac_t""yes" 1>&6
17340 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17341 cat >> confdefs.h <<EOF
17342 #define $ac_tr_func 1
17345 else
17346 echo "$ac_t""no" 1>&6
17348 done
17355 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17356 echo "configure:17357: checking for fabsl declaration" >&5
17357 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17358 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17359 echo $ac_n "(cached) $ac_c" 1>&6
17360 else
17363 ac_ext=C
17364 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17365 ac_cpp='$CXXCPP $CPPFLAGS'
17366 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17367 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17368 cross_compiling=$ac_cv_prog_cxx_cross
17370 cat > conftest.$ac_ext <<EOF
17371 #line 17372 "configure"
17372 #include "confdefs.h"
17373 #include <math.h>
17374 #ifdef HAVE_IEEEFP_H
17375 #include <ieeefp.h>
17376 #endif
17378 int main() {
17379 fabsl(0);
17380 ; return 0; }
17382 if { (eval echo configure:17383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17383 rm -rf conftest*
17384 glibcpp_cv_func_fabsl_use=yes
17385 else
17386 echo "configure: failed program was:" >&5
17387 cat conftest.$ac_ext >&5
17388 rm -rf conftest*
17389 glibcpp_cv_func_fabsl_use=no
17391 rm -f conftest*
17392 ac_ext=c
17393 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17394 ac_cpp='$CPP $CPPFLAGS'
17395 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17396 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17397 cross_compiling=$ac_cv_prog_cc_cross
17403 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17405 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17406 for ac_func in fabsl
17408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17409 echo "configure:17410: checking for $ac_func" >&5
17410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17411 echo $ac_n "(cached) $ac_c" 1>&6
17412 else
17413 cat > conftest.$ac_ext <<EOF
17414 #line 17415 "configure"
17415 #include "confdefs.h"
17416 /* System header to define __stub macros and hopefully few prototypes,
17417 which can conflict with char $ac_func(); below. */
17418 #include <assert.h>
17419 /* Override any gcc2 internal prototype to avoid an error. */
17420 /* We use char because int might match the return type of a gcc2
17421 builtin and then its argument prototype would still apply. */
17422 char $ac_func();
17424 int main() {
17426 /* The GNU C library defines this for functions which it implements
17427 to always fail with ENOSYS. Some functions are actually named
17428 something starting with __ and the normal name is an alias. */
17429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17430 choke me
17431 #else
17432 $ac_func();
17433 #endif
17435 ; return 0; }
17437 if { (eval echo configure:17438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17438 rm -rf conftest*
17439 eval "ac_cv_func_$ac_func=yes"
17440 else
17441 echo "configure: failed program was:" >&5
17442 cat conftest.$ac_ext >&5
17443 rm -rf conftest*
17444 eval "ac_cv_func_$ac_func=no"
17446 rm -f conftest*
17449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17450 echo "$ac_t""yes" 1>&6
17451 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17452 cat >> confdefs.h <<EOF
17453 #define $ac_tr_func 1
17456 else
17457 echo "$ac_t""no" 1>&6
17459 done
17461 else
17463 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17464 echo "configure:17465: checking for _fabsl declaration" >&5
17465 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17466 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17467 echo $ac_n "(cached) $ac_c" 1>&6
17468 else
17471 ac_ext=C
17472 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17473 ac_cpp='$CXXCPP $CPPFLAGS'
17474 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17475 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17476 cross_compiling=$ac_cv_prog_cxx_cross
17478 cat > conftest.$ac_ext <<EOF
17479 #line 17480 "configure"
17480 #include "confdefs.h"
17481 #include <math.h>
17482 #ifdef HAVE_IEEEFP_H
17483 #include <ieeefp.h>
17484 #endif
17486 int main() {
17487 _fabsl(0);
17488 ; return 0; }
17490 if { (eval echo configure:17491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17491 rm -rf conftest*
17492 glibcpp_cv_func__fabsl_use=yes
17493 else
17494 echo "configure: failed program was:" >&5
17495 cat conftest.$ac_ext >&5
17496 rm -rf conftest*
17497 glibcpp_cv_func__fabsl_use=no
17499 rm -f conftest*
17500 ac_ext=c
17501 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17502 ac_cpp='$CPP $CPPFLAGS'
17503 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17504 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17505 cross_compiling=$ac_cv_prog_cc_cross
17511 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17513 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17514 for ac_func in _fabsl
17516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17517 echo "configure:17518: checking for $ac_func" >&5
17518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17519 echo $ac_n "(cached) $ac_c" 1>&6
17520 else
17521 cat > conftest.$ac_ext <<EOF
17522 #line 17523 "configure"
17523 #include "confdefs.h"
17524 /* System header to define __stub macros and hopefully few prototypes,
17525 which can conflict with char $ac_func(); below. */
17526 #include <assert.h>
17527 /* Override any gcc2 internal prototype to avoid an error. */
17528 /* We use char because int might match the return type of a gcc2
17529 builtin and then its argument prototype would still apply. */
17530 char $ac_func();
17532 int main() {
17534 /* The GNU C library defines this for functions which it implements
17535 to always fail with ENOSYS. Some functions are actually named
17536 something starting with __ and the normal name is an alias. */
17537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17538 choke me
17539 #else
17540 $ac_func();
17541 #endif
17543 ; return 0; }
17545 if { (eval echo configure:17546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17546 rm -rf conftest*
17547 eval "ac_cv_func_$ac_func=yes"
17548 else
17549 echo "configure: failed program was:" >&5
17550 cat conftest.$ac_ext >&5
17551 rm -rf conftest*
17552 eval "ac_cv_func_$ac_func=no"
17554 rm -f conftest*
17557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17558 echo "$ac_t""yes" 1>&6
17559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17560 cat >> confdefs.h <<EOF
17561 #define $ac_tr_func 1
17564 else
17565 echo "$ac_t""no" 1>&6
17567 done
17574 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17575 echo "configure:17576: checking for fmodl declaration" >&5
17576 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17577 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17578 echo $ac_n "(cached) $ac_c" 1>&6
17579 else
17582 ac_ext=C
17583 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17584 ac_cpp='$CXXCPP $CPPFLAGS'
17585 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17586 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17587 cross_compiling=$ac_cv_prog_cxx_cross
17589 cat > conftest.$ac_ext <<EOF
17590 #line 17591 "configure"
17591 #include "confdefs.h"
17592 #include <math.h>
17593 int main() {
17594 fmodl(0, 0);
17595 ; return 0; }
17597 if { (eval echo configure:17598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17598 rm -rf conftest*
17599 glibcpp_cv_func_fmodl_use=yes
17600 else
17601 echo "configure: failed program was:" >&5
17602 cat conftest.$ac_ext >&5
17603 rm -rf conftest*
17604 glibcpp_cv_func_fmodl_use=no
17606 rm -f conftest*
17607 ac_ext=c
17608 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17609 ac_cpp='$CPP $CPPFLAGS'
17610 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17611 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17612 cross_compiling=$ac_cv_prog_cc_cross
17618 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17620 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17621 for ac_func in fmodl
17623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17624 echo "configure:17625: checking for $ac_func" >&5
17625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17626 echo $ac_n "(cached) $ac_c" 1>&6
17627 else
17628 cat > conftest.$ac_ext <<EOF
17629 #line 17630 "configure"
17630 #include "confdefs.h"
17631 /* System header to define __stub macros and hopefully few prototypes,
17632 which can conflict with char $ac_func(); below. */
17633 #include <assert.h>
17634 /* Override any gcc2 internal prototype to avoid an error. */
17635 /* We use char because int might match the return type of a gcc2
17636 builtin and then its argument prototype would still apply. */
17637 char $ac_func();
17639 int main() {
17641 /* The GNU C library defines this for functions which it implements
17642 to always fail with ENOSYS. Some functions are actually named
17643 something starting with __ and the normal name is an alias. */
17644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17645 choke me
17646 #else
17647 $ac_func();
17648 #endif
17650 ; return 0; }
17652 if { (eval echo configure:17653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17653 rm -rf conftest*
17654 eval "ac_cv_func_$ac_func=yes"
17655 else
17656 echo "configure: failed program was:" >&5
17657 cat conftest.$ac_ext >&5
17658 rm -rf conftest*
17659 eval "ac_cv_func_$ac_func=no"
17661 rm -f conftest*
17664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17665 echo "$ac_t""yes" 1>&6
17666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17667 cat >> confdefs.h <<EOF
17668 #define $ac_tr_func 1
17671 else
17672 echo "$ac_t""no" 1>&6
17674 done
17676 else
17678 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17679 echo "configure:17680: checking for _fmodl declaration" >&5
17680 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17681 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17682 echo $ac_n "(cached) $ac_c" 1>&6
17683 else
17686 ac_ext=C
17687 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17688 ac_cpp='$CXXCPP $CPPFLAGS'
17689 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17690 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17691 cross_compiling=$ac_cv_prog_cxx_cross
17693 cat > conftest.$ac_ext <<EOF
17694 #line 17695 "configure"
17695 #include "confdefs.h"
17696 #include <math.h>
17697 int main() {
17698 _fmodl(0, 0);
17699 ; return 0; }
17701 if { (eval echo configure:17702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17702 rm -rf conftest*
17703 glibcpp_cv_func__fmodl_use=yes
17704 else
17705 echo "configure: failed program was:" >&5
17706 cat conftest.$ac_ext >&5
17707 rm -rf conftest*
17708 glibcpp_cv_func__fmodl_use=no
17710 rm -f conftest*
17711 ac_ext=c
17712 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17713 ac_cpp='$CPP $CPPFLAGS'
17714 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17715 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17716 cross_compiling=$ac_cv_prog_cc_cross
17722 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17724 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17725 for ac_func in _fmodl
17727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17728 echo "configure:17729: checking for $ac_func" >&5
17729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17730 echo $ac_n "(cached) $ac_c" 1>&6
17731 else
17732 cat > conftest.$ac_ext <<EOF
17733 #line 17734 "configure"
17734 #include "confdefs.h"
17735 /* System header to define __stub macros and hopefully few prototypes,
17736 which can conflict with char $ac_func(); below. */
17737 #include <assert.h>
17738 /* Override any gcc2 internal prototype to avoid an error. */
17739 /* We use char because int might match the return type of a gcc2
17740 builtin and then its argument prototype would still apply. */
17741 char $ac_func();
17743 int main() {
17745 /* The GNU C library defines this for functions which it implements
17746 to always fail with ENOSYS. Some functions are actually named
17747 something starting with __ and the normal name is an alias. */
17748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17749 choke me
17750 #else
17751 $ac_func();
17752 #endif
17754 ; return 0; }
17756 if { (eval echo configure:17757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17757 rm -rf conftest*
17758 eval "ac_cv_func_$ac_func=yes"
17759 else
17760 echo "configure: failed program was:" >&5
17761 cat conftest.$ac_ext >&5
17762 rm -rf conftest*
17763 eval "ac_cv_func_$ac_func=no"
17765 rm -f conftest*
17768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17769 echo "$ac_t""yes" 1>&6
17770 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17771 cat >> confdefs.h <<EOF
17772 #define $ac_tr_func 1
17775 else
17776 echo "$ac_t""no" 1>&6
17778 done
17785 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17786 echo "configure:17787: checking for frexpl declaration" >&5
17787 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17788 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17789 echo $ac_n "(cached) $ac_c" 1>&6
17790 else
17793 ac_ext=C
17794 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17795 ac_cpp='$CXXCPP $CPPFLAGS'
17796 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17797 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17798 cross_compiling=$ac_cv_prog_cxx_cross
17800 cat > conftest.$ac_ext <<EOF
17801 #line 17802 "configure"
17802 #include "confdefs.h"
17803 #include <math.h>
17804 int main() {
17805 frexpl(0, 0);
17806 ; return 0; }
17808 if { (eval echo configure:17809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17809 rm -rf conftest*
17810 glibcpp_cv_func_frexpl_use=yes
17811 else
17812 echo "configure: failed program was:" >&5
17813 cat conftest.$ac_ext >&5
17814 rm -rf conftest*
17815 glibcpp_cv_func_frexpl_use=no
17817 rm -f conftest*
17818 ac_ext=c
17819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17820 ac_cpp='$CPP $CPPFLAGS'
17821 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17822 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17823 cross_compiling=$ac_cv_prog_cc_cross
17829 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17831 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17832 for ac_func in frexpl
17834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17835 echo "configure:17836: checking for $ac_func" >&5
17836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17837 echo $ac_n "(cached) $ac_c" 1>&6
17838 else
17839 cat > conftest.$ac_ext <<EOF
17840 #line 17841 "configure"
17841 #include "confdefs.h"
17842 /* System header to define __stub macros and hopefully few prototypes,
17843 which can conflict with char $ac_func(); below. */
17844 #include <assert.h>
17845 /* Override any gcc2 internal prototype to avoid an error. */
17846 /* We use char because int might match the return type of a gcc2
17847 builtin and then its argument prototype would still apply. */
17848 char $ac_func();
17850 int main() {
17852 /* The GNU C library defines this for functions which it implements
17853 to always fail with ENOSYS. Some functions are actually named
17854 something starting with __ and the normal name is an alias. */
17855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17856 choke me
17857 #else
17858 $ac_func();
17859 #endif
17861 ; return 0; }
17863 if { (eval echo configure:17864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17864 rm -rf conftest*
17865 eval "ac_cv_func_$ac_func=yes"
17866 else
17867 echo "configure: failed program was:" >&5
17868 cat conftest.$ac_ext >&5
17869 rm -rf conftest*
17870 eval "ac_cv_func_$ac_func=no"
17872 rm -f conftest*
17875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17876 echo "$ac_t""yes" 1>&6
17877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17878 cat >> confdefs.h <<EOF
17879 #define $ac_tr_func 1
17882 else
17883 echo "$ac_t""no" 1>&6
17885 done
17887 else
17889 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17890 echo "configure:17891: checking for _frexpl declaration" >&5
17891 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17892 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17893 echo $ac_n "(cached) $ac_c" 1>&6
17894 else
17897 ac_ext=C
17898 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17899 ac_cpp='$CXXCPP $CPPFLAGS'
17900 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17901 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17902 cross_compiling=$ac_cv_prog_cxx_cross
17904 cat > conftest.$ac_ext <<EOF
17905 #line 17906 "configure"
17906 #include "confdefs.h"
17907 #include <math.h>
17908 int main() {
17909 _frexpl(0, 0);
17910 ; return 0; }
17912 if { (eval echo configure:17913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17913 rm -rf conftest*
17914 glibcpp_cv_func__frexpl_use=yes
17915 else
17916 echo "configure: failed program was:" >&5
17917 cat conftest.$ac_ext >&5
17918 rm -rf conftest*
17919 glibcpp_cv_func__frexpl_use=no
17921 rm -f conftest*
17922 ac_ext=c
17923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17924 ac_cpp='$CPP $CPPFLAGS'
17925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17927 cross_compiling=$ac_cv_prog_cc_cross
17933 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17935 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17936 for ac_func in _frexpl
17938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17939 echo "configure:17940: checking for $ac_func" >&5
17940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17941 echo $ac_n "(cached) $ac_c" 1>&6
17942 else
17943 cat > conftest.$ac_ext <<EOF
17944 #line 17945 "configure"
17945 #include "confdefs.h"
17946 /* System header to define __stub macros and hopefully few prototypes,
17947 which can conflict with char $ac_func(); below. */
17948 #include <assert.h>
17949 /* Override any gcc2 internal prototype to avoid an error. */
17950 /* We use char because int might match the return type of a gcc2
17951 builtin and then its argument prototype would still apply. */
17952 char $ac_func();
17954 int main() {
17956 /* The GNU C library defines this for functions which it implements
17957 to always fail with ENOSYS. Some functions are actually named
17958 something starting with __ and the normal name is an alias. */
17959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17960 choke me
17961 #else
17962 $ac_func();
17963 #endif
17965 ; return 0; }
17967 if { (eval echo configure:17968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17968 rm -rf conftest*
17969 eval "ac_cv_func_$ac_func=yes"
17970 else
17971 echo "configure: failed program was:" >&5
17972 cat conftest.$ac_ext >&5
17973 rm -rf conftest*
17974 eval "ac_cv_func_$ac_func=no"
17976 rm -f conftest*
17979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17980 echo "$ac_t""yes" 1>&6
17981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17982 cat >> confdefs.h <<EOF
17983 #define $ac_tr_func 1
17986 else
17987 echo "$ac_t""no" 1>&6
17989 done
17996 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
17997 echo "configure:17998: checking for hypotl declaration" >&5
17998 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
17999 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18000 echo $ac_n "(cached) $ac_c" 1>&6
18001 else
18004 ac_ext=C
18005 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18006 ac_cpp='$CXXCPP $CPPFLAGS'
18007 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18008 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18009 cross_compiling=$ac_cv_prog_cxx_cross
18011 cat > conftest.$ac_ext <<EOF
18012 #line 18013 "configure"
18013 #include "confdefs.h"
18014 #include <math.h>
18015 int main() {
18016 hypotl(0, 0);
18017 ; return 0; }
18019 if { (eval echo configure:18020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18020 rm -rf conftest*
18021 glibcpp_cv_func_hypotl_use=yes
18022 else
18023 echo "configure: failed program was:" >&5
18024 cat conftest.$ac_ext >&5
18025 rm -rf conftest*
18026 glibcpp_cv_func_hypotl_use=no
18028 rm -f conftest*
18029 ac_ext=c
18030 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18031 ac_cpp='$CPP $CPPFLAGS'
18032 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18033 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18034 cross_compiling=$ac_cv_prog_cc_cross
18040 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18042 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18043 for ac_func in hypotl
18045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18046 echo "configure:18047: checking for $ac_func" >&5
18047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18048 echo $ac_n "(cached) $ac_c" 1>&6
18049 else
18050 cat > conftest.$ac_ext <<EOF
18051 #line 18052 "configure"
18052 #include "confdefs.h"
18053 /* System header to define __stub macros and hopefully few prototypes,
18054 which can conflict with char $ac_func(); below. */
18055 #include <assert.h>
18056 /* Override any gcc2 internal prototype to avoid an error. */
18057 /* We use char because int might match the return type of a gcc2
18058 builtin and then its argument prototype would still apply. */
18059 char $ac_func();
18061 int main() {
18063 /* The GNU C library defines this for functions which it implements
18064 to always fail with ENOSYS. Some functions are actually named
18065 something starting with __ and the normal name is an alias. */
18066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18067 choke me
18068 #else
18069 $ac_func();
18070 #endif
18072 ; return 0; }
18074 if { (eval echo configure:18075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18075 rm -rf conftest*
18076 eval "ac_cv_func_$ac_func=yes"
18077 else
18078 echo "configure: failed program was:" >&5
18079 cat conftest.$ac_ext >&5
18080 rm -rf conftest*
18081 eval "ac_cv_func_$ac_func=no"
18083 rm -f conftest*
18086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18087 echo "$ac_t""yes" 1>&6
18088 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18089 cat >> confdefs.h <<EOF
18090 #define $ac_tr_func 1
18093 else
18094 echo "$ac_t""no" 1>&6
18096 done
18098 else
18100 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18101 echo "configure:18102: checking for _hypotl declaration" >&5
18102 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18103 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18104 echo $ac_n "(cached) $ac_c" 1>&6
18105 else
18108 ac_ext=C
18109 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18110 ac_cpp='$CXXCPP $CPPFLAGS'
18111 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18112 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18113 cross_compiling=$ac_cv_prog_cxx_cross
18115 cat > conftest.$ac_ext <<EOF
18116 #line 18117 "configure"
18117 #include "confdefs.h"
18118 #include <math.h>
18119 int main() {
18120 _hypotl(0, 0);
18121 ; return 0; }
18123 if { (eval echo configure:18124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18124 rm -rf conftest*
18125 glibcpp_cv_func__hypotl_use=yes
18126 else
18127 echo "configure: failed program was:" >&5
18128 cat conftest.$ac_ext >&5
18129 rm -rf conftest*
18130 glibcpp_cv_func__hypotl_use=no
18132 rm -f conftest*
18133 ac_ext=c
18134 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18135 ac_cpp='$CPP $CPPFLAGS'
18136 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18137 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18138 cross_compiling=$ac_cv_prog_cc_cross
18144 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18146 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18147 for ac_func in _hypotl
18149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18150 echo "configure:18151: checking for $ac_func" >&5
18151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18152 echo $ac_n "(cached) $ac_c" 1>&6
18153 else
18154 cat > conftest.$ac_ext <<EOF
18155 #line 18156 "configure"
18156 #include "confdefs.h"
18157 /* System header to define __stub macros and hopefully few prototypes,
18158 which can conflict with char $ac_func(); below. */
18159 #include <assert.h>
18160 /* Override any gcc2 internal prototype to avoid an error. */
18161 /* We use char because int might match the return type of a gcc2
18162 builtin and then its argument prototype would still apply. */
18163 char $ac_func();
18165 int main() {
18167 /* The GNU C library defines this for functions which it implements
18168 to always fail with ENOSYS. Some functions are actually named
18169 something starting with __ and the normal name is an alias. */
18170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18171 choke me
18172 #else
18173 $ac_func();
18174 #endif
18176 ; return 0; }
18178 if { (eval echo configure:18179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18179 rm -rf conftest*
18180 eval "ac_cv_func_$ac_func=yes"
18181 else
18182 echo "configure: failed program was:" >&5
18183 cat conftest.$ac_ext >&5
18184 rm -rf conftest*
18185 eval "ac_cv_func_$ac_func=no"
18187 rm -f conftest*
18190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18191 echo "$ac_t""yes" 1>&6
18192 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18193 cat >> confdefs.h <<EOF
18194 #define $ac_tr_func 1
18197 else
18198 echo "$ac_t""no" 1>&6
18200 done
18207 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18208 echo "configure:18209: checking for ldexpl declaration" >&5
18209 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18210 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18211 echo $ac_n "(cached) $ac_c" 1>&6
18212 else
18215 ac_ext=C
18216 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18217 ac_cpp='$CXXCPP $CPPFLAGS'
18218 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18219 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18220 cross_compiling=$ac_cv_prog_cxx_cross
18222 cat > conftest.$ac_ext <<EOF
18223 #line 18224 "configure"
18224 #include "confdefs.h"
18225 #include <math.h>
18226 int main() {
18227 ldexpl(0, 0);
18228 ; return 0; }
18230 if { (eval echo configure:18231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18231 rm -rf conftest*
18232 glibcpp_cv_func_ldexpl_use=yes
18233 else
18234 echo "configure: failed program was:" >&5
18235 cat conftest.$ac_ext >&5
18236 rm -rf conftest*
18237 glibcpp_cv_func_ldexpl_use=no
18239 rm -f conftest*
18240 ac_ext=c
18241 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18242 ac_cpp='$CPP $CPPFLAGS'
18243 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18244 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18245 cross_compiling=$ac_cv_prog_cc_cross
18251 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18253 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18254 for ac_func in ldexpl
18256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18257 echo "configure:18258: checking for $ac_func" >&5
18258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18259 echo $ac_n "(cached) $ac_c" 1>&6
18260 else
18261 cat > conftest.$ac_ext <<EOF
18262 #line 18263 "configure"
18263 #include "confdefs.h"
18264 /* System header to define __stub macros and hopefully few prototypes,
18265 which can conflict with char $ac_func(); below. */
18266 #include <assert.h>
18267 /* Override any gcc2 internal prototype to avoid an error. */
18268 /* We use char because int might match the return type of a gcc2
18269 builtin and then its argument prototype would still apply. */
18270 char $ac_func();
18272 int main() {
18274 /* The GNU C library defines this for functions which it implements
18275 to always fail with ENOSYS. Some functions are actually named
18276 something starting with __ and the normal name is an alias. */
18277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18278 choke me
18279 #else
18280 $ac_func();
18281 #endif
18283 ; return 0; }
18285 if { (eval echo configure:18286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18286 rm -rf conftest*
18287 eval "ac_cv_func_$ac_func=yes"
18288 else
18289 echo "configure: failed program was:" >&5
18290 cat conftest.$ac_ext >&5
18291 rm -rf conftest*
18292 eval "ac_cv_func_$ac_func=no"
18294 rm -f conftest*
18297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18298 echo "$ac_t""yes" 1>&6
18299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18300 cat >> confdefs.h <<EOF
18301 #define $ac_tr_func 1
18304 else
18305 echo "$ac_t""no" 1>&6
18307 done
18309 else
18311 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18312 echo "configure:18313: checking for _ldexpl declaration" >&5
18313 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18314 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18315 echo $ac_n "(cached) $ac_c" 1>&6
18316 else
18319 ac_ext=C
18320 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18321 ac_cpp='$CXXCPP $CPPFLAGS'
18322 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18323 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18324 cross_compiling=$ac_cv_prog_cxx_cross
18326 cat > conftest.$ac_ext <<EOF
18327 #line 18328 "configure"
18328 #include "confdefs.h"
18329 #include <math.h>
18330 int main() {
18331 _ldexpl(0, 0);
18332 ; return 0; }
18334 if { (eval echo configure:18335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18335 rm -rf conftest*
18336 glibcpp_cv_func__ldexpl_use=yes
18337 else
18338 echo "configure: failed program was:" >&5
18339 cat conftest.$ac_ext >&5
18340 rm -rf conftest*
18341 glibcpp_cv_func__ldexpl_use=no
18343 rm -f conftest*
18344 ac_ext=c
18345 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18346 ac_cpp='$CPP $CPPFLAGS'
18347 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18348 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18349 cross_compiling=$ac_cv_prog_cc_cross
18355 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18357 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18358 for ac_func in _ldexpl
18360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18361 echo "configure:18362: checking for $ac_func" >&5
18362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18363 echo $ac_n "(cached) $ac_c" 1>&6
18364 else
18365 cat > conftest.$ac_ext <<EOF
18366 #line 18367 "configure"
18367 #include "confdefs.h"
18368 /* System header to define __stub macros and hopefully few prototypes,
18369 which can conflict with char $ac_func(); below. */
18370 #include <assert.h>
18371 /* Override any gcc2 internal prototype to avoid an error. */
18372 /* We use char because int might match the return type of a gcc2
18373 builtin and then its argument prototype would still apply. */
18374 char $ac_func();
18376 int main() {
18378 /* The GNU C library defines this for functions which it implements
18379 to always fail with ENOSYS. Some functions are actually named
18380 something starting with __ and the normal name is an alias. */
18381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18382 choke me
18383 #else
18384 $ac_func();
18385 #endif
18387 ; return 0; }
18389 if { (eval echo configure:18390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18390 rm -rf conftest*
18391 eval "ac_cv_func_$ac_func=yes"
18392 else
18393 echo "configure: failed program was:" >&5
18394 cat conftest.$ac_ext >&5
18395 rm -rf conftest*
18396 eval "ac_cv_func_$ac_func=no"
18398 rm -f conftest*
18401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18402 echo "$ac_t""yes" 1>&6
18403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18404 cat >> confdefs.h <<EOF
18405 #define $ac_tr_func 1
18408 else
18409 echo "$ac_t""no" 1>&6
18411 done
18418 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18419 echo "configure:18420: checking for logl declaration" >&5
18420 if test x${glibcpp_cv_func_logl_use+set} != xset; then
18421 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18422 echo $ac_n "(cached) $ac_c" 1>&6
18423 else
18426 ac_ext=C
18427 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18428 ac_cpp='$CXXCPP $CPPFLAGS'
18429 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18430 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18431 cross_compiling=$ac_cv_prog_cxx_cross
18433 cat > conftest.$ac_ext <<EOF
18434 #line 18435 "configure"
18435 #include "confdefs.h"
18436 #include <math.h>
18437 #ifdef HAVE_IEEEFP_H
18438 #include <ieeefp.h>
18439 #endif
18441 int main() {
18442 logl(0);
18443 ; return 0; }
18445 if { (eval echo configure:18446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18446 rm -rf conftest*
18447 glibcpp_cv_func_logl_use=yes
18448 else
18449 echo "configure: failed program was:" >&5
18450 cat conftest.$ac_ext >&5
18451 rm -rf conftest*
18452 glibcpp_cv_func_logl_use=no
18454 rm -f conftest*
18455 ac_ext=c
18456 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18457 ac_cpp='$CPP $CPPFLAGS'
18458 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18459 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18460 cross_compiling=$ac_cv_prog_cc_cross
18466 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18468 if test x$glibcpp_cv_func_logl_use = x"yes"; then
18469 for ac_func in logl
18471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18472 echo "configure:18473: checking for $ac_func" >&5
18473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18474 echo $ac_n "(cached) $ac_c" 1>&6
18475 else
18476 cat > conftest.$ac_ext <<EOF
18477 #line 18478 "configure"
18478 #include "confdefs.h"
18479 /* System header to define __stub macros and hopefully few prototypes,
18480 which can conflict with char $ac_func(); below. */
18481 #include <assert.h>
18482 /* Override any gcc2 internal prototype to avoid an error. */
18483 /* We use char because int might match the return type of a gcc2
18484 builtin and then its argument prototype would still apply. */
18485 char $ac_func();
18487 int main() {
18489 /* The GNU C library defines this for functions which it implements
18490 to always fail with ENOSYS. Some functions are actually named
18491 something starting with __ and the normal name is an alias. */
18492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18493 choke me
18494 #else
18495 $ac_func();
18496 #endif
18498 ; return 0; }
18500 if { (eval echo configure:18501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18501 rm -rf conftest*
18502 eval "ac_cv_func_$ac_func=yes"
18503 else
18504 echo "configure: failed program was:" >&5
18505 cat conftest.$ac_ext >&5
18506 rm -rf conftest*
18507 eval "ac_cv_func_$ac_func=no"
18509 rm -f conftest*
18512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18513 echo "$ac_t""yes" 1>&6
18514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18515 cat >> confdefs.h <<EOF
18516 #define $ac_tr_func 1
18519 else
18520 echo "$ac_t""no" 1>&6
18522 done
18524 else
18526 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18527 echo "configure:18528: checking for _logl declaration" >&5
18528 if test x${glibcpp_cv_func__logl_use+set} != xset; then
18529 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18530 echo $ac_n "(cached) $ac_c" 1>&6
18531 else
18534 ac_ext=C
18535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18536 ac_cpp='$CXXCPP $CPPFLAGS'
18537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18539 cross_compiling=$ac_cv_prog_cxx_cross
18541 cat > conftest.$ac_ext <<EOF
18542 #line 18543 "configure"
18543 #include "confdefs.h"
18544 #include <math.h>
18545 #ifdef HAVE_IEEEFP_H
18546 #include <ieeefp.h>
18547 #endif
18549 int main() {
18550 _logl(0);
18551 ; return 0; }
18553 if { (eval echo configure:18554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18554 rm -rf conftest*
18555 glibcpp_cv_func__logl_use=yes
18556 else
18557 echo "configure: failed program was:" >&5
18558 cat conftest.$ac_ext >&5
18559 rm -rf conftest*
18560 glibcpp_cv_func__logl_use=no
18562 rm -f conftest*
18563 ac_ext=c
18564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18565 ac_cpp='$CPP $CPPFLAGS'
18566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18568 cross_compiling=$ac_cv_prog_cc_cross
18574 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18576 if test x$glibcpp_cv_func__logl_use = x"yes"; then
18577 for ac_func in _logl
18579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18580 echo "configure:18581: checking for $ac_func" >&5
18581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18582 echo $ac_n "(cached) $ac_c" 1>&6
18583 else
18584 cat > conftest.$ac_ext <<EOF
18585 #line 18586 "configure"
18586 #include "confdefs.h"
18587 /* System header to define __stub macros and hopefully few prototypes,
18588 which can conflict with char $ac_func(); below. */
18589 #include <assert.h>
18590 /* Override any gcc2 internal prototype to avoid an error. */
18591 /* We use char because int might match the return type of a gcc2
18592 builtin and then its argument prototype would still apply. */
18593 char $ac_func();
18595 int main() {
18597 /* The GNU C library defines this for functions which it implements
18598 to always fail with ENOSYS. Some functions are actually named
18599 something starting with __ and the normal name is an alias. */
18600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18601 choke me
18602 #else
18603 $ac_func();
18604 #endif
18606 ; return 0; }
18608 if { (eval echo configure:18609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18609 rm -rf conftest*
18610 eval "ac_cv_func_$ac_func=yes"
18611 else
18612 echo "configure: failed program was:" >&5
18613 cat conftest.$ac_ext >&5
18614 rm -rf conftest*
18615 eval "ac_cv_func_$ac_func=no"
18617 rm -f conftest*
18620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18621 echo "$ac_t""yes" 1>&6
18622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18623 cat >> confdefs.h <<EOF
18624 #define $ac_tr_func 1
18627 else
18628 echo "$ac_t""no" 1>&6
18630 done
18637 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18638 echo "configure:18639: checking for log10l declaration" >&5
18639 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18640 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18641 echo $ac_n "(cached) $ac_c" 1>&6
18642 else
18645 ac_ext=C
18646 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18647 ac_cpp='$CXXCPP $CPPFLAGS'
18648 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18649 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18650 cross_compiling=$ac_cv_prog_cxx_cross
18652 cat > conftest.$ac_ext <<EOF
18653 #line 18654 "configure"
18654 #include "confdefs.h"
18655 #include <math.h>
18656 #ifdef HAVE_IEEEFP_H
18657 #include <ieeefp.h>
18658 #endif
18660 int main() {
18661 log10l(0);
18662 ; return 0; }
18664 if { (eval echo configure:18665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18665 rm -rf conftest*
18666 glibcpp_cv_func_log10l_use=yes
18667 else
18668 echo "configure: failed program was:" >&5
18669 cat conftest.$ac_ext >&5
18670 rm -rf conftest*
18671 glibcpp_cv_func_log10l_use=no
18673 rm -f conftest*
18674 ac_ext=c
18675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18676 ac_cpp='$CPP $CPPFLAGS'
18677 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18678 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18679 cross_compiling=$ac_cv_prog_cc_cross
18685 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18687 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18688 for ac_func in log10l
18690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18691 echo "configure:18692: checking for $ac_func" >&5
18692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18693 echo $ac_n "(cached) $ac_c" 1>&6
18694 else
18695 cat > conftest.$ac_ext <<EOF
18696 #line 18697 "configure"
18697 #include "confdefs.h"
18698 /* System header to define __stub macros and hopefully few prototypes,
18699 which can conflict with char $ac_func(); below. */
18700 #include <assert.h>
18701 /* Override any gcc2 internal prototype to avoid an error. */
18702 /* We use char because int might match the return type of a gcc2
18703 builtin and then its argument prototype would still apply. */
18704 char $ac_func();
18706 int main() {
18708 /* The GNU C library defines this for functions which it implements
18709 to always fail with ENOSYS. Some functions are actually named
18710 something starting with __ and the normal name is an alias. */
18711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18712 choke me
18713 #else
18714 $ac_func();
18715 #endif
18717 ; return 0; }
18719 if { (eval echo configure:18720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18720 rm -rf conftest*
18721 eval "ac_cv_func_$ac_func=yes"
18722 else
18723 echo "configure: failed program was:" >&5
18724 cat conftest.$ac_ext >&5
18725 rm -rf conftest*
18726 eval "ac_cv_func_$ac_func=no"
18728 rm -f conftest*
18731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18732 echo "$ac_t""yes" 1>&6
18733 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18734 cat >> confdefs.h <<EOF
18735 #define $ac_tr_func 1
18738 else
18739 echo "$ac_t""no" 1>&6
18741 done
18743 else
18745 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18746 echo "configure:18747: checking for _log10l declaration" >&5
18747 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18748 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18749 echo $ac_n "(cached) $ac_c" 1>&6
18750 else
18753 ac_ext=C
18754 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18755 ac_cpp='$CXXCPP $CPPFLAGS'
18756 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18757 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18758 cross_compiling=$ac_cv_prog_cxx_cross
18760 cat > conftest.$ac_ext <<EOF
18761 #line 18762 "configure"
18762 #include "confdefs.h"
18763 #include <math.h>
18764 #ifdef HAVE_IEEEFP_H
18765 #include <ieeefp.h>
18766 #endif
18768 int main() {
18769 _log10l(0);
18770 ; return 0; }
18772 if { (eval echo configure:18773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18773 rm -rf conftest*
18774 glibcpp_cv_func__log10l_use=yes
18775 else
18776 echo "configure: failed program was:" >&5
18777 cat conftest.$ac_ext >&5
18778 rm -rf conftest*
18779 glibcpp_cv_func__log10l_use=no
18781 rm -f conftest*
18782 ac_ext=c
18783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18784 ac_cpp='$CPP $CPPFLAGS'
18785 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18786 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18787 cross_compiling=$ac_cv_prog_cc_cross
18793 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18795 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18796 for ac_func in _log10l
18798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18799 echo "configure:18800: checking for $ac_func" >&5
18800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18801 echo $ac_n "(cached) $ac_c" 1>&6
18802 else
18803 cat > conftest.$ac_ext <<EOF
18804 #line 18805 "configure"
18805 #include "confdefs.h"
18806 /* System header to define __stub macros and hopefully few prototypes,
18807 which can conflict with char $ac_func(); below. */
18808 #include <assert.h>
18809 /* Override any gcc2 internal prototype to avoid an error. */
18810 /* We use char because int might match the return type of a gcc2
18811 builtin and then its argument prototype would still apply. */
18812 char $ac_func();
18814 int main() {
18816 /* The GNU C library defines this for functions which it implements
18817 to always fail with ENOSYS. Some functions are actually named
18818 something starting with __ and the normal name is an alias. */
18819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18820 choke me
18821 #else
18822 $ac_func();
18823 #endif
18825 ; return 0; }
18827 if { (eval echo configure:18828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18828 rm -rf conftest*
18829 eval "ac_cv_func_$ac_func=yes"
18830 else
18831 echo "configure: failed program was:" >&5
18832 cat conftest.$ac_ext >&5
18833 rm -rf conftest*
18834 eval "ac_cv_func_$ac_func=no"
18836 rm -f conftest*
18839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18840 echo "$ac_t""yes" 1>&6
18841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18842 cat >> confdefs.h <<EOF
18843 #define $ac_tr_func 1
18846 else
18847 echo "$ac_t""no" 1>&6
18849 done
18856 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18857 echo "configure:18858: checking for modfl declaration" >&5
18858 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18859 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18860 echo $ac_n "(cached) $ac_c" 1>&6
18861 else
18864 ac_ext=C
18865 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18866 ac_cpp='$CXXCPP $CPPFLAGS'
18867 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18868 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18869 cross_compiling=$ac_cv_prog_cxx_cross
18871 cat > conftest.$ac_ext <<EOF
18872 #line 18873 "configure"
18873 #include "confdefs.h"
18874 #include <math.h>
18875 int main() {
18876 modfl(0, 0);
18877 ; return 0; }
18879 if { (eval echo configure:18880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18880 rm -rf conftest*
18881 glibcpp_cv_func_modfl_use=yes
18882 else
18883 echo "configure: failed program was:" >&5
18884 cat conftest.$ac_ext >&5
18885 rm -rf conftest*
18886 glibcpp_cv_func_modfl_use=no
18888 rm -f conftest*
18889 ac_ext=c
18890 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18891 ac_cpp='$CPP $CPPFLAGS'
18892 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18893 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18894 cross_compiling=$ac_cv_prog_cc_cross
18900 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18902 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18903 for ac_func in modfl
18905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18906 echo "configure:18907: checking for $ac_func" >&5
18907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18908 echo $ac_n "(cached) $ac_c" 1>&6
18909 else
18910 cat > conftest.$ac_ext <<EOF
18911 #line 18912 "configure"
18912 #include "confdefs.h"
18913 /* System header to define __stub macros and hopefully few prototypes,
18914 which can conflict with char $ac_func(); below. */
18915 #include <assert.h>
18916 /* Override any gcc2 internal prototype to avoid an error. */
18917 /* We use char because int might match the return type of a gcc2
18918 builtin and then its argument prototype would still apply. */
18919 char $ac_func();
18921 int main() {
18923 /* The GNU C library defines this for functions which it implements
18924 to always fail with ENOSYS. Some functions are actually named
18925 something starting with __ and the normal name is an alias. */
18926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18927 choke me
18928 #else
18929 $ac_func();
18930 #endif
18932 ; return 0; }
18934 if { (eval echo configure:18935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18935 rm -rf conftest*
18936 eval "ac_cv_func_$ac_func=yes"
18937 else
18938 echo "configure: failed program was:" >&5
18939 cat conftest.$ac_ext >&5
18940 rm -rf conftest*
18941 eval "ac_cv_func_$ac_func=no"
18943 rm -f conftest*
18946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18947 echo "$ac_t""yes" 1>&6
18948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18949 cat >> confdefs.h <<EOF
18950 #define $ac_tr_func 1
18953 else
18954 echo "$ac_t""no" 1>&6
18956 done
18958 else
18960 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18961 echo "configure:18962: checking for _modfl declaration" >&5
18962 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18963 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18964 echo $ac_n "(cached) $ac_c" 1>&6
18965 else
18968 ac_ext=C
18969 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18970 ac_cpp='$CXXCPP $CPPFLAGS'
18971 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18972 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18973 cross_compiling=$ac_cv_prog_cxx_cross
18975 cat > conftest.$ac_ext <<EOF
18976 #line 18977 "configure"
18977 #include "confdefs.h"
18978 #include <math.h>
18979 int main() {
18980 _modfl(0, 0);
18981 ; return 0; }
18983 if { (eval echo configure:18984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18984 rm -rf conftest*
18985 glibcpp_cv_func__modfl_use=yes
18986 else
18987 echo "configure: failed program was:" >&5
18988 cat conftest.$ac_ext >&5
18989 rm -rf conftest*
18990 glibcpp_cv_func__modfl_use=no
18992 rm -f conftest*
18993 ac_ext=c
18994 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18995 ac_cpp='$CPP $CPPFLAGS'
18996 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18997 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18998 cross_compiling=$ac_cv_prog_cc_cross
19004 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19006 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19007 for ac_func in _modfl
19009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19010 echo "configure:19011: checking for $ac_func" >&5
19011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19012 echo $ac_n "(cached) $ac_c" 1>&6
19013 else
19014 cat > conftest.$ac_ext <<EOF
19015 #line 19016 "configure"
19016 #include "confdefs.h"
19017 /* System header to define __stub macros and hopefully few prototypes,
19018 which can conflict with char $ac_func(); below. */
19019 #include <assert.h>
19020 /* Override any gcc2 internal prototype to avoid an error. */
19021 /* We use char because int might match the return type of a gcc2
19022 builtin and then its argument prototype would still apply. */
19023 char $ac_func();
19025 int main() {
19027 /* The GNU C library defines this for functions which it implements
19028 to always fail with ENOSYS. Some functions are actually named
19029 something starting with __ and the normal name is an alias. */
19030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19031 choke me
19032 #else
19033 $ac_func();
19034 #endif
19036 ; return 0; }
19038 if { (eval echo configure:19039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19039 rm -rf conftest*
19040 eval "ac_cv_func_$ac_func=yes"
19041 else
19042 echo "configure: failed program was:" >&5
19043 cat conftest.$ac_ext >&5
19044 rm -rf conftest*
19045 eval "ac_cv_func_$ac_func=no"
19047 rm -f conftest*
19050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19051 echo "$ac_t""yes" 1>&6
19052 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19053 cat >> confdefs.h <<EOF
19054 #define $ac_tr_func 1
19057 else
19058 echo "$ac_t""no" 1>&6
19060 done
19067 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19068 echo "configure:19069: checking for powl declaration" >&5
19069 if test x${glibcpp_cv_func_powl_use+set} != xset; then
19070 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19071 echo $ac_n "(cached) $ac_c" 1>&6
19072 else
19075 ac_ext=C
19076 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19077 ac_cpp='$CXXCPP $CPPFLAGS'
19078 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19079 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19080 cross_compiling=$ac_cv_prog_cxx_cross
19082 cat > conftest.$ac_ext <<EOF
19083 #line 19084 "configure"
19084 #include "confdefs.h"
19085 #include <math.h>
19086 int main() {
19087 powl(0, 0);
19088 ; return 0; }
19090 if { (eval echo configure:19091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19091 rm -rf conftest*
19092 glibcpp_cv_func_powl_use=yes
19093 else
19094 echo "configure: failed program was:" >&5
19095 cat conftest.$ac_ext >&5
19096 rm -rf conftest*
19097 glibcpp_cv_func_powl_use=no
19099 rm -f conftest*
19100 ac_ext=c
19101 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19102 ac_cpp='$CPP $CPPFLAGS'
19103 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19104 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19105 cross_compiling=$ac_cv_prog_cc_cross
19111 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19113 if test x$glibcpp_cv_func_powl_use = x"yes"; then
19114 for ac_func in powl
19116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19117 echo "configure:19118: checking for $ac_func" >&5
19118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19119 echo $ac_n "(cached) $ac_c" 1>&6
19120 else
19121 cat > conftest.$ac_ext <<EOF
19122 #line 19123 "configure"
19123 #include "confdefs.h"
19124 /* System header to define __stub macros and hopefully few prototypes,
19125 which can conflict with char $ac_func(); below. */
19126 #include <assert.h>
19127 /* Override any gcc2 internal prototype to avoid an error. */
19128 /* We use char because int might match the return type of a gcc2
19129 builtin and then its argument prototype would still apply. */
19130 char $ac_func();
19132 int main() {
19134 /* The GNU C library defines this for functions which it implements
19135 to always fail with ENOSYS. Some functions are actually named
19136 something starting with __ and the normal name is an alias. */
19137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19138 choke me
19139 #else
19140 $ac_func();
19141 #endif
19143 ; return 0; }
19145 if { (eval echo configure:19146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19146 rm -rf conftest*
19147 eval "ac_cv_func_$ac_func=yes"
19148 else
19149 echo "configure: failed program was:" >&5
19150 cat conftest.$ac_ext >&5
19151 rm -rf conftest*
19152 eval "ac_cv_func_$ac_func=no"
19154 rm -f conftest*
19157 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19158 echo "$ac_t""yes" 1>&6
19159 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19160 cat >> confdefs.h <<EOF
19161 #define $ac_tr_func 1
19164 else
19165 echo "$ac_t""no" 1>&6
19167 done
19169 else
19171 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19172 echo "configure:19173: checking for _powl declaration" >&5
19173 if test x${glibcpp_cv_func__powl_use+set} != xset; then
19174 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19175 echo $ac_n "(cached) $ac_c" 1>&6
19176 else
19179 ac_ext=C
19180 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19181 ac_cpp='$CXXCPP $CPPFLAGS'
19182 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19183 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19184 cross_compiling=$ac_cv_prog_cxx_cross
19186 cat > conftest.$ac_ext <<EOF
19187 #line 19188 "configure"
19188 #include "confdefs.h"
19189 #include <math.h>
19190 int main() {
19191 _powl(0, 0);
19192 ; return 0; }
19194 if { (eval echo configure:19195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19195 rm -rf conftest*
19196 glibcpp_cv_func__powl_use=yes
19197 else
19198 echo "configure: failed program was:" >&5
19199 cat conftest.$ac_ext >&5
19200 rm -rf conftest*
19201 glibcpp_cv_func__powl_use=no
19203 rm -f conftest*
19204 ac_ext=c
19205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19206 ac_cpp='$CPP $CPPFLAGS'
19207 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19208 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19209 cross_compiling=$ac_cv_prog_cc_cross
19215 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19217 if test x$glibcpp_cv_func__powl_use = x"yes"; then
19218 for ac_func in _powl
19220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19221 echo "configure:19222: checking for $ac_func" >&5
19222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19223 echo $ac_n "(cached) $ac_c" 1>&6
19224 else
19225 cat > conftest.$ac_ext <<EOF
19226 #line 19227 "configure"
19227 #include "confdefs.h"
19228 /* System header to define __stub macros and hopefully few prototypes,
19229 which can conflict with char $ac_func(); below. */
19230 #include <assert.h>
19231 /* Override any gcc2 internal prototype to avoid an error. */
19232 /* We use char because int might match the return type of a gcc2
19233 builtin and then its argument prototype would still apply. */
19234 char $ac_func();
19236 int main() {
19238 /* The GNU C library defines this for functions which it implements
19239 to always fail with ENOSYS. Some functions are actually named
19240 something starting with __ and the normal name is an alias. */
19241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19242 choke me
19243 #else
19244 $ac_func();
19245 #endif
19247 ; return 0; }
19249 if { (eval echo configure:19250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19250 rm -rf conftest*
19251 eval "ac_cv_func_$ac_func=yes"
19252 else
19253 echo "configure: failed program was:" >&5
19254 cat conftest.$ac_ext >&5
19255 rm -rf conftest*
19256 eval "ac_cv_func_$ac_func=no"
19258 rm -f conftest*
19261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19262 echo "$ac_t""yes" 1>&6
19263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19264 cat >> confdefs.h <<EOF
19265 #define $ac_tr_func 1
19268 else
19269 echo "$ac_t""no" 1>&6
19271 done
19278 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19279 echo "configure:19280: checking for sqrtl declaration" >&5
19280 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19281 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19282 echo $ac_n "(cached) $ac_c" 1>&6
19283 else
19286 ac_ext=C
19287 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19288 ac_cpp='$CXXCPP $CPPFLAGS'
19289 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19290 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19291 cross_compiling=$ac_cv_prog_cxx_cross
19293 cat > conftest.$ac_ext <<EOF
19294 #line 19295 "configure"
19295 #include "confdefs.h"
19296 #include <math.h>
19297 #ifdef HAVE_IEEEFP_H
19298 #include <ieeefp.h>
19299 #endif
19301 int main() {
19302 sqrtl(0);
19303 ; return 0; }
19305 if { (eval echo configure:19306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19306 rm -rf conftest*
19307 glibcpp_cv_func_sqrtl_use=yes
19308 else
19309 echo "configure: failed program was:" >&5
19310 cat conftest.$ac_ext >&5
19311 rm -rf conftest*
19312 glibcpp_cv_func_sqrtl_use=no
19314 rm -f conftest*
19315 ac_ext=c
19316 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19317 ac_cpp='$CPP $CPPFLAGS'
19318 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19319 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19320 cross_compiling=$ac_cv_prog_cc_cross
19326 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19328 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19329 for ac_func in sqrtl
19331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19332 echo "configure:19333: checking for $ac_func" >&5
19333 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19334 echo $ac_n "(cached) $ac_c" 1>&6
19335 else
19336 cat > conftest.$ac_ext <<EOF
19337 #line 19338 "configure"
19338 #include "confdefs.h"
19339 /* System header to define __stub macros and hopefully few prototypes,
19340 which can conflict with char $ac_func(); below. */
19341 #include <assert.h>
19342 /* Override any gcc2 internal prototype to avoid an error. */
19343 /* We use char because int might match the return type of a gcc2
19344 builtin and then its argument prototype would still apply. */
19345 char $ac_func();
19347 int main() {
19349 /* The GNU C library defines this for functions which it implements
19350 to always fail with ENOSYS. Some functions are actually named
19351 something starting with __ and the normal name is an alias. */
19352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19353 choke me
19354 #else
19355 $ac_func();
19356 #endif
19358 ; return 0; }
19360 if { (eval echo configure:19361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19361 rm -rf conftest*
19362 eval "ac_cv_func_$ac_func=yes"
19363 else
19364 echo "configure: failed program was:" >&5
19365 cat conftest.$ac_ext >&5
19366 rm -rf conftest*
19367 eval "ac_cv_func_$ac_func=no"
19369 rm -f conftest*
19372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19373 echo "$ac_t""yes" 1>&6
19374 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19375 cat >> confdefs.h <<EOF
19376 #define $ac_tr_func 1
19379 else
19380 echo "$ac_t""no" 1>&6
19382 done
19384 else
19386 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19387 echo "configure:19388: checking for _sqrtl declaration" >&5
19388 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19389 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19390 echo $ac_n "(cached) $ac_c" 1>&6
19391 else
19394 ac_ext=C
19395 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19396 ac_cpp='$CXXCPP $CPPFLAGS'
19397 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19398 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19399 cross_compiling=$ac_cv_prog_cxx_cross
19401 cat > conftest.$ac_ext <<EOF
19402 #line 19403 "configure"
19403 #include "confdefs.h"
19404 #include <math.h>
19405 #ifdef HAVE_IEEEFP_H
19406 #include <ieeefp.h>
19407 #endif
19409 int main() {
19410 _sqrtl(0);
19411 ; return 0; }
19413 if { (eval echo configure:19414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19414 rm -rf conftest*
19415 glibcpp_cv_func__sqrtl_use=yes
19416 else
19417 echo "configure: failed program was:" >&5
19418 cat conftest.$ac_ext >&5
19419 rm -rf conftest*
19420 glibcpp_cv_func__sqrtl_use=no
19422 rm -f conftest*
19423 ac_ext=c
19424 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19425 ac_cpp='$CPP $CPPFLAGS'
19426 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19427 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19428 cross_compiling=$ac_cv_prog_cc_cross
19434 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19436 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19437 for ac_func in _sqrtl
19439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19440 echo "configure:19441: checking for $ac_func" >&5
19441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19442 echo $ac_n "(cached) $ac_c" 1>&6
19443 else
19444 cat > conftest.$ac_ext <<EOF
19445 #line 19446 "configure"
19446 #include "confdefs.h"
19447 /* System header to define __stub macros and hopefully few prototypes,
19448 which can conflict with char $ac_func(); below. */
19449 #include <assert.h>
19450 /* Override any gcc2 internal prototype to avoid an error. */
19451 /* We use char because int might match the return type of a gcc2
19452 builtin and then its argument prototype would still apply. */
19453 char $ac_func();
19455 int main() {
19457 /* The GNU C library defines this for functions which it implements
19458 to always fail with ENOSYS. Some functions are actually named
19459 something starting with __ and the normal name is an alias. */
19460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19461 choke me
19462 #else
19463 $ac_func();
19464 #endif
19466 ; return 0; }
19468 if { (eval echo configure:19469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19469 rm -rf conftest*
19470 eval "ac_cv_func_$ac_func=yes"
19471 else
19472 echo "configure: failed program was:" >&5
19473 cat conftest.$ac_ext >&5
19474 rm -rf conftest*
19475 eval "ac_cv_func_$ac_func=no"
19477 rm -f conftest*
19480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19481 echo "$ac_t""yes" 1>&6
19482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19483 cat >> confdefs.h <<EOF
19484 #define $ac_tr_func 1
19487 else
19488 echo "$ac_t""no" 1>&6
19490 done
19497 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19498 echo "configure:19499: checking for sincosl declaration" >&5
19499 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19500 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19501 echo $ac_n "(cached) $ac_c" 1>&6
19502 else
19505 ac_ext=C
19506 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19507 ac_cpp='$CXXCPP $CPPFLAGS'
19508 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19509 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19510 cross_compiling=$ac_cv_prog_cxx_cross
19512 cat > conftest.$ac_ext <<EOF
19513 #line 19514 "configure"
19514 #include "confdefs.h"
19515 #include <math.h>
19516 int main() {
19517 sincosl(0, 0, 0);
19518 ; return 0; }
19520 if { (eval echo configure:19521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19521 rm -rf conftest*
19522 glibcpp_cv_func_sincosl_use=yes
19523 else
19524 echo "configure: failed program was:" >&5
19525 cat conftest.$ac_ext >&5
19526 rm -rf conftest*
19527 glibcpp_cv_func_sincosl_use=no
19529 rm -f conftest*
19530 ac_ext=c
19531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19532 ac_cpp='$CPP $CPPFLAGS'
19533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19535 cross_compiling=$ac_cv_prog_cc_cross
19541 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19543 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19544 for ac_func in sincosl
19546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19547 echo "configure:19548: checking for $ac_func" >&5
19548 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19549 echo $ac_n "(cached) $ac_c" 1>&6
19550 else
19551 cat > conftest.$ac_ext <<EOF
19552 #line 19553 "configure"
19553 #include "confdefs.h"
19554 /* System header to define __stub macros and hopefully few prototypes,
19555 which can conflict with char $ac_func(); below. */
19556 #include <assert.h>
19557 /* Override any gcc2 internal prototype to avoid an error. */
19558 /* We use char because int might match the return type of a gcc2
19559 builtin and then its argument prototype would still apply. */
19560 char $ac_func();
19562 int main() {
19564 /* The GNU C library defines this for functions which it implements
19565 to always fail with ENOSYS. Some functions are actually named
19566 something starting with __ and the normal name is an alias. */
19567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19568 choke me
19569 #else
19570 $ac_func();
19571 #endif
19573 ; return 0; }
19575 if { (eval echo configure:19576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19576 rm -rf conftest*
19577 eval "ac_cv_func_$ac_func=yes"
19578 else
19579 echo "configure: failed program was:" >&5
19580 cat conftest.$ac_ext >&5
19581 rm -rf conftest*
19582 eval "ac_cv_func_$ac_func=no"
19584 rm -f conftest*
19587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19588 echo "$ac_t""yes" 1>&6
19589 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19590 cat >> confdefs.h <<EOF
19591 #define $ac_tr_func 1
19594 else
19595 echo "$ac_t""no" 1>&6
19597 done
19599 else
19601 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19602 echo "configure:19603: checking for _sincosl declaration" >&5
19603 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19604 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19605 echo $ac_n "(cached) $ac_c" 1>&6
19606 else
19609 ac_ext=C
19610 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19611 ac_cpp='$CXXCPP $CPPFLAGS'
19612 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19613 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19614 cross_compiling=$ac_cv_prog_cxx_cross
19616 cat > conftest.$ac_ext <<EOF
19617 #line 19618 "configure"
19618 #include "confdefs.h"
19619 #include <math.h>
19620 int main() {
19621 _sincosl(0, 0, 0);
19622 ; return 0; }
19624 if { (eval echo configure:19625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19625 rm -rf conftest*
19626 glibcpp_cv_func__sincosl_use=yes
19627 else
19628 echo "configure: failed program was:" >&5
19629 cat conftest.$ac_ext >&5
19630 rm -rf conftest*
19631 glibcpp_cv_func__sincosl_use=no
19633 rm -f conftest*
19634 ac_ext=c
19635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19636 ac_cpp='$CPP $CPPFLAGS'
19637 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19638 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19639 cross_compiling=$ac_cv_prog_cc_cross
19645 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19647 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19648 for ac_func in _sincosl
19650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19651 echo "configure:19652: checking for $ac_func" >&5
19652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19653 echo $ac_n "(cached) $ac_c" 1>&6
19654 else
19655 cat > conftest.$ac_ext <<EOF
19656 #line 19657 "configure"
19657 #include "confdefs.h"
19658 /* System header to define __stub macros and hopefully few prototypes,
19659 which can conflict with char $ac_func(); below. */
19660 #include <assert.h>
19661 /* Override any gcc2 internal prototype to avoid an error. */
19662 /* We use char because int might match the return type of a gcc2
19663 builtin and then its argument prototype would still apply. */
19664 char $ac_func();
19666 int main() {
19668 /* The GNU C library defines this for functions which it implements
19669 to always fail with ENOSYS. Some functions are actually named
19670 something starting with __ and the normal name is an alias. */
19671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19672 choke me
19673 #else
19674 $ac_func();
19675 #endif
19677 ; return 0; }
19679 if { (eval echo configure:19680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19680 rm -rf conftest*
19681 eval "ac_cv_func_$ac_func=yes"
19682 else
19683 echo "configure: failed program was:" >&5
19684 cat conftest.$ac_ext >&5
19685 rm -rf conftest*
19686 eval "ac_cv_func_$ac_func=no"
19688 rm -f conftest*
19691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19692 echo "$ac_t""yes" 1>&6
19693 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19694 cat >> confdefs.h <<EOF
19695 #define $ac_tr_func 1
19698 else
19699 echo "$ac_t""no" 1>&6
19701 done
19708 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19709 echo "configure:19710: checking for finitel declaration" >&5
19710 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19711 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19712 echo $ac_n "(cached) $ac_c" 1>&6
19713 else
19716 ac_ext=C
19717 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19718 ac_cpp='$CXXCPP $CPPFLAGS'
19719 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19720 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19721 cross_compiling=$ac_cv_prog_cxx_cross
19723 cat > conftest.$ac_ext <<EOF
19724 #line 19725 "configure"
19725 #include "confdefs.h"
19726 #include <math.h>
19727 #ifdef HAVE_IEEEFP_H
19728 #include <ieeefp.h>
19729 #endif
19731 int main() {
19732 finitel(0);
19733 ; return 0; }
19735 if { (eval echo configure:19736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19736 rm -rf conftest*
19737 glibcpp_cv_func_finitel_use=yes
19738 else
19739 echo "configure: failed program was:" >&5
19740 cat conftest.$ac_ext >&5
19741 rm -rf conftest*
19742 glibcpp_cv_func_finitel_use=no
19744 rm -f conftest*
19745 ac_ext=c
19746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19747 ac_cpp='$CPP $CPPFLAGS'
19748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19750 cross_compiling=$ac_cv_prog_cc_cross
19756 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19758 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19759 for ac_func in finitel
19761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19762 echo "configure:19763: checking for $ac_func" >&5
19763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19764 echo $ac_n "(cached) $ac_c" 1>&6
19765 else
19766 cat > conftest.$ac_ext <<EOF
19767 #line 19768 "configure"
19768 #include "confdefs.h"
19769 /* System header to define __stub macros and hopefully few prototypes,
19770 which can conflict with char $ac_func(); below. */
19771 #include <assert.h>
19772 /* Override any gcc2 internal prototype to avoid an error. */
19773 /* We use char because int might match the return type of a gcc2
19774 builtin and then its argument prototype would still apply. */
19775 char $ac_func();
19777 int main() {
19779 /* The GNU C library defines this for functions which it implements
19780 to always fail with ENOSYS. Some functions are actually named
19781 something starting with __ and the normal name is an alias. */
19782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19783 choke me
19784 #else
19785 $ac_func();
19786 #endif
19788 ; return 0; }
19790 if { (eval echo configure:19791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19791 rm -rf conftest*
19792 eval "ac_cv_func_$ac_func=yes"
19793 else
19794 echo "configure: failed program was:" >&5
19795 cat conftest.$ac_ext >&5
19796 rm -rf conftest*
19797 eval "ac_cv_func_$ac_func=no"
19799 rm -f conftest*
19802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19803 echo "$ac_t""yes" 1>&6
19804 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19805 cat >> confdefs.h <<EOF
19806 #define $ac_tr_func 1
19809 else
19810 echo "$ac_t""no" 1>&6
19812 done
19814 else
19816 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19817 echo "configure:19818: checking for _finitel declaration" >&5
19818 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19819 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19820 echo $ac_n "(cached) $ac_c" 1>&6
19821 else
19824 ac_ext=C
19825 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19826 ac_cpp='$CXXCPP $CPPFLAGS'
19827 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19828 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19829 cross_compiling=$ac_cv_prog_cxx_cross
19831 cat > conftest.$ac_ext <<EOF
19832 #line 19833 "configure"
19833 #include "confdefs.h"
19834 #include <math.h>
19835 #ifdef HAVE_IEEEFP_H
19836 #include <ieeefp.h>
19837 #endif
19839 int main() {
19840 _finitel(0);
19841 ; return 0; }
19843 if { (eval echo configure:19844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19844 rm -rf conftest*
19845 glibcpp_cv_func__finitel_use=yes
19846 else
19847 echo "configure: failed program was:" >&5
19848 cat conftest.$ac_ext >&5
19849 rm -rf conftest*
19850 glibcpp_cv_func__finitel_use=no
19852 rm -f conftest*
19853 ac_ext=c
19854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19855 ac_cpp='$CPP $CPPFLAGS'
19856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19858 cross_compiling=$ac_cv_prog_cc_cross
19864 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19866 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19867 for ac_func in _finitel
19869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19870 echo "configure:19871: checking for $ac_func" >&5
19871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19872 echo $ac_n "(cached) $ac_c" 1>&6
19873 else
19874 cat > conftest.$ac_ext <<EOF
19875 #line 19876 "configure"
19876 #include "confdefs.h"
19877 /* System header to define __stub macros and hopefully few prototypes,
19878 which can conflict with char $ac_func(); below. */
19879 #include <assert.h>
19880 /* Override any gcc2 internal prototype to avoid an error. */
19881 /* We use char because int might match the return type of a gcc2
19882 builtin and then its argument prototype would still apply. */
19883 char $ac_func();
19885 int main() {
19887 /* The GNU C library defines this for functions which it implements
19888 to always fail with ENOSYS. Some functions are actually named
19889 something starting with __ and the normal name is an alias. */
19890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19891 choke me
19892 #else
19893 $ac_func();
19894 #endif
19896 ; return 0; }
19898 if { (eval echo configure:19899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19899 rm -rf conftest*
19900 eval "ac_cv_func_$ac_func=yes"
19901 else
19902 echo "configure: failed program was:" >&5
19903 cat conftest.$ac_ext >&5
19904 rm -rf conftest*
19905 eval "ac_cv_func_$ac_func=no"
19907 rm -f conftest*
19910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19911 echo "$ac_t""yes" 1>&6
19912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19913 cat >> confdefs.h <<EOF
19914 #define $ac_tr_func 1
19917 else
19918 echo "$ac_t""no" 1>&6
19920 done
19928 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19929 echo "configure:19930: checking for _float trig functions" >&5
19930 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19931 echo $ac_n "(cached) $ac_c" 1>&6
19932 else
19935 ac_ext=C
19936 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19937 ac_cpp='$CXXCPP $CPPFLAGS'
19938 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19939 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19940 cross_compiling=$ac_cv_prog_cxx_cross
19942 cat > conftest.$ac_ext <<EOF
19943 #line 19944 "configure"
19944 #include "confdefs.h"
19945 #include <math.h>
19946 int main() {
19947 `for x in _acosf _asinf _atanf \
19948 _cosf _sinf _tanf \
19949 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
19950 ; return 0; }
19952 if { (eval echo configure:19953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19953 rm -rf conftest*
19954 glibcpp_cv_func__float_trig_use=yes
19955 else
19956 echo "configure: failed program was:" >&5
19957 cat conftest.$ac_ext >&5
19958 rm -rf conftest*
19959 glibcpp_cv_func__float_trig_use=no
19961 rm -f conftest*
19962 ac_ext=c
19963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19964 ac_cpp='$CPP $CPPFLAGS'
19965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19967 cross_compiling=$ac_cv_prog_cc_cross
19971 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
19972 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
19973 for ac_func in _acosf _asinf _atanf \
19974 _cosf _sinf _tanf \
19975 _coshf _sinhf _tanhf
19977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19978 echo "configure:19979: checking for $ac_func" >&5
19979 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19980 echo $ac_n "(cached) $ac_c" 1>&6
19981 else
19982 cat > conftest.$ac_ext <<EOF
19983 #line 19984 "configure"
19984 #include "confdefs.h"
19985 /* System header to define __stub macros and hopefully few prototypes,
19986 which can conflict with char $ac_func(); below. */
19987 #include <assert.h>
19988 /* Override any gcc2 internal prototype to avoid an error. */
19989 /* We use char because int might match the return type of a gcc2
19990 builtin and then its argument prototype would still apply. */
19991 char $ac_func();
19993 int main() {
19995 /* The GNU C library defines this for functions which it implements
19996 to always fail with ENOSYS. Some functions are actually named
19997 something starting with __ and the normal name is an alias. */
19998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19999 choke me
20000 #else
20001 $ac_func();
20002 #endif
20004 ; return 0; }
20006 if { (eval echo configure:20007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20007 rm -rf conftest*
20008 eval "ac_cv_func_$ac_func=yes"
20009 else
20010 echo "configure: failed program was:" >&5
20011 cat conftest.$ac_ext >&5
20012 rm -rf conftest*
20013 eval "ac_cv_func_$ac_func=no"
20015 rm -f conftest*
20018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20019 echo "$ac_t""yes" 1>&6
20020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20021 cat >> confdefs.h <<EOF
20022 #define $ac_tr_func 1
20025 else
20026 echo "$ac_t""no" 1>&6
20028 done
20033 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20034 echo "configure:20035: checking for _float round functions" >&5
20035 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20036 echo $ac_n "(cached) $ac_c" 1>&6
20037 else
20040 ac_ext=C
20041 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20042 ac_cpp='$CXXCPP $CPPFLAGS'
20043 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20044 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20045 cross_compiling=$ac_cv_prog_cxx_cross
20047 cat > conftest.$ac_ext <<EOF
20048 #line 20049 "configure"
20049 #include "confdefs.h"
20050 #include <math.h>
20051 int main() {
20052 `for x in _ceilf _floorf; do echo "$x (0);"; done`
20053 ; return 0; }
20055 if { (eval echo configure:20056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20056 rm -rf conftest*
20057 glibcpp_cv_func__float_round_use=yes
20058 else
20059 echo "configure: failed program was:" >&5
20060 cat conftest.$ac_ext >&5
20061 rm -rf conftest*
20062 glibcpp_cv_func__float_round_use=no
20064 rm -f conftest*
20065 ac_ext=c
20066 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20067 ac_cpp='$CPP $CPPFLAGS'
20068 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20069 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20070 cross_compiling=$ac_cv_prog_cc_cross
20074 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20075 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20076 for ac_func in _ceilf _floorf
20078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20079 echo "configure:20080: checking for $ac_func" >&5
20080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20081 echo $ac_n "(cached) $ac_c" 1>&6
20082 else
20083 cat > conftest.$ac_ext <<EOF
20084 #line 20085 "configure"
20085 #include "confdefs.h"
20086 /* System header to define __stub macros and hopefully few prototypes,
20087 which can conflict with char $ac_func(); below. */
20088 #include <assert.h>
20089 /* Override any gcc2 internal prototype to avoid an error. */
20090 /* We use char because int might match the return type of a gcc2
20091 builtin and then its argument prototype would still apply. */
20092 char $ac_func();
20094 int main() {
20096 /* The GNU C library defines this for functions which it implements
20097 to always fail with ENOSYS. Some functions are actually named
20098 something starting with __ and the normal name is an alias. */
20099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20100 choke me
20101 #else
20102 $ac_func();
20103 #endif
20105 ; return 0; }
20107 if { (eval echo configure:20108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20108 rm -rf conftest*
20109 eval "ac_cv_func_$ac_func=yes"
20110 else
20111 echo "configure: failed program was:" >&5
20112 cat conftest.$ac_ext >&5
20113 rm -rf conftest*
20114 eval "ac_cv_func_$ac_func=no"
20116 rm -f conftest*
20119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20120 echo "$ac_t""yes" 1>&6
20121 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20122 cat >> confdefs.h <<EOF
20123 #define $ac_tr_func 1
20126 else
20127 echo "$ac_t""no" 1>&6
20129 done
20135 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20136 echo "configure:20137: checking for _long double trig functions" >&5
20137 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20138 echo $ac_n "(cached) $ac_c" 1>&6
20139 else
20142 ac_ext=C
20143 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20144 ac_cpp='$CXXCPP $CPPFLAGS'
20145 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20146 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20147 cross_compiling=$ac_cv_prog_cxx_cross
20149 cat > conftest.$ac_ext <<EOF
20150 #line 20151 "configure"
20151 #include "confdefs.h"
20152 #include <math.h>
20153 int main() {
20154 `for x in _acosl _asinl _atanl \
20155 _cosl _sinl _tanl \
20156 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
20157 ; return 0; }
20159 if { (eval echo configure:20160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20160 rm -rf conftest*
20161 glibcpp_cv_func__long_double_trig_use=yes
20162 else
20163 echo "configure: failed program was:" >&5
20164 cat conftest.$ac_ext >&5
20165 rm -rf conftest*
20166 glibcpp_cv_func__long_double_trig_use=no
20168 rm -f conftest*
20169 ac_ext=c
20170 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20171 ac_cpp='$CPP $CPPFLAGS'
20172 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20173 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20174 cross_compiling=$ac_cv_prog_cc_cross
20178 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20179 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20180 for ac_func in _acosl _asinl _atanl \
20181 _cosl _sinl _tanl \
20182 _coshl _sinhl _tanhl
20184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20185 echo "configure:20186: checking for $ac_func" >&5
20186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20187 echo $ac_n "(cached) $ac_c" 1>&6
20188 else
20189 cat > conftest.$ac_ext <<EOF
20190 #line 20191 "configure"
20191 #include "confdefs.h"
20192 /* System header to define __stub macros and hopefully few prototypes,
20193 which can conflict with char $ac_func(); below. */
20194 #include <assert.h>
20195 /* Override any gcc2 internal prototype to avoid an error. */
20196 /* We use char because int might match the return type of a gcc2
20197 builtin and then its argument prototype would still apply. */
20198 char $ac_func();
20200 int main() {
20202 /* The GNU C library defines this for functions which it implements
20203 to always fail with ENOSYS. Some functions are actually named
20204 something starting with __ and the normal name is an alias. */
20205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20206 choke me
20207 #else
20208 $ac_func();
20209 #endif
20211 ; return 0; }
20213 if { (eval echo configure:20214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20214 rm -rf conftest*
20215 eval "ac_cv_func_$ac_func=yes"
20216 else
20217 echo "configure: failed program was:" >&5
20218 cat conftest.$ac_ext >&5
20219 rm -rf conftest*
20220 eval "ac_cv_func_$ac_func=no"
20222 rm -f conftest*
20225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20226 echo "$ac_t""yes" 1>&6
20227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20228 cat >> confdefs.h <<EOF
20229 #define $ac_tr_func 1
20232 else
20233 echo "$ac_t""no" 1>&6
20235 done
20240 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20241 echo "configure:20242: checking for _long double round functions" >&5
20242 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20243 echo $ac_n "(cached) $ac_c" 1>&6
20244 else
20247 ac_ext=C
20248 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20249 ac_cpp='$CXXCPP $CPPFLAGS'
20250 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20251 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20252 cross_compiling=$ac_cv_prog_cxx_cross
20254 cat > conftest.$ac_ext <<EOF
20255 #line 20256 "configure"
20256 #include "confdefs.h"
20257 #include <math.h>
20258 int main() {
20259 `for x in _ceill _floorl; do echo "$x (0);"; done`
20260 ; return 0; }
20262 if { (eval echo configure:20263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20263 rm -rf conftest*
20264 glibcpp_cv_func__long_double_round_use=yes
20265 else
20266 echo "configure: failed program was:" >&5
20267 cat conftest.$ac_ext >&5
20268 rm -rf conftest*
20269 glibcpp_cv_func__long_double_round_use=no
20271 rm -f conftest*
20272 ac_ext=c
20273 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20274 ac_cpp='$CPP $CPPFLAGS'
20275 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20276 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20277 cross_compiling=$ac_cv_prog_cc_cross
20281 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20282 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20283 for ac_func in _ceill _floorl
20285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20286 echo "configure:20287: checking for $ac_func" >&5
20287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20288 echo $ac_n "(cached) $ac_c" 1>&6
20289 else
20290 cat > conftest.$ac_ext <<EOF
20291 #line 20292 "configure"
20292 #include "confdefs.h"
20293 /* System header to define __stub macros and hopefully few prototypes,
20294 which can conflict with char $ac_func(); below. */
20295 #include <assert.h>
20296 /* Override any gcc2 internal prototype to avoid an error. */
20297 /* We use char because int might match the return type of a gcc2
20298 builtin and then its argument prototype would still apply. */
20299 char $ac_func();
20301 int main() {
20303 /* The GNU C library defines this for functions which it implements
20304 to always fail with ENOSYS. Some functions are actually named
20305 something starting with __ and the normal name is an alias. */
20306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20307 choke me
20308 #else
20309 $ac_func();
20310 #endif
20312 ; return 0; }
20314 if { (eval echo configure:20315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20315 rm -rf conftest*
20316 eval "ac_cv_func_$ac_func=yes"
20317 else
20318 echo "configure: failed program was:" >&5
20319 cat conftest.$ac_ext >&5
20320 rm -rf conftest*
20321 eval "ac_cv_func_$ac_func=no"
20323 rm -f conftest*
20326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20327 echo "$ac_t""yes" 1>&6
20328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20329 cat >> confdefs.h <<EOF
20330 #define $ac_tr_func 1
20333 else
20334 echo "$ac_t""no" 1>&6
20336 done
20341 LIBS="$ac_save_LIBS"
20342 CXXFLAGS="$ac_save_CXXFLAGS"
20346 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
20347 echo "configure:20348: checking for __builtin_abs declaration" >&5
20348 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
20349 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
20350 echo $ac_n "(cached) $ac_c" 1>&6
20351 else
20354 ac_ext=C
20355 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20356 ac_cpp='$CXXCPP $CPPFLAGS'
20357 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20358 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20359 cross_compiling=$ac_cv_prog_cxx_cross
20361 cat > conftest.$ac_ext <<EOF
20362 #line 20363 "configure"
20363 #include "confdefs.h"
20364 #include <math.h>
20365 int main() {
20366 __builtin_abs(0);
20367 ; return 0; }
20369 if { (eval echo configure:20370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20370 rm -rf conftest*
20371 glibcpp_cv_func___builtin_abs_use=yes
20372 else
20373 echo "configure: failed program was:" >&5
20374 cat conftest.$ac_ext >&5
20375 rm -rf conftest*
20376 glibcpp_cv_func___builtin_abs_use=no
20378 rm -f conftest*
20379 ac_ext=c
20380 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20381 ac_cpp='$CPP $CPPFLAGS'
20382 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20383 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20384 cross_compiling=$ac_cv_prog_cc_cross
20390 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
20391 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
20392 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
20393 echo "configure:20394: checking for __builtin_abs linkage" >&5
20394 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
20395 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
20396 echo $ac_n "(cached) $ac_c" 1>&6
20397 else
20399 cat > conftest.$ac_ext <<EOF
20400 #line 20401 "configure"
20401 #include "confdefs.h"
20402 #include <math.h>
20403 int main() {
20404 __builtin_abs(0);
20405 ; return 0; }
20407 if { (eval echo configure:20408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20408 rm -rf conftest*
20409 glibcpp_cv_func___builtin_abs_link=yes
20410 else
20411 echo "configure: failed program was:" >&5
20412 cat conftest.$ac_ext >&5
20413 rm -rf conftest*
20414 glibcpp_cv_func___builtin_abs_link=no
20416 rm -f conftest*
20421 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
20422 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
20423 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20424 cat >> confdefs.h <<EOF
20425 #define ${ac_tr_func} 1
20432 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
20433 echo "configure:20434: checking for __builtin_fabsf declaration" >&5
20434 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
20435 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
20436 echo $ac_n "(cached) $ac_c" 1>&6
20437 else
20440 ac_ext=C
20441 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20442 ac_cpp='$CXXCPP $CPPFLAGS'
20443 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20444 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20445 cross_compiling=$ac_cv_prog_cxx_cross
20447 cat > conftest.$ac_ext <<EOF
20448 #line 20449 "configure"
20449 #include "confdefs.h"
20450 #include <math.h>
20451 int main() {
20452 __builtin_fabsf(0);
20453 ; return 0; }
20455 if { (eval echo configure:20456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20456 rm -rf conftest*
20457 glibcpp_cv_func___builtin_fabsf_use=yes
20458 else
20459 echo "configure: failed program was:" >&5
20460 cat conftest.$ac_ext >&5
20461 rm -rf conftest*
20462 glibcpp_cv_func___builtin_fabsf_use=no
20464 rm -f conftest*
20465 ac_ext=c
20466 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20467 ac_cpp='$CPP $CPPFLAGS'
20468 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20469 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20470 cross_compiling=$ac_cv_prog_cc_cross
20476 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
20477 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
20478 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
20479 echo "configure:20480: checking for __builtin_fabsf linkage" >&5
20480 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
20481 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
20482 echo $ac_n "(cached) $ac_c" 1>&6
20483 else
20485 cat > conftest.$ac_ext <<EOF
20486 #line 20487 "configure"
20487 #include "confdefs.h"
20488 #include <math.h>
20489 int main() {
20490 __builtin_fabsf(0);
20491 ; return 0; }
20493 if { (eval echo configure:20494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20494 rm -rf conftest*
20495 glibcpp_cv_func___builtin_fabsf_link=yes
20496 else
20497 echo "configure: failed program was:" >&5
20498 cat conftest.$ac_ext >&5
20499 rm -rf conftest*
20500 glibcpp_cv_func___builtin_fabsf_link=no
20502 rm -f conftest*
20507 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
20508 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
20509 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20510 cat >> confdefs.h <<EOF
20511 #define ${ac_tr_func} 1
20518 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
20519 echo "configure:20520: checking for __builtin_fabs declaration" >&5
20520 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
20521 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
20522 echo $ac_n "(cached) $ac_c" 1>&6
20523 else
20526 ac_ext=C
20527 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20528 ac_cpp='$CXXCPP $CPPFLAGS'
20529 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20530 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20531 cross_compiling=$ac_cv_prog_cxx_cross
20533 cat > conftest.$ac_ext <<EOF
20534 #line 20535 "configure"
20535 #include "confdefs.h"
20536 #include <math.h>
20537 int main() {
20538 __builtin_fabs(0);
20539 ; return 0; }
20541 if { (eval echo configure:20542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20542 rm -rf conftest*
20543 glibcpp_cv_func___builtin_fabs_use=yes
20544 else
20545 echo "configure: failed program was:" >&5
20546 cat conftest.$ac_ext >&5
20547 rm -rf conftest*
20548 glibcpp_cv_func___builtin_fabs_use=no
20550 rm -f conftest*
20551 ac_ext=c
20552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20553 ac_cpp='$CPP $CPPFLAGS'
20554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20556 cross_compiling=$ac_cv_prog_cc_cross
20562 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
20563 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
20564 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
20565 echo "configure:20566: checking for __builtin_fabs linkage" >&5
20566 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
20567 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
20568 echo $ac_n "(cached) $ac_c" 1>&6
20569 else
20571 cat > conftest.$ac_ext <<EOF
20572 #line 20573 "configure"
20573 #include "confdefs.h"
20574 #include <math.h>
20575 int main() {
20576 __builtin_fabs(0);
20577 ; return 0; }
20579 if { (eval echo configure:20580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20580 rm -rf conftest*
20581 glibcpp_cv_func___builtin_fabs_link=yes
20582 else
20583 echo "configure: failed program was:" >&5
20584 cat conftest.$ac_ext >&5
20585 rm -rf conftest*
20586 glibcpp_cv_func___builtin_fabs_link=no
20588 rm -f conftest*
20593 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
20594 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
20595 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20596 cat >> confdefs.h <<EOF
20597 #define ${ac_tr_func} 1
20604 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
20605 echo "configure:20606: checking for __builtin_fabsl declaration" >&5
20606 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
20607 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
20608 echo $ac_n "(cached) $ac_c" 1>&6
20609 else
20612 ac_ext=C
20613 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20614 ac_cpp='$CXXCPP $CPPFLAGS'
20615 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20616 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20617 cross_compiling=$ac_cv_prog_cxx_cross
20619 cat > conftest.$ac_ext <<EOF
20620 #line 20621 "configure"
20621 #include "confdefs.h"
20622 #include <math.h>
20623 int main() {
20624 __builtin_fabsl(0);
20625 ; return 0; }
20627 if { (eval echo configure:20628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20628 rm -rf conftest*
20629 glibcpp_cv_func___builtin_fabsl_use=yes
20630 else
20631 echo "configure: failed program was:" >&5
20632 cat conftest.$ac_ext >&5
20633 rm -rf conftest*
20634 glibcpp_cv_func___builtin_fabsl_use=no
20636 rm -f conftest*
20637 ac_ext=c
20638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20639 ac_cpp='$CPP $CPPFLAGS'
20640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20642 cross_compiling=$ac_cv_prog_cc_cross
20648 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
20649 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
20650 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
20651 echo "configure:20652: checking for __builtin_fabsl linkage" >&5
20652 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
20653 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
20654 echo $ac_n "(cached) $ac_c" 1>&6
20655 else
20657 cat > conftest.$ac_ext <<EOF
20658 #line 20659 "configure"
20659 #include "confdefs.h"
20660 #include <math.h>
20661 int main() {
20662 __builtin_fabsl(0);
20663 ; return 0; }
20665 if { (eval echo configure:20666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20666 rm -rf conftest*
20667 glibcpp_cv_func___builtin_fabsl_link=yes
20668 else
20669 echo "configure: failed program was:" >&5
20670 cat conftest.$ac_ext >&5
20671 rm -rf conftest*
20672 glibcpp_cv_func___builtin_fabsl_link=no
20674 rm -f conftest*
20679 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
20680 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
20681 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20682 cat >> confdefs.h <<EOF
20683 #define ${ac_tr_func} 1
20690 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
20691 echo "configure:20692: checking for __builtin_labs declaration" >&5
20692 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
20693 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
20694 echo $ac_n "(cached) $ac_c" 1>&6
20695 else
20698 ac_ext=C
20699 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20700 ac_cpp='$CXXCPP $CPPFLAGS'
20701 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20702 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20703 cross_compiling=$ac_cv_prog_cxx_cross
20705 cat > conftest.$ac_ext <<EOF
20706 #line 20707 "configure"
20707 #include "confdefs.h"
20708 #include <math.h>
20709 int main() {
20710 __builtin_labs(0);
20711 ; return 0; }
20713 if { (eval echo configure:20714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20714 rm -rf conftest*
20715 glibcpp_cv_func___builtin_labs_use=yes
20716 else
20717 echo "configure: failed program was:" >&5
20718 cat conftest.$ac_ext >&5
20719 rm -rf conftest*
20720 glibcpp_cv_func___builtin_labs_use=no
20722 rm -f conftest*
20723 ac_ext=c
20724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20725 ac_cpp='$CPP $CPPFLAGS'
20726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20728 cross_compiling=$ac_cv_prog_cc_cross
20734 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
20735 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
20736 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
20737 echo "configure:20738: checking for __builtin_labs linkage" >&5
20738 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
20739 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
20740 echo $ac_n "(cached) $ac_c" 1>&6
20741 else
20743 cat > conftest.$ac_ext <<EOF
20744 #line 20745 "configure"
20745 #include "confdefs.h"
20746 #include <math.h>
20747 int main() {
20748 __builtin_labs(0);
20749 ; return 0; }
20751 if { (eval echo configure:20752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20752 rm -rf conftest*
20753 glibcpp_cv_func___builtin_labs_link=yes
20754 else
20755 echo "configure: failed program was:" >&5
20756 cat conftest.$ac_ext >&5
20757 rm -rf conftest*
20758 glibcpp_cv_func___builtin_labs_link=no
20760 rm -f conftest*
20765 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
20766 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
20767 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20768 cat >> confdefs.h <<EOF
20769 #define ${ac_tr_func} 1
20777 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
20778 echo "configure:20779: checking for __builtin_sqrtf declaration" >&5
20779 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
20780 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
20781 echo $ac_n "(cached) $ac_c" 1>&6
20782 else
20785 ac_ext=C
20786 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20787 ac_cpp='$CXXCPP $CPPFLAGS'
20788 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20789 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20790 cross_compiling=$ac_cv_prog_cxx_cross
20792 cat > conftest.$ac_ext <<EOF
20793 #line 20794 "configure"
20794 #include "confdefs.h"
20795 #include <math.h>
20796 int main() {
20797 __builtin_sqrtf(0);
20798 ; return 0; }
20800 if { (eval echo configure:20801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20801 rm -rf conftest*
20802 glibcpp_cv_func___builtin_sqrtf_use=yes
20803 else
20804 echo "configure: failed program was:" >&5
20805 cat conftest.$ac_ext >&5
20806 rm -rf conftest*
20807 glibcpp_cv_func___builtin_sqrtf_use=no
20809 rm -f conftest*
20810 ac_ext=c
20811 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20812 ac_cpp='$CPP $CPPFLAGS'
20813 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20814 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20815 cross_compiling=$ac_cv_prog_cc_cross
20821 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
20822 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
20823 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
20824 echo "configure:20825: checking for __builtin_sqrtf linkage" >&5
20825 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
20826 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
20827 echo $ac_n "(cached) $ac_c" 1>&6
20828 else
20830 cat > conftest.$ac_ext <<EOF
20831 #line 20832 "configure"
20832 #include "confdefs.h"
20833 #include <math.h>
20834 int main() {
20835 __builtin_sqrtf(0);
20836 ; return 0; }
20838 if { (eval echo configure:20839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20839 rm -rf conftest*
20840 glibcpp_cv_func___builtin_sqrtf_link=yes
20841 else
20842 echo "configure: failed program was:" >&5
20843 cat conftest.$ac_ext >&5
20844 rm -rf conftest*
20845 glibcpp_cv_func___builtin_sqrtf_link=no
20847 rm -f conftest*
20852 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
20853 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
20854 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20855 cat >> confdefs.h <<EOF
20856 #define ${ac_tr_func} 1
20863 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
20864 echo "configure:20865: checking for __builtin_sqrt declaration" >&5
20865 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
20866 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
20867 echo $ac_n "(cached) $ac_c" 1>&6
20868 else
20871 ac_ext=C
20872 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20873 ac_cpp='$CXXCPP $CPPFLAGS'
20874 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20875 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20876 cross_compiling=$ac_cv_prog_cxx_cross
20878 cat > conftest.$ac_ext <<EOF
20879 #line 20880 "configure"
20880 #include "confdefs.h"
20881 #include <math.h>
20882 int main() {
20883 __builtin_sqrt(0);
20884 ; return 0; }
20886 if { (eval echo configure:20887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20887 rm -rf conftest*
20888 glibcpp_cv_func___builtin_sqrt_use=yes
20889 else
20890 echo "configure: failed program was:" >&5
20891 cat conftest.$ac_ext >&5
20892 rm -rf conftest*
20893 glibcpp_cv_func___builtin_sqrt_use=no
20895 rm -f conftest*
20896 ac_ext=c
20897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20898 ac_cpp='$CPP $CPPFLAGS'
20899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20901 cross_compiling=$ac_cv_prog_cc_cross
20907 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
20908 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
20909 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
20910 echo "configure:20911: checking for __builtin_sqrt linkage" >&5
20911 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
20912 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
20913 echo $ac_n "(cached) $ac_c" 1>&6
20914 else
20916 cat > conftest.$ac_ext <<EOF
20917 #line 20918 "configure"
20918 #include "confdefs.h"
20919 #include <math.h>
20920 int main() {
20921 __builtin_sqrt(0);
20922 ; return 0; }
20924 if { (eval echo configure:20925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20925 rm -rf conftest*
20926 glibcpp_cv_func___builtin_sqrt_link=yes
20927 else
20928 echo "configure: failed program was:" >&5
20929 cat conftest.$ac_ext >&5
20930 rm -rf conftest*
20931 glibcpp_cv_func___builtin_sqrt_link=no
20933 rm -f conftest*
20938 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
20939 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
20940 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20941 cat >> confdefs.h <<EOF
20942 #define ${ac_tr_func} 1
20949 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
20950 echo "configure:20951: checking for __builtin_sqrtl declaration" >&5
20951 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
20952 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
20953 echo $ac_n "(cached) $ac_c" 1>&6
20954 else
20957 ac_ext=C
20958 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20959 ac_cpp='$CXXCPP $CPPFLAGS'
20960 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20961 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20962 cross_compiling=$ac_cv_prog_cxx_cross
20964 cat > conftest.$ac_ext <<EOF
20965 #line 20966 "configure"
20966 #include "confdefs.h"
20967 #include <math.h>
20968 int main() {
20969 __builtin_sqrtl(0);
20970 ; return 0; }
20972 if { (eval echo configure:20973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20973 rm -rf conftest*
20974 glibcpp_cv_func___builtin_sqrtl_use=yes
20975 else
20976 echo "configure: failed program was:" >&5
20977 cat conftest.$ac_ext >&5
20978 rm -rf conftest*
20979 glibcpp_cv_func___builtin_sqrtl_use=no
20981 rm -f conftest*
20982 ac_ext=c
20983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20984 ac_cpp='$CPP $CPPFLAGS'
20985 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20986 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20987 cross_compiling=$ac_cv_prog_cc_cross
20993 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
20994 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
20995 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
20996 echo "configure:20997: checking for __builtin_sqrtl linkage" >&5
20997 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
20998 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
20999 echo $ac_n "(cached) $ac_c" 1>&6
21000 else
21002 cat > conftest.$ac_ext <<EOF
21003 #line 21004 "configure"
21004 #include "confdefs.h"
21005 #include <math.h>
21006 int main() {
21007 __builtin_sqrtl(0);
21008 ; return 0; }
21010 if { (eval echo configure:21011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21011 rm -rf conftest*
21012 glibcpp_cv_func___builtin_sqrtl_link=yes
21013 else
21014 echo "configure: failed program was:" >&5
21015 cat conftest.$ac_ext >&5
21016 rm -rf conftest*
21017 glibcpp_cv_func___builtin_sqrtl_link=no
21019 rm -f conftest*
21024 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
21025 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
21026 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21027 cat >> confdefs.h <<EOF
21028 #define ${ac_tr_func} 1
21036 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
21037 echo "configure:21038: checking for __builtin_sinf declaration" >&5
21038 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
21039 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
21040 echo $ac_n "(cached) $ac_c" 1>&6
21041 else
21044 ac_ext=C
21045 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21046 ac_cpp='$CXXCPP $CPPFLAGS'
21047 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21048 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21049 cross_compiling=$ac_cv_prog_cxx_cross
21051 cat > conftest.$ac_ext <<EOF
21052 #line 21053 "configure"
21053 #include "confdefs.h"
21054 #include <math.h>
21055 int main() {
21056 __builtin_sinf(0);
21057 ; return 0; }
21059 if { (eval echo configure:21060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21060 rm -rf conftest*
21061 glibcpp_cv_func___builtin_sinf_use=yes
21062 else
21063 echo "configure: failed program was:" >&5
21064 cat conftest.$ac_ext >&5
21065 rm -rf conftest*
21066 glibcpp_cv_func___builtin_sinf_use=no
21068 rm -f conftest*
21069 ac_ext=c
21070 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21071 ac_cpp='$CPP $CPPFLAGS'
21072 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21073 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21074 cross_compiling=$ac_cv_prog_cc_cross
21080 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
21081 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
21082 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
21083 echo "configure:21084: checking for __builtin_sinf linkage" >&5
21084 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
21085 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
21086 echo $ac_n "(cached) $ac_c" 1>&6
21087 else
21089 cat > conftest.$ac_ext <<EOF
21090 #line 21091 "configure"
21091 #include "confdefs.h"
21092 #include <math.h>
21093 int main() {
21094 __builtin_sinf(0);
21095 ; return 0; }
21097 if { (eval echo configure:21098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21098 rm -rf conftest*
21099 glibcpp_cv_func___builtin_sinf_link=yes
21100 else
21101 echo "configure: failed program was:" >&5
21102 cat conftest.$ac_ext >&5
21103 rm -rf conftest*
21104 glibcpp_cv_func___builtin_sinf_link=no
21106 rm -f conftest*
21111 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
21112 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
21113 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21114 cat >> confdefs.h <<EOF
21115 #define ${ac_tr_func} 1
21122 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
21123 echo "configure:21124: checking for __builtin_sin declaration" >&5
21124 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
21125 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
21126 echo $ac_n "(cached) $ac_c" 1>&6
21127 else
21130 ac_ext=C
21131 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21132 ac_cpp='$CXXCPP $CPPFLAGS'
21133 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21134 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21135 cross_compiling=$ac_cv_prog_cxx_cross
21137 cat > conftest.$ac_ext <<EOF
21138 #line 21139 "configure"
21139 #include "confdefs.h"
21140 #include <math.h>
21141 int main() {
21142 __builtin_sin(0);
21143 ; return 0; }
21145 if { (eval echo configure:21146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21146 rm -rf conftest*
21147 glibcpp_cv_func___builtin_sin_use=yes
21148 else
21149 echo "configure: failed program was:" >&5
21150 cat conftest.$ac_ext >&5
21151 rm -rf conftest*
21152 glibcpp_cv_func___builtin_sin_use=no
21154 rm -f conftest*
21155 ac_ext=c
21156 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21157 ac_cpp='$CPP $CPPFLAGS'
21158 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21159 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21160 cross_compiling=$ac_cv_prog_cc_cross
21166 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
21167 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
21168 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
21169 echo "configure:21170: checking for __builtin_sin linkage" >&5
21170 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
21171 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
21172 echo $ac_n "(cached) $ac_c" 1>&6
21173 else
21175 cat > conftest.$ac_ext <<EOF
21176 #line 21177 "configure"
21177 #include "confdefs.h"
21178 #include <math.h>
21179 int main() {
21180 __builtin_sin(0);
21181 ; return 0; }
21183 if { (eval echo configure:21184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21184 rm -rf conftest*
21185 glibcpp_cv_func___builtin_sin_link=yes
21186 else
21187 echo "configure: failed program was:" >&5
21188 cat conftest.$ac_ext >&5
21189 rm -rf conftest*
21190 glibcpp_cv_func___builtin_sin_link=no
21192 rm -f conftest*
21197 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
21198 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
21199 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21200 cat >> confdefs.h <<EOF
21201 #define ${ac_tr_func} 1
21208 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
21209 echo "configure:21210: checking for __builtin_sinl declaration" >&5
21210 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
21211 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
21212 echo $ac_n "(cached) $ac_c" 1>&6
21213 else
21216 ac_ext=C
21217 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21218 ac_cpp='$CXXCPP $CPPFLAGS'
21219 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21220 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21221 cross_compiling=$ac_cv_prog_cxx_cross
21223 cat > conftest.$ac_ext <<EOF
21224 #line 21225 "configure"
21225 #include "confdefs.h"
21226 #include <math.h>
21227 int main() {
21228 __builtin_sinl(0);
21229 ; return 0; }
21231 if { (eval echo configure:21232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21232 rm -rf conftest*
21233 glibcpp_cv_func___builtin_sinl_use=yes
21234 else
21235 echo "configure: failed program was:" >&5
21236 cat conftest.$ac_ext >&5
21237 rm -rf conftest*
21238 glibcpp_cv_func___builtin_sinl_use=no
21240 rm -f conftest*
21241 ac_ext=c
21242 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21243 ac_cpp='$CPP $CPPFLAGS'
21244 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21245 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21246 cross_compiling=$ac_cv_prog_cc_cross
21252 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
21253 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
21254 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
21255 echo "configure:21256: checking for __builtin_sinl linkage" >&5
21256 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
21257 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
21258 echo $ac_n "(cached) $ac_c" 1>&6
21259 else
21261 cat > conftest.$ac_ext <<EOF
21262 #line 21263 "configure"
21263 #include "confdefs.h"
21264 #include <math.h>
21265 int main() {
21266 __builtin_sinl(0);
21267 ; return 0; }
21269 if { (eval echo configure:21270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21270 rm -rf conftest*
21271 glibcpp_cv_func___builtin_sinl_link=yes
21272 else
21273 echo "configure: failed program was:" >&5
21274 cat conftest.$ac_ext >&5
21275 rm -rf conftest*
21276 glibcpp_cv_func___builtin_sinl_link=no
21278 rm -f conftest*
21283 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
21284 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
21285 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21286 cat >> confdefs.h <<EOF
21287 #define ${ac_tr_func} 1
21295 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
21296 echo "configure:21297: checking for __builtin_cosf declaration" >&5
21297 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
21298 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
21299 echo $ac_n "(cached) $ac_c" 1>&6
21300 else
21303 ac_ext=C
21304 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21305 ac_cpp='$CXXCPP $CPPFLAGS'
21306 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21307 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21308 cross_compiling=$ac_cv_prog_cxx_cross
21310 cat > conftest.$ac_ext <<EOF
21311 #line 21312 "configure"
21312 #include "confdefs.h"
21313 #include <math.h>
21314 int main() {
21315 __builtin_cosf(0);
21316 ; return 0; }
21318 if { (eval echo configure:21319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21319 rm -rf conftest*
21320 glibcpp_cv_func___builtin_cosf_use=yes
21321 else
21322 echo "configure: failed program was:" >&5
21323 cat conftest.$ac_ext >&5
21324 rm -rf conftest*
21325 glibcpp_cv_func___builtin_cosf_use=no
21327 rm -f conftest*
21328 ac_ext=c
21329 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21330 ac_cpp='$CPP $CPPFLAGS'
21331 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21332 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21333 cross_compiling=$ac_cv_prog_cc_cross
21339 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
21340 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
21341 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
21342 echo "configure:21343: checking for __builtin_cosf linkage" >&5
21343 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
21344 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
21345 echo $ac_n "(cached) $ac_c" 1>&6
21346 else
21348 cat > conftest.$ac_ext <<EOF
21349 #line 21350 "configure"
21350 #include "confdefs.h"
21351 #include <math.h>
21352 int main() {
21353 __builtin_cosf(0);
21354 ; return 0; }
21356 if { (eval echo configure:21357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21357 rm -rf conftest*
21358 glibcpp_cv_func___builtin_cosf_link=yes
21359 else
21360 echo "configure: failed program was:" >&5
21361 cat conftest.$ac_ext >&5
21362 rm -rf conftest*
21363 glibcpp_cv_func___builtin_cosf_link=no
21365 rm -f conftest*
21370 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
21371 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
21372 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21373 cat >> confdefs.h <<EOF
21374 #define ${ac_tr_func} 1
21381 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
21382 echo "configure:21383: checking for __builtin_cos declaration" >&5
21383 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
21384 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
21385 echo $ac_n "(cached) $ac_c" 1>&6
21386 else
21389 ac_ext=C
21390 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21391 ac_cpp='$CXXCPP $CPPFLAGS'
21392 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21393 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21394 cross_compiling=$ac_cv_prog_cxx_cross
21396 cat > conftest.$ac_ext <<EOF
21397 #line 21398 "configure"
21398 #include "confdefs.h"
21399 #include <math.h>
21400 int main() {
21401 __builtin_cos(0);
21402 ; return 0; }
21404 if { (eval echo configure:21405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21405 rm -rf conftest*
21406 glibcpp_cv_func___builtin_cos_use=yes
21407 else
21408 echo "configure: failed program was:" >&5
21409 cat conftest.$ac_ext >&5
21410 rm -rf conftest*
21411 glibcpp_cv_func___builtin_cos_use=no
21413 rm -f conftest*
21414 ac_ext=c
21415 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21416 ac_cpp='$CPP $CPPFLAGS'
21417 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21418 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21419 cross_compiling=$ac_cv_prog_cc_cross
21425 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
21426 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
21427 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
21428 echo "configure:21429: checking for __builtin_cos linkage" >&5
21429 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
21430 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
21431 echo $ac_n "(cached) $ac_c" 1>&6
21432 else
21434 cat > conftest.$ac_ext <<EOF
21435 #line 21436 "configure"
21436 #include "confdefs.h"
21437 #include <math.h>
21438 int main() {
21439 __builtin_cos(0);
21440 ; return 0; }
21442 if { (eval echo configure:21443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21443 rm -rf conftest*
21444 glibcpp_cv_func___builtin_cos_link=yes
21445 else
21446 echo "configure: failed program was:" >&5
21447 cat conftest.$ac_ext >&5
21448 rm -rf conftest*
21449 glibcpp_cv_func___builtin_cos_link=no
21451 rm -f conftest*
21456 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
21457 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
21458 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21459 cat >> confdefs.h <<EOF
21460 #define ${ac_tr_func} 1
21467 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
21468 echo "configure:21469: checking for __builtin_cosl declaration" >&5
21469 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
21470 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
21471 echo $ac_n "(cached) $ac_c" 1>&6
21472 else
21475 ac_ext=C
21476 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21477 ac_cpp='$CXXCPP $CPPFLAGS'
21478 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21479 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21480 cross_compiling=$ac_cv_prog_cxx_cross
21482 cat > conftest.$ac_ext <<EOF
21483 #line 21484 "configure"
21484 #include "confdefs.h"
21485 #include <math.h>
21486 int main() {
21487 __builtin_cosl(0);
21488 ; return 0; }
21490 if { (eval echo configure:21491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21491 rm -rf conftest*
21492 glibcpp_cv_func___builtin_cosl_use=yes
21493 else
21494 echo "configure: failed program was:" >&5
21495 cat conftest.$ac_ext >&5
21496 rm -rf conftest*
21497 glibcpp_cv_func___builtin_cosl_use=no
21499 rm -f conftest*
21500 ac_ext=c
21501 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21502 ac_cpp='$CPP $CPPFLAGS'
21503 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21504 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21505 cross_compiling=$ac_cv_prog_cc_cross
21511 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
21512 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
21513 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
21514 echo "configure:21515: checking for __builtin_cosl linkage" >&5
21515 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
21516 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
21517 echo $ac_n "(cached) $ac_c" 1>&6
21518 else
21520 cat > conftest.$ac_ext <<EOF
21521 #line 21522 "configure"
21522 #include "confdefs.h"
21523 #include <math.h>
21524 int main() {
21525 __builtin_cosl(0);
21526 ; return 0; }
21528 if { (eval echo configure:21529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21529 rm -rf conftest*
21530 glibcpp_cv_func___builtin_cosl_link=yes
21531 else
21532 echo "configure: failed program was:" >&5
21533 cat conftest.$ac_ext >&5
21534 rm -rf conftest*
21535 glibcpp_cv_func___builtin_cosl_link=no
21537 rm -f conftest*
21542 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
21543 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
21544 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21545 cat >> confdefs.h <<EOF
21546 #define ${ac_tr_func} 1
21553 dummyvar=no
21554 if test x$dummyvar = x"yes"; then
21555 cat >> confdefs.h <<\EOF
21556 #define HAVE___BUILTIN_ABS 1
21559 cat >> confdefs.h <<\EOF
21560 #define HAVE___BUILTIN_LABS 1
21563 cat >> confdefs.h <<\EOF
21564 #define HAVE___BUILTIN_COS 1
21567 cat >> confdefs.h <<\EOF
21568 #define HAVE___BUILTIN_COSF 1
21571 cat >> confdefs.h <<\EOF
21572 #define HAVE___BUILTIN_COSL 1
21575 cat >> confdefs.h <<\EOF
21576 #define HAVE___BUILTIN_FABS 1
21579 cat >> confdefs.h <<\EOF
21580 #define HAVE___BUILTIN_FABSF 1
21583 cat >> confdefs.h <<\EOF
21584 #define HAVE___BUILTIN_FABSL 1
21587 cat >> confdefs.h <<\EOF
21588 #define HAVE___BUILTIN_SIN 1
21591 cat >> confdefs.h <<\EOF
21592 #define HAVE___BUILTIN_SINF 1
21595 cat >> confdefs.h <<\EOF
21596 #define HAVE___BUILTIN_SINL 1
21599 cat >> confdefs.h <<\EOF
21600 #define HAVE___BUILTIN_SQRT 1
21603 cat >> confdefs.h <<\EOF
21604 #define HAVE___BUILTIN_SQRTF 1
21607 cat >> confdefs.h <<\EOF
21608 #define HAVE___BUILTIN_SQRTL 1
21614 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21615 echo "configure:21616: checking for main in -lm" >&5
21616 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21617 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21618 echo $ac_n "(cached) $ac_c" 1>&6
21619 else
21620 ac_save_LIBS="$LIBS"
21621 LIBS="-lm $LIBS"
21622 cat > conftest.$ac_ext <<EOF
21623 #line 21624 "configure"
21624 #include "confdefs.h"
21626 int main() {
21627 main()
21628 ; return 0; }
21630 if { (eval echo configure:21631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21631 rm -rf conftest*
21632 eval "ac_cv_lib_$ac_lib_var=yes"
21633 else
21634 echo "configure: failed program was:" >&5
21635 cat conftest.$ac_ext >&5
21636 rm -rf conftest*
21637 eval "ac_cv_lib_$ac_lib_var=no"
21639 rm -f conftest*
21640 LIBS="$ac_save_LIBS"
21643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21644 echo "$ac_t""yes" 1>&6
21645 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21646 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21647 cat >> confdefs.h <<EOF
21648 #define $ac_tr_lib 1
21651 LIBS="-lm $LIBS"
21653 else
21654 echo "$ac_t""no" 1>&6
21657 for ac_func in nan copysignf
21659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21660 echo "configure:21661: checking for $ac_func" >&5
21661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21662 echo $ac_n "(cached) $ac_c" 1>&6
21663 else
21664 cat > conftest.$ac_ext <<EOF
21665 #line 21666 "configure"
21666 #include "confdefs.h"
21667 /* System header to define __stub macros and hopefully few prototypes,
21668 which can conflict with char $ac_func(); below. */
21669 #include <assert.h>
21670 /* Override any gcc2 internal prototype to avoid an error. */
21671 /* We use char because int might match the return type of a gcc2
21672 builtin and then its argument prototype would still apply. */
21673 char $ac_func();
21675 int main() {
21677 /* The GNU C library defines this for functions which it implements
21678 to always fail with ENOSYS. Some functions are actually named
21679 something starting with __ and the normal name is an alias. */
21680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21681 choke me
21682 #else
21683 $ac_func();
21684 #endif
21686 ; return 0; }
21688 if { (eval echo configure:21689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21689 rm -rf conftest*
21690 eval "ac_cv_func_$ac_func=yes"
21691 else
21692 echo "configure: failed program was:" >&5
21693 cat conftest.$ac_ext >&5
21694 rm -rf conftest*
21695 eval "ac_cv_func_$ac_func=no"
21697 rm -f conftest*
21700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21701 echo "$ac_t""yes" 1>&6
21702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21703 cat >> confdefs.h <<EOF
21704 #define $ac_tr_func 1
21707 else
21708 echo "$ac_t""no" 1>&6
21709 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21711 done
21714 for ac_func in __signbit
21716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21717 echo "configure:21718: checking for $ac_func" >&5
21718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21719 echo $ac_n "(cached) $ac_c" 1>&6
21720 else
21721 cat > conftest.$ac_ext <<EOF
21722 #line 21723 "configure"
21723 #include "confdefs.h"
21724 /* System header to define __stub macros and hopefully few prototypes,
21725 which can conflict with char $ac_func(); below. */
21726 #include <assert.h>
21727 /* Override any gcc2 internal prototype to avoid an error. */
21728 /* We use char because int might match the return type of a gcc2
21729 builtin and then its argument prototype would still apply. */
21730 char $ac_func();
21732 int main() {
21734 /* The GNU C library defines this for functions which it implements
21735 to always fail with ENOSYS. Some functions are actually named
21736 something starting with __ and the normal name is an alias. */
21737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21738 choke me
21739 #else
21740 $ac_func();
21741 #endif
21743 ; return 0; }
21745 if { (eval echo configure:21746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21746 rm -rf conftest*
21747 eval "ac_cv_func_$ac_func=yes"
21748 else
21749 echo "configure: failed program was:" >&5
21750 cat conftest.$ac_ext >&5
21751 rm -rf conftest*
21752 eval "ac_cv_func_$ac_func=no"
21754 rm -f conftest*
21757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21758 echo "$ac_t""yes" 1>&6
21759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21760 cat >> confdefs.h <<EOF
21761 #define $ac_tr_func 1
21764 else
21765 echo "$ac_t""no" 1>&6
21766 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21768 done
21770 for ac_func in __signbitf
21772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21773 echo "configure:21774: checking for $ac_func" >&5
21774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21775 echo $ac_n "(cached) $ac_c" 1>&6
21776 else
21777 cat > conftest.$ac_ext <<EOF
21778 #line 21779 "configure"
21779 #include "confdefs.h"
21780 /* System header to define __stub macros and hopefully few prototypes,
21781 which can conflict with char $ac_func(); below. */
21782 #include <assert.h>
21783 /* Override any gcc2 internal prototype to avoid an error. */
21784 /* We use char because int might match the return type of a gcc2
21785 builtin and then its argument prototype would still apply. */
21786 char $ac_func();
21788 int main() {
21790 /* The GNU C library defines this for functions which it implements
21791 to always fail with ENOSYS. Some functions are actually named
21792 something starting with __ and the normal name is an alias. */
21793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21794 choke me
21795 #else
21796 $ac_func();
21797 #endif
21799 ; return 0; }
21801 if { (eval echo configure:21802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21802 rm -rf conftest*
21803 eval "ac_cv_func_$ac_func=yes"
21804 else
21805 echo "configure: failed program was:" >&5
21806 cat conftest.$ac_ext >&5
21807 rm -rf conftest*
21808 eval "ac_cv_func_$ac_func=no"
21810 rm -f conftest*
21813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21814 echo "$ac_t""yes" 1>&6
21815 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21816 cat >> confdefs.h <<EOF
21817 #define $ac_tr_func 1
21820 else
21821 echo "$ac_t""no" 1>&6
21822 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21824 done
21827 if test x$ac_cv_func_copysignl = x"yes"; then
21828 for ac_func in __signbitl
21830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21831 echo "configure:21832: checking for $ac_func" >&5
21832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21833 echo $ac_n "(cached) $ac_c" 1>&6
21834 else
21835 cat > conftest.$ac_ext <<EOF
21836 #line 21837 "configure"
21837 #include "confdefs.h"
21838 /* System header to define __stub macros and hopefully few prototypes,
21839 which can conflict with char $ac_func(); below. */
21840 #include <assert.h>
21841 /* Override any gcc2 internal prototype to avoid an error. */
21842 /* We use char because int might match the return type of a gcc2
21843 builtin and then its argument prototype would still apply. */
21844 char $ac_func();
21846 int main() {
21848 /* The GNU C library defines this for functions which it implements
21849 to always fail with ENOSYS. Some functions are actually named
21850 something starting with __ and the normal name is an alias. */
21851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21852 choke me
21853 #else
21854 $ac_func();
21855 #endif
21857 ; return 0; }
21859 if { (eval echo configure:21860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21860 rm -rf conftest*
21861 eval "ac_cv_func_$ac_func=yes"
21862 else
21863 echo "configure: failed program was:" >&5
21864 cat conftest.$ac_ext >&5
21865 rm -rf conftest*
21866 eval "ac_cv_func_$ac_func=no"
21868 rm -f conftest*
21871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21872 echo "$ac_t""yes" 1>&6
21873 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21874 cat >> confdefs.h <<EOF
21875 #define $ac_tr_func 1
21878 else
21879 echo "$ac_t""no" 1>&6
21880 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
21882 done
21886 if test -n "$LIBMATHOBJS"; then
21887 need_libmath=yes
21893 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
21894 echo "configure:21895: checking for mbstate_t" >&5
21895 cat > conftest.$ac_ext <<EOF
21896 #line 21897 "configure"
21897 #include "confdefs.h"
21898 #include <wchar.h>
21899 int main() {
21900 mbstate_t teststate;
21901 ; return 0; }
21903 if { (eval echo configure:21904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21904 rm -rf conftest*
21905 have_mbstate_t=yes
21906 else
21907 echo "configure: failed program was:" >&5
21908 cat conftest.$ac_ext >&5
21909 rm -rf conftest*
21910 have_mbstate_t=no
21912 rm -f conftest*
21913 echo "$ac_t""$have_mbstate_t" 1>&6
21914 if test x"$have_mbstate_t" = xyes; then
21915 cat >> confdefs.h <<\EOF
21916 #define HAVE_MBSTATE_T 1
21921 for ac_hdr in wchar.h
21923 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21924 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21925 echo "configure:21926: checking for $ac_hdr" >&5
21926 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21927 echo $ac_n "(cached) $ac_c" 1>&6
21928 else
21929 cat > conftest.$ac_ext <<EOF
21930 #line 21931 "configure"
21931 #include "confdefs.h"
21932 #include <$ac_hdr>
21934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21935 { (eval echo configure:21936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21937 if test -z "$ac_err"; then
21938 rm -rf conftest*
21939 eval "ac_cv_header_$ac_safe=yes"
21940 else
21941 echo "$ac_err" >&5
21942 echo "configure: failed program was:" >&5
21943 cat conftest.$ac_ext >&5
21944 rm -rf conftest*
21945 eval "ac_cv_header_$ac_safe=no"
21947 rm -f conftest*
21949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21950 echo "$ac_t""yes" 1>&6
21951 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21952 cat >> confdefs.h <<EOF
21953 #define $ac_tr_hdr 1
21955 ac_has_wchar_h=yes
21956 else
21957 echo "$ac_t""no" 1>&6
21958 ac_has_wchar_h=no
21960 done
21962 for ac_hdr in wctype.h
21964 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21965 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21966 echo "configure:21967: checking for $ac_hdr" >&5
21967 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21968 echo $ac_n "(cached) $ac_c" 1>&6
21969 else
21970 cat > conftest.$ac_ext <<EOF
21971 #line 21972 "configure"
21972 #include "confdefs.h"
21973 #include <$ac_hdr>
21975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21976 { (eval echo configure:21977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21978 if test -z "$ac_err"; then
21979 rm -rf conftest*
21980 eval "ac_cv_header_$ac_safe=yes"
21981 else
21982 echo "$ac_err" >&5
21983 echo "configure: failed program was:" >&5
21984 cat conftest.$ac_ext >&5
21985 rm -rf conftest*
21986 eval "ac_cv_header_$ac_safe=no"
21988 rm -f conftest*
21990 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21991 echo "$ac_t""yes" 1>&6
21992 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21993 cat >> confdefs.h <<EOF
21994 #define $ac_tr_hdr 1
21996 ac_has_wctype_h=yes
21997 else
21998 echo "$ac_t""no" 1>&6
21999 ac_has_wctype_h=no
22001 done
22004 if test x"$ac_has_wchar_h" = xyes &&
22005 test x"$ac_has_wctype_h" = xyes &&
22006 test x"$enable_c_mbchar" != xno; then
22008 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22009 echo "configure:22010: checking for WCHAR_MIN and WCHAR_MAX" >&5
22010 cat > conftest.$ac_ext <<EOF
22011 #line 22012 "configure"
22012 #include "confdefs.h"
22013 #include <wchar.h>
22014 int main() {
22015 int i = WCHAR_MIN; int j = WCHAR_MAX;
22016 ; return 0; }
22018 if { (eval echo configure:22019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22019 rm -rf conftest*
22020 has_wchar_minmax=yes
22021 else
22022 echo "configure: failed program was:" >&5
22023 cat conftest.$ac_ext >&5
22024 rm -rf conftest*
22025 has_wchar_minmax=no
22027 rm -f conftest*
22028 echo "$ac_t""$has_wchar_minmax" 1>&6
22030 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22031 echo "configure:22032: checking for WEOF" >&5
22032 cat > conftest.$ac_ext <<EOF
22033 #line 22034 "configure"
22034 #include "confdefs.h"
22036 #include <wchar.h>
22037 #include <stddef.h>
22038 int main() {
22039 wint_t i = WEOF;
22040 ; return 0; }
22042 if { (eval echo configure:22043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22043 rm -rf conftest*
22044 has_weof=yes
22045 else
22046 echo "configure: failed program was:" >&5
22047 cat conftest.$ac_ext >&5
22048 rm -rf conftest*
22049 has_weof=no
22051 rm -f conftest*
22052 echo "$ac_t""$has_weof" 1>&6
22054 ac_wfuncs=yes
22055 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22058 echo "configure:22059: checking for $ac_func" >&5
22059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22060 echo $ac_n "(cached) $ac_c" 1>&6
22061 else
22062 cat > conftest.$ac_ext <<EOF
22063 #line 22064 "configure"
22064 #include "confdefs.h"
22065 /* System header to define __stub macros and hopefully few prototypes,
22066 which can conflict with char $ac_func(); below. */
22067 #include <assert.h>
22068 /* Override any gcc2 internal prototype to avoid an error. */
22069 /* We use char because int might match the return type of a gcc2
22070 builtin and then its argument prototype would still apply. */
22071 char $ac_func();
22073 int main() {
22075 /* The GNU C library defines this for functions which it implements
22076 to always fail with ENOSYS. Some functions are actually named
22077 something starting with __ and the normal name is an alias. */
22078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22079 choke me
22080 #else
22081 $ac_func();
22082 #endif
22084 ; return 0; }
22086 if { (eval echo configure:22087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22087 rm -rf conftest*
22088 eval "ac_cv_func_$ac_func=yes"
22089 else
22090 echo "configure: failed program was:" >&5
22091 cat conftest.$ac_ext >&5
22092 rm -rf conftest*
22093 eval "ac_cv_func_$ac_func=no"
22095 rm -f conftest*
22098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22099 echo "$ac_t""yes" 1>&6
22100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22101 cat >> confdefs.h <<EOF
22102 #define $ac_tr_func 1
22105 else
22106 echo "$ac_t""no" 1>&6
22108 ac_wfuncs=no
22110 done
22113 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22114 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22115 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22116 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22117 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22118 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22121 echo "configure:22122: checking for $ac_func" >&5
22122 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22123 echo $ac_n "(cached) $ac_c" 1>&6
22124 else
22125 cat > conftest.$ac_ext <<EOF
22126 #line 22127 "configure"
22127 #include "confdefs.h"
22128 /* System header to define __stub macros and hopefully few prototypes,
22129 which can conflict with char $ac_func(); below. */
22130 #include <assert.h>
22131 /* Override any gcc2 internal prototype to avoid an error. */
22132 /* We use char because int might match the return type of a gcc2
22133 builtin and then its argument prototype would still apply. */
22134 char $ac_func();
22136 int main() {
22138 /* The GNU C library defines this for functions which it implements
22139 to always fail with ENOSYS. Some functions are actually named
22140 something starting with __ and the normal name is an alias. */
22141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22142 choke me
22143 #else
22144 $ac_func();
22145 #endif
22147 ; return 0; }
22149 if { (eval echo configure:22150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22150 rm -rf conftest*
22151 eval "ac_cv_func_$ac_func=yes"
22152 else
22153 echo "configure: failed program was:" >&5
22154 cat conftest.$ac_ext >&5
22155 rm -rf conftest*
22156 eval "ac_cv_func_$ac_func=no"
22158 rm -f conftest*
22161 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22162 echo "$ac_t""yes" 1>&6
22163 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22164 cat >> confdefs.h <<EOF
22165 #define $ac_tr_func 1
22168 else
22169 echo "$ac_t""no" 1>&6
22171 ac_wfuncs=no
22173 done
22176 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22177 echo "configure:22178: checking for ISO C99 wchar_t support" >&5
22178 if test x"$has_weof" = xyes &&
22179 test x"$has_wchar_minmax" = xyes &&
22180 test x"$ac_wfuncs" = xyes; then
22181 ac_isoC99_wchar_t=yes
22182 else
22183 ac_isoC99_wchar_t=no
22185 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22187 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22188 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22189 echo "configure:22190: checking for iconv.h" >&5
22190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22191 echo $ac_n "(cached) $ac_c" 1>&6
22192 else
22193 cat > conftest.$ac_ext <<EOF
22194 #line 22195 "configure"
22195 #include "confdefs.h"
22196 #include <iconv.h>
22198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22199 { (eval echo configure:22200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22201 if test -z "$ac_err"; then
22202 rm -rf conftest*
22203 eval "ac_cv_header_$ac_safe=yes"
22204 else
22205 echo "$ac_err" >&5
22206 echo "configure: failed program was:" >&5
22207 cat conftest.$ac_ext >&5
22208 rm -rf conftest*
22209 eval "ac_cv_header_$ac_safe=no"
22211 rm -f conftest*
22213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22214 echo "$ac_t""yes" 1>&6
22215 ac_has_iconv_h=yes
22216 else
22217 echo "$ac_t""no" 1>&6
22218 ac_has_iconv_h=no
22221 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22222 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22223 echo "configure:22224: checking for langinfo.h" >&5
22224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22225 echo $ac_n "(cached) $ac_c" 1>&6
22226 else
22227 cat > conftest.$ac_ext <<EOF
22228 #line 22229 "configure"
22229 #include "confdefs.h"
22230 #include <langinfo.h>
22232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22233 { (eval echo configure:22234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22235 if test -z "$ac_err"; then
22236 rm -rf conftest*
22237 eval "ac_cv_header_$ac_safe=yes"
22238 else
22239 echo "$ac_err" >&5
22240 echo "configure: failed program was:" >&5
22241 cat conftest.$ac_ext >&5
22242 rm -rf conftest*
22243 eval "ac_cv_header_$ac_safe=no"
22245 rm -f conftest*
22247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22248 echo "$ac_t""yes" 1>&6
22249 ac_has_langinfo_h=yes
22250 else
22251 echo "$ac_t""no" 1>&6
22252 ac_has_langinfo_h=no
22256 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22257 echo "configure:22258: checking for iconv in -liconv" >&5
22258 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22260 echo $ac_n "(cached) $ac_c" 1>&6
22261 else
22262 ac_save_LIBS="$LIBS"
22263 LIBS="-liconv $LIBS"
22264 cat > conftest.$ac_ext <<EOF
22265 #line 22266 "configure"
22266 #include "confdefs.h"
22267 /* Override any gcc2 internal prototype to avoid an error. */
22268 /* We use char because int might match the return type of a gcc2
22269 builtin and then its argument prototype would still apply. */
22270 char iconv();
22272 int main() {
22273 iconv()
22274 ; return 0; }
22276 if { (eval echo configure:22277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22277 rm -rf conftest*
22278 eval "ac_cv_lib_$ac_lib_var=yes"
22279 else
22280 echo "configure: failed program was:" >&5
22281 cat conftest.$ac_ext >&5
22282 rm -rf conftest*
22283 eval "ac_cv_lib_$ac_lib_var=no"
22285 rm -f conftest*
22286 LIBS="$ac_save_LIBS"
22289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22290 echo "$ac_t""yes" 1>&6
22291 libiconv="-liconv"
22292 else
22293 echo "$ac_t""no" 1>&6
22296 ac_save_LIBS="$LIBS"
22297 LIBS="$LIBS $libiconv"
22299 for ac_func in iconv_open iconv_close iconv nl_langinfo
22301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22302 echo "configure:22303: checking for $ac_func" >&5
22303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22304 echo $ac_n "(cached) $ac_c" 1>&6
22305 else
22306 cat > conftest.$ac_ext <<EOF
22307 #line 22308 "configure"
22308 #include "confdefs.h"
22309 /* System header to define __stub macros and hopefully few prototypes,
22310 which can conflict with char $ac_func(); below. */
22311 #include <assert.h>
22312 /* Override any gcc2 internal prototype to avoid an error. */
22313 /* We use char because int might match the return type of a gcc2
22314 builtin and then its argument prototype would still apply. */
22315 char $ac_func();
22317 int main() {
22319 /* The GNU C library defines this for functions which it implements
22320 to always fail with ENOSYS. Some functions are actually named
22321 something starting with __ and the normal name is an alias. */
22322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22323 choke me
22324 #else
22325 $ac_func();
22326 #endif
22328 ; return 0; }
22330 if { (eval echo configure:22331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22331 rm -rf conftest*
22332 eval "ac_cv_func_$ac_func=yes"
22333 else
22334 echo "configure: failed program was:" >&5
22335 cat conftest.$ac_ext >&5
22336 rm -rf conftest*
22337 eval "ac_cv_func_$ac_func=no"
22339 rm -f conftest*
22342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22343 echo "$ac_t""yes" 1>&6
22344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22345 cat >> confdefs.h <<EOF
22346 #define $ac_tr_func 1
22349 ac_XPG2funcs=yes
22350 else
22351 echo "$ac_t""no" 1>&6
22352 ac_XPG2funcs=no
22354 done
22357 LIBS="$ac_save_LIBS"
22359 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22360 echo "configure:22361: checking for XPG2 wchar_t support" >&5
22361 if test x"$ac_has_iconv_h" = xyes &&
22362 test x"$ac_has_langinfo_h" = xyes &&
22363 test x"$ac_XPG2funcs" = xyes; then
22364 ac_XPG2_wchar_t=yes
22365 else
22366 ac_XPG2_wchar_t=no
22368 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22370 if test x"$ac_isoC99_wchar_t" = xyes &&
22371 test x"$ac_XPG2_wchar_t" = xyes; then
22372 cat >> confdefs.h <<\EOF
22373 #define _GLIBCPP_USE_WCHAR_T 1
22376 enable_wchar_t=yes
22379 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22380 echo "configure:22381: checking for enabled wchar_t specializations" >&5
22381 echo "$ac_t""$enable_wchar_t" 1>&6
22384 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22385 ac_save_CXXFLAGS="$CXXFLAGS"
22386 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22389 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22390 echo "configure:22391: checking for strtold declaration" >&5
22391 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22392 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22393 echo $ac_n "(cached) $ac_c" 1>&6
22394 else
22397 ac_ext=C
22398 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22399 ac_cpp='$CXXCPP $CPPFLAGS'
22400 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22401 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22402 cross_compiling=$ac_cv_prog_cxx_cross
22404 cat > conftest.$ac_ext <<EOF
22405 #line 22406 "configure"
22406 #include "confdefs.h"
22407 #include <stdlib.h>
22408 int main() {
22409 strtold(0, 0);
22410 ; return 0; }
22412 if { (eval echo configure:22413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22413 rm -rf conftest*
22414 glibcpp_cv_func_strtold_use=yes
22415 else
22416 echo "configure: failed program was:" >&5
22417 cat conftest.$ac_ext >&5
22418 rm -rf conftest*
22419 glibcpp_cv_func_strtold_use=no
22421 rm -f conftest*
22422 ac_ext=c
22423 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22424 ac_cpp='$CPP $CPPFLAGS'
22425 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22426 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22427 cross_compiling=$ac_cv_prog_cc_cross
22433 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22434 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22435 for ac_func in strtold
22437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22438 echo "configure:22439: checking for $ac_func" >&5
22439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22440 echo $ac_n "(cached) $ac_c" 1>&6
22441 else
22442 cat > conftest.$ac_ext <<EOF
22443 #line 22444 "configure"
22444 #include "confdefs.h"
22445 /* System header to define __stub macros and hopefully few prototypes,
22446 which can conflict with char $ac_func(); below. */
22447 #include <assert.h>
22448 /* Override any gcc2 internal prototype to avoid an error. */
22449 /* We use char because int might match the return type of a gcc2
22450 builtin and then its argument prototype would still apply. */
22451 char $ac_func();
22453 int main() {
22455 /* The GNU C library defines this for functions which it implements
22456 to always fail with ENOSYS. Some functions are actually named
22457 something starting with __ and the normal name is an alias. */
22458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22459 choke me
22460 #else
22461 $ac_func();
22462 #endif
22464 ; return 0; }
22466 if { (eval echo configure:22467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22467 rm -rf conftest*
22468 eval "ac_cv_func_$ac_func=yes"
22469 else
22470 echo "configure: failed program was:" >&5
22471 cat conftest.$ac_ext >&5
22472 rm -rf conftest*
22473 eval "ac_cv_func_$ac_func=no"
22475 rm -f conftest*
22478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22479 echo "$ac_t""yes" 1>&6
22480 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22481 cat >> confdefs.h <<EOF
22482 #define $ac_tr_func 1
22485 else
22486 echo "$ac_t""no" 1>&6
22488 done
22493 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22494 echo "configure:22495: checking for strtof declaration" >&5
22495 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22496 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22497 echo $ac_n "(cached) $ac_c" 1>&6
22498 else
22501 ac_ext=C
22502 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22503 ac_cpp='$CXXCPP $CPPFLAGS'
22504 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22505 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22506 cross_compiling=$ac_cv_prog_cxx_cross
22508 cat > conftest.$ac_ext <<EOF
22509 #line 22510 "configure"
22510 #include "confdefs.h"
22511 #include <stdlib.h>
22512 int main() {
22513 strtof(0, 0);
22514 ; return 0; }
22516 if { (eval echo configure:22517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22517 rm -rf conftest*
22518 glibcpp_cv_func_strtof_use=yes
22519 else
22520 echo "configure: failed program was:" >&5
22521 cat conftest.$ac_ext >&5
22522 rm -rf conftest*
22523 glibcpp_cv_func_strtof_use=no
22525 rm -f conftest*
22526 ac_ext=c
22527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22528 ac_cpp='$CPP $CPPFLAGS'
22529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22531 cross_compiling=$ac_cv_prog_cc_cross
22537 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22538 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22539 for ac_func in strtof
22541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22542 echo "configure:22543: checking for $ac_func" >&5
22543 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22544 echo $ac_n "(cached) $ac_c" 1>&6
22545 else
22546 cat > conftest.$ac_ext <<EOF
22547 #line 22548 "configure"
22548 #include "confdefs.h"
22549 /* System header to define __stub macros and hopefully few prototypes,
22550 which can conflict with char $ac_func(); below. */
22551 #include <assert.h>
22552 /* Override any gcc2 internal prototype to avoid an error. */
22553 /* We use char because int might match the return type of a gcc2
22554 builtin and then its argument prototype would still apply. */
22555 char $ac_func();
22557 int main() {
22559 /* The GNU C library defines this for functions which it implements
22560 to always fail with ENOSYS. Some functions are actually named
22561 something starting with __ and the normal name is an alias. */
22562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22563 choke me
22564 #else
22565 $ac_func();
22566 #endif
22568 ; return 0; }
22570 if { (eval echo configure:22571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22571 rm -rf conftest*
22572 eval "ac_cv_func_$ac_func=yes"
22573 else
22574 echo "configure: failed program was:" >&5
22575 cat conftest.$ac_ext >&5
22576 rm -rf conftest*
22577 eval "ac_cv_func_$ac_func=no"
22579 rm -f conftest*
22582 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22583 echo "$ac_t""yes" 1>&6
22584 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22585 cat >> confdefs.h <<EOF
22586 #define $ac_tr_func 1
22589 else
22590 echo "$ac_t""no" 1>&6
22592 done
22596 for ac_func in drand48
22598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22599 echo "configure:22600: checking for $ac_func" >&5
22600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22601 echo $ac_n "(cached) $ac_c" 1>&6
22602 else
22603 cat > conftest.$ac_ext <<EOF
22604 #line 22605 "configure"
22605 #include "confdefs.h"
22606 /* System header to define __stub macros and hopefully few prototypes,
22607 which can conflict with char $ac_func(); below. */
22608 #include <assert.h>
22609 /* Override any gcc2 internal prototype to avoid an error. */
22610 /* We use char because int might match the return type of a gcc2
22611 builtin and then its argument prototype would still apply. */
22612 char $ac_func();
22614 int main() {
22616 /* The GNU C library defines this for functions which it implements
22617 to always fail with ENOSYS. Some functions are actually named
22618 something starting with __ and the normal name is an alias. */
22619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22620 choke me
22621 #else
22622 $ac_func();
22623 #endif
22625 ; return 0; }
22627 if { (eval echo configure:22628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22628 rm -rf conftest*
22629 eval "ac_cv_func_$ac_func=yes"
22630 else
22631 echo "configure: failed program was:" >&5
22632 cat conftest.$ac_ext >&5
22633 rm -rf conftest*
22634 eval "ac_cv_func_$ac_func=no"
22636 rm -f conftest*
22639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22640 echo "$ac_t""yes" 1>&6
22641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22642 cat >> confdefs.h <<EOF
22643 #define $ac_tr_func 1
22646 else
22647 echo "$ac_t""no" 1>&6
22649 done
22652 CXXFLAGS="$ac_save_CXXFLAGS"
22655 # For showmanyc_helper().
22656 for ac_hdr in sys/ioctl.h sys/filio.h
22658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22660 echo "configure:22661: checking for $ac_hdr" >&5
22661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22662 echo $ac_n "(cached) $ac_c" 1>&6
22663 else
22664 cat > conftest.$ac_ext <<EOF
22665 #line 22666 "configure"
22666 #include "confdefs.h"
22667 #include <$ac_hdr>
22669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22670 { (eval echo configure:22671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22672 if test -z "$ac_err"; then
22673 rm -rf conftest*
22674 eval "ac_cv_header_$ac_safe=yes"
22675 else
22676 echo "$ac_err" >&5
22677 echo "configure: failed program was:" >&5
22678 cat conftest.$ac_ext >&5
22679 rm -rf conftest*
22680 eval "ac_cv_header_$ac_safe=no"
22682 rm -f conftest*
22684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22685 echo "$ac_t""yes" 1>&6
22686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22687 cat >> confdefs.h <<EOF
22688 #define $ac_tr_hdr 1
22691 else
22692 echo "$ac_t""no" 1>&6
22694 done
22697 if eval "test \"`echo '$''{'glibcpp_cv_POLL'+set}'`\" = set"; then
22698 echo $ac_n "(cached) $ac_c" 1>&6
22699 else
22701 cat > conftest.$ac_ext <<EOF
22702 #line 22703 "configure"
22703 #include "confdefs.h"
22704 #include <poll.h>
22705 int main() {
22706 struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0);
22707 ; return 0; }
22709 if { (eval echo configure:22710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22710 rm -rf conftest*
22711 glibcpp_cv_POLL=yes
22712 else
22713 echo "configure: failed program was:" >&5
22714 cat conftest.$ac_ext >&5
22715 rm -rf conftest*
22716 glibcpp_cv_POLL=no
22718 rm -f conftest*
22722 if test x$glibcpp_cv_POLL = xyes; then
22723 cat >> confdefs.h <<\EOF
22724 #define HAVE_POLL 1
22730 if eval "test \"`echo '$''{'glibcpp_cv_S_ISREG'+set}'`\" = set"; then
22731 echo $ac_n "(cached) $ac_c" 1>&6
22732 else
22734 cat > conftest.$ac_ext <<EOF
22735 #line 22736 "configure"
22736 #include "confdefs.h"
22737 #include <sys/stat.h>
22738 int main() {
22739 struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode);
22740 ; return 0; }
22742 if { (eval echo configure:22743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22743 rm -rf conftest*
22744 glibcpp_cv_S_ISREG=yes
22745 else
22746 echo "configure: failed program was:" >&5
22747 cat conftest.$ac_ext >&5
22748 rm -rf conftest*
22749 glibcpp_cv_S_ISREG=no
22751 rm -f conftest*
22755 if eval "test \"`echo '$''{'glibcpp_cv_S_IFREG'+set}'`\" = set"; then
22756 echo $ac_n "(cached) $ac_c" 1>&6
22757 else
22759 cat > conftest.$ac_ext <<EOF
22760 #line 22761 "configure"
22761 #include "confdefs.h"
22762 #include <sys/stat.h>
22763 int main() {
22764 struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode;
22765 ; return 0; }
22767 if { (eval echo configure:22768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22768 rm -rf conftest*
22769 glibcpp_cv_S_IFREG=yes
22770 else
22771 echo "configure: failed program was:" >&5
22772 cat conftest.$ac_ext >&5
22773 rm -rf conftest*
22774 glibcpp_cv_S_IFREG=no
22776 rm -f conftest*
22780 if test x$glibcpp_cv_S_ISREG = xyes; then
22781 cat >> confdefs.h <<\EOF
22782 #define HAVE_S_ISREG 1
22785 elif test x$glibcpp_cv_S_IFREG = xyes; then
22786 cat >> confdefs.h <<\EOF
22787 #define HAVE_S_IFREG 1
22794 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22795 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22796 echo "configure:22797: checking for locale.h" >&5
22797 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22798 echo $ac_n "(cached) $ac_c" 1>&6
22799 else
22800 cat > conftest.$ac_ext <<EOF
22801 #line 22802 "configure"
22802 #include "confdefs.h"
22803 #include <locale.h>
22805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22806 { (eval echo configure:22807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22808 if test -z "$ac_err"; then
22809 rm -rf conftest*
22810 eval "ac_cv_header_$ac_safe=yes"
22811 else
22812 echo "$ac_err" >&5
22813 echo "configure: failed program was:" >&5
22814 cat conftest.$ac_ext >&5
22815 rm -rf conftest*
22816 eval "ac_cv_header_$ac_safe=no"
22818 rm -f conftest*
22820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22821 echo "$ac_t""yes" 1>&6
22823 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22824 echo "configure:22825: checking for LC_MESSAGES" >&5
22825 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22826 echo $ac_n "(cached) $ac_c" 1>&6
22827 else
22828 cat > conftest.$ac_ext <<EOF
22829 #line 22830 "configure"
22830 #include "confdefs.h"
22831 #include <locale.h>
22832 int main() {
22833 return LC_MESSAGES
22834 ; return 0; }
22836 if { (eval echo configure:22837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22837 rm -rf conftest*
22838 ac_cv_val_LC_MESSAGES=yes
22839 else
22840 echo "configure: failed program was:" >&5
22841 cat conftest.$ac_ext >&5
22842 rm -rf conftest*
22843 ac_cv_val_LC_MESSAGES=no
22845 rm -f conftest*
22848 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22849 if test $ac_cv_val_LC_MESSAGES = yes; then
22850 cat >> confdefs.h <<\EOF
22851 #define HAVE_LC_MESSAGES 1
22856 else
22857 echo "$ac_t""no" 1>&6
22862 cat > conftest.$ac_ext <<EOF
22863 #line 22864 "configure"
22864 #include "confdefs.h"
22866 #include <setjmp.h>
22868 int main() {
22869 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
22870 ; return 0; }
22872 if { (eval echo configure:22873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22873 rm -rf conftest*
22874 cat >> confdefs.h <<\EOF
22875 #define HAVE_SIGSETJMP 1
22879 else
22880 echo "configure: failed program was:" >&5
22881 cat conftest.$ac_ext >&5
22883 rm -f conftest*
22885 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
22887 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22888 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22889 echo "configure:22890: checking for $ac_hdr" >&5
22890 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22891 echo $ac_n "(cached) $ac_c" 1>&6
22892 else
22893 cat > conftest.$ac_ext <<EOF
22894 #line 22895 "configure"
22895 #include "confdefs.h"
22896 #include <$ac_hdr>
22898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22899 { (eval echo configure:22900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22901 if test -z "$ac_err"; then
22902 rm -rf conftest*
22903 eval "ac_cv_header_$ac_safe=yes"
22904 else
22905 echo "$ac_err" >&5
22906 echo "configure: failed program was:" >&5
22907 cat conftest.$ac_ext >&5
22908 rm -rf conftest*
22909 eval "ac_cv_header_$ac_safe=no"
22911 rm -f conftest*
22913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22914 echo "$ac_t""yes" 1>&6
22915 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22916 cat >> confdefs.h <<EOF
22917 #define $ac_tr_hdr 1
22920 else
22921 echo "$ac_t""no" 1>&6
22923 done
22925 for ac_func in getpagesize
22927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22928 echo "configure:22929: checking for $ac_func" >&5
22929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22930 echo $ac_n "(cached) $ac_c" 1>&6
22931 else
22932 cat > conftest.$ac_ext <<EOF
22933 #line 22934 "configure"
22934 #include "confdefs.h"
22935 /* System header to define __stub macros and hopefully few prototypes,
22936 which can conflict with char $ac_func(); below. */
22937 #include <assert.h>
22938 /* Override any gcc2 internal prototype to avoid an error. */
22939 /* We use char because int might match the return type of a gcc2
22940 builtin and then its argument prototype would still apply. */
22941 char $ac_func();
22943 int main() {
22945 /* The GNU C library defines this for functions which it implements
22946 to always fail with ENOSYS. Some functions are actually named
22947 something starting with __ and the normal name is an alias. */
22948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22949 choke me
22950 #else
22951 $ac_func();
22952 #endif
22954 ; return 0; }
22956 if { (eval echo configure:22957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22957 rm -rf conftest*
22958 eval "ac_cv_func_$ac_func=yes"
22959 else
22960 echo "configure: failed program was:" >&5
22961 cat conftest.$ac_ext >&5
22962 rm -rf conftest*
22963 eval "ac_cv_func_$ac_func=no"
22965 rm -f conftest*
22968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22969 echo "$ac_t""yes" 1>&6
22970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22971 cat >> confdefs.h <<EOF
22972 #define $ac_tr_func 1
22975 else
22976 echo "$ac_t""no" 1>&6
22978 done
22980 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
22981 echo "configure:22982: checking for working mmap" >&5
22982 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
22983 echo $ac_n "(cached) $ac_c" 1>&6
22984 else
22985 if test "$cross_compiling" = yes; then
22986 ac_cv_func_mmap_fixed_mapped=no
22987 else
22988 cat > conftest.$ac_ext <<EOF
22989 #line 22990 "configure"
22990 #include "confdefs.h"
22992 /* Thanks to Mike Haertel and Jim Avera for this test.
22993 Here is a matrix of mmap possibilities:
22994 mmap private not fixed
22995 mmap private fixed at somewhere currently unmapped
22996 mmap private fixed at somewhere already mapped
22997 mmap shared not fixed
22998 mmap shared fixed at somewhere currently unmapped
22999 mmap shared fixed at somewhere already mapped
23000 For private mappings, we should verify that changes cannot be read()
23001 back from the file, nor mmap's back from the file at a different
23002 address. (There have been systems where private was not correctly
23003 implemented like the infamous i386 svr4.0, and systems where the
23004 VM page cache was not coherent with the filesystem buffer cache
23005 like early versions of FreeBSD and possibly contemporary NetBSD.)
23006 For shared mappings, we should conversely verify that changes get
23007 propogated back to all the places they're supposed to be.
23009 Grep wants private fixed already mapped.
23010 The main things grep needs to know about mmap are:
23011 * does it exist and is it safe to write into the mmap'd area
23012 * how to use it (BSD variants) */
23013 #include <sys/types.h>
23014 #include <fcntl.h>
23015 #include <sys/mman.h>
23017 #if HAVE_SYS_TYPES_H
23018 # include <sys/types.h>
23019 #endif
23021 #if HAVE_STDLIB_H
23022 # include <stdlib.h>
23023 #endif
23025 #if HAVE_SYS_STAT_H
23026 # include <sys/stat.h>
23027 #endif
23029 #if HAVE_UNISTD_H
23030 # include <unistd.h>
23031 #endif
23033 /* This mess was copied from the GNU getpagesize.h. */
23034 #ifndef HAVE_GETPAGESIZE
23036 /* Assume that all systems that can run configure have sys/param.h. */
23037 # ifndef HAVE_SYS_PARAM_H
23038 # define HAVE_SYS_PARAM_H 1
23039 # endif
23041 # ifdef _SC_PAGESIZE
23042 # define getpagesize() sysconf(_SC_PAGESIZE)
23043 # else /* no _SC_PAGESIZE */
23044 # ifdef HAVE_SYS_PARAM_H
23045 # include <sys/param.h>
23046 # ifdef EXEC_PAGESIZE
23047 # define getpagesize() EXEC_PAGESIZE
23048 # else /* no EXEC_PAGESIZE */
23049 # ifdef NBPG
23050 # define getpagesize() NBPG * CLSIZE
23051 # ifndef CLSIZE
23052 # define CLSIZE 1
23053 # endif /* no CLSIZE */
23054 # else /* no NBPG */
23055 # ifdef NBPC
23056 # define getpagesize() NBPC
23057 # else /* no NBPC */
23058 # ifdef PAGESIZE
23059 # define getpagesize() PAGESIZE
23060 # endif /* PAGESIZE */
23061 # endif /* no NBPC */
23062 # endif /* no NBPG */
23063 # endif /* no EXEC_PAGESIZE */
23064 # else /* no HAVE_SYS_PARAM_H */
23065 # define getpagesize() 8192 /* punt totally */
23066 # endif /* no HAVE_SYS_PARAM_H */
23067 # endif /* no _SC_PAGESIZE */
23069 #endif /* no HAVE_GETPAGESIZE */
23071 #ifdef __cplusplus
23072 extern "C" { void *malloc(unsigned); }
23073 #else
23074 char *malloc();
23075 #endif
23078 main()
23080 char *data, *data2, *data3;
23081 int i, pagesize;
23082 int fd;
23084 pagesize = getpagesize();
23087 * First, make a file with some known garbage in it.
23089 data = malloc(pagesize);
23090 if (!data)
23091 exit(1);
23092 for (i = 0; i < pagesize; ++i)
23093 *(data + i) = rand();
23094 umask(0);
23095 fd = creat("conftestmmap", 0600);
23096 if (fd < 0)
23097 exit(1);
23098 if (write(fd, data, pagesize) != pagesize)
23099 exit(1);
23100 close(fd);
23103 * Next, try to mmap the file at a fixed address which
23104 * already has something else allocated at it. If we can,
23105 * also make sure that we see the same garbage.
23107 fd = open("conftestmmap", O_RDWR);
23108 if (fd < 0)
23109 exit(1);
23110 data2 = malloc(2 * pagesize);
23111 if (!data2)
23112 exit(1);
23113 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23114 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23115 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23116 exit(1);
23117 for (i = 0; i < pagesize; ++i)
23118 if (*(data + i) != *(data2 + i))
23119 exit(1);
23122 * Finally, make sure that changes to the mapped area
23123 * do not percolate back to the file as seen by read().
23124 * (This is a bug on some variants of i386 svr4.0.)
23126 for (i = 0; i < pagesize; ++i)
23127 *(data2 + i) = *(data2 + i) + 1;
23128 data3 = malloc(pagesize);
23129 if (!data3)
23130 exit(1);
23131 if (read(fd, data3, pagesize) != pagesize)
23132 exit(1);
23133 for (i = 0; i < pagesize; ++i)
23134 if (*(data + i) != *(data3 + i))
23135 exit(1);
23136 close(fd);
23137 unlink("conftestmmap");
23138 exit(0);
23142 if { (eval echo configure:23143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23143 then
23144 ac_cv_func_mmap_fixed_mapped=yes
23145 else
23146 echo "configure: failed program was:" >&5
23147 cat conftest.$ac_ext >&5
23148 rm -fr conftest*
23149 ac_cv_func_mmap_fixed_mapped=no
23151 rm -fr conftest*
23156 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23157 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23158 cat >> confdefs.h <<\EOF
23159 #define HAVE_MMAP 1
23166 # This depends on GLIBCPP_CHECK_LINKER_FEATURES, but without it assumes no.
23167 # Check whether --enable-symvers or --disable-symvers was given.
23168 if test "${enable_symvers+set}" = set; then
23169 enableval="$enable_symvers"
23170 case "$enableval" in
23171 yes) enable_symvers=yes ;;
23172 no) enable_symvers=no ;;
23173 # other names here, just as sanity checks
23174 #gnu|sun|etcetera) enable_symvers=$enableval ;;
23175 gnu) enable_symvers=$enableval ;;
23176 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23177 esac
23178 else
23179 enable_symvers=yes
23182 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23183 # don't know enough about $LD to do tricks...
23184 if test x$enable_shared = xno ||
23185 test "x$LD" = x ||
23186 test x$glibcpp_gnu_ld_version = x; then
23187 enable_symvers=no
23190 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23191 if test $enable_symvers != no; then
23192 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23193 echo "configure:23194: checking for shared libgcc" >&5
23194 ac_save_CFLAGS="$CFLAGS"
23195 CFLAGS=' -lgcc_s'
23196 cat > conftest.$ac_ext <<EOF
23197 #line 23198 "configure"
23198 #include "confdefs.h"
23200 int main() {
23201 return 0
23202 ; return 0; }
23204 if { (eval echo configure:23205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23205 rm -rf conftest*
23206 glibcpp_shared_libgcc=yes
23207 else
23208 echo "configure: failed program was:" >&5
23209 cat conftest.$ac_ext >&5
23210 rm -rf conftest*
23211 glibcpp_shared_libgcc=no
23213 rm -f conftest*
23214 CFLAGS="$ac_save_CFLAGS"
23215 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23218 # For GNU ld, we need at least this version. It's 2.12 in the same format
23219 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
23220 glibcpp_min_gnu_ld_version=21200
23222 # Check to see if unspecified "yes" value can win, given results
23223 # above.
23224 if test $enable_symvers = yes ; then
23225 if test $with_gnu_ld = yes &&
23226 test $glibcpp_shared_libgcc = yes ;
23227 then
23228 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23229 enable_symvers=gnu
23230 else
23231 ac_test_CFLAGS="${CFLAGS+set}"
23232 ac_save_CFLAGS="$CFLAGS"
23233 CFLAGS='-shared -Wl,--version-script,conftest.map'
23234 enable_symvers=no
23236 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23238 cat > conftest.$ac_ext <<EOF
23239 #line 23240 "configure"
23240 #include "confdefs.h"
23241 int foo;
23242 int main() {
23244 ; return 0; }
23246 if { (eval echo configure:23247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23247 rm -rf conftest*
23248 enable_symvers=gnu
23249 else
23250 echo "configure: failed program was:" >&5
23251 cat conftest.$ac_ext >&5
23253 rm -f conftest*
23254 if test "$ac_test_CFLAGS" = set; then
23255 CFLAGS="$ac_save_CFLAGS"
23256 else
23257 # this is the suspicious part
23258 CFLAGS=''
23260 rm -f conftest.map
23262 else
23263 # just fail for now
23264 enable_symvers=no
23268 case $enable_symvers in
23270 SYMVER_MAP=config/linker-map.dummy
23272 gnu)
23273 SYMVER_MAP=config/linker-map.gnu
23274 cat >> confdefs.h <<\EOF
23275 #define _GLIBCPP_SYMVER 1
23279 esac
23284 if test $enable_symvers != no; then
23285 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23286 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23287 else
23288 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23289 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23291 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23292 echo "configure:23293: checking versioning on shared library symbols" >&5
23293 echo "$ac_t""$enable_symvers" 1>&6
23296 # This depends on GLIBCPP_ENABLE_SYMVERS and GLIBCPP_IS_CROSS_COMPILING.
23299 if test x"$GLIBCPP_IS_CROSS_COMPILING" = xfalse; then
23300 # Do checks for memory limit functions.
23302 setrlimit_have_headers=yes
23303 for ac_hdr in unistd.h sys/time.h sys/resource.h
23305 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23306 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23307 echo "configure:23308: checking for $ac_hdr" >&5
23308 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23309 echo $ac_n "(cached) $ac_c" 1>&6
23310 else
23311 cat > conftest.$ac_ext <<EOF
23312 #line 23313 "configure"
23313 #include "confdefs.h"
23314 #include <$ac_hdr>
23316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23317 { (eval echo configure:23318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23319 if test -z "$ac_err"; then
23320 rm -rf conftest*
23321 eval "ac_cv_header_$ac_safe=yes"
23322 else
23323 echo "$ac_err" >&5
23324 echo "configure: failed program was:" >&5
23325 cat conftest.$ac_ext >&5
23326 rm -rf conftest*
23327 eval "ac_cv_header_$ac_safe=no"
23329 rm -f conftest*
23331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23332 echo "$ac_t""yes" 1>&6
23333 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23334 cat >> confdefs.h <<EOF
23335 #define $ac_tr_hdr 1
23338 else
23339 echo "$ac_t""no" 1>&6
23340 setrlimit_have_headers=no
23342 done
23344 # If don't have the headers, then we can't run the tests now, and we
23345 # won't be seeing any of these during testsuite compilation.
23346 if test $setrlimit_have_headers = yes; then
23347 # Can't do these in a loop, else the resulting syntax is wrong.
23349 cat > conftest.$ac_ext <<EOF
23350 #line 23351 "configure"
23351 #include "confdefs.h"
23352 #include <unistd.h>
23353 #include <sys/time.h>
23354 #include <sys/resource.h>
23356 int main() {
23357 int f = RLIMIT_DATA ;
23358 ; return 0; }
23360 if { (eval echo configure:23361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23361 rm -rf conftest*
23362 glibcpp_mresult=1
23363 else
23364 echo "configure: failed program was:" >&5
23365 cat conftest.$ac_ext >&5
23366 rm -rf conftest*
23367 glibcpp_mresult=0
23369 rm -f conftest*
23370 cat >> confdefs.h <<EOF
23371 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23376 cat > conftest.$ac_ext <<EOF
23377 #line 23378 "configure"
23378 #include "confdefs.h"
23379 #include <unistd.h>
23380 #include <sys/time.h>
23381 #include <sys/resource.h>
23383 int main() {
23384 int f = RLIMIT_RSS ;
23385 ; return 0; }
23387 if { (eval echo configure:23388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23388 rm -rf conftest*
23389 glibcpp_mresult=1
23390 else
23391 echo "configure: failed program was:" >&5
23392 cat conftest.$ac_ext >&5
23393 rm -rf conftest*
23394 glibcpp_mresult=0
23396 rm -f conftest*
23397 cat >> confdefs.h <<EOF
23398 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23403 cat > conftest.$ac_ext <<EOF
23404 #line 23405 "configure"
23405 #include "confdefs.h"
23406 #include <unistd.h>
23407 #include <sys/time.h>
23408 #include <sys/resource.h>
23410 int main() {
23411 int f = RLIMIT_VMEM ;
23412 ; return 0; }
23414 if { (eval echo configure:23415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23415 rm -rf conftest*
23416 glibcpp_mresult=1
23417 else
23418 echo "configure: failed program was:" >&5
23419 cat conftest.$ac_ext >&5
23420 rm -rf conftest*
23421 glibcpp_mresult=0
23423 rm -f conftest*
23424 cat >> confdefs.h <<EOF
23425 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23430 cat > conftest.$ac_ext <<EOF
23431 #line 23432 "configure"
23432 #include "confdefs.h"
23433 #include <unistd.h>
23434 #include <sys/time.h>
23435 #include <sys/resource.h>
23437 int main() {
23438 int f = RLIMIT_AS ;
23439 ; return 0; }
23441 if { (eval echo configure:23442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23442 rm -rf conftest*
23443 glibcpp_mresult=1
23444 else
23445 echo "configure: failed program was:" >&5
23446 cat conftest.$ac_ext >&5
23447 rm -rf conftest*
23448 glibcpp_mresult=0
23450 rm -f conftest*
23451 cat >> confdefs.h <<EOF
23452 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23457 # Check for rlimit, setrlimit.
23458 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23459 echo $ac_n "(cached) $ac_c" 1>&6
23460 else
23462 cat > conftest.$ac_ext <<EOF
23463 #line 23464 "configure"
23464 #include "confdefs.h"
23465 #include <unistd.h>
23466 #include <sys/time.h>
23467 #include <sys/resource.h>
23469 int main() {
23470 struct rlimit r; setrlimit(0, &r);
23471 ; return 0; }
23473 if { (eval echo configure:23474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23474 rm -rf conftest*
23475 ac_setrlimit=yes
23476 else
23477 echo "configure: failed program was:" >&5
23478 cat conftest.$ac_ext >&5
23479 rm -rf conftest*
23480 ac_setrlimit=no
23482 rm -f conftest*
23488 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23489 echo "configure:23490: checking for testsuite memory limit support" >&5
23490 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23491 ac_mem_limits=yes
23492 cat >> confdefs.h <<\EOF
23493 #define _GLIBCPP_MEM_LIMITS 1
23496 else
23497 ac_mem_limits=no
23499 echo "$ac_t""$ac_mem_limits" 1>&6
23502 # Look for setenv, so that extended locale tests can be performed.
23504 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23505 echo "configure:23506: checking for setenv declaration" >&5
23506 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23507 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23508 echo $ac_n "(cached) $ac_c" 1>&6
23509 else
23512 ac_ext=C
23513 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23514 ac_cpp='$CXXCPP $CPPFLAGS'
23515 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23516 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23517 cross_compiling=$ac_cv_prog_cxx_cross
23519 cat > conftest.$ac_ext <<EOF
23520 #line 23521 "configure"
23521 #include "confdefs.h"
23522 #include <stdlib.h>
23523 int main() {
23524 setenv(0, 0, 0);
23525 ; return 0; }
23527 if { (eval echo configure:23528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23528 rm -rf conftest*
23529 glibcpp_cv_func_setenv_use=yes
23530 else
23531 echo "configure: failed program was:" >&5
23532 cat conftest.$ac_ext >&5
23533 rm -rf conftest*
23534 glibcpp_cv_func_setenv_use=no
23536 rm -f conftest*
23537 ac_ext=c
23538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23539 ac_cpp='$CPP $CPPFLAGS'
23540 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23541 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23542 cross_compiling=$ac_cv_prog_cc_cross
23548 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23549 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23550 for ac_func in setenv
23552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23553 echo "configure:23554: checking for $ac_func" >&5
23554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23555 echo $ac_n "(cached) $ac_c" 1>&6
23556 else
23557 cat > conftest.$ac_ext <<EOF
23558 #line 23559 "configure"
23559 #include "confdefs.h"
23560 /* System header to define __stub macros and hopefully few prototypes,
23561 which can conflict with char $ac_func(); below. */
23562 #include <assert.h>
23563 /* Override any gcc2 internal prototype to avoid an error. */
23564 /* We use char because int might match the return type of a gcc2
23565 builtin and then its argument prototype would still apply. */
23566 char $ac_func();
23568 int main() {
23570 /* The GNU C library defines this for functions which it implements
23571 to always fail with ENOSYS. Some functions are actually named
23572 something starting with __ and the normal name is an alias. */
23573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23574 choke me
23575 #else
23576 $ac_func();
23577 #endif
23579 ; return 0; }
23581 if { (eval echo configure:23582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23582 rm -rf conftest*
23583 eval "ac_cv_func_$ac_func=yes"
23584 else
23585 echo "configure: failed program was:" >&5
23586 cat conftest.$ac_ext >&5
23587 rm -rf conftest*
23588 eval "ac_cv_func_$ac_func=no"
23590 rm -f conftest*
23593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23594 echo "$ac_t""yes" 1>&6
23595 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23596 cat >> confdefs.h <<EOF
23597 #define $ac_tr_func 1
23600 else
23601 echo "$ac_t""no" 1>&6
23603 done
23609 # Export file names for ABI checking.
23610 baseline_dir="${glibcpp_srcdir}/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
23613 # Determine if checking the ABI is desirable.
23614 if test x$enable_symvers = xno; then
23615 enable_abi_check=no
23616 else
23617 case "$host" in
23618 *-*-cygwin*)
23619 enable_abi_check=no ;;
23621 enable_abi_check=yes ;;
23622 esac
23627 if test "$enable_wchar_t" = yes; then
23628 GLIBCPP_TEST_WCHAR_T_TRUE=
23629 GLIBCPP_TEST_WCHAR_T_FALSE='#'
23630 else
23631 GLIBCPP_TEST_WCHAR_T_TRUE='#'
23632 GLIBCPP_TEST_WCHAR_T_FALSE=
23636 if test "$enable_abi_check" = yes; then
23637 GLIBCPP_TEST_ABI_TRUE=
23638 GLIBCPP_TEST_ABI_FALSE='#'
23639 else
23640 GLIBCPP_TEST_ABI_TRUE='#'
23641 GLIBCPP_TEST_ABI_FALSE=
23645 # Propagate the target-specific source directories through the build chain.
23646 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
23647 # uses it, and it only gets used in this file.)
23648 OS_INC_SRCDIR=config/${os_include_dir}
23649 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23653 # Determine cross-compile flags and all AM_CONDITIONALs.
23657 if test "$CANADIAN" = yes; then
23658 CANADIAN_TRUE=
23659 CANADIAN_FALSE='#'
23660 else
23661 CANADIAN_TRUE='#'
23662 CANADIAN_FALSE=
23666 if test "$need_libmath" = yes; then
23667 GLIBCPP_BUILD_LIBMATH_TRUE=
23668 GLIBCPP_BUILD_LIBMATH_FALSE='#'
23669 else
23670 GLIBCPP_BUILD_LIBMATH_TRUE='#'
23671 GLIBCPP_BUILD_LIBMATH_FALSE=
23674 cat > confcache <<\EOF
23675 # This file is a shell script that caches the results of configure
23676 # tests run on this system so they can be shared between configure
23677 # scripts and configure runs. It is not useful on other systems.
23678 # If it contains results you don't want to keep, you may remove or edit it.
23680 # By default, configure uses ./config.cache as the cache file,
23681 # creating it if it does not exist already. You can give configure
23682 # the --cache-file=FILE option to use a different cache file; that is
23683 # what configure does when it calls configure scripts in
23684 # subdirectories, so they share the cache.
23685 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23686 # config.status only pays attention to the cache file if you give it the
23687 # --recheck option to rerun configure.
23690 # The following way of writing the cache mishandles newlines in values,
23691 # but we know of no workaround that is simple, portable, and efficient.
23692 # So, don't put newlines in cache variables' values.
23693 # Ultrix sh set writes to stderr and can't be redirected directly,
23694 # and sets the high bit in the cache file unless we assign to the vars.
23695 (set) 2>&1 |
23696 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23697 *ac_space=\ *)
23698 # `set' does not quote correctly, so add quotes (double-quote substitution
23699 # turns \\\\ into \\, and sed turns \\ into \).
23700 sed -n \
23701 -e "s/'/'\\\\''/g" \
23702 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23705 # `set' quotes correctly as required by POSIX, so do not add quotes.
23706 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23708 esac >> confcache
23709 if cmp -s $cache_file confcache; then
23711 else
23712 if test -w $cache_file; then
23713 echo "updating cache $cache_file"
23714 cat confcache > $cache_file
23715 else
23716 echo "not updating unwritable cache $cache_file"
23719 rm -f confcache
23722 if test "${multilib}" = "yes"; then
23723 multilib_arg="--enable-multilib"
23724 else
23725 multilib_arg=
23728 # Export all the install information
23730 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23731 # exported correctly in GLIBCPP_CONFIGURE.
23732 glibcpp_toolexecdir=no
23733 glibcpp_toolexeclibdir=no
23734 glibcpp_prefixdir=${prefix}
23736 # Process the option --with-gxx-include-dir=<path to include-files directory>
23737 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23738 echo "configure:23739: checking for --with-gxx-include-dir" >&5
23739 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23740 if test "${with_gxx_include_dir+set}" = set; then
23741 withval="$with_gxx_include_dir"
23742 case "${withval}" in
23743 yes)
23744 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23745 gxx_include_dir=no
23748 gxx_include_dir=no
23751 gxx_include_dir=${withval}
23753 esac
23754 else
23755 gxx_include_dir=no
23758 echo "$ac_t""$gxx_include_dir" 1>&6
23760 # Process the option "--enable-version-specific-runtime-libs"
23761 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23762 echo "configure:23763: checking for --enable-version-specific-runtime-libs" >&5
23763 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23764 if test "${enable_version_specific_runtime_libs+set}" = set; then
23765 enableval="$enable_version_specific_runtime_libs"
23766 case "$enableval" in
23767 yes) version_specific_libs=yes ;;
23768 no) version_specific_libs=no ;;
23769 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23770 esac
23771 else
23772 version_specific_libs=no
23774 # Option set, now we can test it.
23775 echo "$ac_t""$version_specific_libs" 1>&6
23777 # Default case for install directory for include files.
23778 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23779 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23782 # Version-specific runtime libs processing.
23783 if test $version_specific_libs = yes; then
23784 # Need the gcc compiler version to know where to install libraries
23785 # and header files if --enable-version-specific-runtime-libs option
23786 # is selected.
23787 if test x"$gxx_include_dir" = x"no"; then
23788 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23790 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23791 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23794 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23795 # Install a library built with a cross compiler in tooldir, not libdir.
23796 if test x"$glibcpp_toolexecdir" = x"no"; then
23797 if test -n "$with_cross_host" &&
23798 test x"$with_cross_host" != x"no"; then
23799 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23800 glibcpp_toolexeclibdir='$(toolexecdir)/lib'
23801 else
23802 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23803 glibcpp_toolexeclibdir='$(libdir)'
23805 multi_os_directory=`$CC -print-multi-os-directory`
23806 case $multi_os_directory in
23807 .) ;; # Avoid trailing /.
23808 *) glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/$multi_os_directory ;;
23809 esac
23812 echo $ac_n "checking for install location""... $ac_c" 1>&6
23813 echo "configure:23814: checking for install location" >&5
23814 echo "$ac_t""$gxx_include_dir" 1>&6
23822 # Export all the include and flag information to Makefiles.
23824 # Root level of the build directory include sources.
23825 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
23827 # Passed down for canadian crosses.
23828 if test x"$CANADIAN" = xyes; then
23829 TOPLEVEL_INCLUDES='-I$(includedir)'
23832 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23834 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23836 # Now, export this to all the little Makefiles....
23843 # Optimization flags that are probably a good idea for thrill-seekers. Just
23844 # uncomment the lines below and make, everything else is ready to go...
23845 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
23846 OPTIMIZE_CXXFLAGS=
23849 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
23853 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23854 grep "enable shared" > /dev/null; then
23855 LIBSUPCXX_PICFLAGS=-prefer-pic
23856 else
23857 LIBSUPCXX_PICFLAGS=
23861 # Generate the various Makefiles, include files, and scripts.
23862 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
23863 # and libsupc++/Makefile.am so that multilib installs will end up
23864 # installed in the correct place. To work around this not being passed
23865 # down from config-ml.in -> top_srcdir/Makefile.am ->
23866 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23867 trap '' 1 2 15
23868 cat > confcache <<\EOF
23869 # This file is a shell script that caches the results of configure
23870 # tests run on this system so they can be shared between configure
23871 # scripts and configure runs. It is not useful on other systems.
23872 # If it contains results you don't want to keep, you may remove or edit it.
23874 # By default, configure uses ./config.cache as the cache file,
23875 # creating it if it does not exist already. You can give configure
23876 # the --cache-file=FILE option to use a different cache file; that is
23877 # what configure does when it calls configure scripts in
23878 # subdirectories, so they share the cache.
23879 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23880 # config.status only pays attention to the cache file if you give it the
23881 # --recheck option to rerun configure.
23884 # The following way of writing the cache mishandles newlines in values,
23885 # but we know of no workaround that is simple, portable, and efficient.
23886 # So, don't put newlines in cache variables' values.
23887 # Ultrix sh set writes to stderr and can't be redirected directly,
23888 # and sets the high bit in the cache file unless we assign to the vars.
23889 (set) 2>&1 |
23890 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23891 *ac_space=\ *)
23892 # `set' does not quote correctly, so add quotes (double-quote substitution
23893 # turns \\\\ into \\, and sed turns \\ into \).
23894 sed -n \
23895 -e "s/'/'\\\\''/g" \
23896 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23899 # `set' quotes correctly as required by POSIX, so do not add quotes.
23900 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23902 esac >> confcache
23903 if cmp -s $cache_file confcache; then
23905 else
23906 if test -w $cache_file; then
23907 echo "updating cache $cache_file"
23908 cat confcache > $cache_file
23909 else
23910 echo "not updating unwritable cache $cache_file"
23913 rm -f confcache
23915 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23917 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23918 # Let make expand exec_prefix.
23919 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23921 # Any assignment to VPATH causes Sun make to only execute
23922 # the first set of double-colon rules, so remove it if not needed.
23923 # If there is a colon in the path, we need to keep it.
23924 if test "x$srcdir" = x.; then
23925 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23928 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23930 DEFS=-DHAVE_CONFIG_H
23932 # Without the "./", some shells look in PATH for config.status.
23933 : ${CONFIG_STATUS=./config.status}
23935 echo creating $CONFIG_STATUS
23936 rm -f $CONFIG_STATUS
23937 cat > $CONFIG_STATUS <<EOF
23938 #! /bin/sh
23939 # Generated automatically by configure.
23940 # Run this file to recreate the current configuration.
23941 # This directory was configured as follows,
23942 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23944 # $0 $ac_configure_args
23946 # Compiler output produced by configure, useful for debugging
23947 # configure, is in ./config.log if it exists.
23949 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23950 for ac_option
23952 case "\$ac_option" in
23953 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23954 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23955 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23956 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23957 echo "$CONFIG_STATUS generated by autoconf version 2.13"
23958 exit 0 ;;
23959 -help | --help | --hel | --he | --h)
23960 echo "\$ac_cs_usage"; exit 0 ;;
23961 *) echo "\$ac_cs_usage"; exit 1 ;;
23962 esac
23963 done
23965 ac_given_srcdir=$srcdir
23966 ac_given_INSTALL="$INSTALL"
23968 trap 'rm -fr `echo "Makefile \
23969 include/Makefile src/Makefile \
23970 libmath/Makefile libsupc++/Makefile \
23971 po/Makefile testsuite/Makefile scripts/check_survey scripts/testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23973 cat >> $CONFIG_STATUS <<EOF
23975 # Protect against being on the right side of a sed subst in config.status.
23976 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23977 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23978 $ac_vpsub
23979 $extrasub
23980 s%@SHELL@%$SHELL%g
23981 s%@CFLAGS@%$CFLAGS%g
23982 s%@CPPFLAGS@%$CPPFLAGS%g
23983 s%@CXXFLAGS@%$CXXFLAGS%g
23984 s%@FFLAGS@%$FFLAGS%g
23985 s%@DEFS@%$DEFS%g
23986 s%@LDFLAGS@%$LDFLAGS%g
23987 s%@LIBS@%$LIBS%g
23988 s%@exec_prefix@%$exec_prefix%g
23989 s%@prefix@%$prefix%g
23990 s%@program_transform_name@%$program_transform_name%g
23991 s%@bindir@%$bindir%g
23992 s%@sbindir@%$sbindir%g
23993 s%@libexecdir@%$libexecdir%g
23994 s%@datadir@%$datadir%g
23995 s%@sysconfdir@%$sysconfdir%g
23996 s%@sharedstatedir@%$sharedstatedir%g
23997 s%@localstatedir@%$localstatedir%g
23998 s%@libdir@%$libdir%g
23999 s%@includedir@%$includedir%g
24000 s%@oldincludedir@%$oldincludedir%g
24001 s%@infodir@%$infodir%g
24002 s%@mandir@%$mandir%g
24003 s%@PACKAGE@%$PACKAGE%g
24004 s%@libtool_VERSION@%$libtool_VERSION%g
24005 s%@toplevel_srcdir@%$toplevel_srcdir%g
24006 s%@host@%$host%g
24007 s%@host_alias@%$host_alias%g
24008 s%@host_cpu@%$host_cpu%g
24009 s%@host_vendor@%$host_vendor%g
24010 s%@host_os@%$host_os%g
24011 s%@target@%$target%g
24012 s%@target_alias@%$target_alias%g
24013 s%@target_cpu@%$target_cpu%g
24014 s%@target_vendor@%$target_vendor%g
24015 s%@target_os@%$target_os%g
24016 s%@build@%$build%g
24017 s%@build_alias@%$build_alias%g
24018 s%@build_cpu@%$build_cpu%g
24019 s%@build_vendor@%$build_vendor%g
24020 s%@build_os@%$build_os%g
24021 s%@glibcpp_builddir@%$glibcpp_builddir%g
24022 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
24023 s%@AWK@%$AWK%g
24024 s%@LN_S@%$LN_S%g
24025 s%@glibcpp_basedir@%$glibcpp_basedir%g
24026 s%@CC@%$CC%g
24027 s%@glibcpp_CXX@%$glibcpp_CXX%g
24028 s%@AS@%$AS%g
24029 s%@AR@%$AR%g
24030 s%@RANLIB@%$RANLIB%g
24031 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24032 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24033 s%@INSTALL_DATA@%$INSTALL_DATA%g
24034 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24035 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24036 s%@MAINT@%$MAINT%g
24037 s%@EXEEXT@%$EXEEXT%g
24038 s%@VERSION@%$VERSION%g
24039 s%@ACLOCAL@%$ACLOCAL%g
24040 s%@AUTOCONF@%$AUTOCONF%g
24041 s%@AUTOMAKE@%$AUTOMAKE%g
24042 s%@AUTOHEADER@%$AUTOHEADER%g
24043 s%@MAKEINFO@%$MAKEINFO%g
24044 s%@SET_MAKE@%$SET_MAKE%g
24045 s%@OBJEXT@%$OBJEXT%g
24046 s%@STRIP@%$STRIP%g
24047 s%@LIBTOOL@%$LIBTOOL%g
24048 s%@CXXCPP@%$CXXCPP%g
24049 s%@enable_shared@%$enable_shared%g
24050 s%@enable_static@%$enable_static%g
24051 s%@ifGNUmake@%$ifGNUmake%g
24052 s%@GLIBCPP_BUILD_PCH_TRUE@%$GLIBCPP_BUILD_PCH_TRUE%g
24053 s%@GLIBCPP_BUILD_PCH_FALSE@%$GLIBCPP_BUILD_PCH_FALSE%g
24054 s%@glibcpp_PCHFLAGS@%$glibcpp_PCHFLAGS%g
24055 s%@CSTDIO_H@%$CSTDIO_H%g
24056 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24057 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24058 s%@CPP@%$CPP%g
24059 s%@check_msgfmt@%$check_msgfmt%g
24060 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24061 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24062 s%@glibcpp_localedir@%$glibcpp_localedir%g
24063 s%@USE_NLS@%$USE_NLS%g
24064 s%@CLOCALE_H@%$CLOCALE_H%g
24065 s%@CCODECVT_H@%$CCODECVT_H%g
24066 s%@CMESSAGES_H@%$CMESSAGES_H%g
24067 s%@CCODECVT_CC@%$CCODECVT_CC%g
24068 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24069 s%@CCTYPE_CC@%$CCTYPE_CC%g
24070 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24071 s%@CMONEY_CC@%$CMONEY_CC%g
24072 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24073 s%@CTIME_H@%$CTIME_H%g
24074 s%@CTIME_CC@%$CTIME_CC%g
24075 s%@CLOCALE_CC@%$CLOCALE_CC%g
24076 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24077 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24078 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24079 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24080 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24081 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24082 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24083 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24084 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24085 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24086 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24087 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24088 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24089 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24090 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24091 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24092 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24093 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24094 s%@WERROR@%$WERROR%g
24095 s%@SYMVER_MAP@%$SYMVER_MAP%g
24096 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24097 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24098 s%@baseline_dir@%$baseline_dir%g
24099 s%@GLIBCPP_TEST_WCHAR_T_TRUE@%$GLIBCPP_TEST_WCHAR_T_TRUE%g
24100 s%@GLIBCPP_TEST_WCHAR_T_FALSE@%$GLIBCPP_TEST_WCHAR_T_FALSE%g
24101 s%@GLIBCPP_TEST_ABI_TRUE@%$GLIBCPP_TEST_ABI_TRUE%g
24102 s%@GLIBCPP_TEST_ABI_FALSE@%$GLIBCPP_TEST_ABI_FALSE%g
24103 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24104 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24105 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24106 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24107 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24108 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24109 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24110 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24111 s%@gxx_include_dir@%$gxx_include_dir%g
24112 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24113 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24114 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24115 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24116 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24117 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24118 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24119 s%@WARN_FLAGS@%$WARN_FLAGS%g
24120 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24122 CEOF
24125 cat >> $CONFIG_STATUS <<\EOF
24127 # Split the substitutions into bite-sized pieces for seds with
24128 # small command number limits, like on Digital OSF/1 and HP-UX.
24129 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24130 ac_file=1 # Number of current file.
24131 ac_beg=1 # First line for current file.
24132 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24133 ac_more_lines=:
24134 ac_sed_cmds=""
24135 while $ac_more_lines; do
24136 if test $ac_beg -gt 1; then
24137 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24138 else
24139 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24141 if test ! -s conftest.s$ac_file; then
24142 ac_more_lines=false
24143 rm -f conftest.s$ac_file
24144 else
24145 if test -z "$ac_sed_cmds"; then
24146 ac_sed_cmds="sed -f conftest.s$ac_file"
24147 else
24148 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24150 ac_file=`expr $ac_file + 1`
24151 ac_beg=$ac_end
24152 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24154 done
24155 if test -z "$ac_sed_cmds"; then
24156 ac_sed_cmds=cat
24160 cat >> $CONFIG_STATUS <<EOF
24162 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24163 include/Makefile src/Makefile \
24164 libmath/Makefile libsupc++/Makefile \
24165 po/Makefile testsuite/Makefile scripts/check_survey scripts/testsuite_flags"}
24167 cat >> $CONFIG_STATUS <<\EOF
24168 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24169 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24170 case "$ac_file" in
24171 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24172 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24173 *) ac_file_in="${ac_file}.in" ;;
24174 esac
24176 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24178 # Remove last slash and all that follows it. Not all systems have dirname.
24179 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24180 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24181 # The file is in a subdirectory.
24182 test ! -d "$ac_dir" && mkdir "$ac_dir"
24183 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24184 # A "../" for each directory in $ac_dir_suffix.
24185 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24186 else
24187 ac_dir_suffix= ac_dots=
24190 case "$ac_given_srcdir" in
24191 .) srcdir=.
24192 if test -z "$ac_dots"; then top_srcdir=.
24193 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24194 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24195 *) # Relative path.
24196 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24197 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24198 esac
24200 case "$ac_given_INSTALL" in
24201 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24202 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24203 esac
24205 echo creating "$ac_file"
24206 rm -f "$ac_file"
24207 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24208 case "$ac_file" in
24209 *Makefile*) ac_comsub="1i\\
24210 # $configure_input" ;;
24211 *) ac_comsub= ;;
24212 esac
24214 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24215 sed -e "$ac_comsub
24216 s%@configure_input@%$configure_input%g
24217 s%@srcdir@%$srcdir%g
24218 s%@top_srcdir@%$top_srcdir%g
24219 s%@INSTALL@%$INSTALL%g
24220 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24221 fi; done
24222 rm -f conftest.s*
24224 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24225 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24227 # ac_d sets the value in "#define NAME VALUE" lines.
24228 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24229 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24230 ac_dC='\3'
24231 ac_dD='%g'
24232 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24233 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24234 ac_uB='\([ ]\)%\1#\2define\3'
24235 ac_uC=' '
24236 ac_uD='\4%g'
24237 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24238 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24239 ac_eB='$%\1#\2define\3'
24240 ac_eC=' '
24241 ac_eD='%g'
24243 if test "${CONFIG_HEADERS+set}" != set; then
24245 cat >> $CONFIG_STATUS <<EOF
24246 CONFIG_HEADERS="config.h"
24248 cat >> $CONFIG_STATUS <<\EOF
24250 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24251 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24252 case "$ac_file" in
24253 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24254 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24255 *) ac_file_in="${ac_file}.in" ;;
24256 esac
24258 echo creating $ac_file
24260 rm -f conftest.frag conftest.in conftest.out
24261 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24262 cat $ac_file_inputs > conftest.in
24266 # Transform confdefs.h into a sed script conftest.vals that substitutes
24267 # the proper values into config.h.in to produce config.h. And first:
24268 # Protect against being on the right side of a sed subst in config.status.
24269 # Protect against being in an unquoted here document in config.status.
24270 rm -f conftest.vals
24271 cat > conftest.hdr <<\EOF
24272 s/[\\&%]/\\&/g
24273 s%[\\$`]%\\&%g
24274 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24275 s%ac_d%ac_u%gp
24276 s%ac_u%ac_e%gp
24278 sed -n -f conftest.hdr confdefs.h > conftest.vals
24279 rm -f conftest.hdr
24281 # This sed command replaces #undef with comments. This is necessary, for
24282 # example, in the case of _POSIX_SOURCE, which is predefined and required
24283 # on some systems where configure will not decide to define it.
24284 cat >> conftest.vals <<\EOF
24285 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24288 # Break up conftest.vals because some shells have a limit on
24289 # the size of here documents, and old seds have small limits too.
24291 rm -f conftest.tail
24292 while :
24294 ac_lines=`grep -c . conftest.vals`
24295 # grep -c gives empty output for an empty file on some AIX systems.
24296 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24297 # Write a limited-size here document to conftest.frag.
24298 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24299 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24300 echo 'CEOF
24301 sed -f conftest.frag conftest.in > conftest.out
24302 rm -f conftest.in
24303 mv conftest.out conftest.in
24304 ' >> $CONFIG_STATUS
24305 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24306 rm -f conftest.vals
24307 mv conftest.tail conftest.vals
24308 done
24309 rm -f conftest.vals
24311 cat >> $CONFIG_STATUS <<\EOF
24312 rm -f conftest.frag conftest.h
24313 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24314 cat conftest.in >> conftest.h
24315 rm -f conftest.in
24316 if cmp -s $ac_file conftest.h 2>/dev/null; then
24317 echo "$ac_file is unchanged"
24318 rm -f conftest.h
24319 else
24320 # Remove last slash and all that follows it. Not all systems have dirname.
24321 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24322 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24323 # The file is in a subdirectory.
24324 test ! -d "$ac_dir" && mkdir "$ac_dir"
24326 rm -f $ac_file
24327 mv conftest.h $ac_file
24329 fi; done
24332 cat >> $CONFIG_STATUS <<EOF
24334 srcdir=${srcdir}
24335 host=${host}
24336 target=${target}
24337 with_target_subdir=${with_target_subdir}
24338 with_build_subdir=${with_build_subdir}
24339 with_multisubdir=${with_multisubdir}
24340 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24341 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24342 glibcpp_basedir=${glibcpp_basedir}
24343 CC="${CC}"
24344 CXX="${CXX}"
24345 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24348 cat >> $CONFIG_STATUS <<\EOF
24349 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24350 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24351 if test -n "$CONFIG_FILES"; then
24352 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24353 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24354 # Ony modify Makefiles that are just being created.
24355 case " $CONFIG_FILES" in
24356 *" Makefile"*)
24357 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24359 esac
24360 case $CONFIG_FILES in
24361 *src/Makefile*)
24362 grep '^MULTISUBDIR =' Makefile >> src/Makefile
24364 esac
24365 case $CONFIG_FILES in
24366 *libsupc++/Makefile*)
24367 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24369 esac
24370 case $CONFIG_FILES in
24371 *testsuite/Makefile*)
24372 grep '^MULTISUBDIR =' Makefile >> testsuite/Makefile
24374 esac
24377 chmod +x scripts/check_survey
24378 chmod +x scripts/testsuite_flags
24379 exit 0
24381 chmod +x $CONFIG_STATUS
24382 rm -fr confdefs* $ac_clean_files
24383 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24387 # Sanity checking & User-visible messages.
24388 # Checks down here, otherwise they get scrolled off before
24389 # the user will notice.
24391 # Trying to get more people to read documentation. Possibly remove
24392 # check and warn all the time. There is no "informational" AC_MSG_
24393 # macro, so these are going to be printed even when --quiet/--silent
24394 # is given.
24395 if test ! -f stamp-sanity-warned; then
24396 touch stamp-sanity-warned
24397 echo ""
24398 echo "Please make certain that you read the installation information here:"
24399 echo " faster => ${srcdir}/docs/html/install.html"
24400 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24401 echo ""
24402 echo "and the configuration information here:"
24403 echo " faster => ${srcdir}/docs/html/configopts.html"
24404 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24405 echo ""
24406 echo "before proceeding with ${_cv_gnu_make_command}."
24407 echo ""