tree.c (get_qualified_type): Add TYPE_CONTEXT check.
[official-gcc.git] / libstdc++-v3 / configure
blob1fff6693786e040b9167447c35bca7dc8e37bddb
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-multilib build hella library versions (default)"
16 ac_help="$ac_help
17 --with-target-subdir=SUBDIR
18 configuring in a subdirectory"
19 ac_help="$ac_help
20 --with-cross-host=HOST configuring with a cross compiler"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-debug extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39 --enable-cstdio enable stdio for target io package.
40 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
42 ac_help="$ac_help
43 --enable-clocale enable model for target locale package.
44 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
46 ac_help="$ac_help
47 --enable-nls use Native Language Support (default)"
48 ac_help="$ac_help
49 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53 --enable-long-long turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55 --enable-cheaders construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
58 [default=none]"
59 ac_help="$ac_help
60 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
61 ac_help="$ac_help
62 --enable-libunwind-exceptions force use of libunwind for exceptions"
63 ac_help="$ac_help
64 --enable-concept-checks use Boost-derived template checks [default=no]"
65 ac_help="$ac_help
66 --enable-symvers=style enables symbol versioning of the shared library [default=yes]"
67 ac_help="$ac_help
68 --with-gxx-include-dir the installation directory for include files"
69 ac_help="$ac_help
70 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 srcdir=
89 target=NONE
90 verbose=
91 x_includes=NONE
92 x_libraries=NONE
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
106 # Initialize some other variables.
107 subdirs=
108 MFLAGS= MAKEFLAGS=
109 SHELL=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
111 ac_max_here_lines=12
113 ac_prev=
114 for ac_option
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
120 ac_prev=
121 continue
124 case "$ac_option" in
125 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 *) ac_optarg= ;;
127 esac
129 # Accept the important Cygnus configure options, so we can diagnose typos.
131 case "$ac_option" in
133 -bindir | --bindir | --bindi | --bind | --bin | --bi)
134 ac_prev=bindir ;;
135 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136 bindir="$ac_optarg" ;;
138 -build | --build | --buil | --bui | --bu)
139 ac_prev=build ;;
140 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141 build="$ac_optarg" ;;
143 -cache-file | --cache-file | --cache-fil | --cache-fi \
144 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145 ac_prev=cache_file ;;
146 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148 cache_file="$ac_optarg" ;;
150 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151 ac_prev=datadir ;;
152 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153 | --da=*)
154 datadir="$ac_optarg" ;;
156 -disable-* | --disable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* | --enable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 case "$ac_option" in
173 *=*) ;;
174 *) ac_optarg=yes ;;
175 esac
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180 | --exec | --exe | --ex)
181 ac_prev=exec_prefix ;;
182 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184 | --exec=* | --exe=* | --ex=*)
185 exec_prefix="$ac_optarg" ;;
187 -gas | --gas | --ga | --g)
188 # Obsolete; use --with-gas.
189 with_gas=yes ;;
191 -help | --help | --hel | --he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
194 cat << EOF
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
197 Configuration:
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
205 [$ac_default_prefix]
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 [same as prefix]
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
212 [PREFIX/share]
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 [PREFIX/com]
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --infodir=DIR info documentation in DIR [PREFIX/info]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
228 cat << EOF
229 Host type:
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
244 exit 0 ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host="$ac_optarg" ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir="$ac_optarg" ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
259 ac_prev=infodir ;;
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir="$ac_optarg" ;;
263 -libdir | --libdir | --libdi | --libd)
264 ac_prev=libdir ;;
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
266 libdir="$ac_optarg" ;;
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir="$ac_optarg" ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir="$ac_optarg" ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285 ac_prev=mandir ;;
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287 mandir="$ac_optarg" ;;
289 -nfp | --nfp | --nf)
290 # Obsolete; use --without-fp.
291 with_fp=no ;;
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294 | --no-cr | --no-c)
295 no_create=yes ;;
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299 no_recursion=yes ;;
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir="$ac_optarg" ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311 ac_prev=prefix ;;
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313 prefix="$ac_optarg" ;;
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix="$ac_optarg" ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix="$ac_optarg" ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name="$ac_optarg" ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
348 silent=yes ;;
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351 ac_prev=sbindir ;;
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353 | --sbi=* | --sb=*)
354 sbindir="$ac_optarg" ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
359 | --sha | --sh)
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364 | --sha=* | --sh=*)
365 sharedstatedir="$ac_optarg" ;;
367 -site | --site | --sit)
368 ac_prev=site ;;
369 -site=* | --site=* | --sit=*)
370 site="$ac_optarg" ;;
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373 ac_prev=srcdir ;;
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375 srcdir="$ac_optarg" ;;
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir="$ac_optarg" ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target="$ac_optarg" ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
390 verbose=yes ;;
392 -version | --version | --versio | --versi | --vers)
393 echo "configure generated by autoconf version 2.13"
394 exit 0 ;;
396 -with-* | --with-*)
397 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 case "$ac_option" in
404 *=*) ;;
405 *) ac_optarg=yes ;;
406 esac
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
418 --x)
419 # Obsolete; use --with-x.
420 with_x=yes ;;
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes="$ac_optarg" ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 nonopt="$ac_option"
449 esac
450 done
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467 exec 6>/dev/null
468 else
469 exec 6>&1
471 exec 5>./config.log
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
483 case "$ac_arg" in
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c) ;;
486 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491 esac
492 done
494 # NLS nuisances.
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=src/ios.cc
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
517 ac_prog=$0
518 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 srcdir=$ac_confdir
521 if test ! -r $srcdir/$ac_unique_file; then
522 srcdir=..
524 else
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530 else
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE; then
539 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540 else
541 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
547 . "$ac_site_file"
549 done
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
553 . $cache_file
554 else
555 echo "creating cache $cache_file"
556 > $cache_file
559 ac_ext=c
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
566 ac_exeext=
567 ac_objext=o
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571 ac_n= ac_c='
572 ' ac_t=' '
573 else
574 ac_n=-n ac_c= ac_t=
576 else
577 ac_n= ac_c='\c' ac_t=
582 # This works around the fact that libtool configuration may change LD
583 # for this particular configuration, but some shells, instead of
584 # keeping the changes in LD private, export them just because LD is
585 # exported. Only used at the end of this file.
586 ORIGINAL_LD_FOR_MULTILIBS=$LD
588 PACKAGE=libstdc++
590 # For libtool versioning info, format is CURRENT:REVISION:AGE
591 libtool_VERSION=5:1:0
595 # Check whether --enable-multilib or --disable-multilib was given.
596 if test "${enable_multilib+set}" = set; then
597 enableval="$enable_multilib"
598 case "${enableval}" in
599 yes) multilib=yes ;;
600 no) multilib=no ;;
601 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
602 esac
603 else
604 multilib=yes
607 # When building with srcdir == objdir, links to the source files will
608 # be created in directories within the target_subdir. We have to
609 # adjust toplevel_srcdir accordingly, so that configure finds
610 # install-sh and other auxiliary files that live in the top-level
611 # source directory.
612 if test "${srcdir}" = "."; then
613 if test -z "${with_target_subdir}"; then
614 toprel=".."
615 else
616 if test "${with_target_subdir}" != "."; then
617 toprel="${with_multisrctop}../.."
618 else
619 toprel="${with_multisrctop}.."
622 else
623 toprel=".."
625 ac_aux_dir=
626 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
627 if test -f $ac_dir/install-sh; then
628 ac_aux_dir=$ac_dir
629 ac_install_sh="$ac_aux_dir/install-sh -c"
630 break
631 elif test -f $ac_dir/install.sh; then
632 ac_aux_dir=$ac_dir
633 ac_install_sh="$ac_aux_dir/install.sh -c"
634 break
636 done
637 if test -z "$ac_aux_dir"; then
638 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
640 ac_config_guess=$ac_aux_dir/config.guess
641 ac_config_sub=$ac_aux_dir/config.sub
642 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
644 toplevel_srcdir=\${top_srcdir}/$toprel
648 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
650 # You will slowly go insane if you do not grok the following fact: when
651 # building v3 as part of the compiler, the top-level /target/ becomes the
652 # library's /host/. `configure' then causes --target to default to --host,
653 # exactly like any other package using autoconf. Therefore, 'target' and
654 # 'host' will always be the same. This makes sense both for native and
655 # cross compilers, just think about it for a little while. :-)
657 # Also, if v3 is being configured as part of a cross compiler, the top-level
658 # configure script will pass the "real" host as $with_cross_host.
660 # AC 2.5x sets target_alias iff the user specified --target, but we use it
661 # everywhere, so we set it here just to be sure. In AC 2.13
662 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
664 # Do some error checking and defaulting for the host and target type.
665 # The inputs are:
666 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
668 # The rules are:
669 # 1. You are not allowed to specify --host, --target, and nonopt at the
670 # same time.
671 # 2. Host defaults to nonopt.
672 # 3. If nonopt is not specified, then host defaults to the current host,
673 # as determined by config.guess.
674 # 4. Target and build default to nonopt.
675 # 5. If nonopt is not specified, then target and build default to host.
677 # The aliases save the names the user supplied, while $host etc.
678 # will get canonicalized.
679 case $host---$target---$nonopt in
680 NONE---*---* | *---NONE---* | *---*---NONE) ;;
681 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
682 esac
685 # Make sure we can run config.sub.
686 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
687 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
690 echo $ac_n "checking host system type""... $ac_c" 1>&6
691 echo "configure:692: checking host system type" >&5
693 host_alias=$host
694 case "$host_alias" in
695 NONE)
696 case $nonopt in
697 NONE)
698 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
699 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
700 fi ;;
701 *) host_alias=$nonopt ;;
702 esac ;;
703 esac
705 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
706 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
709 echo "$ac_t""$host" 1>&6
711 echo $ac_n "checking target system type""... $ac_c" 1>&6
712 echo "configure:713: checking target system type" >&5
714 target_alias=$target
715 case "$target_alias" in
716 NONE)
717 case $nonopt in
718 NONE) target_alias=$host_alias ;;
719 *) target_alias=$nonopt ;;
720 esac ;;
721 esac
723 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
724 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
725 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
726 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
727 echo "$ac_t""$target" 1>&6
729 echo $ac_n "checking build system type""... $ac_c" 1>&6
730 echo "configure:731: checking build system type" >&5
732 build_alias=$build
733 case "$build_alias" in
734 NONE)
735 case $nonopt in
736 NONE) build_alias=$host_alias ;;
737 *) build_alias=$nonopt ;;
738 esac ;;
739 esac
741 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
742 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
743 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
744 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
745 echo "$ac_t""$build" 1>&6
747 test "$host_alias" != "$target_alias" &&
748 test "$program_prefix$program_suffix$program_transform_name" = \
749 NONENONEs,x,x, &&
750 program_prefix=${target_alias}-
752 target_alias=${target_alias-$target}
755 # Runs configure.target, finds CC, CXX and assorted other critical bits.
756 # Must run this before the GLIBCPP_ENABLE_* macros below.
757 if test $host != $build; then
758 ac_tool_prefix=${host_alias}-
759 else
760 ac_tool_prefix=
763 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
764 echo "configure:765: checking for Cygwin environment" >&5
765 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
766 echo $ac_n "(cached) $ac_c" 1>&6
767 else
768 cat > conftest.$ac_ext <<EOF
769 #line 770 "configure"
770 #include "confdefs.h"
772 int main() {
774 #ifndef __CYGWIN__
775 #define __CYGWIN__ __CYGWIN32__
776 #endif
777 return __CYGWIN__;
778 ; return 0; }
780 if { (eval echo configure:781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
781 rm -rf conftest*
782 ac_cv_cygwin=yes
783 else
784 echo "configure: failed program was:" >&5
785 cat conftest.$ac_ext >&5
786 rm -rf conftest*
787 ac_cv_cygwin=no
789 rm -f conftest*
790 rm -f conftest*
793 echo "$ac_t""$ac_cv_cygwin" 1>&6
794 CYGWIN=
795 test "$ac_cv_cygwin" = yes && CYGWIN=yes
796 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
797 echo "configure:798: checking for mingw32 environment" >&5
798 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
800 else
801 cat > conftest.$ac_ext <<EOF
802 #line 803 "configure"
803 #include "confdefs.h"
805 int main() {
806 return __MINGW32__;
807 ; return 0; }
809 if { (eval echo configure:810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
810 rm -rf conftest*
811 ac_cv_mingw32=yes
812 else
813 echo "configure: failed program was:" >&5
814 cat conftest.$ac_ext >&5
815 rm -rf conftest*
816 ac_cv_mingw32=no
818 rm -f conftest*
819 rm -f conftest*
822 echo "$ac_t""$ac_cv_mingw32" 1>&6
823 MINGW32=
824 test "$ac_cv_mingw32" = yes && MINGW32=yes
827 #possibly test for the presence of the compiler sources here?
829 # Export build and source directories.
830 # These need to be absolute paths, yet at the same time need to
831 # canonicalize only relative paths, because then amd will not unmount
832 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
833 glibcpp_builddir=`${PWDCMD-pwd}`
834 case $srcdir in
835 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
836 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
837 esac
843 for ac_prog in gawk mawk nawk awk
845 # Extract the first word of "$ac_prog", so it can be a program name with args.
846 set dummy $ac_prog; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
851 else
852 if test -n "$AWK"; then
853 ac_cv_prog_AWK="$AWK" # Let the user override the test.
854 else
855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
856 ac_dummy="$PATH"
857 for ac_dir in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
860 ac_cv_prog_AWK="$ac_prog"
861 break
863 done
864 IFS="$ac_save_ifs"
867 AWK="$ac_cv_prog_AWK"
868 if test -n "$AWK"; then
869 echo "$ac_t""$AWK" 1>&6
870 else
871 echo "$ac_t""no" 1>&6
874 test -n "$AWK" && break
875 done
877 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
878 # be 'cp -p' if linking isn't available. Uncomment the next line to
879 # force a particular method.
880 #ac_cv_prog_LN_S='cp -p'
881 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
882 echo "configure:883: checking whether ln -s works" >&5
883 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
885 else
886 rm -f conftestdata
887 if ln -s X conftestdata 2>/dev/null
888 then
889 rm -f conftestdata
890 ac_cv_prog_LN_S="ln -s"
891 else
892 ac_cv_prog_LN_S=ln
895 LN_S="$ac_cv_prog_LN_S"
896 if test "$ac_cv_prog_LN_S" = "ln -s"; then
897 echo "$ac_t""yes" 1>&6
898 else
899 echo "$ac_t""no" 1>&6
903 # We use these options to decide which functions to include.
904 # Check whether --with-target-subdir or --without-target-subdir was given.
905 if test "${with_target_subdir+set}" = set; then
906 withval="$with_target_subdir"
910 # Check whether --with-cross-host or --without-cross-host was given.
911 if test "${with_cross_host+set}" = set; then
912 withval="$with_cross_host"
917 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
920 # Never versions of autoconf add an underscore to these functions.
921 # Prevent future problems ...
927 # AC_PROG_CC
928 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
929 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
930 # are probably using a cross compiler, which will not be able to fully
931 # link an executable. This is addressed in later versions of autoconf.
936 # Extract the first word of "gcc", so it can be a program name with args.
937 set dummy gcc; ac_word=$2
938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
939 echo "configure:940: checking for $ac_word" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
942 else
943 if test -n "$CC"; then
944 ac_cv_prog_CC="$CC" # Let the user override the test.
945 else
946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
947 ac_dummy="$PATH"
948 for ac_dir in $ac_dummy; do
949 test -z "$ac_dir" && ac_dir=.
950 if test -f $ac_dir/$ac_word; then
951 ac_cv_prog_CC="gcc"
952 break
954 done
955 IFS="$ac_save_ifs"
958 CC="$ac_cv_prog_CC"
959 if test -n "$CC"; then
960 echo "$ac_t""$CC" 1>&6
961 else
962 echo "$ac_t""no" 1>&6
965 if test -z "$CC"; then
966 # Extract the first word of "cc", so it can be a program name with args.
967 set dummy cc; ac_word=$2
968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
969 echo "configure:970: checking for $ac_word" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
972 else
973 if test -n "$CC"; then
974 ac_cv_prog_CC="$CC" # Let the user override the test.
975 else
976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
977 ac_prog_rejected=no
978 ac_dummy="$PATH"
979 for ac_dir in $ac_dummy; do
980 test -z "$ac_dir" && ac_dir=.
981 if test -f $ac_dir/$ac_word; then
982 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
983 ac_prog_rejected=yes
984 continue
986 ac_cv_prog_CC="cc"
987 break
989 done
990 IFS="$ac_save_ifs"
991 if test $ac_prog_rejected = yes; then
992 # We found a bogon in the path, so make sure we never use it.
993 set dummy $ac_cv_prog_CC
994 shift
995 if test $# -gt 0; then
996 # We chose a different compiler from the bogus one.
997 # However, it has the same basename, so the bogon will be chosen
998 # first if we set CC to just the basename; use the full file name.
999 shift
1000 set dummy "$ac_dir/$ac_word" "$@"
1001 shift
1002 ac_cv_prog_CC="$@"
1007 CC="$ac_cv_prog_CC"
1008 if test -n "$CC"; then
1009 echo "$ac_t""$CC" 1>&6
1010 else
1011 echo "$ac_t""no" 1>&6
1014 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1017 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1018 echo "configure:1019: checking whether we are using GNU C" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022 cat > conftest.c <<EOF
1023 #ifdef __GNUC__
1024 yes;
1025 #endif
1027 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1028 ac_cv_prog_gcc=yes
1029 else
1030 ac_cv_prog_gcc=no
1034 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1036 if test $ac_cv_prog_gcc = yes; then
1037 GCC=yes
1038 ac_test_CFLAGS="${CFLAGS+set}"
1039 ac_save_CFLAGS="$CFLAGS"
1040 CFLAGS=
1041 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether ${CC-cc} accepts -g" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046 echo 'void f(){}' > conftest.c
1047 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1048 ac_cv_prog_cc_g=yes
1049 else
1050 ac_cv_prog_cc_g=no
1052 rm -f conftest*
1056 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1057 if test "$ac_test_CFLAGS" = set; then
1058 CFLAGS="$ac_save_CFLAGS"
1059 elif test $ac_cv_prog_cc_g = yes; then
1060 CFLAGS="-g -O2"
1061 else
1062 CFLAGS="-O2"
1064 else
1065 GCC=
1066 test "${CFLAGS+set}" = set || CFLAGS="-g"
1070 # Likewise for AC_PROG_CXX. We can't just call it directly because g++
1071 # will try to link in libstdc++.
1075 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1076 # flags that come in CXX while configuring libstdc++. They're different
1077 # from those used for all other target libraries. If CXX is set in
1078 # the environment, respect that here.
1079 glibcpp_CXX=$CXX
1080 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1082 # Extract the first word of "$ac_prog", so it can be a program name with args.
1083 set dummy $ac_prog; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1088 else
1089 if test -n "$glibcpp_CXX"; then
1090 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1091 else
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1093 ac_dummy="$PATH"
1094 for ac_dir in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir=.
1096 if test -f $ac_dir/$ac_word; then
1097 ac_cv_prog_glibcpp_CXX="$ac_prog"
1098 break
1100 done
1101 IFS="$ac_save_ifs"
1104 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1105 if test -n "$glibcpp_CXX"; then
1106 echo "$ac_t""$glibcpp_CXX" 1>&6
1107 else
1108 echo "$ac_t""no" 1>&6
1111 test -n "$glibcpp_CXX" && break
1112 done
1113 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1116 CXX=$glibcpp_CXX
1117 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1119 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether we are using GNU C++" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124 cat > conftest.C <<EOF
1125 #ifdef __GNUC__
1126 yes;
1127 #endif
1129 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1130 ac_cv_prog_gxx=yes
1131 else
1132 ac_cv_prog_gxx=no
1136 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1138 if test $ac_cv_prog_gxx = yes; then
1139 GXX=yes
1140 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1141 ac_save_CXXFLAGS="$CXXFLAGS"
1142 CXXFLAGS=
1143 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether ${CXX-g++} accepts -g" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148 echo 'void f(){}' > conftest.cc
1149 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1150 ac_cv_prog_cxx_g=yes
1151 else
1152 ac_cv_prog_cxx_g=no
1154 rm -f conftest*
1158 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1159 if test "$ac_test_CXXFLAGS" = set; then
1160 CXXFLAGS="$ac_save_CXXFLAGS"
1161 elif test $ac_cv_prog_cxx_g = yes; then
1162 CXXFLAGS="-g -O2"
1163 else
1164 CXXFLAGS="-O2"
1166 else
1167 GXX=
1168 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1172 # For directory versioning (e.g., headers) and other variables.
1173 echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1174 echo "configure:1175: checking for GCC version number" >&5
1175 gcc_version=`$glibcpp_CXX -dumpversion`
1176 echo "$ac_t""$gcc_version" 1>&6
1178 # For some reason, gettext needs this.
1180 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1181 echo "configure:1182: checking for strerror in -lcposix" >&5
1182 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186 ac_save_LIBS="$LIBS"
1187 LIBS="-lcposix $LIBS"
1188 cat > conftest.$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1191 /* Override any gcc2 internal prototype to avoid an error. */
1192 /* We use char because int might match the return type of a gcc2
1193 builtin and then its argument prototype would still apply. */
1194 char strerror();
1196 int main() {
1197 strerror()
1198 ; return 0; }
1200 if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1201 rm -rf conftest*
1202 eval "ac_cv_lib_$ac_lib_var=yes"
1203 else
1204 echo "configure: failed program was:" >&5
1205 cat conftest.$ac_ext >&5
1206 rm -rf conftest*
1207 eval "ac_cv_lib_$ac_lib_var=no"
1209 rm -f conftest*
1210 LIBS="$ac_save_LIBS"
1213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1214 echo "$ac_t""yes" 1>&6
1215 LIBS="$LIBS -lcposix"
1216 else
1217 echo "$ac_t""no" 1>&6
1223 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1224 set dummy ${ac_tool_prefix}as; ac_word=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1229 else
1230 if test -n "$AS"; then
1231 ac_cv_prog_AS="$AS" # Let the user override the test.
1232 else
1233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1234 ac_dummy="$PATH"
1235 for ac_dir in $ac_dummy; do
1236 test -z "$ac_dir" && ac_dir=.
1237 if test -f $ac_dir/$ac_word; then
1238 ac_cv_prog_AS="${ac_tool_prefix}as"
1239 break
1241 done
1242 IFS="$ac_save_ifs"
1243 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1246 AS="$ac_cv_prog_AS"
1247 if test -n "$AS"; then
1248 echo "$ac_t""$AS" 1>&6
1249 else
1250 echo "$ac_t""no" 1>&6
1255 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1256 set dummy ${ac_tool_prefix}ar; ac_word=$2
1257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1258 echo "configure:1259: checking for $ac_word" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1262 if test -n "$AR"; then
1263 ac_cv_prog_AR="$AR" # Let the user override the test.
1264 else
1265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1266 ac_dummy="$PATH"
1267 for ac_dir in $ac_dummy; do
1268 test -z "$ac_dir" && ac_dir=.
1269 if test -f $ac_dir/$ac_word; then
1270 ac_cv_prog_AR="${ac_tool_prefix}ar"
1271 break
1273 done
1274 IFS="$ac_save_ifs"
1275 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1278 AR="$ac_cv_prog_AR"
1279 if test -n "$AR"; then
1280 echo "$ac_t""$AR" 1>&6
1281 else
1282 echo "$ac_t""no" 1>&6
1287 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1288 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1293 else
1294 if test -n "$RANLIB"; then
1295 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1296 else
1297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1298 ac_dummy="$PATH"
1299 for ac_dir in $ac_dummy; do
1300 test -z "$ac_dir" && ac_dir=.
1301 if test -f $ac_dir/$ac_word; then
1302 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1303 break
1305 done
1306 IFS="$ac_save_ifs"
1309 RANLIB="$ac_cv_prog_RANLIB"
1310 if test -n "$RANLIB"; then
1311 echo "$ac_t""$RANLIB" 1>&6
1312 else
1313 echo "$ac_t""no" 1>&6
1317 if test -z "$ac_cv_prog_RANLIB"; then
1318 if test -n "$ac_tool_prefix"; then
1319 # Extract the first word of "ranlib", so it can be a program name with args.
1320 set dummy ranlib; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326 if test -n "$RANLIB"; then
1327 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1328 else
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1330 ac_dummy="$PATH"
1331 for ac_dir in $ac_dummy; do
1332 test -z "$ac_dir" && ac_dir=.
1333 if test -f $ac_dir/$ac_word; then
1334 ac_cv_prog_RANLIB="ranlib"
1335 break
1337 done
1338 IFS="$ac_save_ifs"
1339 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1342 RANLIB="$ac_cv_prog_RANLIB"
1343 if test -n "$RANLIB"; then
1344 echo "$ac_t""$RANLIB" 1>&6
1345 else
1346 echo "$ac_t""no" 1>&6
1349 else
1350 RANLIB="ranlib-not-found-in-path-error"
1354 # Find a good install program. We prefer a C program (faster),
1355 # so one script is as good as another. But avoid the broken or
1356 # incompatible versions:
1357 # SysV /etc/install, /usr/sbin/install
1358 # SunOS /usr/etc/install
1359 # IRIX /sbin/install
1360 # AIX /bin/install
1361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1364 # ./install, which can be erroneously created by make from ./install.sh.
1365 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1366 echo "configure:1367: checking for a BSD compatible install" >&5
1367 if test -z "$INSTALL"; then
1368 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1372 for ac_dir in $PATH; do
1373 # Account for people who put trailing slashes in PATH elements.
1374 case "$ac_dir/" in
1375 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1377 # OSF1 and SCO ODT 3.0 have their own names for install.
1378 # Don't use installbsd from OSF since it installs stuff as root
1379 # by default.
1380 for ac_prog in ginstall scoinst install; do
1381 if test -f $ac_dir/$ac_prog; then
1382 if test $ac_prog = install &&
1383 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1384 # AIX install. It has an incompatible calling convention.
1386 else
1387 ac_cv_path_install="$ac_dir/$ac_prog -c"
1388 break 2
1391 done
1393 esac
1394 done
1395 IFS="$ac_save_IFS"
1398 if test "${ac_cv_path_install+set}" = set; then
1399 INSTALL="$ac_cv_path_install"
1400 else
1401 # As a last resort, use the slow shell script. We don't cache a
1402 # path for INSTALL within a source directory, because that will
1403 # break other packages using the cache if that directory is
1404 # removed, or if the path is relative.
1405 INSTALL="$ac_install_sh"
1408 echo "$ac_t""$INSTALL" 1>&6
1410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1411 # It thinks the first close brace ends the variable substitution.
1412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1419 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether to enable maintainer-specific portions of Makefiles" >&5
1421 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1422 if test "${enable_maintainer_mode+set}" = set; then
1423 enableval="$enable_maintainer_mode"
1424 USE_MAINTAINER_MODE=$enableval
1425 else
1426 USE_MAINTAINER_MODE=no
1429 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1432 if test $USE_MAINTAINER_MODE = yes; then
1433 MAINTAINER_MODE_TRUE=
1434 MAINTAINER_MODE_FALSE='#'
1435 else
1436 MAINTAINER_MODE_TRUE='#'
1437 MAINTAINER_MODE_FALSE=
1439 MAINT=$MAINTAINER_MODE_TRUE
1443 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1444 # at least currently, we never actually build a program, so we never
1445 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1446 # fails, because we are probably configuring with a cross compiler
1447 # which can't create executables. So we include AC_EXEEXT to keep
1448 # automake happy, but we don't execute it, since we don't care about
1449 # the result.
1450 if false; then
1451 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1452 # to nothing, so nothing would remain between `then' and `fi' if it
1453 # were not for the `:' below.
1457 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1458 echo "configure:1459: checking for executable suffix" >&5
1459 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1463 ac_cv_exeext=.exe
1464 else
1465 rm -f conftest*
1466 echo 'int main () { return 0; }' > conftest.$ac_ext
1467 ac_cv_exeext=
1468 if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1469 for file in conftest.*; do
1470 case $file in
1471 *.c | *.o | *.obj) ;;
1472 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1473 esac
1474 done
1475 else
1476 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1478 rm -f conftest*
1479 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1483 EXEEXT=""
1484 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1485 echo "$ac_t""${ac_cv_exeext}" 1>&6
1486 ac_exeext=$EXEEXT
1490 case ${glibcpp_basedir} in
1491 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1492 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1493 esac
1495 # Find platform-specific directories containing configuration info. In
1496 # addition to possibly modifying the same flags, it also sets up symlinks.
1498 . ${glibcpp_basedir}/configure.target
1499 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1500 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1504 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1505 echo "configure:1506: checking whether build environment is sane" >&5
1506 # Just in case
1507 sleep 1
1508 echo timestamp > conftestfile
1509 # Do `set' in a subshell so we don't clobber the current shell's
1510 # arguments. Must try -L first in case configure is actually a
1511 # symlink; some systems play weird games with the mod time of symlinks
1512 # (eg FreeBSD returns the mod time of the symlink's containing
1513 # directory).
1514 if (
1515 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1516 if test "$*" = "X"; then
1517 # -L didn't work.
1518 set X `ls -t $srcdir/configure conftestfile`
1520 if test "$*" != "X $srcdir/configure conftestfile" \
1521 && test "$*" != "X conftestfile $srcdir/configure"; then
1523 # If neither matched, then we have a broken ls. This can happen
1524 # if, for instance, CONFIG_SHELL is bash and it inherits a
1525 # broken ls alias from the environment. This has actually
1526 # happened. Such a system could not be considered "sane".
1527 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1528 alias in your environment" 1>&2; exit 1; }
1531 test "$2" = conftestfile
1533 then
1534 # Ok.
1536 else
1537 { echo "configure: error: newly created file is older than distributed files!
1538 Check your system clock" 1>&2; exit 1; }
1540 rm -f conftest*
1541 echo "$ac_t""yes" 1>&6
1542 if test "$program_transform_name" = s,x,x,; then
1543 program_transform_name=
1544 else
1545 # Double any \ or $. echo might interpret backslashes.
1546 cat <<\EOF_SED > conftestsed
1547 s,\\,\\\\,g; s,\$,$$,g
1548 EOF_SED
1549 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1550 rm -f conftestsed
1552 test "$program_prefix" != NONE &&
1553 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1554 # Use a double $ so make ignores it.
1555 test "$program_suffix" != NONE &&
1556 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1558 # sed with no file args requires a program.
1559 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1561 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1562 echo "configure:1563: checking whether ${MAKE-make} sets \${MAKE}" >&5
1563 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1564 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1566 else
1567 cat > conftestmake <<\EOF
1568 all:
1569 @echo 'ac_maketemp="${MAKE}"'
1571 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1572 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1573 if test -n "$ac_maketemp"; then
1574 eval ac_cv_prog_make_${ac_make}_set=yes
1575 else
1576 eval ac_cv_prog_make_${ac_make}_set=no
1578 rm -f conftestmake
1580 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1581 echo "$ac_t""yes" 1>&6
1582 SET_MAKE=
1583 else
1584 echo "$ac_t""no" 1>&6
1585 SET_MAKE="MAKE=${MAKE-make}"
1589 PACKAGE=$PACKAGE
1591 VERSION=$gcc_version
1593 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1594 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1596 cat >> confdefs.h <<EOF
1597 #define PACKAGE "$PACKAGE"
1600 cat >> confdefs.h <<EOF
1601 #define VERSION "$VERSION"
1606 missing_dir=`cd $ac_aux_dir && pwd`
1607 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1608 echo "configure:1609: checking for working aclocal" >&5
1609 # Run test in a subshell; some versions of sh will print an error if
1610 # an executable is not found, even if stderr is redirected.
1611 # Redirect stdin to placate older versions of autoconf. Sigh.
1612 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1613 ACLOCAL=aclocal
1614 echo "$ac_t""found" 1>&6
1615 else
1616 ACLOCAL="$missing_dir/missing aclocal"
1617 echo "$ac_t""missing" 1>&6
1620 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1621 echo "configure:1622: checking for working autoconf" >&5
1622 # Run test in a subshell; some versions of sh will print an error if
1623 # an executable is not found, even if stderr is redirected.
1624 # Redirect stdin to placate older versions of autoconf. Sigh.
1625 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1626 AUTOCONF=autoconf
1627 echo "$ac_t""found" 1>&6
1628 else
1629 AUTOCONF="$missing_dir/missing autoconf"
1630 echo "$ac_t""missing" 1>&6
1633 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1634 echo "configure:1635: checking for working automake" >&5
1635 # Run test in a subshell; some versions of sh will print an error if
1636 # an executable is not found, even if stderr is redirected.
1637 # Redirect stdin to placate older versions of autoconf. Sigh.
1638 if (automake --version) < /dev/null > /dev/null 2>&1; then
1639 AUTOMAKE=automake
1640 echo "$ac_t""found" 1>&6
1641 else
1642 AUTOMAKE="$missing_dir/missing automake"
1643 echo "$ac_t""missing" 1>&6
1646 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1647 echo "configure:1648: checking for working autoheader" >&5
1648 # Run test in a subshell; some versions of sh will print an error if
1649 # an executable is not found, even if stderr is redirected.
1650 # Redirect stdin to placate older versions of autoconf. Sigh.
1651 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1652 AUTOHEADER=autoheader
1653 echo "$ac_t""found" 1>&6
1654 else
1655 AUTOHEADER="$missing_dir/missing autoheader"
1656 echo "$ac_t""missing" 1>&6
1659 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1660 echo "configure:1661: checking for working makeinfo" >&5
1661 # Run test in a subshell; some versions of sh will print an error if
1662 # an executable is not found, even if stderr is redirected.
1663 # Redirect stdin to placate older versions of autoconf. Sigh.
1664 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1665 MAKEINFO=makeinfo
1666 echo "$ac_t""found" 1>&6
1667 else
1668 MAKEINFO="$missing_dir/missing makeinfo"
1669 echo "$ac_t""missing" 1>&6
1678 # Check whether --enable-shared or --disable-shared was given.
1679 if test "${enable_shared+set}" = set; then
1680 enableval="$enable_shared"
1681 p=${PACKAGE-default}
1682 case $enableval in
1683 yes) enable_shared=yes ;;
1684 no) enable_shared=no ;;
1686 enable_shared=no
1687 # Look at the argument we got. We use all the common list separators.
1688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1689 for pkg in $enableval; do
1690 if test "X$pkg" = "X$p"; then
1691 enable_shared=yes
1693 done
1694 IFS="$ac_save_ifs"
1696 esac
1697 else
1698 enable_shared=yes
1701 # Check whether --enable-static or --disable-static was given.
1702 if test "${enable_static+set}" = set; then
1703 enableval="$enable_static"
1704 p=${PACKAGE-default}
1705 case $enableval in
1706 yes) enable_static=yes ;;
1707 no) enable_static=no ;;
1709 enable_static=no
1710 # Look at the argument we got. We use all the common list separators.
1711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1712 for pkg in $enableval; do
1713 if test "X$pkg" = "X$p"; then
1714 enable_static=yes
1716 done
1717 IFS="$ac_save_ifs"
1719 esac
1720 else
1721 enable_static=yes
1724 # Check whether --enable-fast-install or --disable-fast-install was given.
1725 if test "${enable_fast_install+set}" = set; then
1726 enableval="$enable_fast_install"
1727 p=${PACKAGE-default}
1728 case $enableval in
1729 yes) enable_fast_install=yes ;;
1730 no) enable_fast_install=no ;;
1732 enable_fast_install=no
1733 # Look at the argument we got. We use all the common list separators.
1734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1735 for pkg in $enableval; do
1736 if test "X$pkg" = "X$p"; then
1737 enable_fast_install=yes
1739 done
1740 IFS="$ac_save_ifs"
1742 esac
1743 else
1744 enable_fast_install=yes
1747 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1748 if test "${with_gnu_ld+set}" = set; then
1749 withval="$with_gnu_ld"
1750 test "$withval" = no || with_gnu_ld=yes
1751 else
1752 with_gnu_ld=no
1755 ac_prog=ld
1756 if test "$GCC" = yes; then
1757 # Check if gcc -print-prog-name=ld gives a path.
1758 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1759 echo "configure:1760: checking for ld used by GCC" >&5
1760 case $host in
1761 *-*-mingw*)
1762 # gcc leaves a trailing carriage return which upsets mingw
1763 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1765 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1766 esac
1767 case $ac_prog in
1768 # Accept absolute paths.
1769 [\\/]* | [A-Za-z]:[\\/]*)
1770 re_direlt='/[^/][^/]*/\.\./'
1771 # Canonicalize the path of ld
1772 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1773 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1774 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1775 done
1776 test -z "$LD" && LD="$ac_prog"
1779 # If it fails, then pretend we aren't using GCC.
1780 ac_prog=ld
1783 # If it is relative, then search for the first ld in PATH.
1784 with_gnu_ld=unknown
1786 esac
1787 elif test "$with_gnu_ld" = yes; then
1788 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1789 echo "configure:1790: checking for GNU ld" >&5
1790 else
1791 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1792 echo "configure:1793: checking for non-GNU ld" >&5
1794 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1796 else
1797 if test -z "$LD"; then
1798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1799 for ac_dir in $PATH; do
1800 test -z "$ac_dir" && ac_dir=.
1801 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1802 lt_cv_path_LD="$ac_dir/$ac_prog"
1803 # Check to see if the program is GNU ld. I'd rather use --version,
1804 # but apparently some GNU ld's only accept -v.
1805 # Break only if it was the GNU/non-GNU ld that we prefer.
1806 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1807 test "$with_gnu_ld" != no && break
1808 else
1809 test "$with_gnu_ld" != yes && break
1812 done
1813 IFS="$ac_save_ifs"
1814 else
1815 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1819 LD="$lt_cv_path_LD"
1820 if test -n "$LD"; then
1821 echo "$ac_t""$LD" 1>&6
1822 else
1823 echo "$ac_t""no" 1>&6
1825 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1826 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1827 echo "configure:1828: checking if the linker ($LD) is GNU ld" >&5
1828 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1830 else
1831 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1832 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1833 lt_cv_prog_gnu_ld=yes
1834 else
1835 lt_cv_prog_gnu_ld=no
1839 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1840 with_gnu_ld=$lt_cv_prog_gnu_ld
1843 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1844 echo "configure:1845: checking for $LD option to reload object files" >&5
1845 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1847 else
1848 lt_cv_ld_reload_flag='-r'
1851 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1852 reload_flag=$lt_cv_ld_reload_flag
1853 test -n "$reload_flag" && reload_flag=" $reload_flag"
1855 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1856 echo "configure:1857: checking for BSD-compatible nm" >&5
1857 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1859 else
1860 if test -n "$NM"; then
1861 # Let the user override the test.
1862 lt_cv_path_NM="$NM"
1863 else
1864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1865 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1866 test -z "$ac_dir" && ac_dir=.
1867 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1868 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1869 # Check to see if the nm accepts a BSD-compat flag.
1870 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1871 # nm: unknown option "B" ignored
1872 # Tru64's nm complains that /dev/null is an invalid object file
1873 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1874 lt_cv_path_NM="$tmp_nm -B"
1875 break
1876 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1877 lt_cv_path_NM="$tmp_nm -p"
1878 break
1879 else
1880 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1881 continue # so that we can try to find one that supports BSD flags
1884 done
1885 IFS="$ac_save_ifs"
1886 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1890 NM="$lt_cv_path_NM"
1891 echo "$ac_t""$NM" 1>&6
1893 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1894 echo "configure:1895: checking how to recognise dependant libraries" >&5
1895 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898 lt_cv_file_magic_cmd='$MAGIC_CMD'
1899 lt_cv_file_magic_test_file=
1900 lt_cv_deplibs_check_method='unknown'
1901 # Need to set the preceding variable on all platforms that support
1902 # interlibrary dependencies.
1903 # 'none' -- dependencies not supported.
1904 # `unknown' -- same as none, but documents that we really don't know.
1905 # 'pass_all' -- all dependencies passed with no checks.
1906 # 'test_compile' -- check by making test program.
1907 # 'file_magic [regex]' -- check by looking for files in library path
1908 # which responds to the $file_magic_cmd with a given egrep regex.
1909 # If you have `file' or equivalent on your system and you're not sure
1910 # whether `pass_all' will *always* work, you probably want this one.
1912 case $host_os in
1913 aix*)
1914 lt_cv_deplibs_check_method=pass_all
1917 beos*)
1918 lt_cv_deplibs_check_method=pass_all
1921 bsdi4*)
1922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1923 lt_cv_file_magic_cmd='/usr/bin/file -L'
1924 lt_cv_file_magic_test_file=/shlib/libc.so
1927 cygwin* | mingw* |pw32*)
1928 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1929 lt_cv_file_magic_cmd='$OBJDUMP -f'
1932 darwin* | rhapsody*)
1933 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1934 lt_cv_file_magic_cmd='/usr/bin/file -L'
1935 case "$host_os" in
1936 rhapsody* | darwin1.012)
1937 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1939 *) # Darwin 1.3 on
1940 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1942 esac
1945 freebsd* )
1946 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1947 case $host_cpu in
1948 i*86 )
1949 # Not sure whether the presence of OpenBSD here was a mistake.
1950 # Let's accept both of them until this is cleared up.
1951 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1952 lt_cv_file_magic_cmd=/usr/bin/file
1953 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1955 esac
1956 else
1957 lt_cv_deplibs_check_method=pass_all
1961 gnu*)
1962 lt_cv_deplibs_check_method=pass_all
1965 hpux10.20*|hpux11*)
1966 case $host_cpu in
1967 hppa*)
1968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1969 lt_cv_file_magic_cmd=/usr/bin/file
1970 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1972 ia64*)
1973 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1974 lt_cv_file_magic_cmd=/usr/bin/file
1975 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1977 esac
1980 irix5* | irix6*)
1981 case $host_os in
1982 irix5*)
1983 # this will be overridden with pass_all, but let us keep it just in case
1984 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1987 case $LD in
1988 *-32|*"-32 ") libmagic=32-bit;;
1989 *-n32|*"-n32 ") libmagic=N32;;
1990 *-64|*"-64 ") libmagic=64-bit;;
1991 *) libmagic=never-match;;
1992 esac
1993 # this will be overridden with pass_all, but let us keep it just in case
1994 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1996 esac
1997 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1998 lt_cv_deplibs_check_method=pass_all
2001 # This must be Linux ELF.
2002 linux-gnu*)
2003 case $host_cpu in
2004 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2005 lt_cv_deplibs_check_method=pass_all ;;
2007 # glibc up to 2.1.1 does not perform some relocations on ARM
2008 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2009 esac
2010 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2013 netbsd*)
2014 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2015 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2016 else
2017 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2021 newsos6)
2022 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2023 lt_cv_file_magic_cmd=/usr/bin/file
2024 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2027 osf3* | osf4* | osf5*)
2028 # this will be overridden with pass_all, but let us keep it just in case
2029 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2030 lt_cv_file_magic_test_file=/shlib/libc.so
2031 lt_cv_deplibs_check_method=pass_all
2034 sco3.2v5*)
2035 lt_cv_deplibs_check_method=pass_all
2038 solaris*)
2039 lt_cv_deplibs_check_method=pass_all
2040 lt_cv_file_magic_test_file=/lib/libc.so
2043 sysv5uw[78]* | sysv4*uw2*)
2044 lt_cv_deplibs_check_method=pass_all
2047 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2048 case $host_vendor in
2049 ncr)
2050 lt_cv_deplibs_check_method=pass_all
2052 motorola)
2053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2056 esac
2058 esac
2062 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2063 file_magic_cmd=$lt_cv_file_magic_cmd
2064 deplibs_check_method=$lt_cv_deplibs_check_method
2066 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2067 echo "configure:2068: checking for object suffix" >&5
2068 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2070 else
2071 rm -f conftest*
2072 echo 'int i = 1;' > conftest.$ac_ext
2073 if { (eval echo configure:2074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2074 for ac_file in conftest.*; do
2075 case $ac_file in
2076 *.c) ;;
2077 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2078 esac
2079 done
2080 else
2081 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2083 rm -f conftest*
2086 echo "$ac_t""$ac_cv_objext" 1>&6
2087 OBJEXT=$ac_cv_objext
2088 ac_objext=$ac_cv_objext
2090 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2092 # Only perform the check for file, if the check method requires it
2093 case $deplibs_check_method in
2094 file_magic*)
2095 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2096 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2097 echo "configure:2098: checking for ${ac_tool_prefix}file" >&5
2098 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2100 else
2101 case $MAGIC_CMD in
2103 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2105 ?:/*)
2106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2109 ac_save_MAGIC_CMD="$MAGIC_CMD"
2110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2111 ac_dummy="/usr/bin:$PATH"
2112 for ac_dir in $ac_dummy; do
2113 test -z "$ac_dir" && ac_dir=.
2114 if test -f $ac_dir/${ac_tool_prefix}file; then
2115 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2116 if test -n "$file_magic_test_file"; then
2117 case $deplibs_check_method in
2118 "file_magic "*)
2119 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2120 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2121 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2122 egrep "$file_magic_regex" > /dev/null; then
2124 else
2125 cat <<EOF 1>&2
2127 *** Warning: the command libtool uses to detect shared libraries,
2128 *** $file_magic_cmd, produces output that libtool cannot recognize.
2129 *** The result is that libtool may fail to recognize shared libraries
2130 *** as such. This will affect the creation of libtool libraries that
2131 *** depend on shared libraries, but programs linked with such libtool
2132 *** libraries will work regardless of this problem. Nevertheless, you
2133 *** may want to report the problem to your system manager and/or to
2134 *** bug-libtool@gnu.org
2137 fi ;;
2138 esac
2140 break
2142 done
2143 IFS="$ac_save_ifs"
2144 MAGIC_CMD="$ac_save_MAGIC_CMD"
2146 esac
2149 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2150 if test -n "$MAGIC_CMD"; then
2151 echo "$ac_t""$MAGIC_CMD" 1>&6
2152 else
2153 echo "$ac_t""no" 1>&6
2156 if test -z "$lt_cv_path_MAGIC_CMD"; then
2157 if test -n "$ac_tool_prefix"; then
2158 echo $ac_n "checking for file""... $ac_c" 1>&6
2159 echo "configure:2160: checking for file" >&5
2160 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2162 else
2163 case $MAGIC_CMD in
2165 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2167 ?:/*)
2168 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2171 ac_save_MAGIC_CMD="$MAGIC_CMD"
2172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2173 ac_dummy="/usr/bin:$PATH"
2174 for ac_dir in $ac_dummy; do
2175 test -z "$ac_dir" && ac_dir=.
2176 if test -f $ac_dir/file; then
2177 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2178 if test -n "$file_magic_test_file"; then
2179 case $deplibs_check_method in
2180 "file_magic "*)
2181 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2184 egrep "$file_magic_regex" > /dev/null; then
2186 else
2187 cat <<EOF 1>&2
2189 *** Warning: the command libtool uses to detect shared libraries,
2190 *** $file_magic_cmd, produces output that libtool cannot recognize.
2191 *** The result is that libtool may fail to recognize shared libraries
2192 *** as such. This will affect the creation of libtool libraries that
2193 *** depend on shared libraries, but programs linked with such libtool
2194 *** libraries will work regardless of this problem. Nevertheless, you
2195 *** may want to report the problem to your system manager and/or to
2196 *** bug-libtool@gnu.org
2199 fi ;;
2200 esac
2202 break
2204 done
2205 IFS="$ac_save_ifs"
2206 MAGIC_CMD="$ac_save_MAGIC_CMD"
2208 esac
2211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2212 if test -n "$MAGIC_CMD"; then
2213 echo "$ac_t""$MAGIC_CMD" 1>&6
2214 else
2215 echo "$ac_t""no" 1>&6
2218 else
2219 MAGIC_CMD=:
2225 esac
2227 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2228 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2230 echo "configure:2231: checking for $ac_word" >&5
2231 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2233 else
2234 if test -n "$RANLIB"; then
2235 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2236 else
2237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2238 ac_dummy="$PATH"
2239 for ac_dir in $ac_dummy; do
2240 test -z "$ac_dir" && ac_dir=.
2241 if test -f $ac_dir/$ac_word; then
2242 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2243 break
2245 done
2246 IFS="$ac_save_ifs"
2249 RANLIB="$ac_cv_prog_RANLIB"
2250 if test -n "$RANLIB"; then
2251 echo "$ac_t""$RANLIB" 1>&6
2252 else
2253 echo "$ac_t""no" 1>&6
2257 if test -z "$ac_cv_prog_RANLIB"; then
2258 if test -n "$ac_tool_prefix"; then
2259 # Extract the first word of "ranlib", so it can be a program name with args.
2260 set dummy ranlib; ac_word=$2
2261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2262 echo "configure:2263: checking for $ac_word" >&5
2263 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2264 echo $ac_n "(cached) $ac_c" 1>&6
2265 else
2266 if test -n "$RANLIB"; then
2267 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2268 else
2269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2270 ac_dummy="$PATH"
2271 for ac_dir in $ac_dummy; do
2272 test -z "$ac_dir" && ac_dir=.
2273 if test -f $ac_dir/$ac_word; then
2274 ac_cv_prog_RANLIB="ranlib"
2275 break
2277 done
2278 IFS="$ac_save_ifs"
2279 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2282 RANLIB="$ac_cv_prog_RANLIB"
2283 if test -n "$RANLIB"; then
2284 echo "$ac_t""$RANLIB" 1>&6
2285 else
2286 echo "$ac_t""no" 1>&6
2289 else
2290 RANLIB=":"
2294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2295 set dummy ${ac_tool_prefix}strip; ac_word=$2
2296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_word" >&5
2298 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2300 else
2301 if test -n "$STRIP"; then
2302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2303 else
2304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2305 ac_dummy="$PATH"
2306 for ac_dir in $ac_dummy; do
2307 test -z "$ac_dir" && ac_dir=.
2308 if test -f $ac_dir/$ac_word; then
2309 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2310 break
2312 done
2313 IFS="$ac_save_ifs"
2316 STRIP="$ac_cv_prog_STRIP"
2317 if test -n "$STRIP"; then
2318 echo "$ac_t""$STRIP" 1>&6
2319 else
2320 echo "$ac_t""no" 1>&6
2324 if test -z "$ac_cv_prog_STRIP"; then
2325 if test -n "$ac_tool_prefix"; then
2326 # Extract the first word of "strip", so it can be a program name with args.
2327 set dummy strip; ac_word=$2
2328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2329 echo "configure:2330: checking for $ac_word" >&5
2330 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2332 else
2333 if test -n "$STRIP"; then
2334 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2335 else
2336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2337 ac_dummy="$PATH"
2338 for ac_dir in $ac_dummy; do
2339 test -z "$ac_dir" && ac_dir=.
2340 if test -f $ac_dir/$ac_word; then
2341 ac_cv_prog_STRIP="strip"
2342 break
2344 done
2345 IFS="$ac_save_ifs"
2346 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2349 STRIP="$ac_cv_prog_STRIP"
2350 if test -n "$STRIP"; then
2351 echo "$ac_t""$STRIP" 1>&6
2352 else
2353 echo "$ac_t""no" 1>&6
2356 else
2357 STRIP=":"
2362 # Check for any special flags to pass to ltconfig.
2363 libtool_flags="--cache-file=$cache_file"
2364 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2365 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2366 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2367 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2368 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2369 libtool_flags="$libtool_flags --enable-dlopen"
2371 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2372 if test "${enable_libtool_lock+set}" = set; then
2373 enableval="$enable_libtool_lock"
2377 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2378 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2380 # Check whether --with-pic or --without-pic was given.
2381 if test "${with_pic+set}" = set; then
2382 withval="$with_pic"
2383 pic_mode="$withval"
2384 else
2385 pic_mode=default
2388 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2389 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2391 # Some flags need to be propagated to the compiler or linker for good
2392 # libtool support.
2393 case $host in
2394 *-*-irix6*)
2395 # Find out which ABI we are using.
2396 echo '#line 2397 "configure"' > conftest.$ac_ext
2397 if { (eval echo configure:2398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2398 case `/usr/bin/file conftest.$ac_objext` in
2399 *32-bit*)
2400 LD="${LD-ld} -32"
2402 *N32*)
2403 LD="${LD-ld} -n32"
2405 *64-bit*)
2406 LD="${LD-ld} -64"
2408 esac
2410 rm -rf conftest*
2413 ia64-*-hpux*)
2414 # Find out which ABI we are using.
2415 echo 'int i;' > conftest.$ac_ext
2416 if { (eval echo configure:2417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2417 case "`/usr/bin/file conftest.o`" in
2418 *ELF-32*)
2419 HPUX_IA64_MODE="32"
2421 *ELF-64*)
2422 HPUX_IA64_MODE="64"
2424 esac
2426 rm -rf conftest*
2429 *-*-sco3.2v5*)
2430 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2431 SAVE_CFLAGS="$CFLAGS"
2432 CFLAGS="$CFLAGS -belf"
2433 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2434 echo "configure:2435: checking whether the C compiler needs -belf" >&5
2435 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2437 else
2439 ac_ext=c
2440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2441 ac_cpp='$CPP $CPPFLAGS'
2442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2444 cross_compiling=$ac_cv_prog_cc_cross
2446 cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2450 int main() {
2452 ; return 0; }
2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2455 rm -rf conftest*
2456 lt_cv_cc_needs_belf=yes
2457 else
2458 echo "configure: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 rm -rf conftest*
2461 lt_cv_cc_needs_belf=no
2463 rm -f conftest*
2464 ac_ext=c
2465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2469 cross_compiling=$ac_cv_prog_cc_cross
2473 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2474 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2475 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2476 CFLAGS="$SAVE_CFLAGS"
2481 esac
2483 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2484 echo "configure:2485: checking how to run the C++ preprocessor" >&5
2485 if test -z "$CXXCPP"; then
2486 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2488 else
2489 ac_ext=C
2490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2491 ac_cpp='$CXXCPP $CPPFLAGS'
2492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2494 cross_compiling=$ac_cv_prog_cxx_cross
2495 CXXCPP="${CXX-g++} -E"
2496 cat > conftest.$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2499 #include <stdlib.h>
2501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2502 { (eval echo configure:2503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2504 if test -z "$ac_err"; then
2506 else
2507 echo "$ac_err" >&5
2508 echo "configure: failed program was:" >&5
2509 cat conftest.$ac_ext >&5
2510 rm -rf conftest*
2511 CXXCPP=/lib/cpp
2513 rm -f conftest*
2514 ac_cv_prog_CXXCPP="$CXXCPP"
2515 ac_ext=c
2516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2520 cross_compiling=$ac_cv_prog_cc_cross
2523 CXXCPP="$ac_cv_prog_CXXCPP"
2524 echo "$ac_t""$CXXCPP" 1>&6
2527 # Save cache, so that ltconfig can load it
2528 cat > confcache <<\EOF
2529 # This file is a shell script that caches the results of configure
2530 # tests run on this system so they can be shared between configure
2531 # scripts and configure runs. It is not useful on other systems.
2532 # If it contains results you don't want to keep, you may remove or edit it.
2534 # By default, configure uses ./config.cache as the cache file,
2535 # creating it if it does not exist already. You can give configure
2536 # the --cache-file=FILE option to use a different cache file; that is
2537 # what configure does when it calls configure scripts in
2538 # subdirectories, so they share the cache.
2539 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2540 # config.status only pays attention to the cache file if you give it the
2541 # --recheck option to rerun configure.
2544 # The following way of writing the cache mishandles newlines in values,
2545 # but we know of no workaround that is simple, portable, and efficient.
2546 # So, don't put newlines in cache variables' values.
2547 # Ultrix sh set writes to stderr and can't be redirected directly,
2548 # and sets the high bit in the cache file unless we assign to the vars.
2549 (set) 2>&1 |
2550 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2551 *ac_space=\ *)
2552 # `set' does not quote correctly, so add quotes (double-quote substitution
2553 # turns \\\\ into \\, and sed turns \\ into \).
2554 sed -n \
2555 -e "s/'/'\\\\''/g" \
2556 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2559 # `set' quotes correctly as required by POSIX, so do not add quotes.
2560 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2562 esac >> confcache
2563 if cmp -s $cache_file confcache; then
2565 else
2566 if test -w $cache_file; then
2567 echo "updating cache $cache_file"
2568 cat confcache > $cache_file
2569 else
2570 echo "not updating unwritable cache $cache_file"
2573 rm -f confcache
2576 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2577 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2578 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2579 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2580 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2581 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2582 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2583 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2584 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2585 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2587 # Reload cache, that may have been modified by ltconfig
2588 if test -r "$cache_file"; then
2589 echo "loading cache $cache_file"
2590 . $cache_file
2591 else
2592 echo "creating cache $cache_file"
2593 > $cache_file
2597 # This can be used to rebuild libtool when needed
2598 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2600 # Always use our own libtool.
2601 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2603 # Redirect the config.log output again, so that the ltconfig log is not
2604 # clobbered by the next message.
2605 exec 5>>./config.log
2609 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2610 lt_save_CC="$CC"
2611 lt_save_CFLAGS="$CFLAGS"
2612 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2613 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2614 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2615 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2616 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2617 deplibs_check_method="$deplibs_check_method" \
2618 file_magic_cmd="$file_magic_cmd" \
2619 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2620 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2621 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2622 CC="$lt_save_CC"
2623 CFLAGS="$lt_save_CFLAGS"
2625 # Redirect the config.log output again, so that the ltconfig log is not
2626 # clobbered by the next message.
2627 exec 5>>./config.log
2637 # Check for c++ or library specific bits that don't require linking.
2638 #GLIBCPP_CHECK_COMPILER_VERSION
2639 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2640 echo "configure:2641: checking for GNU make" >&5
2641 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2643 else
2644 _cv_gnu_make_command='' ;
2645 for a in "${MAKE-make}" make gmake gnumake ; do
2646 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2647 then
2648 _cv_gnu_make_command=$a ;
2649 break;
2651 done ;
2655 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2656 if test "x$_cv_gnu_make_command" != "x" ; then
2657 ifGNUmake='' ;
2658 else
2659 ifGNUmake='#' ;
2664 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2665 # Check whether --enable-debug or --disable-debug was given.
2666 if test "${enable_debug+set}" = set; then
2667 enableval="$enable_debug"
2668 case "${enableval}" in
2669 yes) enable_debug=yes ;;
2670 no) enable_debug=no ;;
2671 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2672 esac
2673 else
2674 enable_debug=no
2677 case "${enable_debug}" in
2678 yes)
2679 DEBUG_FLAGS='-O0 -ggdb3'
2681 no)
2682 DEBUG_FLAGS='-g'
2684 esac
2687 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2688 echo "configure:2689: checking how to run the C preprocessor" >&5
2689 # On Suns, sometimes $CPP names a directory.
2690 if test -n "$CPP" && test -d "$CPP"; then
2691 CPP=
2693 if test -z "$CPP"; then
2694 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2696 else
2697 # This must be in double quotes, not single quotes, because CPP may get
2698 # substituted into the Makefile and "${CC-cc}" will confuse make.
2699 CPP="${CC-cc} -E"
2700 # On the NeXT, cc -E runs the code through the compiler's parser,
2701 # not just through cpp.
2702 cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 #include <assert.h>
2706 Syntax Error
2708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2709 { (eval echo configure:2710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2711 if test -z "$ac_err"; then
2713 else
2714 echo "$ac_err" >&5
2715 echo "configure: failed program was:" >&5
2716 cat conftest.$ac_ext >&5
2717 rm -rf conftest*
2718 CPP="${CC-cc} -E -traditional-cpp"
2719 cat > conftest.$ac_ext <<EOF
2720 #line 2721 "configure"
2721 #include "confdefs.h"
2722 #include <assert.h>
2723 Syntax Error
2725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2726 { (eval echo configure:2727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2728 if test -z "$ac_err"; then
2730 else
2731 echo "$ac_err" >&5
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2734 rm -rf conftest*
2735 CPP="${CC-cc} -nologo -E"
2736 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2739 #include <assert.h>
2740 Syntax Error
2742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2743 { (eval echo configure:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2745 if test -z "$ac_err"; then
2747 else
2748 echo "$ac_err" >&5
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2751 rm -rf conftest*
2752 CPP=/lib/cpp
2754 rm -f conftest*
2756 rm -f conftest*
2758 rm -f conftest*
2759 ac_cv_prog_CPP="$CPP"
2761 CPP="$ac_cv_prog_CPP"
2762 else
2763 ac_cv_prog_CPP="$CPP"
2765 echo "$ac_t""$CPP" 1>&6
2768 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2769 echo "configure:2770: checking for cstdio to use" >&5
2770 # Check whether --enable-cstdio or --disable-cstdio was given.
2771 if test "${enable_cstdio+set}" = set; then
2772 enableval="$enable_cstdio"
2773 if test x$enable_cstdio = xno; then
2774 enable_cstdio=stdio
2776 else
2777 enable_cstdio=stdio
2781 enable_cstdio_flag=$enable_cstdio
2783 case x${enable_cstdio_flag} in
2784 xlibio)
2785 CSTDIO_H=config/io/c_io_libio.h
2786 BASIC_FILE_H=config/io/basic_file_libio.h
2787 BASIC_FILE_CC=config/io/basic_file_libio.cc
2788 echo "$ac_t""libio" 1>&6
2790 # see if we are on a system with libio native (ie, linux)
2791 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2792 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2793 echo "configure:2794: checking for libio.h" >&5
2794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2796 else
2797 cat > conftest.$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2800 #include <libio.h>
2802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2803 { (eval echo configure:2804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2805 if test -z "$ac_err"; then
2806 rm -rf conftest*
2807 eval "ac_cv_header_$ac_safe=yes"
2808 else
2809 echo "$ac_err" >&5
2810 echo "configure: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2812 rm -rf conftest*
2813 eval "ac_cv_header_$ac_safe=no"
2815 rm -f conftest*
2817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2818 echo "$ac_t""yes" 1>&6
2819 has_libio=yes
2820 else
2821 echo "$ac_t""no" 1>&6
2822 has_libio=no
2826 # Need to check and see what version of glibc is being used. If
2827 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2828 # compile most of libio for linux systems.
2829 if test x$has_libio = x"yes"; then
2830 case "$target" in
2831 *-*-linux*)
2832 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2833 echo "configure:2834: checking for glibc version >= 2.2" >&5
2834 cat > conftest.$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2838 #include <features.h>
2839 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2841 #endif
2844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2845 egrep "ok" >/dev/null 2>&1; then
2846 rm -rf conftest*
2847 glibc_satisfactory=yes
2848 else
2849 rm -rf conftest*
2850 glibc_satisfactory=no
2852 rm -f conftest*
2854 echo "$ac_t""$glibc_satisfactory" 1>&6
2856 esac
2858 # XXX at the moment, admit defeat and force the recompilation
2859 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2860 glibc_satisfactory=no
2862 if test x$glibc_satisfactory = x"yes"; then
2863 need_libio=no
2864 need_wlibio=no
2865 else
2866 need_libio=yes
2867 # bkoz XXX need to add checks to enable this
2868 # pme XXX here's a first pass at such a check
2869 if test x$enable_c_mbchar != xno; then
2870 need_wlibio=yes
2871 else
2872 need_wlibio=no
2876 else
2877 # Using libio, but <libio.h> doesn't exist on the target system. . .
2878 need_libio=yes
2879 # bkoz XXX need to add checks to enable this
2880 # pme XXX here's a first pass at such a check
2881 if test x$enable_c_mbchar != xno; then
2882 need_wlibio=yes
2883 else
2884 need_wlibio=no
2888 xstdio | x | xno | xnone | xyes)
2889 # default
2890 CSTDIO_H=config/io/c_io_stdio.h
2891 BASIC_FILE_H=config/io/basic_file_stdio.h
2892 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2893 echo "$ac_t""stdio" 1>&6
2895 # We're not using stdio.
2896 need_libio=no
2897 need_wlibio=no
2900 echo "$enable_cstdio is an unknown io package" 1>&2
2901 exit 1
2903 esac
2908 # 2000-08-04 bkoz hack
2909 CCODECVT_C=config/io/c_io_libio_codecvt.c
2911 # 2000-08-04 bkoz hack
2915 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2916 GLIBCPP_BUILD_LIBIO_TRUE=
2917 GLIBCPP_BUILD_LIBIO_FALSE='#'
2918 else
2919 GLIBCPP_BUILD_LIBIO_TRUE='#'
2920 GLIBCPP_BUILD_LIBIO_FALSE=
2924 if test "$need_libio" = yes; then
2925 GLIBCPP_NEED_LIBIO_TRUE=
2926 GLIBCPP_NEED_LIBIO_FALSE='#'
2927 else
2928 GLIBCPP_NEED_LIBIO_TRUE='#'
2929 GLIBCPP_NEED_LIBIO_FALSE=
2933 if test "$need_wlibio" = yes; then
2934 GLIBCPP_NEED_WLIBIO_TRUE=
2935 GLIBCPP_NEED_WLIBIO_FALSE='#'
2936 else
2937 GLIBCPP_NEED_WLIBIO_TRUE='#'
2938 GLIBCPP_NEED_WLIBIO_FALSE=
2940 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2941 libio_la=../libio/libio.la
2942 else
2943 libio_la=
2948 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2949 echo "configure:2950: checking for clocale to use" >&5
2950 # Check whether --enable-clocale or --disable-clocale was given.
2951 if test "${enable_clocale+set}" = set; then
2952 enableval="$enable_clocale"
2953 if test x$enable_clocale = xno; then
2954 enable_clocale=no
2956 else
2957 enable_clocale=no
2961 enable_clocale_flag=$enable_clocale
2963 if test x$enable_clocale_flag = xno; then
2964 case x${target_os} in
2965 xlinux* | xgnu*)
2966 cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2970 #include <features.h>
2971 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2972 _GLIBCPP_ok
2973 #endif
2976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2977 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2978 rm -rf conftest*
2979 enable_clocale_flag=gnu
2980 else
2981 rm -rf conftest*
2982 enable_clocale_flag=generic
2984 rm -f conftest*
2987 # Test for bugs early in glibc-2.2.x series
2988 if test x$enable_clocale_flag = xgnu; then
2989 if test "$cross_compiling" = yes; then
2990 enable_clocale_flag=generic
2991 else
2992 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2996 #define _GNU_SOURCE 1
2997 #include <locale.h>
2998 int main()
3000 const char __one[] = "Äuglein Augmen";
3001 const char __two[] = "Äuglein";
3002 int i;
3003 int j;
3004 __locale_t loc;
3005 __locale_t loc_dup;
3006 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3007 loc_dup = __duplocale(loc);
3008 i = __strcoll_l(__one, __two, loc);
3009 j = __strcoll_l(__one, __two, loc_dup);
3010 return 0;
3014 if { (eval echo configure:3015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3015 then
3016 enable_clocale_flag=gnu
3017 else
3018 echo "configure: failed program was:" >&5
3019 cat conftest.$ac_ext >&5
3020 rm -fr conftest*
3021 enable_clocale_flag=generic
3023 rm -fr conftest*
3028 # ... at some point put __strxfrm_l tests in as well.
3031 enable_clocale_flag=generic
3033 esac
3036 # Check whether --enable-nls or --disable-nls was given.
3037 if test "${enable_nls+set}" = set; then
3038 enableval="$enable_nls"
3040 else
3041 enable_nls=yes
3044 USE_NLS=no
3046 case x${enable_clocale_flag} in
3047 xgeneric)
3048 echo "$ac_t""generic" 1>&6
3050 CLOCALE_H=config/locale/generic/c_locale.h
3051 CLOCALE_CC=config/locale/generic/c_locale.cc
3052 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3053 CCOLLATE_CC=config/locale/generic/collate_members.cc
3054 CCTYPE_CC=config/locale/generic/ctype_members.cc
3055 CMESSAGES_H=config/locale/generic/messages_members.h
3056 CMESSAGES_CC=config/locale/generic/messages_members.cc
3057 CMONEY_CC=config/locale/generic/monetary_members.cc
3058 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3059 CTIME_CC=config/locale/generic/time_members.cc
3061 xgnu)
3062 echo "$ac_t""gnu" 1>&6
3064 # Declare intention to use gettext, and add support for specific
3065 # languages.
3066 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3067 ALL_LINGUAS="de fr"
3069 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3070 # Extract the first word of "msgfmt", so it can be a program name with args.
3071 set dummy msgfmt; ac_word=$2
3072 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3073 echo "configure:3074: checking for $ac_word" >&5
3074 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3075 echo $ac_n "(cached) $ac_c" 1>&6
3076 else
3077 if test -n "$check_msgfmt"; then
3078 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3079 else
3080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3081 ac_dummy="$PATH"
3082 for ac_dir in $ac_dummy; do
3083 test -z "$ac_dir" && ac_dir=.
3084 if test -f $ac_dir/$ac_word; then
3085 ac_cv_prog_check_msgfmt="yes"
3086 break
3088 done
3089 IFS="$ac_save_ifs"
3090 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3093 check_msgfmt="$ac_cv_prog_check_msgfmt"
3094 if test -n "$check_msgfmt"; then
3095 echo "$ac_t""$check_msgfmt" 1>&6
3096 else
3097 echo "$ac_t""no" 1>&6
3100 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3101 USE_NLS=yes
3103 # Export the build objects.
3104 for ling in $ALL_LINGUAS; do \
3105 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3106 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3107 done
3111 CLOCALE_H=config/locale/gnu/c_locale.h
3112 CLOCALE_CC=config/locale/gnu/c_locale.cc
3113 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3114 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3115 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3116 CMESSAGES_H=config/locale/gnu/messages_members.h
3117 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3118 CMONEY_CC=config/locale/gnu/monetary_members.cc
3119 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3120 CTIME_CC=config/locale/gnu/time_members.cc
3122 xieee_1003.1-2001)
3123 echo "$ac_t""generic" 1>&6
3125 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3126 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3127 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3128 CCOLLATE_CC=config/locale/generic/collate_members.cc
3129 CCTYPE_CC=config/locale/generic/ctype_members.cc
3130 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3131 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3132 CMONEY_CC=config/locale/generic/monetary_members.cc
3133 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3134 CTIME_CC=config/locale/generic/time_members.cc
3137 echo "$enable_clocale is an unknown locale package" 1>&2
3138 exit 1
3140 esac
3142 # This is where the testsuite looks for locale catalogs, using the
3143 # -DLOCALEDIR define during testsuite compilation.
3144 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3159 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3160 if test "${enable_c_mbchar+set}" = set; then
3161 enableval="$enable_c_mbchar"
3162 case "$enableval" in
3163 yes) enable_c_mbchar=yes ;;
3164 no) enable_c_mbchar=no ;;
3165 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3166 esac
3167 else
3168 enable_c_mbchar=yes
3172 # Check whether --enable-c99 or --disable-c99 was given.
3173 if test "${enable_c99+set}" = set; then
3174 enableval="$enable_c99"
3175 case "$enableval" in
3176 yes) enable_c99=yes ;;
3177 no) enable_c99=no ;;
3178 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3179 esac
3180 else
3181 enable_c99=yes
3185 ac_ext=C
3186 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3187 ac_cpp='$CXXCPP $CPPFLAGS'
3188 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3189 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3190 cross_compiling=$ac_cv_prog_cxx_cross
3193 # Check for the existence of <math.h> functions used if C99 is enabled.
3194 ac_c99_math=yes;
3195 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3196 echo "configure:3197: checking for ISO C99 support in <math.h>" >&5
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3200 #include <math.h>
3201 int main() {
3202 fpclassify(0.0);
3203 ; return 0; }
3205 if { (eval echo configure:3206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3207 else
3208 echo "configure: failed program was:" >&5
3209 cat conftest.$ac_ext >&5
3210 rm -rf conftest*
3211 ac_c99_math=no
3213 rm -f conftest*
3214 cat > conftest.$ac_ext <<EOF
3215 #line 3216 "configure"
3216 #include "confdefs.h"
3217 #include <math.h>
3218 int main() {
3219 isfinite(0.0);
3220 ; return 0; }
3222 if { (eval echo configure:3223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3224 else
3225 echo "configure: failed program was:" >&5
3226 cat conftest.$ac_ext >&5
3227 rm -rf conftest*
3228 ac_c99_math=no
3230 rm -f conftest*
3231 cat > conftest.$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3234 #include <math.h>
3235 int main() {
3236 isinf(0.0);
3237 ; return 0; }
3239 if { (eval echo configure:3240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3241 else
3242 echo "configure: failed program was:" >&5
3243 cat conftest.$ac_ext >&5
3244 rm -rf conftest*
3245 ac_c99_math=no
3247 rm -f conftest*
3248 cat > conftest.$ac_ext <<EOF
3249 #line 3250 "configure"
3250 #include "confdefs.h"
3251 #include <math.h>
3252 int main() {
3253 isnan(0.0);
3254 ; return 0; }
3256 if { (eval echo configure:3257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3258 else
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3261 rm -rf conftest*
3262 ac_c99_math=no
3264 rm -f conftest*
3265 cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 #include <math.h>
3269 int main() {
3270 isnormal(0.0);
3271 ; return 0; }
3273 if { (eval echo configure:3274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3275 else
3276 echo "configure: failed program was:" >&5
3277 cat conftest.$ac_ext >&5
3278 rm -rf conftest*
3279 ac_c99_math=no
3281 rm -f conftest*
3282 cat > conftest.$ac_ext <<EOF
3283 #line 3284 "configure"
3284 #include "confdefs.h"
3285 #include <math.h>
3286 int main() {
3287 signbit(0.0);
3288 ; return 0; }
3290 if { (eval echo configure:3291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3292 else
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3295 rm -rf conftest*
3296 ac_c99_math=no
3298 rm -f conftest*
3299 cat > conftest.$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3302 #include <math.h>
3303 int main() {
3304 isgreater(0.0,0.0);
3305 ; return 0; }
3307 if { (eval echo configure:3308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3309 else
3310 echo "configure: failed program was:" >&5
3311 cat conftest.$ac_ext >&5
3312 rm -rf conftest*
3313 ac_c99_math=no
3315 rm -f conftest*
3316 cat > conftest.$ac_ext <<EOF
3317 #line 3318 "configure"
3318 #include "confdefs.h"
3319 #include <math.h>
3320 int main() {
3321 isgreaterequal(0.0,0.0);
3322 ; return 0; }
3324 if { (eval echo configure:3325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3326 else
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3329 rm -rf conftest*
3330 ac_c99_math=no
3332 rm -f conftest*
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 #include <math.h>
3337 int main() {
3338 isless(0.0,0.0);
3339 ; return 0; }
3341 if { (eval echo configure:3342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3343 else
3344 echo "configure: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3346 rm -rf conftest*
3347 ac_c99_math=no
3349 rm -f conftest*
3350 cat > conftest.$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3353 #include <math.h>
3354 int main() {
3355 islessequal(0.0,0.0);
3356 ; return 0; }
3358 if { (eval echo configure:3359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3360 else
3361 echo "configure: failed program was:" >&5
3362 cat conftest.$ac_ext >&5
3363 rm -rf conftest*
3364 ac_c99_math=no
3366 rm -f conftest*
3367 cat > conftest.$ac_ext <<EOF
3368 #line 3369 "configure"
3369 #include "confdefs.h"
3370 #include <math.h>
3371 int main() {
3372 islessgreater(0.0,0.0);
3373 ; return 0; }
3375 if { (eval echo configure:3376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3377 else
3378 echo "configure: failed program was:" >&5
3379 cat conftest.$ac_ext >&5
3380 rm -rf conftest*
3381 ac_c99_math=no
3383 rm -f conftest*
3384 cat > conftest.$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3387 #include <math.h>
3388 int main() {
3389 isunordered(0.0,0.0);
3390 ; return 0; }
3392 if { (eval echo configure:3393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3394 else
3395 echo "configure: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3397 rm -rf conftest*
3398 ac_c99_math=no
3400 rm -f conftest*
3401 echo "$ac_t""$ac_c99_math" 1>&6
3403 # Check for the existence in <stdio.h> of vscanf, et. al.
3404 ac_c99_stdio=yes;
3405 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3406 echo "configure:3407: checking for ISO C99 support in <stdio.h>" >&5
3407 cat > conftest.$ac_ext <<EOF
3408 #line 3409 "configure"
3409 #include "confdefs.h"
3410 #include <stdio.h>
3411 int main() {
3412 snprintf("12", 0, "%i");
3413 ; return 0; }
3415 if { (eval echo configure:3416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3417 else
3418 echo "configure: failed program was:" >&5
3419 cat conftest.$ac_ext >&5
3420 rm -rf conftest*
3421 ac_c99_stdio=no
3423 rm -f conftest*
3424 cat > conftest.$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3427 #include <stdio.h>
3428 #include <stdarg.h>
3429 void foo(char* fmt, ...)
3430 {va_list args; va_start(args, fmt);
3431 vfscanf(stderr, "%i", args);}
3432 int main() {
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_stdio=no
3444 rm -f conftest*
3445 cat > conftest.$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3448 #include <stdio.h>
3449 #include <stdarg.h>
3450 void foo(char* fmt, ...)
3451 {va_list args; va_start(args, fmt);
3452 vscanf("%i", args);}
3453 int main() {
3455 ; return 0; }
3457 if { (eval echo configure:3458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3459 else
3460 echo "configure: failed program was:" >&5
3461 cat conftest.$ac_ext >&5
3462 rm -rf conftest*
3463 ac_c99_stdio=no
3465 rm -f conftest*
3466 cat > conftest.$ac_ext <<EOF
3467 #line 3468 "configure"
3468 #include "confdefs.h"
3469 #include <stdio.h>
3470 #include <stdarg.h>
3471 void foo(char* fmt, ...)
3472 {va_list args; va_start(args, fmt);
3473 vsnprintf(fmt, 0, "%i", args);}
3474 int main() {
3476 ; return 0; }
3478 if { (eval echo configure:3479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3480 else
3481 echo "configure: failed program was:" >&5
3482 cat conftest.$ac_ext >&5
3483 rm -rf conftest*
3484 ac_c99_stdio=no
3486 rm -f conftest*
3487 cat > conftest.$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3490 #include <stdio.h>
3491 #include <stdarg.h>
3492 void foo(char* fmt, ...)
3493 {va_list args; va_start(args, fmt);
3494 vsscanf(fmt, "%i", args);}
3495 int main() {
3497 ; return 0; }
3499 if { (eval echo configure:3500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3501 else
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 rm -rf conftest*
3505 ac_c99_stdio=no
3507 rm -f conftest*
3508 echo "$ac_t""$ac_c99_stdio" 1>&6
3510 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3511 ac_c99_stdlib=yes;
3512 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3513 echo "configure:3514: checking for lldiv_t declaration" >&5
3514 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3516 else
3518 cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 #include <stdlib.h>
3522 int main() {
3523 lldiv_t mydivt;
3524 ; return 0; }
3526 if { (eval echo configure:3527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3527 rm -rf conftest*
3528 ac_c99_lldiv_t=yes
3529 else
3530 echo "configure: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3532 rm -rf conftest*
3533 ac_c99_lldiv_t=no
3535 rm -f conftest*
3539 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3541 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3542 echo "configure:3543: checking for ISO C99 support in <stdlib.h>" >&5
3543 cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 #include <stdlib.h>
3547 int main() {
3548 char* tmp; strtof("gnu", &tmp);
3549 ; return 0; }
3551 if { (eval echo configure:3552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3553 else
3554 echo "configure: failed program was:" >&5
3555 cat conftest.$ac_ext >&5
3556 rm -rf conftest*
3557 ac_c99_stdlib=no
3559 rm -f conftest*
3560 cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 #include <stdlib.h>
3564 int main() {
3565 char* tmp; strtold("gnu", &tmp);
3566 ; return 0; }
3568 if { (eval echo configure:3569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3570 else
3571 echo "configure: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3573 rm -rf conftest*
3574 ac_c99_stdlib=no
3576 rm -f conftest*
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3580 #include <stdlib.h>
3581 int main() {
3582 llabs(10);
3583 ; return 0; }
3585 if { (eval echo configure:3586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3587 else
3588 echo "configure: failed program was:" >&5
3589 cat conftest.$ac_ext >&5
3590 rm -rf conftest*
3591 ac_c99_stdlib=no
3593 rm -f conftest*
3594 cat > conftest.$ac_ext <<EOF
3595 #line 3596 "configure"
3596 #include "confdefs.h"
3597 #include <stdlib.h>
3598 int main() {
3599 lldiv(10,1);
3600 ; return 0; }
3602 if { (eval echo configure:3603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3604 else
3605 echo "configure: failed program was:" >&5
3606 cat conftest.$ac_ext >&5
3607 rm -rf conftest*
3608 ac_c99_stdlib=no
3610 rm -f conftest*
3611 cat > conftest.$ac_ext <<EOF
3612 #line 3613 "configure"
3613 #include "confdefs.h"
3614 #include <stdlib.h>
3615 int main() {
3616 atoll("10");
3617 ; return 0; }
3619 if { (eval echo configure:3620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3621 else
3622 echo "configure: failed program was:" >&5
3623 cat conftest.$ac_ext >&5
3624 rm -rf conftest*
3625 ac_c99_stdlib=no
3627 rm -f conftest*
3628 cat > conftest.$ac_ext <<EOF
3629 #line 3630 "configure"
3630 #include "confdefs.h"
3631 #include <stdlib.h>
3632 int main() {
3633 _Exit(0);
3634 ; return 0; }
3636 if { (eval echo configure:3637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3638 else
3639 echo "configure: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
3641 rm -rf conftest*
3642 ac_c99_stdlib=no
3644 rm -f conftest*
3645 if test x"$ac_c99_lldiv_t" = x"no"; then
3646 ac_c99_stdlib=no;
3647 fi;
3648 echo "$ac_t""$ac_c99_stdlib" 1>&6
3650 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3651 # XXX the wchar.h checks should be rolled into the general C99 bits.
3652 ac_c99_wchar=yes;
3653 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3654 echo "configure:3655: checking for additional ISO C99 support in <wchar.h>" >&5
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 #include <wchar.h>
3659 int main() {
3660 wcstold(L"10.0", NULL);
3661 ; return 0; }
3663 if { (eval echo configure:3664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3665 else
3666 echo "configure: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3668 rm -rf conftest*
3669 ac_c99_wchar=no
3671 rm -f conftest*
3672 cat > conftest.$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3675 #include <wchar.h>
3676 int main() {
3677 wcstoll(L"10", NULL, 10);
3678 ; return 0; }
3680 if { (eval echo configure:3681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3682 else
3683 echo "configure: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3685 rm -rf conftest*
3686 ac_c99_wchar=no
3688 rm -f conftest*
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692 #include <wchar.h>
3693 int main() {
3694 wcstoull(L"10", NULL, 10);
3695 ; return 0; }
3697 if { (eval echo configure:3698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3699 else
3700 echo "configure: failed program was:" >&5
3701 cat conftest.$ac_ext >&5
3702 rm -rf conftest*
3703 ac_c99_wchar=no
3705 rm -f conftest*
3706 echo "$ac_t""$ac_c99_wchar" 1>&6
3708 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3709 echo "configure:3710: checking for enabled ISO C99 support" >&5
3710 if test x"$ac_c99_math" = x"no" ||
3711 test x"$ac_c99_stdio" = x"no" ||
3712 test x"$ac_c99_stdlib" = x"no" ||
3713 test x"$ac_c99_wchar" = x"no"; then
3714 enable_c99=no;
3715 fi;
3716 echo "$ac_t""$enable_c99" 1>&6
3718 # Option parsed, now set things appropriately
3719 if test x"$enable_c99" = x"yes"; then
3720 cat >> confdefs.h <<\EOF
3721 #define _GLIBCPP_USE_C99 1
3726 ac_ext=c
3727 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3730 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3731 cross_compiling=$ac_cv_prog_cc_cross
3735 # Check whether --enable-long-long or --disable-long-long was given.
3736 if test "${enable_long_long+set}" = set; then
3737 enableval="$enable_long_long"
3738 case "$enableval" in
3739 yes) enable_long_long=yes ;;
3740 no) enable_long_long=no ;;
3741 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3742 esac
3743 else
3744 enable_long_long=yes
3748 ac_ext=C
3749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3750 ac_cpp='$CXXCPP $CPPFLAGS'
3751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3753 cross_compiling=$ac_cv_prog_cxx_cross
3756 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3757 echo "configure:3758: checking for enabled long long I/O support" >&5
3758 # iostreams require strtoll, strtoull to compile
3759 cat > conftest.$ac_ext <<EOF
3760 #line 3761 "configure"
3761 #include "confdefs.h"
3762 #include <stdlib.h>
3763 int main() {
3764 char* tmp; strtoll("gnu", &tmp, 10);
3765 ; return 0; }
3767 if { (eval echo configure:3768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3769 else
3770 echo "configure: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3772 rm -rf conftest*
3773 enable_long_long=no
3775 rm -f conftest*
3776 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3779 #include <stdlib.h>
3780 int main() {
3781 char* tmp; strtoull("gnu", &tmp, 10);
3782 ; return 0; }
3784 if { (eval echo configure:3785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3786 else
3787 echo "configure: failed program was:" >&5
3788 cat conftest.$ac_ext >&5
3789 rm -rf conftest*
3790 enable_long_long=no
3792 rm -f conftest*
3794 # Option parsed, now set things appropriately
3795 if test x"$enable_long_long" = xyes; then
3796 cat >> confdefs.h <<\EOF
3797 #define _GLIBCPP_USE_LONG_LONG 1
3801 echo "$ac_t""$enable_long_long" 1>&6
3803 ac_ext=c
3804 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3805 ac_cpp='$CPP $CPPFLAGS'
3806 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3807 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3808 cross_compiling=$ac_cv_prog_cc_cross
3811 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3812 echo "configure:3813: checking for c header strategy to use" >&5
3813 # Check whether --enable-cheaders or --disable-cheaders was given.
3814 if test "${enable_cheaders+set}" = set; then
3815 enableval="$enable_cheaders"
3817 case "$enableval" in
3819 enable_cheaders=c
3821 c_std)
3822 enable_cheaders=c_std
3824 c_shadow)
3825 enable_cheaders=c_shadow
3827 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3829 esac
3830 else
3831 enable_cheaders=c_std
3834 echo "$ac_t""$enable_cheaders" 1>&6
3836 case "$enable_cheaders" in
3837 c_shadow)
3838 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3840 c_std)
3841 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3844 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3846 esac
3851 if test "$enable_cheaders" = c; then
3852 GLIBCPP_C_HEADERS_C_TRUE=
3853 GLIBCPP_C_HEADERS_C_FALSE='#'
3854 else
3855 GLIBCPP_C_HEADERS_C_TRUE='#'
3856 GLIBCPP_C_HEADERS_C_FALSE=
3860 if test "$enable_cheaders" = c_std; then
3861 GLIBCPP_C_HEADERS_C_STD_TRUE=
3862 GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3863 else
3864 GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3865 GLIBCPP_C_HEADERS_C_STD_FALSE=
3869 if test "$c_compatibility" = yes; then
3870 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3871 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3872 else
3873 GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3874 GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3878 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3879 echo "configure:3880: checking for thread model used by GCC" >&5
3880 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3881 echo "$ac_t""$target_thread_file" 1>&6
3883 if test $target_thread_file != single; then
3884 cat >> confdefs.h <<\EOF
3885 #define HAVE_GTHR_DEFAULT 1
3888 cat >> confdefs.h <<\EOF
3889 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3894 glibcpp_thread_h=gthr-$target_thread_file.h
3897 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3898 if test "${enable_cxx_flags+set}" = set; then
3899 enableval="$enable_cxx_flags"
3900 case "x$enableval" in
3901 xyes)
3902 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3903 xno|x)
3904 enable_cxx_flags='' ;;
3906 enable_cxx_flags="$enableval" ;;
3907 esac
3908 else
3909 enable_cxx_flags='none'
3913 if test "$enable_cxx_flags" = "none"; then
3914 enable_cxx_flags='';
3917 if test -n "$enable_cxx_flags"; then
3918 for f in $enable_cxx_flags; do
3919 case "$f" in
3920 -fhonor-std) ;;
3921 -*) ;;
3922 *) # and we're trying to pass /what/ exactly?
3923 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3924 esac
3925 done
3927 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3931 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3932 echo "configure:3933: checking for exception model to use" >&5
3934 ac_ext=C
3935 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3936 ac_cpp='$CXXCPP $CPPFLAGS'
3937 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3938 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3939 cross_compiling=$ac_cv_prog_cxx_cross
3941 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3942 if test "${enable_sjlj_exceptions+set}" = set; then
3943 enableval="$enable_sjlj_exceptions"
3945 else
3946 cat > conftest.$ac_ext << EOF
3947 #line 3948 "configure"
3948 struct S { ~S(); };
3949 void bar();
3950 void foo()
3952 S s;
3953 bar();
3956 old_CXXFLAGS="$CXXFLAGS"
3957 CXXFLAGS=-S
3958 if { (eval echo configure:3959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3959 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3960 enable_sjlj_exceptions=yes
3961 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3962 enable_sjlj_exceptions=no
3965 CXXFLAGS="$old_CXXFLAGS"
3966 rm -f conftest*
3969 if test x$enable_sjlj_exceptions = xyes; then
3970 cat >> confdefs.h <<\EOF
3971 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3974 ac_exception_model_name=sjlj
3975 elif test x$enable_sjlj_exceptions = xno; then
3976 ac_exception_model_name="call frame"
3977 else
3978 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3980 ac_ext=c
3981 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3984 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3985 cross_compiling=$ac_cv_prog_cc_cross
3987 echo "$ac_t""$ac_exception_model_name" 1>&6
3990 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
3991 echo "configure:3992: checking for use of libunwind" >&5
3992 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
3993 if test "${enable_libunwind_exceptions+set}" = set; then
3994 enableval="$enable_libunwind_exceptions"
3995 use_libunwind_exceptions=$enableval
3996 else
3997 use_libunwind_exceptions=no
4000 echo "$ac_t""$use_libunwind_exceptions" 1>&6
4001 if test x"$use_libunwind_exceptions" = xyes; then
4002 LIBUNWIND_FLAG="-lunwind"
4003 else
4004 LIBUNWIND_FLAG=""
4008 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4009 if test "${enable_concept_checks+set}" = set; then
4010 enableval="$enable_concept_checks"
4011 case "$enableval" in
4012 yes) enable_concept_checks=yes ;;
4013 no) enable_concept_checks=no ;;
4014 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4015 esac
4016 else
4017 enable_concept_checks=no
4019 if test x"$enable_concept_checks" = xyes; then
4020 cat >> confdefs.h <<\EOF
4021 #define _GLIBCPP_CONCEPT_CHECKS 1
4027 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4028 for ac_hdr in string.h stdlib.h
4030 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4031 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4032 echo "configure:4033: checking for $ac_hdr" >&5
4033 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4034 echo $ac_n "(cached) $ac_c" 1>&6
4035 else
4036 cat > conftest.$ac_ext <<EOF
4037 #line 4038 "configure"
4038 #include "confdefs.h"
4039 #include <$ac_hdr>
4041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4042 { (eval echo configure:4043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4044 if test -z "$ac_err"; then
4045 rm -rf conftest*
4046 eval "ac_cv_header_$ac_safe=yes"
4047 else
4048 echo "$ac_err" >&5
4049 echo "configure: failed program was:" >&5
4050 cat conftest.$ac_ext >&5
4051 rm -rf conftest*
4052 eval "ac_cv_header_$ac_safe=no"
4054 rm -f conftest*
4056 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4057 echo "$ac_t""yes" 1>&6
4058 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4059 cat >> confdefs.h <<EOF
4060 #define $ac_tr_hdr 1
4063 else
4064 echo "$ac_t""no" 1>&6
4066 done
4069 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4071 # We are being configured with some form of cross compiler.
4072 GLIBCPP_IS_CROSS_COMPILING=1
4074 # This lets us hard-code the functionality we know we'll have in the cross
4075 # target environment. "Let" is a sugar-coated word placed on an especially
4076 # dull and tedious hack, actually.
4078 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4079 # that involve linking, can't be used:
4080 # "cannot open sim-crt0.o"
4081 # "cannot open crt0.o"
4082 # etc. All this is because there currently exists no unified, consistent
4083 # way for top level CC information to be passed down to target directories:
4084 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4085 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4086 # crosses can be removed.
4088 # If Canadian cross, then don't pick up tools from the build directory.
4089 # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4090 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4091 CANADIAN=yes
4092 else
4093 CANADIAN=no
4096 # Construct crosses by hand, eliminating bits that need ld...
4097 # GLIBCPP_CHECK_COMPILER_FEATURES
4098 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4099 # GLIBCPP_CHECK_MATH_SUPPORT
4101 case "$target_alias" in
4102 *-linux*)
4103 os_include_dir="os/gnu-linux"
4104 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4105 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4106 fp.h locale.h float.h inttypes.h
4108 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4109 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4110 echo "configure:4111: checking for $ac_hdr" >&5
4111 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4113 else
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4117 #include <$ac_hdr>
4119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4120 { (eval echo configure:4121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4122 if test -z "$ac_err"; then
4123 rm -rf conftest*
4124 eval "ac_cv_header_$ac_safe=yes"
4125 else
4126 echo "$ac_err" >&5
4127 echo "configure: failed program was:" >&5
4128 cat conftest.$ac_ext >&5
4129 rm -rf conftest*
4130 eval "ac_cv_header_$ac_safe=no"
4132 rm -f conftest*
4134 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4135 echo "$ac_t""yes" 1>&6
4136 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4137 cat >> confdefs.h <<EOF
4138 #define $ac_tr_hdr 1
4141 else
4142 echo "$ac_t""no" 1>&6
4144 done
4146 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4149 # If we're not using GNU ld, then there's no point in even trying these
4150 # tests. Check for that first. We should have already tested for gld
4151 # by now (in libtool), but require it now just to be safe...
4152 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4153 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4156 # The name set by libtool depends on the version of libtool. Shame on us
4157 # for depending on an impl detail, but c'est la vie. Older versions used
4158 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4159 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4160 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4161 # set (hence we're using an older libtool), then set it.
4162 if test x${with_gnu_ld+set} != xset; then
4163 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4164 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4165 with_gnu_ld=no
4166 else
4167 with_gnu_ld=$ac_cv_prog_gnu_ld
4171 # Start by getting the version number. I think the libtool test already
4172 # does some of this, but throws away the result.
4174 ldver=`$LD --version 2>/dev/null | head -1 | \
4175 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4177 glibcpp_gnu_ld_version=`echo $ldver | \
4178 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4180 # Set --gc-sections.
4181 if test "$with_gnu_ld" = "notbroken"; then
4182 # GNU ld it is! Joy and bunny rabbits!
4184 # All these tests are for C++; save the language and the compiler flags.
4185 # Need to do this so that g++ won't try to link in libstdc++
4186 ac_test_CFLAGS="${CFLAGS+set}"
4187 ac_save_CFLAGS="$CFLAGS"
4188 CFLAGS='-x c++ -Wl,--gc-sections'
4190 # Check for -Wl,--gc-sections
4191 # XXX This test is broken at the moment, as symbols required for
4192 # linking are now in libsupc++ (not built yet.....). In addition,
4193 # this test has cored on solaris in the past. In addition,
4194 # --gc-sections doesn't really work at the moment (keeps on discarding
4195 # used sections, first .eh_frame and now some of the glibc sections for
4196 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4197 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4198 echo "configure:4199: checking for ld that supports -Wl,--gc-sections" >&5
4199 if test "$cross_compiling" = yes; then
4200 ac_sectionLDflags=yes
4201 else
4202 cat > conftest.$ac_ext <<EOF
4203 #line 4204 "configure"
4204 #include "confdefs.h"
4206 int main(void)
4208 try { throw 1; }
4209 catch (...) { };
4210 return 0;
4214 if { (eval echo configure:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4215 then
4216 ac_sectionLDflags=yes
4217 else
4218 echo "configure: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4220 rm -fr conftest*
4221 ac_sectionLDflags=no
4223 rm -fr conftest*
4226 if test "$ac_test_CFLAGS" = set; then
4227 CFLAGS="$ac_save_CFLAGS"
4228 else
4229 # this is the suspicious part
4230 CFLAGS=''
4232 if test "$ac_sectionLDflags" = "yes"; then
4233 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4235 echo "$ac_t""$ac_sectionLDflags" 1>&6
4238 # Set linker optimization flags.
4239 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4240 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4247 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4248 echo "configure:4249: checking for main in -lm" >&5
4249 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4251 echo $ac_n "(cached) $ac_c" 1>&6
4252 else
4253 ac_save_LIBS="$LIBS"
4254 LIBS="-lm $LIBS"
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4259 int main() {
4260 main()
4261 ; return 0; }
4263 if { (eval echo configure:4264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4264 rm -rf conftest*
4265 eval "ac_cv_lib_$ac_lib_var=yes"
4266 else
4267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4269 rm -rf conftest*
4270 eval "ac_cv_lib_$ac_lib_var=no"
4272 rm -f conftest*
4273 LIBS="$ac_save_LIBS"
4276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4277 echo "$ac_t""yes" 1>&6
4278 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4279 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4280 cat >> confdefs.h <<EOF
4281 #define $ac_tr_lib 1
4284 LIBS="-lm $LIBS"
4286 else
4287 echo "$ac_t""no" 1>&6
4290 for ac_func in nan copysignf
4292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4293 echo "configure:4294: checking for $ac_func" >&5
4294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4295 echo $ac_n "(cached) $ac_c" 1>&6
4296 else
4297 cat > conftest.$ac_ext <<EOF
4298 #line 4299 "configure"
4299 #include "confdefs.h"
4300 /* System header to define __stub macros and hopefully few prototypes,
4301 which can conflict with char $ac_func(); below. */
4302 #include <assert.h>
4303 /* Override any gcc2 internal prototype to avoid an error. */
4304 /* We use char because int might match the return type of a gcc2
4305 builtin and then its argument prototype would still apply. */
4306 char $ac_func();
4308 int main() {
4310 /* The GNU C library defines this for functions which it implements
4311 to always fail with ENOSYS. Some functions are actually named
4312 something starting with __ and the normal name is an alias. */
4313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4314 choke me
4315 #else
4316 $ac_func();
4317 #endif
4319 ; return 0; }
4321 if { (eval echo configure:4322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4322 rm -rf conftest*
4323 eval "ac_cv_func_$ac_func=yes"
4324 else
4325 echo "configure: failed program was:" >&5
4326 cat conftest.$ac_ext >&5
4327 rm -rf conftest*
4328 eval "ac_cv_func_$ac_func=no"
4330 rm -f conftest*
4333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4334 echo "$ac_t""yes" 1>&6
4335 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4336 cat >> confdefs.h <<EOF
4337 #define $ac_tr_func 1
4340 else
4341 echo "$ac_t""no" 1>&6
4342 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4344 done
4347 for ac_func in __signbit
4349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4350 echo "configure:4351: checking for $ac_func" >&5
4351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4353 else
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4357 /* System header to define __stub macros and hopefully few prototypes,
4358 which can conflict with char $ac_func(); below. */
4359 #include <assert.h>
4360 /* Override any gcc2 internal prototype to avoid an error. */
4361 /* We use char because int might match the return type of a gcc2
4362 builtin and then its argument prototype would still apply. */
4363 char $ac_func();
4365 int main() {
4367 /* The GNU C library defines this for functions which it implements
4368 to always fail with ENOSYS. Some functions are actually named
4369 something starting with __ and the normal name is an alias. */
4370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4371 choke me
4372 #else
4373 $ac_func();
4374 #endif
4376 ; return 0; }
4378 if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4379 rm -rf conftest*
4380 eval "ac_cv_func_$ac_func=yes"
4381 else
4382 echo "configure: failed program was:" >&5
4383 cat conftest.$ac_ext >&5
4384 rm -rf conftest*
4385 eval "ac_cv_func_$ac_func=no"
4387 rm -f conftest*
4390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4393 cat >> confdefs.h <<EOF
4394 #define $ac_tr_func 1
4397 else
4398 echo "$ac_t""no" 1>&6
4399 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4401 done
4403 for ac_func in __signbitf
4405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4406 echo "configure:4407: checking for $ac_func" >&5
4407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4409 else
4410 cat > conftest.$ac_ext <<EOF
4411 #line 4412 "configure"
4412 #include "confdefs.h"
4413 /* System header to define __stub macros and hopefully few prototypes,
4414 which can conflict with char $ac_func(); below. */
4415 #include <assert.h>
4416 /* Override any gcc2 internal prototype to avoid an error. */
4417 /* We use char because int might match the return type of a gcc2
4418 builtin and then its argument prototype would still apply. */
4419 char $ac_func();
4421 int main() {
4423 /* The GNU C library defines this for functions which it implements
4424 to always fail with ENOSYS. Some functions are actually named
4425 something starting with __ and the normal name is an alias. */
4426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4427 choke me
4428 #else
4429 $ac_func();
4430 #endif
4432 ; return 0; }
4434 if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4435 rm -rf conftest*
4436 eval "ac_cv_func_$ac_func=yes"
4437 else
4438 echo "configure: failed program was:" >&5
4439 cat conftest.$ac_ext >&5
4440 rm -rf conftest*
4441 eval "ac_cv_func_$ac_func=no"
4443 rm -f conftest*
4446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4447 echo "$ac_t""yes" 1>&6
4448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4449 cat >> confdefs.h <<EOF
4450 #define $ac_tr_func 1
4453 else
4454 echo "$ac_t""no" 1>&6
4455 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4457 done
4460 if test x$ac_cv_func_copysignl = x"yes"; then
4461 for ac_func in __signbitl
4463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4464 echo "configure:4465: checking for $ac_func" >&5
4465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4466 echo $ac_n "(cached) $ac_c" 1>&6
4467 else
4468 cat > conftest.$ac_ext <<EOF
4469 #line 4470 "configure"
4470 #include "confdefs.h"
4471 /* System header to define __stub macros and hopefully few prototypes,
4472 which can conflict with char $ac_func(); below. */
4473 #include <assert.h>
4474 /* Override any gcc2 internal prototype to avoid an error. */
4475 /* We use char because int might match the return type of a gcc2
4476 builtin and then its argument prototype would still apply. */
4477 char $ac_func();
4479 int main() {
4481 /* The GNU C library defines this for functions which it implements
4482 to always fail with ENOSYS. Some functions are actually named
4483 something starting with __ and the normal name is an alias. */
4484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4485 choke me
4486 #else
4487 $ac_func();
4488 #endif
4490 ; return 0; }
4492 if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4493 rm -rf conftest*
4494 eval "ac_cv_func_$ac_func=yes"
4495 else
4496 echo "configure: failed program was:" >&5
4497 cat conftest.$ac_ext >&5
4498 rm -rf conftest*
4499 eval "ac_cv_func_$ac_func=no"
4501 rm -f conftest*
4504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4505 echo "$ac_t""yes" 1>&6
4506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4507 cat >> confdefs.h <<EOF
4508 #define $ac_tr_func 1
4511 else
4512 echo "$ac_t""no" 1>&6
4513 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4515 done
4523 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4524 echo "configure:4525: checking for mbstate_t" >&5
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4528 #include <wchar.h>
4529 int main() {
4530 mbstate_t teststate;
4531 ; return 0; }
4533 if { (eval echo configure:4534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4534 rm -rf conftest*
4535 have_mbstate_t=yes
4536 else
4537 echo "configure: failed program was:" >&5
4538 cat conftest.$ac_ext >&5
4539 rm -rf conftest*
4540 have_mbstate_t=no
4542 rm -f conftest*
4543 echo "$ac_t""$have_mbstate_t" 1>&6
4544 if test x"$have_mbstate_t" = xyes; then
4545 cat >> confdefs.h <<\EOF
4546 #define HAVE_MBSTATE_T 1
4551 for ac_hdr in wchar.h
4553 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4555 echo "configure:4556: checking for $ac_hdr" >&5
4556 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4558 else
4559 cat > conftest.$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4562 #include <$ac_hdr>
4564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4565 { (eval echo configure:4566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4567 if test -z "$ac_err"; then
4568 rm -rf conftest*
4569 eval "ac_cv_header_$ac_safe=yes"
4570 else
4571 echo "$ac_err" >&5
4572 echo "configure: failed program was:" >&5
4573 cat conftest.$ac_ext >&5
4574 rm -rf conftest*
4575 eval "ac_cv_header_$ac_safe=no"
4577 rm -f conftest*
4579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4580 echo "$ac_t""yes" 1>&6
4581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4582 cat >> confdefs.h <<EOF
4583 #define $ac_tr_hdr 1
4585 ac_has_wchar_h=yes
4586 else
4587 echo "$ac_t""no" 1>&6
4588 ac_has_wchar_h=no
4590 done
4592 for ac_hdr in wctype.h
4594 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4595 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4596 echo "configure:4597: checking for $ac_hdr" >&5
4597 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4598 echo $ac_n "(cached) $ac_c" 1>&6
4599 else
4600 cat > conftest.$ac_ext <<EOF
4601 #line 4602 "configure"
4602 #include "confdefs.h"
4603 #include <$ac_hdr>
4605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4606 { (eval echo configure:4607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4608 if test -z "$ac_err"; then
4609 rm -rf conftest*
4610 eval "ac_cv_header_$ac_safe=yes"
4611 else
4612 echo "$ac_err" >&5
4613 echo "configure: failed program was:" >&5
4614 cat conftest.$ac_ext >&5
4615 rm -rf conftest*
4616 eval "ac_cv_header_$ac_safe=no"
4618 rm -f conftest*
4620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4621 echo "$ac_t""yes" 1>&6
4622 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4623 cat >> confdefs.h <<EOF
4624 #define $ac_tr_hdr 1
4626 ac_has_wctype_h=yes
4627 else
4628 echo "$ac_t""no" 1>&6
4629 ac_has_wctype_h=no
4631 done
4634 if test x"$ac_has_wchar_h" = xyes &&
4635 test x"$ac_has_wctype_h" = xyes &&
4636 test x"$enable_c_mbchar" != xno; then
4638 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4639 echo "configure:4640: checking for WCHAR_MIN and WCHAR_MAX" >&5
4640 cat > conftest.$ac_ext <<EOF
4641 #line 4642 "configure"
4642 #include "confdefs.h"
4643 #include <wchar.h>
4644 int main() {
4645 int i = WCHAR_MIN; int j = WCHAR_MAX;
4646 ; return 0; }
4648 if { (eval echo configure:4649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4649 rm -rf conftest*
4650 has_wchar_minmax=yes
4651 else
4652 echo "configure: failed program was:" >&5
4653 cat conftest.$ac_ext >&5
4654 rm -rf conftest*
4655 has_wchar_minmax=no
4657 rm -f conftest*
4658 echo "$ac_t""$has_wchar_minmax" 1>&6
4660 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4661 echo "configure:4662: checking for WEOF" >&5
4662 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4666 #include <wchar.h>
4667 #include <stddef.h>
4668 int main() {
4669 wint_t i = WEOF;
4670 ; return 0; }
4672 if { (eval echo configure:4673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4673 rm -rf conftest*
4674 has_weof=yes
4675 else
4676 echo "configure: failed program was:" >&5
4677 cat conftest.$ac_ext >&5
4678 rm -rf conftest*
4679 has_weof=no
4681 rm -f conftest*
4682 echo "$ac_t""$has_weof" 1>&6
4684 ac_wfuncs=yes
4685 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4688 echo "configure:4689: checking for $ac_func" >&5
4689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4690 echo $ac_n "(cached) $ac_c" 1>&6
4691 else
4692 cat > conftest.$ac_ext <<EOF
4693 #line 4694 "configure"
4694 #include "confdefs.h"
4695 /* System header to define __stub macros and hopefully few prototypes,
4696 which can conflict with char $ac_func(); below. */
4697 #include <assert.h>
4698 /* Override any gcc2 internal prototype to avoid an error. */
4699 /* We use char because int might match the return type of a gcc2
4700 builtin and then its argument prototype would still apply. */
4701 char $ac_func();
4703 int main() {
4705 /* The GNU C library defines this for functions which it implements
4706 to always fail with ENOSYS. Some functions are actually named
4707 something starting with __ and the normal name is an alias. */
4708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4709 choke me
4710 #else
4711 $ac_func();
4712 #endif
4714 ; return 0; }
4716 if { (eval echo configure:4717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4717 rm -rf conftest*
4718 eval "ac_cv_func_$ac_func=yes"
4719 else
4720 echo "configure: failed program was:" >&5
4721 cat conftest.$ac_ext >&5
4722 rm -rf conftest*
4723 eval "ac_cv_func_$ac_func=no"
4725 rm -f conftest*
4728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4729 echo "$ac_t""yes" 1>&6
4730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4731 cat >> confdefs.h <<EOF
4732 #define $ac_tr_func 1
4735 else
4736 echo "$ac_t""no" 1>&6
4738 ac_wfuncs=no
4740 done
4743 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4744 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4745 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4746 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4747 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4748 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4751 echo "configure:4752: checking for $ac_func" >&5
4752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4754 else
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4758 /* System header to define __stub macros and hopefully few prototypes,
4759 which can conflict with char $ac_func(); below. */
4760 #include <assert.h>
4761 /* Override any gcc2 internal prototype to avoid an error. */
4762 /* We use char because int might match the return type of a gcc2
4763 builtin and then its argument prototype would still apply. */
4764 char $ac_func();
4766 int main() {
4768 /* The GNU C library defines this for functions which it implements
4769 to always fail with ENOSYS. Some functions are actually named
4770 something starting with __ and the normal name is an alias. */
4771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4772 choke me
4773 #else
4774 $ac_func();
4775 #endif
4777 ; return 0; }
4779 if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4780 rm -rf conftest*
4781 eval "ac_cv_func_$ac_func=yes"
4782 else
4783 echo "configure: failed program was:" >&5
4784 cat conftest.$ac_ext >&5
4785 rm -rf conftest*
4786 eval "ac_cv_func_$ac_func=no"
4788 rm -f conftest*
4791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4792 echo "$ac_t""yes" 1>&6
4793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4794 cat >> confdefs.h <<EOF
4795 #define $ac_tr_func 1
4798 else
4799 echo "$ac_t""no" 1>&6
4801 ac_wfuncs=no
4803 done
4806 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4807 echo "configure:4808: checking for ISO C99 wchar_t support" >&5
4808 if test x"$has_weof" = xyes &&
4809 test x"$has_wchar_minmax" = xyes &&
4810 test x"$ac_wfuncs" = xyes; then
4811 ac_isoC99_wchar_t=yes
4812 else
4813 ac_isoC99_wchar_t=no
4815 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4817 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4818 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4819 echo "configure:4820: checking for iconv.h" >&5
4820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4821 echo $ac_n "(cached) $ac_c" 1>&6
4822 else
4823 cat > conftest.$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4826 #include <iconv.h>
4828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4829 { (eval echo configure:4830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4831 if test -z "$ac_err"; then
4832 rm -rf conftest*
4833 eval "ac_cv_header_$ac_safe=yes"
4834 else
4835 echo "$ac_err" >&5
4836 echo "configure: failed program was:" >&5
4837 cat conftest.$ac_ext >&5
4838 rm -rf conftest*
4839 eval "ac_cv_header_$ac_safe=no"
4841 rm -f conftest*
4843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4844 echo "$ac_t""yes" 1>&6
4845 ac_has_iconv_h=yes
4846 else
4847 echo "$ac_t""no" 1>&6
4848 ac_has_iconv_h=no
4851 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4852 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4853 echo "configure:4854: checking for langinfo.h" >&5
4854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4855 echo $ac_n "(cached) $ac_c" 1>&6
4856 else
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4860 #include <langinfo.h>
4862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4863 { (eval echo configure:4864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4865 if test -z "$ac_err"; then
4866 rm -rf conftest*
4867 eval "ac_cv_header_$ac_safe=yes"
4868 else
4869 echo "$ac_err" >&5
4870 echo "configure: failed program was:" >&5
4871 cat conftest.$ac_ext >&5
4872 rm -rf conftest*
4873 eval "ac_cv_header_$ac_safe=no"
4875 rm -f conftest*
4877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4878 echo "$ac_t""yes" 1>&6
4879 ac_has_langinfo_h=yes
4880 else
4881 echo "$ac_t""no" 1>&6
4882 ac_has_langinfo_h=no
4886 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4887 echo "configure:4888: checking for iconv in -liconv" >&5
4888 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4890 echo $ac_n "(cached) $ac_c" 1>&6
4891 else
4892 ac_save_LIBS="$LIBS"
4893 LIBS="-liconv $LIBS"
4894 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4897 /* Override any gcc2 internal prototype to avoid an error. */
4898 /* We use char because int might match the return type of a gcc2
4899 builtin and then its argument prototype would still apply. */
4900 char iconv();
4902 int main() {
4903 iconv()
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_lib_$ac_lib_var=yes"
4909 else
4910 echo "configure: failed program was:" >&5
4911 cat conftest.$ac_ext >&5
4912 rm -rf conftest*
4913 eval "ac_cv_lib_$ac_lib_var=no"
4915 rm -f conftest*
4916 LIBS="$ac_save_LIBS"
4919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4920 echo "$ac_t""yes" 1>&6
4921 libiconv="-liconv"
4922 else
4923 echo "$ac_t""no" 1>&6
4926 ac_save_LIBS="$LIBS"
4927 LIBS="$LIBS $libiconv"
4929 for ac_func in iconv_open iconv_close iconv nl_langinfo
4931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4932 echo "configure:4933: checking for $ac_func" >&5
4933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4934 echo $ac_n "(cached) $ac_c" 1>&6
4935 else
4936 cat > conftest.$ac_ext <<EOF
4937 #line 4938 "configure"
4938 #include "confdefs.h"
4939 /* System header to define __stub macros and hopefully few prototypes,
4940 which can conflict with char $ac_func(); below. */
4941 #include <assert.h>
4942 /* Override any gcc2 internal prototype to avoid an error. */
4943 /* We use char because int might match the return type of a gcc2
4944 builtin and then its argument prototype would still apply. */
4945 char $ac_func();
4947 int main() {
4949 /* The GNU C library defines this for functions which it implements
4950 to always fail with ENOSYS. Some functions are actually named
4951 something starting with __ and the normal name is an alias. */
4952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4953 choke me
4954 #else
4955 $ac_func();
4956 #endif
4958 ; return 0; }
4960 if { (eval echo configure:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4961 rm -rf conftest*
4962 eval "ac_cv_func_$ac_func=yes"
4963 else
4964 echo "configure: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4966 rm -rf conftest*
4967 eval "ac_cv_func_$ac_func=no"
4969 rm -f conftest*
4972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4973 echo "$ac_t""yes" 1>&6
4974 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4975 cat >> confdefs.h <<EOF
4976 #define $ac_tr_func 1
4979 ac_XPG2funcs=yes
4980 else
4981 echo "$ac_t""no" 1>&6
4982 ac_XPG2funcs=no
4984 done
4987 LIBS="$ac_save_LIBS"
4989 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4990 echo "configure:4991: checking for XPG2 wchar_t support" >&5
4991 if test x"$ac_has_iconv_h" = xyes &&
4992 test x"$ac_has_langinfo_h" = xyes &&
4993 test x"$ac_XPG2funcs" = xyes; then
4994 ac_XPG2_wchar_t=yes
4995 else
4996 ac_XPG2_wchar_t=no
4998 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5000 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5001 echo "configure:5002: checking for enabled wchar_t specializations" >&5
5002 if test x"$ac_isoC99_wchar_t" = xyes &&
5003 test x"$ac_XPG2_wchar_t" = xyes; then
5004 cat >> confdefs.h <<\EOF
5005 #define _GLIBCPP_USE_WCHAR_T 1
5008 echo "$ac_t"""yes"" 1>&6
5009 else
5010 echo "$ac_t"""no"" 1>&6
5012 else
5013 echo "configure: warning: wchar_t support disabled." 1>&2
5016 cat >> confdefs.h <<\EOF
5017 #define HAVE_COPYSIGN 1
5020 cat >> confdefs.h <<\EOF
5021 #define HAVE_COPYSIGNF 1
5024 cat >> confdefs.h <<\EOF
5025 #define HAVE_FINITE 1
5028 cat >> confdefs.h <<\EOF
5029 #define HAVE_FINITEF 1
5032 cat >> confdefs.h <<\EOF
5033 #define HAVE_FREXPF 1
5036 cat >> confdefs.h <<\EOF
5037 #define HAVE_HYPOTF 1
5040 cat >> confdefs.h <<\EOF
5041 #define HAVE_ISINF 1
5044 cat >> confdefs.h <<\EOF
5045 #define HAVE_ISINFF 1
5048 cat >> confdefs.h <<\EOF
5049 #define HAVE_ISNAN 1
5052 cat >> confdefs.h <<\EOF
5053 #define HAVE_ISNANF 1
5056 cat >> confdefs.h <<\EOF
5057 #define HAVE_SINCOS 1
5060 cat >> confdefs.h <<\EOF
5061 #define HAVE_SINCOSF 1
5064 if test x"long_double_math_on_this_cpu" = x"yes"; then
5065 cat >> confdefs.h <<\EOF
5066 #define HAVE_FINITEL 1
5069 cat >> confdefs.h <<\EOF
5070 #define HAVE_HYPOTL 1
5073 cat >> confdefs.h <<\EOF
5074 #define HAVE_ISINFL 1
5077 cat >> confdefs.h <<\EOF
5078 #define HAVE_ISNANL 1
5083 *-hpux*)
5084 # Check for available headers.
5085 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5086 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5087 fp.h locale.h float.h inttypes.h
5089 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5090 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5091 echo "configure:5092: checking for $ac_hdr" >&5
5092 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5093 echo $ac_n "(cached) $ac_c" 1>&6
5094 else
5095 cat > conftest.$ac_ext <<EOF
5096 #line 5097 "configure"
5097 #include "confdefs.h"
5098 #include <$ac_hdr>
5100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5101 { (eval echo configure:5102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5102 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5103 if test -z "$ac_err"; then
5104 rm -rf conftest*
5105 eval "ac_cv_header_$ac_safe=yes"
5106 else
5107 echo "$ac_err" >&5
5108 echo "configure: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5110 rm -rf conftest*
5111 eval "ac_cv_header_$ac_safe=no"
5113 rm -f conftest*
5115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5116 echo "$ac_t""yes" 1>&6
5117 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5118 cat >> confdefs.h <<EOF
5119 #define $ac_tr_hdr 1
5122 else
5123 echo "$ac_t""no" 1>&6
5125 done
5127 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5130 # If we're not using GNU ld, then there's no point in even trying these
5131 # tests. Check for that first. We should have already tested for gld
5132 # by now (in libtool), but require it now just to be safe...
5133 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5134 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5137 # The name set by libtool depends on the version of libtool. Shame on us
5138 # for depending on an impl detail, but c'est la vie. Older versions used
5139 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5140 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5141 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5142 # set (hence we're using an older libtool), then set it.
5143 if test x${with_gnu_ld+set} != xset; then
5144 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5145 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5146 with_gnu_ld=no
5147 else
5148 with_gnu_ld=$ac_cv_prog_gnu_ld
5152 # Start by getting the version number. I think the libtool test already
5153 # does some of this, but throws away the result.
5155 ldver=`$LD --version 2>/dev/null | head -1 | \
5156 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5158 glibcpp_gnu_ld_version=`echo $ldver | \
5159 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5161 # Set --gc-sections.
5162 if test "$with_gnu_ld" = "notbroken"; then
5163 # GNU ld it is! Joy and bunny rabbits!
5165 # All these tests are for C++; save the language and the compiler flags.
5166 # Need to do this so that g++ won't try to link in libstdc++
5167 ac_test_CFLAGS="${CFLAGS+set}"
5168 ac_save_CFLAGS="$CFLAGS"
5169 CFLAGS='-x c++ -Wl,--gc-sections'
5171 # Check for -Wl,--gc-sections
5172 # XXX This test is broken at the moment, as symbols required for
5173 # linking are now in libsupc++ (not built yet.....). In addition,
5174 # this test has cored on solaris in the past. In addition,
5175 # --gc-sections doesn't really work at the moment (keeps on discarding
5176 # used sections, first .eh_frame and now some of the glibc sections for
5177 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5178 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5179 echo "configure:5180: checking for ld that supports -Wl,--gc-sections" >&5
5180 if test "$cross_compiling" = yes; then
5181 ac_sectionLDflags=yes
5182 else
5183 cat > conftest.$ac_ext <<EOF
5184 #line 5185 "configure"
5185 #include "confdefs.h"
5187 int main(void)
5189 try { throw 1; }
5190 catch (...) { };
5191 return 0;
5195 if { (eval echo configure:5196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5196 then
5197 ac_sectionLDflags=yes
5198 else
5199 echo "configure: failed program was:" >&5
5200 cat conftest.$ac_ext >&5
5201 rm -fr conftest*
5202 ac_sectionLDflags=no
5204 rm -fr conftest*
5207 if test "$ac_test_CFLAGS" = set; then
5208 CFLAGS="$ac_save_CFLAGS"
5209 else
5210 # this is the suspicious part
5211 CFLAGS=''
5213 if test "$ac_sectionLDflags" = "yes"; then
5214 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5216 echo "$ac_t""$ac_sectionLDflags" 1>&6
5219 # Set linker optimization flags.
5220 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5221 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5228 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5229 echo "configure:5230: checking for main in -lm" >&5
5230 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5232 echo $ac_n "(cached) $ac_c" 1>&6
5233 else
5234 ac_save_LIBS="$LIBS"
5235 LIBS="-lm $LIBS"
5236 cat > conftest.$ac_ext <<EOF
5237 #line 5238 "configure"
5238 #include "confdefs.h"
5240 int main() {
5241 main()
5242 ; return 0; }
5244 if { (eval echo configure:5245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5245 rm -rf conftest*
5246 eval "ac_cv_lib_$ac_lib_var=yes"
5247 else
5248 echo "configure: failed program was:" >&5
5249 cat conftest.$ac_ext >&5
5250 rm -rf conftest*
5251 eval "ac_cv_lib_$ac_lib_var=no"
5253 rm -f conftest*
5254 LIBS="$ac_save_LIBS"
5257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5258 echo "$ac_t""yes" 1>&6
5259 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5260 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5261 cat >> confdefs.h <<EOF
5262 #define $ac_tr_lib 1
5265 LIBS="-lm $LIBS"
5267 else
5268 echo "$ac_t""no" 1>&6
5271 for ac_func in nan copysignf
5273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5274 echo "configure:5275: checking for $ac_func" >&5
5275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5276 echo $ac_n "(cached) $ac_c" 1>&6
5277 else
5278 cat > conftest.$ac_ext <<EOF
5279 #line 5280 "configure"
5280 #include "confdefs.h"
5281 /* System header to define __stub macros and hopefully few prototypes,
5282 which can conflict with char $ac_func(); below. */
5283 #include <assert.h>
5284 /* Override any gcc2 internal prototype to avoid an error. */
5285 /* We use char because int might match the return type of a gcc2
5286 builtin and then its argument prototype would still apply. */
5287 char $ac_func();
5289 int main() {
5291 /* The GNU C library defines this for functions which it implements
5292 to always fail with ENOSYS. Some functions are actually named
5293 something starting with __ and the normal name is an alias. */
5294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5295 choke me
5296 #else
5297 $ac_func();
5298 #endif
5300 ; return 0; }
5302 if { (eval echo configure:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5303 rm -rf conftest*
5304 eval "ac_cv_func_$ac_func=yes"
5305 else
5306 echo "configure: failed program was:" >&5
5307 cat conftest.$ac_ext >&5
5308 rm -rf conftest*
5309 eval "ac_cv_func_$ac_func=no"
5311 rm -f conftest*
5314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5315 echo "$ac_t""yes" 1>&6
5316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5317 cat >> confdefs.h <<EOF
5318 #define $ac_tr_func 1
5321 else
5322 echo "$ac_t""no" 1>&6
5323 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5325 done
5328 for ac_func in __signbit
5330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5331 echo "configure:5332: checking for $ac_func" >&5
5332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5334 else
5335 cat > conftest.$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5338 /* System header to define __stub macros and hopefully few prototypes,
5339 which can conflict with char $ac_func(); below. */
5340 #include <assert.h>
5341 /* Override any gcc2 internal prototype to avoid an error. */
5342 /* We use char because int might match the return type of a gcc2
5343 builtin and then its argument prototype would still apply. */
5344 char $ac_func();
5346 int main() {
5348 /* The GNU C library defines this for functions which it implements
5349 to always fail with ENOSYS. Some functions are actually named
5350 something starting with __ and the normal name is an alias. */
5351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5352 choke me
5353 #else
5354 $ac_func();
5355 #endif
5357 ; return 0; }
5359 if { (eval echo configure:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5360 rm -rf conftest*
5361 eval "ac_cv_func_$ac_func=yes"
5362 else
5363 echo "configure: failed program was:" >&5
5364 cat conftest.$ac_ext >&5
5365 rm -rf conftest*
5366 eval "ac_cv_func_$ac_func=no"
5368 rm -f conftest*
5371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5372 echo "$ac_t""yes" 1>&6
5373 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5374 cat >> confdefs.h <<EOF
5375 #define $ac_tr_func 1
5378 else
5379 echo "$ac_t""no" 1>&6
5380 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5382 done
5384 for ac_func in __signbitf
5386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5387 echo "configure:5388: checking for $ac_func" >&5
5388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5389 echo $ac_n "(cached) $ac_c" 1>&6
5390 else
5391 cat > conftest.$ac_ext <<EOF
5392 #line 5393 "configure"
5393 #include "confdefs.h"
5394 /* System header to define __stub macros and hopefully few prototypes,
5395 which can conflict with char $ac_func(); below. */
5396 #include <assert.h>
5397 /* Override any gcc2 internal prototype to avoid an error. */
5398 /* We use char because int might match the return type of a gcc2
5399 builtin and then its argument prototype would still apply. */
5400 char $ac_func();
5402 int main() {
5404 /* The GNU C library defines this for functions which it implements
5405 to always fail with ENOSYS. Some functions are actually named
5406 something starting with __ and the normal name is an alias. */
5407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5408 choke me
5409 #else
5410 $ac_func();
5411 #endif
5413 ; return 0; }
5415 if { (eval echo configure:5416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5416 rm -rf conftest*
5417 eval "ac_cv_func_$ac_func=yes"
5418 else
5419 echo "configure: failed program was:" >&5
5420 cat conftest.$ac_ext >&5
5421 rm -rf conftest*
5422 eval "ac_cv_func_$ac_func=no"
5424 rm -f conftest*
5427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5428 echo "$ac_t""yes" 1>&6
5429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5430 cat >> confdefs.h <<EOF
5431 #define $ac_tr_func 1
5434 else
5435 echo "$ac_t""no" 1>&6
5436 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5438 done
5441 if test x$ac_cv_func_copysignl = x"yes"; then
5442 for ac_func in __signbitl
5444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5445 echo "configure:5446: checking for $ac_func" >&5
5446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5447 echo $ac_n "(cached) $ac_c" 1>&6
5448 else
5449 cat > conftest.$ac_ext <<EOF
5450 #line 5451 "configure"
5451 #include "confdefs.h"
5452 /* System header to define __stub macros and hopefully few prototypes,
5453 which can conflict with char $ac_func(); below. */
5454 #include <assert.h>
5455 /* Override any gcc2 internal prototype to avoid an error. */
5456 /* We use char because int might match the return type of a gcc2
5457 builtin and then its argument prototype would still apply. */
5458 char $ac_func();
5460 int main() {
5462 /* The GNU C library defines this for functions which it implements
5463 to always fail with ENOSYS. Some functions are actually named
5464 something starting with __ and the normal name is an alias. */
5465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5466 choke me
5467 #else
5468 $ac_func();
5469 #endif
5471 ; return 0; }
5473 if { (eval echo configure:5474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5474 rm -rf conftest*
5475 eval "ac_cv_func_$ac_func=yes"
5476 else
5477 echo "configure: failed program was:" >&5
5478 cat conftest.$ac_ext >&5
5479 rm -rf conftest*
5480 eval "ac_cv_func_$ac_func=no"
5482 rm -f conftest*
5485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5486 echo "$ac_t""yes" 1>&6
5487 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5488 cat >> confdefs.h <<EOF
5489 #define $ac_tr_func 1
5492 else
5493 echo "$ac_t""no" 1>&6
5494 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5496 done
5504 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5505 echo "configure:5506: checking for mbstate_t" >&5
5506 cat > conftest.$ac_ext <<EOF
5507 #line 5508 "configure"
5508 #include "confdefs.h"
5509 #include <wchar.h>
5510 int main() {
5511 mbstate_t teststate;
5512 ; return 0; }
5514 if { (eval echo configure:5515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5515 rm -rf conftest*
5516 have_mbstate_t=yes
5517 else
5518 echo "configure: failed program was:" >&5
5519 cat conftest.$ac_ext >&5
5520 rm -rf conftest*
5521 have_mbstate_t=no
5523 rm -f conftest*
5524 echo "$ac_t""$have_mbstate_t" 1>&6
5525 if test x"$have_mbstate_t" = xyes; then
5526 cat >> confdefs.h <<\EOF
5527 #define HAVE_MBSTATE_T 1
5532 for ac_hdr in wchar.h
5534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5536 echo "configure:5537: checking for $ac_hdr" >&5
5537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5538 echo $ac_n "(cached) $ac_c" 1>&6
5539 else
5540 cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5543 #include <$ac_hdr>
5545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5546 { (eval echo configure:5547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5548 if test -z "$ac_err"; then
5549 rm -rf conftest*
5550 eval "ac_cv_header_$ac_safe=yes"
5551 else
5552 echo "$ac_err" >&5
5553 echo "configure: failed program was:" >&5
5554 cat conftest.$ac_ext >&5
5555 rm -rf conftest*
5556 eval "ac_cv_header_$ac_safe=no"
5558 rm -f conftest*
5560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5561 echo "$ac_t""yes" 1>&6
5562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5563 cat >> confdefs.h <<EOF
5564 #define $ac_tr_hdr 1
5566 ac_has_wchar_h=yes
5567 else
5568 echo "$ac_t""no" 1>&6
5569 ac_has_wchar_h=no
5571 done
5573 for ac_hdr in wctype.h
5575 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5577 echo "configure:5578: checking for $ac_hdr" >&5
5578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5579 echo $ac_n "(cached) $ac_c" 1>&6
5580 else
5581 cat > conftest.$ac_ext <<EOF
5582 #line 5583 "configure"
5583 #include "confdefs.h"
5584 #include <$ac_hdr>
5586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5587 { (eval echo configure:5588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5589 if test -z "$ac_err"; then
5590 rm -rf conftest*
5591 eval "ac_cv_header_$ac_safe=yes"
5592 else
5593 echo "$ac_err" >&5
5594 echo "configure: failed program was:" >&5
5595 cat conftest.$ac_ext >&5
5596 rm -rf conftest*
5597 eval "ac_cv_header_$ac_safe=no"
5599 rm -f conftest*
5601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5602 echo "$ac_t""yes" 1>&6
5603 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5604 cat >> confdefs.h <<EOF
5605 #define $ac_tr_hdr 1
5607 ac_has_wctype_h=yes
5608 else
5609 echo "$ac_t""no" 1>&6
5610 ac_has_wctype_h=no
5612 done
5615 if test x"$ac_has_wchar_h" = xyes &&
5616 test x"$ac_has_wctype_h" = xyes &&
5617 test x"$enable_c_mbchar" != xno; then
5619 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5620 echo "configure:5621: checking for WCHAR_MIN and WCHAR_MAX" >&5
5621 cat > conftest.$ac_ext <<EOF
5622 #line 5623 "configure"
5623 #include "confdefs.h"
5624 #include <wchar.h>
5625 int main() {
5626 int i = WCHAR_MIN; int j = WCHAR_MAX;
5627 ; return 0; }
5629 if { (eval echo configure:5630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5630 rm -rf conftest*
5631 has_wchar_minmax=yes
5632 else
5633 echo "configure: failed program was:" >&5
5634 cat conftest.$ac_ext >&5
5635 rm -rf conftest*
5636 has_wchar_minmax=no
5638 rm -f conftest*
5639 echo "$ac_t""$has_wchar_minmax" 1>&6
5641 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5642 echo "configure:5643: checking for WEOF" >&5
5643 cat > conftest.$ac_ext <<EOF
5644 #line 5645 "configure"
5645 #include "confdefs.h"
5647 #include <wchar.h>
5648 #include <stddef.h>
5649 int main() {
5650 wint_t i = WEOF;
5651 ; return 0; }
5653 if { (eval echo configure:5654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5654 rm -rf conftest*
5655 has_weof=yes
5656 else
5657 echo "configure: failed program was:" >&5
5658 cat conftest.$ac_ext >&5
5659 rm -rf conftest*
5660 has_weof=no
5662 rm -f conftest*
5663 echo "$ac_t""$has_weof" 1>&6
5665 ac_wfuncs=yes
5666 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5669 echo "configure:5670: checking for $ac_func" >&5
5670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5671 echo $ac_n "(cached) $ac_c" 1>&6
5672 else
5673 cat > conftest.$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5676 /* System header to define __stub macros and hopefully few prototypes,
5677 which can conflict with char $ac_func(); below. */
5678 #include <assert.h>
5679 /* Override any gcc2 internal prototype to avoid an error. */
5680 /* We use char because int might match the return type of a gcc2
5681 builtin and then its argument prototype would still apply. */
5682 char $ac_func();
5684 int main() {
5686 /* The GNU C library defines this for functions which it implements
5687 to always fail with ENOSYS. Some functions are actually named
5688 something starting with __ and the normal name is an alias. */
5689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5690 choke me
5691 #else
5692 $ac_func();
5693 #endif
5695 ; return 0; }
5697 if { (eval echo configure:5698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5698 rm -rf conftest*
5699 eval "ac_cv_func_$ac_func=yes"
5700 else
5701 echo "configure: failed program was:" >&5
5702 cat conftest.$ac_ext >&5
5703 rm -rf conftest*
5704 eval "ac_cv_func_$ac_func=no"
5706 rm -f conftest*
5709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5710 echo "$ac_t""yes" 1>&6
5711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5712 cat >> confdefs.h <<EOF
5713 #define $ac_tr_func 1
5716 else
5717 echo "$ac_t""no" 1>&6
5719 ac_wfuncs=no
5721 done
5724 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5725 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5726 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5727 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5728 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5729 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5732 echo "configure:5733: checking for $ac_func" >&5
5733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5734 echo $ac_n "(cached) $ac_c" 1>&6
5735 else
5736 cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5739 /* System header to define __stub macros and hopefully few prototypes,
5740 which can conflict with char $ac_func(); below. */
5741 #include <assert.h>
5742 /* Override any gcc2 internal prototype to avoid an error. */
5743 /* We use char because int might match the return type of a gcc2
5744 builtin and then its argument prototype would still apply. */
5745 char $ac_func();
5747 int main() {
5749 /* The GNU C library defines this for functions which it implements
5750 to always fail with ENOSYS. Some functions are actually named
5751 something starting with __ and the normal name is an alias. */
5752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5753 choke me
5754 #else
5755 $ac_func();
5756 #endif
5758 ; return 0; }
5760 if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5761 rm -rf conftest*
5762 eval "ac_cv_func_$ac_func=yes"
5763 else
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5766 rm -rf conftest*
5767 eval "ac_cv_func_$ac_func=no"
5769 rm -f conftest*
5772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5773 echo "$ac_t""yes" 1>&6
5774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5775 cat >> confdefs.h <<EOF
5776 #define $ac_tr_func 1
5779 else
5780 echo "$ac_t""no" 1>&6
5782 ac_wfuncs=no
5784 done
5787 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5788 echo "configure:5789: checking for ISO C99 wchar_t support" >&5
5789 if test x"$has_weof" = xyes &&
5790 test x"$has_wchar_minmax" = xyes &&
5791 test x"$ac_wfuncs" = xyes; then
5792 ac_isoC99_wchar_t=yes
5793 else
5794 ac_isoC99_wchar_t=no
5796 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5798 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5799 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5800 echo "configure:5801: checking for iconv.h" >&5
5801 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5802 echo $ac_n "(cached) $ac_c" 1>&6
5803 else
5804 cat > conftest.$ac_ext <<EOF
5805 #line 5806 "configure"
5806 #include "confdefs.h"
5807 #include <iconv.h>
5809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5810 { (eval echo configure:5811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5812 if test -z "$ac_err"; then
5813 rm -rf conftest*
5814 eval "ac_cv_header_$ac_safe=yes"
5815 else
5816 echo "$ac_err" >&5
5817 echo "configure: failed program was:" >&5
5818 cat conftest.$ac_ext >&5
5819 rm -rf conftest*
5820 eval "ac_cv_header_$ac_safe=no"
5822 rm -f conftest*
5824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5825 echo "$ac_t""yes" 1>&6
5826 ac_has_iconv_h=yes
5827 else
5828 echo "$ac_t""no" 1>&6
5829 ac_has_iconv_h=no
5832 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5833 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5834 echo "configure:5835: checking for langinfo.h" >&5
5835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5836 echo $ac_n "(cached) $ac_c" 1>&6
5837 else
5838 cat > conftest.$ac_ext <<EOF
5839 #line 5840 "configure"
5840 #include "confdefs.h"
5841 #include <langinfo.h>
5843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5844 { (eval echo configure:5845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5846 if test -z "$ac_err"; then
5847 rm -rf conftest*
5848 eval "ac_cv_header_$ac_safe=yes"
5849 else
5850 echo "$ac_err" >&5
5851 echo "configure: failed program was:" >&5
5852 cat conftest.$ac_ext >&5
5853 rm -rf conftest*
5854 eval "ac_cv_header_$ac_safe=no"
5856 rm -f conftest*
5858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5859 echo "$ac_t""yes" 1>&6
5860 ac_has_langinfo_h=yes
5861 else
5862 echo "$ac_t""no" 1>&6
5863 ac_has_langinfo_h=no
5867 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5868 echo "configure:5869: checking for iconv in -liconv" >&5
5869 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5870 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5871 echo $ac_n "(cached) $ac_c" 1>&6
5872 else
5873 ac_save_LIBS="$LIBS"
5874 LIBS="-liconv $LIBS"
5875 cat > conftest.$ac_ext <<EOF
5876 #line 5877 "configure"
5877 #include "confdefs.h"
5878 /* Override any gcc2 internal prototype to avoid an error. */
5879 /* We use char because int might match the return type of a gcc2
5880 builtin and then its argument prototype would still apply. */
5881 char iconv();
5883 int main() {
5884 iconv()
5885 ; return 0; }
5887 if { (eval echo configure:5888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5888 rm -rf conftest*
5889 eval "ac_cv_lib_$ac_lib_var=yes"
5890 else
5891 echo "configure: failed program was:" >&5
5892 cat conftest.$ac_ext >&5
5893 rm -rf conftest*
5894 eval "ac_cv_lib_$ac_lib_var=no"
5896 rm -f conftest*
5897 LIBS="$ac_save_LIBS"
5900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5901 echo "$ac_t""yes" 1>&6
5902 libiconv="-liconv"
5903 else
5904 echo "$ac_t""no" 1>&6
5907 ac_save_LIBS="$LIBS"
5908 LIBS="$LIBS $libiconv"
5910 for ac_func in iconv_open iconv_close iconv nl_langinfo
5912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5913 echo "configure:5914: checking for $ac_func" >&5
5914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5915 echo $ac_n "(cached) $ac_c" 1>&6
5916 else
5917 cat > conftest.$ac_ext <<EOF
5918 #line 5919 "configure"
5919 #include "confdefs.h"
5920 /* System header to define __stub macros and hopefully few prototypes,
5921 which can conflict with char $ac_func(); below. */
5922 #include <assert.h>
5923 /* Override any gcc2 internal prototype to avoid an error. */
5924 /* We use char because int might match the return type of a gcc2
5925 builtin and then its argument prototype would still apply. */
5926 char $ac_func();
5928 int main() {
5930 /* The GNU C library defines this for functions which it implements
5931 to always fail with ENOSYS. Some functions are actually named
5932 something starting with __ and the normal name is an alias. */
5933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5934 choke me
5935 #else
5936 $ac_func();
5937 #endif
5939 ; return 0; }
5941 if { (eval echo configure:5942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5942 rm -rf conftest*
5943 eval "ac_cv_func_$ac_func=yes"
5944 else
5945 echo "configure: failed program was:" >&5
5946 cat conftest.$ac_ext >&5
5947 rm -rf conftest*
5948 eval "ac_cv_func_$ac_func=no"
5950 rm -f conftest*
5953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5954 echo "$ac_t""yes" 1>&6
5955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5956 cat >> confdefs.h <<EOF
5957 #define $ac_tr_func 1
5960 ac_XPG2funcs=yes
5961 else
5962 echo "$ac_t""no" 1>&6
5963 ac_XPG2funcs=no
5965 done
5968 LIBS="$ac_save_LIBS"
5970 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5971 echo "configure:5972: checking for XPG2 wchar_t support" >&5
5972 if test x"$ac_has_iconv_h" = xyes &&
5973 test x"$ac_has_langinfo_h" = xyes &&
5974 test x"$ac_XPG2funcs" = xyes; then
5975 ac_XPG2_wchar_t=yes
5976 else
5977 ac_XPG2_wchar_t=no
5979 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5981 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5982 echo "configure:5983: checking for enabled wchar_t specializations" >&5
5983 if test x"$ac_isoC99_wchar_t" = xyes &&
5984 test x"$ac_XPG2_wchar_t" = xyes; then
5985 cat >> confdefs.h <<\EOF
5986 #define _GLIBCPP_USE_WCHAR_T 1
5989 echo "$ac_t"""yes"" 1>&6
5990 else
5991 echo "$ac_t"""no"" 1>&6
5993 else
5994 echo "configure: warning: wchar_t support disabled." 1>&2
5997 os_include_dir="os/hpux"
5998 cat >> confdefs.h <<\EOF
5999 #define HAVE_COPYSIGN 1
6002 cat >> confdefs.h <<\EOF
6003 #define HAVE_COPYSIGNF 1
6006 cat >> confdefs.h <<\EOF
6007 #define HAVE_FREXPF 1
6010 cat >> confdefs.h <<\EOF
6011 #define HAVE_HYPOT 1
6014 case "$target_alias" in
6015 *-hpux10*)
6016 cat >> confdefs.h <<\EOF
6017 #define HAVE_FINITE 1
6020 cat >> confdefs.h <<\EOF
6021 #define HAVE_FINITEF 1
6024 cat >> confdefs.h <<\EOF
6025 #define HAVE_ISINF 1
6028 cat >> confdefs.h <<\EOF
6029 #define HAVE_ISINFF 1
6032 cat >> confdefs.h <<\EOF
6033 #define HAVE_ISNAN 1
6036 cat >> confdefs.h <<\EOF
6037 #define HAVE_ISNANF 1
6041 esac
6044 *-netbsd*)
6045 # Check for available headers.
6046 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6047 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6048 fp.h locale.h float.h inttypes.h
6050 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6051 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6052 echo "configure:6053: checking for $ac_hdr" >&5
6053 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6054 echo $ac_n "(cached) $ac_c" 1>&6
6055 else
6056 cat > conftest.$ac_ext <<EOF
6057 #line 6058 "configure"
6058 #include "confdefs.h"
6059 #include <$ac_hdr>
6061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6062 { (eval echo configure:6063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6064 if test -z "$ac_err"; then
6065 rm -rf conftest*
6066 eval "ac_cv_header_$ac_safe=yes"
6067 else
6068 echo "$ac_err" >&5
6069 echo "configure: failed program was:" >&5
6070 cat conftest.$ac_ext >&5
6071 rm -rf conftest*
6072 eval "ac_cv_header_$ac_safe=no"
6074 rm -f conftest*
6076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6077 echo "$ac_t""yes" 1>&6
6078 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6079 cat >> confdefs.h <<EOF
6080 #define $ac_tr_hdr 1
6083 else
6084 echo "$ac_t""no" 1>&6
6086 done
6088 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6091 # If we're not using GNU ld, then there's no point in even trying these
6092 # tests. Check for that first. We should have already tested for gld
6093 # by now (in libtool), but require it now just to be safe...
6094 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6095 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6098 # The name set by libtool depends on the version of libtool. Shame on us
6099 # for depending on an impl detail, but c'est la vie. Older versions used
6100 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6101 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6102 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6103 # set (hence we're using an older libtool), then set it.
6104 if test x${with_gnu_ld+set} != xset; then
6105 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6106 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6107 with_gnu_ld=no
6108 else
6109 with_gnu_ld=$ac_cv_prog_gnu_ld
6113 # Start by getting the version number. I think the libtool test already
6114 # does some of this, but throws away the result.
6116 ldver=`$LD --version 2>/dev/null | head -1 | \
6117 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6119 glibcpp_gnu_ld_version=`echo $ldver | \
6120 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6122 # Set --gc-sections.
6123 if test "$with_gnu_ld" = "notbroken"; then
6124 # GNU ld it is! Joy and bunny rabbits!
6126 # All these tests are for C++; save the language and the compiler flags.
6127 # Need to do this so that g++ won't try to link in libstdc++
6128 ac_test_CFLAGS="${CFLAGS+set}"
6129 ac_save_CFLAGS="$CFLAGS"
6130 CFLAGS='-x c++ -Wl,--gc-sections'
6132 # Check for -Wl,--gc-sections
6133 # XXX This test is broken at the moment, as symbols required for
6134 # linking are now in libsupc++ (not built yet.....). In addition,
6135 # this test has cored on solaris in the past. In addition,
6136 # --gc-sections doesn't really work at the moment (keeps on discarding
6137 # used sections, first .eh_frame and now some of the glibc sections for
6138 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6139 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6140 echo "configure:6141: checking for ld that supports -Wl,--gc-sections" >&5
6141 if test "$cross_compiling" = yes; then
6142 ac_sectionLDflags=yes
6143 else
6144 cat > conftest.$ac_ext <<EOF
6145 #line 6146 "configure"
6146 #include "confdefs.h"
6148 int main(void)
6150 try { throw 1; }
6151 catch (...) { };
6152 return 0;
6156 if { (eval echo configure:6157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6157 then
6158 ac_sectionLDflags=yes
6159 else
6160 echo "configure: failed program was:" >&5
6161 cat conftest.$ac_ext >&5
6162 rm -fr conftest*
6163 ac_sectionLDflags=no
6165 rm -fr conftest*
6168 if test "$ac_test_CFLAGS" = set; then
6169 CFLAGS="$ac_save_CFLAGS"
6170 else
6171 # this is the suspicious part
6172 CFLAGS=''
6174 if test "$ac_sectionLDflags" = "yes"; then
6175 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6177 echo "$ac_t""$ac_sectionLDflags" 1>&6
6180 # Set linker optimization flags.
6181 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6182 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6189 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6190 echo "configure:6191: checking for main in -lm" >&5
6191 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6193 echo $ac_n "(cached) $ac_c" 1>&6
6194 else
6195 ac_save_LIBS="$LIBS"
6196 LIBS="-lm $LIBS"
6197 cat > conftest.$ac_ext <<EOF
6198 #line 6199 "configure"
6199 #include "confdefs.h"
6201 int main() {
6202 main()
6203 ; return 0; }
6205 if { (eval echo configure:6206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6206 rm -rf conftest*
6207 eval "ac_cv_lib_$ac_lib_var=yes"
6208 else
6209 echo "configure: failed program was:" >&5
6210 cat conftest.$ac_ext >&5
6211 rm -rf conftest*
6212 eval "ac_cv_lib_$ac_lib_var=no"
6214 rm -f conftest*
6215 LIBS="$ac_save_LIBS"
6218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6219 echo "$ac_t""yes" 1>&6
6220 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6221 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6222 cat >> confdefs.h <<EOF
6223 #define $ac_tr_lib 1
6226 LIBS="-lm $LIBS"
6228 else
6229 echo "$ac_t""no" 1>&6
6232 for ac_func in nan copysignf
6234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6235 echo "configure:6236: checking for $ac_func" >&5
6236 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6237 echo $ac_n "(cached) $ac_c" 1>&6
6238 else
6239 cat > conftest.$ac_ext <<EOF
6240 #line 6241 "configure"
6241 #include "confdefs.h"
6242 /* System header to define __stub macros and hopefully few prototypes,
6243 which can conflict with char $ac_func(); below. */
6244 #include <assert.h>
6245 /* Override any gcc2 internal prototype to avoid an error. */
6246 /* We use char because int might match the return type of a gcc2
6247 builtin and then its argument prototype would still apply. */
6248 char $ac_func();
6250 int main() {
6252 /* The GNU C library defines this for functions which it implements
6253 to always fail with ENOSYS. Some functions are actually named
6254 something starting with __ and the normal name is an alias. */
6255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6256 choke me
6257 #else
6258 $ac_func();
6259 #endif
6261 ; return 0; }
6263 if { (eval echo configure:6264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6264 rm -rf conftest*
6265 eval "ac_cv_func_$ac_func=yes"
6266 else
6267 echo "configure: failed program was:" >&5
6268 cat conftest.$ac_ext >&5
6269 rm -rf conftest*
6270 eval "ac_cv_func_$ac_func=no"
6272 rm -f conftest*
6275 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6276 echo "$ac_t""yes" 1>&6
6277 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6278 cat >> confdefs.h <<EOF
6279 #define $ac_tr_func 1
6282 else
6283 echo "$ac_t""no" 1>&6
6284 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6286 done
6289 for ac_func in __signbit
6291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6292 echo "configure:6293: checking for $ac_func" >&5
6293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6294 echo $ac_n "(cached) $ac_c" 1>&6
6295 else
6296 cat > conftest.$ac_ext <<EOF
6297 #line 6298 "configure"
6298 #include "confdefs.h"
6299 /* System header to define __stub macros and hopefully few prototypes,
6300 which can conflict with char $ac_func(); below. */
6301 #include <assert.h>
6302 /* Override any gcc2 internal prototype to avoid an error. */
6303 /* We use char because int might match the return type of a gcc2
6304 builtin and then its argument prototype would still apply. */
6305 char $ac_func();
6307 int main() {
6309 /* The GNU C library defines this for functions which it implements
6310 to always fail with ENOSYS. Some functions are actually named
6311 something starting with __ and the normal name is an alias. */
6312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6313 choke me
6314 #else
6315 $ac_func();
6316 #endif
6318 ; return 0; }
6320 if { (eval echo configure:6321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6321 rm -rf conftest*
6322 eval "ac_cv_func_$ac_func=yes"
6323 else
6324 echo "configure: failed program was:" >&5
6325 cat conftest.$ac_ext >&5
6326 rm -rf conftest*
6327 eval "ac_cv_func_$ac_func=no"
6329 rm -f conftest*
6332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6333 echo "$ac_t""yes" 1>&6
6334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6335 cat >> confdefs.h <<EOF
6336 #define $ac_tr_func 1
6339 else
6340 echo "$ac_t""no" 1>&6
6341 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6343 done
6345 for ac_func in __signbitf
6347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6348 echo "configure:6349: checking for $ac_func" >&5
6349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6350 echo $ac_n "(cached) $ac_c" 1>&6
6351 else
6352 cat > conftest.$ac_ext <<EOF
6353 #line 6354 "configure"
6354 #include "confdefs.h"
6355 /* System header to define __stub macros and hopefully few prototypes,
6356 which can conflict with char $ac_func(); below. */
6357 #include <assert.h>
6358 /* Override any gcc2 internal prototype to avoid an error. */
6359 /* We use char because int might match the return type of a gcc2
6360 builtin and then its argument prototype would still apply. */
6361 char $ac_func();
6363 int main() {
6365 /* The GNU C library defines this for functions which it implements
6366 to always fail with ENOSYS. Some functions are actually named
6367 something starting with __ and the normal name is an alias. */
6368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6369 choke me
6370 #else
6371 $ac_func();
6372 #endif
6374 ; return 0; }
6376 if { (eval echo configure:6377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6377 rm -rf conftest*
6378 eval "ac_cv_func_$ac_func=yes"
6379 else
6380 echo "configure: failed program was:" >&5
6381 cat conftest.$ac_ext >&5
6382 rm -rf conftest*
6383 eval "ac_cv_func_$ac_func=no"
6385 rm -f conftest*
6388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6389 echo "$ac_t""yes" 1>&6
6390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6391 cat >> confdefs.h <<EOF
6392 #define $ac_tr_func 1
6395 else
6396 echo "$ac_t""no" 1>&6
6397 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6399 done
6402 if test x$ac_cv_func_copysignl = x"yes"; then
6403 for ac_func in __signbitl
6405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6406 echo "configure:6407: checking for $ac_func" >&5
6407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6408 echo $ac_n "(cached) $ac_c" 1>&6
6409 else
6410 cat > conftest.$ac_ext <<EOF
6411 #line 6412 "configure"
6412 #include "confdefs.h"
6413 /* System header to define __stub macros and hopefully few prototypes,
6414 which can conflict with char $ac_func(); below. */
6415 #include <assert.h>
6416 /* Override any gcc2 internal prototype to avoid an error. */
6417 /* We use char because int might match the return type of a gcc2
6418 builtin and then its argument prototype would still apply. */
6419 char $ac_func();
6421 int main() {
6423 /* The GNU C library defines this for functions which it implements
6424 to always fail with ENOSYS. Some functions are actually named
6425 something starting with __ and the normal name is an alias. */
6426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6427 choke me
6428 #else
6429 $ac_func();
6430 #endif
6432 ; return 0; }
6434 if { (eval echo configure:6435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6435 rm -rf conftest*
6436 eval "ac_cv_func_$ac_func=yes"
6437 else
6438 echo "configure: failed program was:" >&5
6439 cat conftest.$ac_ext >&5
6440 rm -rf conftest*
6441 eval "ac_cv_func_$ac_func=no"
6443 rm -f conftest*
6446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6447 echo "$ac_t""yes" 1>&6
6448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6449 cat >> confdefs.h <<EOF
6450 #define $ac_tr_func 1
6453 else
6454 echo "$ac_t""no" 1>&6
6455 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6457 done
6465 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6466 echo "configure:6467: checking for mbstate_t" >&5
6467 cat > conftest.$ac_ext <<EOF
6468 #line 6469 "configure"
6469 #include "confdefs.h"
6470 #include <wchar.h>
6471 int main() {
6472 mbstate_t teststate;
6473 ; return 0; }
6475 if { (eval echo configure:6476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6476 rm -rf conftest*
6477 have_mbstate_t=yes
6478 else
6479 echo "configure: failed program was:" >&5
6480 cat conftest.$ac_ext >&5
6481 rm -rf conftest*
6482 have_mbstate_t=no
6484 rm -f conftest*
6485 echo "$ac_t""$have_mbstate_t" 1>&6
6486 if test x"$have_mbstate_t" = xyes; then
6487 cat >> confdefs.h <<\EOF
6488 #define HAVE_MBSTATE_T 1
6493 for ac_hdr in wchar.h
6495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6497 echo "configure:6498: checking for $ac_hdr" >&5
6498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6499 echo $ac_n "(cached) $ac_c" 1>&6
6500 else
6501 cat > conftest.$ac_ext <<EOF
6502 #line 6503 "configure"
6503 #include "confdefs.h"
6504 #include <$ac_hdr>
6506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6507 { (eval echo configure:6508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6509 if test -z "$ac_err"; then
6510 rm -rf conftest*
6511 eval "ac_cv_header_$ac_safe=yes"
6512 else
6513 echo "$ac_err" >&5
6514 echo "configure: failed program was:" >&5
6515 cat conftest.$ac_ext >&5
6516 rm -rf conftest*
6517 eval "ac_cv_header_$ac_safe=no"
6519 rm -f conftest*
6521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6522 echo "$ac_t""yes" 1>&6
6523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6524 cat >> confdefs.h <<EOF
6525 #define $ac_tr_hdr 1
6527 ac_has_wchar_h=yes
6528 else
6529 echo "$ac_t""no" 1>&6
6530 ac_has_wchar_h=no
6532 done
6534 for ac_hdr in wctype.h
6536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6538 echo "configure:6539: checking for $ac_hdr" >&5
6539 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6540 echo $ac_n "(cached) $ac_c" 1>&6
6541 else
6542 cat > conftest.$ac_ext <<EOF
6543 #line 6544 "configure"
6544 #include "confdefs.h"
6545 #include <$ac_hdr>
6547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6548 { (eval echo configure:6549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6550 if test -z "$ac_err"; then
6551 rm -rf conftest*
6552 eval "ac_cv_header_$ac_safe=yes"
6553 else
6554 echo "$ac_err" >&5
6555 echo "configure: failed program was:" >&5
6556 cat conftest.$ac_ext >&5
6557 rm -rf conftest*
6558 eval "ac_cv_header_$ac_safe=no"
6560 rm -f conftest*
6562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6563 echo "$ac_t""yes" 1>&6
6564 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6565 cat >> confdefs.h <<EOF
6566 #define $ac_tr_hdr 1
6568 ac_has_wctype_h=yes
6569 else
6570 echo "$ac_t""no" 1>&6
6571 ac_has_wctype_h=no
6573 done
6576 if test x"$ac_has_wchar_h" = xyes &&
6577 test x"$ac_has_wctype_h" = xyes &&
6578 test x"$enable_c_mbchar" != xno; then
6580 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6581 echo "configure:6582: checking for WCHAR_MIN and WCHAR_MAX" >&5
6582 cat > conftest.$ac_ext <<EOF
6583 #line 6584 "configure"
6584 #include "confdefs.h"
6585 #include <wchar.h>
6586 int main() {
6587 int i = WCHAR_MIN; int j = WCHAR_MAX;
6588 ; return 0; }
6590 if { (eval echo configure:6591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6591 rm -rf conftest*
6592 has_wchar_minmax=yes
6593 else
6594 echo "configure: failed program was:" >&5
6595 cat conftest.$ac_ext >&5
6596 rm -rf conftest*
6597 has_wchar_minmax=no
6599 rm -f conftest*
6600 echo "$ac_t""$has_wchar_minmax" 1>&6
6602 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6603 echo "configure:6604: checking for WEOF" >&5
6604 cat > conftest.$ac_ext <<EOF
6605 #line 6606 "configure"
6606 #include "confdefs.h"
6608 #include <wchar.h>
6609 #include <stddef.h>
6610 int main() {
6611 wint_t i = WEOF;
6612 ; return 0; }
6614 if { (eval echo configure:6615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6615 rm -rf conftest*
6616 has_weof=yes
6617 else
6618 echo "configure: failed program was:" >&5
6619 cat conftest.$ac_ext >&5
6620 rm -rf conftest*
6621 has_weof=no
6623 rm -f conftest*
6624 echo "$ac_t""$has_weof" 1>&6
6626 ac_wfuncs=yes
6627 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6630 echo "configure:6631: checking for $ac_func" >&5
6631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6632 echo $ac_n "(cached) $ac_c" 1>&6
6633 else
6634 cat > conftest.$ac_ext <<EOF
6635 #line 6636 "configure"
6636 #include "confdefs.h"
6637 /* System header to define __stub macros and hopefully few prototypes,
6638 which can conflict with char $ac_func(); below. */
6639 #include <assert.h>
6640 /* Override any gcc2 internal prototype to avoid an error. */
6641 /* We use char because int might match the return type of a gcc2
6642 builtin and then its argument prototype would still apply. */
6643 char $ac_func();
6645 int main() {
6647 /* The GNU C library defines this for functions which it implements
6648 to always fail with ENOSYS. Some functions are actually named
6649 something starting with __ and the normal name is an alias. */
6650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6651 choke me
6652 #else
6653 $ac_func();
6654 #endif
6656 ; return 0; }
6658 if { (eval echo configure:6659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6659 rm -rf conftest*
6660 eval "ac_cv_func_$ac_func=yes"
6661 else
6662 echo "configure: failed program was:" >&5
6663 cat conftest.$ac_ext >&5
6664 rm -rf conftest*
6665 eval "ac_cv_func_$ac_func=no"
6667 rm -f conftest*
6670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6671 echo "$ac_t""yes" 1>&6
6672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6673 cat >> confdefs.h <<EOF
6674 #define $ac_tr_func 1
6677 else
6678 echo "$ac_t""no" 1>&6
6680 ac_wfuncs=no
6682 done
6685 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6686 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6687 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6688 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6689 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6690 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6692 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6693 echo "configure:6694: checking for $ac_func" >&5
6694 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6695 echo $ac_n "(cached) $ac_c" 1>&6
6696 else
6697 cat > conftest.$ac_ext <<EOF
6698 #line 6699 "configure"
6699 #include "confdefs.h"
6700 /* System header to define __stub macros and hopefully few prototypes,
6701 which can conflict with char $ac_func(); below. */
6702 #include <assert.h>
6703 /* Override any gcc2 internal prototype to avoid an error. */
6704 /* We use char because int might match the return type of a gcc2
6705 builtin and then its argument prototype would still apply. */
6706 char $ac_func();
6708 int main() {
6710 /* The GNU C library defines this for functions which it implements
6711 to always fail with ENOSYS. Some functions are actually named
6712 something starting with __ and the normal name is an alias. */
6713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6714 choke me
6715 #else
6716 $ac_func();
6717 #endif
6719 ; return 0; }
6721 if { (eval echo configure:6722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6722 rm -rf conftest*
6723 eval "ac_cv_func_$ac_func=yes"
6724 else
6725 echo "configure: failed program was:" >&5
6726 cat conftest.$ac_ext >&5
6727 rm -rf conftest*
6728 eval "ac_cv_func_$ac_func=no"
6730 rm -f conftest*
6733 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6734 echo "$ac_t""yes" 1>&6
6735 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6736 cat >> confdefs.h <<EOF
6737 #define $ac_tr_func 1
6740 else
6741 echo "$ac_t""no" 1>&6
6743 ac_wfuncs=no
6745 done
6748 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6749 echo "configure:6750: checking for ISO C99 wchar_t support" >&5
6750 if test x"$has_weof" = xyes &&
6751 test x"$has_wchar_minmax" = xyes &&
6752 test x"$ac_wfuncs" = xyes; then
6753 ac_isoC99_wchar_t=yes
6754 else
6755 ac_isoC99_wchar_t=no
6757 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6759 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6760 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6761 echo "configure:6762: checking for iconv.h" >&5
6762 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6763 echo $ac_n "(cached) $ac_c" 1>&6
6764 else
6765 cat > conftest.$ac_ext <<EOF
6766 #line 6767 "configure"
6767 #include "confdefs.h"
6768 #include <iconv.h>
6770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6771 { (eval echo configure:6772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6773 if test -z "$ac_err"; then
6774 rm -rf conftest*
6775 eval "ac_cv_header_$ac_safe=yes"
6776 else
6777 echo "$ac_err" >&5
6778 echo "configure: failed program was:" >&5
6779 cat conftest.$ac_ext >&5
6780 rm -rf conftest*
6781 eval "ac_cv_header_$ac_safe=no"
6783 rm -f conftest*
6785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6786 echo "$ac_t""yes" 1>&6
6787 ac_has_iconv_h=yes
6788 else
6789 echo "$ac_t""no" 1>&6
6790 ac_has_iconv_h=no
6793 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6794 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6795 echo "configure:6796: checking for langinfo.h" >&5
6796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6797 echo $ac_n "(cached) $ac_c" 1>&6
6798 else
6799 cat > conftest.$ac_ext <<EOF
6800 #line 6801 "configure"
6801 #include "confdefs.h"
6802 #include <langinfo.h>
6804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6805 { (eval echo configure:6806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6807 if test -z "$ac_err"; then
6808 rm -rf conftest*
6809 eval "ac_cv_header_$ac_safe=yes"
6810 else
6811 echo "$ac_err" >&5
6812 echo "configure: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6814 rm -rf conftest*
6815 eval "ac_cv_header_$ac_safe=no"
6817 rm -f conftest*
6819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6820 echo "$ac_t""yes" 1>&6
6821 ac_has_langinfo_h=yes
6822 else
6823 echo "$ac_t""no" 1>&6
6824 ac_has_langinfo_h=no
6828 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6829 echo "configure:6830: checking for iconv in -liconv" >&5
6830 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6832 echo $ac_n "(cached) $ac_c" 1>&6
6833 else
6834 ac_save_LIBS="$LIBS"
6835 LIBS="-liconv $LIBS"
6836 cat > conftest.$ac_ext <<EOF
6837 #line 6838 "configure"
6838 #include "confdefs.h"
6839 /* Override any gcc2 internal prototype to avoid an error. */
6840 /* We use char because int might match the return type of a gcc2
6841 builtin and then its argument prototype would still apply. */
6842 char iconv();
6844 int main() {
6845 iconv()
6846 ; return 0; }
6848 if { (eval echo configure:6849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6849 rm -rf conftest*
6850 eval "ac_cv_lib_$ac_lib_var=yes"
6851 else
6852 echo "configure: failed program was:" >&5
6853 cat conftest.$ac_ext >&5
6854 rm -rf conftest*
6855 eval "ac_cv_lib_$ac_lib_var=no"
6857 rm -f conftest*
6858 LIBS="$ac_save_LIBS"
6861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6862 echo "$ac_t""yes" 1>&6
6863 libiconv="-liconv"
6864 else
6865 echo "$ac_t""no" 1>&6
6868 ac_save_LIBS="$LIBS"
6869 LIBS="$LIBS $libiconv"
6871 for ac_func in iconv_open iconv_close iconv nl_langinfo
6873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6874 echo "configure:6875: checking for $ac_func" >&5
6875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6876 echo $ac_n "(cached) $ac_c" 1>&6
6877 else
6878 cat > conftest.$ac_ext <<EOF
6879 #line 6880 "configure"
6880 #include "confdefs.h"
6881 /* System header to define __stub macros and hopefully few prototypes,
6882 which can conflict with char $ac_func(); below. */
6883 #include <assert.h>
6884 /* Override any gcc2 internal prototype to avoid an error. */
6885 /* We use char because int might match the return type of a gcc2
6886 builtin and then its argument prototype would still apply. */
6887 char $ac_func();
6889 int main() {
6891 /* The GNU C library defines this for functions which it implements
6892 to always fail with ENOSYS. Some functions are actually named
6893 something starting with __ and the normal name is an alias. */
6894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6895 choke me
6896 #else
6897 $ac_func();
6898 #endif
6900 ; return 0; }
6902 if { (eval echo configure:6903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6903 rm -rf conftest*
6904 eval "ac_cv_func_$ac_func=yes"
6905 else
6906 echo "configure: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6908 rm -rf conftest*
6909 eval "ac_cv_func_$ac_func=no"
6911 rm -f conftest*
6914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6915 echo "$ac_t""yes" 1>&6
6916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6917 cat >> confdefs.h <<EOF
6918 #define $ac_tr_func 1
6921 ac_XPG2funcs=yes
6922 else
6923 echo "$ac_t""no" 1>&6
6924 ac_XPG2funcs=no
6926 done
6929 LIBS="$ac_save_LIBS"
6931 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6932 echo "configure:6933: checking for XPG2 wchar_t support" >&5
6933 if test x"$ac_has_iconv_h" = xyes &&
6934 test x"$ac_has_langinfo_h" = xyes &&
6935 test x"$ac_XPG2funcs" = xyes; then
6936 ac_XPG2_wchar_t=yes
6937 else
6938 ac_XPG2_wchar_t=no
6940 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6942 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6943 echo "configure:6944: checking for enabled wchar_t specializations" >&5
6944 if test x"$ac_isoC99_wchar_t" = xyes &&
6945 test x"$ac_XPG2_wchar_t" = xyes; then
6946 cat >> confdefs.h <<\EOF
6947 #define _GLIBCPP_USE_WCHAR_T 1
6950 echo "$ac_t"""yes"" 1>&6
6951 else
6952 echo "$ac_t"""no"" 1>&6
6954 else
6955 echo "configure: warning: wchar_t support disabled." 1>&2
6958 os_include_dir="os/bsd/netbsd"
6959 cat >> confdefs.h <<\EOF
6960 #define HAVE_COPYSIGN 1
6963 cat >> confdefs.h <<\EOF
6964 #define HAVE_COPYSIGNF 1
6967 cat >> confdefs.h <<\EOF
6968 #define HAVE_FINITEF 1
6971 cat >> confdefs.h <<\EOF
6972 #define HAVE_FINITE 1
6975 cat >> confdefs.h <<\EOF
6976 #define HAVE_FREXPF 1
6979 cat >> confdefs.h <<\EOF
6980 #define HAVE_HYPOTF 1
6983 cat >> confdefs.h <<\EOF
6984 #define HAVE_ISINF 1
6987 cat >> confdefs.h <<\EOF
6988 #define HAVE_ISINFF 1
6991 cat >> confdefs.h <<\EOF
6992 #define HAVE_ISNAN 1
6995 cat >> confdefs.h <<\EOF
6996 #define HAVE_ISNANF 1
6999 if test x"long_double_math_on_this_cpu" = x"yes"; then
7000 cat >> confdefs.h <<\EOF
7001 #define HAVE_FINITEL 1
7004 cat >> confdefs.h <<\EOF
7005 #define HAVE_ISINFL 1
7008 cat >> confdefs.h <<\EOF
7009 #define HAVE_ISNANL 1
7014 *-mingw32*)
7015 for ac_hdr in sys/types.h locale.h float.h
7017 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7019 echo "configure:7020: checking for $ac_hdr" >&5
7020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7021 echo $ac_n "(cached) $ac_c" 1>&6
7022 else
7023 cat > conftest.$ac_ext <<EOF
7024 #line 7025 "configure"
7025 #include "confdefs.h"
7026 #include <$ac_hdr>
7028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7029 { (eval echo configure:7030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7031 if test -z "$ac_err"; then
7032 rm -rf conftest*
7033 eval "ac_cv_header_$ac_safe=yes"
7034 else
7035 echo "$ac_err" >&5
7036 echo "configure: failed program was:" >&5
7037 cat conftest.$ac_ext >&5
7038 rm -rf conftest*
7039 eval "ac_cv_header_$ac_safe=no"
7041 rm -f conftest*
7043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7044 echo "$ac_t""yes" 1>&6
7045 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7046 cat >> confdefs.h <<EOF
7047 #define $ac_tr_hdr 1
7050 else
7051 echo "$ac_t""no" 1>&6
7053 done
7056 # If we're not using GNU ld, then there's no point in even trying these
7057 # tests. Check for that first. We should have already tested for gld
7058 # by now (in libtool), but require it now just to be safe...
7059 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7060 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7063 # The name set by libtool depends on the version of libtool. Shame on us
7064 # for depending on an impl detail, but c'est la vie. Older versions used
7065 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7066 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7067 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7068 # set (hence we're using an older libtool), then set it.
7069 if test x${with_gnu_ld+set} != xset; then
7070 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7071 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7072 with_gnu_ld=no
7073 else
7074 with_gnu_ld=$ac_cv_prog_gnu_ld
7078 # Start by getting the version number. I think the libtool test already
7079 # does some of this, but throws away the result.
7081 ldver=`$LD --version 2>/dev/null | head -1 | \
7082 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7084 glibcpp_gnu_ld_version=`echo $ldver | \
7085 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7087 # Set --gc-sections.
7088 if test "$with_gnu_ld" = "notbroken"; then
7089 # GNU ld it is! Joy and bunny rabbits!
7091 # All these tests are for C++; save the language and the compiler flags.
7092 # Need to do this so that g++ won't try to link in libstdc++
7093 ac_test_CFLAGS="${CFLAGS+set}"
7094 ac_save_CFLAGS="$CFLAGS"
7095 CFLAGS='-x c++ -Wl,--gc-sections'
7097 # Check for -Wl,--gc-sections
7098 # XXX This test is broken at the moment, as symbols required for
7099 # linking are now in libsupc++ (not built yet.....). In addition,
7100 # this test has cored on solaris in the past. In addition,
7101 # --gc-sections doesn't really work at the moment (keeps on discarding
7102 # used sections, first .eh_frame and now some of the glibc sections for
7103 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7104 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7105 echo "configure:7106: checking for ld that supports -Wl,--gc-sections" >&5
7106 if test "$cross_compiling" = yes; then
7107 ac_sectionLDflags=yes
7108 else
7109 cat > conftest.$ac_ext <<EOF
7110 #line 7111 "configure"
7111 #include "confdefs.h"
7113 int main(void)
7115 try { throw 1; }
7116 catch (...) { };
7117 return 0;
7121 if { (eval echo configure:7122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7122 then
7123 ac_sectionLDflags=yes
7124 else
7125 echo "configure: failed program was:" >&5
7126 cat conftest.$ac_ext >&5
7127 rm -fr conftest*
7128 ac_sectionLDflags=no
7130 rm -fr conftest*
7133 if test "$ac_test_CFLAGS" = set; then
7134 CFLAGS="$ac_save_CFLAGS"
7135 else
7136 # this is the suspicious part
7137 CFLAGS=''
7139 if test "$ac_sectionLDflags" = "yes"; then
7140 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7142 echo "$ac_t""$ac_sectionLDflags" 1>&6
7145 # Set linker optimization flags.
7146 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7147 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7154 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7155 echo "configure:7156: checking for main in -lm" >&5
7156 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7158 echo $ac_n "(cached) $ac_c" 1>&6
7159 else
7160 ac_save_LIBS="$LIBS"
7161 LIBS="-lm $LIBS"
7162 cat > conftest.$ac_ext <<EOF
7163 #line 7164 "configure"
7164 #include "confdefs.h"
7166 int main() {
7167 main()
7168 ; return 0; }
7170 if { (eval echo configure:7171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7171 rm -rf conftest*
7172 eval "ac_cv_lib_$ac_lib_var=yes"
7173 else
7174 echo "configure: failed program was:" >&5
7175 cat conftest.$ac_ext >&5
7176 rm -rf conftest*
7177 eval "ac_cv_lib_$ac_lib_var=no"
7179 rm -f conftest*
7180 LIBS="$ac_save_LIBS"
7183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7184 echo "$ac_t""yes" 1>&6
7185 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7186 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7187 cat >> confdefs.h <<EOF
7188 #define $ac_tr_lib 1
7191 LIBS="-lm $LIBS"
7193 else
7194 echo "$ac_t""no" 1>&6
7197 for ac_func in nan copysignf
7199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7200 echo "configure:7201: checking for $ac_func" >&5
7201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7202 echo $ac_n "(cached) $ac_c" 1>&6
7203 else
7204 cat > conftest.$ac_ext <<EOF
7205 #line 7206 "configure"
7206 #include "confdefs.h"
7207 /* System header to define __stub macros and hopefully few prototypes,
7208 which can conflict with char $ac_func(); below. */
7209 #include <assert.h>
7210 /* Override any gcc2 internal prototype to avoid an error. */
7211 /* We use char because int might match the return type of a gcc2
7212 builtin and then its argument prototype would still apply. */
7213 char $ac_func();
7215 int main() {
7217 /* The GNU C library defines this for functions which it implements
7218 to always fail with ENOSYS. Some functions are actually named
7219 something starting with __ and the normal name is an alias. */
7220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7221 choke me
7222 #else
7223 $ac_func();
7224 #endif
7226 ; return 0; }
7228 if { (eval echo configure:7229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7229 rm -rf conftest*
7230 eval "ac_cv_func_$ac_func=yes"
7231 else
7232 echo "configure: failed program was:" >&5
7233 cat conftest.$ac_ext >&5
7234 rm -rf conftest*
7235 eval "ac_cv_func_$ac_func=no"
7237 rm -f conftest*
7240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7241 echo "$ac_t""yes" 1>&6
7242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7243 cat >> confdefs.h <<EOF
7244 #define $ac_tr_func 1
7247 else
7248 echo "$ac_t""no" 1>&6
7249 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7251 done
7254 for ac_func in __signbit
7256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7257 echo "configure:7258: checking for $ac_func" >&5
7258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7259 echo $ac_n "(cached) $ac_c" 1>&6
7260 else
7261 cat > conftest.$ac_ext <<EOF
7262 #line 7263 "configure"
7263 #include "confdefs.h"
7264 /* System header to define __stub macros and hopefully few prototypes,
7265 which can conflict with char $ac_func(); below. */
7266 #include <assert.h>
7267 /* Override any gcc2 internal prototype to avoid an error. */
7268 /* We use char because int might match the return type of a gcc2
7269 builtin and then its argument prototype would still apply. */
7270 char $ac_func();
7272 int main() {
7274 /* The GNU C library defines this for functions which it implements
7275 to always fail with ENOSYS. Some functions are actually named
7276 something starting with __ and the normal name is an alias. */
7277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7278 choke me
7279 #else
7280 $ac_func();
7281 #endif
7283 ; return 0; }
7285 if { (eval echo configure:7286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7286 rm -rf conftest*
7287 eval "ac_cv_func_$ac_func=yes"
7288 else
7289 echo "configure: failed program was:" >&5
7290 cat conftest.$ac_ext >&5
7291 rm -rf conftest*
7292 eval "ac_cv_func_$ac_func=no"
7294 rm -f conftest*
7297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7298 echo "$ac_t""yes" 1>&6
7299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7300 cat >> confdefs.h <<EOF
7301 #define $ac_tr_func 1
7304 else
7305 echo "$ac_t""no" 1>&6
7306 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7308 done
7310 for ac_func in __signbitf
7312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7313 echo "configure:7314: checking for $ac_func" >&5
7314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7315 echo $ac_n "(cached) $ac_c" 1>&6
7316 else
7317 cat > conftest.$ac_ext <<EOF
7318 #line 7319 "configure"
7319 #include "confdefs.h"
7320 /* System header to define __stub macros and hopefully few prototypes,
7321 which can conflict with char $ac_func(); below. */
7322 #include <assert.h>
7323 /* Override any gcc2 internal prototype to avoid an error. */
7324 /* We use char because int might match the return type of a gcc2
7325 builtin and then its argument prototype would still apply. */
7326 char $ac_func();
7328 int main() {
7330 /* The GNU C library defines this for functions which it implements
7331 to always fail with ENOSYS. Some functions are actually named
7332 something starting with __ and the normal name is an alias. */
7333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7334 choke me
7335 #else
7336 $ac_func();
7337 #endif
7339 ; return 0; }
7341 if { (eval echo configure:7342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7342 rm -rf conftest*
7343 eval "ac_cv_func_$ac_func=yes"
7344 else
7345 echo "configure: failed program was:" >&5
7346 cat conftest.$ac_ext >&5
7347 rm -rf conftest*
7348 eval "ac_cv_func_$ac_func=no"
7350 rm -f conftest*
7353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7354 echo "$ac_t""yes" 1>&6
7355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7356 cat >> confdefs.h <<EOF
7357 #define $ac_tr_func 1
7360 else
7361 echo "$ac_t""no" 1>&6
7362 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7364 done
7367 if test x$ac_cv_func_copysignl = x"yes"; then
7368 for ac_func in __signbitl
7370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7371 echo "configure:7372: checking for $ac_func" >&5
7372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7373 echo $ac_n "(cached) $ac_c" 1>&6
7374 else
7375 cat > conftest.$ac_ext <<EOF
7376 #line 7377 "configure"
7377 #include "confdefs.h"
7378 /* System header to define __stub macros and hopefully few prototypes,
7379 which can conflict with char $ac_func(); below. */
7380 #include <assert.h>
7381 /* Override any gcc2 internal prototype to avoid an error. */
7382 /* We use char because int might match the return type of a gcc2
7383 builtin and then its argument prototype would still apply. */
7384 char $ac_func();
7386 int main() {
7388 /* The GNU C library defines this for functions which it implements
7389 to always fail with ENOSYS. Some functions are actually named
7390 something starting with __ and the normal name is an alias. */
7391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7392 choke me
7393 #else
7394 $ac_func();
7395 #endif
7397 ; return 0; }
7399 if { (eval echo configure:7400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7400 rm -rf conftest*
7401 eval "ac_cv_func_$ac_func=yes"
7402 else
7403 echo "configure: failed program was:" >&5
7404 cat conftest.$ac_ext >&5
7405 rm -rf conftest*
7406 eval "ac_cv_func_$ac_func=no"
7408 rm -f conftest*
7411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7412 echo "$ac_t""yes" 1>&6
7413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7414 cat >> confdefs.h <<EOF
7415 #define $ac_tr_func 1
7418 else
7419 echo "$ac_t""no" 1>&6
7420 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7422 done
7430 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7431 echo "configure:7432: checking for mbstate_t" >&5
7432 cat > conftest.$ac_ext <<EOF
7433 #line 7434 "configure"
7434 #include "confdefs.h"
7435 #include <wchar.h>
7436 int main() {
7437 mbstate_t teststate;
7438 ; return 0; }
7440 if { (eval echo configure:7441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7441 rm -rf conftest*
7442 have_mbstate_t=yes
7443 else
7444 echo "configure: failed program was:" >&5
7445 cat conftest.$ac_ext >&5
7446 rm -rf conftest*
7447 have_mbstate_t=no
7449 rm -f conftest*
7450 echo "$ac_t""$have_mbstate_t" 1>&6
7451 if test x"$have_mbstate_t" = xyes; then
7452 cat >> confdefs.h <<\EOF
7453 #define HAVE_MBSTATE_T 1
7458 for ac_hdr in wchar.h
7460 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7462 echo "configure:7463: checking for $ac_hdr" >&5
7463 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7464 echo $ac_n "(cached) $ac_c" 1>&6
7465 else
7466 cat > conftest.$ac_ext <<EOF
7467 #line 7468 "configure"
7468 #include "confdefs.h"
7469 #include <$ac_hdr>
7471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7472 { (eval echo configure:7473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7474 if test -z "$ac_err"; then
7475 rm -rf conftest*
7476 eval "ac_cv_header_$ac_safe=yes"
7477 else
7478 echo "$ac_err" >&5
7479 echo "configure: failed program was:" >&5
7480 cat conftest.$ac_ext >&5
7481 rm -rf conftest*
7482 eval "ac_cv_header_$ac_safe=no"
7484 rm -f conftest*
7486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7487 echo "$ac_t""yes" 1>&6
7488 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7489 cat >> confdefs.h <<EOF
7490 #define $ac_tr_hdr 1
7492 ac_has_wchar_h=yes
7493 else
7494 echo "$ac_t""no" 1>&6
7495 ac_has_wchar_h=no
7497 done
7499 for ac_hdr in wctype.h
7501 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7503 echo "configure:7504: checking for $ac_hdr" >&5
7504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7505 echo $ac_n "(cached) $ac_c" 1>&6
7506 else
7507 cat > conftest.$ac_ext <<EOF
7508 #line 7509 "configure"
7509 #include "confdefs.h"
7510 #include <$ac_hdr>
7512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7513 { (eval echo configure:7514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7515 if test -z "$ac_err"; then
7516 rm -rf conftest*
7517 eval "ac_cv_header_$ac_safe=yes"
7518 else
7519 echo "$ac_err" >&5
7520 echo "configure: failed program was:" >&5
7521 cat conftest.$ac_ext >&5
7522 rm -rf conftest*
7523 eval "ac_cv_header_$ac_safe=no"
7525 rm -f conftest*
7527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7528 echo "$ac_t""yes" 1>&6
7529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7530 cat >> confdefs.h <<EOF
7531 #define $ac_tr_hdr 1
7533 ac_has_wctype_h=yes
7534 else
7535 echo "$ac_t""no" 1>&6
7536 ac_has_wctype_h=no
7538 done
7541 if test x"$ac_has_wchar_h" = xyes &&
7542 test x"$ac_has_wctype_h" = xyes &&
7543 test x"$enable_c_mbchar" != xno; then
7545 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7546 echo "configure:7547: checking for WCHAR_MIN and WCHAR_MAX" >&5
7547 cat > conftest.$ac_ext <<EOF
7548 #line 7549 "configure"
7549 #include "confdefs.h"
7550 #include <wchar.h>
7551 int main() {
7552 int i = WCHAR_MIN; int j = WCHAR_MAX;
7553 ; return 0; }
7555 if { (eval echo configure:7556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7556 rm -rf conftest*
7557 has_wchar_minmax=yes
7558 else
7559 echo "configure: failed program was:" >&5
7560 cat conftest.$ac_ext >&5
7561 rm -rf conftest*
7562 has_wchar_minmax=no
7564 rm -f conftest*
7565 echo "$ac_t""$has_wchar_minmax" 1>&6
7567 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7568 echo "configure:7569: checking for WEOF" >&5
7569 cat > conftest.$ac_ext <<EOF
7570 #line 7571 "configure"
7571 #include "confdefs.h"
7573 #include <wchar.h>
7574 #include <stddef.h>
7575 int main() {
7576 wint_t i = WEOF;
7577 ; return 0; }
7579 if { (eval echo configure:7580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7580 rm -rf conftest*
7581 has_weof=yes
7582 else
7583 echo "configure: failed program was:" >&5
7584 cat conftest.$ac_ext >&5
7585 rm -rf conftest*
7586 has_weof=no
7588 rm -f conftest*
7589 echo "$ac_t""$has_weof" 1>&6
7591 ac_wfuncs=yes
7592 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7595 echo "configure:7596: checking for $ac_func" >&5
7596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7597 echo $ac_n "(cached) $ac_c" 1>&6
7598 else
7599 cat > conftest.$ac_ext <<EOF
7600 #line 7601 "configure"
7601 #include "confdefs.h"
7602 /* System header to define __stub macros and hopefully few prototypes,
7603 which can conflict with char $ac_func(); below. */
7604 #include <assert.h>
7605 /* Override any gcc2 internal prototype to avoid an error. */
7606 /* We use char because int might match the return type of a gcc2
7607 builtin and then its argument prototype would still apply. */
7608 char $ac_func();
7610 int main() {
7612 /* The GNU C library defines this for functions which it implements
7613 to always fail with ENOSYS. Some functions are actually named
7614 something starting with __ and the normal name is an alias. */
7615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7616 choke me
7617 #else
7618 $ac_func();
7619 #endif
7621 ; return 0; }
7623 if { (eval echo configure:7624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7624 rm -rf conftest*
7625 eval "ac_cv_func_$ac_func=yes"
7626 else
7627 echo "configure: failed program was:" >&5
7628 cat conftest.$ac_ext >&5
7629 rm -rf conftest*
7630 eval "ac_cv_func_$ac_func=no"
7632 rm -f conftest*
7635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7636 echo "$ac_t""yes" 1>&6
7637 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7638 cat >> confdefs.h <<EOF
7639 #define $ac_tr_func 1
7642 else
7643 echo "$ac_t""no" 1>&6
7645 ac_wfuncs=no
7647 done
7650 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7651 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7652 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7653 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7654 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7655 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7658 echo "configure:7659: checking for $ac_func" >&5
7659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7660 echo $ac_n "(cached) $ac_c" 1>&6
7661 else
7662 cat > conftest.$ac_ext <<EOF
7663 #line 7664 "configure"
7664 #include "confdefs.h"
7665 /* System header to define __stub macros and hopefully few prototypes,
7666 which can conflict with char $ac_func(); below. */
7667 #include <assert.h>
7668 /* Override any gcc2 internal prototype to avoid an error. */
7669 /* We use char because int might match the return type of a gcc2
7670 builtin and then its argument prototype would still apply. */
7671 char $ac_func();
7673 int main() {
7675 /* The GNU C library defines this for functions which it implements
7676 to always fail with ENOSYS. Some functions are actually named
7677 something starting with __ and the normal name is an alias. */
7678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7679 choke me
7680 #else
7681 $ac_func();
7682 #endif
7684 ; return 0; }
7686 if { (eval echo configure:7687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7687 rm -rf conftest*
7688 eval "ac_cv_func_$ac_func=yes"
7689 else
7690 echo "configure: failed program was:" >&5
7691 cat conftest.$ac_ext >&5
7692 rm -rf conftest*
7693 eval "ac_cv_func_$ac_func=no"
7695 rm -f conftest*
7698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7699 echo "$ac_t""yes" 1>&6
7700 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7701 cat >> confdefs.h <<EOF
7702 #define $ac_tr_func 1
7705 else
7706 echo "$ac_t""no" 1>&6
7708 ac_wfuncs=no
7710 done
7713 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7714 echo "configure:7715: checking for ISO C99 wchar_t support" >&5
7715 if test x"$has_weof" = xyes &&
7716 test x"$has_wchar_minmax" = xyes &&
7717 test x"$ac_wfuncs" = xyes; then
7718 ac_isoC99_wchar_t=yes
7719 else
7720 ac_isoC99_wchar_t=no
7722 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7724 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7725 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7726 echo "configure:7727: checking for iconv.h" >&5
7727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7729 else
7730 cat > conftest.$ac_ext <<EOF
7731 #line 7732 "configure"
7732 #include "confdefs.h"
7733 #include <iconv.h>
7735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7736 { (eval echo configure:7737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7738 if test -z "$ac_err"; then
7739 rm -rf conftest*
7740 eval "ac_cv_header_$ac_safe=yes"
7741 else
7742 echo "$ac_err" >&5
7743 echo "configure: failed program was:" >&5
7744 cat conftest.$ac_ext >&5
7745 rm -rf conftest*
7746 eval "ac_cv_header_$ac_safe=no"
7748 rm -f conftest*
7750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7751 echo "$ac_t""yes" 1>&6
7752 ac_has_iconv_h=yes
7753 else
7754 echo "$ac_t""no" 1>&6
7755 ac_has_iconv_h=no
7758 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7759 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7760 echo "configure:7761: checking for langinfo.h" >&5
7761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7762 echo $ac_n "(cached) $ac_c" 1>&6
7763 else
7764 cat > conftest.$ac_ext <<EOF
7765 #line 7766 "configure"
7766 #include "confdefs.h"
7767 #include <langinfo.h>
7769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7770 { (eval echo configure:7771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7772 if test -z "$ac_err"; then
7773 rm -rf conftest*
7774 eval "ac_cv_header_$ac_safe=yes"
7775 else
7776 echo "$ac_err" >&5
7777 echo "configure: failed program was:" >&5
7778 cat conftest.$ac_ext >&5
7779 rm -rf conftest*
7780 eval "ac_cv_header_$ac_safe=no"
7782 rm -f conftest*
7784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7785 echo "$ac_t""yes" 1>&6
7786 ac_has_langinfo_h=yes
7787 else
7788 echo "$ac_t""no" 1>&6
7789 ac_has_langinfo_h=no
7793 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7794 echo "configure:7795: checking for iconv in -liconv" >&5
7795 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7796 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7797 echo $ac_n "(cached) $ac_c" 1>&6
7798 else
7799 ac_save_LIBS="$LIBS"
7800 LIBS="-liconv $LIBS"
7801 cat > conftest.$ac_ext <<EOF
7802 #line 7803 "configure"
7803 #include "confdefs.h"
7804 /* Override any gcc2 internal prototype to avoid an error. */
7805 /* We use char because int might match the return type of a gcc2
7806 builtin and then its argument prototype would still apply. */
7807 char iconv();
7809 int main() {
7810 iconv()
7811 ; return 0; }
7813 if { (eval echo configure:7814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7814 rm -rf conftest*
7815 eval "ac_cv_lib_$ac_lib_var=yes"
7816 else
7817 echo "configure: failed program was:" >&5
7818 cat conftest.$ac_ext >&5
7819 rm -rf conftest*
7820 eval "ac_cv_lib_$ac_lib_var=no"
7822 rm -f conftest*
7823 LIBS="$ac_save_LIBS"
7826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7827 echo "$ac_t""yes" 1>&6
7828 libiconv="-liconv"
7829 else
7830 echo "$ac_t""no" 1>&6
7833 ac_save_LIBS="$LIBS"
7834 LIBS="$LIBS $libiconv"
7836 for ac_func in iconv_open iconv_close iconv nl_langinfo
7838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7839 echo "configure:7840: checking for $ac_func" >&5
7840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7841 echo $ac_n "(cached) $ac_c" 1>&6
7842 else
7843 cat > conftest.$ac_ext <<EOF
7844 #line 7845 "configure"
7845 #include "confdefs.h"
7846 /* System header to define __stub macros and hopefully few prototypes,
7847 which can conflict with char $ac_func(); below. */
7848 #include <assert.h>
7849 /* Override any gcc2 internal prototype to avoid an error. */
7850 /* We use char because int might match the return type of a gcc2
7851 builtin and then its argument prototype would still apply. */
7852 char $ac_func();
7854 int main() {
7856 /* The GNU C library defines this for functions which it implements
7857 to always fail with ENOSYS. Some functions are actually named
7858 something starting with __ and the normal name is an alias. */
7859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7860 choke me
7861 #else
7862 $ac_func();
7863 #endif
7865 ; return 0; }
7867 if { (eval echo configure:7868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7868 rm -rf conftest*
7869 eval "ac_cv_func_$ac_func=yes"
7870 else
7871 echo "configure: failed program was:" >&5
7872 cat conftest.$ac_ext >&5
7873 rm -rf conftest*
7874 eval "ac_cv_func_$ac_func=no"
7876 rm -f conftest*
7879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7880 echo "$ac_t""yes" 1>&6
7881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7882 cat >> confdefs.h <<EOF
7883 #define $ac_tr_func 1
7886 ac_XPG2funcs=yes
7887 else
7888 echo "$ac_t""no" 1>&6
7889 ac_XPG2funcs=no
7891 done
7894 LIBS="$ac_save_LIBS"
7896 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7897 echo "configure:7898: checking for XPG2 wchar_t support" >&5
7898 if test x"$ac_has_iconv_h" = xyes &&
7899 test x"$ac_has_langinfo_h" = xyes &&
7900 test x"$ac_XPG2funcs" = xyes; then
7901 ac_XPG2_wchar_t=yes
7902 else
7903 ac_XPG2_wchar_t=no
7905 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7907 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7908 echo "configure:7909: checking for enabled wchar_t specializations" >&5
7909 if test x"$ac_isoC99_wchar_t" = xyes &&
7910 test x"$ac_XPG2_wchar_t" = xyes; then
7911 cat >> confdefs.h <<\EOF
7912 #define _GLIBCPP_USE_WCHAR_T 1
7915 echo "$ac_t"""yes"" 1>&6
7916 else
7917 echo "$ac_t"""no"" 1>&6
7919 else
7920 echo "configure: warning: wchar_t support disabled." 1>&2
7923 os_include_dir="os/mingw32"
7925 *-windiss*)
7926 os_include_dir="os/windiss"
7928 *-qnx6.[12]*)
7929 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7932 # If we're not using GNU ld, then there's no point in even trying these
7933 # tests. Check for that first. We should have already tested for gld
7934 # by now (in libtool), but require it now just to be safe...
7935 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7936 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7939 # The name set by libtool depends on the version of libtool. Shame on us
7940 # for depending on an impl detail, but c'est la vie. Older versions used
7941 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7942 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7943 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7944 # set (hence we're using an older libtool), then set it.
7945 if test x${with_gnu_ld+set} != xset; then
7946 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7947 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7948 with_gnu_ld=no
7949 else
7950 with_gnu_ld=$ac_cv_prog_gnu_ld
7954 # Start by getting the version number. I think the libtool test already
7955 # does some of this, but throws away the result.
7957 ldver=`$LD --version 2>/dev/null | head -1 | \
7958 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7960 glibcpp_gnu_ld_version=`echo $ldver | \
7961 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7963 # Set --gc-sections.
7964 if test "$with_gnu_ld" = "notbroken"; then
7965 # GNU ld it is! Joy and bunny rabbits!
7967 # All these tests are for C++; save the language and the compiler flags.
7968 # Need to do this so that g++ won't try to link in libstdc++
7969 ac_test_CFLAGS="${CFLAGS+set}"
7970 ac_save_CFLAGS="$CFLAGS"
7971 CFLAGS='-x c++ -Wl,--gc-sections'
7973 # Check for -Wl,--gc-sections
7974 # XXX This test is broken at the moment, as symbols required for
7975 # linking are now in libsupc++ (not built yet.....). In addition,
7976 # this test has cored on solaris in the past. In addition,
7977 # --gc-sections doesn't really work at the moment (keeps on discarding
7978 # used sections, first .eh_frame and now some of the glibc sections for
7979 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7980 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7981 echo "configure:7982: checking for ld that supports -Wl,--gc-sections" >&5
7982 if test "$cross_compiling" = yes; then
7983 ac_sectionLDflags=yes
7984 else
7985 cat > conftest.$ac_ext <<EOF
7986 #line 7987 "configure"
7987 #include "confdefs.h"
7989 int main(void)
7991 try { throw 1; }
7992 catch (...) { };
7993 return 0;
7997 if { (eval echo configure:7998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7998 then
7999 ac_sectionLDflags=yes
8000 else
8001 echo "configure: failed program was:" >&5
8002 cat conftest.$ac_ext >&5
8003 rm -fr conftest*
8004 ac_sectionLDflags=no
8006 rm -fr conftest*
8009 if test "$ac_test_CFLAGS" = set; then
8010 CFLAGS="$ac_save_CFLAGS"
8011 else
8012 # this is the suspicious part
8013 CFLAGS=''
8015 if test "$ac_sectionLDflags" = "yes"; then
8016 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8018 echo "$ac_t""$ac_sectionLDflags" 1>&6
8021 # Set linker optimization flags.
8022 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8023 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8030 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8031 echo "configure:8032: checking for main in -lm" >&5
8032 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8034 echo $ac_n "(cached) $ac_c" 1>&6
8035 else
8036 ac_save_LIBS="$LIBS"
8037 LIBS="-lm $LIBS"
8038 cat > conftest.$ac_ext <<EOF
8039 #line 8040 "configure"
8040 #include "confdefs.h"
8042 int main() {
8043 main()
8044 ; return 0; }
8046 if { (eval echo configure:8047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8047 rm -rf conftest*
8048 eval "ac_cv_lib_$ac_lib_var=yes"
8049 else
8050 echo "configure: failed program was:" >&5
8051 cat conftest.$ac_ext >&5
8052 rm -rf conftest*
8053 eval "ac_cv_lib_$ac_lib_var=no"
8055 rm -f conftest*
8056 LIBS="$ac_save_LIBS"
8059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8060 echo "$ac_t""yes" 1>&6
8061 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8062 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8063 cat >> confdefs.h <<EOF
8064 #define $ac_tr_lib 1
8067 LIBS="-lm $LIBS"
8069 else
8070 echo "$ac_t""no" 1>&6
8073 for ac_func in nan copysignf
8075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8076 echo "configure:8077: checking for $ac_func" >&5
8077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8078 echo $ac_n "(cached) $ac_c" 1>&6
8079 else
8080 cat > conftest.$ac_ext <<EOF
8081 #line 8082 "configure"
8082 #include "confdefs.h"
8083 /* System header to define __stub macros and hopefully few prototypes,
8084 which can conflict with char $ac_func(); below. */
8085 #include <assert.h>
8086 /* Override any gcc2 internal prototype to avoid an error. */
8087 /* We use char because int might match the return type of a gcc2
8088 builtin and then its argument prototype would still apply. */
8089 char $ac_func();
8091 int main() {
8093 /* The GNU C library defines this for functions which it implements
8094 to always fail with ENOSYS. Some functions are actually named
8095 something starting with __ and the normal name is an alias. */
8096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8097 choke me
8098 #else
8099 $ac_func();
8100 #endif
8102 ; return 0; }
8104 if { (eval echo configure:8105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8105 rm -rf conftest*
8106 eval "ac_cv_func_$ac_func=yes"
8107 else
8108 echo "configure: failed program was:" >&5
8109 cat conftest.$ac_ext >&5
8110 rm -rf conftest*
8111 eval "ac_cv_func_$ac_func=no"
8113 rm -f conftest*
8116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8117 echo "$ac_t""yes" 1>&6
8118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8119 cat >> confdefs.h <<EOF
8120 #define $ac_tr_func 1
8123 else
8124 echo "$ac_t""no" 1>&6
8125 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8127 done
8130 for ac_func in __signbit
8132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8133 echo "configure:8134: checking for $ac_func" >&5
8134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8135 echo $ac_n "(cached) $ac_c" 1>&6
8136 else
8137 cat > conftest.$ac_ext <<EOF
8138 #line 8139 "configure"
8139 #include "confdefs.h"
8140 /* System header to define __stub macros and hopefully few prototypes,
8141 which can conflict with char $ac_func(); below. */
8142 #include <assert.h>
8143 /* Override any gcc2 internal prototype to avoid an error. */
8144 /* We use char because int might match the return type of a gcc2
8145 builtin and then its argument prototype would still apply. */
8146 char $ac_func();
8148 int main() {
8150 /* The GNU C library defines this for functions which it implements
8151 to always fail with ENOSYS. Some functions are actually named
8152 something starting with __ and the normal name is an alias. */
8153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8154 choke me
8155 #else
8156 $ac_func();
8157 #endif
8159 ; return 0; }
8161 if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8162 rm -rf conftest*
8163 eval "ac_cv_func_$ac_func=yes"
8164 else
8165 echo "configure: failed program was:" >&5
8166 cat conftest.$ac_ext >&5
8167 rm -rf conftest*
8168 eval "ac_cv_func_$ac_func=no"
8170 rm -f conftest*
8173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8174 echo "$ac_t""yes" 1>&6
8175 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8176 cat >> confdefs.h <<EOF
8177 #define $ac_tr_func 1
8180 else
8181 echo "$ac_t""no" 1>&6
8182 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8184 done
8186 for ac_func in __signbitf
8188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8189 echo "configure:8190: checking for $ac_func" >&5
8190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8191 echo $ac_n "(cached) $ac_c" 1>&6
8192 else
8193 cat > conftest.$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 /* System header to define __stub macros and hopefully few prototypes,
8197 which can conflict with char $ac_func(); below. */
8198 #include <assert.h>
8199 /* Override any gcc2 internal prototype to avoid an error. */
8200 /* We use char because int might match the return type of a gcc2
8201 builtin and then its argument prototype would still apply. */
8202 char $ac_func();
8204 int main() {
8206 /* The GNU C library defines this for functions which it implements
8207 to always fail with ENOSYS. Some functions are actually named
8208 something starting with __ and the normal name is an alias. */
8209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8210 choke me
8211 #else
8212 $ac_func();
8213 #endif
8215 ; return 0; }
8217 if { (eval echo configure:8218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8218 rm -rf conftest*
8219 eval "ac_cv_func_$ac_func=yes"
8220 else
8221 echo "configure: failed program was:" >&5
8222 cat conftest.$ac_ext >&5
8223 rm -rf conftest*
8224 eval "ac_cv_func_$ac_func=no"
8226 rm -f conftest*
8229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8230 echo "$ac_t""yes" 1>&6
8231 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8232 cat >> confdefs.h <<EOF
8233 #define $ac_tr_func 1
8236 else
8237 echo "$ac_t""no" 1>&6
8238 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8240 done
8243 if test x$ac_cv_func_copysignl = x"yes"; then
8244 for ac_func in __signbitl
8246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8247 echo "configure:8248: checking for $ac_func" >&5
8248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8249 echo $ac_n "(cached) $ac_c" 1>&6
8250 else
8251 cat > conftest.$ac_ext <<EOF
8252 #line 8253 "configure"
8253 #include "confdefs.h"
8254 /* System header to define __stub macros and hopefully few prototypes,
8255 which can conflict with char $ac_func(); below. */
8256 #include <assert.h>
8257 /* Override any gcc2 internal prototype to avoid an error. */
8258 /* We use char because int might match the return type of a gcc2
8259 builtin and then its argument prototype would still apply. */
8260 char $ac_func();
8262 int main() {
8264 /* The GNU C library defines this for functions which it implements
8265 to always fail with ENOSYS. Some functions are actually named
8266 something starting with __ and the normal name is an alias. */
8267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8268 choke me
8269 #else
8270 $ac_func();
8271 #endif
8273 ; return 0; }
8275 if { (eval echo configure:8276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8276 rm -rf conftest*
8277 eval "ac_cv_func_$ac_func=yes"
8278 else
8279 echo "configure: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8281 rm -rf conftest*
8282 eval "ac_cv_func_$ac_func=no"
8284 rm -f conftest*
8287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8288 echo "$ac_t""yes" 1>&6
8289 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8290 cat >> confdefs.h <<EOF
8291 #define $ac_tr_func 1
8294 else
8295 echo "$ac_t""no" 1>&6
8296 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8298 done
8306 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8307 echo "configure:8308: checking for mbstate_t" >&5
8308 cat > conftest.$ac_ext <<EOF
8309 #line 8310 "configure"
8310 #include "confdefs.h"
8311 #include <wchar.h>
8312 int main() {
8313 mbstate_t teststate;
8314 ; return 0; }
8316 if { (eval echo configure:8317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8317 rm -rf conftest*
8318 have_mbstate_t=yes
8319 else
8320 echo "configure: failed program was:" >&5
8321 cat conftest.$ac_ext >&5
8322 rm -rf conftest*
8323 have_mbstate_t=no
8325 rm -f conftest*
8326 echo "$ac_t""$have_mbstate_t" 1>&6
8327 if test x"$have_mbstate_t" = xyes; then
8328 cat >> confdefs.h <<\EOF
8329 #define HAVE_MBSTATE_T 1
8334 for ac_hdr in wchar.h
8336 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8337 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8338 echo "configure:8339: checking for $ac_hdr" >&5
8339 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8340 echo $ac_n "(cached) $ac_c" 1>&6
8341 else
8342 cat > conftest.$ac_ext <<EOF
8343 #line 8344 "configure"
8344 #include "confdefs.h"
8345 #include <$ac_hdr>
8347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8348 { (eval echo configure:8349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8350 if test -z "$ac_err"; then
8351 rm -rf conftest*
8352 eval "ac_cv_header_$ac_safe=yes"
8353 else
8354 echo "$ac_err" >&5
8355 echo "configure: failed program was:" >&5
8356 cat conftest.$ac_ext >&5
8357 rm -rf conftest*
8358 eval "ac_cv_header_$ac_safe=no"
8360 rm -f conftest*
8362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8363 echo "$ac_t""yes" 1>&6
8364 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8365 cat >> confdefs.h <<EOF
8366 #define $ac_tr_hdr 1
8368 ac_has_wchar_h=yes
8369 else
8370 echo "$ac_t""no" 1>&6
8371 ac_has_wchar_h=no
8373 done
8375 for ac_hdr in wctype.h
8377 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8378 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8379 echo "configure:8380: checking for $ac_hdr" >&5
8380 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8381 echo $ac_n "(cached) $ac_c" 1>&6
8382 else
8383 cat > conftest.$ac_ext <<EOF
8384 #line 8385 "configure"
8385 #include "confdefs.h"
8386 #include <$ac_hdr>
8388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8389 { (eval echo configure:8390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8391 if test -z "$ac_err"; then
8392 rm -rf conftest*
8393 eval "ac_cv_header_$ac_safe=yes"
8394 else
8395 echo "$ac_err" >&5
8396 echo "configure: failed program was:" >&5
8397 cat conftest.$ac_ext >&5
8398 rm -rf conftest*
8399 eval "ac_cv_header_$ac_safe=no"
8401 rm -f conftest*
8403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8404 echo "$ac_t""yes" 1>&6
8405 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8406 cat >> confdefs.h <<EOF
8407 #define $ac_tr_hdr 1
8409 ac_has_wctype_h=yes
8410 else
8411 echo "$ac_t""no" 1>&6
8412 ac_has_wctype_h=no
8414 done
8417 if test x"$ac_has_wchar_h" = xyes &&
8418 test x"$ac_has_wctype_h" = xyes &&
8419 test x"$enable_c_mbchar" != xno; then
8421 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8422 echo "configure:8423: checking for WCHAR_MIN and WCHAR_MAX" >&5
8423 cat > conftest.$ac_ext <<EOF
8424 #line 8425 "configure"
8425 #include "confdefs.h"
8426 #include <wchar.h>
8427 int main() {
8428 int i = WCHAR_MIN; int j = WCHAR_MAX;
8429 ; return 0; }
8431 if { (eval echo configure:8432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8432 rm -rf conftest*
8433 has_wchar_minmax=yes
8434 else
8435 echo "configure: failed program was:" >&5
8436 cat conftest.$ac_ext >&5
8437 rm -rf conftest*
8438 has_wchar_minmax=no
8440 rm -f conftest*
8441 echo "$ac_t""$has_wchar_minmax" 1>&6
8443 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8444 echo "configure:8445: checking for WEOF" >&5
8445 cat > conftest.$ac_ext <<EOF
8446 #line 8447 "configure"
8447 #include "confdefs.h"
8449 #include <wchar.h>
8450 #include <stddef.h>
8451 int main() {
8452 wint_t i = WEOF;
8453 ; return 0; }
8455 if { (eval echo configure:8456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8456 rm -rf conftest*
8457 has_weof=yes
8458 else
8459 echo "configure: failed program was:" >&5
8460 cat conftest.$ac_ext >&5
8461 rm -rf conftest*
8462 has_weof=no
8464 rm -f conftest*
8465 echo "$ac_t""$has_weof" 1>&6
8467 ac_wfuncs=yes
8468 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
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
8521 ac_wfuncs=no
8523 done
8526 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8527 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8528 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8529 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8530 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8531 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8534 echo "configure:8535: checking for $ac_func" >&5
8535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8536 echo $ac_n "(cached) $ac_c" 1>&6
8537 else
8538 cat > conftest.$ac_ext <<EOF
8539 #line 8540 "configure"
8540 #include "confdefs.h"
8541 /* System header to define __stub macros and hopefully few prototypes,
8542 which can conflict with char $ac_func(); below. */
8543 #include <assert.h>
8544 /* Override any gcc2 internal prototype to avoid an error. */
8545 /* We use char because int might match the return type of a gcc2
8546 builtin and then its argument prototype would still apply. */
8547 char $ac_func();
8549 int main() {
8551 /* The GNU C library defines this for functions which it implements
8552 to always fail with ENOSYS. Some functions are actually named
8553 something starting with __ and the normal name is an alias. */
8554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8555 choke me
8556 #else
8557 $ac_func();
8558 #endif
8560 ; return 0; }
8562 if { (eval echo configure:8563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8563 rm -rf conftest*
8564 eval "ac_cv_func_$ac_func=yes"
8565 else
8566 echo "configure: failed program was:" >&5
8567 cat conftest.$ac_ext >&5
8568 rm -rf conftest*
8569 eval "ac_cv_func_$ac_func=no"
8571 rm -f conftest*
8574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8575 echo "$ac_t""yes" 1>&6
8576 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8577 cat >> confdefs.h <<EOF
8578 #define $ac_tr_func 1
8581 else
8582 echo "$ac_t""no" 1>&6
8584 ac_wfuncs=no
8586 done
8589 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8590 echo "configure:8591: checking for ISO C99 wchar_t support" >&5
8591 if test x"$has_weof" = xyes &&
8592 test x"$has_wchar_minmax" = xyes &&
8593 test x"$ac_wfuncs" = xyes; then
8594 ac_isoC99_wchar_t=yes
8595 else
8596 ac_isoC99_wchar_t=no
8598 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8600 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8601 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8602 echo "configure:8603: checking for iconv.h" >&5
8603 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8604 echo $ac_n "(cached) $ac_c" 1>&6
8605 else
8606 cat > conftest.$ac_ext <<EOF
8607 #line 8608 "configure"
8608 #include "confdefs.h"
8609 #include <iconv.h>
8611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8612 { (eval echo configure:8613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8614 if test -z "$ac_err"; then
8615 rm -rf conftest*
8616 eval "ac_cv_header_$ac_safe=yes"
8617 else
8618 echo "$ac_err" >&5
8619 echo "configure: failed program was:" >&5
8620 cat conftest.$ac_ext >&5
8621 rm -rf conftest*
8622 eval "ac_cv_header_$ac_safe=no"
8624 rm -f conftest*
8626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8627 echo "$ac_t""yes" 1>&6
8628 ac_has_iconv_h=yes
8629 else
8630 echo "$ac_t""no" 1>&6
8631 ac_has_iconv_h=no
8634 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8635 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8636 echo "configure:8637: checking for langinfo.h" >&5
8637 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8638 echo $ac_n "(cached) $ac_c" 1>&6
8639 else
8640 cat > conftest.$ac_ext <<EOF
8641 #line 8642 "configure"
8642 #include "confdefs.h"
8643 #include <langinfo.h>
8645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8646 { (eval echo configure:8647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8648 if test -z "$ac_err"; then
8649 rm -rf conftest*
8650 eval "ac_cv_header_$ac_safe=yes"
8651 else
8652 echo "$ac_err" >&5
8653 echo "configure: failed program was:" >&5
8654 cat conftest.$ac_ext >&5
8655 rm -rf conftest*
8656 eval "ac_cv_header_$ac_safe=no"
8658 rm -f conftest*
8660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8661 echo "$ac_t""yes" 1>&6
8662 ac_has_langinfo_h=yes
8663 else
8664 echo "$ac_t""no" 1>&6
8665 ac_has_langinfo_h=no
8669 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8670 echo "configure:8671: checking for iconv in -liconv" >&5
8671 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8673 echo $ac_n "(cached) $ac_c" 1>&6
8674 else
8675 ac_save_LIBS="$LIBS"
8676 LIBS="-liconv $LIBS"
8677 cat > conftest.$ac_ext <<EOF
8678 #line 8679 "configure"
8679 #include "confdefs.h"
8680 /* Override any gcc2 internal prototype to avoid an error. */
8681 /* We use char because int might match the return type of a gcc2
8682 builtin and then its argument prototype would still apply. */
8683 char iconv();
8685 int main() {
8686 iconv()
8687 ; return 0; }
8689 if { (eval echo configure:8690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8690 rm -rf conftest*
8691 eval "ac_cv_lib_$ac_lib_var=yes"
8692 else
8693 echo "configure: failed program was:" >&5
8694 cat conftest.$ac_ext >&5
8695 rm -rf conftest*
8696 eval "ac_cv_lib_$ac_lib_var=no"
8698 rm -f conftest*
8699 LIBS="$ac_save_LIBS"
8702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8703 echo "$ac_t""yes" 1>&6
8704 libiconv="-liconv"
8705 else
8706 echo "$ac_t""no" 1>&6
8709 ac_save_LIBS="$LIBS"
8710 LIBS="$LIBS $libiconv"
8712 for ac_func in iconv_open iconv_close iconv nl_langinfo
8714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8715 echo "configure:8716: checking for $ac_func" >&5
8716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8717 echo $ac_n "(cached) $ac_c" 1>&6
8718 else
8719 cat > conftest.$ac_ext <<EOF
8720 #line 8721 "configure"
8721 #include "confdefs.h"
8722 /* System header to define __stub macros and hopefully few prototypes,
8723 which can conflict with char $ac_func(); below. */
8724 #include <assert.h>
8725 /* Override any gcc2 internal prototype to avoid an error. */
8726 /* We use char because int might match the return type of a gcc2
8727 builtin and then its argument prototype would still apply. */
8728 char $ac_func();
8730 int main() {
8732 /* The GNU C library defines this for functions which it implements
8733 to always fail with ENOSYS. Some functions are actually named
8734 something starting with __ and the normal name is an alias. */
8735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8736 choke me
8737 #else
8738 $ac_func();
8739 #endif
8741 ; return 0; }
8743 if { (eval echo configure:8744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8744 rm -rf conftest*
8745 eval "ac_cv_func_$ac_func=yes"
8746 else
8747 echo "configure: failed program was:" >&5
8748 cat conftest.$ac_ext >&5
8749 rm -rf conftest*
8750 eval "ac_cv_func_$ac_func=no"
8752 rm -f conftest*
8755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8756 echo "$ac_t""yes" 1>&6
8757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8758 cat >> confdefs.h <<EOF
8759 #define $ac_tr_func 1
8762 ac_XPG2funcs=yes
8763 else
8764 echo "$ac_t""no" 1>&6
8765 ac_XPG2funcs=no
8767 done
8770 LIBS="$ac_save_LIBS"
8772 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8773 echo "configure:8774: checking for XPG2 wchar_t support" >&5
8774 if test x"$ac_has_iconv_h" = xyes &&
8775 test x"$ac_has_langinfo_h" = xyes &&
8776 test x"$ac_XPG2funcs" = xyes; then
8777 ac_XPG2_wchar_t=yes
8778 else
8779 ac_XPG2_wchar_t=no
8781 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8783 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8784 echo "configure:8785: checking for enabled wchar_t specializations" >&5
8785 if test x"$ac_isoC99_wchar_t" = xyes &&
8786 test x"$ac_XPG2_wchar_t" = xyes; then
8787 cat >> confdefs.h <<\EOF
8788 #define _GLIBCPP_USE_WCHAR_T 1
8791 echo "$ac_t"""yes"" 1>&6
8792 else
8793 echo "$ac_t"""no"" 1>&6
8795 else
8796 echo "configure: warning: wchar_t support disabled." 1>&2
8799 os_include_dir="os/qnx/qnx6.1"
8800 cat >> confdefs.h <<\EOF
8801 #define HAVE_COSF 1
8804 cat >> confdefs.h <<\EOF
8805 #define HAVE_COSL 1
8808 cat >> confdefs.h <<\EOF
8809 #define HAVE_COSHF 1
8812 cat >> confdefs.h <<\EOF
8813 #define HAVE_COSHL 1
8816 cat >> confdefs.h <<\EOF
8817 #define HAVE_LOGF 1
8820 cat >> confdefs.h <<\EOF
8821 #define HAVE_LOGL 1
8824 cat >> confdefs.h <<\EOF
8825 #define HAVE_LOG10F 1
8828 cat >> confdefs.h <<\EOF
8829 #define HAVE_LOG10L 1
8832 cat >> confdefs.h <<\EOF
8833 #define HAVE_SINF 1
8836 cat >> confdefs.h <<\EOF
8837 #define HAVE_SINL 1
8840 cat >> confdefs.h <<\EOF
8841 #define HAVE_SINHF 1
8844 cat >> confdefs.h <<\EOF
8845 #define HAVE_SINHL 1
8850 os_include_dir="os/newlib"
8851 cat >> confdefs.h <<\EOF
8852 #define HAVE_HYPOT 1
8856 esac
8858 case "$target_alias" in
8859 *-mingw32*)
8861 *-windiss*)
8862 cat >> confdefs.h <<\EOF
8863 #define HAVE_ACOSF 1
8866 cat >> confdefs.h <<\EOF
8867 #define HAVE_ASINF 1
8870 cat >> confdefs.h <<\EOF
8871 #define HAVE_ATAN2F 1
8874 cat >> confdefs.h <<\EOF
8875 #define HAVE_ATANF 1
8878 cat >> confdefs.h <<\EOF
8879 #define HAVE_CEILF 1
8882 cat >> confdefs.h <<\EOF
8883 #define HAVE_COPYSIGN 1
8886 cat >> confdefs.h <<\EOF
8887 #define HAVE_COPYSIGNF 1
8890 cat >> confdefs.h <<\EOF
8891 #define HAVE_COSF 1
8894 cat >> confdefs.h <<\EOF
8895 #define HAVE_COSHF 1
8898 cat >> confdefs.h <<\EOF
8899 #define HAVE_EXPF 1
8902 cat >> confdefs.h <<\EOF
8903 #define HAVE_FABSF 1
8906 cat >> confdefs.h <<\EOF
8907 #define HAVE_FLOORF 1
8910 cat >> confdefs.h <<\EOF
8911 #define HAVE_FMODF 1
8914 cat >> confdefs.h <<\EOF
8915 #define HAVE_FREXPF 1
8918 cat >> confdefs.h <<\EOF
8919 #define HAVE_LDEXPF 1
8922 cat >> confdefs.h <<\EOF
8923 #define HAVE_LOG10F 1
8926 cat >> confdefs.h <<\EOF
8927 #define HAVE_LOGF 1
8930 cat >> confdefs.h <<\EOF
8931 #define HAVE_MODFF 1
8934 cat >> confdefs.h <<\EOF
8935 #define HAVE_POWF 1
8938 cat >> confdefs.h <<\EOF
8939 #define HAVE_SINF 1
8942 cat >> confdefs.h <<\EOF
8943 #define HAVE_SINHF 1
8946 cat >> confdefs.h <<\EOF
8947 #define HAVE_SQRTF 1
8950 cat >> confdefs.h <<\EOF
8951 #define HAVE_TANF 1
8954 cat >> confdefs.h <<\EOF
8955 #define HAVE_TANHF 1
8960 # GLIBCPP_CHECK_STDLIB_SUPPORT
8961 cat >> confdefs.h <<\EOF
8962 #define HAVE_STRTOF 1
8965 cat >> confdefs.h <<\EOF
8966 #define HAVE_STRTOLD 1
8969 # AC_FUNC_MMAP
8970 cat >> confdefs.h <<\EOF
8971 #define HAVE_MMAP 1
8975 cat >> confdefs.h <<\EOF
8976 #define HAVE_ACOSF 1
8979 cat >> confdefs.h <<\EOF
8980 #define HAVE_ASINF 1
8983 cat >> confdefs.h <<\EOF
8984 #define HAVE_ATAN2F 1
8987 cat >> confdefs.h <<\EOF
8988 #define HAVE_ATANF 1
8991 cat >> confdefs.h <<\EOF
8992 #define HAVE_CEILF 1
8995 cat >> confdefs.h <<\EOF
8996 #define HAVE_COPYSIGN 1
8999 cat >> confdefs.h <<\EOF
9000 #define HAVE_COPYSIGNF 1
9003 cat >> confdefs.h <<\EOF
9004 #define HAVE_COSF 1
9007 cat >> confdefs.h <<\EOF
9008 #define HAVE_COSHF 1
9011 cat >> confdefs.h <<\EOF
9012 #define HAVE_EXPF 1
9015 cat >> confdefs.h <<\EOF
9016 #define HAVE_FABSF 1
9019 cat >> confdefs.h <<\EOF
9020 #define HAVE_FLOORF 1
9023 cat >> confdefs.h <<\EOF
9024 #define HAVE_FMODF 1
9027 cat >> confdefs.h <<\EOF
9028 #define HAVE_FREXPF 1
9031 cat >> confdefs.h <<\EOF
9032 #define HAVE_LDEXPF 1
9035 cat >> confdefs.h <<\EOF
9036 #define HAVE_LOG10F 1
9039 cat >> confdefs.h <<\EOF
9040 #define HAVE_LOGF 1
9043 cat >> confdefs.h <<\EOF
9044 #define HAVE_MODFF 1
9047 cat >> confdefs.h <<\EOF
9048 #define HAVE_POWF 1
9051 cat >> confdefs.h <<\EOF
9052 #define HAVE_SINF 1
9055 cat >> confdefs.h <<\EOF
9056 #define HAVE_SINHF 1
9059 cat >> confdefs.h <<\EOF
9060 #define HAVE_SQRTF 1
9063 cat >> confdefs.h <<\EOF
9064 #define HAVE_TANF 1
9067 cat >> confdefs.h <<\EOF
9068 #define HAVE_TANHF 1
9072 esac
9074 # At some point, we should differentiate between architectures
9075 # like x86, which have long double versions, and alpha/powerpc/etc.,
9076 # which don't. For the time being, punt.
9077 if test x"long_double_math_on_this_cpu" = x"yes"; then
9078 cat >> confdefs.h <<\EOF
9079 #define HAVE_ACOSL 1
9082 cat >> confdefs.h <<\EOF
9083 #define HAVE_ASINL 1
9086 cat >> confdefs.h <<\EOF
9087 #define HAVE_ATAN2L 1
9090 cat >> confdefs.h <<\EOF
9091 #define HAVE_ATANL 1
9094 cat >> confdefs.h <<\EOF
9095 #define HAVE_CEILL 1
9098 cat >> confdefs.h <<\EOF
9099 #define HAVE_COPYSIGNL 1
9102 cat >> confdefs.h <<\EOF
9103 #define HAVE_COSL 1
9106 cat >> confdefs.h <<\EOF
9107 #define HAVE_COSHL 1
9110 cat >> confdefs.h <<\EOF
9111 #define HAVE_EXPL 1
9114 cat >> confdefs.h <<\EOF
9115 #define HAVE_FABSL 1
9118 cat >> confdefs.h <<\EOF
9119 #define HAVE_FLOORL 1
9122 cat >> confdefs.h <<\EOF
9123 #define HAVE_FMODL 1
9126 cat >> confdefs.h <<\EOF
9127 #define HAVE_FREXPL 1
9130 cat >> confdefs.h <<\EOF
9131 #define HAVE_LDEXPL 1
9134 cat >> confdefs.h <<\EOF
9135 #define HAVE_LOG10L 1
9138 cat >> confdefs.h <<\EOF
9139 #define HAVE_LOGL 1
9142 cat >> confdefs.h <<\EOF
9143 #define HAVE_MODFL 1
9146 cat >> confdefs.h <<\EOF
9147 #define HAVE_POWL 1
9150 cat >> confdefs.h <<\EOF
9151 #define HAVE_SINCOSL 1
9154 cat >> confdefs.h <<\EOF
9155 #define HAVE_SINL 1
9158 cat >> confdefs.h <<\EOF
9159 #define HAVE_SINHL 1
9162 cat >> confdefs.h <<\EOF
9163 #define HAVE_SQRTL 1
9166 cat >> confdefs.h <<\EOF
9167 #define HAVE_TANL 1
9170 cat >> confdefs.h <<\EOF
9171 #define HAVE_TANHL 1
9176 else
9178 # We are being configured natively. We can do more elaborate tests
9179 # that include AC_TRY_COMPILE now, as the linker is assumed to be
9180 # working.
9181 GLIBCPP_IS_CROSS_COMPILING=0
9182 CANADIAN=no
9184 # Check for available headers.
9185 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
9186 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
9188 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9190 echo "configure:9191: checking for $ac_hdr" >&5
9191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9192 echo $ac_n "(cached) $ac_c" 1>&6
9193 else
9194 cat > conftest.$ac_ext <<EOF
9195 #line 9196 "configure"
9196 #include "confdefs.h"
9197 #include <$ac_hdr>
9199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9200 { (eval echo configure:9201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9202 if test -z "$ac_err"; then
9203 rm -rf conftest*
9204 eval "ac_cv_header_$ac_safe=yes"
9205 else
9206 echo "$ac_err" >&5
9207 echo "configure: failed program was:" >&5
9208 cat conftest.$ac_ext >&5
9209 rm -rf conftest*
9210 eval "ac_cv_header_$ac_safe=no"
9212 rm -f conftest*
9214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9215 echo "$ac_t""yes" 1>&6
9216 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9217 cat >> confdefs.h <<EOF
9218 #define $ac_tr_hdr 1
9221 else
9222 echo "$ac_t""no" 1>&6
9224 done
9228 # All these tests are for C++; save the language and the compiler flags.
9229 # The CXXFLAGS thing is suspicious, but based on similar bits previously
9230 # found in GLIBCPP_CONFIGURE.
9232 ac_ext=C
9233 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9234 ac_cpp='$CXXCPP $CPPFLAGS'
9235 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9236 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9237 cross_compiling=$ac_cv_prog_cxx_cross
9239 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9240 ac_save_CXXFLAGS="$CXXFLAGS"
9242 # Check for maintainer-mode bits.
9243 if test x"$USE_MAINTAINER_MODE" = xno; then
9244 WERROR=''
9245 else
9246 WERROR='-Werror'
9249 # Check for -ffunction-sections -fdata-sections
9250 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
9251 echo "configure:9252: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
9252 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
9253 cat > conftest.$ac_ext <<EOF
9254 #line 9255 "configure"
9255 #include "confdefs.h"
9257 int main() {
9258 int foo;
9260 ; return 0; }
9262 if { (eval echo configure:9263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9263 rm -rf conftest*
9264 ac_fdsections=yes
9265 else
9266 echo "configure: failed program was:" >&5
9267 cat conftest.$ac_ext >&5
9268 rm -rf conftest*
9269 ac_fdsections=no
9271 rm -f conftest*
9272 if test "$ac_test_CXXFLAGS" = set; then
9273 CXXFLAGS="$ac_save_CXXFLAGS"
9274 else
9275 # this is the suspicious part
9276 CXXFLAGS=''
9278 if test x"$ac_fdsections" = x"yes" &&
9279 test x"$enable_debug" = x"no"; then
9280 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9282 echo "$ac_t""$ac_fdsections" 1>&6
9284 ac_ext=c
9285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9286 ac_cpp='$CPP $CPPFLAGS'
9287 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9288 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9289 cross_compiling=$ac_cv_prog_cc_cross
9295 # If we're not using GNU ld, then there's no point in even trying these
9296 # tests. Check for that first. We should have already tested for gld
9297 # by now (in libtool), but require it now just to be safe...
9298 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9299 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9302 # The name set by libtool depends on the version of libtool. Shame on us
9303 # for depending on an impl detail, but c'est la vie. Older versions used
9304 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9305 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9306 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9307 # set (hence we're using an older libtool), then set it.
9308 if test x${with_gnu_ld+set} != xset; then
9309 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9310 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9311 with_gnu_ld=no
9312 else
9313 with_gnu_ld=$ac_cv_prog_gnu_ld
9317 # Start by getting the version number. I think the libtool test already
9318 # does some of this, but throws away the result.
9320 ldver=`$LD --version 2>/dev/null | head -1 | \
9321 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9323 glibcpp_gnu_ld_version=`echo $ldver | \
9324 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9326 # Set --gc-sections.
9327 if test "$with_gnu_ld" = "notbroken"; then
9328 # GNU ld it is! Joy and bunny rabbits!
9330 # All these tests are for C++; save the language and the compiler flags.
9331 # Need to do this so that g++ won't try to link in libstdc++
9332 ac_test_CFLAGS="${CFLAGS+set}"
9333 ac_save_CFLAGS="$CFLAGS"
9334 CFLAGS='-x c++ -Wl,--gc-sections'
9336 # Check for -Wl,--gc-sections
9337 # XXX This test is broken at the moment, as symbols required for
9338 # linking are now in libsupc++ (not built yet.....). In addition,
9339 # this test has cored on solaris in the past. In addition,
9340 # --gc-sections doesn't really work at the moment (keeps on discarding
9341 # used sections, first .eh_frame and now some of the glibc sections for
9342 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9343 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9344 echo "configure:9345: checking for ld that supports -Wl,--gc-sections" >&5
9345 if test "$cross_compiling" = yes; then
9346 ac_sectionLDflags=yes
9347 else
9348 cat > conftest.$ac_ext <<EOF
9349 #line 9350 "configure"
9350 #include "confdefs.h"
9352 int main(void)
9354 try { throw 1; }
9355 catch (...) { };
9356 return 0;
9360 if { (eval echo configure:9361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9361 then
9362 ac_sectionLDflags=yes
9363 else
9364 echo "configure: failed program was:" >&5
9365 cat conftest.$ac_ext >&5
9366 rm -fr conftest*
9367 ac_sectionLDflags=no
9369 rm -fr conftest*
9372 if test "$ac_test_CFLAGS" = set; then
9373 CFLAGS="$ac_save_CFLAGS"
9374 else
9375 # this is the suspicious part
9376 CFLAGS=''
9378 if test "$ac_sectionLDflags" = "yes"; then
9379 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9381 echo "$ac_t""$ac_sectionLDflags" 1>&6
9384 # Set linker optimization flags.
9385 if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9386 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9394 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
9395 echo "configure:9396: checking for __builtin_abs declaration" >&5
9396 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
9397 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
9398 echo $ac_n "(cached) $ac_c" 1>&6
9399 else
9402 ac_ext=C
9403 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9404 ac_cpp='$CXXCPP $CPPFLAGS'
9405 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9406 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9407 cross_compiling=$ac_cv_prog_cxx_cross
9409 cat > conftest.$ac_ext <<EOF
9410 #line 9411 "configure"
9411 #include "confdefs.h"
9412 #include <math.h>
9413 int main() {
9414 __builtin_abs(0);
9415 ; return 0; }
9417 if { (eval echo configure:9418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9418 rm -rf conftest*
9419 glibcpp_cv_func___builtin_abs_use=yes
9420 else
9421 echo "configure: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9423 rm -rf conftest*
9424 glibcpp_cv_func___builtin_abs_use=no
9426 rm -f conftest*
9427 ac_ext=c
9428 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9429 ac_cpp='$CPP $CPPFLAGS'
9430 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9431 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9432 cross_compiling=$ac_cv_prog_cc_cross
9438 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
9439 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
9440 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
9441 echo "configure:9442: checking for __builtin_abs linkage" >&5
9442 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
9443 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
9444 echo $ac_n "(cached) $ac_c" 1>&6
9445 else
9447 cat > conftest.$ac_ext <<EOF
9448 #line 9449 "configure"
9449 #include "confdefs.h"
9450 #include <math.h>
9451 int main() {
9452 __builtin_abs(0);
9453 ; return 0; }
9455 if { (eval echo configure:9456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9456 rm -rf conftest*
9457 glibcpp_cv_func___builtin_abs_link=yes
9458 else
9459 echo "configure: failed program was:" >&5
9460 cat conftest.$ac_ext >&5
9461 rm -rf conftest*
9462 glibcpp_cv_func___builtin_abs_link=no
9464 rm -f conftest*
9469 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
9470 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
9471 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9472 cat >> confdefs.h <<EOF
9473 #define ${ac_tr_func} 1
9480 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
9481 echo "configure:9482: checking for __builtin_fabsf declaration" >&5
9482 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
9483 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
9484 echo $ac_n "(cached) $ac_c" 1>&6
9485 else
9488 ac_ext=C
9489 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9490 ac_cpp='$CXXCPP $CPPFLAGS'
9491 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9492 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9493 cross_compiling=$ac_cv_prog_cxx_cross
9495 cat > conftest.$ac_ext <<EOF
9496 #line 9497 "configure"
9497 #include "confdefs.h"
9498 #include <math.h>
9499 int main() {
9500 __builtin_fabsf(0);
9501 ; return 0; }
9503 if { (eval echo configure:9504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9504 rm -rf conftest*
9505 glibcpp_cv_func___builtin_fabsf_use=yes
9506 else
9507 echo "configure: failed program was:" >&5
9508 cat conftest.$ac_ext >&5
9509 rm -rf conftest*
9510 glibcpp_cv_func___builtin_fabsf_use=no
9512 rm -f conftest*
9513 ac_ext=c
9514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9515 ac_cpp='$CPP $CPPFLAGS'
9516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9518 cross_compiling=$ac_cv_prog_cc_cross
9524 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
9525 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
9526 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
9527 echo "configure:9528: checking for __builtin_fabsf linkage" >&5
9528 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
9529 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
9530 echo $ac_n "(cached) $ac_c" 1>&6
9531 else
9533 cat > conftest.$ac_ext <<EOF
9534 #line 9535 "configure"
9535 #include "confdefs.h"
9536 #include <math.h>
9537 int main() {
9538 __builtin_fabsf(0);
9539 ; return 0; }
9541 if { (eval echo configure:9542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9542 rm -rf conftest*
9543 glibcpp_cv_func___builtin_fabsf_link=yes
9544 else
9545 echo "configure: failed program was:" >&5
9546 cat conftest.$ac_ext >&5
9547 rm -rf conftest*
9548 glibcpp_cv_func___builtin_fabsf_link=no
9550 rm -f conftest*
9555 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
9556 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
9557 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9558 cat >> confdefs.h <<EOF
9559 #define ${ac_tr_func} 1
9566 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
9567 echo "configure:9568: checking for __builtin_fabs declaration" >&5
9568 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
9569 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
9570 echo $ac_n "(cached) $ac_c" 1>&6
9571 else
9574 ac_ext=C
9575 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9576 ac_cpp='$CXXCPP $CPPFLAGS'
9577 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9578 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9579 cross_compiling=$ac_cv_prog_cxx_cross
9581 cat > conftest.$ac_ext <<EOF
9582 #line 9583 "configure"
9583 #include "confdefs.h"
9584 #include <math.h>
9585 int main() {
9586 __builtin_fabs(0);
9587 ; return 0; }
9589 if { (eval echo configure:9590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9590 rm -rf conftest*
9591 glibcpp_cv_func___builtin_fabs_use=yes
9592 else
9593 echo "configure: failed program was:" >&5
9594 cat conftest.$ac_ext >&5
9595 rm -rf conftest*
9596 glibcpp_cv_func___builtin_fabs_use=no
9598 rm -f conftest*
9599 ac_ext=c
9600 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9601 ac_cpp='$CPP $CPPFLAGS'
9602 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9603 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9604 cross_compiling=$ac_cv_prog_cc_cross
9610 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
9611 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
9612 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
9613 echo "configure:9614: checking for __builtin_fabs linkage" >&5
9614 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
9615 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
9616 echo $ac_n "(cached) $ac_c" 1>&6
9617 else
9619 cat > conftest.$ac_ext <<EOF
9620 #line 9621 "configure"
9621 #include "confdefs.h"
9622 #include <math.h>
9623 int main() {
9624 __builtin_fabs(0);
9625 ; return 0; }
9627 if { (eval echo configure:9628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9628 rm -rf conftest*
9629 glibcpp_cv_func___builtin_fabs_link=yes
9630 else
9631 echo "configure: failed program was:" >&5
9632 cat conftest.$ac_ext >&5
9633 rm -rf conftest*
9634 glibcpp_cv_func___builtin_fabs_link=no
9636 rm -f conftest*
9641 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
9642 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
9643 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9644 cat >> confdefs.h <<EOF
9645 #define ${ac_tr_func} 1
9652 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
9653 echo "configure:9654: checking for __builtin_fabsl declaration" >&5
9654 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
9655 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
9656 echo $ac_n "(cached) $ac_c" 1>&6
9657 else
9660 ac_ext=C
9661 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9662 ac_cpp='$CXXCPP $CPPFLAGS'
9663 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9664 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9665 cross_compiling=$ac_cv_prog_cxx_cross
9667 cat > conftest.$ac_ext <<EOF
9668 #line 9669 "configure"
9669 #include "confdefs.h"
9670 #include <math.h>
9671 int main() {
9672 __builtin_fabsl(0);
9673 ; return 0; }
9675 if { (eval echo configure:9676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9676 rm -rf conftest*
9677 glibcpp_cv_func___builtin_fabsl_use=yes
9678 else
9679 echo "configure: failed program was:" >&5
9680 cat conftest.$ac_ext >&5
9681 rm -rf conftest*
9682 glibcpp_cv_func___builtin_fabsl_use=no
9684 rm -f conftest*
9685 ac_ext=c
9686 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9687 ac_cpp='$CPP $CPPFLAGS'
9688 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9689 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9690 cross_compiling=$ac_cv_prog_cc_cross
9696 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
9697 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
9698 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
9699 echo "configure:9700: checking for __builtin_fabsl linkage" >&5
9700 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
9701 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
9702 echo $ac_n "(cached) $ac_c" 1>&6
9703 else
9705 cat > conftest.$ac_ext <<EOF
9706 #line 9707 "configure"
9707 #include "confdefs.h"
9708 #include <math.h>
9709 int main() {
9710 __builtin_fabsl(0);
9711 ; return 0; }
9713 if { (eval echo configure:9714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9714 rm -rf conftest*
9715 glibcpp_cv_func___builtin_fabsl_link=yes
9716 else
9717 echo "configure: failed program was:" >&5
9718 cat conftest.$ac_ext >&5
9719 rm -rf conftest*
9720 glibcpp_cv_func___builtin_fabsl_link=no
9722 rm -f conftest*
9727 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
9728 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
9729 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9730 cat >> confdefs.h <<EOF
9731 #define ${ac_tr_func} 1
9738 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
9739 echo "configure:9740: checking for __builtin_labs declaration" >&5
9740 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
9741 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
9742 echo $ac_n "(cached) $ac_c" 1>&6
9743 else
9746 ac_ext=C
9747 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9748 ac_cpp='$CXXCPP $CPPFLAGS'
9749 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9750 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9751 cross_compiling=$ac_cv_prog_cxx_cross
9753 cat > conftest.$ac_ext <<EOF
9754 #line 9755 "configure"
9755 #include "confdefs.h"
9756 #include <math.h>
9757 int main() {
9758 __builtin_labs(0);
9759 ; return 0; }
9761 if { (eval echo configure:9762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9762 rm -rf conftest*
9763 glibcpp_cv_func___builtin_labs_use=yes
9764 else
9765 echo "configure: failed program was:" >&5
9766 cat conftest.$ac_ext >&5
9767 rm -rf conftest*
9768 glibcpp_cv_func___builtin_labs_use=no
9770 rm -f conftest*
9771 ac_ext=c
9772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9773 ac_cpp='$CPP $CPPFLAGS'
9774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9776 cross_compiling=$ac_cv_prog_cc_cross
9782 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
9783 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
9784 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
9785 echo "configure:9786: checking for __builtin_labs linkage" >&5
9786 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
9787 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
9788 echo $ac_n "(cached) $ac_c" 1>&6
9789 else
9791 cat > conftest.$ac_ext <<EOF
9792 #line 9793 "configure"
9793 #include "confdefs.h"
9794 #include <math.h>
9795 int main() {
9796 __builtin_labs(0);
9797 ; return 0; }
9799 if { (eval echo configure:9800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9800 rm -rf conftest*
9801 glibcpp_cv_func___builtin_labs_link=yes
9802 else
9803 echo "configure: failed program was:" >&5
9804 cat conftest.$ac_ext >&5
9805 rm -rf conftest*
9806 glibcpp_cv_func___builtin_labs_link=no
9808 rm -f conftest*
9813 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
9814 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
9815 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9816 cat >> confdefs.h <<EOF
9817 #define ${ac_tr_func} 1
9825 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
9826 echo "configure:9827: checking for __builtin_sqrtf declaration" >&5
9827 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
9828 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
9829 echo $ac_n "(cached) $ac_c" 1>&6
9830 else
9833 ac_ext=C
9834 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9835 ac_cpp='$CXXCPP $CPPFLAGS'
9836 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9837 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9838 cross_compiling=$ac_cv_prog_cxx_cross
9840 cat > conftest.$ac_ext <<EOF
9841 #line 9842 "configure"
9842 #include "confdefs.h"
9843 #include <math.h>
9844 int main() {
9845 __builtin_sqrtf(0);
9846 ; return 0; }
9848 if { (eval echo configure:9849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9849 rm -rf conftest*
9850 glibcpp_cv_func___builtin_sqrtf_use=yes
9851 else
9852 echo "configure: failed program was:" >&5
9853 cat conftest.$ac_ext >&5
9854 rm -rf conftest*
9855 glibcpp_cv_func___builtin_sqrtf_use=no
9857 rm -f conftest*
9858 ac_ext=c
9859 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9860 ac_cpp='$CPP $CPPFLAGS'
9861 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9862 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9863 cross_compiling=$ac_cv_prog_cc_cross
9869 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
9870 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
9871 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
9872 echo "configure:9873: checking for __builtin_sqrtf linkage" >&5
9873 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
9874 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
9875 echo $ac_n "(cached) $ac_c" 1>&6
9876 else
9878 cat > conftest.$ac_ext <<EOF
9879 #line 9880 "configure"
9880 #include "confdefs.h"
9881 #include <math.h>
9882 int main() {
9883 __builtin_sqrtf(0);
9884 ; return 0; }
9886 if { (eval echo configure:9887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9887 rm -rf conftest*
9888 glibcpp_cv_func___builtin_sqrtf_link=yes
9889 else
9890 echo "configure: failed program was:" >&5
9891 cat conftest.$ac_ext >&5
9892 rm -rf conftest*
9893 glibcpp_cv_func___builtin_sqrtf_link=no
9895 rm -f conftest*
9900 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
9901 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
9902 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9903 cat >> confdefs.h <<EOF
9904 #define ${ac_tr_func} 1
9911 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
9912 echo "configure:9913: checking for __builtin_sqrt declaration" >&5
9913 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
9914 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
9915 echo $ac_n "(cached) $ac_c" 1>&6
9916 else
9919 ac_ext=C
9920 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9921 ac_cpp='$CXXCPP $CPPFLAGS'
9922 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9923 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9924 cross_compiling=$ac_cv_prog_cxx_cross
9926 cat > conftest.$ac_ext <<EOF
9927 #line 9928 "configure"
9928 #include "confdefs.h"
9929 #include <math.h>
9930 int main() {
9931 __builtin_sqrt(0);
9932 ; return 0; }
9934 if { (eval echo configure:9935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9935 rm -rf conftest*
9936 glibcpp_cv_func___builtin_sqrt_use=yes
9937 else
9938 echo "configure: failed program was:" >&5
9939 cat conftest.$ac_ext >&5
9940 rm -rf conftest*
9941 glibcpp_cv_func___builtin_sqrt_use=no
9943 rm -f conftest*
9944 ac_ext=c
9945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9946 ac_cpp='$CPP $CPPFLAGS'
9947 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9948 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9949 cross_compiling=$ac_cv_prog_cc_cross
9955 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
9956 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
9957 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
9958 echo "configure:9959: checking for __builtin_sqrt linkage" >&5
9959 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
9960 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
9961 echo $ac_n "(cached) $ac_c" 1>&6
9962 else
9964 cat > conftest.$ac_ext <<EOF
9965 #line 9966 "configure"
9966 #include "confdefs.h"
9967 #include <math.h>
9968 int main() {
9969 __builtin_sqrt(0);
9970 ; return 0; }
9972 if { (eval echo configure:9973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9973 rm -rf conftest*
9974 glibcpp_cv_func___builtin_sqrt_link=yes
9975 else
9976 echo "configure: failed program was:" >&5
9977 cat conftest.$ac_ext >&5
9978 rm -rf conftest*
9979 glibcpp_cv_func___builtin_sqrt_link=no
9981 rm -f conftest*
9986 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
9987 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
9988 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9989 cat >> confdefs.h <<EOF
9990 #define ${ac_tr_func} 1
9997 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
9998 echo "configure:9999: checking for __builtin_sqrtl declaration" >&5
9999 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
10000 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
10001 echo $ac_n "(cached) $ac_c" 1>&6
10002 else
10005 ac_ext=C
10006 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10007 ac_cpp='$CXXCPP $CPPFLAGS'
10008 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10009 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10010 cross_compiling=$ac_cv_prog_cxx_cross
10012 cat > conftest.$ac_ext <<EOF
10013 #line 10014 "configure"
10014 #include "confdefs.h"
10015 #include <math.h>
10016 int main() {
10017 __builtin_sqrtl(0);
10018 ; return 0; }
10020 if { (eval echo configure:10021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10021 rm -rf conftest*
10022 glibcpp_cv_func___builtin_sqrtl_use=yes
10023 else
10024 echo "configure: failed program was:" >&5
10025 cat conftest.$ac_ext >&5
10026 rm -rf conftest*
10027 glibcpp_cv_func___builtin_sqrtl_use=no
10029 rm -f conftest*
10030 ac_ext=c
10031 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10032 ac_cpp='$CPP $CPPFLAGS'
10033 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10034 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10035 cross_compiling=$ac_cv_prog_cc_cross
10041 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
10042 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
10043 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
10044 echo "configure:10045: checking for __builtin_sqrtl linkage" >&5
10045 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
10046 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
10047 echo $ac_n "(cached) $ac_c" 1>&6
10048 else
10050 cat > conftest.$ac_ext <<EOF
10051 #line 10052 "configure"
10052 #include "confdefs.h"
10053 #include <math.h>
10054 int main() {
10055 __builtin_sqrtl(0);
10056 ; return 0; }
10058 if { (eval echo configure:10059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10059 rm -rf conftest*
10060 glibcpp_cv_func___builtin_sqrtl_link=yes
10061 else
10062 echo "configure: failed program was:" >&5
10063 cat conftest.$ac_ext >&5
10064 rm -rf conftest*
10065 glibcpp_cv_func___builtin_sqrtl_link=no
10067 rm -f conftest*
10072 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
10073 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
10074 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10075 cat >> confdefs.h <<EOF
10076 #define ${ac_tr_func} 1
10084 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
10085 echo "configure:10086: checking for __builtin_sinf declaration" >&5
10086 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
10087 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
10088 echo $ac_n "(cached) $ac_c" 1>&6
10089 else
10092 ac_ext=C
10093 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10094 ac_cpp='$CXXCPP $CPPFLAGS'
10095 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10096 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10097 cross_compiling=$ac_cv_prog_cxx_cross
10099 cat > conftest.$ac_ext <<EOF
10100 #line 10101 "configure"
10101 #include "confdefs.h"
10102 #include <math.h>
10103 int main() {
10104 __builtin_sinf(0);
10105 ; return 0; }
10107 if { (eval echo configure:10108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10108 rm -rf conftest*
10109 glibcpp_cv_func___builtin_sinf_use=yes
10110 else
10111 echo "configure: failed program was:" >&5
10112 cat conftest.$ac_ext >&5
10113 rm -rf conftest*
10114 glibcpp_cv_func___builtin_sinf_use=no
10116 rm -f conftest*
10117 ac_ext=c
10118 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10119 ac_cpp='$CPP $CPPFLAGS'
10120 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10121 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10122 cross_compiling=$ac_cv_prog_cc_cross
10128 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
10129 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
10130 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
10131 echo "configure:10132: checking for __builtin_sinf linkage" >&5
10132 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
10133 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
10134 echo $ac_n "(cached) $ac_c" 1>&6
10135 else
10137 cat > conftest.$ac_ext <<EOF
10138 #line 10139 "configure"
10139 #include "confdefs.h"
10140 #include <math.h>
10141 int main() {
10142 __builtin_sinf(0);
10143 ; return 0; }
10145 if { (eval echo configure:10146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10146 rm -rf conftest*
10147 glibcpp_cv_func___builtin_sinf_link=yes
10148 else
10149 echo "configure: failed program was:" >&5
10150 cat conftest.$ac_ext >&5
10151 rm -rf conftest*
10152 glibcpp_cv_func___builtin_sinf_link=no
10154 rm -f conftest*
10159 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
10160 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
10161 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10162 cat >> confdefs.h <<EOF
10163 #define ${ac_tr_func} 1
10170 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
10171 echo "configure:10172: checking for __builtin_sin declaration" >&5
10172 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
10173 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
10174 echo $ac_n "(cached) $ac_c" 1>&6
10175 else
10178 ac_ext=C
10179 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10180 ac_cpp='$CXXCPP $CPPFLAGS'
10181 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10182 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10183 cross_compiling=$ac_cv_prog_cxx_cross
10185 cat > conftest.$ac_ext <<EOF
10186 #line 10187 "configure"
10187 #include "confdefs.h"
10188 #include <math.h>
10189 int main() {
10190 __builtin_sin(0);
10191 ; return 0; }
10193 if { (eval echo configure:10194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10194 rm -rf conftest*
10195 glibcpp_cv_func___builtin_sin_use=yes
10196 else
10197 echo "configure: failed program was:" >&5
10198 cat conftest.$ac_ext >&5
10199 rm -rf conftest*
10200 glibcpp_cv_func___builtin_sin_use=no
10202 rm -f conftest*
10203 ac_ext=c
10204 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10205 ac_cpp='$CPP $CPPFLAGS'
10206 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10207 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10208 cross_compiling=$ac_cv_prog_cc_cross
10214 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
10215 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
10216 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
10217 echo "configure:10218: checking for __builtin_sin linkage" >&5
10218 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
10219 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
10220 echo $ac_n "(cached) $ac_c" 1>&6
10221 else
10223 cat > conftest.$ac_ext <<EOF
10224 #line 10225 "configure"
10225 #include "confdefs.h"
10226 #include <math.h>
10227 int main() {
10228 __builtin_sin(0);
10229 ; return 0; }
10231 if { (eval echo configure:10232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10232 rm -rf conftest*
10233 glibcpp_cv_func___builtin_sin_link=yes
10234 else
10235 echo "configure: failed program was:" >&5
10236 cat conftest.$ac_ext >&5
10237 rm -rf conftest*
10238 glibcpp_cv_func___builtin_sin_link=no
10240 rm -f conftest*
10245 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
10246 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
10247 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10248 cat >> confdefs.h <<EOF
10249 #define ${ac_tr_func} 1
10256 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
10257 echo "configure:10258: checking for __builtin_sinl declaration" >&5
10258 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
10259 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
10260 echo $ac_n "(cached) $ac_c" 1>&6
10261 else
10264 ac_ext=C
10265 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10266 ac_cpp='$CXXCPP $CPPFLAGS'
10267 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10268 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10269 cross_compiling=$ac_cv_prog_cxx_cross
10271 cat > conftest.$ac_ext <<EOF
10272 #line 10273 "configure"
10273 #include "confdefs.h"
10274 #include <math.h>
10275 int main() {
10276 __builtin_sinl(0);
10277 ; return 0; }
10279 if { (eval echo configure:10280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10280 rm -rf conftest*
10281 glibcpp_cv_func___builtin_sinl_use=yes
10282 else
10283 echo "configure: failed program was:" >&5
10284 cat conftest.$ac_ext >&5
10285 rm -rf conftest*
10286 glibcpp_cv_func___builtin_sinl_use=no
10288 rm -f conftest*
10289 ac_ext=c
10290 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10291 ac_cpp='$CPP $CPPFLAGS'
10292 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10293 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10294 cross_compiling=$ac_cv_prog_cc_cross
10300 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
10301 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
10302 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
10303 echo "configure:10304: checking for __builtin_sinl linkage" >&5
10304 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
10305 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
10306 echo $ac_n "(cached) $ac_c" 1>&6
10307 else
10309 cat > conftest.$ac_ext <<EOF
10310 #line 10311 "configure"
10311 #include "confdefs.h"
10312 #include <math.h>
10313 int main() {
10314 __builtin_sinl(0);
10315 ; return 0; }
10317 if { (eval echo configure:10318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10318 rm -rf conftest*
10319 glibcpp_cv_func___builtin_sinl_link=yes
10320 else
10321 echo "configure: failed program was:" >&5
10322 cat conftest.$ac_ext >&5
10323 rm -rf conftest*
10324 glibcpp_cv_func___builtin_sinl_link=no
10326 rm -f conftest*
10331 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
10332 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
10333 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10334 cat >> confdefs.h <<EOF
10335 #define ${ac_tr_func} 1
10343 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
10344 echo "configure:10345: checking for __builtin_cosf declaration" >&5
10345 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
10346 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
10347 echo $ac_n "(cached) $ac_c" 1>&6
10348 else
10351 ac_ext=C
10352 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10353 ac_cpp='$CXXCPP $CPPFLAGS'
10354 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10355 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10356 cross_compiling=$ac_cv_prog_cxx_cross
10358 cat > conftest.$ac_ext <<EOF
10359 #line 10360 "configure"
10360 #include "confdefs.h"
10361 #include <math.h>
10362 int main() {
10363 __builtin_cosf(0);
10364 ; return 0; }
10366 if { (eval echo configure:10367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10367 rm -rf conftest*
10368 glibcpp_cv_func___builtin_cosf_use=yes
10369 else
10370 echo "configure: failed program was:" >&5
10371 cat conftest.$ac_ext >&5
10372 rm -rf conftest*
10373 glibcpp_cv_func___builtin_cosf_use=no
10375 rm -f conftest*
10376 ac_ext=c
10377 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10378 ac_cpp='$CPP $CPPFLAGS'
10379 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10380 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10381 cross_compiling=$ac_cv_prog_cc_cross
10387 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
10388 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
10389 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
10390 echo "configure:10391: checking for __builtin_cosf linkage" >&5
10391 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
10392 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
10393 echo $ac_n "(cached) $ac_c" 1>&6
10394 else
10396 cat > conftest.$ac_ext <<EOF
10397 #line 10398 "configure"
10398 #include "confdefs.h"
10399 #include <math.h>
10400 int main() {
10401 __builtin_cosf(0);
10402 ; return 0; }
10404 if { (eval echo configure:10405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10405 rm -rf conftest*
10406 glibcpp_cv_func___builtin_cosf_link=yes
10407 else
10408 echo "configure: failed program was:" >&5
10409 cat conftest.$ac_ext >&5
10410 rm -rf conftest*
10411 glibcpp_cv_func___builtin_cosf_link=no
10413 rm -f conftest*
10418 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
10419 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
10420 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10421 cat >> confdefs.h <<EOF
10422 #define ${ac_tr_func} 1
10429 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
10430 echo "configure:10431: checking for __builtin_cos declaration" >&5
10431 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
10432 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
10433 echo $ac_n "(cached) $ac_c" 1>&6
10434 else
10437 ac_ext=C
10438 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10439 ac_cpp='$CXXCPP $CPPFLAGS'
10440 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10441 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10442 cross_compiling=$ac_cv_prog_cxx_cross
10444 cat > conftest.$ac_ext <<EOF
10445 #line 10446 "configure"
10446 #include "confdefs.h"
10447 #include <math.h>
10448 int main() {
10449 __builtin_cos(0);
10450 ; return 0; }
10452 if { (eval echo configure:10453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10453 rm -rf conftest*
10454 glibcpp_cv_func___builtin_cos_use=yes
10455 else
10456 echo "configure: failed program was:" >&5
10457 cat conftest.$ac_ext >&5
10458 rm -rf conftest*
10459 glibcpp_cv_func___builtin_cos_use=no
10461 rm -f conftest*
10462 ac_ext=c
10463 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10464 ac_cpp='$CPP $CPPFLAGS'
10465 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10466 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10467 cross_compiling=$ac_cv_prog_cc_cross
10473 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
10474 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
10475 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
10476 echo "configure:10477: checking for __builtin_cos linkage" >&5
10477 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
10478 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
10479 echo $ac_n "(cached) $ac_c" 1>&6
10480 else
10482 cat > conftest.$ac_ext <<EOF
10483 #line 10484 "configure"
10484 #include "confdefs.h"
10485 #include <math.h>
10486 int main() {
10487 __builtin_cos(0);
10488 ; return 0; }
10490 if { (eval echo configure:10491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10491 rm -rf conftest*
10492 glibcpp_cv_func___builtin_cos_link=yes
10493 else
10494 echo "configure: failed program was:" >&5
10495 cat conftest.$ac_ext >&5
10496 rm -rf conftest*
10497 glibcpp_cv_func___builtin_cos_link=no
10499 rm -f conftest*
10504 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
10505 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
10506 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10507 cat >> confdefs.h <<EOF
10508 #define ${ac_tr_func} 1
10515 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
10516 echo "configure:10517: checking for __builtin_cosl declaration" >&5
10517 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
10518 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
10519 echo $ac_n "(cached) $ac_c" 1>&6
10520 else
10523 ac_ext=C
10524 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10525 ac_cpp='$CXXCPP $CPPFLAGS'
10526 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10527 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10528 cross_compiling=$ac_cv_prog_cxx_cross
10530 cat > conftest.$ac_ext <<EOF
10531 #line 10532 "configure"
10532 #include "confdefs.h"
10533 #include <math.h>
10534 int main() {
10535 __builtin_cosl(0);
10536 ; return 0; }
10538 if { (eval echo configure:10539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10539 rm -rf conftest*
10540 glibcpp_cv_func___builtin_cosl_use=yes
10541 else
10542 echo "configure: failed program was:" >&5
10543 cat conftest.$ac_ext >&5
10544 rm -rf conftest*
10545 glibcpp_cv_func___builtin_cosl_use=no
10547 rm -f conftest*
10548 ac_ext=c
10549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10550 ac_cpp='$CPP $CPPFLAGS'
10551 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10552 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10553 cross_compiling=$ac_cv_prog_cc_cross
10559 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
10560 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
10561 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
10562 echo "configure:10563: checking for __builtin_cosl linkage" >&5
10563 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
10564 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
10565 echo $ac_n "(cached) $ac_c" 1>&6
10566 else
10568 cat > conftest.$ac_ext <<EOF
10569 #line 10570 "configure"
10570 #include "confdefs.h"
10571 #include <math.h>
10572 int main() {
10573 __builtin_cosl(0);
10574 ; return 0; }
10576 if { (eval echo configure:10577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10577 rm -rf conftest*
10578 glibcpp_cv_func___builtin_cosl_link=yes
10579 else
10580 echo "configure: failed program was:" >&5
10581 cat conftest.$ac_ext >&5
10582 rm -rf conftest*
10583 glibcpp_cv_func___builtin_cosl_link=no
10585 rm -f conftest*
10590 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
10591 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
10592 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10593 cat >> confdefs.h <<EOF
10594 #define ${ac_tr_func} 1
10601 dummyvar=no
10602 if test x$dummyvar = x"yes"; then
10603 cat >> confdefs.h <<\EOF
10604 #define HAVE___BUILTIN_ABS 1
10607 cat >> confdefs.h <<\EOF
10608 #define HAVE___BUILTIN_LABS 1
10611 cat >> confdefs.h <<\EOF
10612 #define HAVE___BUILTIN_COS 1
10615 cat >> confdefs.h <<\EOF
10616 #define HAVE___BUILTIN_COSF 1
10619 cat >> confdefs.h <<\EOF
10620 #define HAVE___BUILTIN_COSL 1
10623 cat >> confdefs.h <<\EOF
10624 #define HAVE___BUILTIN_FABS 1
10627 cat >> confdefs.h <<\EOF
10628 #define HAVE___BUILTIN_FABSF 1
10631 cat >> confdefs.h <<\EOF
10632 #define HAVE___BUILTIN_FABSL 1
10635 cat >> confdefs.h <<\EOF
10636 #define HAVE___BUILTIN_SIN 1
10639 cat >> confdefs.h <<\EOF
10640 #define HAVE___BUILTIN_SINF 1
10643 cat >> confdefs.h <<\EOF
10644 #define HAVE___BUILTIN_SINL 1
10647 cat >> confdefs.h <<\EOF
10648 #define HAVE___BUILTIN_SQRT 1
10651 cat >> confdefs.h <<\EOF
10652 #define HAVE___BUILTIN_SQRTF 1
10655 cat >> confdefs.h <<\EOF
10656 #define HAVE___BUILTIN_SQRTL 1
10662 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10663 ac_save_CXXFLAGS="$CXXFLAGS"
10664 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10666 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10667 echo "configure:10668: checking for sin in -lm" >&5
10668 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10670 echo $ac_n "(cached) $ac_c" 1>&6
10671 else
10672 ac_save_LIBS="$LIBS"
10673 LIBS="-lm $LIBS"
10674 cat > conftest.$ac_ext <<EOF
10675 #line 10676 "configure"
10676 #include "confdefs.h"
10677 /* Override any gcc2 internal prototype to avoid an error. */
10678 /* We use char because int might match the return type of a gcc2
10679 builtin and then its argument prototype would still apply. */
10680 char sin();
10682 int main() {
10683 sin()
10684 ; return 0; }
10686 if { (eval echo configure:10687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10687 rm -rf conftest*
10688 eval "ac_cv_lib_$ac_lib_var=yes"
10689 else
10690 echo "configure: failed program was:" >&5
10691 cat conftest.$ac_ext >&5
10692 rm -rf conftest*
10693 eval "ac_cv_lib_$ac_lib_var=no"
10695 rm -f conftest*
10696 LIBS="$ac_save_LIBS"
10699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10700 echo "$ac_t""yes" 1>&6
10701 libm="-lm"
10702 else
10703 echo "$ac_t""no" 1>&6
10706 ac_save_LIBS="$LIBS"
10707 LIBS="$LIBS $libm"
10711 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10712 echo "configure:10713: checking for isinf declaration" >&5
10713 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10714 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10715 echo $ac_n "(cached) $ac_c" 1>&6
10716 else
10719 ac_ext=C
10720 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10721 ac_cpp='$CXXCPP $CPPFLAGS'
10722 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10723 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10724 cross_compiling=$ac_cv_prog_cxx_cross
10726 cat > conftest.$ac_ext <<EOF
10727 #line 10728 "configure"
10728 #include "confdefs.h"
10729 #include <math.h>
10730 #ifdef HAVE_IEEEFP_H
10731 #include <ieeefp.h>
10732 #endif
10734 int main() {
10735 isinf(0);
10736 ; return 0; }
10738 if { (eval echo configure:10739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10739 rm -rf conftest*
10740 glibcpp_cv_func_isinf_use=yes
10741 else
10742 echo "configure: failed program was:" >&5
10743 cat conftest.$ac_ext >&5
10744 rm -rf conftest*
10745 glibcpp_cv_func_isinf_use=no
10747 rm -f conftest*
10748 ac_ext=c
10749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10750 ac_cpp='$CPP $CPPFLAGS'
10751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10753 cross_compiling=$ac_cv_prog_cc_cross
10759 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10761 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10762 for ac_func in isinf
10764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10765 echo "configure:10766: checking for $ac_func" >&5
10766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10767 echo $ac_n "(cached) $ac_c" 1>&6
10768 else
10769 cat > conftest.$ac_ext <<EOF
10770 #line 10771 "configure"
10771 #include "confdefs.h"
10772 /* System header to define __stub macros and hopefully few prototypes,
10773 which can conflict with char $ac_func(); below. */
10774 #include <assert.h>
10775 /* Override any gcc2 internal prototype to avoid an error. */
10776 /* We use char because int might match the return type of a gcc2
10777 builtin and then its argument prototype would still apply. */
10778 char $ac_func();
10780 int main() {
10782 /* The GNU C library defines this for functions which it implements
10783 to always fail with ENOSYS. Some functions are actually named
10784 something starting with __ and the normal name is an alias. */
10785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10786 choke me
10787 #else
10788 $ac_func();
10789 #endif
10791 ; return 0; }
10793 if { (eval echo configure:10794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10794 rm -rf conftest*
10795 eval "ac_cv_func_$ac_func=yes"
10796 else
10797 echo "configure: failed program was:" >&5
10798 cat conftest.$ac_ext >&5
10799 rm -rf conftest*
10800 eval "ac_cv_func_$ac_func=no"
10802 rm -f conftest*
10805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10806 echo "$ac_t""yes" 1>&6
10807 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10808 cat >> confdefs.h <<EOF
10809 #define $ac_tr_func 1
10812 else
10813 echo "$ac_t""no" 1>&6
10815 done
10817 else
10819 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10820 echo "configure:10821: checking for _isinf declaration" >&5
10821 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10822 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10823 echo $ac_n "(cached) $ac_c" 1>&6
10824 else
10827 ac_ext=C
10828 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10829 ac_cpp='$CXXCPP $CPPFLAGS'
10830 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10831 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10832 cross_compiling=$ac_cv_prog_cxx_cross
10834 cat > conftest.$ac_ext <<EOF
10835 #line 10836 "configure"
10836 #include "confdefs.h"
10837 #include <math.h>
10838 #ifdef HAVE_IEEEFP_H
10839 #include <ieeefp.h>
10840 #endif
10842 int main() {
10843 _isinf(0);
10844 ; return 0; }
10846 if { (eval echo configure:10847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10847 rm -rf conftest*
10848 glibcpp_cv_func__isinf_use=yes
10849 else
10850 echo "configure: failed program was:" >&5
10851 cat conftest.$ac_ext >&5
10852 rm -rf conftest*
10853 glibcpp_cv_func__isinf_use=no
10855 rm -f conftest*
10856 ac_ext=c
10857 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10858 ac_cpp='$CPP $CPPFLAGS'
10859 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10860 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10861 cross_compiling=$ac_cv_prog_cc_cross
10867 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10869 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10870 for ac_func in _isinf
10872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10873 echo "configure:10874: checking for $ac_func" >&5
10874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10875 echo $ac_n "(cached) $ac_c" 1>&6
10876 else
10877 cat > conftest.$ac_ext <<EOF
10878 #line 10879 "configure"
10879 #include "confdefs.h"
10880 /* System header to define __stub macros and hopefully few prototypes,
10881 which can conflict with char $ac_func(); below. */
10882 #include <assert.h>
10883 /* Override any gcc2 internal prototype to avoid an error. */
10884 /* We use char because int might match the return type of a gcc2
10885 builtin and then its argument prototype would still apply. */
10886 char $ac_func();
10888 int main() {
10890 /* The GNU C library defines this for functions which it implements
10891 to always fail with ENOSYS. Some functions are actually named
10892 something starting with __ and the normal name is an alias. */
10893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10894 choke me
10895 #else
10896 $ac_func();
10897 #endif
10899 ; return 0; }
10901 if { (eval echo configure:10902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10902 rm -rf conftest*
10903 eval "ac_cv_func_$ac_func=yes"
10904 else
10905 echo "configure: failed program was:" >&5
10906 cat conftest.$ac_ext >&5
10907 rm -rf conftest*
10908 eval "ac_cv_func_$ac_func=no"
10910 rm -f conftest*
10913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10914 echo "$ac_t""yes" 1>&6
10915 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10916 cat >> confdefs.h <<EOF
10917 #define $ac_tr_func 1
10920 else
10921 echo "$ac_t""no" 1>&6
10923 done
10930 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10931 echo "configure:10932: checking for isnan declaration" >&5
10932 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10933 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10934 echo $ac_n "(cached) $ac_c" 1>&6
10935 else
10938 ac_ext=C
10939 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10940 ac_cpp='$CXXCPP $CPPFLAGS'
10941 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10942 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10943 cross_compiling=$ac_cv_prog_cxx_cross
10945 cat > conftest.$ac_ext <<EOF
10946 #line 10947 "configure"
10947 #include "confdefs.h"
10948 #include <math.h>
10949 #ifdef HAVE_IEEEFP_H
10950 #include <ieeefp.h>
10951 #endif
10953 int main() {
10954 isnan(0);
10955 ; return 0; }
10957 if { (eval echo configure:10958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10958 rm -rf conftest*
10959 glibcpp_cv_func_isnan_use=yes
10960 else
10961 echo "configure: failed program was:" >&5
10962 cat conftest.$ac_ext >&5
10963 rm -rf conftest*
10964 glibcpp_cv_func_isnan_use=no
10966 rm -f conftest*
10967 ac_ext=c
10968 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10969 ac_cpp='$CPP $CPPFLAGS'
10970 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10971 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10972 cross_compiling=$ac_cv_prog_cc_cross
10978 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10980 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10981 for ac_func in isnan
10983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10984 echo "configure:10985: checking for $ac_func" >&5
10985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10986 echo $ac_n "(cached) $ac_c" 1>&6
10987 else
10988 cat > conftest.$ac_ext <<EOF
10989 #line 10990 "configure"
10990 #include "confdefs.h"
10991 /* System header to define __stub macros and hopefully few prototypes,
10992 which can conflict with char $ac_func(); below. */
10993 #include <assert.h>
10994 /* Override any gcc2 internal prototype to avoid an error. */
10995 /* We use char because int might match the return type of a gcc2
10996 builtin and then its argument prototype would still apply. */
10997 char $ac_func();
10999 int main() {
11001 /* The GNU C library defines this for functions which it implements
11002 to always fail with ENOSYS. Some functions are actually named
11003 something starting with __ and the normal name is an alias. */
11004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11005 choke me
11006 #else
11007 $ac_func();
11008 #endif
11010 ; return 0; }
11012 if { (eval echo configure:11013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11013 rm -rf conftest*
11014 eval "ac_cv_func_$ac_func=yes"
11015 else
11016 echo "configure: failed program was:" >&5
11017 cat conftest.$ac_ext >&5
11018 rm -rf conftest*
11019 eval "ac_cv_func_$ac_func=no"
11021 rm -f conftest*
11024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11025 echo "$ac_t""yes" 1>&6
11026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11027 cat >> confdefs.h <<EOF
11028 #define $ac_tr_func 1
11031 else
11032 echo "$ac_t""no" 1>&6
11034 done
11036 else
11038 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11039 echo "configure:11040: checking for _isnan declaration" >&5
11040 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11041 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11042 echo $ac_n "(cached) $ac_c" 1>&6
11043 else
11046 ac_ext=C
11047 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11048 ac_cpp='$CXXCPP $CPPFLAGS'
11049 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11050 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11051 cross_compiling=$ac_cv_prog_cxx_cross
11053 cat > conftest.$ac_ext <<EOF
11054 #line 11055 "configure"
11055 #include "confdefs.h"
11056 #include <math.h>
11057 #ifdef HAVE_IEEEFP_H
11058 #include <ieeefp.h>
11059 #endif
11061 int main() {
11062 _isnan(0);
11063 ; return 0; }
11065 if { (eval echo configure:11066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11066 rm -rf conftest*
11067 glibcpp_cv_func__isnan_use=yes
11068 else
11069 echo "configure: failed program was:" >&5
11070 cat conftest.$ac_ext >&5
11071 rm -rf conftest*
11072 glibcpp_cv_func__isnan_use=no
11074 rm -f conftest*
11075 ac_ext=c
11076 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11077 ac_cpp='$CPP $CPPFLAGS'
11078 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11079 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11080 cross_compiling=$ac_cv_prog_cc_cross
11086 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11088 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11089 for ac_func in _isnan
11091 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11092 echo "configure:11093: checking for $ac_func" >&5
11093 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11094 echo $ac_n "(cached) $ac_c" 1>&6
11095 else
11096 cat > conftest.$ac_ext <<EOF
11097 #line 11098 "configure"
11098 #include "confdefs.h"
11099 /* System header to define __stub macros and hopefully few prototypes,
11100 which can conflict with char $ac_func(); below. */
11101 #include <assert.h>
11102 /* Override any gcc2 internal prototype to avoid an error. */
11103 /* We use char because int might match the return type of a gcc2
11104 builtin and then its argument prototype would still apply. */
11105 char $ac_func();
11107 int main() {
11109 /* The GNU C library defines this for functions which it implements
11110 to always fail with ENOSYS. Some functions are actually named
11111 something starting with __ and the normal name is an alias. */
11112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11113 choke me
11114 #else
11115 $ac_func();
11116 #endif
11118 ; return 0; }
11120 if { (eval echo configure:11121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11121 rm -rf conftest*
11122 eval "ac_cv_func_$ac_func=yes"
11123 else
11124 echo "configure: failed program was:" >&5
11125 cat conftest.$ac_ext >&5
11126 rm -rf conftest*
11127 eval "ac_cv_func_$ac_func=no"
11129 rm -f conftest*
11132 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11133 echo "$ac_t""yes" 1>&6
11134 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11135 cat >> confdefs.h <<EOF
11136 #define $ac_tr_func 1
11139 else
11140 echo "$ac_t""no" 1>&6
11142 done
11149 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11150 echo "configure:11151: checking for finite declaration" >&5
11151 if test x${glibcpp_cv_func_finite_use+set} != xset; then
11152 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11153 echo $ac_n "(cached) $ac_c" 1>&6
11154 else
11157 ac_ext=C
11158 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11159 ac_cpp='$CXXCPP $CPPFLAGS'
11160 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11161 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11162 cross_compiling=$ac_cv_prog_cxx_cross
11164 cat > conftest.$ac_ext <<EOF
11165 #line 11166 "configure"
11166 #include "confdefs.h"
11167 #include <math.h>
11168 #ifdef HAVE_IEEEFP_H
11169 #include <ieeefp.h>
11170 #endif
11172 int main() {
11173 finite(0);
11174 ; return 0; }
11176 if { (eval echo configure:11177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11177 rm -rf conftest*
11178 glibcpp_cv_func_finite_use=yes
11179 else
11180 echo "configure: failed program was:" >&5
11181 cat conftest.$ac_ext >&5
11182 rm -rf conftest*
11183 glibcpp_cv_func_finite_use=no
11185 rm -f conftest*
11186 ac_ext=c
11187 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11188 ac_cpp='$CPP $CPPFLAGS'
11189 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11190 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11191 cross_compiling=$ac_cv_prog_cc_cross
11197 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11199 if test x$glibcpp_cv_func_finite_use = x"yes"; then
11200 for ac_func in finite
11202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11203 echo "configure:11204: checking for $ac_func" >&5
11204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11205 echo $ac_n "(cached) $ac_c" 1>&6
11206 else
11207 cat > conftest.$ac_ext <<EOF
11208 #line 11209 "configure"
11209 #include "confdefs.h"
11210 /* System header to define __stub macros and hopefully few prototypes,
11211 which can conflict with char $ac_func(); below. */
11212 #include <assert.h>
11213 /* Override any gcc2 internal prototype to avoid an error. */
11214 /* We use char because int might match the return type of a gcc2
11215 builtin and then its argument prototype would still apply. */
11216 char $ac_func();
11218 int main() {
11220 /* The GNU C library defines this for functions which it implements
11221 to always fail with ENOSYS. Some functions are actually named
11222 something starting with __ and the normal name is an alias. */
11223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11224 choke me
11225 #else
11226 $ac_func();
11227 #endif
11229 ; return 0; }
11231 if { (eval echo configure:11232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11232 rm -rf conftest*
11233 eval "ac_cv_func_$ac_func=yes"
11234 else
11235 echo "configure: failed program was:" >&5
11236 cat conftest.$ac_ext >&5
11237 rm -rf conftest*
11238 eval "ac_cv_func_$ac_func=no"
11240 rm -f conftest*
11243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11244 echo "$ac_t""yes" 1>&6
11245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11246 cat >> confdefs.h <<EOF
11247 #define $ac_tr_func 1
11250 else
11251 echo "$ac_t""no" 1>&6
11253 done
11255 else
11257 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11258 echo "configure:11259: checking for _finite declaration" >&5
11259 if test x${glibcpp_cv_func__finite_use+set} != xset; then
11260 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11261 echo $ac_n "(cached) $ac_c" 1>&6
11262 else
11265 ac_ext=C
11266 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11267 ac_cpp='$CXXCPP $CPPFLAGS'
11268 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11269 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11270 cross_compiling=$ac_cv_prog_cxx_cross
11272 cat > conftest.$ac_ext <<EOF
11273 #line 11274 "configure"
11274 #include "confdefs.h"
11275 #include <math.h>
11276 #ifdef HAVE_IEEEFP_H
11277 #include <ieeefp.h>
11278 #endif
11280 int main() {
11281 _finite(0);
11282 ; return 0; }
11284 if { (eval echo configure:11285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11285 rm -rf conftest*
11286 glibcpp_cv_func__finite_use=yes
11287 else
11288 echo "configure: failed program was:" >&5
11289 cat conftest.$ac_ext >&5
11290 rm -rf conftest*
11291 glibcpp_cv_func__finite_use=no
11293 rm -f conftest*
11294 ac_ext=c
11295 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11296 ac_cpp='$CPP $CPPFLAGS'
11297 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11298 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11299 cross_compiling=$ac_cv_prog_cc_cross
11305 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11307 if test x$glibcpp_cv_func__finite_use = x"yes"; then
11308 for ac_func in _finite
11310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11311 echo "configure:11312: checking for $ac_func" >&5
11312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11313 echo $ac_n "(cached) $ac_c" 1>&6
11314 else
11315 cat > conftest.$ac_ext <<EOF
11316 #line 11317 "configure"
11317 #include "confdefs.h"
11318 /* System header to define __stub macros and hopefully few prototypes,
11319 which can conflict with char $ac_func(); below. */
11320 #include <assert.h>
11321 /* Override any gcc2 internal prototype to avoid an error. */
11322 /* We use char because int might match the return type of a gcc2
11323 builtin and then its argument prototype would still apply. */
11324 char $ac_func();
11326 int main() {
11328 /* The GNU C library defines this for functions which it implements
11329 to always fail with ENOSYS. Some functions are actually named
11330 something starting with __ and the normal name is an alias. */
11331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11332 choke me
11333 #else
11334 $ac_func();
11335 #endif
11337 ; return 0; }
11339 if { (eval echo configure:11340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11340 rm -rf conftest*
11341 eval "ac_cv_func_$ac_func=yes"
11342 else
11343 echo "configure: failed program was:" >&5
11344 cat conftest.$ac_ext >&5
11345 rm -rf conftest*
11346 eval "ac_cv_func_$ac_func=no"
11348 rm -f conftest*
11351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11352 echo "$ac_t""yes" 1>&6
11353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11354 cat >> confdefs.h <<EOF
11355 #define $ac_tr_func 1
11358 else
11359 echo "$ac_t""no" 1>&6
11361 done
11368 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11369 echo "configure:11370: checking for copysign declaration" >&5
11370 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11371 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11372 echo $ac_n "(cached) $ac_c" 1>&6
11373 else
11376 ac_ext=C
11377 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11378 ac_cpp='$CXXCPP $CPPFLAGS'
11379 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11380 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11381 cross_compiling=$ac_cv_prog_cxx_cross
11383 cat > conftest.$ac_ext <<EOF
11384 #line 11385 "configure"
11385 #include "confdefs.h"
11386 #include <math.h>
11387 int main() {
11388 copysign(0, 0);
11389 ; return 0; }
11391 if { (eval echo configure:11392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11392 rm -rf conftest*
11393 glibcpp_cv_func_copysign_use=yes
11394 else
11395 echo "configure: failed program was:" >&5
11396 cat conftest.$ac_ext >&5
11397 rm -rf conftest*
11398 glibcpp_cv_func_copysign_use=no
11400 rm -f conftest*
11401 ac_ext=c
11402 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11403 ac_cpp='$CPP $CPPFLAGS'
11404 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11405 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11406 cross_compiling=$ac_cv_prog_cc_cross
11412 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11414 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11415 for ac_func in copysign
11417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11418 echo "configure:11419: checking for $ac_func" >&5
11419 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11420 echo $ac_n "(cached) $ac_c" 1>&6
11421 else
11422 cat > conftest.$ac_ext <<EOF
11423 #line 11424 "configure"
11424 #include "confdefs.h"
11425 /* System header to define __stub macros and hopefully few prototypes,
11426 which can conflict with char $ac_func(); below. */
11427 #include <assert.h>
11428 /* Override any gcc2 internal prototype to avoid an error. */
11429 /* We use char because int might match the return type of a gcc2
11430 builtin and then its argument prototype would still apply. */
11431 char $ac_func();
11433 int main() {
11435 /* The GNU C library defines this for functions which it implements
11436 to always fail with ENOSYS. Some functions are actually named
11437 something starting with __ and the normal name is an alias. */
11438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11439 choke me
11440 #else
11441 $ac_func();
11442 #endif
11444 ; return 0; }
11446 if { (eval echo configure:11447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11447 rm -rf conftest*
11448 eval "ac_cv_func_$ac_func=yes"
11449 else
11450 echo "configure: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11452 rm -rf conftest*
11453 eval "ac_cv_func_$ac_func=no"
11455 rm -f conftest*
11458 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11459 echo "$ac_t""yes" 1>&6
11460 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11461 cat >> confdefs.h <<EOF
11462 #define $ac_tr_func 1
11465 else
11466 echo "$ac_t""no" 1>&6
11468 done
11470 else
11472 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11473 echo "configure:11474: checking for _copysign declaration" >&5
11474 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11475 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11476 echo $ac_n "(cached) $ac_c" 1>&6
11477 else
11480 ac_ext=C
11481 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11482 ac_cpp='$CXXCPP $CPPFLAGS'
11483 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11484 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11485 cross_compiling=$ac_cv_prog_cxx_cross
11487 cat > conftest.$ac_ext <<EOF
11488 #line 11489 "configure"
11489 #include "confdefs.h"
11490 #include <math.h>
11491 int main() {
11492 _copysign(0, 0);
11493 ; return 0; }
11495 if { (eval echo configure:11496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11496 rm -rf conftest*
11497 glibcpp_cv_func__copysign_use=yes
11498 else
11499 echo "configure: failed program was:" >&5
11500 cat conftest.$ac_ext >&5
11501 rm -rf conftest*
11502 glibcpp_cv_func__copysign_use=no
11504 rm -f conftest*
11505 ac_ext=c
11506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11507 ac_cpp='$CPP $CPPFLAGS'
11508 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11509 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11510 cross_compiling=$ac_cv_prog_cc_cross
11516 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11518 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11519 for ac_func in _copysign
11521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11522 echo "configure:11523: checking for $ac_func" >&5
11523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11524 echo $ac_n "(cached) $ac_c" 1>&6
11525 else
11526 cat > conftest.$ac_ext <<EOF
11527 #line 11528 "configure"
11528 #include "confdefs.h"
11529 /* System header to define __stub macros and hopefully few prototypes,
11530 which can conflict with char $ac_func(); below. */
11531 #include <assert.h>
11532 /* Override any gcc2 internal prototype to avoid an error. */
11533 /* We use char because int might match the return type of a gcc2
11534 builtin and then its argument prototype would still apply. */
11535 char $ac_func();
11537 int main() {
11539 /* The GNU C library defines this for functions which it implements
11540 to always fail with ENOSYS. Some functions are actually named
11541 something starting with __ and the normal name is an alias. */
11542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11543 choke me
11544 #else
11545 $ac_func();
11546 #endif
11548 ; return 0; }
11550 if { (eval echo configure:11551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11551 rm -rf conftest*
11552 eval "ac_cv_func_$ac_func=yes"
11553 else
11554 echo "configure: failed program was:" >&5
11555 cat conftest.$ac_ext >&5
11556 rm -rf conftest*
11557 eval "ac_cv_func_$ac_func=no"
11559 rm -f conftest*
11562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11563 echo "$ac_t""yes" 1>&6
11564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11565 cat >> confdefs.h <<EOF
11566 #define $ac_tr_func 1
11569 else
11570 echo "$ac_t""no" 1>&6
11572 done
11579 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11580 echo "configure:11581: checking for sincos declaration" >&5
11581 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11582 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11583 echo $ac_n "(cached) $ac_c" 1>&6
11584 else
11587 ac_ext=C
11588 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11589 ac_cpp='$CXXCPP $CPPFLAGS'
11590 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11591 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11592 cross_compiling=$ac_cv_prog_cxx_cross
11594 cat > conftest.$ac_ext <<EOF
11595 #line 11596 "configure"
11596 #include "confdefs.h"
11597 #include <math.h>
11598 int main() {
11599 sincos(0, 0, 0);
11600 ; return 0; }
11602 if { (eval echo configure:11603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11603 rm -rf conftest*
11604 glibcpp_cv_func_sincos_use=yes
11605 else
11606 echo "configure: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 rm -rf conftest*
11609 glibcpp_cv_func_sincos_use=no
11611 rm -f conftest*
11612 ac_ext=c
11613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11614 ac_cpp='$CPP $CPPFLAGS'
11615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11617 cross_compiling=$ac_cv_prog_cc_cross
11623 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11625 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11626 for ac_func in sincos
11628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11629 echo "configure:11630: checking for $ac_func" >&5
11630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11631 echo $ac_n "(cached) $ac_c" 1>&6
11632 else
11633 cat > conftest.$ac_ext <<EOF
11634 #line 11635 "configure"
11635 #include "confdefs.h"
11636 /* System header to define __stub macros and hopefully few prototypes,
11637 which can conflict with char $ac_func(); below. */
11638 #include <assert.h>
11639 /* Override any gcc2 internal prototype to avoid an error. */
11640 /* We use char because int might match the return type of a gcc2
11641 builtin and then its argument prototype would still apply. */
11642 char $ac_func();
11644 int main() {
11646 /* The GNU C library defines this for functions which it implements
11647 to always fail with ENOSYS. Some functions are actually named
11648 something starting with __ and the normal name is an alias. */
11649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11650 choke me
11651 #else
11652 $ac_func();
11653 #endif
11655 ; return 0; }
11657 if { (eval echo configure:11658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11658 rm -rf conftest*
11659 eval "ac_cv_func_$ac_func=yes"
11660 else
11661 echo "configure: failed program was:" >&5
11662 cat conftest.$ac_ext >&5
11663 rm -rf conftest*
11664 eval "ac_cv_func_$ac_func=no"
11666 rm -f conftest*
11669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11670 echo "$ac_t""yes" 1>&6
11671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11672 cat >> confdefs.h <<EOF
11673 #define $ac_tr_func 1
11676 else
11677 echo "$ac_t""no" 1>&6
11679 done
11681 else
11683 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11684 echo "configure:11685: checking for _sincos declaration" >&5
11685 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11686 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11687 echo $ac_n "(cached) $ac_c" 1>&6
11688 else
11691 ac_ext=C
11692 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11693 ac_cpp='$CXXCPP $CPPFLAGS'
11694 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11695 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11696 cross_compiling=$ac_cv_prog_cxx_cross
11698 cat > conftest.$ac_ext <<EOF
11699 #line 11700 "configure"
11700 #include "confdefs.h"
11701 #include <math.h>
11702 int main() {
11703 _sincos(0, 0, 0);
11704 ; return 0; }
11706 if { (eval echo configure:11707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11707 rm -rf conftest*
11708 glibcpp_cv_func__sincos_use=yes
11709 else
11710 echo "configure: failed program was:" >&5
11711 cat conftest.$ac_ext >&5
11712 rm -rf conftest*
11713 glibcpp_cv_func__sincos_use=no
11715 rm -f conftest*
11716 ac_ext=c
11717 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11718 ac_cpp='$CPP $CPPFLAGS'
11719 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11720 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11721 cross_compiling=$ac_cv_prog_cc_cross
11727 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11729 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11730 for ac_func in _sincos
11732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11733 echo "configure:11734: checking for $ac_func" >&5
11734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11735 echo $ac_n "(cached) $ac_c" 1>&6
11736 else
11737 cat > conftest.$ac_ext <<EOF
11738 #line 11739 "configure"
11739 #include "confdefs.h"
11740 /* System header to define __stub macros and hopefully few prototypes,
11741 which can conflict with char $ac_func(); below. */
11742 #include <assert.h>
11743 /* Override any gcc2 internal prototype to avoid an error. */
11744 /* We use char because int might match the return type of a gcc2
11745 builtin and then its argument prototype would still apply. */
11746 char $ac_func();
11748 int main() {
11750 /* The GNU C library defines this for functions which it implements
11751 to always fail with ENOSYS. Some functions are actually named
11752 something starting with __ and the normal name is an alias. */
11753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11754 choke me
11755 #else
11756 $ac_func();
11757 #endif
11759 ; return 0; }
11761 if { (eval echo configure:11762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11762 rm -rf conftest*
11763 eval "ac_cv_func_$ac_func=yes"
11764 else
11765 echo "configure: failed program was:" >&5
11766 cat conftest.$ac_ext >&5
11767 rm -rf conftest*
11768 eval "ac_cv_func_$ac_func=no"
11770 rm -f conftest*
11773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11774 echo "$ac_t""yes" 1>&6
11775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11776 cat >> confdefs.h <<EOF
11777 #define $ac_tr_func 1
11780 else
11781 echo "$ac_t""no" 1>&6
11783 done
11790 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11791 echo "configure:11792: checking for fpclass declaration" >&5
11792 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11793 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11794 echo $ac_n "(cached) $ac_c" 1>&6
11795 else
11798 ac_ext=C
11799 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11800 ac_cpp='$CXXCPP $CPPFLAGS'
11801 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11802 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11803 cross_compiling=$ac_cv_prog_cxx_cross
11805 cat > conftest.$ac_ext <<EOF
11806 #line 11807 "configure"
11807 #include "confdefs.h"
11808 #include <math.h>
11809 #ifdef HAVE_IEEEFP_H
11810 #include <ieeefp.h>
11811 #endif
11813 int main() {
11814 fpclass(0);
11815 ; return 0; }
11817 if { (eval echo configure:11818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11818 rm -rf conftest*
11819 glibcpp_cv_func_fpclass_use=yes
11820 else
11821 echo "configure: failed program was:" >&5
11822 cat conftest.$ac_ext >&5
11823 rm -rf conftest*
11824 glibcpp_cv_func_fpclass_use=no
11826 rm -f conftest*
11827 ac_ext=c
11828 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11829 ac_cpp='$CPP $CPPFLAGS'
11830 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11831 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11832 cross_compiling=$ac_cv_prog_cc_cross
11838 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11840 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11841 for ac_func in fpclass
11843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11844 echo "configure:11845: checking for $ac_func" >&5
11845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11846 echo $ac_n "(cached) $ac_c" 1>&6
11847 else
11848 cat > conftest.$ac_ext <<EOF
11849 #line 11850 "configure"
11850 #include "confdefs.h"
11851 /* System header to define __stub macros and hopefully few prototypes,
11852 which can conflict with char $ac_func(); below. */
11853 #include <assert.h>
11854 /* Override any gcc2 internal prototype to avoid an error. */
11855 /* We use char because int might match the return type of a gcc2
11856 builtin and then its argument prototype would still apply. */
11857 char $ac_func();
11859 int main() {
11861 /* The GNU C library defines this for functions which it implements
11862 to always fail with ENOSYS. Some functions are actually named
11863 something starting with __ and the normal name is an alias. */
11864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11865 choke me
11866 #else
11867 $ac_func();
11868 #endif
11870 ; return 0; }
11872 if { (eval echo configure:11873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11873 rm -rf conftest*
11874 eval "ac_cv_func_$ac_func=yes"
11875 else
11876 echo "configure: failed program was:" >&5
11877 cat conftest.$ac_ext >&5
11878 rm -rf conftest*
11879 eval "ac_cv_func_$ac_func=no"
11881 rm -f conftest*
11884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11885 echo "$ac_t""yes" 1>&6
11886 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11887 cat >> confdefs.h <<EOF
11888 #define $ac_tr_func 1
11891 else
11892 echo "$ac_t""no" 1>&6
11894 done
11896 else
11898 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11899 echo "configure:11900: checking for _fpclass declaration" >&5
11900 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11901 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11902 echo $ac_n "(cached) $ac_c" 1>&6
11903 else
11906 ac_ext=C
11907 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11908 ac_cpp='$CXXCPP $CPPFLAGS'
11909 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11910 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11911 cross_compiling=$ac_cv_prog_cxx_cross
11913 cat > conftest.$ac_ext <<EOF
11914 #line 11915 "configure"
11915 #include "confdefs.h"
11916 #include <math.h>
11917 #ifdef HAVE_IEEEFP_H
11918 #include <ieeefp.h>
11919 #endif
11921 int main() {
11922 _fpclass(0);
11923 ; return 0; }
11925 if { (eval echo configure:11926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11926 rm -rf conftest*
11927 glibcpp_cv_func__fpclass_use=yes
11928 else
11929 echo "configure: failed program was:" >&5
11930 cat conftest.$ac_ext >&5
11931 rm -rf conftest*
11932 glibcpp_cv_func__fpclass_use=no
11934 rm -f conftest*
11935 ac_ext=c
11936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11937 ac_cpp='$CPP $CPPFLAGS'
11938 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11939 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11940 cross_compiling=$ac_cv_prog_cc_cross
11946 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11948 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11949 for ac_func in _fpclass
11951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11952 echo "configure:11953: checking for $ac_func" >&5
11953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11954 echo $ac_n "(cached) $ac_c" 1>&6
11955 else
11956 cat > conftest.$ac_ext <<EOF
11957 #line 11958 "configure"
11958 #include "confdefs.h"
11959 /* System header to define __stub macros and hopefully few prototypes,
11960 which can conflict with char $ac_func(); below. */
11961 #include <assert.h>
11962 /* Override any gcc2 internal prototype to avoid an error. */
11963 /* We use char because int might match the return type of a gcc2
11964 builtin and then its argument prototype would still apply. */
11965 char $ac_func();
11967 int main() {
11969 /* The GNU C library defines this for functions which it implements
11970 to always fail with ENOSYS. Some functions are actually named
11971 something starting with __ and the normal name is an alias. */
11972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11973 choke me
11974 #else
11975 $ac_func();
11976 #endif
11978 ; return 0; }
11980 if { (eval echo configure:11981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11981 rm -rf conftest*
11982 eval "ac_cv_func_$ac_func=yes"
11983 else
11984 echo "configure: failed program was:" >&5
11985 cat conftest.$ac_ext >&5
11986 rm -rf conftest*
11987 eval "ac_cv_func_$ac_func=no"
11989 rm -f conftest*
11992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11993 echo "$ac_t""yes" 1>&6
11994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11995 cat >> confdefs.h <<EOF
11996 #define $ac_tr_func 1
11999 else
12000 echo "$ac_t""no" 1>&6
12002 done
12009 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12010 echo "configure:12011: checking for qfpclass declaration" >&5
12011 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12012 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12013 echo $ac_n "(cached) $ac_c" 1>&6
12014 else
12017 ac_ext=C
12018 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12019 ac_cpp='$CXXCPP $CPPFLAGS'
12020 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12021 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12022 cross_compiling=$ac_cv_prog_cxx_cross
12024 cat > conftest.$ac_ext <<EOF
12025 #line 12026 "configure"
12026 #include "confdefs.h"
12027 #include <math.h>
12028 #ifdef HAVE_IEEEFP_H
12029 #include <ieeefp.h>
12030 #endif
12032 int main() {
12033 qfpclass(0);
12034 ; return 0; }
12036 if { (eval echo configure:12037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12037 rm -rf conftest*
12038 glibcpp_cv_func_qfpclass_use=yes
12039 else
12040 echo "configure: failed program was:" >&5
12041 cat conftest.$ac_ext >&5
12042 rm -rf conftest*
12043 glibcpp_cv_func_qfpclass_use=no
12045 rm -f conftest*
12046 ac_ext=c
12047 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12048 ac_cpp='$CPP $CPPFLAGS'
12049 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12050 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12051 cross_compiling=$ac_cv_prog_cc_cross
12057 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12059 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12060 for ac_func in qfpclass
12062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12063 echo "configure:12064: checking for $ac_func" >&5
12064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12065 echo $ac_n "(cached) $ac_c" 1>&6
12066 else
12067 cat > conftest.$ac_ext <<EOF
12068 #line 12069 "configure"
12069 #include "confdefs.h"
12070 /* System header to define __stub macros and hopefully few prototypes,
12071 which can conflict with char $ac_func(); below. */
12072 #include <assert.h>
12073 /* Override any gcc2 internal prototype to avoid an error. */
12074 /* We use char because int might match the return type of a gcc2
12075 builtin and then its argument prototype would still apply. */
12076 char $ac_func();
12078 int main() {
12080 /* The GNU C library defines this for functions which it implements
12081 to always fail with ENOSYS. Some functions are actually named
12082 something starting with __ and the normal name is an alias. */
12083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12084 choke me
12085 #else
12086 $ac_func();
12087 #endif
12089 ; return 0; }
12091 if { (eval echo configure:12092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12092 rm -rf conftest*
12093 eval "ac_cv_func_$ac_func=yes"
12094 else
12095 echo "configure: failed program was:" >&5
12096 cat conftest.$ac_ext >&5
12097 rm -rf conftest*
12098 eval "ac_cv_func_$ac_func=no"
12100 rm -f conftest*
12103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12104 echo "$ac_t""yes" 1>&6
12105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12106 cat >> confdefs.h <<EOF
12107 #define $ac_tr_func 1
12110 else
12111 echo "$ac_t""no" 1>&6
12113 done
12115 else
12117 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12118 echo "configure:12119: checking for _qfpclass declaration" >&5
12119 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12120 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12121 echo $ac_n "(cached) $ac_c" 1>&6
12122 else
12125 ac_ext=C
12126 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12127 ac_cpp='$CXXCPP $CPPFLAGS'
12128 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12129 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12130 cross_compiling=$ac_cv_prog_cxx_cross
12132 cat > conftest.$ac_ext <<EOF
12133 #line 12134 "configure"
12134 #include "confdefs.h"
12135 #include <math.h>
12136 #ifdef HAVE_IEEEFP_H
12137 #include <ieeefp.h>
12138 #endif
12140 int main() {
12141 _qfpclass(0);
12142 ; return 0; }
12144 if { (eval echo configure:12145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12145 rm -rf conftest*
12146 glibcpp_cv_func__qfpclass_use=yes
12147 else
12148 echo "configure: failed program was:" >&5
12149 cat conftest.$ac_ext >&5
12150 rm -rf conftest*
12151 glibcpp_cv_func__qfpclass_use=no
12153 rm -f conftest*
12154 ac_ext=c
12155 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12156 ac_cpp='$CPP $CPPFLAGS'
12157 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12158 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12159 cross_compiling=$ac_cv_prog_cc_cross
12165 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12167 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12168 for ac_func in _qfpclass
12170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12171 echo "configure:12172: checking for $ac_func" >&5
12172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12173 echo $ac_n "(cached) $ac_c" 1>&6
12174 else
12175 cat > conftest.$ac_ext <<EOF
12176 #line 12177 "configure"
12177 #include "confdefs.h"
12178 /* System header to define __stub macros and hopefully few prototypes,
12179 which can conflict with char $ac_func(); below. */
12180 #include <assert.h>
12181 /* Override any gcc2 internal prototype to avoid an error. */
12182 /* We use char because int might match the return type of a gcc2
12183 builtin and then its argument prototype would still apply. */
12184 char $ac_func();
12186 int main() {
12188 /* The GNU C library defines this for functions which it implements
12189 to always fail with ENOSYS. Some functions are actually named
12190 something starting with __ and the normal name is an alias. */
12191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12192 choke me
12193 #else
12194 $ac_func();
12195 #endif
12197 ; return 0; }
12199 if { (eval echo configure:12200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12200 rm -rf conftest*
12201 eval "ac_cv_func_$ac_func=yes"
12202 else
12203 echo "configure: failed program was:" >&5
12204 cat conftest.$ac_ext >&5
12205 rm -rf conftest*
12206 eval "ac_cv_func_$ac_func=no"
12208 rm -f conftest*
12211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12212 echo "$ac_t""yes" 1>&6
12213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12214 cat >> confdefs.h <<EOF
12215 #define $ac_tr_func 1
12218 else
12219 echo "$ac_t""no" 1>&6
12221 done
12228 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12229 echo "configure:12230: checking for hypot declaration" >&5
12230 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12231 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12232 echo $ac_n "(cached) $ac_c" 1>&6
12233 else
12236 ac_ext=C
12237 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12238 ac_cpp='$CXXCPP $CPPFLAGS'
12239 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12240 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12241 cross_compiling=$ac_cv_prog_cxx_cross
12243 cat > conftest.$ac_ext <<EOF
12244 #line 12245 "configure"
12245 #include "confdefs.h"
12246 #include <math.h>
12247 int main() {
12248 hypot(0, 0);
12249 ; return 0; }
12251 if { (eval echo configure:12252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12252 rm -rf conftest*
12253 glibcpp_cv_func_hypot_use=yes
12254 else
12255 echo "configure: failed program was:" >&5
12256 cat conftest.$ac_ext >&5
12257 rm -rf conftest*
12258 glibcpp_cv_func_hypot_use=no
12260 rm -f conftest*
12261 ac_ext=c
12262 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12263 ac_cpp='$CPP $CPPFLAGS'
12264 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12265 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12266 cross_compiling=$ac_cv_prog_cc_cross
12272 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12274 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12275 for ac_func in hypot
12277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12278 echo "configure:12279: checking for $ac_func" >&5
12279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12280 echo $ac_n "(cached) $ac_c" 1>&6
12281 else
12282 cat > conftest.$ac_ext <<EOF
12283 #line 12284 "configure"
12284 #include "confdefs.h"
12285 /* System header to define __stub macros and hopefully few prototypes,
12286 which can conflict with char $ac_func(); below. */
12287 #include <assert.h>
12288 /* Override any gcc2 internal prototype to avoid an error. */
12289 /* We use char because int might match the return type of a gcc2
12290 builtin and then its argument prototype would still apply. */
12291 char $ac_func();
12293 int main() {
12295 /* The GNU C library defines this for functions which it implements
12296 to always fail with ENOSYS. Some functions are actually named
12297 something starting with __ and the normal name is an alias. */
12298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12299 choke me
12300 #else
12301 $ac_func();
12302 #endif
12304 ; return 0; }
12306 if { (eval echo configure:12307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12307 rm -rf conftest*
12308 eval "ac_cv_func_$ac_func=yes"
12309 else
12310 echo "configure: failed program was:" >&5
12311 cat conftest.$ac_ext >&5
12312 rm -rf conftest*
12313 eval "ac_cv_func_$ac_func=no"
12315 rm -f conftest*
12318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12319 echo "$ac_t""yes" 1>&6
12320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12321 cat >> confdefs.h <<EOF
12322 #define $ac_tr_func 1
12325 else
12326 echo "$ac_t""no" 1>&6
12328 done
12330 else
12332 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12333 echo "configure:12334: checking for _hypot declaration" >&5
12334 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12335 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12336 echo $ac_n "(cached) $ac_c" 1>&6
12337 else
12340 ac_ext=C
12341 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12342 ac_cpp='$CXXCPP $CPPFLAGS'
12343 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12344 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12345 cross_compiling=$ac_cv_prog_cxx_cross
12347 cat > conftest.$ac_ext <<EOF
12348 #line 12349 "configure"
12349 #include "confdefs.h"
12350 #include <math.h>
12351 int main() {
12352 _hypot(0, 0);
12353 ; return 0; }
12355 if { (eval echo configure:12356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12356 rm -rf conftest*
12357 glibcpp_cv_func__hypot_use=yes
12358 else
12359 echo "configure: failed program was:" >&5
12360 cat conftest.$ac_ext >&5
12361 rm -rf conftest*
12362 glibcpp_cv_func__hypot_use=no
12364 rm -f conftest*
12365 ac_ext=c
12366 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12367 ac_cpp='$CPP $CPPFLAGS'
12368 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12369 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12370 cross_compiling=$ac_cv_prog_cc_cross
12376 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12378 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12379 for ac_func in _hypot
12381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12382 echo "configure:12383: checking for $ac_func" >&5
12383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12384 echo $ac_n "(cached) $ac_c" 1>&6
12385 else
12386 cat > conftest.$ac_ext <<EOF
12387 #line 12388 "configure"
12388 #include "confdefs.h"
12389 /* System header to define __stub macros and hopefully few prototypes,
12390 which can conflict with char $ac_func(); below. */
12391 #include <assert.h>
12392 /* Override any gcc2 internal prototype to avoid an error. */
12393 /* We use char because int might match the return type of a gcc2
12394 builtin and then its argument prototype would still apply. */
12395 char $ac_func();
12397 int main() {
12399 /* The GNU C library defines this for functions which it implements
12400 to always fail with ENOSYS. Some functions are actually named
12401 something starting with __ and the normal name is an alias. */
12402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12403 choke me
12404 #else
12405 $ac_func();
12406 #endif
12408 ; return 0; }
12410 if { (eval echo configure:12411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12411 rm -rf conftest*
12412 eval "ac_cv_func_$ac_func=yes"
12413 else
12414 echo "configure: failed program was:" >&5
12415 cat conftest.$ac_ext >&5
12416 rm -rf conftest*
12417 eval "ac_cv_func_$ac_func=no"
12419 rm -f conftest*
12422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12423 echo "$ac_t""yes" 1>&6
12424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12425 cat >> confdefs.h <<EOF
12426 #define $ac_tr_func 1
12429 else
12430 echo "$ac_t""no" 1>&6
12432 done
12439 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12440 echo "configure:12441: checking for float trig functions" >&5
12441 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12442 echo $ac_n "(cached) $ac_c" 1>&6
12443 else
12446 ac_ext=C
12447 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12448 ac_cpp='$CXXCPP $CPPFLAGS'
12449 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12450 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12451 cross_compiling=$ac_cv_prog_cxx_cross
12453 cat > conftest.$ac_ext <<EOF
12454 #line 12455 "configure"
12455 #include "confdefs.h"
12456 #include <math.h>
12457 int main() {
12458 `for x in acosf asinf atanf \
12459 cosf sinf tanf \
12460 coshf sinhf tanhf; do echo "$x (0);"; done`
12461 ; return 0; }
12463 if { (eval echo configure:12464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12464 rm -rf conftest*
12465 glibcpp_cv_func_float_trig_use=yes
12466 else
12467 echo "configure: failed program was:" >&5
12468 cat conftest.$ac_ext >&5
12469 rm -rf conftest*
12470 glibcpp_cv_func_float_trig_use=no
12472 rm -f conftest*
12473 ac_ext=c
12474 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12475 ac_cpp='$CPP $CPPFLAGS'
12476 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12477 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12478 cross_compiling=$ac_cv_prog_cc_cross
12482 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12483 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12484 for ac_func in acosf asinf atanf \
12485 cosf sinf tanf \
12486 coshf sinhf tanhf
12488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12489 echo "configure:12490: checking for $ac_func" >&5
12490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12491 echo $ac_n "(cached) $ac_c" 1>&6
12492 else
12493 cat > conftest.$ac_ext <<EOF
12494 #line 12495 "configure"
12495 #include "confdefs.h"
12496 /* System header to define __stub macros and hopefully few prototypes,
12497 which can conflict with char $ac_func(); below. */
12498 #include <assert.h>
12499 /* Override any gcc2 internal prototype to avoid an error. */
12500 /* We use char because int might match the return type of a gcc2
12501 builtin and then its argument prototype would still apply. */
12502 char $ac_func();
12504 int main() {
12506 /* The GNU C library defines this for functions which it implements
12507 to always fail with ENOSYS. Some functions are actually named
12508 something starting with __ and the normal name is an alias. */
12509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12510 choke me
12511 #else
12512 $ac_func();
12513 #endif
12515 ; return 0; }
12517 if { (eval echo configure:12518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12518 rm -rf conftest*
12519 eval "ac_cv_func_$ac_func=yes"
12520 else
12521 echo "configure: failed program was:" >&5
12522 cat conftest.$ac_ext >&5
12523 rm -rf conftest*
12524 eval "ac_cv_func_$ac_func=no"
12526 rm -f conftest*
12529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12530 echo "$ac_t""yes" 1>&6
12531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12532 cat >> confdefs.h <<EOF
12533 #define $ac_tr_func 1
12536 else
12537 echo "$ac_t""no" 1>&6
12539 done
12544 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12545 echo "configure:12546: checking for float round functions" >&5
12546 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12547 echo $ac_n "(cached) $ac_c" 1>&6
12548 else
12551 ac_ext=C
12552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12553 ac_cpp='$CXXCPP $CPPFLAGS'
12554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12556 cross_compiling=$ac_cv_prog_cxx_cross
12558 cat > conftest.$ac_ext <<EOF
12559 #line 12560 "configure"
12560 #include "confdefs.h"
12561 #include <math.h>
12562 int main() {
12563 `for x in ceilf floorf; do echo "$x (0);"; done`
12564 ; return 0; }
12566 if { (eval echo configure:12567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12567 rm -rf conftest*
12568 glibcpp_cv_func_float_round_use=yes
12569 else
12570 echo "configure: failed program was:" >&5
12571 cat conftest.$ac_ext >&5
12572 rm -rf conftest*
12573 glibcpp_cv_func_float_round_use=no
12575 rm -f conftest*
12576 ac_ext=c
12577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12578 ac_cpp='$CPP $CPPFLAGS'
12579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12581 cross_compiling=$ac_cv_prog_cc_cross
12585 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12586 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12587 for ac_func in ceilf floorf
12589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12590 echo "configure:12591: checking for $ac_func" >&5
12591 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12592 echo $ac_n "(cached) $ac_c" 1>&6
12593 else
12594 cat > conftest.$ac_ext <<EOF
12595 #line 12596 "configure"
12596 #include "confdefs.h"
12597 /* System header to define __stub macros and hopefully few prototypes,
12598 which can conflict with char $ac_func(); below. */
12599 #include <assert.h>
12600 /* Override any gcc2 internal prototype to avoid an error. */
12601 /* We use char because int might match the return type of a gcc2
12602 builtin and then its argument prototype would still apply. */
12603 char $ac_func();
12605 int main() {
12607 /* The GNU C library defines this for functions which it implements
12608 to always fail with ENOSYS. Some functions are actually named
12609 something starting with __ and the normal name is an alias. */
12610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12611 choke me
12612 #else
12613 $ac_func();
12614 #endif
12616 ; return 0; }
12618 if { (eval echo configure:12619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12619 rm -rf conftest*
12620 eval "ac_cv_func_$ac_func=yes"
12621 else
12622 echo "configure: failed program was:" >&5
12623 cat conftest.$ac_ext >&5
12624 rm -rf conftest*
12625 eval "ac_cv_func_$ac_func=no"
12627 rm -f conftest*
12630 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12631 echo "$ac_t""yes" 1>&6
12632 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12633 cat >> confdefs.h <<EOF
12634 #define $ac_tr_func 1
12637 else
12638 echo "$ac_t""no" 1>&6
12640 done
12646 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12647 echo "configure:12648: checking for expf declaration" >&5
12648 if test x${glibcpp_cv_func_expf_use+set} != xset; then
12649 if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12650 echo $ac_n "(cached) $ac_c" 1>&6
12651 else
12654 ac_ext=C
12655 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12656 ac_cpp='$CXXCPP $CPPFLAGS'
12657 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12658 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12659 cross_compiling=$ac_cv_prog_cxx_cross
12661 cat > conftest.$ac_ext <<EOF
12662 #line 12663 "configure"
12663 #include "confdefs.h"
12664 #include <math.h>
12665 #ifdef HAVE_IEEEFP_H
12666 #include <ieeefp.h>
12667 #endif
12669 int main() {
12670 expf(0);
12671 ; return 0; }
12673 if { (eval echo configure:12674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12674 rm -rf conftest*
12675 glibcpp_cv_func_expf_use=yes
12676 else
12677 echo "configure: failed program was:" >&5
12678 cat conftest.$ac_ext >&5
12679 rm -rf conftest*
12680 glibcpp_cv_func_expf_use=no
12682 rm -f conftest*
12683 ac_ext=c
12684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12685 ac_cpp='$CPP $CPPFLAGS'
12686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12688 cross_compiling=$ac_cv_prog_cc_cross
12694 echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12696 if test x$glibcpp_cv_func_expf_use = x"yes"; then
12697 for ac_func in expf
12699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12700 echo "configure:12701: checking for $ac_func" >&5
12701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12702 echo $ac_n "(cached) $ac_c" 1>&6
12703 else
12704 cat > conftest.$ac_ext <<EOF
12705 #line 12706 "configure"
12706 #include "confdefs.h"
12707 /* System header to define __stub macros and hopefully few prototypes,
12708 which can conflict with char $ac_func(); below. */
12709 #include <assert.h>
12710 /* Override any gcc2 internal prototype to avoid an error. */
12711 /* We use char because int might match the return type of a gcc2
12712 builtin and then its argument prototype would still apply. */
12713 char $ac_func();
12715 int main() {
12717 /* The GNU C library defines this for functions which it implements
12718 to always fail with ENOSYS. Some functions are actually named
12719 something starting with __ and the normal name is an alias. */
12720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12721 choke me
12722 #else
12723 $ac_func();
12724 #endif
12726 ; return 0; }
12728 if { (eval echo configure:12729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12729 rm -rf conftest*
12730 eval "ac_cv_func_$ac_func=yes"
12731 else
12732 echo "configure: failed program was:" >&5
12733 cat conftest.$ac_ext >&5
12734 rm -rf conftest*
12735 eval "ac_cv_func_$ac_func=no"
12737 rm -f conftest*
12740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12741 echo "$ac_t""yes" 1>&6
12742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12743 cat >> confdefs.h <<EOF
12744 #define $ac_tr_func 1
12747 else
12748 echo "$ac_t""no" 1>&6
12750 done
12752 else
12754 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12755 echo "configure:12756: checking for _expf declaration" >&5
12756 if test x${glibcpp_cv_func__expf_use+set} != xset; then
12757 if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12758 echo $ac_n "(cached) $ac_c" 1>&6
12759 else
12762 ac_ext=C
12763 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12764 ac_cpp='$CXXCPP $CPPFLAGS'
12765 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12766 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12767 cross_compiling=$ac_cv_prog_cxx_cross
12769 cat > conftest.$ac_ext <<EOF
12770 #line 12771 "configure"
12771 #include "confdefs.h"
12772 #include <math.h>
12773 #ifdef HAVE_IEEEFP_H
12774 #include <ieeefp.h>
12775 #endif
12777 int main() {
12778 _expf(0);
12779 ; return 0; }
12781 if { (eval echo configure:12782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12782 rm -rf conftest*
12783 glibcpp_cv_func__expf_use=yes
12784 else
12785 echo "configure: failed program was:" >&5
12786 cat conftest.$ac_ext >&5
12787 rm -rf conftest*
12788 glibcpp_cv_func__expf_use=no
12790 rm -f conftest*
12791 ac_ext=c
12792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12793 ac_cpp='$CPP $CPPFLAGS'
12794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12796 cross_compiling=$ac_cv_prog_cc_cross
12802 echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12804 if test x$glibcpp_cv_func__expf_use = x"yes"; then
12805 for ac_func in _expf
12807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12808 echo "configure:12809: checking for $ac_func" >&5
12809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12810 echo $ac_n "(cached) $ac_c" 1>&6
12811 else
12812 cat > conftest.$ac_ext <<EOF
12813 #line 12814 "configure"
12814 #include "confdefs.h"
12815 /* System header to define __stub macros and hopefully few prototypes,
12816 which can conflict with char $ac_func(); below. */
12817 #include <assert.h>
12818 /* Override any gcc2 internal prototype to avoid an error. */
12819 /* We use char because int might match the return type of a gcc2
12820 builtin and then its argument prototype would still apply. */
12821 char $ac_func();
12823 int main() {
12825 /* The GNU C library defines this for functions which it implements
12826 to always fail with ENOSYS. Some functions are actually named
12827 something starting with __ and the normal name is an alias. */
12828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12829 choke me
12830 #else
12831 $ac_func();
12832 #endif
12834 ; return 0; }
12836 if { (eval echo configure:12837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12837 rm -rf conftest*
12838 eval "ac_cv_func_$ac_func=yes"
12839 else
12840 echo "configure: failed program was:" >&5
12841 cat conftest.$ac_ext >&5
12842 rm -rf conftest*
12843 eval "ac_cv_func_$ac_func=no"
12845 rm -f conftest*
12848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12849 echo "$ac_t""yes" 1>&6
12850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12851 cat >> confdefs.h <<EOF
12852 #define $ac_tr_func 1
12855 else
12856 echo "$ac_t""no" 1>&6
12858 done
12865 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12866 echo "configure:12867: checking for isnanf declaration" >&5
12867 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12868 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12869 echo $ac_n "(cached) $ac_c" 1>&6
12870 else
12873 ac_ext=C
12874 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12875 ac_cpp='$CXXCPP $CPPFLAGS'
12876 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12877 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12878 cross_compiling=$ac_cv_prog_cxx_cross
12880 cat > conftest.$ac_ext <<EOF
12881 #line 12882 "configure"
12882 #include "confdefs.h"
12883 #include <math.h>
12884 #ifdef HAVE_IEEEFP_H
12885 #include <ieeefp.h>
12886 #endif
12888 int main() {
12889 isnanf(0);
12890 ; return 0; }
12892 if { (eval echo configure:12893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12893 rm -rf conftest*
12894 glibcpp_cv_func_isnanf_use=yes
12895 else
12896 echo "configure: failed program was:" >&5
12897 cat conftest.$ac_ext >&5
12898 rm -rf conftest*
12899 glibcpp_cv_func_isnanf_use=no
12901 rm -f conftest*
12902 ac_ext=c
12903 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12904 ac_cpp='$CPP $CPPFLAGS'
12905 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12906 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12907 cross_compiling=$ac_cv_prog_cc_cross
12913 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12915 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12916 for ac_func in isnanf
12918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12919 echo "configure:12920: checking for $ac_func" >&5
12920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12921 echo $ac_n "(cached) $ac_c" 1>&6
12922 else
12923 cat > conftest.$ac_ext <<EOF
12924 #line 12925 "configure"
12925 #include "confdefs.h"
12926 /* System header to define __stub macros and hopefully few prototypes,
12927 which can conflict with char $ac_func(); below. */
12928 #include <assert.h>
12929 /* Override any gcc2 internal prototype to avoid an error. */
12930 /* We use char because int might match the return type of a gcc2
12931 builtin and then its argument prototype would still apply. */
12932 char $ac_func();
12934 int main() {
12936 /* The GNU C library defines this for functions which it implements
12937 to always fail with ENOSYS. Some functions are actually named
12938 something starting with __ and the normal name is an alias. */
12939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12940 choke me
12941 #else
12942 $ac_func();
12943 #endif
12945 ; return 0; }
12947 if { (eval echo configure:12948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12948 rm -rf conftest*
12949 eval "ac_cv_func_$ac_func=yes"
12950 else
12951 echo "configure: failed program was:" >&5
12952 cat conftest.$ac_ext >&5
12953 rm -rf conftest*
12954 eval "ac_cv_func_$ac_func=no"
12956 rm -f conftest*
12959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12960 echo "$ac_t""yes" 1>&6
12961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12962 cat >> confdefs.h <<EOF
12963 #define $ac_tr_func 1
12966 else
12967 echo "$ac_t""no" 1>&6
12969 done
12971 else
12973 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12974 echo "configure:12975: checking for _isnanf declaration" >&5
12975 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12976 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12977 echo $ac_n "(cached) $ac_c" 1>&6
12978 else
12981 ac_ext=C
12982 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12983 ac_cpp='$CXXCPP $CPPFLAGS'
12984 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12985 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12986 cross_compiling=$ac_cv_prog_cxx_cross
12988 cat > conftest.$ac_ext <<EOF
12989 #line 12990 "configure"
12990 #include "confdefs.h"
12991 #include <math.h>
12992 #ifdef HAVE_IEEEFP_H
12993 #include <ieeefp.h>
12994 #endif
12996 int main() {
12997 _isnanf(0);
12998 ; return 0; }
13000 if { (eval echo configure:13001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13001 rm -rf conftest*
13002 glibcpp_cv_func__isnanf_use=yes
13003 else
13004 echo "configure: failed program was:" >&5
13005 cat conftest.$ac_ext >&5
13006 rm -rf conftest*
13007 glibcpp_cv_func__isnanf_use=no
13009 rm -f conftest*
13010 ac_ext=c
13011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13012 ac_cpp='$CPP $CPPFLAGS'
13013 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13014 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13015 cross_compiling=$ac_cv_prog_cc_cross
13021 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13023 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13024 for ac_func in _isnanf
13026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13027 echo "configure:13028: checking for $ac_func" >&5
13028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13029 echo $ac_n "(cached) $ac_c" 1>&6
13030 else
13031 cat > conftest.$ac_ext <<EOF
13032 #line 13033 "configure"
13033 #include "confdefs.h"
13034 /* System header to define __stub macros and hopefully few prototypes,
13035 which can conflict with char $ac_func(); below. */
13036 #include <assert.h>
13037 /* Override any gcc2 internal prototype to avoid an error. */
13038 /* We use char because int might match the return type of a gcc2
13039 builtin and then its argument prototype would still apply. */
13040 char $ac_func();
13042 int main() {
13044 /* The GNU C library defines this for functions which it implements
13045 to always fail with ENOSYS. Some functions are actually named
13046 something starting with __ and the normal name is an alias. */
13047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13048 choke me
13049 #else
13050 $ac_func();
13051 #endif
13053 ; return 0; }
13055 if { (eval echo configure:13056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13056 rm -rf conftest*
13057 eval "ac_cv_func_$ac_func=yes"
13058 else
13059 echo "configure: failed program was:" >&5
13060 cat conftest.$ac_ext >&5
13061 rm -rf conftest*
13062 eval "ac_cv_func_$ac_func=no"
13064 rm -f conftest*
13067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13068 echo "$ac_t""yes" 1>&6
13069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13070 cat >> confdefs.h <<EOF
13071 #define $ac_tr_func 1
13074 else
13075 echo "$ac_t""no" 1>&6
13077 done
13084 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13085 echo "configure:13086: checking for isinff declaration" >&5
13086 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13087 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13088 echo $ac_n "(cached) $ac_c" 1>&6
13089 else
13092 ac_ext=C
13093 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13094 ac_cpp='$CXXCPP $CPPFLAGS'
13095 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13096 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13097 cross_compiling=$ac_cv_prog_cxx_cross
13099 cat > conftest.$ac_ext <<EOF
13100 #line 13101 "configure"
13101 #include "confdefs.h"
13102 #include <math.h>
13103 #ifdef HAVE_IEEEFP_H
13104 #include <ieeefp.h>
13105 #endif
13107 int main() {
13108 isinff(0);
13109 ; return 0; }
13111 if { (eval echo configure:13112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13112 rm -rf conftest*
13113 glibcpp_cv_func_isinff_use=yes
13114 else
13115 echo "configure: failed program was:" >&5
13116 cat conftest.$ac_ext >&5
13117 rm -rf conftest*
13118 glibcpp_cv_func_isinff_use=no
13120 rm -f conftest*
13121 ac_ext=c
13122 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13123 ac_cpp='$CPP $CPPFLAGS'
13124 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13125 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13126 cross_compiling=$ac_cv_prog_cc_cross
13132 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13134 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13135 for ac_func in isinff
13137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13138 echo "configure:13139: checking for $ac_func" >&5
13139 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13140 echo $ac_n "(cached) $ac_c" 1>&6
13141 else
13142 cat > conftest.$ac_ext <<EOF
13143 #line 13144 "configure"
13144 #include "confdefs.h"
13145 /* System header to define __stub macros and hopefully few prototypes,
13146 which can conflict with char $ac_func(); below. */
13147 #include <assert.h>
13148 /* Override any gcc2 internal prototype to avoid an error. */
13149 /* We use char because int might match the return type of a gcc2
13150 builtin and then its argument prototype would still apply. */
13151 char $ac_func();
13153 int main() {
13155 /* The GNU C library defines this for functions which it implements
13156 to always fail with ENOSYS. Some functions are actually named
13157 something starting with __ and the normal name is an alias. */
13158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13159 choke me
13160 #else
13161 $ac_func();
13162 #endif
13164 ; return 0; }
13166 if { (eval echo configure:13167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13167 rm -rf conftest*
13168 eval "ac_cv_func_$ac_func=yes"
13169 else
13170 echo "configure: failed program was:" >&5
13171 cat conftest.$ac_ext >&5
13172 rm -rf conftest*
13173 eval "ac_cv_func_$ac_func=no"
13175 rm -f conftest*
13178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13179 echo "$ac_t""yes" 1>&6
13180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13181 cat >> confdefs.h <<EOF
13182 #define $ac_tr_func 1
13185 else
13186 echo "$ac_t""no" 1>&6
13188 done
13190 else
13192 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13193 echo "configure:13194: checking for _isinff declaration" >&5
13194 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13195 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13196 echo $ac_n "(cached) $ac_c" 1>&6
13197 else
13200 ac_ext=C
13201 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13202 ac_cpp='$CXXCPP $CPPFLAGS'
13203 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13204 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13205 cross_compiling=$ac_cv_prog_cxx_cross
13207 cat > conftest.$ac_ext <<EOF
13208 #line 13209 "configure"
13209 #include "confdefs.h"
13210 #include <math.h>
13211 #ifdef HAVE_IEEEFP_H
13212 #include <ieeefp.h>
13213 #endif
13215 int main() {
13216 _isinff(0);
13217 ; return 0; }
13219 if { (eval echo configure:13220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13220 rm -rf conftest*
13221 glibcpp_cv_func__isinff_use=yes
13222 else
13223 echo "configure: failed program was:" >&5
13224 cat conftest.$ac_ext >&5
13225 rm -rf conftest*
13226 glibcpp_cv_func__isinff_use=no
13228 rm -f conftest*
13229 ac_ext=c
13230 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13231 ac_cpp='$CPP $CPPFLAGS'
13232 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13233 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13234 cross_compiling=$ac_cv_prog_cc_cross
13240 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13242 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13243 for ac_func in _isinff
13245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13246 echo "configure:13247: checking for $ac_func" >&5
13247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13248 echo $ac_n "(cached) $ac_c" 1>&6
13249 else
13250 cat > conftest.$ac_ext <<EOF
13251 #line 13252 "configure"
13252 #include "confdefs.h"
13253 /* System header to define __stub macros and hopefully few prototypes,
13254 which can conflict with char $ac_func(); below. */
13255 #include <assert.h>
13256 /* Override any gcc2 internal prototype to avoid an error. */
13257 /* We use char because int might match the return type of a gcc2
13258 builtin and then its argument prototype would still apply. */
13259 char $ac_func();
13261 int main() {
13263 /* The GNU C library defines this for functions which it implements
13264 to always fail with ENOSYS. Some functions are actually named
13265 something starting with __ and the normal name is an alias. */
13266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13267 choke me
13268 #else
13269 $ac_func();
13270 #endif
13272 ; return 0; }
13274 if { (eval echo configure:13275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13275 rm -rf conftest*
13276 eval "ac_cv_func_$ac_func=yes"
13277 else
13278 echo "configure: failed program was:" >&5
13279 cat conftest.$ac_ext >&5
13280 rm -rf conftest*
13281 eval "ac_cv_func_$ac_func=no"
13283 rm -f conftest*
13286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13287 echo "$ac_t""yes" 1>&6
13288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13289 cat >> confdefs.h <<EOF
13290 #define $ac_tr_func 1
13293 else
13294 echo "$ac_t""no" 1>&6
13296 done
13303 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13304 echo "configure:13305: checking for atan2f declaration" >&5
13305 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13306 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13307 echo $ac_n "(cached) $ac_c" 1>&6
13308 else
13311 ac_ext=C
13312 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13313 ac_cpp='$CXXCPP $CPPFLAGS'
13314 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13315 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13316 cross_compiling=$ac_cv_prog_cxx_cross
13318 cat > conftest.$ac_ext <<EOF
13319 #line 13320 "configure"
13320 #include "confdefs.h"
13321 #include <math.h>
13322 int main() {
13323 atan2f(0, 0);
13324 ; return 0; }
13326 if { (eval echo configure:13327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13327 rm -rf conftest*
13328 glibcpp_cv_func_atan2f_use=yes
13329 else
13330 echo "configure: failed program was:" >&5
13331 cat conftest.$ac_ext >&5
13332 rm -rf conftest*
13333 glibcpp_cv_func_atan2f_use=no
13335 rm -f conftest*
13336 ac_ext=c
13337 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13338 ac_cpp='$CPP $CPPFLAGS'
13339 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13340 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13341 cross_compiling=$ac_cv_prog_cc_cross
13347 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13349 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13350 for ac_func in atan2f
13352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13353 echo "configure:13354: checking for $ac_func" >&5
13354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13355 echo $ac_n "(cached) $ac_c" 1>&6
13356 else
13357 cat > conftest.$ac_ext <<EOF
13358 #line 13359 "configure"
13359 #include "confdefs.h"
13360 /* System header to define __stub macros and hopefully few prototypes,
13361 which can conflict with char $ac_func(); below. */
13362 #include <assert.h>
13363 /* Override any gcc2 internal prototype to avoid an error. */
13364 /* We use char because int might match the return type of a gcc2
13365 builtin and then its argument prototype would still apply. */
13366 char $ac_func();
13368 int main() {
13370 /* The GNU C library defines this for functions which it implements
13371 to always fail with ENOSYS. Some functions are actually named
13372 something starting with __ and the normal name is an alias. */
13373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13374 choke me
13375 #else
13376 $ac_func();
13377 #endif
13379 ; return 0; }
13381 if { (eval echo configure:13382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13382 rm -rf conftest*
13383 eval "ac_cv_func_$ac_func=yes"
13384 else
13385 echo "configure: failed program was:" >&5
13386 cat conftest.$ac_ext >&5
13387 rm -rf conftest*
13388 eval "ac_cv_func_$ac_func=no"
13390 rm -f conftest*
13393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13394 echo "$ac_t""yes" 1>&6
13395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13396 cat >> confdefs.h <<EOF
13397 #define $ac_tr_func 1
13400 else
13401 echo "$ac_t""no" 1>&6
13403 done
13405 else
13407 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13408 echo "configure:13409: checking for _atan2f declaration" >&5
13409 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13410 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13411 echo $ac_n "(cached) $ac_c" 1>&6
13412 else
13415 ac_ext=C
13416 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13417 ac_cpp='$CXXCPP $CPPFLAGS'
13418 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13419 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13420 cross_compiling=$ac_cv_prog_cxx_cross
13422 cat > conftest.$ac_ext <<EOF
13423 #line 13424 "configure"
13424 #include "confdefs.h"
13425 #include <math.h>
13426 int main() {
13427 _atan2f(0, 0);
13428 ; return 0; }
13430 if { (eval echo configure:13431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13431 rm -rf conftest*
13432 glibcpp_cv_func__atan2f_use=yes
13433 else
13434 echo "configure: failed program was:" >&5
13435 cat conftest.$ac_ext >&5
13436 rm -rf conftest*
13437 glibcpp_cv_func__atan2f_use=no
13439 rm -f conftest*
13440 ac_ext=c
13441 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13442 ac_cpp='$CPP $CPPFLAGS'
13443 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13444 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13445 cross_compiling=$ac_cv_prog_cc_cross
13451 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13453 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13454 for ac_func in _atan2f
13456 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13457 echo "configure:13458: checking for $ac_func" >&5
13458 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13459 echo $ac_n "(cached) $ac_c" 1>&6
13460 else
13461 cat > conftest.$ac_ext <<EOF
13462 #line 13463 "configure"
13463 #include "confdefs.h"
13464 /* System header to define __stub macros and hopefully few prototypes,
13465 which can conflict with char $ac_func(); below. */
13466 #include <assert.h>
13467 /* Override any gcc2 internal prototype to avoid an error. */
13468 /* We use char because int might match the return type of a gcc2
13469 builtin and then its argument prototype would still apply. */
13470 char $ac_func();
13472 int main() {
13474 /* The GNU C library defines this for functions which it implements
13475 to always fail with ENOSYS. Some functions are actually named
13476 something starting with __ and the normal name is an alias. */
13477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13478 choke me
13479 #else
13480 $ac_func();
13481 #endif
13483 ; return 0; }
13485 if { (eval echo configure:13486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13486 rm -rf conftest*
13487 eval "ac_cv_func_$ac_func=yes"
13488 else
13489 echo "configure: failed program was:" >&5
13490 cat conftest.$ac_ext >&5
13491 rm -rf conftest*
13492 eval "ac_cv_func_$ac_func=no"
13494 rm -f conftest*
13497 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13498 echo "$ac_t""yes" 1>&6
13499 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13500 cat >> confdefs.h <<EOF
13501 #define $ac_tr_func 1
13504 else
13505 echo "$ac_t""no" 1>&6
13507 done
13514 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13515 echo "configure:13516: checking for fabsf declaration" >&5
13516 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13517 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13518 echo $ac_n "(cached) $ac_c" 1>&6
13519 else
13522 ac_ext=C
13523 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13524 ac_cpp='$CXXCPP $CPPFLAGS'
13525 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13526 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13527 cross_compiling=$ac_cv_prog_cxx_cross
13529 cat > conftest.$ac_ext <<EOF
13530 #line 13531 "configure"
13531 #include "confdefs.h"
13532 #include <math.h>
13533 #ifdef HAVE_IEEEFP_H
13534 #include <ieeefp.h>
13535 #endif
13537 int main() {
13538 fabsf(0);
13539 ; return 0; }
13541 if { (eval echo configure:13542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13542 rm -rf conftest*
13543 glibcpp_cv_func_fabsf_use=yes
13544 else
13545 echo "configure: failed program was:" >&5
13546 cat conftest.$ac_ext >&5
13547 rm -rf conftest*
13548 glibcpp_cv_func_fabsf_use=no
13550 rm -f conftest*
13551 ac_ext=c
13552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13553 ac_cpp='$CPP $CPPFLAGS'
13554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13556 cross_compiling=$ac_cv_prog_cc_cross
13562 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13564 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13565 for ac_func in fabsf
13567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13568 echo "configure:13569: checking for $ac_func" >&5
13569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13570 echo $ac_n "(cached) $ac_c" 1>&6
13571 else
13572 cat > conftest.$ac_ext <<EOF
13573 #line 13574 "configure"
13574 #include "confdefs.h"
13575 /* System header to define __stub macros and hopefully few prototypes,
13576 which can conflict with char $ac_func(); below. */
13577 #include <assert.h>
13578 /* Override any gcc2 internal prototype to avoid an error. */
13579 /* We use char because int might match the return type of a gcc2
13580 builtin and then its argument prototype would still apply. */
13581 char $ac_func();
13583 int main() {
13585 /* The GNU C library defines this for functions which it implements
13586 to always fail with ENOSYS. Some functions are actually named
13587 something starting with __ and the normal name is an alias. */
13588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13589 choke me
13590 #else
13591 $ac_func();
13592 #endif
13594 ; return 0; }
13596 if { (eval echo configure:13597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13597 rm -rf conftest*
13598 eval "ac_cv_func_$ac_func=yes"
13599 else
13600 echo "configure: failed program was:" >&5
13601 cat conftest.$ac_ext >&5
13602 rm -rf conftest*
13603 eval "ac_cv_func_$ac_func=no"
13605 rm -f conftest*
13608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13609 echo "$ac_t""yes" 1>&6
13610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13611 cat >> confdefs.h <<EOF
13612 #define $ac_tr_func 1
13615 else
13616 echo "$ac_t""no" 1>&6
13618 done
13620 else
13622 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13623 echo "configure:13624: checking for _fabsf declaration" >&5
13624 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13625 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13626 echo $ac_n "(cached) $ac_c" 1>&6
13627 else
13630 ac_ext=C
13631 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13632 ac_cpp='$CXXCPP $CPPFLAGS'
13633 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13634 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13635 cross_compiling=$ac_cv_prog_cxx_cross
13637 cat > conftest.$ac_ext <<EOF
13638 #line 13639 "configure"
13639 #include "confdefs.h"
13640 #include <math.h>
13641 #ifdef HAVE_IEEEFP_H
13642 #include <ieeefp.h>
13643 #endif
13645 int main() {
13646 _fabsf(0);
13647 ; return 0; }
13649 if { (eval echo configure:13650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13650 rm -rf conftest*
13651 glibcpp_cv_func__fabsf_use=yes
13652 else
13653 echo "configure: failed program was:" >&5
13654 cat conftest.$ac_ext >&5
13655 rm -rf conftest*
13656 glibcpp_cv_func__fabsf_use=no
13658 rm -f conftest*
13659 ac_ext=c
13660 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13661 ac_cpp='$CPP $CPPFLAGS'
13662 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13663 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13664 cross_compiling=$ac_cv_prog_cc_cross
13670 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13672 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13673 for ac_func in _fabsf
13675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13676 echo "configure:13677: checking for $ac_func" >&5
13677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13678 echo $ac_n "(cached) $ac_c" 1>&6
13679 else
13680 cat > conftest.$ac_ext <<EOF
13681 #line 13682 "configure"
13682 #include "confdefs.h"
13683 /* System header to define __stub macros and hopefully few prototypes,
13684 which can conflict with char $ac_func(); below. */
13685 #include <assert.h>
13686 /* Override any gcc2 internal prototype to avoid an error. */
13687 /* We use char because int might match the return type of a gcc2
13688 builtin and then its argument prototype would still apply. */
13689 char $ac_func();
13691 int main() {
13693 /* The GNU C library defines this for functions which it implements
13694 to always fail with ENOSYS. Some functions are actually named
13695 something starting with __ and the normal name is an alias. */
13696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13697 choke me
13698 #else
13699 $ac_func();
13700 #endif
13702 ; return 0; }
13704 if { (eval echo configure:13705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13705 rm -rf conftest*
13706 eval "ac_cv_func_$ac_func=yes"
13707 else
13708 echo "configure: failed program was:" >&5
13709 cat conftest.$ac_ext >&5
13710 rm -rf conftest*
13711 eval "ac_cv_func_$ac_func=no"
13713 rm -f conftest*
13716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13717 echo "$ac_t""yes" 1>&6
13718 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13719 cat >> confdefs.h <<EOF
13720 #define $ac_tr_func 1
13723 else
13724 echo "$ac_t""no" 1>&6
13726 done
13733 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13734 echo "configure:13735: checking for fmodf declaration" >&5
13735 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13736 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13737 echo $ac_n "(cached) $ac_c" 1>&6
13738 else
13741 ac_ext=C
13742 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13743 ac_cpp='$CXXCPP $CPPFLAGS'
13744 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13745 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13746 cross_compiling=$ac_cv_prog_cxx_cross
13748 cat > conftest.$ac_ext <<EOF
13749 #line 13750 "configure"
13750 #include "confdefs.h"
13751 #include <math.h>
13752 int main() {
13753 fmodf(0, 0);
13754 ; return 0; }
13756 if { (eval echo configure:13757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13757 rm -rf conftest*
13758 glibcpp_cv_func_fmodf_use=yes
13759 else
13760 echo "configure: failed program was:" >&5
13761 cat conftest.$ac_ext >&5
13762 rm -rf conftest*
13763 glibcpp_cv_func_fmodf_use=no
13765 rm -f conftest*
13766 ac_ext=c
13767 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13768 ac_cpp='$CPP $CPPFLAGS'
13769 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13770 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13771 cross_compiling=$ac_cv_prog_cc_cross
13777 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13779 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13780 for ac_func in fmodf
13782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13783 echo "configure:13784: checking for $ac_func" >&5
13784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13785 echo $ac_n "(cached) $ac_c" 1>&6
13786 else
13787 cat > conftest.$ac_ext <<EOF
13788 #line 13789 "configure"
13789 #include "confdefs.h"
13790 /* System header to define __stub macros and hopefully few prototypes,
13791 which can conflict with char $ac_func(); below. */
13792 #include <assert.h>
13793 /* Override any gcc2 internal prototype to avoid an error. */
13794 /* We use char because int might match the return type of a gcc2
13795 builtin and then its argument prototype would still apply. */
13796 char $ac_func();
13798 int main() {
13800 /* The GNU C library defines this for functions which it implements
13801 to always fail with ENOSYS. Some functions are actually named
13802 something starting with __ and the normal name is an alias. */
13803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13804 choke me
13805 #else
13806 $ac_func();
13807 #endif
13809 ; return 0; }
13811 if { (eval echo configure:13812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13812 rm -rf conftest*
13813 eval "ac_cv_func_$ac_func=yes"
13814 else
13815 echo "configure: failed program was:" >&5
13816 cat conftest.$ac_ext >&5
13817 rm -rf conftest*
13818 eval "ac_cv_func_$ac_func=no"
13820 rm -f conftest*
13823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13824 echo "$ac_t""yes" 1>&6
13825 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13826 cat >> confdefs.h <<EOF
13827 #define $ac_tr_func 1
13830 else
13831 echo "$ac_t""no" 1>&6
13833 done
13835 else
13837 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13838 echo "configure:13839: checking for _fmodf declaration" >&5
13839 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13840 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13841 echo $ac_n "(cached) $ac_c" 1>&6
13842 else
13845 ac_ext=C
13846 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13847 ac_cpp='$CXXCPP $CPPFLAGS'
13848 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13849 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13850 cross_compiling=$ac_cv_prog_cxx_cross
13852 cat > conftest.$ac_ext <<EOF
13853 #line 13854 "configure"
13854 #include "confdefs.h"
13855 #include <math.h>
13856 int main() {
13857 _fmodf(0, 0);
13858 ; return 0; }
13860 if { (eval echo configure:13861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13861 rm -rf conftest*
13862 glibcpp_cv_func__fmodf_use=yes
13863 else
13864 echo "configure: failed program was:" >&5
13865 cat conftest.$ac_ext >&5
13866 rm -rf conftest*
13867 glibcpp_cv_func__fmodf_use=no
13869 rm -f conftest*
13870 ac_ext=c
13871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13872 ac_cpp='$CPP $CPPFLAGS'
13873 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13874 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13875 cross_compiling=$ac_cv_prog_cc_cross
13881 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13883 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13884 for ac_func in _fmodf
13886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13887 echo "configure:13888: checking for $ac_func" >&5
13888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13889 echo $ac_n "(cached) $ac_c" 1>&6
13890 else
13891 cat > conftest.$ac_ext <<EOF
13892 #line 13893 "configure"
13893 #include "confdefs.h"
13894 /* System header to define __stub macros and hopefully few prototypes,
13895 which can conflict with char $ac_func(); below. */
13896 #include <assert.h>
13897 /* Override any gcc2 internal prototype to avoid an error. */
13898 /* We use char because int might match the return type of a gcc2
13899 builtin and then its argument prototype would still apply. */
13900 char $ac_func();
13902 int main() {
13904 /* The GNU C library defines this for functions which it implements
13905 to always fail with ENOSYS. Some functions are actually named
13906 something starting with __ and the normal name is an alias. */
13907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13908 choke me
13909 #else
13910 $ac_func();
13911 #endif
13913 ; return 0; }
13915 if { (eval echo configure:13916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13916 rm -rf conftest*
13917 eval "ac_cv_func_$ac_func=yes"
13918 else
13919 echo "configure: failed program was:" >&5
13920 cat conftest.$ac_ext >&5
13921 rm -rf conftest*
13922 eval "ac_cv_func_$ac_func=no"
13924 rm -f conftest*
13927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13928 echo "$ac_t""yes" 1>&6
13929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13930 cat >> confdefs.h <<EOF
13931 #define $ac_tr_func 1
13934 else
13935 echo "$ac_t""no" 1>&6
13937 done
13944 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13945 echo "configure:13946: checking for frexpf declaration" >&5
13946 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13947 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13948 echo $ac_n "(cached) $ac_c" 1>&6
13949 else
13952 ac_ext=C
13953 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13954 ac_cpp='$CXXCPP $CPPFLAGS'
13955 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13956 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13957 cross_compiling=$ac_cv_prog_cxx_cross
13959 cat > conftest.$ac_ext <<EOF
13960 #line 13961 "configure"
13961 #include "confdefs.h"
13962 #include <math.h>
13963 int main() {
13964 frexpf(0, 0);
13965 ; return 0; }
13967 if { (eval echo configure:13968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13968 rm -rf conftest*
13969 glibcpp_cv_func_frexpf_use=yes
13970 else
13971 echo "configure: failed program was:" >&5
13972 cat conftest.$ac_ext >&5
13973 rm -rf conftest*
13974 glibcpp_cv_func_frexpf_use=no
13976 rm -f conftest*
13977 ac_ext=c
13978 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13979 ac_cpp='$CPP $CPPFLAGS'
13980 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13981 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13982 cross_compiling=$ac_cv_prog_cc_cross
13988 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
13990 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
13991 for ac_func in frexpf
13993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13994 echo "configure:13995: checking for $ac_func" >&5
13995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13996 echo $ac_n "(cached) $ac_c" 1>&6
13997 else
13998 cat > conftest.$ac_ext <<EOF
13999 #line 14000 "configure"
14000 #include "confdefs.h"
14001 /* System header to define __stub macros and hopefully few prototypes,
14002 which can conflict with char $ac_func(); below. */
14003 #include <assert.h>
14004 /* Override any gcc2 internal prototype to avoid an error. */
14005 /* We use char because int might match the return type of a gcc2
14006 builtin and then its argument prototype would still apply. */
14007 char $ac_func();
14009 int main() {
14011 /* The GNU C library defines this for functions which it implements
14012 to always fail with ENOSYS. Some functions are actually named
14013 something starting with __ and the normal name is an alias. */
14014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14015 choke me
14016 #else
14017 $ac_func();
14018 #endif
14020 ; return 0; }
14022 if { (eval echo configure:14023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14023 rm -rf conftest*
14024 eval "ac_cv_func_$ac_func=yes"
14025 else
14026 echo "configure: failed program was:" >&5
14027 cat conftest.$ac_ext >&5
14028 rm -rf conftest*
14029 eval "ac_cv_func_$ac_func=no"
14031 rm -f conftest*
14034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14035 echo "$ac_t""yes" 1>&6
14036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14037 cat >> confdefs.h <<EOF
14038 #define $ac_tr_func 1
14041 else
14042 echo "$ac_t""no" 1>&6
14044 done
14046 else
14048 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14049 echo "configure:14050: checking for _frexpf declaration" >&5
14050 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14051 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14052 echo $ac_n "(cached) $ac_c" 1>&6
14053 else
14056 ac_ext=C
14057 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14058 ac_cpp='$CXXCPP $CPPFLAGS'
14059 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14060 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14061 cross_compiling=$ac_cv_prog_cxx_cross
14063 cat > conftest.$ac_ext <<EOF
14064 #line 14065 "configure"
14065 #include "confdefs.h"
14066 #include <math.h>
14067 int main() {
14068 _frexpf(0, 0);
14069 ; return 0; }
14071 if { (eval echo configure:14072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14072 rm -rf conftest*
14073 glibcpp_cv_func__frexpf_use=yes
14074 else
14075 echo "configure: failed program was:" >&5
14076 cat conftest.$ac_ext >&5
14077 rm -rf conftest*
14078 glibcpp_cv_func__frexpf_use=no
14080 rm -f conftest*
14081 ac_ext=c
14082 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14083 ac_cpp='$CPP $CPPFLAGS'
14084 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14085 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14086 cross_compiling=$ac_cv_prog_cc_cross
14092 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14094 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14095 for ac_func in _frexpf
14097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14098 echo "configure:14099: checking for $ac_func" >&5
14099 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14100 echo $ac_n "(cached) $ac_c" 1>&6
14101 else
14102 cat > conftest.$ac_ext <<EOF
14103 #line 14104 "configure"
14104 #include "confdefs.h"
14105 /* System header to define __stub macros and hopefully few prototypes,
14106 which can conflict with char $ac_func(); below. */
14107 #include <assert.h>
14108 /* Override any gcc2 internal prototype to avoid an error. */
14109 /* We use char because int might match the return type of a gcc2
14110 builtin and then its argument prototype would still apply. */
14111 char $ac_func();
14113 int main() {
14115 /* The GNU C library defines this for functions which it implements
14116 to always fail with ENOSYS. Some functions are actually named
14117 something starting with __ and the normal name is an alias. */
14118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14119 choke me
14120 #else
14121 $ac_func();
14122 #endif
14124 ; return 0; }
14126 if { (eval echo configure:14127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14127 rm -rf conftest*
14128 eval "ac_cv_func_$ac_func=yes"
14129 else
14130 echo "configure: failed program was:" >&5
14131 cat conftest.$ac_ext >&5
14132 rm -rf conftest*
14133 eval "ac_cv_func_$ac_func=no"
14135 rm -f conftest*
14138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14139 echo "$ac_t""yes" 1>&6
14140 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14141 cat >> confdefs.h <<EOF
14142 #define $ac_tr_func 1
14145 else
14146 echo "$ac_t""no" 1>&6
14148 done
14155 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14156 echo "configure:14157: checking for hypotf declaration" >&5
14157 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14158 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14159 echo $ac_n "(cached) $ac_c" 1>&6
14160 else
14163 ac_ext=C
14164 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14165 ac_cpp='$CXXCPP $CPPFLAGS'
14166 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14167 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14168 cross_compiling=$ac_cv_prog_cxx_cross
14170 cat > conftest.$ac_ext <<EOF
14171 #line 14172 "configure"
14172 #include "confdefs.h"
14173 #include <math.h>
14174 int main() {
14175 hypotf(0, 0);
14176 ; return 0; }
14178 if { (eval echo configure:14179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14179 rm -rf conftest*
14180 glibcpp_cv_func_hypotf_use=yes
14181 else
14182 echo "configure: failed program was:" >&5
14183 cat conftest.$ac_ext >&5
14184 rm -rf conftest*
14185 glibcpp_cv_func_hypotf_use=no
14187 rm -f conftest*
14188 ac_ext=c
14189 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14190 ac_cpp='$CPP $CPPFLAGS'
14191 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14192 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14193 cross_compiling=$ac_cv_prog_cc_cross
14199 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14201 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14202 for ac_func in hypotf
14204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14205 echo "configure:14206: checking for $ac_func" >&5
14206 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14207 echo $ac_n "(cached) $ac_c" 1>&6
14208 else
14209 cat > conftest.$ac_ext <<EOF
14210 #line 14211 "configure"
14211 #include "confdefs.h"
14212 /* System header to define __stub macros and hopefully few prototypes,
14213 which can conflict with char $ac_func(); below. */
14214 #include <assert.h>
14215 /* Override any gcc2 internal prototype to avoid an error. */
14216 /* We use char because int might match the return type of a gcc2
14217 builtin and then its argument prototype would still apply. */
14218 char $ac_func();
14220 int main() {
14222 /* The GNU C library defines this for functions which it implements
14223 to always fail with ENOSYS. Some functions are actually named
14224 something starting with __ and the normal name is an alias. */
14225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14226 choke me
14227 #else
14228 $ac_func();
14229 #endif
14231 ; return 0; }
14233 if { (eval echo configure:14234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14234 rm -rf conftest*
14235 eval "ac_cv_func_$ac_func=yes"
14236 else
14237 echo "configure: failed program was:" >&5
14238 cat conftest.$ac_ext >&5
14239 rm -rf conftest*
14240 eval "ac_cv_func_$ac_func=no"
14242 rm -f conftest*
14245 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14246 echo "$ac_t""yes" 1>&6
14247 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14248 cat >> confdefs.h <<EOF
14249 #define $ac_tr_func 1
14252 else
14253 echo "$ac_t""no" 1>&6
14255 done
14257 else
14259 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14260 echo "configure:14261: checking for _hypotf declaration" >&5
14261 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14262 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14263 echo $ac_n "(cached) $ac_c" 1>&6
14264 else
14267 ac_ext=C
14268 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14269 ac_cpp='$CXXCPP $CPPFLAGS'
14270 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14271 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14272 cross_compiling=$ac_cv_prog_cxx_cross
14274 cat > conftest.$ac_ext <<EOF
14275 #line 14276 "configure"
14276 #include "confdefs.h"
14277 #include <math.h>
14278 int main() {
14279 _hypotf(0, 0);
14280 ; return 0; }
14282 if { (eval echo configure:14283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14283 rm -rf conftest*
14284 glibcpp_cv_func__hypotf_use=yes
14285 else
14286 echo "configure: failed program was:" >&5
14287 cat conftest.$ac_ext >&5
14288 rm -rf conftest*
14289 glibcpp_cv_func__hypotf_use=no
14291 rm -f conftest*
14292 ac_ext=c
14293 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14294 ac_cpp='$CPP $CPPFLAGS'
14295 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14296 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14297 cross_compiling=$ac_cv_prog_cc_cross
14303 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14305 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14306 for ac_func in _hypotf
14308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14309 echo "configure:14310: checking for $ac_func" >&5
14310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14311 echo $ac_n "(cached) $ac_c" 1>&6
14312 else
14313 cat > conftest.$ac_ext <<EOF
14314 #line 14315 "configure"
14315 #include "confdefs.h"
14316 /* System header to define __stub macros and hopefully few prototypes,
14317 which can conflict with char $ac_func(); below. */
14318 #include <assert.h>
14319 /* Override any gcc2 internal prototype to avoid an error. */
14320 /* We use char because int might match the return type of a gcc2
14321 builtin and then its argument prototype would still apply. */
14322 char $ac_func();
14324 int main() {
14326 /* The GNU C library defines this for functions which it implements
14327 to always fail with ENOSYS. Some functions are actually named
14328 something starting with __ and the normal name is an alias. */
14329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14330 choke me
14331 #else
14332 $ac_func();
14333 #endif
14335 ; return 0; }
14337 if { (eval echo configure:14338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14338 rm -rf conftest*
14339 eval "ac_cv_func_$ac_func=yes"
14340 else
14341 echo "configure: failed program was:" >&5
14342 cat conftest.$ac_ext >&5
14343 rm -rf conftest*
14344 eval "ac_cv_func_$ac_func=no"
14346 rm -f conftest*
14349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14350 echo "$ac_t""yes" 1>&6
14351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14352 cat >> confdefs.h <<EOF
14353 #define $ac_tr_func 1
14356 else
14357 echo "$ac_t""no" 1>&6
14359 done
14366 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14367 echo "configure:14368: checking for ldexpf declaration" >&5
14368 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14369 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14370 echo $ac_n "(cached) $ac_c" 1>&6
14371 else
14374 ac_ext=C
14375 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14376 ac_cpp='$CXXCPP $CPPFLAGS'
14377 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14378 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14379 cross_compiling=$ac_cv_prog_cxx_cross
14381 cat > conftest.$ac_ext <<EOF
14382 #line 14383 "configure"
14383 #include "confdefs.h"
14384 #include <math.h>
14385 int main() {
14386 ldexpf(0, 0);
14387 ; return 0; }
14389 if { (eval echo configure:14390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14390 rm -rf conftest*
14391 glibcpp_cv_func_ldexpf_use=yes
14392 else
14393 echo "configure: failed program was:" >&5
14394 cat conftest.$ac_ext >&5
14395 rm -rf conftest*
14396 glibcpp_cv_func_ldexpf_use=no
14398 rm -f conftest*
14399 ac_ext=c
14400 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14401 ac_cpp='$CPP $CPPFLAGS'
14402 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14403 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14404 cross_compiling=$ac_cv_prog_cc_cross
14410 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14412 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14413 for ac_func in ldexpf
14415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14416 echo "configure:14417: checking for $ac_func" >&5
14417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14418 echo $ac_n "(cached) $ac_c" 1>&6
14419 else
14420 cat > conftest.$ac_ext <<EOF
14421 #line 14422 "configure"
14422 #include "confdefs.h"
14423 /* System header to define __stub macros and hopefully few prototypes,
14424 which can conflict with char $ac_func(); below. */
14425 #include <assert.h>
14426 /* Override any gcc2 internal prototype to avoid an error. */
14427 /* We use char because int might match the return type of a gcc2
14428 builtin and then its argument prototype would still apply. */
14429 char $ac_func();
14431 int main() {
14433 /* The GNU C library defines this for functions which it implements
14434 to always fail with ENOSYS. Some functions are actually named
14435 something starting with __ and the normal name is an alias. */
14436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14437 choke me
14438 #else
14439 $ac_func();
14440 #endif
14442 ; return 0; }
14444 if { (eval echo configure:14445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14445 rm -rf conftest*
14446 eval "ac_cv_func_$ac_func=yes"
14447 else
14448 echo "configure: failed program was:" >&5
14449 cat conftest.$ac_ext >&5
14450 rm -rf conftest*
14451 eval "ac_cv_func_$ac_func=no"
14453 rm -f conftest*
14456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14457 echo "$ac_t""yes" 1>&6
14458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14459 cat >> confdefs.h <<EOF
14460 #define $ac_tr_func 1
14463 else
14464 echo "$ac_t""no" 1>&6
14466 done
14468 else
14470 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14471 echo "configure:14472: checking for _ldexpf declaration" >&5
14472 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14473 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14474 echo $ac_n "(cached) $ac_c" 1>&6
14475 else
14478 ac_ext=C
14479 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14480 ac_cpp='$CXXCPP $CPPFLAGS'
14481 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14482 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14483 cross_compiling=$ac_cv_prog_cxx_cross
14485 cat > conftest.$ac_ext <<EOF
14486 #line 14487 "configure"
14487 #include "confdefs.h"
14488 #include <math.h>
14489 int main() {
14490 _ldexpf(0, 0);
14491 ; return 0; }
14493 if { (eval echo configure:14494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14494 rm -rf conftest*
14495 glibcpp_cv_func__ldexpf_use=yes
14496 else
14497 echo "configure: failed program was:" >&5
14498 cat conftest.$ac_ext >&5
14499 rm -rf conftest*
14500 glibcpp_cv_func__ldexpf_use=no
14502 rm -f conftest*
14503 ac_ext=c
14504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14505 ac_cpp='$CPP $CPPFLAGS'
14506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14508 cross_compiling=$ac_cv_prog_cc_cross
14514 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14516 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14517 for ac_func in _ldexpf
14519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14520 echo "configure:14521: checking for $ac_func" >&5
14521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14522 echo $ac_n "(cached) $ac_c" 1>&6
14523 else
14524 cat > conftest.$ac_ext <<EOF
14525 #line 14526 "configure"
14526 #include "confdefs.h"
14527 /* System header to define __stub macros and hopefully few prototypes,
14528 which can conflict with char $ac_func(); below. */
14529 #include <assert.h>
14530 /* Override any gcc2 internal prototype to avoid an error. */
14531 /* We use char because int might match the return type of a gcc2
14532 builtin and then its argument prototype would still apply. */
14533 char $ac_func();
14535 int main() {
14537 /* The GNU C library defines this for functions which it implements
14538 to always fail with ENOSYS. Some functions are actually named
14539 something starting with __ and the normal name is an alias. */
14540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14541 choke me
14542 #else
14543 $ac_func();
14544 #endif
14546 ; return 0; }
14548 if { (eval echo configure:14549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14549 rm -rf conftest*
14550 eval "ac_cv_func_$ac_func=yes"
14551 else
14552 echo "configure: failed program was:" >&5
14553 cat conftest.$ac_ext >&5
14554 rm -rf conftest*
14555 eval "ac_cv_func_$ac_func=no"
14557 rm -f conftest*
14560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14561 echo "$ac_t""yes" 1>&6
14562 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14563 cat >> confdefs.h <<EOF
14564 #define $ac_tr_func 1
14567 else
14568 echo "$ac_t""no" 1>&6
14570 done
14577 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14578 echo "configure:14579: checking for logf declaration" >&5
14579 if test x${glibcpp_cv_func_logf_use+set} != xset; then
14580 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14581 echo $ac_n "(cached) $ac_c" 1>&6
14582 else
14585 ac_ext=C
14586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14587 ac_cpp='$CXXCPP $CPPFLAGS'
14588 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14589 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14590 cross_compiling=$ac_cv_prog_cxx_cross
14592 cat > conftest.$ac_ext <<EOF
14593 #line 14594 "configure"
14594 #include "confdefs.h"
14595 #include <math.h>
14596 #ifdef HAVE_IEEEFP_H
14597 #include <ieeefp.h>
14598 #endif
14600 int main() {
14601 logf(0);
14602 ; return 0; }
14604 if { (eval echo configure:14605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14605 rm -rf conftest*
14606 glibcpp_cv_func_logf_use=yes
14607 else
14608 echo "configure: failed program was:" >&5
14609 cat conftest.$ac_ext >&5
14610 rm -rf conftest*
14611 glibcpp_cv_func_logf_use=no
14613 rm -f conftest*
14614 ac_ext=c
14615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14616 ac_cpp='$CPP $CPPFLAGS'
14617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14619 cross_compiling=$ac_cv_prog_cc_cross
14625 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14627 if test x$glibcpp_cv_func_logf_use = x"yes"; then
14628 for ac_func in logf
14630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14631 echo "configure:14632: checking for $ac_func" >&5
14632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14633 echo $ac_n "(cached) $ac_c" 1>&6
14634 else
14635 cat > conftest.$ac_ext <<EOF
14636 #line 14637 "configure"
14637 #include "confdefs.h"
14638 /* System header to define __stub macros and hopefully few prototypes,
14639 which can conflict with char $ac_func(); below. */
14640 #include <assert.h>
14641 /* Override any gcc2 internal prototype to avoid an error. */
14642 /* We use char because int might match the return type of a gcc2
14643 builtin and then its argument prototype would still apply. */
14644 char $ac_func();
14646 int main() {
14648 /* The GNU C library defines this for functions which it implements
14649 to always fail with ENOSYS. Some functions are actually named
14650 something starting with __ and the normal name is an alias. */
14651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14652 choke me
14653 #else
14654 $ac_func();
14655 #endif
14657 ; return 0; }
14659 if { (eval echo configure:14660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14660 rm -rf conftest*
14661 eval "ac_cv_func_$ac_func=yes"
14662 else
14663 echo "configure: failed program was:" >&5
14664 cat conftest.$ac_ext >&5
14665 rm -rf conftest*
14666 eval "ac_cv_func_$ac_func=no"
14668 rm -f conftest*
14671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14672 echo "$ac_t""yes" 1>&6
14673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14674 cat >> confdefs.h <<EOF
14675 #define $ac_tr_func 1
14678 else
14679 echo "$ac_t""no" 1>&6
14681 done
14683 else
14685 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14686 echo "configure:14687: checking for _logf declaration" >&5
14687 if test x${glibcpp_cv_func__logf_use+set} != xset; then
14688 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14689 echo $ac_n "(cached) $ac_c" 1>&6
14690 else
14693 ac_ext=C
14694 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14695 ac_cpp='$CXXCPP $CPPFLAGS'
14696 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14697 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14698 cross_compiling=$ac_cv_prog_cxx_cross
14700 cat > conftest.$ac_ext <<EOF
14701 #line 14702 "configure"
14702 #include "confdefs.h"
14703 #include <math.h>
14704 #ifdef HAVE_IEEEFP_H
14705 #include <ieeefp.h>
14706 #endif
14708 int main() {
14709 _logf(0);
14710 ; return 0; }
14712 if { (eval echo configure:14713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14713 rm -rf conftest*
14714 glibcpp_cv_func__logf_use=yes
14715 else
14716 echo "configure: failed program was:" >&5
14717 cat conftest.$ac_ext >&5
14718 rm -rf conftest*
14719 glibcpp_cv_func__logf_use=no
14721 rm -f conftest*
14722 ac_ext=c
14723 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14724 ac_cpp='$CPP $CPPFLAGS'
14725 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14726 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14727 cross_compiling=$ac_cv_prog_cc_cross
14733 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14735 if test x$glibcpp_cv_func__logf_use = x"yes"; then
14736 for ac_func in _logf
14738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14739 echo "configure:14740: checking for $ac_func" >&5
14740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14741 echo $ac_n "(cached) $ac_c" 1>&6
14742 else
14743 cat > conftest.$ac_ext <<EOF
14744 #line 14745 "configure"
14745 #include "confdefs.h"
14746 /* System header to define __stub macros and hopefully few prototypes,
14747 which can conflict with char $ac_func(); below. */
14748 #include <assert.h>
14749 /* Override any gcc2 internal prototype to avoid an error. */
14750 /* We use char because int might match the return type of a gcc2
14751 builtin and then its argument prototype would still apply. */
14752 char $ac_func();
14754 int main() {
14756 /* The GNU C library defines this for functions which it implements
14757 to always fail with ENOSYS. Some functions are actually named
14758 something starting with __ and the normal name is an alias. */
14759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14760 choke me
14761 #else
14762 $ac_func();
14763 #endif
14765 ; return 0; }
14767 if { (eval echo configure:14768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14768 rm -rf conftest*
14769 eval "ac_cv_func_$ac_func=yes"
14770 else
14771 echo "configure: failed program was:" >&5
14772 cat conftest.$ac_ext >&5
14773 rm -rf conftest*
14774 eval "ac_cv_func_$ac_func=no"
14776 rm -f conftest*
14779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14780 echo "$ac_t""yes" 1>&6
14781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14782 cat >> confdefs.h <<EOF
14783 #define $ac_tr_func 1
14786 else
14787 echo "$ac_t""no" 1>&6
14789 done
14796 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14797 echo "configure:14798: checking for log10f declaration" >&5
14798 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14799 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14800 echo $ac_n "(cached) $ac_c" 1>&6
14801 else
14804 ac_ext=C
14805 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14806 ac_cpp='$CXXCPP $CPPFLAGS'
14807 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14808 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14809 cross_compiling=$ac_cv_prog_cxx_cross
14811 cat > conftest.$ac_ext <<EOF
14812 #line 14813 "configure"
14813 #include "confdefs.h"
14814 #include <math.h>
14815 #ifdef HAVE_IEEEFP_H
14816 #include <ieeefp.h>
14817 #endif
14819 int main() {
14820 log10f(0);
14821 ; return 0; }
14823 if { (eval echo configure:14824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14824 rm -rf conftest*
14825 glibcpp_cv_func_log10f_use=yes
14826 else
14827 echo "configure: failed program was:" >&5
14828 cat conftest.$ac_ext >&5
14829 rm -rf conftest*
14830 glibcpp_cv_func_log10f_use=no
14832 rm -f conftest*
14833 ac_ext=c
14834 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14835 ac_cpp='$CPP $CPPFLAGS'
14836 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14837 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14838 cross_compiling=$ac_cv_prog_cc_cross
14844 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14846 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14847 for ac_func in log10f
14849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14850 echo "configure:14851: checking for $ac_func" >&5
14851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14852 echo $ac_n "(cached) $ac_c" 1>&6
14853 else
14854 cat > conftest.$ac_ext <<EOF
14855 #line 14856 "configure"
14856 #include "confdefs.h"
14857 /* System header to define __stub macros and hopefully few prototypes,
14858 which can conflict with char $ac_func(); below. */
14859 #include <assert.h>
14860 /* Override any gcc2 internal prototype to avoid an error. */
14861 /* We use char because int might match the return type of a gcc2
14862 builtin and then its argument prototype would still apply. */
14863 char $ac_func();
14865 int main() {
14867 /* The GNU C library defines this for functions which it implements
14868 to always fail with ENOSYS. Some functions are actually named
14869 something starting with __ and the normal name is an alias. */
14870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14871 choke me
14872 #else
14873 $ac_func();
14874 #endif
14876 ; return 0; }
14878 if { (eval echo configure:14879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14879 rm -rf conftest*
14880 eval "ac_cv_func_$ac_func=yes"
14881 else
14882 echo "configure: failed program was:" >&5
14883 cat conftest.$ac_ext >&5
14884 rm -rf conftest*
14885 eval "ac_cv_func_$ac_func=no"
14887 rm -f conftest*
14890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14891 echo "$ac_t""yes" 1>&6
14892 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14893 cat >> confdefs.h <<EOF
14894 #define $ac_tr_func 1
14897 else
14898 echo "$ac_t""no" 1>&6
14900 done
14902 else
14904 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14905 echo "configure:14906: checking for _log10f declaration" >&5
14906 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14907 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14908 echo $ac_n "(cached) $ac_c" 1>&6
14909 else
14912 ac_ext=C
14913 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14914 ac_cpp='$CXXCPP $CPPFLAGS'
14915 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14916 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14917 cross_compiling=$ac_cv_prog_cxx_cross
14919 cat > conftest.$ac_ext <<EOF
14920 #line 14921 "configure"
14921 #include "confdefs.h"
14922 #include <math.h>
14923 #ifdef HAVE_IEEEFP_H
14924 #include <ieeefp.h>
14925 #endif
14927 int main() {
14928 _log10f(0);
14929 ; return 0; }
14931 if { (eval echo configure:14932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14932 rm -rf conftest*
14933 glibcpp_cv_func__log10f_use=yes
14934 else
14935 echo "configure: failed program was:" >&5
14936 cat conftest.$ac_ext >&5
14937 rm -rf conftest*
14938 glibcpp_cv_func__log10f_use=no
14940 rm -f conftest*
14941 ac_ext=c
14942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14943 ac_cpp='$CPP $CPPFLAGS'
14944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14945 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14946 cross_compiling=$ac_cv_prog_cc_cross
14952 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14954 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14955 for ac_func in _log10f
14957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14958 echo "configure:14959: checking for $ac_func" >&5
14959 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14960 echo $ac_n "(cached) $ac_c" 1>&6
14961 else
14962 cat > conftest.$ac_ext <<EOF
14963 #line 14964 "configure"
14964 #include "confdefs.h"
14965 /* System header to define __stub macros and hopefully few prototypes,
14966 which can conflict with char $ac_func(); below. */
14967 #include <assert.h>
14968 /* Override any gcc2 internal prototype to avoid an error. */
14969 /* We use char because int might match the return type of a gcc2
14970 builtin and then its argument prototype would still apply. */
14971 char $ac_func();
14973 int main() {
14975 /* The GNU C library defines this for functions which it implements
14976 to always fail with ENOSYS. Some functions are actually named
14977 something starting with __ and the normal name is an alias. */
14978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14979 choke me
14980 #else
14981 $ac_func();
14982 #endif
14984 ; return 0; }
14986 if { (eval echo configure:14987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14987 rm -rf conftest*
14988 eval "ac_cv_func_$ac_func=yes"
14989 else
14990 echo "configure: failed program was:" >&5
14991 cat conftest.$ac_ext >&5
14992 rm -rf conftest*
14993 eval "ac_cv_func_$ac_func=no"
14995 rm -f conftest*
14998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14999 echo "$ac_t""yes" 1>&6
15000 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15001 cat >> confdefs.h <<EOF
15002 #define $ac_tr_func 1
15005 else
15006 echo "$ac_t""no" 1>&6
15008 done
15015 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15016 echo "configure:15017: checking for modff declaration" >&5
15017 if test x${glibcpp_cv_func_modff_use+set} != xset; then
15018 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15019 echo $ac_n "(cached) $ac_c" 1>&6
15020 else
15023 ac_ext=C
15024 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15025 ac_cpp='$CXXCPP $CPPFLAGS'
15026 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15027 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15028 cross_compiling=$ac_cv_prog_cxx_cross
15030 cat > conftest.$ac_ext <<EOF
15031 #line 15032 "configure"
15032 #include "confdefs.h"
15033 #include <math.h>
15034 int main() {
15035 modff(0, 0);
15036 ; return 0; }
15038 if { (eval echo configure:15039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15039 rm -rf conftest*
15040 glibcpp_cv_func_modff_use=yes
15041 else
15042 echo "configure: failed program was:" >&5
15043 cat conftest.$ac_ext >&5
15044 rm -rf conftest*
15045 glibcpp_cv_func_modff_use=no
15047 rm -f conftest*
15048 ac_ext=c
15049 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15050 ac_cpp='$CPP $CPPFLAGS'
15051 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15052 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15053 cross_compiling=$ac_cv_prog_cc_cross
15059 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15061 if test x$glibcpp_cv_func_modff_use = x"yes"; then
15062 for ac_func in modff
15064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15065 echo "configure:15066: checking for $ac_func" >&5
15066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15067 echo $ac_n "(cached) $ac_c" 1>&6
15068 else
15069 cat > conftest.$ac_ext <<EOF
15070 #line 15071 "configure"
15071 #include "confdefs.h"
15072 /* System header to define __stub macros and hopefully few prototypes,
15073 which can conflict with char $ac_func(); below. */
15074 #include <assert.h>
15075 /* Override any gcc2 internal prototype to avoid an error. */
15076 /* We use char because int might match the return type of a gcc2
15077 builtin and then its argument prototype would still apply. */
15078 char $ac_func();
15080 int main() {
15082 /* The GNU C library defines this for functions which it implements
15083 to always fail with ENOSYS. Some functions are actually named
15084 something starting with __ and the normal name is an alias. */
15085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15086 choke me
15087 #else
15088 $ac_func();
15089 #endif
15091 ; return 0; }
15093 if { (eval echo configure:15094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15094 rm -rf conftest*
15095 eval "ac_cv_func_$ac_func=yes"
15096 else
15097 echo "configure: failed program was:" >&5
15098 cat conftest.$ac_ext >&5
15099 rm -rf conftest*
15100 eval "ac_cv_func_$ac_func=no"
15102 rm -f conftest*
15105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15106 echo "$ac_t""yes" 1>&6
15107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15108 cat >> confdefs.h <<EOF
15109 #define $ac_tr_func 1
15112 else
15113 echo "$ac_t""no" 1>&6
15115 done
15117 else
15119 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15120 echo "configure:15121: checking for _modff declaration" >&5
15121 if test x${glibcpp_cv_func__modff_use+set} != xset; then
15122 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15123 echo $ac_n "(cached) $ac_c" 1>&6
15124 else
15127 ac_ext=C
15128 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15129 ac_cpp='$CXXCPP $CPPFLAGS'
15130 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15131 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15132 cross_compiling=$ac_cv_prog_cxx_cross
15134 cat > conftest.$ac_ext <<EOF
15135 #line 15136 "configure"
15136 #include "confdefs.h"
15137 #include <math.h>
15138 int main() {
15139 _modff(0, 0);
15140 ; return 0; }
15142 if { (eval echo configure:15143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15143 rm -rf conftest*
15144 glibcpp_cv_func__modff_use=yes
15145 else
15146 echo "configure: failed program was:" >&5
15147 cat conftest.$ac_ext >&5
15148 rm -rf conftest*
15149 glibcpp_cv_func__modff_use=no
15151 rm -f conftest*
15152 ac_ext=c
15153 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15154 ac_cpp='$CPP $CPPFLAGS'
15155 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15156 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15157 cross_compiling=$ac_cv_prog_cc_cross
15163 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15165 if test x$glibcpp_cv_func__modff_use = x"yes"; then
15166 for ac_func in _modff
15168 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15169 echo "configure:15170: checking for $ac_func" >&5
15170 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15171 echo $ac_n "(cached) $ac_c" 1>&6
15172 else
15173 cat > conftest.$ac_ext <<EOF
15174 #line 15175 "configure"
15175 #include "confdefs.h"
15176 /* System header to define __stub macros and hopefully few prototypes,
15177 which can conflict with char $ac_func(); below. */
15178 #include <assert.h>
15179 /* Override any gcc2 internal prototype to avoid an error. */
15180 /* We use char because int might match the return type of a gcc2
15181 builtin and then its argument prototype would still apply. */
15182 char $ac_func();
15184 int main() {
15186 /* The GNU C library defines this for functions which it implements
15187 to always fail with ENOSYS. Some functions are actually named
15188 something starting with __ and the normal name is an alias. */
15189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15190 choke me
15191 #else
15192 $ac_func();
15193 #endif
15195 ; return 0; }
15197 if { (eval echo configure:15198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15198 rm -rf conftest*
15199 eval "ac_cv_func_$ac_func=yes"
15200 else
15201 echo "configure: failed program was:" >&5
15202 cat conftest.$ac_ext >&5
15203 rm -rf conftest*
15204 eval "ac_cv_func_$ac_func=no"
15206 rm -f conftest*
15209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15210 echo "$ac_t""yes" 1>&6
15211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15212 cat >> confdefs.h <<EOF
15213 #define $ac_tr_func 1
15216 else
15217 echo "$ac_t""no" 1>&6
15219 done
15226 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15227 echo "configure:15228: checking for powf declaration" >&5
15228 if test x${glibcpp_cv_func_powf_use+set} != xset; then
15229 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15230 echo $ac_n "(cached) $ac_c" 1>&6
15231 else
15234 ac_ext=C
15235 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15236 ac_cpp='$CXXCPP $CPPFLAGS'
15237 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15238 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15239 cross_compiling=$ac_cv_prog_cxx_cross
15241 cat > conftest.$ac_ext <<EOF
15242 #line 15243 "configure"
15243 #include "confdefs.h"
15244 #include <math.h>
15245 int main() {
15246 powf(0, 0);
15247 ; return 0; }
15249 if { (eval echo configure:15250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15250 rm -rf conftest*
15251 glibcpp_cv_func_powf_use=yes
15252 else
15253 echo "configure: failed program was:" >&5
15254 cat conftest.$ac_ext >&5
15255 rm -rf conftest*
15256 glibcpp_cv_func_powf_use=no
15258 rm -f conftest*
15259 ac_ext=c
15260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15261 ac_cpp='$CPP $CPPFLAGS'
15262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15264 cross_compiling=$ac_cv_prog_cc_cross
15270 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15272 if test x$glibcpp_cv_func_powf_use = x"yes"; then
15273 for ac_func in powf
15275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15276 echo "configure:15277: checking for $ac_func" >&5
15277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15278 echo $ac_n "(cached) $ac_c" 1>&6
15279 else
15280 cat > conftest.$ac_ext <<EOF
15281 #line 15282 "configure"
15282 #include "confdefs.h"
15283 /* System header to define __stub macros and hopefully few prototypes,
15284 which can conflict with char $ac_func(); below. */
15285 #include <assert.h>
15286 /* Override any gcc2 internal prototype to avoid an error. */
15287 /* We use char because int might match the return type of a gcc2
15288 builtin and then its argument prototype would still apply. */
15289 char $ac_func();
15291 int main() {
15293 /* The GNU C library defines this for functions which it implements
15294 to always fail with ENOSYS. Some functions are actually named
15295 something starting with __ and the normal name is an alias. */
15296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15297 choke me
15298 #else
15299 $ac_func();
15300 #endif
15302 ; return 0; }
15304 if { (eval echo configure:15305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15305 rm -rf conftest*
15306 eval "ac_cv_func_$ac_func=yes"
15307 else
15308 echo "configure: failed program was:" >&5
15309 cat conftest.$ac_ext >&5
15310 rm -rf conftest*
15311 eval "ac_cv_func_$ac_func=no"
15313 rm -f conftest*
15316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15317 echo "$ac_t""yes" 1>&6
15318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15319 cat >> confdefs.h <<EOF
15320 #define $ac_tr_func 1
15323 else
15324 echo "$ac_t""no" 1>&6
15326 done
15328 else
15330 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15331 echo "configure:15332: checking for _powf declaration" >&5
15332 if test x${glibcpp_cv_func__powf_use+set} != xset; then
15333 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15334 echo $ac_n "(cached) $ac_c" 1>&6
15335 else
15338 ac_ext=C
15339 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15340 ac_cpp='$CXXCPP $CPPFLAGS'
15341 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15342 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15343 cross_compiling=$ac_cv_prog_cxx_cross
15345 cat > conftest.$ac_ext <<EOF
15346 #line 15347 "configure"
15347 #include "confdefs.h"
15348 #include <math.h>
15349 int main() {
15350 _powf(0, 0);
15351 ; return 0; }
15353 if { (eval echo configure:15354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15354 rm -rf conftest*
15355 glibcpp_cv_func__powf_use=yes
15356 else
15357 echo "configure: failed program was:" >&5
15358 cat conftest.$ac_ext >&5
15359 rm -rf conftest*
15360 glibcpp_cv_func__powf_use=no
15362 rm -f conftest*
15363 ac_ext=c
15364 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15365 ac_cpp='$CPP $CPPFLAGS'
15366 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15367 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15368 cross_compiling=$ac_cv_prog_cc_cross
15374 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15376 if test x$glibcpp_cv_func__powf_use = x"yes"; then
15377 for ac_func in _powf
15379 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15380 echo "configure:15381: checking for $ac_func" >&5
15381 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15382 echo $ac_n "(cached) $ac_c" 1>&6
15383 else
15384 cat > conftest.$ac_ext <<EOF
15385 #line 15386 "configure"
15386 #include "confdefs.h"
15387 /* System header to define __stub macros and hopefully few prototypes,
15388 which can conflict with char $ac_func(); below. */
15389 #include <assert.h>
15390 /* Override any gcc2 internal prototype to avoid an error. */
15391 /* We use char because int might match the return type of a gcc2
15392 builtin and then its argument prototype would still apply. */
15393 char $ac_func();
15395 int main() {
15397 /* The GNU C library defines this for functions which it implements
15398 to always fail with ENOSYS. Some functions are actually named
15399 something starting with __ and the normal name is an alias. */
15400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15401 choke me
15402 #else
15403 $ac_func();
15404 #endif
15406 ; return 0; }
15408 if { (eval echo configure:15409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15409 rm -rf conftest*
15410 eval "ac_cv_func_$ac_func=yes"
15411 else
15412 echo "configure: failed program was:" >&5
15413 cat conftest.$ac_ext >&5
15414 rm -rf conftest*
15415 eval "ac_cv_func_$ac_func=no"
15417 rm -f conftest*
15420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15421 echo "$ac_t""yes" 1>&6
15422 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15423 cat >> confdefs.h <<EOF
15424 #define $ac_tr_func 1
15427 else
15428 echo "$ac_t""no" 1>&6
15430 done
15437 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15438 echo "configure:15439: checking for sqrtf declaration" >&5
15439 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15440 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15441 echo $ac_n "(cached) $ac_c" 1>&6
15442 else
15445 ac_ext=C
15446 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15447 ac_cpp='$CXXCPP $CPPFLAGS'
15448 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15449 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15450 cross_compiling=$ac_cv_prog_cxx_cross
15452 cat > conftest.$ac_ext <<EOF
15453 #line 15454 "configure"
15454 #include "confdefs.h"
15455 #include <math.h>
15456 #ifdef HAVE_IEEEFP_H
15457 #include <ieeefp.h>
15458 #endif
15460 int main() {
15461 sqrtf(0);
15462 ; return 0; }
15464 if { (eval echo configure:15465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15465 rm -rf conftest*
15466 glibcpp_cv_func_sqrtf_use=yes
15467 else
15468 echo "configure: failed program was:" >&5
15469 cat conftest.$ac_ext >&5
15470 rm -rf conftest*
15471 glibcpp_cv_func_sqrtf_use=no
15473 rm -f conftest*
15474 ac_ext=c
15475 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15476 ac_cpp='$CPP $CPPFLAGS'
15477 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15478 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15479 cross_compiling=$ac_cv_prog_cc_cross
15485 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15487 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15488 for ac_func in sqrtf
15490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15491 echo "configure:15492: checking for $ac_func" >&5
15492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15493 echo $ac_n "(cached) $ac_c" 1>&6
15494 else
15495 cat > conftest.$ac_ext <<EOF
15496 #line 15497 "configure"
15497 #include "confdefs.h"
15498 /* System header to define __stub macros and hopefully few prototypes,
15499 which can conflict with char $ac_func(); below. */
15500 #include <assert.h>
15501 /* Override any gcc2 internal prototype to avoid an error. */
15502 /* We use char because int might match the return type of a gcc2
15503 builtin and then its argument prototype would still apply. */
15504 char $ac_func();
15506 int main() {
15508 /* The GNU C library defines this for functions which it implements
15509 to always fail with ENOSYS. Some functions are actually named
15510 something starting with __ and the normal name is an alias. */
15511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15512 choke me
15513 #else
15514 $ac_func();
15515 #endif
15517 ; return 0; }
15519 if { (eval echo configure:15520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15520 rm -rf conftest*
15521 eval "ac_cv_func_$ac_func=yes"
15522 else
15523 echo "configure: failed program was:" >&5
15524 cat conftest.$ac_ext >&5
15525 rm -rf conftest*
15526 eval "ac_cv_func_$ac_func=no"
15528 rm -f conftest*
15531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15532 echo "$ac_t""yes" 1>&6
15533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15534 cat >> confdefs.h <<EOF
15535 #define $ac_tr_func 1
15538 else
15539 echo "$ac_t""no" 1>&6
15541 done
15543 else
15545 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15546 echo "configure:15547: checking for _sqrtf declaration" >&5
15547 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15548 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15549 echo $ac_n "(cached) $ac_c" 1>&6
15550 else
15553 ac_ext=C
15554 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15555 ac_cpp='$CXXCPP $CPPFLAGS'
15556 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15557 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15558 cross_compiling=$ac_cv_prog_cxx_cross
15560 cat > conftest.$ac_ext <<EOF
15561 #line 15562 "configure"
15562 #include "confdefs.h"
15563 #include <math.h>
15564 #ifdef HAVE_IEEEFP_H
15565 #include <ieeefp.h>
15566 #endif
15568 int main() {
15569 _sqrtf(0);
15570 ; return 0; }
15572 if { (eval echo configure:15573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15573 rm -rf conftest*
15574 glibcpp_cv_func__sqrtf_use=yes
15575 else
15576 echo "configure: failed program was:" >&5
15577 cat conftest.$ac_ext >&5
15578 rm -rf conftest*
15579 glibcpp_cv_func__sqrtf_use=no
15581 rm -f conftest*
15582 ac_ext=c
15583 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15584 ac_cpp='$CPP $CPPFLAGS'
15585 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15586 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15587 cross_compiling=$ac_cv_prog_cc_cross
15593 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15595 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15596 for ac_func in _sqrtf
15598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15599 echo "configure:15600: checking for $ac_func" >&5
15600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15601 echo $ac_n "(cached) $ac_c" 1>&6
15602 else
15603 cat > conftest.$ac_ext <<EOF
15604 #line 15605 "configure"
15605 #include "confdefs.h"
15606 /* System header to define __stub macros and hopefully few prototypes,
15607 which can conflict with char $ac_func(); below. */
15608 #include <assert.h>
15609 /* Override any gcc2 internal prototype to avoid an error. */
15610 /* We use char because int might match the return type of a gcc2
15611 builtin and then its argument prototype would still apply. */
15612 char $ac_func();
15614 int main() {
15616 /* The GNU C library defines this for functions which it implements
15617 to always fail with ENOSYS. Some functions are actually named
15618 something starting with __ and the normal name is an alias. */
15619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15620 choke me
15621 #else
15622 $ac_func();
15623 #endif
15625 ; return 0; }
15627 if { (eval echo configure:15628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15628 rm -rf conftest*
15629 eval "ac_cv_func_$ac_func=yes"
15630 else
15631 echo "configure: failed program was:" >&5
15632 cat conftest.$ac_ext >&5
15633 rm -rf conftest*
15634 eval "ac_cv_func_$ac_func=no"
15636 rm -f conftest*
15639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15640 echo "$ac_t""yes" 1>&6
15641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15642 cat >> confdefs.h <<EOF
15643 #define $ac_tr_func 1
15646 else
15647 echo "$ac_t""no" 1>&6
15649 done
15656 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15657 echo "configure:15658: checking for sincosf declaration" >&5
15658 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15659 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15660 echo $ac_n "(cached) $ac_c" 1>&6
15661 else
15664 ac_ext=C
15665 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15666 ac_cpp='$CXXCPP $CPPFLAGS'
15667 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15668 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15669 cross_compiling=$ac_cv_prog_cxx_cross
15671 cat > conftest.$ac_ext <<EOF
15672 #line 15673 "configure"
15673 #include "confdefs.h"
15674 #include <math.h>
15675 int main() {
15676 sincosf(0, 0, 0);
15677 ; return 0; }
15679 if { (eval echo configure:15680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15680 rm -rf conftest*
15681 glibcpp_cv_func_sincosf_use=yes
15682 else
15683 echo "configure: failed program was:" >&5
15684 cat conftest.$ac_ext >&5
15685 rm -rf conftest*
15686 glibcpp_cv_func_sincosf_use=no
15688 rm -f conftest*
15689 ac_ext=c
15690 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15691 ac_cpp='$CPP $CPPFLAGS'
15692 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15693 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15694 cross_compiling=$ac_cv_prog_cc_cross
15700 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15702 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15703 for ac_func in sincosf
15705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15706 echo "configure:15707: checking for $ac_func" >&5
15707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15708 echo $ac_n "(cached) $ac_c" 1>&6
15709 else
15710 cat > conftest.$ac_ext <<EOF
15711 #line 15712 "configure"
15712 #include "confdefs.h"
15713 /* System header to define __stub macros and hopefully few prototypes,
15714 which can conflict with char $ac_func(); below. */
15715 #include <assert.h>
15716 /* Override any gcc2 internal prototype to avoid an error. */
15717 /* We use char because int might match the return type of a gcc2
15718 builtin and then its argument prototype would still apply. */
15719 char $ac_func();
15721 int main() {
15723 /* The GNU C library defines this for functions which it implements
15724 to always fail with ENOSYS. Some functions are actually named
15725 something starting with __ and the normal name is an alias. */
15726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15727 choke me
15728 #else
15729 $ac_func();
15730 #endif
15732 ; return 0; }
15734 if { (eval echo configure:15735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15735 rm -rf conftest*
15736 eval "ac_cv_func_$ac_func=yes"
15737 else
15738 echo "configure: failed program was:" >&5
15739 cat conftest.$ac_ext >&5
15740 rm -rf conftest*
15741 eval "ac_cv_func_$ac_func=no"
15743 rm -f conftest*
15746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15747 echo "$ac_t""yes" 1>&6
15748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15749 cat >> confdefs.h <<EOF
15750 #define $ac_tr_func 1
15753 else
15754 echo "$ac_t""no" 1>&6
15756 done
15758 else
15760 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15761 echo "configure:15762: checking for _sincosf declaration" >&5
15762 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15763 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15764 echo $ac_n "(cached) $ac_c" 1>&6
15765 else
15768 ac_ext=C
15769 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15770 ac_cpp='$CXXCPP $CPPFLAGS'
15771 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15772 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15773 cross_compiling=$ac_cv_prog_cxx_cross
15775 cat > conftest.$ac_ext <<EOF
15776 #line 15777 "configure"
15777 #include "confdefs.h"
15778 #include <math.h>
15779 int main() {
15780 _sincosf(0, 0, 0);
15781 ; return 0; }
15783 if { (eval echo configure:15784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15784 rm -rf conftest*
15785 glibcpp_cv_func__sincosf_use=yes
15786 else
15787 echo "configure: failed program was:" >&5
15788 cat conftest.$ac_ext >&5
15789 rm -rf conftest*
15790 glibcpp_cv_func__sincosf_use=no
15792 rm -f conftest*
15793 ac_ext=c
15794 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15795 ac_cpp='$CPP $CPPFLAGS'
15796 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15797 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15798 cross_compiling=$ac_cv_prog_cc_cross
15804 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15806 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15807 for ac_func in _sincosf
15809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15810 echo "configure:15811: checking for $ac_func" >&5
15811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15812 echo $ac_n "(cached) $ac_c" 1>&6
15813 else
15814 cat > conftest.$ac_ext <<EOF
15815 #line 15816 "configure"
15816 #include "confdefs.h"
15817 /* System header to define __stub macros and hopefully few prototypes,
15818 which can conflict with char $ac_func(); below. */
15819 #include <assert.h>
15820 /* Override any gcc2 internal prototype to avoid an error. */
15821 /* We use char because int might match the return type of a gcc2
15822 builtin and then its argument prototype would still apply. */
15823 char $ac_func();
15825 int main() {
15827 /* The GNU C library defines this for functions which it implements
15828 to always fail with ENOSYS. Some functions are actually named
15829 something starting with __ and the normal name is an alias. */
15830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15831 choke me
15832 #else
15833 $ac_func();
15834 #endif
15836 ; return 0; }
15838 if { (eval echo configure:15839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15839 rm -rf conftest*
15840 eval "ac_cv_func_$ac_func=yes"
15841 else
15842 echo "configure: failed program was:" >&5
15843 cat conftest.$ac_ext >&5
15844 rm -rf conftest*
15845 eval "ac_cv_func_$ac_func=no"
15847 rm -f conftest*
15850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15851 echo "$ac_t""yes" 1>&6
15852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15853 cat >> confdefs.h <<EOF
15854 #define $ac_tr_func 1
15857 else
15858 echo "$ac_t""no" 1>&6
15860 done
15867 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15868 echo "configure:15869: checking for finitef declaration" >&5
15869 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15870 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15871 echo $ac_n "(cached) $ac_c" 1>&6
15872 else
15875 ac_ext=C
15876 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15877 ac_cpp='$CXXCPP $CPPFLAGS'
15878 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15879 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15880 cross_compiling=$ac_cv_prog_cxx_cross
15882 cat > conftest.$ac_ext <<EOF
15883 #line 15884 "configure"
15884 #include "confdefs.h"
15885 #include <math.h>
15886 #ifdef HAVE_IEEEFP_H
15887 #include <ieeefp.h>
15888 #endif
15890 int main() {
15891 finitef(0);
15892 ; return 0; }
15894 if { (eval echo configure:15895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15895 rm -rf conftest*
15896 glibcpp_cv_func_finitef_use=yes
15897 else
15898 echo "configure: failed program was:" >&5
15899 cat conftest.$ac_ext >&5
15900 rm -rf conftest*
15901 glibcpp_cv_func_finitef_use=no
15903 rm -f conftest*
15904 ac_ext=c
15905 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15906 ac_cpp='$CPP $CPPFLAGS'
15907 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15908 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15909 cross_compiling=$ac_cv_prog_cc_cross
15915 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15917 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15918 for ac_func in finitef
15920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15921 echo "configure:15922: checking for $ac_func" >&5
15922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15923 echo $ac_n "(cached) $ac_c" 1>&6
15924 else
15925 cat > conftest.$ac_ext <<EOF
15926 #line 15927 "configure"
15927 #include "confdefs.h"
15928 /* System header to define __stub macros and hopefully few prototypes,
15929 which can conflict with char $ac_func(); below. */
15930 #include <assert.h>
15931 /* Override any gcc2 internal prototype to avoid an error. */
15932 /* We use char because int might match the return type of a gcc2
15933 builtin and then its argument prototype would still apply. */
15934 char $ac_func();
15936 int main() {
15938 /* The GNU C library defines this for functions which it implements
15939 to always fail with ENOSYS. Some functions are actually named
15940 something starting with __ and the normal name is an alias. */
15941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15942 choke me
15943 #else
15944 $ac_func();
15945 #endif
15947 ; return 0; }
15949 if { (eval echo configure:15950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15950 rm -rf conftest*
15951 eval "ac_cv_func_$ac_func=yes"
15952 else
15953 echo "configure: failed program was:" >&5
15954 cat conftest.$ac_ext >&5
15955 rm -rf conftest*
15956 eval "ac_cv_func_$ac_func=no"
15958 rm -f conftest*
15961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15962 echo "$ac_t""yes" 1>&6
15963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15964 cat >> confdefs.h <<EOF
15965 #define $ac_tr_func 1
15968 else
15969 echo "$ac_t""no" 1>&6
15971 done
15973 else
15975 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15976 echo "configure:15977: checking for _finitef declaration" >&5
15977 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15978 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15979 echo $ac_n "(cached) $ac_c" 1>&6
15980 else
15983 ac_ext=C
15984 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15985 ac_cpp='$CXXCPP $CPPFLAGS'
15986 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15987 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15988 cross_compiling=$ac_cv_prog_cxx_cross
15990 cat > conftest.$ac_ext <<EOF
15991 #line 15992 "configure"
15992 #include "confdefs.h"
15993 #include <math.h>
15994 #ifdef HAVE_IEEEFP_H
15995 #include <ieeefp.h>
15996 #endif
15998 int main() {
15999 _finitef(0);
16000 ; return 0; }
16002 if { (eval echo configure:16003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16003 rm -rf conftest*
16004 glibcpp_cv_func__finitef_use=yes
16005 else
16006 echo "configure: failed program was:" >&5
16007 cat conftest.$ac_ext >&5
16008 rm -rf conftest*
16009 glibcpp_cv_func__finitef_use=no
16011 rm -f conftest*
16012 ac_ext=c
16013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16014 ac_cpp='$CPP $CPPFLAGS'
16015 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16016 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16017 cross_compiling=$ac_cv_prog_cc_cross
16023 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16025 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16026 for ac_func in _finitef
16028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16029 echo "configure:16030: checking for $ac_func" >&5
16030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16031 echo $ac_n "(cached) $ac_c" 1>&6
16032 else
16033 cat > conftest.$ac_ext <<EOF
16034 #line 16035 "configure"
16035 #include "confdefs.h"
16036 /* System header to define __stub macros and hopefully few prototypes,
16037 which can conflict with char $ac_func(); below. */
16038 #include <assert.h>
16039 /* Override any gcc2 internal prototype to avoid an error. */
16040 /* We use char because int might match the return type of a gcc2
16041 builtin and then its argument prototype would still apply. */
16042 char $ac_func();
16044 int main() {
16046 /* The GNU C library defines this for functions which it implements
16047 to always fail with ENOSYS. Some functions are actually named
16048 something starting with __ and the normal name is an alias. */
16049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16050 choke me
16051 #else
16052 $ac_func();
16053 #endif
16055 ; return 0; }
16057 if { (eval echo configure:16058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16058 rm -rf conftest*
16059 eval "ac_cv_func_$ac_func=yes"
16060 else
16061 echo "configure: failed program was:" >&5
16062 cat conftest.$ac_ext >&5
16063 rm -rf conftest*
16064 eval "ac_cv_func_$ac_func=no"
16066 rm -f conftest*
16069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16070 echo "$ac_t""yes" 1>&6
16071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16072 cat >> confdefs.h <<EOF
16073 #define $ac_tr_func 1
16076 else
16077 echo "$ac_t""no" 1>&6
16079 done
16086 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16087 echo "configure:16088: checking for long double trig functions" >&5
16088 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16089 echo $ac_n "(cached) $ac_c" 1>&6
16090 else
16093 ac_ext=C
16094 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16095 ac_cpp='$CXXCPP $CPPFLAGS'
16096 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16097 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16098 cross_compiling=$ac_cv_prog_cxx_cross
16100 cat > conftest.$ac_ext <<EOF
16101 #line 16102 "configure"
16102 #include "confdefs.h"
16103 #include <math.h>
16104 int main() {
16105 `for x in acosl asinl atanl \
16106 cosl sinl tanl \
16107 coshl sinhl tanhl; do echo "$x (0);"; done`
16108 ; return 0; }
16110 if { (eval echo configure:16111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16111 rm -rf conftest*
16112 glibcpp_cv_func_long_double_trig_use=yes
16113 else
16114 echo "configure: failed program was:" >&5
16115 cat conftest.$ac_ext >&5
16116 rm -rf conftest*
16117 glibcpp_cv_func_long_double_trig_use=no
16119 rm -f conftest*
16120 ac_ext=c
16121 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16122 ac_cpp='$CPP $CPPFLAGS'
16123 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16124 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16125 cross_compiling=$ac_cv_prog_cc_cross
16129 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16130 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16131 for ac_func in acosl asinl atanl \
16132 cosl sinl tanl \
16133 coshl sinhl tanhl
16135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16136 echo "configure:16137: checking for $ac_func" >&5
16137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16138 echo $ac_n "(cached) $ac_c" 1>&6
16139 else
16140 cat > conftest.$ac_ext <<EOF
16141 #line 16142 "configure"
16142 #include "confdefs.h"
16143 /* System header to define __stub macros and hopefully few prototypes,
16144 which can conflict with char $ac_func(); below. */
16145 #include <assert.h>
16146 /* Override any gcc2 internal prototype to avoid an error. */
16147 /* We use char because int might match the return type of a gcc2
16148 builtin and then its argument prototype would still apply. */
16149 char $ac_func();
16151 int main() {
16153 /* The GNU C library defines this for functions which it implements
16154 to always fail with ENOSYS. Some functions are actually named
16155 something starting with __ and the normal name is an alias. */
16156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16157 choke me
16158 #else
16159 $ac_func();
16160 #endif
16162 ; return 0; }
16164 if { (eval echo configure:16165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16165 rm -rf conftest*
16166 eval "ac_cv_func_$ac_func=yes"
16167 else
16168 echo "configure: failed program was:" >&5
16169 cat conftest.$ac_ext >&5
16170 rm -rf conftest*
16171 eval "ac_cv_func_$ac_func=no"
16173 rm -f conftest*
16176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16177 echo "$ac_t""yes" 1>&6
16178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16179 cat >> confdefs.h <<EOF
16180 #define $ac_tr_func 1
16183 else
16184 echo "$ac_t""no" 1>&6
16186 done
16191 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16192 echo "configure:16193: checking for long double round functions" >&5
16193 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16194 echo $ac_n "(cached) $ac_c" 1>&6
16195 else
16198 ac_ext=C
16199 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16200 ac_cpp='$CXXCPP $CPPFLAGS'
16201 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16202 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16203 cross_compiling=$ac_cv_prog_cxx_cross
16205 cat > conftest.$ac_ext <<EOF
16206 #line 16207 "configure"
16207 #include "confdefs.h"
16208 #include <math.h>
16209 int main() {
16210 `for x in ceill floorl; do echo "$x (0);"; done`
16211 ; return 0; }
16213 if { (eval echo configure:16214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16214 rm -rf conftest*
16215 glibcpp_cv_func_long_double_round_use=yes
16216 else
16217 echo "configure: failed program was:" >&5
16218 cat conftest.$ac_ext >&5
16219 rm -rf conftest*
16220 glibcpp_cv_func_long_double_round_use=no
16222 rm -f conftest*
16223 ac_ext=c
16224 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16225 ac_cpp='$CPP $CPPFLAGS'
16226 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16227 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16228 cross_compiling=$ac_cv_prog_cc_cross
16232 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16233 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16234 for ac_func in ceill floorl
16236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16237 echo "configure:16238: checking for $ac_func" >&5
16238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16239 echo $ac_n "(cached) $ac_c" 1>&6
16240 else
16241 cat > conftest.$ac_ext <<EOF
16242 #line 16243 "configure"
16243 #include "confdefs.h"
16244 /* System header to define __stub macros and hopefully few prototypes,
16245 which can conflict with char $ac_func(); below. */
16246 #include <assert.h>
16247 /* Override any gcc2 internal prototype to avoid an error. */
16248 /* We use char because int might match the return type of a gcc2
16249 builtin and then its argument prototype would still apply. */
16250 char $ac_func();
16252 int main() {
16254 /* The GNU C library defines this for functions which it implements
16255 to always fail with ENOSYS. Some functions are actually named
16256 something starting with __ and the normal name is an alias. */
16257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16258 choke me
16259 #else
16260 $ac_func();
16261 #endif
16263 ; return 0; }
16265 if { (eval echo configure:16266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16266 rm -rf conftest*
16267 eval "ac_cv_func_$ac_func=yes"
16268 else
16269 echo "configure: failed program was:" >&5
16270 cat conftest.$ac_ext >&5
16271 rm -rf conftest*
16272 eval "ac_cv_func_$ac_func=no"
16274 rm -f conftest*
16277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16278 echo "$ac_t""yes" 1>&6
16279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16280 cat >> confdefs.h <<EOF
16281 #define $ac_tr_func 1
16284 else
16285 echo "$ac_t""no" 1>&6
16287 done
16293 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16294 echo "configure:16295: checking for isnanl declaration" >&5
16295 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16296 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16297 echo $ac_n "(cached) $ac_c" 1>&6
16298 else
16301 ac_ext=C
16302 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16303 ac_cpp='$CXXCPP $CPPFLAGS'
16304 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16305 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16306 cross_compiling=$ac_cv_prog_cxx_cross
16308 cat > conftest.$ac_ext <<EOF
16309 #line 16310 "configure"
16310 #include "confdefs.h"
16311 #include <math.h>
16312 #ifdef HAVE_IEEEFP_H
16313 #include <ieeefp.h>
16314 #endif
16316 int main() {
16317 isnanl(0);
16318 ; return 0; }
16320 if { (eval echo configure:16321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16321 rm -rf conftest*
16322 glibcpp_cv_func_isnanl_use=yes
16323 else
16324 echo "configure: failed program was:" >&5
16325 cat conftest.$ac_ext >&5
16326 rm -rf conftest*
16327 glibcpp_cv_func_isnanl_use=no
16329 rm -f conftest*
16330 ac_ext=c
16331 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16332 ac_cpp='$CPP $CPPFLAGS'
16333 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16334 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16335 cross_compiling=$ac_cv_prog_cc_cross
16341 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16343 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16344 for ac_func in isnanl
16346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16347 echo "configure:16348: checking for $ac_func" >&5
16348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16349 echo $ac_n "(cached) $ac_c" 1>&6
16350 else
16351 cat > conftest.$ac_ext <<EOF
16352 #line 16353 "configure"
16353 #include "confdefs.h"
16354 /* System header to define __stub macros and hopefully few prototypes,
16355 which can conflict with char $ac_func(); below. */
16356 #include <assert.h>
16357 /* Override any gcc2 internal prototype to avoid an error. */
16358 /* We use char because int might match the return type of a gcc2
16359 builtin and then its argument prototype would still apply. */
16360 char $ac_func();
16362 int main() {
16364 /* The GNU C library defines this for functions which it implements
16365 to always fail with ENOSYS. Some functions are actually named
16366 something starting with __ and the normal name is an alias. */
16367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16368 choke me
16369 #else
16370 $ac_func();
16371 #endif
16373 ; return 0; }
16375 if { (eval echo configure:16376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16376 rm -rf conftest*
16377 eval "ac_cv_func_$ac_func=yes"
16378 else
16379 echo "configure: failed program was:" >&5
16380 cat conftest.$ac_ext >&5
16381 rm -rf conftest*
16382 eval "ac_cv_func_$ac_func=no"
16384 rm -f conftest*
16387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16388 echo "$ac_t""yes" 1>&6
16389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16390 cat >> confdefs.h <<EOF
16391 #define $ac_tr_func 1
16394 else
16395 echo "$ac_t""no" 1>&6
16397 done
16399 else
16401 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16402 echo "configure:16403: checking for _isnanl declaration" >&5
16403 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16404 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16405 echo $ac_n "(cached) $ac_c" 1>&6
16406 else
16409 ac_ext=C
16410 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16411 ac_cpp='$CXXCPP $CPPFLAGS'
16412 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16413 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16414 cross_compiling=$ac_cv_prog_cxx_cross
16416 cat > conftest.$ac_ext <<EOF
16417 #line 16418 "configure"
16418 #include "confdefs.h"
16419 #include <math.h>
16420 #ifdef HAVE_IEEEFP_H
16421 #include <ieeefp.h>
16422 #endif
16424 int main() {
16425 _isnanl(0);
16426 ; return 0; }
16428 if { (eval echo configure:16429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16429 rm -rf conftest*
16430 glibcpp_cv_func__isnanl_use=yes
16431 else
16432 echo "configure: failed program was:" >&5
16433 cat conftest.$ac_ext >&5
16434 rm -rf conftest*
16435 glibcpp_cv_func__isnanl_use=no
16437 rm -f conftest*
16438 ac_ext=c
16439 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16440 ac_cpp='$CPP $CPPFLAGS'
16441 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16442 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16443 cross_compiling=$ac_cv_prog_cc_cross
16449 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16451 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16452 for ac_func in _isnanl
16454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16455 echo "configure:16456: checking for $ac_func" >&5
16456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16457 echo $ac_n "(cached) $ac_c" 1>&6
16458 else
16459 cat > conftest.$ac_ext <<EOF
16460 #line 16461 "configure"
16461 #include "confdefs.h"
16462 /* System header to define __stub macros and hopefully few prototypes,
16463 which can conflict with char $ac_func(); below. */
16464 #include <assert.h>
16465 /* Override any gcc2 internal prototype to avoid an error. */
16466 /* We use char because int might match the return type of a gcc2
16467 builtin and then its argument prototype would still apply. */
16468 char $ac_func();
16470 int main() {
16472 /* The GNU C library defines this for functions which it implements
16473 to always fail with ENOSYS. Some functions are actually named
16474 something starting with __ and the normal name is an alias. */
16475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16476 choke me
16477 #else
16478 $ac_func();
16479 #endif
16481 ; return 0; }
16483 if { (eval echo configure:16484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16484 rm -rf conftest*
16485 eval "ac_cv_func_$ac_func=yes"
16486 else
16487 echo "configure: failed program was:" >&5
16488 cat conftest.$ac_ext >&5
16489 rm -rf conftest*
16490 eval "ac_cv_func_$ac_func=no"
16492 rm -f conftest*
16495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16496 echo "$ac_t""yes" 1>&6
16497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16498 cat >> confdefs.h <<EOF
16499 #define $ac_tr_func 1
16502 else
16503 echo "$ac_t""no" 1>&6
16505 done
16512 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16513 echo "configure:16514: checking for isinfl declaration" >&5
16514 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16515 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16516 echo $ac_n "(cached) $ac_c" 1>&6
16517 else
16520 ac_ext=C
16521 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16522 ac_cpp='$CXXCPP $CPPFLAGS'
16523 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16524 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16525 cross_compiling=$ac_cv_prog_cxx_cross
16527 cat > conftest.$ac_ext <<EOF
16528 #line 16529 "configure"
16529 #include "confdefs.h"
16530 #include <math.h>
16531 #ifdef HAVE_IEEEFP_H
16532 #include <ieeefp.h>
16533 #endif
16535 int main() {
16536 isinfl(0);
16537 ; return 0; }
16539 if { (eval echo configure:16540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16540 rm -rf conftest*
16541 glibcpp_cv_func_isinfl_use=yes
16542 else
16543 echo "configure: failed program was:" >&5
16544 cat conftest.$ac_ext >&5
16545 rm -rf conftest*
16546 glibcpp_cv_func_isinfl_use=no
16548 rm -f conftest*
16549 ac_ext=c
16550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16551 ac_cpp='$CPP $CPPFLAGS'
16552 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16553 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16554 cross_compiling=$ac_cv_prog_cc_cross
16560 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16562 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16563 for ac_func in isinfl
16565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16566 echo "configure:16567: checking for $ac_func" >&5
16567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16568 echo $ac_n "(cached) $ac_c" 1>&6
16569 else
16570 cat > conftest.$ac_ext <<EOF
16571 #line 16572 "configure"
16572 #include "confdefs.h"
16573 /* System header to define __stub macros and hopefully few prototypes,
16574 which can conflict with char $ac_func(); below. */
16575 #include <assert.h>
16576 /* Override any gcc2 internal prototype to avoid an error. */
16577 /* We use char because int might match the return type of a gcc2
16578 builtin and then its argument prototype would still apply. */
16579 char $ac_func();
16581 int main() {
16583 /* The GNU C library defines this for functions which it implements
16584 to always fail with ENOSYS. Some functions are actually named
16585 something starting with __ and the normal name is an alias. */
16586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16587 choke me
16588 #else
16589 $ac_func();
16590 #endif
16592 ; return 0; }
16594 if { (eval echo configure:16595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16595 rm -rf conftest*
16596 eval "ac_cv_func_$ac_func=yes"
16597 else
16598 echo "configure: failed program was:" >&5
16599 cat conftest.$ac_ext >&5
16600 rm -rf conftest*
16601 eval "ac_cv_func_$ac_func=no"
16603 rm -f conftest*
16606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16607 echo "$ac_t""yes" 1>&6
16608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16609 cat >> confdefs.h <<EOF
16610 #define $ac_tr_func 1
16613 else
16614 echo "$ac_t""no" 1>&6
16616 done
16618 else
16620 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16621 echo "configure:16622: checking for _isinfl declaration" >&5
16622 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16623 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16624 echo $ac_n "(cached) $ac_c" 1>&6
16625 else
16628 ac_ext=C
16629 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16630 ac_cpp='$CXXCPP $CPPFLAGS'
16631 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16632 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16633 cross_compiling=$ac_cv_prog_cxx_cross
16635 cat > conftest.$ac_ext <<EOF
16636 #line 16637 "configure"
16637 #include "confdefs.h"
16638 #include <math.h>
16639 #ifdef HAVE_IEEEFP_H
16640 #include <ieeefp.h>
16641 #endif
16643 int main() {
16644 _isinfl(0);
16645 ; return 0; }
16647 if { (eval echo configure:16648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16648 rm -rf conftest*
16649 glibcpp_cv_func__isinfl_use=yes
16650 else
16651 echo "configure: failed program was:" >&5
16652 cat conftest.$ac_ext >&5
16653 rm -rf conftest*
16654 glibcpp_cv_func__isinfl_use=no
16656 rm -f conftest*
16657 ac_ext=c
16658 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16659 ac_cpp='$CPP $CPPFLAGS'
16660 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16661 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16662 cross_compiling=$ac_cv_prog_cc_cross
16668 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16670 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16671 for ac_func in _isinfl
16673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16674 echo "configure:16675: checking for $ac_func" >&5
16675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16676 echo $ac_n "(cached) $ac_c" 1>&6
16677 else
16678 cat > conftest.$ac_ext <<EOF
16679 #line 16680 "configure"
16680 #include "confdefs.h"
16681 /* System header to define __stub macros and hopefully few prototypes,
16682 which can conflict with char $ac_func(); below. */
16683 #include <assert.h>
16684 /* Override any gcc2 internal prototype to avoid an error. */
16685 /* We use char because int might match the return type of a gcc2
16686 builtin and then its argument prototype would still apply. */
16687 char $ac_func();
16689 int main() {
16691 /* The GNU C library defines this for functions which it implements
16692 to always fail with ENOSYS. Some functions are actually named
16693 something starting with __ and the normal name is an alias. */
16694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16695 choke me
16696 #else
16697 $ac_func();
16698 #endif
16700 ; return 0; }
16702 if { (eval echo configure:16703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16703 rm -rf conftest*
16704 eval "ac_cv_func_$ac_func=yes"
16705 else
16706 echo "configure: failed program was:" >&5
16707 cat conftest.$ac_ext >&5
16708 rm -rf conftest*
16709 eval "ac_cv_func_$ac_func=no"
16711 rm -f conftest*
16714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16715 echo "$ac_t""yes" 1>&6
16716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16717 cat >> confdefs.h <<EOF
16718 #define $ac_tr_func 1
16721 else
16722 echo "$ac_t""no" 1>&6
16724 done
16731 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16732 echo "configure:16733: checking for copysignl declaration" >&5
16733 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16734 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16735 echo $ac_n "(cached) $ac_c" 1>&6
16736 else
16739 ac_ext=C
16740 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16741 ac_cpp='$CXXCPP $CPPFLAGS'
16742 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16743 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16744 cross_compiling=$ac_cv_prog_cxx_cross
16746 cat > conftest.$ac_ext <<EOF
16747 #line 16748 "configure"
16748 #include "confdefs.h"
16749 #include <math.h>
16750 int main() {
16751 copysignl(0, 0);
16752 ; return 0; }
16754 if { (eval echo configure:16755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16755 rm -rf conftest*
16756 glibcpp_cv_func_copysignl_use=yes
16757 else
16758 echo "configure: failed program was:" >&5
16759 cat conftest.$ac_ext >&5
16760 rm -rf conftest*
16761 glibcpp_cv_func_copysignl_use=no
16763 rm -f conftest*
16764 ac_ext=c
16765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16766 ac_cpp='$CPP $CPPFLAGS'
16767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16769 cross_compiling=$ac_cv_prog_cc_cross
16775 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16777 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16778 for ac_func in copysignl
16780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16781 echo "configure:16782: checking for $ac_func" >&5
16782 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16783 echo $ac_n "(cached) $ac_c" 1>&6
16784 else
16785 cat > conftest.$ac_ext <<EOF
16786 #line 16787 "configure"
16787 #include "confdefs.h"
16788 /* System header to define __stub macros and hopefully few prototypes,
16789 which can conflict with char $ac_func(); below. */
16790 #include <assert.h>
16791 /* Override any gcc2 internal prototype to avoid an error. */
16792 /* We use char because int might match the return type of a gcc2
16793 builtin and then its argument prototype would still apply. */
16794 char $ac_func();
16796 int main() {
16798 /* The GNU C library defines this for functions which it implements
16799 to always fail with ENOSYS. Some functions are actually named
16800 something starting with __ and the normal name is an alias. */
16801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16802 choke me
16803 #else
16804 $ac_func();
16805 #endif
16807 ; return 0; }
16809 if { (eval echo configure:16810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16810 rm -rf conftest*
16811 eval "ac_cv_func_$ac_func=yes"
16812 else
16813 echo "configure: failed program was:" >&5
16814 cat conftest.$ac_ext >&5
16815 rm -rf conftest*
16816 eval "ac_cv_func_$ac_func=no"
16818 rm -f conftest*
16821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16822 echo "$ac_t""yes" 1>&6
16823 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16824 cat >> confdefs.h <<EOF
16825 #define $ac_tr_func 1
16828 else
16829 echo "$ac_t""no" 1>&6
16831 done
16833 else
16835 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16836 echo "configure:16837: checking for _copysignl declaration" >&5
16837 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16838 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16839 echo $ac_n "(cached) $ac_c" 1>&6
16840 else
16843 ac_ext=C
16844 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16845 ac_cpp='$CXXCPP $CPPFLAGS'
16846 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16847 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16848 cross_compiling=$ac_cv_prog_cxx_cross
16850 cat > conftest.$ac_ext <<EOF
16851 #line 16852 "configure"
16852 #include "confdefs.h"
16853 #include <math.h>
16854 int main() {
16855 _copysignl(0, 0);
16856 ; return 0; }
16858 if { (eval echo configure:16859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16859 rm -rf conftest*
16860 glibcpp_cv_func__copysignl_use=yes
16861 else
16862 echo "configure: failed program was:" >&5
16863 cat conftest.$ac_ext >&5
16864 rm -rf conftest*
16865 glibcpp_cv_func__copysignl_use=no
16867 rm -f conftest*
16868 ac_ext=c
16869 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16870 ac_cpp='$CPP $CPPFLAGS'
16871 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16872 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16873 cross_compiling=$ac_cv_prog_cc_cross
16879 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16881 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16882 for ac_func in _copysignl
16884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16885 echo "configure:16886: checking for $ac_func" >&5
16886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16887 echo $ac_n "(cached) $ac_c" 1>&6
16888 else
16889 cat > conftest.$ac_ext <<EOF
16890 #line 16891 "configure"
16891 #include "confdefs.h"
16892 /* System header to define __stub macros and hopefully few prototypes,
16893 which can conflict with char $ac_func(); below. */
16894 #include <assert.h>
16895 /* Override any gcc2 internal prototype to avoid an error. */
16896 /* We use char because int might match the return type of a gcc2
16897 builtin and then its argument prototype would still apply. */
16898 char $ac_func();
16900 int main() {
16902 /* The GNU C library defines this for functions which it implements
16903 to always fail with ENOSYS. Some functions are actually named
16904 something starting with __ and the normal name is an alias. */
16905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16906 choke me
16907 #else
16908 $ac_func();
16909 #endif
16911 ; return 0; }
16913 if { (eval echo configure:16914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16914 rm -rf conftest*
16915 eval "ac_cv_func_$ac_func=yes"
16916 else
16917 echo "configure: failed program was:" >&5
16918 cat conftest.$ac_ext >&5
16919 rm -rf conftest*
16920 eval "ac_cv_func_$ac_func=no"
16922 rm -f conftest*
16925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16926 echo "$ac_t""yes" 1>&6
16927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16928 cat >> confdefs.h <<EOF
16929 #define $ac_tr_func 1
16932 else
16933 echo "$ac_t""no" 1>&6
16935 done
16942 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16943 echo "configure:16944: checking for atan2l declaration" >&5
16944 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16945 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16946 echo $ac_n "(cached) $ac_c" 1>&6
16947 else
16950 ac_ext=C
16951 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16952 ac_cpp='$CXXCPP $CPPFLAGS'
16953 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16954 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16955 cross_compiling=$ac_cv_prog_cxx_cross
16957 cat > conftest.$ac_ext <<EOF
16958 #line 16959 "configure"
16959 #include "confdefs.h"
16960 #include <math.h>
16961 int main() {
16962 atan2l(0, 0);
16963 ; return 0; }
16965 if { (eval echo configure:16966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16966 rm -rf conftest*
16967 glibcpp_cv_func_atan2l_use=yes
16968 else
16969 echo "configure: failed program was:" >&5
16970 cat conftest.$ac_ext >&5
16971 rm -rf conftest*
16972 glibcpp_cv_func_atan2l_use=no
16974 rm -f conftest*
16975 ac_ext=c
16976 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16977 ac_cpp='$CPP $CPPFLAGS'
16978 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16979 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16980 cross_compiling=$ac_cv_prog_cc_cross
16986 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
16988 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
16989 for ac_func in atan2l
16991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16992 echo "configure:16993: checking for $ac_func" >&5
16993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16994 echo $ac_n "(cached) $ac_c" 1>&6
16995 else
16996 cat > conftest.$ac_ext <<EOF
16997 #line 16998 "configure"
16998 #include "confdefs.h"
16999 /* System header to define __stub macros and hopefully few prototypes,
17000 which can conflict with char $ac_func(); below. */
17001 #include <assert.h>
17002 /* Override any gcc2 internal prototype to avoid an error. */
17003 /* We use char because int might match the return type of a gcc2
17004 builtin and then its argument prototype would still apply. */
17005 char $ac_func();
17007 int main() {
17009 /* The GNU C library defines this for functions which it implements
17010 to always fail with ENOSYS. Some functions are actually named
17011 something starting with __ and the normal name is an alias. */
17012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17013 choke me
17014 #else
17015 $ac_func();
17016 #endif
17018 ; return 0; }
17020 if { (eval echo configure:17021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17021 rm -rf conftest*
17022 eval "ac_cv_func_$ac_func=yes"
17023 else
17024 echo "configure: failed program was:" >&5
17025 cat conftest.$ac_ext >&5
17026 rm -rf conftest*
17027 eval "ac_cv_func_$ac_func=no"
17029 rm -f conftest*
17032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17033 echo "$ac_t""yes" 1>&6
17034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17035 cat >> confdefs.h <<EOF
17036 #define $ac_tr_func 1
17039 else
17040 echo "$ac_t""no" 1>&6
17042 done
17044 else
17046 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17047 echo "configure:17048: checking for _atan2l declaration" >&5
17048 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17049 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17050 echo $ac_n "(cached) $ac_c" 1>&6
17051 else
17054 ac_ext=C
17055 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17056 ac_cpp='$CXXCPP $CPPFLAGS'
17057 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17058 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17059 cross_compiling=$ac_cv_prog_cxx_cross
17061 cat > conftest.$ac_ext <<EOF
17062 #line 17063 "configure"
17063 #include "confdefs.h"
17064 #include <math.h>
17065 int main() {
17066 _atan2l(0, 0);
17067 ; return 0; }
17069 if { (eval echo configure:17070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17070 rm -rf conftest*
17071 glibcpp_cv_func__atan2l_use=yes
17072 else
17073 echo "configure: failed program was:" >&5
17074 cat conftest.$ac_ext >&5
17075 rm -rf conftest*
17076 glibcpp_cv_func__atan2l_use=no
17078 rm -f conftest*
17079 ac_ext=c
17080 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17081 ac_cpp='$CPP $CPPFLAGS'
17082 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17083 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17084 cross_compiling=$ac_cv_prog_cc_cross
17090 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17092 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17093 for ac_func in _atan2l
17095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17096 echo "configure:17097: checking for $ac_func" >&5
17097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17098 echo $ac_n "(cached) $ac_c" 1>&6
17099 else
17100 cat > conftest.$ac_ext <<EOF
17101 #line 17102 "configure"
17102 #include "confdefs.h"
17103 /* System header to define __stub macros and hopefully few prototypes,
17104 which can conflict with char $ac_func(); below. */
17105 #include <assert.h>
17106 /* Override any gcc2 internal prototype to avoid an error. */
17107 /* We use char because int might match the return type of a gcc2
17108 builtin and then its argument prototype would still apply. */
17109 char $ac_func();
17111 int main() {
17113 /* The GNU C library defines this for functions which it implements
17114 to always fail with ENOSYS. Some functions are actually named
17115 something starting with __ and the normal name is an alias. */
17116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17117 choke me
17118 #else
17119 $ac_func();
17120 #endif
17122 ; return 0; }
17124 if { (eval echo configure:17125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17125 rm -rf conftest*
17126 eval "ac_cv_func_$ac_func=yes"
17127 else
17128 echo "configure: failed program was:" >&5
17129 cat conftest.$ac_ext >&5
17130 rm -rf conftest*
17131 eval "ac_cv_func_$ac_func=no"
17133 rm -f conftest*
17136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17137 echo "$ac_t""yes" 1>&6
17138 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17139 cat >> confdefs.h <<EOF
17140 #define $ac_tr_func 1
17143 else
17144 echo "$ac_t""no" 1>&6
17146 done
17153 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17154 echo "configure:17155: checking for expl declaration" >&5
17155 if test x${glibcpp_cv_func_expl_use+set} != xset; then
17156 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17157 echo $ac_n "(cached) $ac_c" 1>&6
17158 else
17161 ac_ext=C
17162 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17163 ac_cpp='$CXXCPP $CPPFLAGS'
17164 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17165 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17166 cross_compiling=$ac_cv_prog_cxx_cross
17168 cat > conftest.$ac_ext <<EOF
17169 #line 17170 "configure"
17170 #include "confdefs.h"
17171 #include <math.h>
17172 #ifdef HAVE_IEEEFP_H
17173 #include <ieeefp.h>
17174 #endif
17176 int main() {
17177 expl(0);
17178 ; return 0; }
17180 if { (eval echo configure:17181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17181 rm -rf conftest*
17182 glibcpp_cv_func_expl_use=yes
17183 else
17184 echo "configure: failed program was:" >&5
17185 cat conftest.$ac_ext >&5
17186 rm -rf conftest*
17187 glibcpp_cv_func_expl_use=no
17189 rm -f conftest*
17190 ac_ext=c
17191 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17192 ac_cpp='$CPP $CPPFLAGS'
17193 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17194 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17195 cross_compiling=$ac_cv_prog_cc_cross
17201 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17203 if test x$glibcpp_cv_func_expl_use = x"yes"; then
17204 for ac_func in expl
17206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17207 echo "configure:17208: checking for $ac_func" >&5
17208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17209 echo $ac_n "(cached) $ac_c" 1>&6
17210 else
17211 cat > conftest.$ac_ext <<EOF
17212 #line 17213 "configure"
17213 #include "confdefs.h"
17214 /* System header to define __stub macros and hopefully few prototypes,
17215 which can conflict with char $ac_func(); below. */
17216 #include <assert.h>
17217 /* Override any gcc2 internal prototype to avoid an error. */
17218 /* We use char because int might match the return type of a gcc2
17219 builtin and then its argument prototype would still apply. */
17220 char $ac_func();
17222 int main() {
17224 /* The GNU C library defines this for functions which it implements
17225 to always fail with ENOSYS. Some functions are actually named
17226 something starting with __ and the normal name is an alias. */
17227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17228 choke me
17229 #else
17230 $ac_func();
17231 #endif
17233 ; return 0; }
17235 if { (eval echo configure:17236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17236 rm -rf conftest*
17237 eval "ac_cv_func_$ac_func=yes"
17238 else
17239 echo "configure: failed program was:" >&5
17240 cat conftest.$ac_ext >&5
17241 rm -rf conftest*
17242 eval "ac_cv_func_$ac_func=no"
17244 rm -f conftest*
17247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17248 echo "$ac_t""yes" 1>&6
17249 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17250 cat >> confdefs.h <<EOF
17251 #define $ac_tr_func 1
17254 else
17255 echo "$ac_t""no" 1>&6
17257 done
17259 else
17261 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17262 echo "configure:17263: checking for _expl declaration" >&5
17263 if test x${glibcpp_cv_func__expl_use+set} != xset; then
17264 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17265 echo $ac_n "(cached) $ac_c" 1>&6
17266 else
17269 ac_ext=C
17270 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17271 ac_cpp='$CXXCPP $CPPFLAGS'
17272 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17273 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17274 cross_compiling=$ac_cv_prog_cxx_cross
17276 cat > conftest.$ac_ext <<EOF
17277 #line 17278 "configure"
17278 #include "confdefs.h"
17279 #include <math.h>
17280 #ifdef HAVE_IEEEFP_H
17281 #include <ieeefp.h>
17282 #endif
17284 int main() {
17285 _expl(0);
17286 ; return 0; }
17288 if { (eval echo configure:17289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17289 rm -rf conftest*
17290 glibcpp_cv_func__expl_use=yes
17291 else
17292 echo "configure: failed program was:" >&5
17293 cat conftest.$ac_ext >&5
17294 rm -rf conftest*
17295 glibcpp_cv_func__expl_use=no
17297 rm -f conftest*
17298 ac_ext=c
17299 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17300 ac_cpp='$CPP $CPPFLAGS'
17301 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17302 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17303 cross_compiling=$ac_cv_prog_cc_cross
17309 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17311 if test x$glibcpp_cv_func__expl_use = x"yes"; then
17312 for ac_func in _expl
17314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17315 echo "configure:17316: checking for $ac_func" >&5
17316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17317 echo $ac_n "(cached) $ac_c" 1>&6
17318 else
17319 cat > conftest.$ac_ext <<EOF
17320 #line 17321 "configure"
17321 #include "confdefs.h"
17322 /* System header to define __stub macros and hopefully few prototypes,
17323 which can conflict with char $ac_func(); below. */
17324 #include <assert.h>
17325 /* Override any gcc2 internal prototype to avoid an error. */
17326 /* We use char because int might match the return type of a gcc2
17327 builtin and then its argument prototype would still apply. */
17328 char $ac_func();
17330 int main() {
17332 /* The GNU C library defines this for functions which it implements
17333 to always fail with ENOSYS. Some functions are actually named
17334 something starting with __ and the normal name is an alias. */
17335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17336 choke me
17337 #else
17338 $ac_func();
17339 #endif
17341 ; return 0; }
17343 if { (eval echo configure:17344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17344 rm -rf conftest*
17345 eval "ac_cv_func_$ac_func=yes"
17346 else
17347 echo "configure: failed program was:" >&5
17348 cat conftest.$ac_ext >&5
17349 rm -rf conftest*
17350 eval "ac_cv_func_$ac_func=no"
17352 rm -f conftest*
17355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17356 echo "$ac_t""yes" 1>&6
17357 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17358 cat >> confdefs.h <<EOF
17359 #define $ac_tr_func 1
17362 else
17363 echo "$ac_t""no" 1>&6
17365 done
17372 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17373 echo "configure:17374: checking for fabsl declaration" >&5
17374 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17375 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17376 echo $ac_n "(cached) $ac_c" 1>&6
17377 else
17380 ac_ext=C
17381 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17382 ac_cpp='$CXXCPP $CPPFLAGS'
17383 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17384 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17385 cross_compiling=$ac_cv_prog_cxx_cross
17387 cat > conftest.$ac_ext <<EOF
17388 #line 17389 "configure"
17389 #include "confdefs.h"
17390 #include <math.h>
17391 #ifdef HAVE_IEEEFP_H
17392 #include <ieeefp.h>
17393 #endif
17395 int main() {
17396 fabsl(0);
17397 ; return 0; }
17399 if { (eval echo configure:17400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17400 rm -rf conftest*
17401 glibcpp_cv_func_fabsl_use=yes
17402 else
17403 echo "configure: failed program was:" >&5
17404 cat conftest.$ac_ext >&5
17405 rm -rf conftest*
17406 glibcpp_cv_func_fabsl_use=no
17408 rm -f conftest*
17409 ac_ext=c
17410 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17411 ac_cpp='$CPP $CPPFLAGS'
17412 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17413 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17414 cross_compiling=$ac_cv_prog_cc_cross
17420 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17422 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17423 for ac_func in fabsl
17425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17426 echo "configure:17427: checking for $ac_func" >&5
17427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17428 echo $ac_n "(cached) $ac_c" 1>&6
17429 else
17430 cat > conftest.$ac_ext <<EOF
17431 #line 17432 "configure"
17432 #include "confdefs.h"
17433 /* System header to define __stub macros and hopefully few prototypes,
17434 which can conflict with char $ac_func(); below. */
17435 #include <assert.h>
17436 /* Override any gcc2 internal prototype to avoid an error. */
17437 /* We use char because int might match the return type of a gcc2
17438 builtin and then its argument prototype would still apply. */
17439 char $ac_func();
17441 int main() {
17443 /* The GNU C library defines this for functions which it implements
17444 to always fail with ENOSYS. Some functions are actually named
17445 something starting with __ and the normal name is an alias. */
17446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17447 choke me
17448 #else
17449 $ac_func();
17450 #endif
17452 ; return 0; }
17454 if { (eval echo configure:17455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17455 rm -rf conftest*
17456 eval "ac_cv_func_$ac_func=yes"
17457 else
17458 echo "configure: failed program was:" >&5
17459 cat conftest.$ac_ext >&5
17460 rm -rf conftest*
17461 eval "ac_cv_func_$ac_func=no"
17463 rm -f conftest*
17466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17467 echo "$ac_t""yes" 1>&6
17468 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17469 cat >> confdefs.h <<EOF
17470 #define $ac_tr_func 1
17473 else
17474 echo "$ac_t""no" 1>&6
17476 done
17478 else
17480 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17481 echo "configure:17482: checking for _fabsl declaration" >&5
17482 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17483 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17484 echo $ac_n "(cached) $ac_c" 1>&6
17485 else
17488 ac_ext=C
17489 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17490 ac_cpp='$CXXCPP $CPPFLAGS'
17491 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17492 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17493 cross_compiling=$ac_cv_prog_cxx_cross
17495 cat > conftest.$ac_ext <<EOF
17496 #line 17497 "configure"
17497 #include "confdefs.h"
17498 #include <math.h>
17499 #ifdef HAVE_IEEEFP_H
17500 #include <ieeefp.h>
17501 #endif
17503 int main() {
17504 _fabsl(0);
17505 ; return 0; }
17507 if { (eval echo configure:17508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17508 rm -rf conftest*
17509 glibcpp_cv_func__fabsl_use=yes
17510 else
17511 echo "configure: failed program was:" >&5
17512 cat conftest.$ac_ext >&5
17513 rm -rf conftest*
17514 glibcpp_cv_func__fabsl_use=no
17516 rm -f conftest*
17517 ac_ext=c
17518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17519 ac_cpp='$CPP $CPPFLAGS'
17520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17522 cross_compiling=$ac_cv_prog_cc_cross
17528 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17530 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17531 for ac_func in _fabsl
17533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17534 echo "configure:17535: checking for $ac_func" >&5
17535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17536 echo $ac_n "(cached) $ac_c" 1>&6
17537 else
17538 cat > conftest.$ac_ext <<EOF
17539 #line 17540 "configure"
17540 #include "confdefs.h"
17541 /* System header to define __stub macros and hopefully few prototypes,
17542 which can conflict with char $ac_func(); below. */
17543 #include <assert.h>
17544 /* Override any gcc2 internal prototype to avoid an error. */
17545 /* We use char because int might match the return type of a gcc2
17546 builtin and then its argument prototype would still apply. */
17547 char $ac_func();
17549 int main() {
17551 /* The GNU C library defines this for functions which it implements
17552 to always fail with ENOSYS. Some functions are actually named
17553 something starting with __ and the normal name is an alias. */
17554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17555 choke me
17556 #else
17557 $ac_func();
17558 #endif
17560 ; return 0; }
17562 if { (eval echo configure:17563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17563 rm -rf conftest*
17564 eval "ac_cv_func_$ac_func=yes"
17565 else
17566 echo "configure: failed program was:" >&5
17567 cat conftest.$ac_ext >&5
17568 rm -rf conftest*
17569 eval "ac_cv_func_$ac_func=no"
17571 rm -f conftest*
17574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17575 echo "$ac_t""yes" 1>&6
17576 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17577 cat >> confdefs.h <<EOF
17578 #define $ac_tr_func 1
17581 else
17582 echo "$ac_t""no" 1>&6
17584 done
17591 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17592 echo "configure:17593: checking for fmodl declaration" >&5
17593 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17594 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17595 echo $ac_n "(cached) $ac_c" 1>&6
17596 else
17599 ac_ext=C
17600 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17601 ac_cpp='$CXXCPP $CPPFLAGS'
17602 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17603 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17604 cross_compiling=$ac_cv_prog_cxx_cross
17606 cat > conftest.$ac_ext <<EOF
17607 #line 17608 "configure"
17608 #include "confdefs.h"
17609 #include <math.h>
17610 int main() {
17611 fmodl(0, 0);
17612 ; return 0; }
17614 if { (eval echo configure:17615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17615 rm -rf conftest*
17616 glibcpp_cv_func_fmodl_use=yes
17617 else
17618 echo "configure: failed program was:" >&5
17619 cat conftest.$ac_ext >&5
17620 rm -rf conftest*
17621 glibcpp_cv_func_fmodl_use=no
17623 rm -f conftest*
17624 ac_ext=c
17625 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17626 ac_cpp='$CPP $CPPFLAGS'
17627 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17628 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17629 cross_compiling=$ac_cv_prog_cc_cross
17635 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17637 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17638 for ac_func in fmodl
17640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17641 echo "configure:17642: checking for $ac_func" >&5
17642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17643 echo $ac_n "(cached) $ac_c" 1>&6
17644 else
17645 cat > conftest.$ac_ext <<EOF
17646 #line 17647 "configure"
17647 #include "confdefs.h"
17648 /* System header to define __stub macros and hopefully few prototypes,
17649 which can conflict with char $ac_func(); below. */
17650 #include <assert.h>
17651 /* Override any gcc2 internal prototype to avoid an error. */
17652 /* We use char because int might match the return type of a gcc2
17653 builtin and then its argument prototype would still apply. */
17654 char $ac_func();
17656 int main() {
17658 /* The GNU C library defines this for functions which it implements
17659 to always fail with ENOSYS. Some functions are actually named
17660 something starting with __ and the normal name is an alias. */
17661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17662 choke me
17663 #else
17664 $ac_func();
17665 #endif
17667 ; return 0; }
17669 if { (eval echo configure:17670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17670 rm -rf conftest*
17671 eval "ac_cv_func_$ac_func=yes"
17672 else
17673 echo "configure: failed program was:" >&5
17674 cat conftest.$ac_ext >&5
17675 rm -rf conftest*
17676 eval "ac_cv_func_$ac_func=no"
17678 rm -f conftest*
17681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17682 echo "$ac_t""yes" 1>&6
17683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17684 cat >> confdefs.h <<EOF
17685 #define $ac_tr_func 1
17688 else
17689 echo "$ac_t""no" 1>&6
17691 done
17693 else
17695 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17696 echo "configure:17697: checking for _fmodl declaration" >&5
17697 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17698 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17699 echo $ac_n "(cached) $ac_c" 1>&6
17700 else
17703 ac_ext=C
17704 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17705 ac_cpp='$CXXCPP $CPPFLAGS'
17706 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17707 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17708 cross_compiling=$ac_cv_prog_cxx_cross
17710 cat > conftest.$ac_ext <<EOF
17711 #line 17712 "configure"
17712 #include "confdefs.h"
17713 #include <math.h>
17714 int main() {
17715 _fmodl(0, 0);
17716 ; return 0; }
17718 if { (eval echo configure:17719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17719 rm -rf conftest*
17720 glibcpp_cv_func__fmodl_use=yes
17721 else
17722 echo "configure: failed program was:" >&5
17723 cat conftest.$ac_ext >&5
17724 rm -rf conftest*
17725 glibcpp_cv_func__fmodl_use=no
17727 rm -f conftest*
17728 ac_ext=c
17729 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17730 ac_cpp='$CPP $CPPFLAGS'
17731 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17732 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17733 cross_compiling=$ac_cv_prog_cc_cross
17739 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17741 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17742 for ac_func in _fmodl
17744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17745 echo "configure:17746: checking for $ac_func" >&5
17746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17747 echo $ac_n "(cached) $ac_c" 1>&6
17748 else
17749 cat > conftest.$ac_ext <<EOF
17750 #line 17751 "configure"
17751 #include "confdefs.h"
17752 /* System header to define __stub macros and hopefully few prototypes,
17753 which can conflict with char $ac_func(); below. */
17754 #include <assert.h>
17755 /* Override any gcc2 internal prototype to avoid an error. */
17756 /* We use char because int might match the return type of a gcc2
17757 builtin and then its argument prototype would still apply. */
17758 char $ac_func();
17760 int main() {
17762 /* The GNU C library defines this for functions which it implements
17763 to always fail with ENOSYS. Some functions are actually named
17764 something starting with __ and the normal name is an alias. */
17765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17766 choke me
17767 #else
17768 $ac_func();
17769 #endif
17771 ; return 0; }
17773 if { (eval echo configure:17774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17774 rm -rf conftest*
17775 eval "ac_cv_func_$ac_func=yes"
17776 else
17777 echo "configure: failed program was:" >&5
17778 cat conftest.$ac_ext >&5
17779 rm -rf conftest*
17780 eval "ac_cv_func_$ac_func=no"
17782 rm -f conftest*
17785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17786 echo "$ac_t""yes" 1>&6
17787 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17788 cat >> confdefs.h <<EOF
17789 #define $ac_tr_func 1
17792 else
17793 echo "$ac_t""no" 1>&6
17795 done
17802 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17803 echo "configure:17804: checking for frexpl declaration" >&5
17804 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17805 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17806 echo $ac_n "(cached) $ac_c" 1>&6
17807 else
17810 ac_ext=C
17811 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17812 ac_cpp='$CXXCPP $CPPFLAGS'
17813 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17814 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17815 cross_compiling=$ac_cv_prog_cxx_cross
17817 cat > conftest.$ac_ext <<EOF
17818 #line 17819 "configure"
17819 #include "confdefs.h"
17820 #include <math.h>
17821 int main() {
17822 frexpl(0, 0);
17823 ; return 0; }
17825 if { (eval echo configure:17826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17826 rm -rf conftest*
17827 glibcpp_cv_func_frexpl_use=yes
17828 else
17829 echo "configure: failed program was:" >&5
17830 cat conftest.$ac_ext >&5
17831 rm -rf conftest*
17832 glibcpp_cv_func_frexpl_use=no
17834 rm -f conftest*
17835 ac_ext=c
17836 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17837 ac_cpp='$CPP $CPPFLAGS'
17838 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17839 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17840 cross_compiling=$ac_cv_prog_cc_cross
17846 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17848 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17849 for ac_func in frexpl
17851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17852 echo "configure:17853: checking for $ac_func" >&5
17853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17854 echo $ac_n "(cached) $ac_c" 1>&6
17855 else
17856 cat > conftest.$ac_ext <<EOF
17857 #line 17858 "configure"
17858 #include "confdefs.h"
17859 /* System header to define __stub macros and hopefully few prototypes,
17860 which can conflict with char $ac_func(); below. */
17861 #include <assert.h>
17862 /* Override any gcc2 internal prototype to avoid an error. */
17863 /* We use char because int might match the return type of a gcc2
17864 builtin and then its argument prototype would still apply. */
17865 char $ac_func();
17867 int main() {
17869 /* The GNU C library defines this for functions which it implements
17870 to always fail with ENOSYS. Some functions are actually named
17871 something starting with __ and the normal name is an alias. */
17872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17873 choke me
17874 #else
17875 $ac_func();
17876 #endif
17878 ; return 0; }
17880 if { (eval echo configure:17881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17881 rm -rf conftest*
17882 eval "ac_cv_func_$ac_func=yes"
17883 else
17884 echo "configure: failed program was:" >&5
17885 cat conftest.$ac_ext >&5
17886 rm -rf conftest*
17887 eval "ac_cv_func_$ac_func=no"
17889 rm -f conftest*
17892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17893 echo "$ac_t""yes" 1>&6
17894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17895 cat >> confdefs.h <<EOF
17896 #define $ac_tr_func 1
17899 else
17900 echo "$ac_t""no" 1>&6
17902 done
17904 else
17906 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17907 echo "configure:17908: checking for _frexpl declaration" >&5
17908 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17909 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17910 echo $ac_n "(cached) $ac_c" 1>&6
17911 else
17914 ac_ext=C
17915 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17916 ac_cpp='$CXXCPP $CPPFLAGS'
17917 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17918 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17919 cross_compiling=$ac_cv_prog_cxx_cross
17921 cat > conftest.$ac_ext <<EOF
17922 #line 17923 "configure"
17923 #include "confdefs.h"
17924 #include <math.h>
17925 int main() {
17926 _frexpl(0, 0);
17927 ; return 0; }
17929 if { (eval echo configure:17930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17930 rm -rf conftest*
17931 glibcpp_cv_func__frexpl_use=yes
17932 else
17933 echo "configure: failed program was:" >&5
17934 cat conftest.$ac_ext >&5
17935 rm -rf conftest*
17936 glibcpp_cv_func__frexpl_use=no
17938 rm -f conftest*
17939 ac_ext=c
17940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17941 ac_cpp='$CPP $CPPFLAGS'
17942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17944 cross_compiling=$ac_cv_prog_cc_cross
17950 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17952 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17953 for ac_func in _frexpl
17955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17956 echo "configure:17957: checking for $ac_func" >&5
17957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17958 echo $ac_n "(cached) $ac_c" 1>&6
17959 else
17960 cat > conftest.$ac_ext <<EOF
17961 #line 17962 "configure"
17962 #include "confdefs.h"
17963 /* System header to define __stub macros and hopefully few prototypes,
17964 which can conflict with char $ac_func(); below. */
17965 #include <assert.h>
17966 /* Override any gcc2 internal prototype to avoid an error. */
17967 /* We use char because int might match the return type of a gcc2
17968 builtin and then its argument prototype would still apply. */
17969 char $ac_func();
17971 int main() {
17973 /* The GNU C library defines this for functions which it implements
17974 to always fail with ENOSYS. Some functions are actually named
17975 something starting with __ and the normal name is an alias. */
17976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17977 choke me
17978 #else
17979 $ac_func();
17980 #endif
17982 ; return 0; }
17984 if { (eval echo configure:17985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17985 rm -rf conftest*
17986 eval "ac_cv_func_$ac_func=yes"
17987 else
17988 echo "configure: failed program was:" >&5
17989 cat conftest.$ac_ext >&5
17990 rm -rf conftest*
17991 eval "ac_cv_func_$ac_func=no"
17993 rm -f conftest*
17996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17997 echo "$ac_t""yes" 1>&6
17998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17999 cat >> confdefs.h <<EOF
18000 #define $ac_tr_func 1
18003 else
18004 echo "$ac_t""no" 1>&6
18006 done
18013 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18014 echo "configure:18015: checking for hypotl declaration" >&5
18015 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18016 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18017 echo $ac_n "(cached) $ac_c" 1>&6
18018 else
18021 ac_ext=C
18022 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18023 ac_cpp='$CXXCPP $CPPFLAGS'
18024 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18025 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18026 cross_compiling=$ac_cv_prog_cxx_cross
18028 cat > conftest.$ac_ext <<EOF
18029 #line 18030 "configure"
18030 #include "confdefs.h"
18031 #include <math.h>
18032 int main() {
18033 hypotl(0, 0);
18034 ; return 0; }
18036 if { (eval echo configure:18037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18037 rm -rf conftest*
18038 glibcpp_cv_func_hypotl_use=yes
18039 else
18040 echo "configure: failed program was:" >&5
18041 cat conftest.$ac_ext >&5
18042 rm -rf conftest*
18043 glibcpp_cv_func_hypotl_use=no
18045 rm -f conftest*
18046 ac_ext=c
18047 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18048 ac_cpp='$CPP $CPPFLAGS'
18049 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18050 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18051 cross_compiling=$ac_cv_prog_cc_cross
18057 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18059 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18060 for ac_func in hypotl
18062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18063 echo "configure:18064: checking for $ac_func" >&5
18064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18065 echo $ac_n "(cached) $ac_c" 1>&6
18066 else
18067 cat > conftest.$ac_ext <<EOF
18068 #line 18069 "configure"
18069 #include "confdefs.h"
18070 /* System header to define __stub macros and hopefully few prototypes,
18071 which can conflict with char $ac_func(); below. */
18072 #include <assert.h>
18073 /* Override any gcc2 internal prototype to avoid an error. */
18074 /* We use char because int might match the return type of a gcc2
18075 builtin and then its argument prototype would still apply. */
18076 char $ac_func();
18078 int main() {
18080 /* The GNU C library defines this for functions which it implements
18081 to always fail with ENOSYS. Some functions are actually named
18082 something starting with __ and the normal name is an alias. */
18083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18084 choke me
18085 #else
18086 $ac_func();
18087 #endif
18089 ; return 0; }
18091 if { (eval echo configure:18092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18092 rm -rf conftest*
18093 eval "ac_cv_func_$ac_func=yes"
18094 else
18095 echo "configure: failed program was:" >&5
18096 cat conftest.$ac_ext >&5
18097 rm -rf conftest*
18098 eval "ac_cv_func_$ac_func=no"
18100 rm -f conftest*
18103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18104 echo "$ac_t""yes" 1>&6
18105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18106 cat >> confdefs.h <<EOF
18107 #define $ac_tr_func 1
18110 else
18111 echo "$ac_t""no" 1>&6
18113 done
18115 else
18117 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18118 echo "configure:18119: checking for _hypotl declaration" >&5
18119 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18120 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18121 echo $ac_n "(cached) $ac_c" 1>&6
18122 else
18125 ac_ext=C
18126 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18127 ac_cpp='$CXXCPP $CPPFLAGS'
18128 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18129 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18130 cross_compiling=$ac_cv_prog_cxx_cross
18132 cat > conftest.$ac_ext <<EOF
18133 #line 18134 "configure"
18134 #include "confdefs.h"
18135 #include <math.h>
18136 int main() {
18137 _hypotl(0, 0);
18138 ; return 0; }
18140 if { (eval echo configure:18141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18141 rm -rf conftest*
18142 glibcpp_cv_func__hypotl_use=yes
18143 else
18144 echo "configure: failed program was:" >&5
18145 cat conftest.$ac_ext >&5
18146 rm -rf conftest*
18147 glibcpp_cv_func__hypotl_use=no
18149 rm -f conftest*
18150 ac_ext=c
18151 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18152 ac_cpp='$CPP $CPPFLAGS'
18153 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18154 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18155 cross_compiling=$ac_cv_prog_cc_cross
18161 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18163 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18164 for ac_func in _hypotl
18166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18167 echo "configure:18168: checking for $ac_func" >&5
18168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18169 echo $ac_n "(cached) $ac_c" 1>&6
18170 else
18171 cat > conftest.$ac_ext <<EOF
18172 #line 18173 "configure"
18173 #include "confdefs.h"
18174 /* System header to define __stub macros and hopefully few prototypes,
18175 which can conflict with char $ac_func(); below. */
18176 #include <assert.h>
18177 /* Override any gcc2 internal prototype to avoid an error. */
18178 /* We use char because int might match the return type of a gcc2
18179 builtin and then its argument prototype would still apply. */
18180 char $ac_func();
18182 int main() {
18184 /* The GNU C library defines this for functions which it implements
18185 to always fail with ENOSYS. Some functions are actually named
18186 something starting with __ and the normal name is an alias. */
18187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18188 choke me
18189 #else
18190 $ac_func();
18191 #endif
18193 ; return 0; }
18195 if { (eval echo configure:18196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18196 rm -rf conftest*
18197 eval "ac_cv_func_$ac_func=yes"
18198 else
18199 echo "configure: failed program was:" >&5
18200 cat conftest.$ac_ext >&5
18201 rm -rf conftest*
18202 eval "ac_cv_func_$ac_func=no"
18204 rm -f conftest*
18207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18208 echo "$ac_t""yes" 1>&6
18209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18210 cat >> confdefs.h <<EOF
18211 #define $ac_tr_func 1
18214 else
18215 echo "$ac_t""no" 1>&6
18217 done
18224 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18225 echo "configure:18226: checking for ldexpl declaration" >&5
18226 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18227 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18228 echo $ac_n "(cached) $ac_c" 1>&6
18229 else
18232 ac_ext=C
18233 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18234 ac_cpp='$CXXCPP $CPPFLAGS'
18235 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18236 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18237 cross_compiling=$ac_cv_prog_cxx_cross
18239 cat > conftest.$ac_ext <<EOF
18240 #line 18241 "configure"
18241 #include "confdefs.h"
18242 #include <math.h>
18243 int main() {
18244 ldexpl(0, 0);
18245 ; return 0; }
18247 if { (eval echo configure:18248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18248 rm -rf conftest*
18249 glibcpp_cv_func_ldexpl_use=yes
18250 else
18251 echo "configure: failed program was:" >&5
18252 cat conftest.$ac_ext >&5
18253 rm -rf conftest*
18254 glibcpp_cv_func_ldexpl_use=no
18256 rm -f conftest*
18257 ac_ext=c
18258 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18259 ac_cpp='$CPP $CPPFLAGS'
18260 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18261 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18262 cross_compiling=$ac_cv_prog_cc_cross
18268 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18270 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18271 for ac_func in ldexpl
18273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18274 echo "configure:18275: checking for $ac_func" >&5
18275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18276 echo $ac_n "(cached) $ac_c" 1>&6
18277 else
18278 cat > conftest.$ac_ext <<EOF
18279 #line 18280 "configure"
18280 #include "confdefs.h"
18281 /* System header to define __stub macros and hopefully few prototypes,
18282 which can conflict with char $ac_func(); below. */
18283 #include <assert.h>
18284 /* Override any gcc2 internal prototype to avoid an error. */
18285 /* We use char because int might match the return type of a gcc2
18286 builtin and then its argument prototype would still apply. */
18287 char $ac_func();
18289 int main() {
18291 /* The GNU C library defines this for functions which it implements
18292 to always fail with ENOSYS. Some functions are actually named
18293 something starting with __ and the normal name is an alias. */
18294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18295 choke me
18296 #else
18297 $ac_func();
18298 #endif
18300 ; return 0; }
18302 if { (eval echo configure:18303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18303 rm -rf conftest*
18304 eval "ac_cv_func_$ac_func=yes"
18305 else
18306 echo "configure: failed program was:" >&5
18307 cat conftest.$ac_ext >&5
18308 rm -rf conftest*
18309 eval "ac_cv_func_$ac_func=no"
18311 rm -f conftest*
18314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18315 echo "$ac_t""yes" 1>&6
18316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18317 cat >> confdefs.h <<EOF
18318 #define $ac_tr_func 1
18321 else
18322 echo "$ac_t""no" 1>&6
18324 done
18326 else
18328 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18329 echo "configure:18330: checking for _ldexpl declaration" >&5
18330 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18331 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18332 echo $ac_n "(cached) $ac_c" 1>&6
18333 else
18336 ac_ext=C
18337 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18338 ac_cpp='$CXXCPP $CPPFLAGS'
18339 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18340 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18341 cross_compiling=$ac_cv_prog_cxx_cross
18343 cat > conftest.$ac_ext <<EOF
18344 #line 18345 "configure"
18345 #include "confdefs.h"
18346 #include <math.h>
18347 int main() {
18348 _ldexpl(0, 0);
18349 ; return 0; }
18351 if { (eval echo configure:18352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18352 rm -rf conftest*
18353 glibcpp_cv_func__ldexpl_use=yes
18354 else
18355 echo "configure: failed program was:" >&5
18356 cat conftest.$ac_ext >&5
18357 rm -rf conftest*
18358 glibcpp_cv_func__ldexpl_use=no
18360 rm -f conftest*
18361 ac_ext=c
18362 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18363 ac_cpp='$CPP $CPPFLAGS'
18364 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18365 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18366 cross_compiling=$ac_cv_prog_cc_cross
18372 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18374 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18375 for ac_func in _ldexpl
18377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18378 echo "configure:18379: checking for $ac_func" >&5
18379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18380 echo $ac_n "(cached) $ac_c" 1>&6
18381 else
18382 cat > conftest.$ac_ext <<EOF
18383 #line 18384 "configure"
18384 #include "confdefs.h"
18385 /* System header to define __stub macros and hopefully few prototypes,
18386 which can conflict with char $ac_func(); below. */
18387 #include <assert.h>
18388 /* Override any gcc2 internal prototype to avoid an error. */
18389 /* We use char because int might match the return type of a gcc2
18390 builtin and then its argument prototype would still apply. */
18391 char $ac_func();
18393 int main() {
18395 /* The GNU C library defines this for functions which it implements
18396 to always fail with ENOSYS. Some functions are actually named
18397 something starting with __ and the normal name is an alias. */
18398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18399 choke me
18400 #else
18401 $ac_func();
18402 #endif
18404 ; return 0; }
18406 if { (eval echo configure:18407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18407 rm -rf conftest*
18408 eval "ac_cv_func_$ac_func=yes"
18409 else
18410 echo "configure: failed program was:" >&5
18411 cat conftest.$ac_ext >&5
18412 rm -rf conftest*
18413 eval "ac_cv_func_$ac_func=no"
18415 rm -f conftest*
18418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18419 echo "$ac_t""yes" 1>&6
18420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18421 cat >> confdefs.h <<EOF
18422 #define $ac_tr_func 1
18425 else
18426 echo "$ac_t""no" 1>&6
18428 done
18435 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18436 echo "configure:18437: checking for logl declaration" >&5
18437 if test x${glibcpp_cv_func_logl_use+set} != xset; then
18438 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18439 echo $ac_n "(cached) $ac_c" 1>&6
18440 else
18443 ac_ext=C
18444 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18445 ac_cpp='$CXXCPP $CPPFLAGS'
18446 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18447 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18448 cross_compiling=$ac_cv_prog_cxx_cross
18450 cat > conftest.$ac_ext <<EOF
18451 #line 18452 "configure"
18452 #include "confdefs.h"
18453 #include <math.h>
18454 #ifdef HAVE_IEEEFP_H
18455 #include <ieeefp.h>
18456 #endif
18458 int main() {
18459 logl(0);
18460 ; return 0; }
18462 if { (eval echo configure:18463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18463 rm -rf conftest*
18464 glibcpp_cv_func_logl_use=yes
18465 else
18466 echo "configure: failed program was:" >&5
18467 cat conftest.$ac_ext >&5
18468 rm -rf conftest*
18469 glibcpp_cv_func_logl_use=no
18471 rm -f conftest*
18472 ac_ext=c
18473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18474 ac_cpp='$CPP $CPPFLAGS'
18475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18477 cross_compiling=$ac_cv_prog_cc_cross
18483 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18485 if test x$glibcpp_cv_func_logl_use = x"yes"; then
18486 for ac_func in logl
18488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18489 echo "configure:18490: checking for $ac_func" >&5
18490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18491 echo $ac_n "(cached) $ac_c" 1>&6
18492 else
18493 cat > conftest.$ac_ext <<EOF
18494 #line 18495 "configure"
18495 #include "confdefs.h"
18496 /* System header to define __stub macros and hopefully few prototypes,
18497 which can conflict with char $ac_func(); below. */
18498 #include <assert.h>
18499 /* Override any gcc2 internal prototype to avoid an error. */
18500 /* We use char because int might match the return type of a gcc2
18501 builtin and then its argument prototype would still apply. */
18502 char $ac_func();
18504 int main() {
18506 /* The GNU C library defines this for functions which it implements
18507 to always fail with ENOSYS. Some functions are actually named
18508 something starting with __ and the normal name is an alias. */
18509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18510 choke me
18511 #else
18512 $ac_func();
18513 #endif
18515 ; return 0; }
18517 if { (eval echo configure:18518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18518 rm -rf conftest*
18519 eval "ac_cv_func_$ac_func=yes"
18520 else
18521 echo "configure: failed program was:" >&5
18522 cat conftest.$ac_ext >&5
18523 rm -rf conftest*
18524 eval "ac_cv_func_$ac_func=no"
18526 rm -f conftest*
18529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18530 echo "$ac_t""yes" 1>&6
18531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18532 cat >> confdefs.h <<EOF
18533 #define $ac_tr_func 1
18536 else
18537 echo "$ac_t""no" 1>&6
18539 done
18541 else
18543 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18544 echo "configure:18545: checking for _logl declaration" >&5
18545 if test x${glibcpp_cv_func__logl_use+set} != xset; then
18546 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18547 echo $ac_n "(cached) $ac_c" 1>&6
18548 else
18551 ac_ext=C
18552 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18553 ac_cpp='$CXXCPP $CPPFLAGS'
18554 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18555 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18556 cross_compiling=$ac_cv_prog_cxx_cross
18558 cat > conftest.$ac_ext <<EOF
18559 #line 18560 "configure"
18560 #include "confdefs.h"
18561 #include <math.h>
18562 #ifdef HAVE_IEEEFP_H
18563 #include <ieeefp.h>
18564 #endif
18566 int main() {
18567 _logl(0);
18568 ; return 0; }
18570 if { (eval echo configure:18571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18571 rm -rf conftest*
18572 glibcpp_cv_func__logl_use=yes
18573 else
18574 echo "configure: failed program was:" >&5
18575 cat conftest.$ac_ext >&5
18576 rm -rf conftest*
18577 glibcpp_cv_func__logl_use=no
18579 rm -f conftest*
18580 ac_ext=c
18581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18582 ac_cpp='$CPP $CPPFLAGS'
18583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18585 cross_compiling=$ac_cv_prog_cc_cross
18591 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18593 if test x$glibcpp_cv_func__logl_use = x"yes"; then
18594 for ac_func in _logl
18596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18597 echo "configure:18598: checking for $ac_func" >&5
18598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18599 echo $ac_n "(cached) $ac_c" 1>&6
18600 else
18601 cat > conftest.$ac_ext <<EOF
18602 #line 18603 "configure"
18603 #include "confdefs.h"
18604 /* System header to define __stub macros and hopefully few prototypes,
18605 which can conflict with char $ac_func(); below. */
18606 #include <assert.h>
18607 /* Override any gcc2 internal prototype to avoid an error. */
18608 /* We use char because int might match the return type of a gcc2
18609 builtin and then its argument prototype would still apply. */
18610 char $ac_func();
18612 int main() {
18614 /* The GNU C library defines this for functions which it implements
18615 to always fail with ENOSYS. Some functions are actually named
18616 something starting with __ and the normal name is an alias. */
18617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18618 choke me
18619 #else
18620 $ac_func();
18621 #endif
18623 ; return 0; }
18625 if { (eval echo configure:18626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18626 rm -rf conftest*
18627 eval "ac_cv_func_$ac_func=yes"
18628 else
18629 echo "configure: failed program was:" >&5
18630 cat conftest.$ac_ext >&5
18631 rm -rf conftest*
18632 eval "ac_cv_func_$ac_func=no"
18634 rm -f conftest*
18637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18638 echo "$ac_t""yes" 1>&6
18639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18640 cat >> confdefs.h <<EOF
18641 #define $ac_tr_func 1
18644 else
18645 echo "$ac_t""no" 1>&6
18647 done
18654 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18655 echo "configure:18656: checking for log10l declaration" >&5
18656 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18657 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18658 echo $ac_n "(cached) $ac_c" 1>&6
18659 else
18662 ac_ext=C
18663 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18664 ac_cpp='$CXXCPP $CPPFLAGS'
18665 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18666 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18667 cross_compiling=$ac_cv_prog_cxx_cross
18669 cat > conftest.$ac_ext <<EOF
18670 #line 18671 "configure"
18671 #include "confdefs.h"
18672 #include <math.h>
18673 #ifdef HAVE_IEEEFP_H
18674 #include <ieeefp.h>
18675 #endif
18677 int main() {
18678 log10l(0);
18679 ; return 0; }
18681 if { (eval echo configure:18682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18682 rm -rf conftest*
18683 glibcpp_cv_func_log10l_use=yes
18684 else
18685 echo "configure: failed program was:" >&5
18686 cat conftest.$ac_ext >&5
18687 rm -rf conftest*
18688 glibcpp_cv_func_log10l_use=no
18690 rm -f conftest*
18691 ac_ext=c
18692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18693 ac_cpp='$CPP $CPPFLAGS'
18694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18696 cross_compiling=$ac_cv_prog_cc_cross
18702 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18704 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18705 for ac_func in log10l
18707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18708 echo "configure:18709: checking for $ac_func" >&5
18709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18710 echo $ac_n "(cached) $ac_c" 1>&6
18711 else
18712 cat > conftest.$ac_ext <<EOF
18713 #line 18714 "configure"
18714 #include "confdefs.h"
18715 /* System header to define __stub macros and hopefully few prototypes,
18716 which can conflict with char $ac_func(); below. */
18717 #include <assert.h>
18718 /* Override any gcc2 internal prototype to avoid an error. */
18719 /* We use char because int might match the return type of a gcc2
18720 builtin and then its argument prototype would still apply. */
18721 char $ac_func();
18723 int main() {
18725 /* The GNU C library defines this for functions which it implements
18726 to always fail with ENOSYS. Some functions are actually named
18727 something starting with __ and the normal name is an alias. */
18728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18729 choke me
18730 #else
18731 $ac_func();
18732 #endif
18734 ; return 0; }
18736 if { (eval echo configure:18737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18737 rm -rf conftest*
18738 eval "ac_cv_func_$ac_func=yes"
18739 else
18740 echo "configure: failed program was:" >&5
18741 cat conftest.$ac_ext >&5
18742 rm -rf conftest*
18743 eval "ac_cv_func_$ac_func=no"
18745 rm -f conftest*
18748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18749 echo "$ac_t""yes" 1>&6
18750 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18751 cat >> confdefs.h <<EOF
18752 #define $ac_tr_func 1
18755 else
18756 echo "$ac_t""no" 1>&6
18758 done
18760 else
18762 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18763 echo "configure:18764: checking for _log10l declaration" >&5
18764 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18765 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18766 echo $ac_n "(cached) $ac_c" 1>&6
18767 else
18770 ac_ext=C
18771 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18772 ac_cpp='$CXXCPP $CPPFLAGS'
18773 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18774 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18775 cross_compiling=$ac_cv_prog_cxx_cross
18777 cat > conftest.$ac_ext <<EOF
18778 #line 18779 "configure"
18779 #include "confdefs.h"
18780 #include <math.h>
18781 #ifdef HAVE_IEEEFP_H
18782 #include <ieeefp.h>
18783 #endif
18785 int main() {
18786 _log10l(0);
18787 ; return 0; }
18789 if { (eval echo configure:18790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18790 rm -rf conftest*
18791 glibcpp_cv_func__log10l_use=yes
18792 else
18793 echo "configure: failed program was:" >&5
18794 cat conftest.$ac_ext >&5
18795 rm -rf conftest*
18796 glibcpp_cv_func__log10l_use=no
18798 rm -f conftest*
18799 ac_ext=c
18800 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18801 ac_cpp='$CPP $CPPFLAGS'
18802 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18803 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18804 cross_compiling=$ac_cv_prog_cc_cross
18810 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18812 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18813 for ac_func in _log10l
18815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18816 echo "configure:18817: checking for $ac_func" >&5
18817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18818 echo $ac_n "(cached) $ac_c" 1>&6
18819 else
18820 cat > conftest.$ac_ext <<EOF
18821 #line 18822 "configure"
18822 #include "confdefs.h"
18823 /* System header to define __stub macros and hopefully few prototypes,
18824 which can conflict with char $ac_func(); below. */
18825 #include <assert.h>
18826 /* Override any gcc2 internal prototype to avoid an error. */
18827 /* We use char because int might match the return type of a gcc2
18828 builtin and then its argument prototype would still apply. */
18829 char $ac_func();
18831 int main() {
18833 /* The GNU C library defines this for functions which it implements
18834 to always fail with ENOSYS. Some functions are actually named
18835 something starting with __ and the normal name is an alias. */
18836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18837 choke me
18838 #else
18839 $ac_func();
18840 #endif
18842 ; return 0; }
18844 if { (eval echo configure:18845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18845 rm -rf conftest*
18846 eval "ac_cv_func_$ac_func=yes"
18847 else
18848 echo "configure: failed program was:" >&5
18849 cat conftest.$ac_ext >&5
18850 rm -rf conftest*
18851 eval "ac_cv_func_$ac_func=no"
18853 rm -f conftest*
18856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18857 echo "$ac_t""yes" 1>&6
18858 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18859 cat >> confdefs.h <<EOF
18860 #define $ac_tr_func 1
18863 else
18864 echo "$ac_t""no" 1>&6
18866 done
18873 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18874 echo "configure:18875: checking for modfl declaration" >&5
18875 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18876 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18877 echo $ac_n "(cached) $ac_c" 1>&6
18878 else
18881 ac_ext=C
18882 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18883 ac_cpp='$CXXCPP $CPPFLAGS'
18884 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18885 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18886 cross_compiling=$ac_cv_prog_cxx_cross
18888 cat > conftest.$ac_ext <<EOF
18889 #line 18890 "configure"
18890 #include "confdefs.h"
18891 #include <math.h>
18892 int main() {
18893 modfl(0, 0);
18894 ; return 0; }
18896 if { (eval echo configure:18897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18897 rm -rf conftest*
18898 glibcpp_cv_func_modfl_use=yes
18899 else
18900 echo "configure: failed program was:" >&5
18901 cat conftest.$ac_ext >&5
18902 rm -rf conftest*
18903 glibcpp_cv_func_modfl_use=no
18905 rm -f conftest*
18906 ac_ext=c
18907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18908 ac_cpp='$CPP $CPPFLAGS'
18909 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18910 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18911 cross_compiling=$ac_cv_prog_cc_cross
18917 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18919 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18920 for ac_func in modfl
18922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18923 echo "configure:18924: checking for $ac_func" >&5
18924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18925 echo $ac_n "(cached) $ac_c" 1>&6
18926 else
18927 cat > conftest.$ac_ext <<EOF
18928 #line 18929 "configure"
18929 #include "confdefs.h"
18930 /* System header to define __stub macros and hopefully few prototypes,
18931 which can conflict with char $ac_func(); below. */
18932 #include <assert.h>
18933 /* Override any gcc2 internal prototype to avoid an error. */
18934 /* We use char because int might match the return type of a gcc2
18935 builtin and then its argument prototype would still apply. */
18936 char $ac_func();
18938 int main() {
18940 /* The GNU C library defines this for functions which it implements
18941 to always fail with ENOSYS. Some functions are actually named
18942 something starting with __ and the normal name is an alias. */
18943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18944 choke me
18945 #else
18946 $ac_func();
18947 #endif
18949 ; return 0; }
18951 if { (eval echo configure:18952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18952 rm -rf conftest*
18953 eval "ac_cv_func_$ac_func=yes"
18954 else
18955 echo "configure: failed program was:" >&5
18956 cat conftest.$ac_ext >&5
18957 rm -rf conftest*
18958 eval "ac_cv_func_$ac_func=no"
18960 rm -f conftest*
18963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18964 echo "$ac_t""yes" 1>&6
18965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18966 cat >> confdefs.h <<EOF
18967 #define $ac_tr_func 1
18970 else
18971 echo "$ac_t""no" 1>&6
18973 done
18975 else
18977 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18978 echo "configure:18979: checking for _modfl declaration" >&5
18979 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18980 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18981 echo $ac_n "(cached) $ac_c" 1>&6
18982 else
18985 ac_ext=C
18986 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18987 ac_cpp='$CXXCPP $CPPFLAGS'
18988 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18989 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18990 cross_compiling=$ac_cv_prog_cxx_cross
18992 cat > conftest.$ac_ext <<EOF
18993 #line 18994 "configure"
18994 #include "confdefs.h"
18995 #include <math.h>
18996 int main() {
18997 _modfl(0, 0);
18998 ; return 0; }
19000 if { (eval echo configure:19001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19001 rm -rf conftest*
19002 glibcpp_cv_func__modfl_use=yes
19003 else
19004 echo "configure: failed program was:" >&5
19005 cat conftest.$ac_ext >&5
19006 rm -rf conftest*
19007 glibcpp_cv_func__modfl_use=no
19009 rm -f conftest*
19010 ac_ext=c
19011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19012 ac_cpp='$CPP $CPPFLAGS'
19013 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19014 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19015 cross_compiling=$ac_cv_prog_cc_cross
19021 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19023 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19024 for ac_func in _modfl
19026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19027 echo "configure:19028: checking for $ac_func" >&5
19028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19029 echo $ac_n "(cached) $ac_c" 1>&6
19030 else
19031 cat > conftest.$ac_ext <<EOF
19032 #line 19033 "configure"
19033 #include "confdefs.h"
19034 /* System header to define __stub macros and hopefully few prototypes,
19035 which can conflict with char $ac_func(); below. */
19036 #include <assert.h>
19037 /* Override any gcc2 internal prototype to avoid an error. */
19038 /* We use char because int might match the return type of a gcc2
19039 builtin and then its argument prototype would still apply. */
19040 char $ac_func();
19042 int main() {
19044 /* The GNU C library defines this for functions which it implements
19045 to always fail with ENOSYS. Some functions are actually named
19046 something starting with __ and the normal name is an alias. */
19047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19048 choke me
19049 #else
19050 $ac_func();
19051 #endif
19053 ; return 0; }
19055 if { (eval echo configure:19056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19056 rm -rf conftest*
19057 eval "ac_cv_func_$ac_func=yes"
19058 else
19059 echo "configure: failed program was:" >&5
19060 cat conftest.$ac_ext >&5
19061 rm -rf conftest*
19062 eval "ac_cv_func_$ac_func=no"
19064 rm -f conftest*
19067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19068 echo "$ac_t""yes" 1>&6
19069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19070 cat >> confdefs.h <<EOF
19071 #define $ac_tr_func 1
19074 else
19075 echo "$ac_t""no" 1>&6
19077 done
19084 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19085 echo "configure:19086: checking for powl declaration" >&5
19086 if test x${glibcpp_cv_func_powl_use+set} != xset; then
19087 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19088 echo $ac_n "(cached) $ac_c" 1>&6
19089 else
19092 ac_ext=C
19093 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19094 ac_cpp='$CXXCPP $CPPFLAGS'
19095 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19096 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19097 cross_compiling=$ac_cv_prog_cxx_cross
19099 cat > conftest.$ac_ext <<EOF
19100 #line 19101 "configure"
19101 #include "confdefs.h"
19102 #include <math.h>
19103 int main() {
19104 powl(0, 0);
19105 ; return 0; }
19107 if { (eval echo configure:19108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19108 rm -rf conftest*
19109 glibcpp_cv_func_powl_use=yes
19110 else
19111 echo "configure: failed program was:" >&5
19112 cat conftest.$ac_ext >&5
19113 rm -rf conftest*
19114 glibcpp_cv_func_powl_use=no
19116 rm -f conftest*
19117 ac_ext=c
19118 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19119 ac_cpp='$CPP $CPPFLAGS'
19120 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19121 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19122 cross_compiling=$ac_cv_prog_cc_cross
19128 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19130 if test x$glibcpp_cv_func_powl_use = x"yes"; then
19131 for ac_func in powl
19133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19134 echo "configure:19135: checking for $ac_func" >&5
19135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19136 echo $ac_n "(cached) $ac_c" 1>&6
19137 else
19138 cat > conftest.$ac_ext <<EOF
19139 #line 19140 "configure"
19140 #include "confdefs.h"
19141 /* System header to define __stub macros and hopefully few prototypes,
19142 which can conflict with char $ac_func(); below. */
19143 #include <assert.h>
19144 /* Override any gcc2 internal prototype to avoid an error. */
19145 /* We use char because int might match the return type of a gcc2
19146 builtin and then its argument prototype would still apply. */
19147 char $ac_func();
19149 int main() {
19151 /* The GNU C library defines this for functions which it implements
19152 to always fail with ENOSYS. Some functions are actually named
19153 something starting with __ and the normal name is an alias. */
19154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19155 choke me
19156 #else
19157 $ac_func();
19158 #endif
19160 ; return 0; }
19162 if { (eval echo configure:19163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19163 rm -rf conftest*
19164 eval "ac_cv_func_$ac_func=yes"
19165 else
19166 echo "configure: failed program was:" >&5
19167 cat conftest.$ac_ext >&5
19168 rm -rf conftest*
19169 eval "ac_cv_func_$ac_func=no"
19171 rm -f conftest*
19174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19175 echo "$ac_t""yes" 1>&6
19176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19177 cat >> confdefs.h <<EOF
19178 #define $ac_tr_func 1
19181 else
19182 echo "$ac_t""no" 1>&6
19184 done
19186 else
19188 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19189 echo "configure:19190: checking for _powl declaration" >&5
19190 if test x${glibcpp_cv_func__powl_use+set} != xset; then
19191 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19192 echo $ac_n "(cached) $ac_c" 1>&6
19193 else
19196 ac_ext=C
19197 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19198 ac_cpp='$CXXCPP $CPPFLAGS'
19199 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19200 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19201 cross_compiling=$ac_cv_prog_cxx_cross
19203 cat > conftest.$ac_ext <<EOF
19204 #line 19205 "configure"
19205 #include "confdefs.h"
19206 #include <math.h>
19207 int main() {
19208 _powl(0, 0);
19209 ; return 0; }
19211 if { (eval echo configure:19212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19212 rm -rf conftest*
19213 glibcpp_cv_func__powl_use=yes
19214 else
19215 echo "configure: failed program was:" >&5
19216 cat conftest.$ac_ext >&5
19217 rm -rf conftest*
19218 glibcpp_cv_func__powl_use=no
19220 rm -f conftest*
19221 ac_ext=c
19222 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19223 ac_cpp='$CPP $CPPFLAGS'
19224 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19225 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19226 cross_compiling=$ac_cv_prog_cc_cross
19232 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19234 if test x$glibcpp_cv_func__powl_use = x"yes"; then
19235 for ac_func in _powl
19237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19238 echo "configure:19239: checking for $ac_func" >&5
19239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19240 echo $ac_n "(cached) $ac_c" 1>&6
19241 else
19242 cat > conftest.$ac_ext <<EOF
19243 #line 19244 "configure"
19244 #include "confdefs.h"
19245 /* System header to define __stub macros and hopefully few prototypes,
19246 which can conflict with char $ac_func(); below. */
19247 #include <assert.h>
19248 /* Override any gcc2 internal prototype to avoid an error. */
19249 /* We use char because int might match the return type of a gcc2
19250 builtin and then its argument prototype would still apply. */
19251 char $ac_func();
19253 int main() {
19255 /* The GNU C library defines this for functions which it implements
19256 to always fail with ENOSYS. Some functions are actually named
19257 something starting with __ and the normal name is an alias. */
19258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19259 choke me
19260 #else
19261 $ac_func();
19262 #endif
19264 ; return 0; }
19266 if { (eval echo configure:19267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19267 rm -rf conftest*
19268 eval "ac_cv_func_$ac_func=yes"
19269 else
19270 echo "configure: failed program was:" >&5
19271 cat conftest.$ac_ext >&5
19272 rm -rf conftest*
19273 eval "ac_cv_func_$ac_func=no"
19275 rm -f conftest*
19278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19279 echo "$ac_t""yes" 1>&6
19280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19281 cat >> confdefs.h <<EOF
19282 #define $ac_tr_func 1
19285 else
19286 echo "$ac_t""no" 1>&6
19288 done
19295 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19296 echo "configure:19297: checking for sqrtl declaration" >&5
19297 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19298 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19299 echo $ac_n "(cached) $ac_c" 1>&6
19300 else
19303 ac_ext=C
19304 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19305 ac_cpp='$CXXCPP $CPPFLAGS'
19306 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19307 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19308 cross_compiling=$ac_cv_prog_cxx_cross
19310 cat > conftest.$ac_ext <<EOF
19311 #line 19312 "configure"
19312 #include "confdefs.h"
19313 #include <math.h>
19314 #ifdef HAVE_IEEEFP_H
19315 #include <ieeefp.h>
19316 #endif
19318 int main() {
19319 sqrtl(0);
19320 ; return 0; }
19322 if { (eval echo configure:19323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19323 rm -rf conftest*
19324 glibcpp_cv_func_sqrtl_use=yes
19325 else
19326 echo "configure: failed program was:" >&5
19327 cat conftest.$ac_ext >&5
19328 rm -rf conftest*
19329 glibcpp_cv_func_sqrtl_use=no
19331 rm -f conftest*
19332 ac_ext=c
19333 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19334 ac_cpp='$CPP $CPPFLAGS'
19335 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19336 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19337 cross_compiling=$ac_cv_prog_cc_cross
19343 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19345 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19346 for ac_func in sqrtl
19348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19349 echo "configure:19350: checking for $ac_func" >&5
19350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19351 echo $ac_n "(cached) $ac_c" 1>&6
19352 else
19353 cat > conftest.$ac_ext <<EOF
19354 #line 19355 "configure"
19355 #include "confdefs.h"
19356 /* System header to define __stub macros and hopefully few prototypes,
19357 which can conflict with char $ac_func(); below. */
19358 #include <assert.h>
19359 /* Override any gcc2 internal prototype to avoid an error. */
19360 /* We use char because int might match the return type of a gcc2
19361 builtin and then its argument prototype would still apply. */
19362 char $ac_func();
19364 int main() {
19366 /* The GNU C library defines this for functions which it implements
19367 to always fail with ENOSYS. Some functions are actually named
19368 something starting with __ and the normal name is an alias. */
19369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19370 choke me
19371 #else
19372 $ac_func();
19373 #endif
19375 ; return 0; }
19377 if { (eval echo configure:19378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19378 rm -rf conftest*
19379 eval "ac_cv_func_$ac_func=yes"
19380 else
19381 echo "configure: failed program was:" >&5
19382 cat conftest.$ac_ext >&5
19383 rm -rf conftest*
19384 eval "ac_cv_func_$ac_func=no"
19386 rm -f conftest*
19389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19390 echo "$ac_t""yes" 1>&6
19391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19392 cat >> confdefs.h <<EOF
19393 #define $ac_tr_func 1
19396 else
19397 echo "$ac_t""no" 1>&6
19399 done
19401 else
19403 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19404 echo "configure:19405: checking for _sqrtl declaration" >&5
19405 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19406 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19407 echo $ac_n "(cached) $ac_c" 1>&6
19408 else
19411 ac_ext=C
19412 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19413 ac_cpp='$CXXCPP $CPPFLAGS'
19414 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19415 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19416 cross_compiling=$ac_cv_prog_cxx_cross
19418 cat > conftest.$ac_ext <<EOF
19419 #line 19420 "configure"
19420 #include "confdefs.h"
19421 #include <math.h>
19422 #ifdef HAVE_IEEEFP_H
19423 #include <ieeefp.h>
19424 #endif
19426 int main() {
19427 _sqrtl(0);
19428 ; return 0; }
19430 if { (eval echo configure:19431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19431 rm -rf conftest*
19432 glibcpp_cv_func__sqrtl_use=yes
19433 else
19434 echo "configure: failed program was:" >&5
19435 cat conftest.$ac_ext >&5
19436 rm -rf conftest*
19437 glibcpp_cv_func__sqrtl_use=no
19439 rm -f conftest*
19440 ac_ext=c
19441 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19442 ac_cpp='$CPP $CPPFLAGS'
19443 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19444 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19445 cross_compiling=$ac_cv_prog_cc_cross
19451 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19453 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19454 for ac_func in _sqrtl
19456 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19457 echo "configure:19458: checking for $ac_func" >&5
19458 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19459 echo $ac_n "(cached) $ac_c" 1>&6
19460 else
19461 cat > conftest.$ac_ext <<EOF
19462 #line 19463 "configure"
19463 #include "confdefs.h"
19464 /* System header to define __stub macros and hopefully few prototypes,
19465 which can conflict with char $ac_func(); below. */
19466 #include <assert.h>
19467 /* Override any gcc2 internal prototype to avoid an error. */
19468 /* We use char because int might match the return type of a gcc2
19469 builtin and then its argument prototype would still apply. */
19470 char $ac_func();
19472 int main() {
19474 /* The GNU C library defines this for functions which it implements
19475 to always fail with ENOSYS. Some functions are actually named
19476 something starting with __ and the normal name is an alias. */
19477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19478 choke me
19479 #else
19480 $ac_func();
19481 #endif
19483 ; return 0; }
19485 if { (eval echo configure:19486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19486 rm -rf conftest*
19487 eval "ac_cv_func_$ac_func=yes"
19488 else
19489 echo "configure: failed program was:" >&5
19490 cat conftest.$ac_ext >&5
19491 rm -rf conftest*
19492 eval "ac_cv_func_$ac_func=no"
19494 rm -f conftest*
19497 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19498 echo "$ac_t""yes" 1>&6
19499 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19500 cat >> confdefs.h <<EOF
19501 #define $ac_tr_func 1
19504 else
19505 echo "$ac_t""no" 1>&6
19507 done
19514 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19515 echo "configure:19516: checking for sincosl declaration" >&5
19516 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19517 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19518 echo $ac_n "(cached) $ac_c" 1>&6
19519 else
19522 ac_ext=C
19523 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19524 ac_cpp='$CXXCPP $CPPFLAGS'
19525 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19526 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19527 cross_compiling=$ac_cv_prog_cxx_cross
19529 cat > conftest.$ac_ext <<EOF
19530 #line 19531 "configure"
19531 #include "confdefs.h"
19532 #include <math.h>
19533 int main() {
19534 sincosl(0, 0, 0);
19535 ; return 0; }
19537 if { (eval echo configure:19538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19538 rm -rf conftest*
19539 glibcpp_cv_func_sincosl_use=yes
19540 else
19541 echo "configure: failed program was:" >&5
19542 cat conftest.$ac_ext >&5
19543 rm -rf conftest*
19544 glibcpp_cv_func_sincosl_use=no
19546 rm -f conftest*
19547 ac_ext=c
19548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19549 ac_cpp='$CPP $CPPFLAGS'
19550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19552 cross_compiling=$ac_cv_prog_cc_cross
19558 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19560 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19561 for ac_func in sincosl
19563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19564 echo "configure:19565: checking for $ac_func" >&5
19565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19566 echo $ac_n "(cached) $ac_c" 1>&6
19567 else
19568 cat > conftest.$ac_ext <<EOF
19569 #line 19570 "configure"
19570 #include "confdefs.h"
19571 /* System header to define __stub macros and hopefully few prototypes,
19572 which can conflict with char $ac_func(); below. */
19573 #include <assert.h>
19574 /* Override any gcc2 internal prototype to avoid an error. */
19575 /* We use char because int might match the return type of a gcc2
19576 builtin and then its argument prototype would still apply. */
19577 char $ac_func();
19579 int main() {
19581 /* The GNU C library defines this for functions which it implements
19582 to always fail with ENOSYS. Some functions are actually named
19583 something starting with __ and the normal name is an alias. */
19584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19585 choke me
19586 #else
19587 $ac_func();
19588 #endif
19590 ; return 0; }
19592 if { (eval echo configure:19593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19593 rm -rf conftest*
19594 eval "ac_cv_func_$ac_func=yes"
19595 else
19596 echo "configure: failed program was:" >&5
19597 cat conftest.$ac_ext >&5
19598 rm -rf conftest*
19599 eval "ac_cv_func_$ac_func=no"
19601 rm -f conftest*
19604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19605 echo "$ac_t""yes" 1>&6
19606 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19607 cat >> confdefs.h <<EOF
19608 #define $ac_tr_func 1
19611 else
19612 echo "$ac_t""no" 1>&6
19614 done
19616 else
19618 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19619 echo "configure:19620: checking for _sincosl declaration" >&5
19620 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19621 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19622 echo $ac_n "(cached) $ac_c" 1>&6
19623 else
19626 ac_ext=C
19627 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19628 ac_cpp='$CXXCPP $CPPFLAGS'
19629 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19630 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19631 cross_compiling=$ac_cv_prog_cxx_cross
19633 cat > conftest.$ac_ext <<EOF
19634 #line 19635 "configure"
19635 #include "confdefs.h"
19636 #include <math.h>
19637 int main() {
19638 _sincosl(0, 0, 0);
19639 ; return 0; }
19641 if { (eval echo configure:19642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19642 rm -rf conftest*
19643 glibcpp_cv_func__sincosl_use=yes
19644 else
19645 echo "configure: failed program was:" >&5
19646 cat conftest.$ac_ext >&5
19647 rm -rf conftest*
19648 glibcpp_cv_func__sincosl_use=no
19650 rm -f conftest*
19651 ac_ext=c
19652 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19653 ac_cpp='$CPP $CPPFLAGS'
19654 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19655 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19656 cross_compiling=$ac_cv_prog_cc_cross
19662 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19664 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19665 for ac_func in _sincosl
19667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19668 echo "configure:19669: checking for $ac_func" >&5
19669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19670 echo $ac_n "(cached) $ac_c" 1>&6
19671 else
19672 cat > conftest.$ac_ext <<EOF
19673 #line 19674 "configure"
19674 #include "confdefs.h"
19675 /* System header to define __stub macros and hopefully few prototypes,
19676 which can conflict with char $ac_func(); below. */
19677 #include <assert.h>
19678 /* Override any gcc2 internal prototype to avoid an error. */
19679 /* We use char because int might match the return type of a gcc2
19680 builtin and then its argument prototype would still apply. */
19681 char $ac_func();
19683 int main() {
19685 /* The GNU C library defines this for functions which it implements
19686 to always fail with ENOSYS. Some functions are actually named
19687 something starting with __ and the normal name is an alias. */
19688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19689 choke me
19690 #else
19691 $ac_func();
19692 #endif
19694 ; return 0; }
19696 if { (eval echo configure:19697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19697 rm -rf conftest*
19698 eval "ac_cv_func_$ac_func=yes"
19699 else
19700 echo "configure: failed program was:" >&5
19701 cat conftest.$ac_ext >&5
19702 rm -rf conftest*
19703 eval "ac_cv_func_$ac_func=no"
19705 rm -f conftest*
19708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19709 echo "$ac_t""yes" 1>&6
19710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19711 cat >> confdefs.h <<EOF
19712 #define $ac_tr_func 1
19715 else
19716 echo "$ac_t""no" 1>&6
19718 done
19725 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19726 echo "configure:19727: checking for finitel declaration" >&5
19727 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19728 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19729 echo $ac_n "(cached) $ac_c" 1>&6
19730 else
19733 ac_ext=C
19734 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19735 ac_cpp='$CXXCPP $CPPFLAGS'
19736 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19737 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19738 cross_compiling=$ac_cv_prog_cxx_cross
19740 cat > conftest.$ac_ext <<EOF
19741 #line 19742 "configure"
19742 #include "confdefs.h"
19743 #include <math.h>
19744 #ifdef HAVE_IEEEFP_H
19745 #include <ieeefp.h>
19746 #endif
19748 int main() {
19749 finitel(0);
19750 ; return 0; }
19752 if { (eval echo configure:19753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19753 rm -rf conftest*
19754 glibcpp_cv_func_finitel_use=yes
19755 else
19756 echo "configure: failed program was:" >&5
19757 cat conftest.$ac_ext >&5
19758 rm -rf conftest*
19759 glibcpp_cv_func_finitel_use=no
19761 rm -f conftest*
19762 ac_ext=c
19763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19764 ac_cpp='$CPP $CPPFLAGS'
19765 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19766 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19767 cross_compiling=$ac_cv_prog_cc_cross
19773 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19775 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19776 for ac_func in finitel
19778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19779 echo "configure:19780: checking for $ac_func" >&5
19780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19781 echo $ac_n "(cached) $ac_c" 1>&6
19782 else
19783 cat > conftest.$ac_ext <<EOF
19784 #line 19785 "configure"
19785 #include "confdefs.h"
19786 /* System header to define __stub macros and hopefully few prototypes,
19787 which can conflict with char $ac_func(); below. */
19788 #include <assert.h>
19789 /* Override any gcc2 internal prototype to avoid an error. */
19790 /* We use char because int might match the return type of a gcc2
19791 builtin and then its argument prototype would still apply. */
19792 char $ac_func();
19794 int main() {
19796 /* The GNU C library defines this for functions which it implements
19797 to always fail with ENOSYS. Some functions are actually named
19798 something starting with __ and the normal name is an alias. */
19799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19800 choke me
19801 #else
19802 $ac_func();
19803 #endif
19805 ; return 0; }
19807 if { (eval echo configure:19808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19808 rm -rf conftest*
19809 eval "ac_cv_func_$ac_func=yes"
19810 else
19811 echo "configure: failed program was:" >&5
19812 cat conftest.$ac_ext >&5
19813 rm -rf conftest*
19814 eval "ac_cv_func_$ac_func=no"
19816 rm -f conftest*
19819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19820 echo "$ac_t""yes" 1>&6
19821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19822 cat >> confdefs.h <<EOF
19823 #define $ac_tr_func 1
19826 else
19827 echo "$ac_t""no" 1>&6
19829 done
19831 else
19833 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19834 echo "configure:19835: checking for _finitel declaration" >&5
19835 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19836 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19837 echo $ac_n "(cached) $ac_c" 1>&6
19838 else
19841 ac_ext=C
19842 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19843 ac_cpp='$CXXCPP $CPPFLAGS'
19844 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19845 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19846 cross_compiling=$ac_cv_prog_cxx_cross
19848 cat > conftest.$ac_ext <<EOF
19849 #line 19850 "configure"
19850 #include "confdefs.h"
19851 #include <math.h>
19852 #ifdef HAVE_IEEEFP_H
19853 #include <ieeefp.h>
19854 #endif
19856 int main() {
19857 _finitel(0);
19858 ; return 0; }
19860 if { (eval echo configure:19861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19861 rm -rf conftest*
19862 glibcpp_cv_func__finitel_use=yes
19863 else
19864 echo "configure: failed program was:" >&5
19865 cat conftest.$ac_ext >&5
19866 rm -rf conftest*
19867 glibcpp_cv_func__finitel_use=no
19869 rm -f conftest*
19870 ac_ext=c
19871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19872 ac_cpp='$CPP $CPPFLAGS'
19873 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19874 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19875 cross_compiling=$ac_cv_prog_cc_cross
19881 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19883 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19884 for ac_func in _finitel
19886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19887 echo "configure:19888: checking for $ac_func" >&5
19888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19889 echo $ac_n "(cached) $ac_c" 1>&6
19890 else
19891 cat > conftest.$ac_ext <<EOF
19892 #line 19893 "configure"
19893 #include "confdefs.h"
19894 /* System header to define __stub macros and hopefully few prototypes,
19895 which can conflict with char $ac_func(); below. */
19896 #include <assert.h>
19897 /* Override any gcc2 internal prototype to avoid an error. */
19898 /* We use char because int might match the return type of a gcc2
19899 builtin and then its argument prototype would still apply. */
19900 char $ac_func();
19902 int main() {
19904 /* The GNU C library defines this for functions which it implements
19905 to always fail with ENOSYS. Some functions are actually named
19906 something starting with __ and the normal name is an alias. */
19907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19908 choke me
19909 #else
19910 $ac_func();
19911 #endif
19913 ; return 0; }
19915 if { (eval echo configure:19916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19916 rm -rf conftest*
19917 eval "ac_cv_func_$ac_func=yes"
19918 else
19919 echo "configure: failed program was:" >&5
19920 cat conftest.$ac_ext >&5
19921 rm -rf conftest*
19922 eval "ac_cv_func_$ac_func=no"
19924 rm -f conftest*
19927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19928 echo "$ac_t""yes" 1>&6
19929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19930 cat >> confdefs.h <<EOF
19931 #define $ac_tr_func 1
19934 else
19935 echo "$ac_t""no" 1>&6
19937 done
19945 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19946 echo "configure:19947: checking for _float trig functions" >&5
19947 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19948 echo $ac_n "(cached) $ac_c" 1>&6
19949 else
19952 ac_ext=C
19953 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19954 ac_cpp='$CXXCPP $CPPFLAGS'
19955 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19956 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19957 cross_compiling=$ac_cv_prog_cxx_cross
19959 cat > conftest.$ac_ext <<EOF
19960 #line 19961 "configure"
19961 #include "confdefs.h"
19962 #include <math.h>
19963 int main() {
19964 `for x in _acosf _asinf _atanf \
19965 _cosf _sinf _tanf \
19966 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
19967 ; return 0; }
19969 if { (eval echo configure:19970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19970 rm -rf conftest*
19971 glibcpp_cv_func__float_trig_use=yes
19972 else
19973 echo "configure: failed program was:" >&5
19974 cat conftest.$ac_ext >&5
19975 rm -rf conftest*
19976 glibcpp_cv_func__float_trig_use=no
19978 rm -f conftest*
19979 ac_ext=c
19980 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19981 ac_cpp='$CPP $CPPFLAGS'
19982 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19983 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19984 cross_compiling=$ac_cv_prog_cc_cross
19988 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
19989 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
19990 for ac_func in _acosf _asinf _atanf \
19991 _cosf _sinf _tanf \
19992 _coshf _sinhf _tanhf
19994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19995 echo "configure:19996: checking for $ac_func" >&5
19996 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19997 echo $ac_n "(cached) $ac_c" 1>&6
19998 else
19999 cat > conftest.$ac_ext <<EOF
20000 #line 20001 "configure"
20001 #include "confdefs.h"
20002 /* System header to define __stub macros and hopefully few prototypes,
20003 which can conflict with char $ac_func(); below. */
20004 #include <assert.h>
20005 /* Override any gcc2 internal prototype to avoid an error. */
20006 /* We use char because int might match the return type of a gcc2
20007 builtin and then its argument prototype would still apply. */
20008 char $ac_func();
20010 int main() {
20012 /* The GNU C library defines this for functions which it implements
20013 to always fail with ENOSYS. Some functions are actually named
20014 something starting with __ and the normal name is an alias. */
20015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20016 choke me
20017 #else
20018 $ac_func();
20019 #endif
20021 ; return 0; }
20023 if { (eval echo configure:20024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20024 rm -rf conftest*
20025 eval "ac_cv_func_$ac_func=yes"
20026 else
20027 echo "configure: failed program was:" >&5
20028 cat conftest.$ac_ext >&5
20029 rm -rf conftest*
20030 eval "ac_cv_func_$ac_func=no"
20032 rm -f conftest*
20035 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20036 echo "$ac_t""yes" 1>&6
20037 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20038 cat >> confdefs.h <<EOF
20039 #define $ac_tr_func 1
20042 else
20043 echo "$ac_t""no" 1>&6
20045 done
20050 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20051 echo "configure:20052: checking for _float round functions" >&5
20052 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20053 echo $ac_n "(cached) $ac_c" 1>&6
20054 else
20057 ac_ext=C
20058 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20059 ac_cpp='$CXXCPP $CPPFLAGS'
20060 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20061 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20062 cross_compiling=$ac_cv_prog_cxx_cross
20064 cat > conftest.$ac_ext <<EOF
20065 #line 20066 "configure"
20066 #include "confdefs.h"
20067 #include <math.h>
20068 int main() {
20069 `for x in _ceilf _floorf; do echo "$x (0);"; done`
20070 ; return 0; }
20072 if { (eval echo configure:20073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20073 rm -rf conftest*
20074 glibcpp_cv_func__float_round_use=yes
20075 else
20076 echo "configure: failed program was:" >&5
20077 cat conftest.$ac_ext >&5
20078 rm -rf conftest*
20079 glibcpp_cv_func__float_round_use=no
20081 rm -f conftest*
20082 ac_ext=c
20083 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20084 ac_cpp='$CPP $CPPFLAGS'
20085 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20086 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20087 cross_compiling=$ac_cv_prog_cc_cross
20091 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20092 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20093 for ac_func in _ceilf _floorf
20095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20096 echo "configure:20097: checking for $ac_func" >&5
20097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20098 echo $ac_n "(cached) $ac_c" 1>&6
20099 else
20100 cat > conftest.$ac_ext <<EOF
20101 #line 20102 "configure"
20102 #include "confdefs.h"
20103 /* System header to define __stub macros and hopefully few prototypes,
20104 which can conflict with char $ac_func(); below. */
20105 #include <assert.h>
20106 /* Override any gcc2 internal prototype to avoid an error. */
20107 /* We use char because int might match the return type of a gcc2
20108 builtin and then its argument prototype would still apply. */
20109 char $ac_func();
20111 int main() {
20113 /* The GNU C library defines this for functions which it implements
20114 to always fail with ENOSYS. Some functions are actually named
20115 something starting with __ and the normal name is an alias. */
20116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20117 choke me
20118 #else
20119 $ac_func();
20120 #endif
20122 ; return 0; }
20124 if { (eval echo configure:20125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20125 rm -rf conftest*
20126 eval "ac_cv_func_$ac_func=yes"
20127 else
20128 echo "configure: failed program was:" >&5
20129 cat conftest.$ac_ext >&5
20130 rm -rf conftest*
20131 eval "ac_cv_func_$ac_func=no"
20133 rm -f conftest*
20136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20137 echo "$ac_t""yes" 1>&6
20138 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20139 cat >> confdefs.h <<EOF
20140 #define $ac_tr_func 1
20143 else
20144 echo "$ac_t""no" 1>&6
20146 done
20152 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20153 echo "configure:20154: checking for _long double trig functions" >&5
20154 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20155 echo $ac_n "(cached) $ac_c" 1>&6
20156 else
20159 ac_ext=C
20160 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20161 ac_cpp='$CXXCPP $CPPFLAGS'
20162 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20163 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20164 cross_compiling=$ac_cv_prog_cxx_cross
20166 cat > conftest.$ac_ext <<EOF
20167 #line 20168 "configure"
20168 #include "confdefs.h"
20169 #include <math.h>
20170 int main() {
20171 `for x in _acosl _asinl _atanl \
20172 _cosl _sinl _tanl \
20173 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
20174 ; return 0; }
20176 if { (eval echo configure:20177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20177 rm -rf conftest*
20178 glibcpp_cv_func__long_double_trig_use=yes
20179 else
20180 echo "configure: failed program was:" >&5
20181 cat conftest.$ac_ext >&5
20182 rm -rf conftest*
20183 glibcpp_cv_func__long_double_trig_use=no
20185 rm -f conftest*
20186 ac_ext=c
20187 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20188 ac_cpp='$CPP $CPPFLAGS'
20189 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20190 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20191 cross_compiling=$ac_cv_prog_cc_cross
20195 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20196 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20197 for ac_func in _acosl _asinl _atanl \
20198 _cosl _sinl _tanl \
20199 _coshl _sinhl _tanhl
20201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20202 echo "configure:20203: checking for $ac_func" >&5
20203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20204 echo $ac_n "(cached) $ac_c" 1>&6
20205 else
20206 cat > conftest.$ac_ext <<EOF
20207 #line 20208 "configure"
20208 #include "confdefs.h"
20209 /* System header to define __stub macros and hopefully few prototypes,
20210 which can conflict with char $ac_func(); below. */
20211 #include <assert.h>
20212 /* Override any gcc2 internal prototype to avoid an error. */
20213 /* We use char because int might match the return type of a gcc2
20214 builtin and then its argument prototype would still apply. */
20215 char $ac_func();
20217 int main() {
20219 /* The GNU C library defines this for functions which it implements
20220 to always fail with ENOSYS. Some functions are actually named
20221 something starting with __ and the normal name is an alias. */
20222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20223 choke me
20224 #else
20225 $ac_func();
20226 #endif
20228 ; return 0; }
20230 if { (eval echo configure:20231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20231 rm -rf conftest*
20232 eval "ac_cv_func_$ac_func=yes"
20233 else
20234 echo "configure: failed program was:" >&5
20235 cat conftest.$ac_ext >&5
20236 rm -rf conftest*
20237 eval "ac_cv_func_$ac_func=no"
20239 rm -f conftest*
20242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20243 echo "$ac_t""yes" 1>&6
20244 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20245 cat >> confdefs.h <<EOF
20246 #define $ac_tr_func 1
20249 else
20250 echo "$ac_t""no" 1>&6
20252 done
20257 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20258 echo "configure:20259: checking for _long double round functions" >&5
20259 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20260 echo $ac_n "(cached) $ac_c" 1>&6
20261 else
20264 ac_ext=C
20265 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20266 ac_cpp='$CXXCPP $CPPFLAGS'
20267 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20268 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20269 cross_compiling=$ac_cv_prog_cxx_cross
20271 cat > conftest.$ac_ext <<EOF
20272 #line 20273 "configure"
20273 #include "confdefs.h"
20274 #include <math.h>
20275 int main() {
20276 `for x in _ceill _floorl; do echo "$x (0);"; done`
20277 ; return 0; }
20279 if { (eval echo configure:20280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20280 rm -rf conftest*
20281 glibcpp_cv_func__long_double_round_use=yes
20282 else
20283 echo "configure: failed program was:" >&5
20284 cat conftest.$ac_ext >&5
20285 rm -rf conftest*
20286 glibcpp_cv_func__long_double_round_use=no
20288 rm -f conftest*
20289 ac_ext=c
20290 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20291 ac_cpp='$CPP $CPPFLAGS'
20292 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20293 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20294 cross_compiling=$ac_cv_prog_cc_cross
20298 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20299 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20300 for ac_func in _ceill _floorl
20302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20303 echo "configure:20304: checking for $ac_func" >&5
20304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20305 echo $ac_n "(cached) $ac_c" 1>&6
20306 else
20307 cat > conftest.$ac_ext <<EOF
20308 #line 20309 "configure"
20309 #include "confdefs.h"
20310 /* System header to define __stub macros and hopefully few prototypes,
20311 which can conflict with char $ac_func(); below. */
20312 #include <assert.h>
20313 /* Override any gcc2 internal prototype to avoid an error. */
20314 /* We use char because int might match the return type of a gcc2
20315 builtin and then its argument prototype would still apply. */
20316 char $ac_func();
20318 int main() {
20320 /* The GNU C library defines this for functions which it implements
20321 to always fail with ENOSYS. Some functions are actually named
20322 something starting with __ and the normal name is an alias. */
20323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20324 choke me
20325 #else
20326 $ac_func();
20327 #endif
20329 ; return 0; }
20331 if { (eval echo configure:20332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20332 rm -rf conftest*
20333 eval "ac_cv_func_$ac_func=yes"
20334 else
20335 echo "configure: failed program was:" >&5
20336 cat conftest.$ac_ext >&5
20337 rm -rf conftest*
20338 eval "ac_cv_func_$ac_func=no"
20340 rm -f conftest*
20343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20344 echo "$ac_t""yes" 1>&6
20345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20346 cat >> confdefs.h <<EOF
20347 #define $ac_tr_func 1
20350 else
20351 echo "$ac_t""no" 1>&6
20353 done
20358 LIBS="$ac_save_LIBS"
20359 CXXFLAGS="$ac_save_CXXFLAGS"
20362 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
20363 echo "configure:20364: checking for main in -lm" >&5
20364 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
20365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20366 echo $ac_n "(cached) $ac_c" 1>&6
20367 else
20368 ac_save_LIBS="$LIBS"
20369 LIBS="-lm $LIBS"
20370 cat > conftest.$ac_ext <<EOF
20371 #line 20372 "configure"
20372 #include "confdefs.h"
20374 int main() {
20375 main()
20376 ; return 0; }
20378 if { (eval echo configure:20379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20379 rm -rf conftest*
20380 eval "ac_cv_lib_$ac_lib_var=yes"
20381 else
20382 echo "configure: failed program was:" >&5
20383 cat conftest.$ac_ext >&5
20384 rm -rf conftest*
20385 eval "ac_cv_lib_$ac_lib_var=no"
20387 rm -f conftest*
20388 LIBS="$ac_save_LIBS"
20391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20392 echo "$ac_t""yes" 1>&6
20393 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
20394 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
20395 cat >> confdefs.h <<EOF
20396 #define $ac_tr_lib 1
20399 LIBS="-lm $LIBS"
20401 else
20402 echo "$ac_t""no" 1>&6
20405 for ac_func in nan copysignf
20407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20408 echo "configure:20409: checking for $ac_func" >&5
20409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20410 echo $ac_n "(cached) $ac_c" 1>&6
20411 else
20412 cat > conftest.$ac_ext <<EOF
20413 #line 20414 "configure"
20414 #include "confdefs.h"
20415 /* System header to define __stub macros and hopefully few prototypes,
20416 which can conflict with char $ac_func(); below. */
20417 #include <assert.h>
20418 /* Override any gcc2 internal prototype to avoid an error. */
20419 /* We use char because int might match the return type of a gcc2
20420 builtin and then its argument prototype would still apply. */
20421 char $ac_func();
20423 int main() {
20425 /* The GNU C library defines this for functions which it implements
20426 to always fail with ENOSYS. Some functions are actually named
20427 something starting with __ and the normal name is an alias. */
20428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20429 choke me
20430 #else
20431 $ac_func();
20432 #endif
20434 ; return 0; }
20436 if { (eval echo configure:20437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20437 rm -rf conftest*
20438 eval "ac_cv_func_$ac_func=yes"
20439 else
20440 echo "configure: failed program was:" >&5
20441 cat conftest.$ac_ext >&5
20442 rm -rf conftest*
20443 eval "ac_cv_func_$ac_func=no"
20445 rm -f conftest*
20448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20449 echo "$ac_t""yes" 1>&6
20450 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20451 cat >> confdefs.h <<EOF
20452 #define $ac_tr_func 1
20455 else
20456 echo "$ac_t""no" 1>&6
20457 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
20459 done
20462 for ac_func in __signbit
20464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20465 echo "configure:20466: checking for $ac_func" >&5
20466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20467 echo $ac_n "(cached) $ac_c" 1>&6
20468 else
20469 cat > conftest.$ac_ext <<EOF
20470 #line 20471 "configure"
20471 #include "confdefs.h"
20472 /* System header to define __stub macros and hopefully few prototypes,
20473 which can conflict with char $ac_func(); below. */
20474 #include <assert.h>
20475 /* Override any gcc2 internal prototype to avoid an error. */
20476 /* We use char because int might match the return type of a gcc2
20477 builtin and then its argument prototype would still apply. */
20478 char $ac_func();
20480 int main() {
20482 /* The GNU C library defines this for functions which it implements
20483 to always fail with ENOSYS. Some functions are actually named
20484 something starting with __ and the normal name is an alias. */
20485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20486 choke me
20487 #else
20488 $ac_func();
20489 #endif
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 eval "ac_cv_func_$ac_func=yes"
20496 else
20497 echo "configure: failed program was:" >&5
20498 cat conftest.$ac_ext >&5
20499 rm -rf conftest*
20500 eval "ac_cv_func_$ac_func=no"
20502 rm -f conftest*
20505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20506 echo "$ac_t""yes" 1>&6
20507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20508 cat >> confdefs.h <<EOF
20509 #define $ac_tr_func 1
20512 else
20513 echo "$ac_t""no" 1>&6
20514 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
20516 done
20518 for ac_func in __signbitf
20520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20521 echo "configure:20522: checking for $ac_func" >&5
20522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20523 echo $ac_n "(cached) $ac_c" 1>&6
20524 else
20525 cat > conftest.$ac_ext <<EOF
20526 #line 20527 "configure"
20527 #include "confdefs.h"
20528 /* System header to define __stub macros and hopefully few prototypes,
20529 which can conflict with char $ac_func(); below. */
20530 #include <assert.h>
20531 /* Override any gcc2 internal prototype to avoid an error. */
20532 /* We use char because int might match the return type of a gcc2
20533 builtin and then its argument prototype would still apply. */
20534 char $ac_func();
20536 int main() {
20538 /* The GNU C library defines this for functions which it implements
20539 to always fail with ENOSYS. Some functions are actually named
20540 something starting with __ and the normal name is an alias. */
20541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20542 choke me
20543 #else
20544 $ac_func();
20545 #endif
20547 ; return 0; }
20549 if { (eval echo configure:20550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20550 rm -rf conftest*
20551 eval "ac_cv_func_$ac_func=yes"
20552 else
20553 echo "configure: failed program was:" >&5
20554 cat conftest.$ac_ext >&5
20555 rm -rf conftest*
20556 eval "ac_cv_func_$ac_func=no"
20558 rm -f conftest*
20561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20562 echo "$ac_t""yes" 1>&6
20563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20564 cat >> confdefs.h <<EOF
20565 #define $ac_tr_func 1
20568 else
20569 echo "$ac_t""no" 1>&6
20570 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
20572 done
20575 if test x$ac_cv_func_copysignl = x"yes"; then
20576 for ac_func in __signbitl
20578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20579 echo "configure:20580: checking for $ac_func" >&5
20580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20581 echo $ac_n "(cached) $ac_c" 1>&6
20582 else
20583 cat > conftest.$ac_ext <<EOF
20584 #line 20585 "configure"
20585 #include "confdefs.h"
20586 /* System header to define __stub macros and hopefully few prototypes,
20587 which can conflict with char $ac_func(); below. */
20588 #include <assert.h>
20589 /* Override any gcc2 internal prototype to avoid an error. */
20590 /* We use char because int might match the return type of a gcc2
20591 builtin and then its argument prototype would still apply. */
20592 char $ac_func();
20594 int main() {
20596 /* The GNU C library defines this for functions which it implements
20597 to always fail with ENOSYS. Some functions are actually named
20598 something starting with __ and the normal name is an alias. */
20599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20600 choke me
20601 #else
20602 $ac_func();
20603 #endif
20605 ; return 0; }
20607 if { (eval echo configure:20608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20608 rm -rf conftest*
20609 eval "ac_cv_func_$ac_func=yes"
20610 else
20611 echo "configure: failed program was:" >&5
20612 cat conftest.$ac_ext >&5
20613 rm -rf conftest*
20614 eval "ac_cv_func_$ac_func=no"
20616 rm -f conftest*
20619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20620 echo "$ac_t""yes" 1>&6
20621 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20622 cat >> confdefs.h <<EOF
20623 #define $ac_tr_func 1
20626 else
20627 echo "$ac_t""no" 1>&6
20628 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
20630 done
20638 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
20639 echo "configure:20640: checking for mbstate_t" >&5
20640 cat > conftest.$ac_ext <<EOF
20641 #line 20642 "configure"
20642 #include "confdefs.h"
20643 #include <wchar.h>
20644 int main() {
20645 mbstate_t teststate;
20646 ; return 0; }
20648 if { (eval echo configure:20649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20649 rm -rf conftest*
20650 have_mbstate_t=yes
20651 else
20652 echo "configure: failed program was:" >&5
20653 cat conftest.$ac_ext >&5
20654 rm -rf conftest*
20655 have_mbstate_t=no
20657 rm -f conftest*
20658 echo "$ac_t""$have_mbstate_t" 1>&6
20659 if test x"$have_mbstate_t" = xyes; then
20660 cat >> confdefs.h <<\EOF
20661 #define HAVE_MBSTATE_T 1
20666 for ac_hdr in wchar.h
20668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20670 echo "configure:20671: checking for $ac_hdr" >&5
20671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20672 echo $ac_n "(cached) $ac_c" 1>&6
20673 else
20674 cat > conftest.$ac_ext <<EOF
20675 #line 20676 "configure"
20676 #include "confdefs.h"
20677 #include <$ac_hdr>
20679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20680 { (eval echo configure:20681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20682 if test -z "$ac_err"; then
20683 rm -rf conftest*
20684 eval "ac_cv_header_$ac_safe=yes"
20685 else
20686 echo "$ac_err" >&5
20687 echo "configure: failed program was:" >&5
20688 cat conftest.$ac_ext >&5
20689 rm -rf conftest*
20690 eval "ac_cv_header_$ac_safe=no"
20692 rm -f conftest*
20694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20695 echo "$ac_t""yes" 1>&6
20696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20697 cat >> confdefs.h <<EOF
20698 #define $ac_tr_hdr 1
20700 ac_has_wchar_h=yes
20701 else
20702 echo "$ac_t""no" 1>&6
20703 ac_has_wchar_h=no
20705 done
20707 for ac_hdr in wctype.h
20709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20711 echo "configure:20712: checking for $ac_hdr" >&5
20712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20713 echo $ac_n "(cached) $ac_c" 1>&6
20714 else
20715 cat > conftest.$ac_ext <<EOF
20716 #line 20717 "configure"
20717 #include "confdefs.h"
20718 #include <$ac_hdr>
20720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20721 { (eval echo configure:20722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20723 if test -z "$ac_err"; then
20724 rm -rf conftest*
20725 eval "ac_cv_header_$ac_safe=yes"
20726 else
20727 echo "$ac_err" >&5
20728 echo "configure: failed program was:" >&5
20729 cat conftest.$ac_ext >&5
20730 rm -rf conftest*
20731 eval "ac_cv_header_$ac_safe=no"
20733 rm -f conftest*
20735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20736 echo "$ac_t""yes" 1>&6
20737 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20738 cat >> confdefs.h <<EOF
20739 #define $ac_tr_hdr 1
20741 ac_has_wctype_h=yes
20742 else
20743 echo "$ac_t""no" 1>&6
20744 ac_has_wctype_h=no
20746 done
20749 if test x"$ac_has_wchar_h" = xyes &&
20750 test x"$ac_has_wctype_h" = xyes &&
20751 test x"$enable_c_mbchar" != xno; then
20753 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
20754 echo "configure:20755: checking for WCHAR_MIN and WCHAR_MAX" >&5
20755 cat > conftest.$ac_ext <<EOF
20756 #line 20757 "configure"
20757 #include "confdefs.h"
20758 #include <wchar.h>
20759 int main() {
20760 int i = WCHAR_MIN; int j = WCHAR_MAX;
20761 ; return 0; }
20763 if { (eval echo configure:20764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20764 rm -rf conftest*
20765 has_wchar_minmax=yes
20766 else
20767 echo "configure: failed program was:" >&5
20768 cat conftest.$ac_ext >&5
20769 rm -rf conftest*
20770 has_wchar_minmax=no
20772 rm -f conftest*
20773 echo "$ac_t""$has_wchar_minmax" 1>&6
20775 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
20776 echo "configure:20777: checking for WEOF" >&5
20777 cat > conftest.$ac_ext <<EOF
20778 #line 20779 "configure"
20779 #include "confdefs.h"
20781 #include <wchar.h>
20782 #include <stddef.h>
20783 int main() {
20784 wint_t i = WEOF;
20785 ; return 0; }
20787 if { (eval echo configure:20788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20788 rm -rf conftest*
20789 has_weof=yes
20790 else
20791 echo "configure: failed program was:" >&5
20792 cat conftest.$ac_ext >&5
20793 rm -rf conftest*
20794 has_weof=no
20796 rm -f conftest*
20797 echo "$ac_t""$has_weof" 1>&6
20799 ac_wfuncs=yes
20800 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
20802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20803 echo "configure:20804: checking for $ac_func" >&5
20804 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20805 echo $ac_n "(cached) $ac_c" 1>&6
20806 else
20807 cat > conftest.$ac_ext <<EOF
20808 #line 20809 "configure"
20809 #include "confdefs.h"
20810 /* System header to define __stub macros and hopefully few prototypes,
20811 which can conflict with char $ac_func(); below. */
20812 #include <assert.h>
20813 /* Override any gcc2 internal prototype to avoid an error. */
20814 /* We use char because int might match the return type of a gcc2
20815 builtin and then its argument prototype would still apply. */
20816 char $ac_func();
20818 int main() {
20820 /* The GNU C library defines this for functions which it implements
20821 to always fail with ENOSYS. Some functions are actually named
20822 something starting with __ and the normal name is an alias. */
20823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20824 choke me
20825 #else
20826 $ac_func();
20827 #endif
20829 ; return 0; }
20831 if { (eval echo configure:20832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20832 rm -rf conftest*
20833 eval "ac_cv_func_$ac_func=yes"
20834 else
20835 echo "configure: failed program was:" >&5
20836 cat conftest.$ac_ext >&5
20837 rm -rf conftest*
20838 eval "ac_cv_func_$ac_func=no"
20840 rm -f conftest*
20843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20844 echo "$ac_t""yes" 1>&6
20845 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20846 cat >> confdefs.h <<EOF
20847 #define $ac_tr_func 1
20850 else
20851 echo "$ac_t""no" 1>&6
20853 ac_wfuncs=no
20855 done
20858 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
20859 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
20860 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
20861 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
20862 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
20863 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
20865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20866 echo "configure:20867: checking for $ac_func" >&5
20867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20868 echo $ac_n "(cached) $ac_c" 1>&6
20869 else
20870 cat > conftest.$ac_ext <<EOF
20871 #line 20872 "configure"
20872 #include "confdefs.h"
20873 /* System header to define __stub macros and hopefully few prototypes,
20874 which can conflict with char $ac_func(); below. */
20875 #include <assert.h>
20876 /* Override any gcc2 internal prototype to avoid an error. */
20877 /* We use char because int might match the return type of a gcc2
20878 builtin and then its argument prototype would still apply. */
20879 char $ac_func();
20881 int main() {
20883 /* The GNU C library defines this for functions which it implements
20884 to always fail with ENOSYS. Some functions are actually named
20885 something starting with __ and the normal name is an alias. */
20886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20887 choke me
20888 #else
20889 $ac_func();
20890 #endif
20892 ; return 0; }
20894 if { (eval echo configure:20895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20895 rm -rf conftest*
20896 eval "ac_cv_func_$ac_func=yes"
20897 else
20898 echo "configure: failed program was:" >&5
20899 cat conftest.$ac_ext >&5
20900 rm -rf conftest*
20901 eval "ac_cv_func_$ac_func=no"
20903 rm -f conftest*
20906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20907 echo "$ac_t""yes" 1>&6
20908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20909 cat >> confdefs.h <<EOF
20910 #define $ac_tr_func 1
20913 else
20914 echo "$ac_t""no" 1>&6
20916 ac_wfuncs=no
20918 done
20921 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
20922 echo "configure:20923: checking for ISO C99 wchar_t support" >&5
20923 if test x"$has_weof" = xyes &&
20924 test x"$has_wchar_minmax" = xyes &&
20925 test x"$ac_wfuncs" = xyes; then
20926 ac_isoC99_wchar_t=yes
20927 else
20928 ac_isoC99_wchar_t=no
20930 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
20932 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20933 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20934 echo "configure:20935: checking for iconv.h" >&5
20935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20936 echo $ac_n "(cached) $ac_c" 1>&6
20937 else
20938 cat > conftest.$ac_ext <<EOF
20939 #line 20940 "configure"
20940 #include "confdefs.h"
20941 #include <iconv.h>
20943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20944 { (eval echo configure:20945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20946 if test -z "$ac_err"; then
20947 rm -rf conftest*
20948 eval "ac_cv_header_$ac_safe=yes"
20949 else
20950 echo "$ac_err" >&5
20951 echo "configure: failed program was:" >&5
20952 cat conftest.$ac_ext >&5
20953 rm -rf conftest*
20954 eval "ac_cv_header_$ac_safe=no"
20956 rm -f conftest*
20958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20959 echo "$ac_t""yes" 1>&6
20960 ac_has_iconv_h=yes
20961 else
20962 echo "$ac_t""no" 1>&6
20963 ac_has_iconv_h=no
20966 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
20967 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
20968 echo "configure:20969: checking for langinfo.h" >&5
20969 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20970 echo $ac_n "(cached) $ac_c" 1>&6
20971 else
20972 cat > conftest.$ac_ext <<EOF
20973 #line 20974 "configure"
20974 #include "confdefs.h"
20975 #include <langinfo.h>
20977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20978 { (eval echo configure:20979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20980 if test -z "$ac_err"; then
20981 rm -rf conftest*
20982 eval "ac_cv_header_$ac_safe=yes"
20983 else
20984 echo "$ac_err" >&5
20985 echo "configure: failed program was:" >&5
20986 cat conftest.$ac_ext >&5
20987 rm -rf conftest*
20988 eval "ac_cv_header_$ac_safe=no"
20990 rm -f conftest*
20992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20993 echo "$ac_t""yes" 1>&6
20994 ac_has_langinfo_h=yes
20995 else
20996 echo "$ac_t""no" 1>&6
20997 ac_has_langinfo_h=no
21001 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
21002 echo "configure:21003: checking for iconv in -liconv" >&5
21003 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
21004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21005 echo $ac_n "(cached) $ac_c" 1>&6
21006 else
21007 ac_save_LIBS="$LIBS"
21008 LIBS="-liconv $LIBS"
21009 cat > conftest.$ac_ext <<EOF
21010 #line 21011 "configure"
21011 #include "confdefs.h"
21012 /* Override any gcc2 internal prototype to avoid an error. */
21013 /* We use char because int might match the return type of a gcc2
21014 builtin and then its argument prototype would still apply. */
21015 char iconv();
21017 int main() {
21018 iconv()
21019 ; return 0; }
21021 if { (eval echo configure:21022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21022 rm -rf conftest*
21023 eval "ac_cv_lib_$ac_lib_var=yes"
21024 else
21025 echo "configure: failed program was:" >&5
21026 cat conftest.$ac_ext >&5
21027 rm -rf conftest*
21028 eval "ac_cv_lib_$ac_lib_var=no"
21030 rm -f conftest*
21031 LIBS="$ac_save_LIBS"
21034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21035 echo "$ac_t""yes" 1>&6
21036 libiconv="-liconv"
21037 else
21038 echo "$ac_t""no" 1>&6
21041 ac_save_LIBS="$LIBS"
21042 LIBS="$LIBS $libiconv"
21044 for ac_func in iconv_open iconv_close iconv nl_langinfo
21046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21047 echo "configure:21048: checking for $ac_func" >&5
21048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21049 echo $ac_n "(cached) $ac_c" 1>&6
21050 else
21051 cat > conftest.$ac_ext <<EOF
21052 #line 21053 "configure"
21053 #include "confdefs.h"
21054 /* System header to define __stub macros and hopefully few prototypes,
21055 which can conflict with char $ac_func(); below. */
21056 #include <assert.h>
21057 /* Override any gcc2 internal prototype to avoid an error. */
21058 /* We use char because int might match the return type of a gcc2
21059 builtin and then its argument prototype would still apply. */
21060 char $ac_func();
21062 int main() {
21064 /* The GNU C library defines this for functions which it implements
21065 to always fail with ENOSYS. Some functions are actually named
21066 something starting with __ and the normal name is an alias. */
21067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21068 choke me
21069 #else
21070 $ac_func();
21071 #endif
21073 ; return 0; }
21075 if { (eval echo configure:21076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21076 rm -rf conftest*
21077 eval "ac_cv_func_$ac_func=yes"
21078 else
21079 echo "configure: failed program was:" >&5
21080 cat conftest.$ac_ext >&5
21081 rm -rf conftest*
21082 eval "ac_cv_func_$ac_func=no"
21084 rm -f conftest*
21087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21088 echo "$ac_t""yes" 1>&6
21089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21090 cat >> confdefs.h <<EOF
21091 #define $ac_tr_func 1
21094 ac_XPG2funcs=yes
21095 else
21096 echo "$ac_t""no" 1>&6
21097 ac_XPG2funcs=no
21099 done
21102 LIBS="$ac_save_LIBS"
21104 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
21105 echo "configure:21106: checking for XPG2 wchar_t support" >&5
21106 if test x"$ac_has_iconv_h" = xyes &&
21107 test x"$ac_has_langinfo_h" = xyes &&
21108 test x"$ac_XPG2funcs" = xyes; then
21109 ac_XPG2_wchar_t=yes
21110 else
21111 ac_XPG2_wchar_t=no
21113 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
21115 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
21116 echo "configure:21117: checking for enabled wchar_t specializations" >&5
21117 if test x"$ac_isoC99_wchar_t" = xyes &&
21118 test x"$ac_XPG2_wchar_t" = xyes; then
21119 cat >> confdefs.h <<\EOF
21120 #define _GLIBCPP_USE_WCHAR_T 1
21123 echo "$ac_t"""yes"" 1>&6
21124 else
21125 echo "$ac_t"""no"" 1>&6
21127 else
21128 echo "configure: warning: wchar_t support disabled." 1>&2
21132 ac_test_CXXFLAGS="${CXXFLAGS+set}"
21133 ac_save_CXXFLAGS="$CXXFLAGS"
21134 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
21137 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
21138 echo "configure:21139: checking for strtold declaration" >&5
21139 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
21140 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
21141 echo $ac_n "(cached) $ac_c" 1>&6
21142 else
21145 ac_ext=C
21146 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21147 ac_cpp='$CXXCPP $CPPFLAGS'
21148 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21149 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21150 cross_compiling=$ac_cv_prog_cxx_cross
21152 cat > conftest.$ac_ext <<EOF
21153 #line 21154 "configure"
21154 #include "confdefs.h"
21155 #include <stdlib.h>
21156 int main() {
21157 strtold(0, 0);
21158 ; return 0; }
21160 if { (eval echo configure:21161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21161 rm -rf conftest*
21162 glibcpp_cv_func_strtold_use=yes
21163 else
21164 echo "configure: failed program was:" >&5
21165 cat conftest.$ac_ext >&5
21166 rm -rf conftest*
21167 glibcpp_cv_func_strtold_use=no
21169 rm -f conftest*
21170 ac_ext=c
21171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21172 ac_cpp='$CPP $CPPFLAGS'
21173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21174 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21175 cross_compiling=$ac_cv_prog_cc_cross
21181 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
21182 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
21183 for ac_func in strtold
21185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21186 echo "configure:21187: checking for $ac_func" >&5
21187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21188 echo $ac_n "(cached) $ac_c" 1>&6
21189 else
21190 cat > conftest.$ac_ext <<EOF
21191 #line 21192 "configure"
21192 #include "confdefs.h"
21193 /* System header to define __stub macros and hopefully few prototypes,
21194 which can conflict with char $ac_func(); below. */
21195 #include <assert.h>
21196 /* Override any gcc2 internal prototype to avoid an error. */
21197 /* We use char because int might match the return type of a gcc2
21198 builtin and then its argument prototype would still apply. */
21199 char $ac_func();
21201 int main() {
21203 /* The GNU C library defines this for functions which it implements
21204 to always fail with ENOSYS. Some functions are actually named
21205 something starting with __ and the normal name is an alias. */
21206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21207 choke me
21208 #else
21209 $ac_func();
21210 #endif
21212 ; return 0; }
21214 if { (eval echo configure:21215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21215 rm -rf conftest*
21216 eval "ac_cv_func_$ac_func=yes"
21217 else
21218 echo "configure: failed program was:" >&5
21219 cat conftest.$ac_ext >&5
21220 rm -rf conftest*
21221 eval "ac_cv_func_$ac_func=no"
21223 rm -f conftest*
21226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21227 echo "$ac_t""yes" 1>&6
21228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21229 cat >> confdefs.h <<EOF
21230 #define $ac_tr_func 1
21233 else
21234 echo "$ac_t""no" 1>&6
21236 done
21241 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
21242 echo "configure:21243: checking for strtof declaration" >&5
21243 if test x${glibcpp_cv_func_strtof_use+set} != xset; then
21244 if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
21245 echo $ac_n "(cached) $ac_c" 1>&6
21246 else
21249 ac_ext=C
21250 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21251 ac_cpp='$CXXCPP $CPPFLAGS'
21252 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21253 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21254 cross_compiling=$ac_cv_prog_cxx_cross
21256 cat > conftest.$ac_ext <<EOF
21257 #line 21258 "configure"
21258 #include "confdefs.h"
21259 #include <stdlib.h>
21260 int main() {
21261 strtof(0, 0);
21262 ; return 0; }
21264 if { (eval echo configure:21265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21265 rm -rf conftest*
21266 glibcpp_cv_func_strtof_use=yes
21267 else
21268 echo "configure: failed program was:" >&5
21269 cat conftest.$ac_ext >&5
21270 rm -rf conftest*
21271 glibcpp_cv_func_strtof_use=no
21273 rm -f conftest*
21274 ac_ext=c
21275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21276 ac_cpp='$CPP $CPPFLAGS'
21277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21279 cross_compiling=$ac_cv_prog_cc_cross
21285 echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
21286 if test x$glibcpp_cv_func_strtof_use = x"yes"; then
21287 for ac_func in strtof
21289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21290 echo "configure:21291: checking for $ac_func" >&5
21291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21292 echo $ac_n "(cached) $ac_c" 1>&6
21293 else
21294 cat > conftest.$ac_ext <<EOF
21295 #line 21296 "configure"
21296 #include "confdefs.h"
21297 /* System header to define __stub macros and hopefully few prototypes,
21298 which can conflict with char $ac_func(); below. */
21299 #include <assert.h>
21300 /* Override any gcc2 internal prototype to avoid an error. */
21301 /* We use char because int might match the return type of a gcc2
21302 builtin and then its argument prototype would still apply. */
21303 char $ac_func();
21305 int main() {
21307 /* The GNU C library defines this for functions which it implements
21308 to always fail with ENOSYS. Some functions are actually named
21309 something starting with __ and the normal name is an alias. */
21310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21311 choke me
21312 #else
21313 $ac_func();
21314 #endif
21316 ; return 0; }
21318 if { (eval echo configure:21319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21319 rm -rf conftest*
21320 eval "ac_cv_func_$ac_func=yes"
21321 else
21322 echo "configure: failed program was:" >&5
21323 cat conftest.$ac_ext >&5
21324 rm -rf conftest*
21325 eval "ac_cv_func_$ac_func=no"
21327 rm -f conftest*
21330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21331 echo "$ac_t""yes" 1>&6
21332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21333 cat >> confdefs.h <<EOF
21334 #define $ac_tr_func 1
21337 else
21338 echo "$ac_t""no" 1>&6
21340 done
21344 for ac_func in drand48
21346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21347 echo "configure:21348: checking for $ac_func" >&5
21348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21349 echo $ac_n "(cached) $ac_c" 1>&6
21350 else
21351 cat > conftest.$ac_ext <<EOF
21352 #line 21353 "configure"
21353 #include "confdefs.h"
21354 /* System header to define __stub macros and hopefully few prototypes,
21355 which can conflict with char $ac_func(); below. */
21356 #include <assert.h>
21357 /* Override any gcc2 internal prototype to avoid an error. */
21358 /* We use char because int might match the return type of a gcc2
21359 builtin and then its argument prototype would still apply. */
21360 char $ac_func();
21362 int main() {
21364 /* The GNU C library defines this for functions which it implements
21365 to always fail with ENOSYS. Some functions are actually named
21366 something starting with __ and the normal name is an alias. */
21367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21368 choke me
21369 #else
21370 $ac_func();
21371 #endif
21373 ; return 0; }
21375 if { (eval echo configure:21376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21376 rm -rf conftest*
21377 eval "ac_cv_func_$ac_func=yes"
21378 else
21379 echo "configure: failed program was:" >&5
21380 cat conftest.$ac_ext >&5
21381 rm -rf conftest*
21382 eval "ac_cv_func_$ac_func=no"
21384 rm -f conftest*
21387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21388 echo "$ac_t""yes" 1>&6
21389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21390 cat >> confdefs.h <<EOF
21391 #define $ac_tr_func 1
21394 else
21395 echo "$ac_t""no" 1>&6
21397 done
21400 CXXFLAGS="$ac_save_CXXFLAGS"
21403 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
21404 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
21405 echo "configure:21406: checking for locale.h" >&5
21406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21407 echo $ac_n "(cached) $ac_c" 1>&6
21408 else
21409 cat > conftest.$ac_ext <<EOF
21410 #line 21411 "configure"
21411 #include "confdefs.h"
21412 #include <locale.h>
21414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21415 { (eval echo configure:21416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21417 if test -z "$ac_err"; then
21418 rm -rf conftest*
21419 eval "ac_cv_header_$ac_safe=yes"
21420 else
21421 echo "$ac_err" >&5
21422 echo "configure: failed program was:" >&5
21423 cat conftest.$ac_ext >&5
21424 rm -rf conftest*
21425 eval "ac_cv_header_$ac_safe=no"
21427 rm -f conftest*
21429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21430 echo "$ac_t""yes" 1>&6
21432 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
21433 echo "configure:21434: checking for LC_MESSAGES" >&5
21434 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
21435 echo $ac_n "(cached) $ac_c" 1>&6
21436 else
21437 cat > conftest.$ac_ext <<EOF
21438 #line 21439 "configure"
21439 #include "confdefs.h"
21440 #include <locale.h>
21441 int main() {
21442 return LC_MESSAGES
21443 ; return 0; }
21445 if { (eval echo configure:21446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21446 rm -rf conftest*
21447 ac_cv_val_LC_MESSAGES=yes
21448 else
21449 echo "configure: failed program was:" >&5
21450 cat conftest.$ac_ext >&5
21451 rm -rf conftest*
21452 ac_cv_val_LC_MESSAGES=no
21454 rm -f conftest*
21457 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
21458 if test $ac_cv_val_LC_MESSAGES = yes; then
21459 cat >> confdefs.h <<\EOF
21460 #define HAVE_LC_MESSAGES 1
21465 else
21466 echo "$ac_t""no" 1>&6
21471 cat > conftest.$ac_ext <<EOF
21472 #line 21473 "configure"
21473 #include "confdefs.h"
21475 #include <setjmp.h>
21477 int main() {
21478 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21479 ; return 0; }
21481 if { (eval echo configure:21482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21482 rm -rf conftest*
21483 cat >> confdefs.h <<\EOF
21484 #define HAVE_SIGSETJMP 1
21488 else
21489 echo "configure: failed program was:" >&5
21490 cat conftest.$ac_ext >&5
21492 rm -f conftest*
21494 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
21496 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21497 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21498 echo "configure:21499: checking for $ac_hdr" >&5
21499 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21500 echo $ac_n "(cached) $ac_c" 1>&6
21501 else
21502 cat > conftest.$ac_ext <<EOF
21503 #line 21504 "configure"
21504 #include "confdefs.h"
21505 #include <$ac_hdr>
21507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21508 { (eval echo configure:21509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21510 if test -z "$ac_err"; then
21511 rm -rf conftest*
21512 eval "ac_cv_header_$ac_safe=yes"
21513 else
21514 echo "$ac_err" >&5
21515 echo "configure: failed program was:" >&5
21516 cat conftest.$ac_ext >&5
21517 rm -rf conftest*
21518 eval "ac_cv_header_$ac_safe=no"
21520 rm -f conftest*
21522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21523 echo "$ac_t""yes" 1>&6
21524 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21525 cat >> confdefs.h <<EOF
21526 #define $ac_tr_hdr 1
21529 else
21530 echo "$ac_t""no" 1>&6
21532 done
21534 for ac_func in getpagesize
21536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21537 echo "configure:21538: checking for $ac_func" >&5
21538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21539 echo $ac_n "(cached) $ac_c" 1>&6
21540 else
21541 cat > conftest.$ac_ext <<EOF
21542 #line 21543 "configure"
21543 #include "confdefs.h"
21544 /* System header to define __stub macros and hopefully few prototypes,
21545 which can conflict with char $ac_func(); below. */
21546 #include <assert.h>
21547 /* Override any gcc2 internal prototype to avoid an error. */
21548 /* We use char because int might match the return type of a gcc2
21549 builtin and then its argument prototype would still apply. */
21550 char $ac_func();
21552 int main() {
21554 /* The GNU C library defines this for functions which it implements
21555 to always fail with ENOSYS. Some functions are actually named
21556 something starting with __ and the normal name is an alias. */
21557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21558 choke me
21559 #else
21560 $ac_func();
21561 #endif
21563 ; return 0; }
21565 if { (eval echo configure:21566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21566 rm -rf conftest*
21567 eval "ac_cv_func_$ac_func=yes"
21568 else
21569 echo "configure: failed program was:" >&5
21570 cat conftest.$ac_ext >&5
21571 rm -rf conftest*
21572 eval "ac_cv_func_$ac_func=no"
21574 rm -f conftest*
21577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21578 echo "$ac_t""yes" 1>&6
21579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21580 cat >> confdefs.h <<EOF
21581 #define $ac_tr_func 1
21584 else
21585 echo "$ac_t""no" 1>&6
21587 done
21589 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
21590 echo "configure:21591: checking for working mmap" >&5
21591 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
21592 echo $ac_n "(cached) $ac_c" 1>&6
21593 else
21594 if test "$cross_compiling" = yes; then
21595 ac_cv_func_mmap_fixed_mapped=no
21596 else
21597 cat > conftest.$ac_ext <<EOF
21598 #line 21599 "configure"
21599 #include "confdefs.h"
21601 /* Thanks to Mike Haertel and Jim Avera for this test.
21602 Here is a matrix of mmap possibilities:
21603 mmap private not fixed
21604 mmap private fixed at somewhere currently unmapped
21605 mmap private fixed at somewhere already mapped
21606 mmap shared not fixed
21607 mmap shared fixed at somewhere currently unmapped
21608 mmap shared fixed at somewhere already mapped
21609 For private mappings, we should verify that changes cannot be read()
21610 back from the file, nor mmap's back from the file at a different
21611 address. (There have been systems where private was not correctly
21612 implemented like the infamous i386 svr4.0, and systems where the
21613 VM page cache was not coherent with the filesystem buffer cache
21614 like early versions of FreeBSD and possibly contemporary NetBSD.)
21615 For shared mappings, we should conversely verify that changes get
21616 propogated back to all the places they're supposed to be.
21618 Grep wants private fixed already mapped.
21619 The main things grep needs to know about mmap are:
21620 * does it exist and is it safe to write into the mmap'd area
21621 * how to use it (BSD variants) */
21622 #include <sys/types.h>
21623 #include <fcntl.h>
21624 #include <sys/mman.h>
21626 #if HAVE_SYS_TYPES_H
21627 # include <sys/types.h>
21628 #endif
21630 #if HAVE_STDLIB_H
21631 # include <stdlib.h>
21632 #endif
21634 #if HAVE_SYS_STAT_H
21635 # include <sys/stat.h>
21636 #endif
21638 #if HAVE_UNISTD_H
21639 # include <unistd.h>
21640 #endif
21642 /* This mess was copied from the GNU getpagesize.h. */
21643 #ifndef HAVE_GETPAGESIZE
21645 /* Assume that all systems that can run configure have sys/param.h. */
21646 # ifndef HAVE_SYS_PARAM_H
21647 # define HAVE_SYS_PARAM_H 1
21648 # endif
21650 # ifdef _SC_PAGESIZE
21651 # define getpagesize() sysconf(_SC_PAGESIZE)
21652 # else /* no _SC_PAGESIZE */
21653 # ifdef HAVE_SYS_PARAM_H
21654 # include <sys/param.h>
21655 # ifdef EXEC_PAGESIZE
21656 # define getpagesize() EXEC_PAGESIZE
21657 # else /* no EXEC_PAGESIZE */
21658 # ifdef NBPG
21659 # define getpagesize() NBPG * CLSIZE
21660 # ifndef CLSIZE
21661 # define CLSIZE 1
21662 # endif /* no CLSIZE */
21663 # else /* no NBPG */
21664 # ifdef NBPC
21665 # define getpagesize() NBPC
21666 # else /* no NBPC */
21667 # ifdef PAGESIZE
21668 # define getpagesize() PAGESIZE
21669 # endif /* PAGESIZE */
21670 # endif /* no NBPC */
21671 # endif /* no NBPG */
21672 # endif /* no EXEC_PAGESIZE */
21673 # else /* no HAVE_SYS_PARAM_H */
21674 # define getpagesize() 8192 /* punt totally */
21675 # endif /* no HAVE_SYS_PARAM_H */
21676 # endif /* no _SC_PAGESIZE */
21678 #endif /* no HAVE_GETPAGESIZE */
21680 #ifdef __cplusplus
21681 extern "C" { void *malloc(unsigned); }
21682 #else
21683 char *malloc();
21684 #endif
21687 main()
21689 char *data, *data2, *data3;
21690 int i, pagesize;
21691 int fd;
21693 pagesize = getpagesize();
21696 * First, make a file with some known garbage in it.
21698 data = malloc(pagesize);
21699 if (!data)
21700 exit(1);
21701 for (i = 0; i < pagesize; ++i)
21702 *(data + i) = rand();
21703 umask(0);
21704 fd = creat("conftestmmap", 0600);
21705 if (fd < 0)
21706 exit(1);
21707 if (write(fd, data, pagesize) != pagesize)
21708 exit(1);
21709 close(fd);
21712 * Next, try to mmap the file at a fixed address which
21713 * already has something else allocated at it. If we can,
21714 * also make sure that we see the same garbage.
21716 fd = open("conftestmmap", O_RDWR);
21717 if (fd < 0)
21718 exit(1);
21719 data2 = malloc(2 * pagesize);
21720 if (!data2)
21721 exit(1);
21722 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21723 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
21724 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21725 exit(1);
21726 for (i = 0; i < pagesize; ++i)
21727 if (*(data + i) != *(data2 + i))
21728 exit(1);
21731 * Finally, make sure that changes to the mapped area
21732 * do not percolate back to the file as seen by read().
21733 * (This is a bug on some variants of i386 svr4.0.)
21735 for (i = 0; i < pagesize; ++i)
21736 *(data2 + i) = *(data2 + i) + 1;
21737 data3 = malloc(pagesize);
21738 if (!data3)
21739 exit(1);
21740 if (read(fd, data3, pagesize) != pagesize)
21741 exit(1);
21742 for (i = 0; i < pagesize; ++i)
21743 if (*(data + i) != *(data3 + i))
21744 exit(1);
21745 close(fd);
21746 unlink("conftestmmap");
21747 exit(0);
21751 if { (eval echo configure:21752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21752 then
21753 ac_cv_func_mmap_fixed_mapped=yes
21754 else
21755 echo "configure: failed program was:" >&5
21756 cat conftest.$ac_ext >&5
21757 rm -fr conftest*
21758 ac_cv_func_mmap_fixed_mapped=no
21760 rm -fr conftest*
21765 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
21766 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21767 cat >> confdefs.h <<\EOF
21768 #define HAVE_MMAP 1
21774 # Establish limits on memory usage during 'make check'
21777 setrlimit_have_headers=yes
21778 for ac_hdr in unistd.h sys/time.h sys/resource.h
21780 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21781 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21782 echo "configure:21783: checking for $ac_hdr" >&5
21783 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21784 echo $ac_n "(cached) $ac_c" 1>&6
21785 else
21786 cat > conftest.$ac_ext <<EOF
21787 #line 21788 "configure"
21788 #include "confdefs.h"
21789 #include <$ac_hdr>
21791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21792 { (eval echo configure:21793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21794 if test -z "$ac_err"; then
21795 rm -rf conftest*
21796 eval "ac_cv_header_$ac_safe=yes"
21797 else
21798 echo "$ac_err" >&5
21799 echo "configure: failed program was:" >&5
21800 cat conftest.$ac_ext >&5
21801 rm -rf conftest*
21802 eval "ac_cv_header_$ac_safe=no"
21804 rm -f conftest*
21806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21807 echo "$ac_t""yes" 1>&6
21808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21809 cat >> confdefs.h <<EOF
21810 #define $ac_tr_hdr 1
21813 else
21814 echo "$ac_t""no" 1>&6
21815 setrlimit_have_headers=no
21817 done
21819 # If don't have the headers, then we can't run the tests now, and we
21820 # won't be seeing any of these during testsuite compilation.
21821 if test $setrlimit_have_headers = yes; then
21822 # Can't do these in a loop, else the resulting syntax is wrong.
21824 cat > conftest.$ac_ext <<EOF
21825 #line 21826 "configure"
21826 #include "confdefs.h"
21827 #include <unistd.h>
21828 #include <sys/time.h>
21829 #include <sys/resource.h>
21831 int main() {
21832 int f = RLIMIT_DATA ;
21833 ; return 0; }
21835 if { (eval echo configure:21836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21836 rm -rf conftest*
21837 glibcpp_mresult=1
21838 else
21839 echo "configure: failed program was:" >&5
21840 cat conftest.$ac_ext >&5
21841 rm -rf conftest*
21842 glibcpp_mresult=0
21844 rm -f conftest*
21845 cat >> confdefs.h <<EOF
21846 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
21851 cat > conftest.$ac_ext <<EOF
21852 #line 21853 "configure"
21853 #include "confdefs.h"
21854 #include <unistd.h>
21855 #include <sys/time.h>
21856 #include <sys/resource.h>
21858 int main() {
21859 int f = RLIMIT_RSS ;
21860 ; return 0; }
21862 if { (eval echo configure:21863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21863 rm -rf conftest*
21864 glibcpp_mresult=1
21865 else
21866 echo "configure: failed program was:" >&5
21867 cat conftest.$ac_ext >&5
21868 rm -rf conftest*
21869 glibcpp_mresult=0
21871 rm -f conftest*
21872 cat >> confdefs.h <<EOF
21873 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
21878 cat > conftest.$ac_ext <<EOF
21879 #line 21880 "configure"
21880 #include "confdefs.h"
21881 #include <unistd.h>
21882 #include <sys/time.h>
21883 #include <sys/resource.h>
21885 int main() {
21886 int f = RLIMIT_VMEM ;
21887 ; return 0; }
21889 if { (eval echo configure:21890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21890 rm -rf conftest*
21891 glibcpp_mresult=1
21892 else
21893 echo "configure: failed program was:" >&5
21894 cat conftest.$ac_ext >&5
21895 rm -rf conftest*
21896 glibcpp_mresult=0
21898 rm -f conftest*
21899 cat >> confdefs.h <<EOF
21900 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
21905 cat > conftest.$ac_ext <<EOF
21906 #line 21907 "configure"
21907 #include "confdefs.h"
21908 #include <unistd.h>
21909 #include <sys/time.h>
21910 #include <sys/resource.h>
21912 int main() {
21913 int f = RLIMIT_AS ;
21914 ; return 0; }
21916 if { (eval echo configure:21917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21917 rm -rf conftest*
21918 glibcpp_mresult=1
21919 else
21920 echo "configure: failed program was:" >&5
21921 cat conftest.$ac_ext >&5
21922 rm -rf conftest*
21923 glibcpp_mresult=0
21925 rm -f conftest*
21926 cat >> confdefs.h <<EOF
21927 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
21932 # Check for rlimit, setrlimit.
21933 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
21934 echo $ac_n "(cached) $ac_c" 1>&6
21935 else
21937 cat > conftest.$ac_ext <<EOF
21938 #line 21939 "configure"
21939 #include "confdefs.h"
21940 #include <unistd.h>
21941 #include <sys/time.h>
21942 #include <sys/resource.h>
21944 int main() {
21945 struct rlimit r; setrlimit(0, &r);
21946 ; return 0; }
21948 if { (eval echo configure:21949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21949 rm -rf conftest*
21950 ac_setrlimit=yes
21951 else
21952 echo "configure: failed program was:" >&5
21953 cat conftest.$ac_ext >&5
21954 rm -rf conftest*
21955 ac_setrlimit=no
21957 rm -f conftest*
21963 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
21964 echo "configure:21965: checking for testsuite memory limit support" >&5
21965 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
21966 ac_mem_limits=yes
21967 cat >> confdefs.h <<\EOF
21968 #define _GLIBCPP_MEM_LIMITS 1
21971 else
21972 ac_mem_limits=no
21974 echo "$ac_t""$ac_mem_limits" 1>&6
21977 # Look for setenv, so that extended locale tests can be performed.
21979 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
21980 echo "configure:21981: checking for setenv declaration" >&5
21981 if test x${glibcpp_cv_func_setenv_use+set} != xset; then
21982 if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
21983 echo $ac_n "(cached) $ac_c" 1>&6
21984 else
21987 ac_ext=C
21988 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21989 ac_cpp='$CXXCPP $CPPFLAGS'
21990 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21991 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21992 cross_compiling=$ac_cv_prog_cxx_cross
21994 cat > conftest.$ac_ext <<EOF
21995 #line 21996 "configure"
21996 #include "confdefs.h"
21997 #include <stdlib.h>
21998 int main() {
21999 setenv(0, 0, 0);
22000 ; return 0; }
22002 if { (eval echo configure:22003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22003 rm -rf conftest*
22004 glibcpp_cv_func_setenv_use=yes
22005 else
22006 echo "configure: failed program was:" >&5
22007 cat conftest.$ac_ext >&5
22008 rm -rf conftest*
22009 glibcpp_cv_func_setenv_use=no
22011 rm -f conftest*
22012 ac_ext=c
22013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22014 ac_cpp='$CPP $CPPFLAGS'
22015 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22016 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22017 cross_compiling=$ac_cv_prog_cc_cross
22023 echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
22024 if test x$glibcpp_cv_func_setenv_use = x"yes"; then
22025 for ac_func in setenv
22027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22028 echo "configure:22029: checking for $ac_func" >&5
22029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22030 echo $ac_n "(cached) $ac_c" 1>&6
22031 else
22032 cat > conftest.$ac_ext <<EOF
22033 #line 22034 "configure"
22034 #include "confdefs.h"
22035 /* System header to define __stub macros and hopefully few prototypes,
22036 which can conflict with char $ac_func(); below. */
22037 #include <assert.h>
22038 /* Override any gcc2 internal prototype to avoid an error. */
22039 /* We use char because int might match the return type of a gcc2
22040 builtin and then its argument prototype would still apply. */
22041 char $ac_func();
22043 int main() {
22045 /* The GNU C library defines this for functions which it implements
22046 to always fail with ENOSYS. Some functions are actually named
22047 something starting with __ and the normal name is an alias. */
22048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22049 choke me
22050 #else
22051 $ac_func();
22052 #endif
22054 ; return 0; }
22056 if { (eval echo configure:22057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22057 rm -rf conftest*
22058 eval "ac_cv_func_$ac_func=yes"
22059 else
22060 echo "configure: failed program was:" >&5
22061 cat conftest.$ac_ext >&5
22062 rm -rf conftest*
22063 eval "ac_cv_func_$ac_func=no"
22065 rm -f conftest*
22068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22069 echo "$ac_t""yes" 1>&6
22070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22071 cat >> confdefs.h <<EOF
22072 #define $ac_tr_func 1
22075 else
22076 echo "$ac_t""no" 1>&6
22078 done
22085 # This depends on the possibly-skipped linker test above.
22086 # Check whether --enable-symvers or --disable-symvers was given.
22087 if test "${enable_symvers+set}" = set; then
22088 enableval="$enable_symvers"
22089 case "$enableval" in
22090 yes) enable_symvers=yes ;;
22091 no) enable_symvers=no ;;
22092 # other names here, just as sanity checks
22093 #gnu|sun|etcetera) enable_symvers=$enableval ;;
22094 gnu) enable_symvers=$enableval ;;
22095 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
22096 esac
22097 else
22098 enable_symvers=yes
22101 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
22102 # don't know enough about $LD to do tricks...
22103 if test x$enable_shared = xno ||
22104 test "x$LD" = x ||
22105 test x$glibcpp_gnu_ld_version = x; then
22106 enable_symvers=no
22109 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
22110 if test $enable_symvers != no; then
22111 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
22112 echo "configure:22113: checking for shared libgcc" >&5
22113 ac_save_CFLAGS="$CFLAGS"
22114 CFLAGS=' -lgcc_s'
22115 cat > conftest.$ac_ext <<EOF
22116 #line 22117 "configure"
22117 #include "confdefs.h"
22119 int main() {
22120 return 0
22121 ; return 0; }
22123 if { (eval echo configure:22124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22124 rm -rf conftest*
22125 glibcpp_shared_libgcc=yes
22126 else
22127 echo "configure: failed program was:" >&5
22128 cat conftest.$ac_ext >&5
22129 rm -rf conftest*
22130 glibcpp_shared_libgcc=no
22132 rm -f conftest*
22133 CFLAGS="$ac_save_CFLAGS"
22134 echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
22137 # For GNU ld, we need at least this version. It's 2.12 in the same format
22138 # as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more.
22139 glibcpp_min_gnu_ld_version=21200
22141 # Check to see if unspecified "yes" value can win, given results
22142 # above.
22143 if test $enable_symvers = yes ; then
22144 if test $with_gnu_ld = yes &&
22145 test $glibcpp_shared_libgcc = yes ;
22146 then
22147 if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
22148 enable_symvers=gnu
22149 else
22150 ac_test_CFLAGS="${CFLAGS+set}"
22151 ac_save_CFLAGS="$CFLAGS"
22152 CFLAGS='-shared -Wl,--version-script,conftest.map'
22153 enable_symvers=no
22155 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
22157 cat > conftest.$ac_ext <<EOF
22158 #line 22159 "configure"
22159 #include "confdefs.h"
22160 int foo;
22161 int main() {
22163 ; return 0; }
22165 if { (eval echo configure:22166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22166 rm -rf conftest*
22167 enable_symvers=gnu
22168 else
22169 echo "configure: failed program was:" >&5
22170 cat conftest.$ac_ext >&5
22172 rm -f conftest*
22173 if test "$ac_test_CFLAGS" = set; then
22174 CFLAGS="$ac_save_CFLAGS"
22175 else
22176 # this is the suspicious part
22177 CFLAGS=''
22179 rm -f conftest.map
22181 else
22182 # just fail for now
22183 enable_symvers=no
22187 case $enable_symvers in
22189 LINKER_MAP=config/linker-map.dummy
22191 gnu)
22192 LINKER_MAP=config/linker-map.gnu
22194 esac
22199 if test $enable_symvers != no; then
22200 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
22201 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
22202 else
22203 GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
22204 GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
22206 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
22207 echo "configure:22208: checking versioning on shared library symbols" >&5
22208 echo "$ac_t""$enable_symvers" 1>&6
22211 # Propagate the target-specific source directories through the build chain.
22212 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH and
22213 # CPULIMITSH [might] use it, and they only get used here.)
22214 OS_INC_SRCDIR=config/${os_include_dir}
22215 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
22216 CPU_LIMITS_INC_SRCDIR=config/${CPULIMITSH}
22221 # Set up cross-compile flags
22224 if test "$CANADIAN" = yes; then
22225 CANADIAN_TRUE=
22226 CANADIAN_FALSE='#'
22227 else
22228 CANADIAN_TRUE='#'
22229 CANADIAN_FALSE=
22232 cat > confcache <<\EOF
22233 # This file is a shell script that caches the results of configure
22234 # tests run on this system so they can be shared between configure
22235 # scripts and configure runs. It is not useful on other systems.
22236 # If it contains results you don't want to keep, you may remove or edit it.
22238 # By default, configure uses ./config.cache as the cache file,
22239 # creating it if it does not exist already. You can give configure
22240 # the --cache-file=FILE option to use a different cache file; that is
22241 # what configure does when it calls configure scripts in
22242 # subdirectories, so they share the cache.
22243 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22244 # config.status only pays attention to the cache file if you give it the
22245 # --recheck option to rerun configure.
22248 # The following way of writing the cache mishandles newlines in values,
22249 # but we know of no workaround that is simple, portable, and efficient.
22250 # So, don't put newlines in cache variables' values.
22251 # Ultrix sh set writes to stderr and can't be redirected directly,
22252 # and sets the high bit in the cache file unless we assign to the vars.
22253 (set) 2>&1 |
22254 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22255 *ac_space=\ *)
22256 # `set' does not quote correctly, so add quotes (double-quote substitution
22257 # turns \\\\ into \\, and sed turns \\ into \).
22258 sed -n \
22259 -e "s/'/'\\\\''/g" \
22260 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22263 # `set' quotes correctly as required by POSIX, so do not add quotes.
22264 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22266 esac >> confcache
22267 if cmp -s $cache_file confcache; then
22269 else
22270 if test -w $cache_file; then
22271 echo "updating cache $cache_file"
22272 cat confcache > $cache_file
22273 else
22274 echo "not updating unwritable cache $cache_file"
22277 rm -f confcache
22280 if test "${multilib}" = "yes"; then
22281 multilib_arg="--enable-multilib"
22282 else
22283 multilib_arg=
22286 # Export all the install information
22288 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
22289 # exported correctly in GLIBCPP_CONFIGURE.
22290 glibcpp_toolexecdir=no
22291 glibcpp_toolexeclibdir=no
22292 glibcpp_prefixdir=${prefix}
22294 # Process the option --with-gxx-include-dir=<path to include-files directory>
22295 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
22296 echo "configure:22297: checking for --with-gxx-include-dir" >&5
22297 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
22298 if test "${with_gxx_include_dir+set}" = set; then
22299 withval="$with_gxx_include_dir"
22300 case "${withval}" in
22301 yes)
22302 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
22303 gxx_include_dir=no
22306 gxx_include_dir=no
22309 gxx_include_dir=${withval}
22311 esac
22312 else
22313 gxx_include_dir=no
22316 echo "$ac_t""$gxx_include_dir" 1>&6
22318 # Process the option "--enable-version-specific-runtime-libs"
22319 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
22320 echo "configure:22321: checking for --enable-version-specific-runtime-libs" >&5
22321 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
22322 if test "${enable_version_specific_runtime_libs+set}" = set; then
22323 enableval="$enable_version_specific_runtime_libs"
22324 case "$enableval" in
22325 yes) version_specific_libs=yes ;;
22326 no) version_specific_libs=no ;;
22327 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
22328 esac
22329 else
22330 version_specific_libs=no
22332 # Option set, now we can test it.
22333 echo "$ac_t""$version_specific_libs" 1>&6
22335 # Default case for install directory for include files.
22336 if test $version_specific_libs = no && test $gxx_include_dir = no; then
22337 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
22340 # Version-specific runtime libs processing.
22341 if test $version_specific_libs = yes; then
22342 # Need the gcc compiler version to know where to install libraries
22343 # and header files if --enable-version-specific-runtime-libs option
22344 # is selected.
22345 if test x"$gxx_include_dir" = x"no"; then
22346 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
22348 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22349 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
22352 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
22353 # Install a library built with a cross compiler in tooldir, not libdir.
22354 if test x"$glibcpp_toolexecdir" = x"no"; then
22355 if test -n "$with_cross_host" &&
22356 test x"$with_cross_host" != x"no"; then
22357 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
22358 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
22359 else
22360 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22361 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
22365 echo $ac_n "checking for install location""... $ac_c" 1>&6
22366 echo "configure:22367: checking for install location" >&5
22367 echo "$ac_t""$gxx_include_dir" 1>&6
22375 # Export all the include and flag information to makefiles.
22377 # Root level of the build directory include sources.
22378 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
22380 # Passed down for canadian crosses.
22381 if test x"$CANADIAN" = xyes; then
22382 TOPLEVEL_INCLUDES='-I$(includedir)'
22385 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
22387 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
22389 if test x"$need_libio" = xyes; then
22390 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
22394 # Now, export this to all the little Makefiles....
22401 # Optimization flags that are probably a good idea for thrill-seekers. Just
22402 # uncomment the lines below and make, everything else is ready to go...
22403 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
22404 OPTIMIZE_CXXFLAGS=
22407 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
22411 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
22412 grep "enable shared" > /dev/null; then
22413 LIBSUPCXX_PICFLAGS=-prefer-pic
22414 else
22415 LIBSUPCXX_PICFLAGS=
22419 # Generate the various Makefiles, include files, and scripts.
22420 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
22421 # and libsupc++/Makefile.am so that multilib installs will end up
22422 # installed in the correct place. To work around this not being passed
22423 # down from config-ml.in -> top_srcdir/Makefile.am ->
22424 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
22425 trap '' 1 2 15
22426 cat > confcache <<\EOF
22427 # This file is a shell script that caches the results of configure
22428 # tests run on this system so they can be shared between configure
22429 # scripts and configure runs. It is not useful on other systems.
22430 # If it contains results you don't want to keep, you may remove or edit it.
22432 # By default, configure uses ./config.cache as the cache file,
22433 # creating it if it does not exist already. You can give configure
22434 # the --cache-file=FILE option to use a different cache file; that is
22435 # what configure does when it calls configure scripts in
22436 # subdirectories, so they share the cache.
22437 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22438 # config.status only pays attention to the cache file if you give it the
22439 # --recheck option to rerun configure.
22442 # The following way of writing the cache mishandles newlines in values,
22443 # but we know of no workaround that is simple, portable, and efficient.
22444 # So, don't put newlines in cache variables' values.
22445 # Ultrix sh set writes to stderr and can't be redirected directly,
22446 # and sets the high bit in the cache file unless we assign to the vars.
22447 (set) 2>&1 |
22448 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22449 *ac_space=\ *)
22450 # `set' does not quote correctly, so add quotes (double-quote substitution
22451 # turns \\\\ into \\, and sed turns \\ into \).
22452 sed -n \
22453 -e "s/'/'\\\\''/g" \
22454 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22457 # `set' quotes correctly as required by POSIX, so do not add quotes.
22458 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22460 esac >> confcache
22461 if cmp -s $cache_file confcache; then
22463 else
22464 if test -w $cache_file; then
22465 echo "updating cache $cache_file"
22466 cat confcache > $cache_file
22467 else
22468 echo "not updating unwritable cache $cache_file"
22471 rm -f confcache
22473 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22475 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22476 # Let make expand exec_prefix.
22477 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22479 # Any assignment to VPATH causes Sun make to only execute
22480 # the first set of double-colon rules, so remove it if not needed.
22481 # If there is a colon in the path, we need to keep it.
22482 if test "x$srcdir" = x.; then
22483 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22486 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22488 DEFS=-DHAVE_CONFIG_H
22490 # Without the "./", some shells look in PATH for config.status.
22491 : ${CONFIG_STATUS=./config.status}
22493 echo creating $CONFIG_STATUS
22494 rm -f $CONFIG_STATUS
22495 cat > $CONFIG_STATUS <<EOF
22496 #! /bin/sh
22497 # Generated automatically by configure.
22498 # Run this file to recreate the current configuration.
22499 # This directory was configured as follows,
22500 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22502 # $0 $ac_configure_args
22504 # Compiler output produced by configure, useful for debugging
22505 # configure, is in ./config.log if it exists.
22507 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22508 for ac_option
22510 case "\$ac_option" in
22511 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22512 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22513 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22514 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22515 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22516 exit 0 ;;
22517 -help | --help | --hel | --he | --h)
22518 echo "\$ac_cs_usage"; exit 0 ;;
22519 *) echo "\$ac_cs_usage"; exit 1 ;;
22520 esac
22521 done
22523 ac_given_srcdir=$srcdir
22524 ac_given_INSTALL="$INSTALL"
22526 trap 'rm -fr `echo "Makefile \
22527 include/Makefile src/Makefile \
22528 libmath/Makefile libio/Makefile libsupc++/Makefile \
22529 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22531 cat >> $CONFIG_STATUS <<EOF
22533 # Protect against being on the right side of a sed subst in config.status.
22534 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22535 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22536 $ac_vpsub
22537 $extrasub
22538 s%@SHELL@%$SHELL%g
22539 s%@CFLAGS@%$CFLAGS%g
22540 s%@CPPFLAGS@%$CPPFLAGS%g
22541 s%@CXXFLAGS@%$CXXFLAGS%g
22542 s%@FFLAGS@%$FFLAGS%g
22543 s%@DEFS@%$DEFS%g
22544 s%@LDFLAGS@%$LDFLAGS%g
22545 s%@LIBS@%$LIBS%g
22546 s%@exec_prefix@%$exec_prefix%g
22547 s%@prefix@%$prefix%g
22548 s%@program_transform_name@%$program_transform_name%g
22549 s%@bindir@%$bindir%g
22550 s%@sbindir@%$sbindir%g
22551 s%@libexecdir@%$libexecdir%g
22552 s%@datadir@%$datadir%g
22553 s%@sysconfdir@%$sysconfdir%g
22554 s%@sharedstatedir@%$sharedstatedir%g
22555 s%@localstatedir@%$localstatedir%g
22556 s%@libdir@%$libdir%g
22557 s%@includedir@%$includedir%g
22558 s%@oldincludedir@%$oldincludedir%g
22559 s%@infodir@%$infodir%g
22560 s%@mandir@%$mandir%g
22561 s%@PACKAGE@%$PACKAGE%g
22562 s%@libtool_VERSION@%$libtool_VERSION%g
22563 s%@toplevel_srcdir@%$toplevel_srcdir%g
22564 s%@host@%$host%g
22565 s%@host_alias@%$host_alias%g
22566 s%@host_cpu@%$host_cpu%g
22567 s%@host_vendor@%$host_vendor%g
22568 s%@host_os@%$host_os%g
22569 s%@target@%$target%g
22570 s%@target_alias@%$target_alias%g
22571 s%@target_cpu@%$target_cpu%g
22572 s%@target_vendor@%$target_vendor%g
22573 s%@target_os@%$target_os%g
22574 s%@build@%$build%g
22575 s%@build_alias@%$build_alias%g
22576 s%@build_cpu@%$build_cpu%g
22577 s%@build_vendor@%$build_vendor%g
22578 s%@build_os@%$build_os%g
22579 s%@glibcpp_builddir@%$glibcpp_builddir%g
22580 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
22581 s%@AWK@%$AWK%g
22582 s%@LN_S@%$LN_S%g
22583 s%@glibcpp_basedir@%$glibcpp_basedir%g
22584 s%@CC@%$CC%g
22585 s%@glibcpp_CXX@%$glibcpp_CXX%g
22586 s%@AS@%$AS%g
22587 s%@AR@%$AR%g
22588 s%@RANLIB@%$RANLIB%g
22589 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22590 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22591 s%@INSTALL_DATA@%$INSTALL_DATA%g
22592 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
22593 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
22594 s%@MAINT@%$MAINT%g
22595 s%@EXEEXT@%$EXEEXT%g
22596 s%@VERSION@%$VERSION%g
22597 s%@ACLOCAL@%$ACLOCAL%g
22598 s%@AUTOCONF@%$AUTOCONF%g
22599 s%@AUTOMAKE@%$AUTOMAKE%g
22600 s%@AUTOHEADER@%$AUTOHEADER%g
22601 s%@MAKEINFO@%$MAKEINFO%g
22602 s%@SET_MAKE@%$SET_MAKE%g
22603 s%@OBJEXT@%$OBJEXT%g
22604 s%@STRIP@%$STRIP%g
22605 s%@LIBTOOL@%$LIBTOOL%g
22606 s%@CXXCPP@%$CXXCPP%g
22607 s%@enable_shared@%$enable_shared%g
22608 s%@enable_static@%$enable_static%g
22609 s%@ifGNUmake@%$ifGNUmake%g
22610 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
22611 s%@CPP@%$CPP%g
22612 s%@CSTDIO_H@%$CSTDIO_H%g
22613 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
22614 s%@CCODECVT_C@%$CCODECVT_C%g
22615 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
22616 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
22617 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
22618 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
22619 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
22620 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
22621 s%@libio_la@%$libio_la%g
22622 s%@check_msgfmt@%$check_msgfmt%g
22623 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
22624 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
22625 s%@glibcpp_localedir@%$glibcpp_localedir%g
22626 s%@USE_NLS@%$USE_NLS%g
22627 s%@CLOCALE_H@%$CLOCALE_H%g
22628 s%@CCODECVT_H@%$CCODECVT_H%g
22629 s%@CMESSAGES_H@%$CMESSAGES_H%g
22630 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
22631 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
22632 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
22633 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
22634 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
22635 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
22636 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
22637 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
22638 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
22639 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
22640 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
22641 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
22642 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
22643 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
22644 s%@WERROR@%$WERROR%g
22645 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
22646 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
22647 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
22648 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
22649 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
22650 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
22651 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
22652 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
22653 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
22654 s%@gxx_include_dir@%$gxx_include_dir%g
22655 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
22656 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
22657 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
22658 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
22659 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
22660 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
22661 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
22662 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
22663 s%@WARN_FLAGS@%$WARN_FLAGS%g
22664 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
22666 CEOF
22669 cat >> $CONFIG_STATUS <<\EOF
22671 # Split the substitutions into bite-sized pieces for seds with
22672 # small command number limits, like on Digital OSF/1 and HP-UX.
22673 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22674 ac_file=1 # Number of current file.
22675 ac_beg=1 # First line for current file.
22676 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22677 ac_more_lines=:
22678 ac_sed_cmds=""
22679 while $ac_more_lines; do
22680 if test $ac_beg -gt 1; then
22681 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22682 else
22683 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22685 if test ! -s conftest.s$ac_file; then
22686 ac_more_lines=false
22687 rm -f conftest.s$ac_file
22688 else
22689 if test -z "$ac_sed_cmds"; then
22690 ac_sed_cmds="sed -f conftest.s$ac_file"
22691 else
22692 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22694 ac_file=`expr $ac_file + 1`
22695 ac_beg=$ac_end
22696 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22698 done
22699 if test -z "$ac_sed_cmds"; then
22700 ac_sed_cmds=cat
22704 cat >> $CONFIG_STATUS <<EOF
22706 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
22707 include/Makefile src/Makefile \
22708 libmath/Makefile libio/Makefile libsupc++/Makefile \
22709 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
22711 cat >> $CONFIG_STATUS <<\EOF
22712 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22713 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22714 case "$ac_file" in
22715 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22716 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22717 *) ac_file_in="${ac_file}.in" ;;
22718 esac
22720 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22722 # Remove last slash and all that follows it. Not all systems have dirname.
22723 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22724 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22725 # The file is in a subdirectory.
22726 test ! -d "$ac_dir" && mkdir "$ac_dir"
22727 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22728 # A "../" for each directory in $ac_dir_suffix.
22729 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22730 else
22731 ac_dir_suffix= ac_dots=
22734 case "$ac_given_srcdir" in
22735 .) srcdir=.
22736 if test -z "$ac_dots"; then top_srcdir=.
22737 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22738 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22739 *) # Relative path.
22740 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22741 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22742 esac
22744 case "$ac_given_INSTALL" in
22745 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22746 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22747 esac
22749 echo creating "$ac_file"
22750 rm -f "$ac_file"
22751 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22752 case "$ac_file" in
22753 *Makefile*) ac_comsub="1i\\
22754 # $configure_input" ;;
22755 *) ac_comsub= ;;
22756 esac
22758 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22759 sed -e "$ac_comsub
22760 s%@configure_input@%$configure_input%g
22761 s%@srcdir@%$srcdir%g
22762 s%@top_srcdir@%$top_srcdir%g
22763 s%@INSTALL@%$INSTALL%g
22764 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22765 fi; done
22766 rm -f conftest.s*
22768 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22769 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22771 # ac_d sets the value in "#define NAME VALUE" lines.
22772 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22773 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22774 ac_dC='\3'
22775 ac_dD='%g'
22776 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22777 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22778 ac_uB='\([ ]\)%\1#\2define\3'
22779 ac_uC=' '
22780 ac_uD='\4%g'
22781 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22782 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22783 ac_eB='$%\1#\2define\3'
22784 ac_eC=' '
22785 ac_eD='%g'
22787 if test "${CONFIG_HEADERS+set}" != set; then
22789 cat >> $CONFIG_STATUS <<EOF
22790 CONFIG_HEADERS="config.h"
22792 cat >> $CONFIG_STATUS <<\EOF
22794 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22795 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22796 case "$ac_file" in
22797 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22798 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22799 *) ac_file_in="${ac_file}.in" ;;
22800 esac
22802 echo creating $ac_file
22804 rm -f conftest.frag conftest.in conftest.out
22805 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22806 cat $ac_file_inputs > conftest.in
22810 # Transform confdefs.h into a sed script conftest.vals that substitutes
22811 # the proper values into config.h.in to produce config.h. And first:
22812 # Protect against being on the right side of a sed subst in config.status.
22813 # Protect against being in an unquoted here document in config.status.
22814 rm -f conftest.vals
22815 cat > conftest.hdr <<\EOF
22816 s/[\\&%]/\\&/g
22817 s%[\\$`]%\\&%g
22818 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22819 s%ac_d%ac_u%gp
22820 s%ac_u%ac_e%gp
22822 sed -n -f conftest.hdr confdefs.h > conftest.vals
22823 rm -f conftest.hdr
22825 # This sed command replaces #undef with comments. This is necessary, for
22826 # example, in the case of _POSIX_SOURCE, which is predefined and required
22827 # on some systems where configure will not decide to define it.
22828 cat >> conftest.vals <<\EOF
22829 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22832 # Break up conftest.vals because some shells have a limit on
22833 # the size of here documents, and old seds have small limits too.
22835 rm -f conftest.tail
22836 while :
22838 ac_lines=`grep -c . conftest.vals`
22839 # grep -c gives empty output for an empty file on some AIX systems.
22840 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22841 # Write a limited-size here document to conftest.frag.
22842 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22843 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22844 echo 'CEOF
22845 sed -f conftest.frag conftest.in > conftest.out
22846 rm -f conftest.in
22847 mv conftest.out conftest.in
22848 ' >> $CONFIG_STATUS
22849 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22850 rm -f conftest.vals
22851 mv conftest.tail conftest.vals
22852 done
22853 rm -f conftest.vals
22855 cat >> $CONFIG_STATUS <<\EOF
22856 rm -f conftest.frag conftest.h
22857 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22858 cat conftest.in >> conftest.h
22859 rm -f conftest.in
22860 if cmp -s $ac_file conftest.h 2>/dev/null; then
22861 echo "$ac_file is unchanged"
22862 rm -f conftest.h
22863 else
22864 # Remove last slash and all that follows it. Not all systems have dirname.
22865 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22866 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22867 # The file is in a subdirectory.
22868 test ! -d "$ac_dir" && mkdir "$ac_dir"
22870 rm -f $ac_file
22871 mv conftest.h $ac_file
22873 fi; done
22877 cat >> $CONFIG_STATUS <<EOF
22878 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
22879 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/ctype.cc src/messages.cc src/monetary.cc src/numeric.cc src/time.cc src/linker.map"
22882 cat >> $CONFIG_STATUS <<\EOF
22883 srcdir=$ac_given_srcdir
22884 while test -n "$ac_sources"; do
22885 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22886 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22888 echo "linking $srcdir/$ac_source to $ac_dest"
22890 if test ! -r $srcdir/$ac_source; then
22891 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
22893 rm -f $ac_dest
22895 # Make relative symlinks.
22896 # Remove last slash and all that follows it. Not all systems have dirname.
22897 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
22898 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
22899 # The dest file is in a subdirectory.
22900 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
22901 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
22902 # A "../" for each directory in $ac_dest_dir_suffix.
22903 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
22904 else
22905 ac_dest_dir_suffix= ac_dots=
22908 case "$srcdir" in
22909 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
22910 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
22911 esac
22913 # Make a symlink if possible; otherwise try a hard link.
22914 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22915 ln $srcdir/$ac_source $ac_dest; then :
22916 else
22917 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
22919 done
22921 cat >> $CONFIG_STATUS <<EOF
22923 srcdir=${srcdir}
22924 host=${host}
22925 target=${target}
22926 with_multisubdir=${with_multisubdir}
22927 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22928 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22929 glibcpp_basedir=${glibcpp_basedir}
22930 CC="${CC}"
22931 CXX="${CXX}"
22934 cat >> $CONFIG_STATUS <<\EOF
22935 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22936 if test -n "$CONFIG_FILES"; then
22937 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
22938 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22939 grep '^MULTISUBDIR =' Makefile >> src/Makefile
22940 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22942 chmod +x mkcheck
22943 chmod +x testsuite_flags
22945 exit 0
22947 chmod +x $CONFIG_STATUS
22948 rm -fr confdefs* $ac_clean_files
22949 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22953 # Sanity checking & User-visible messages.
22954 # Checks down here, otherwise they get scrolled off before
22955 # the user will notice.
22957 # Trying to get more people to read documentation. Possibly remove
22958 # check and warn all the time. There is no "informational" AC_MSG_
22959 # macro, so these are going to be printed even when --quiet/--silent
22960 # is given.
22961 if test ! -f stamp-sanity-warned; then
22962 touch stamp-sanity-warned
22963 echo ""
22964 echo "Please make certain that you read the installation information here:"
22965 echo " faster => ${srcdir}/docs/html/install.html"
22966 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
22967 echo ""
22968 echo "and the configuration information here:"
22969 echo " faster => ${srcdir}/docs/html/configopts.html"
22970 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
22971 echo ""
22972 echo "before proceeding with ${_cv_gnu_make_command}."
22973 echo ""