OSDN Git Service

2001-11-01 Phil Edwards <pme@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
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]
41   "
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]
45   "
46 ac_help="$ac_help
47   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51   --enable-long-long      turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
54 ac_help="$ac_help
55   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
56                                 [default=none]"
57 ac_help="$ac_help
58   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60   --enable-concept-checks use Boost-derived template checks [default=no]"
61 ac_help="$ac_help
62   --with-gxx-include-dir  the installation directory for include files"
63 ac_help="$ac_help
64   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
65
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
69 build=NONE
70 cache_file=./config.cache
71 exec_prefix=NONE
72 host=NONE
73 no_create=
74 nonopt=NONE
75 no_recursion=
76 prefix=NONE
77 program_prefix=NONE
78 program_suffix=NONE
79 program_transform_name=s,x,x,
80 silent=
81 site=
82 sitefile=
83 srcdir=
84 target=NONE
85 verbose=
86 x_includes=NONE
87 x_libraries=NONE
88 bindir='${exec_prefix}/bin'
89 sbindir='${exec_prefix}/sbin'
90 libexecdir='${exec_prefix}/libexec'
91 datadir='${prefix}/share'
92 sysconfdir='${prefix}/etc'
93 sharedstatedir='${prefix}/com'
94 localstatedir='${prefix}/var'
95 libdir='${exec_prefix}/lib'
96 includedir='${prefix}/include'
97 oldincludedir='/usr/include'
98 infodir='${prefix}/info'
99 mandir='${prefix}/man'
100
101 # Initialize some other variables.
102 subdirs=
103 MFLAGS= MAKEFLAGS=
104 SHELL=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
106 ac_max_here_lines=12
107
108 ac_prev=
109 for ac_option
110 do
111
112   # If the previous option needs an argument, assign it.
113   if test -n "$ac_prev"; then
114     eval "$ac_prev=\$ac_option"
115     ac_prev=
116     continue
117   fi
118
119   case "$ac_option" in
120   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
121   *) ac_optarg= ;;
122   esac
123
124   # Accept the important Cygnus configure options, so we can diagnose typos.
125
126   case "$ac_option" in
127
128   -bindir | --bindir | --bindi | --bind | --bin | --bi)
129     ac_prev=bindir ;;
130   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
131     bindir="$ac_optarg" ;;
132
133   -build | --build | --buil | --bui | --bu)
134     ac_prev=build ;;
135   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
136     build="$ac_optarg" ;;
137
138   -cache-file | --cache-file | --cache-fil | --cache-fi \
139   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
140     ac_prev=cache_file ;;
141   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
142   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
143     cache_file="$ac_optarg" ;;
144
145   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
146     ac_prev=datadir ;;
147   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
148   | --da=*)
149     datadir="$ac_optarg" ;;
150
151   -disable-* | --disable-*)
152     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
153     # Reject names that are not valid shell variable names.
154     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156     fi
157     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158     eval "enable_${ac_feature}=no" ;;
159
160   -enable-* | --enable-*)
161     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162     # Reject names that are not valid shell variable names.
163     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165     fi
166     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167     case "$ac_option" in
168       *=*) ;;
169       *) ac_optarg=yes ;;
170     esac
171     eval "enable_${ac_feature}='$ac_optarg'" ;;
172
173   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
174   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
175   | --exec | --exe | --ex)
176     ac_prev=exec_prefix ;;
177   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
178   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
179   | --exec=* | --exe=* | --ex=*)
180     exec_prefix="$ac_optarg" ;;
181
182   -gas | --gas | --ga | --g)
183     # Obsolete; use --with-gas.
184     with_gas=yes ;;
185
186   -help | --help | --hel | --he)
187     # Omit some internal or obsolete options to make the list less imposing.
188     # This message is too long to be a string in the A/UX 3.1 sh.
189     cat << EOF
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
192 Configuration:
193   --cache-file=FILE       cache test results in FILE
194   --help                  print this message
195   --no-create             do not create output files
196   --quiet, --silent       do not print \`checking...' messages
197   --site-file=FILE        use FILE as the site file
198   --version               print the version of autoconf that created configure
199 Directory and file names:
200   --prefix=PREFIX         install architecture-independent files in PREFIX
201                           [$ac_default_prefix]
202   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
203                           [same as prefix]
204   --bindir=DIR            user executables in DIR [EPREFIX/bin]
205   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
206   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
207   --datadir=DIR           read-only architecture-independent data in DIR
208                           [PREFIX/share]
209   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
210   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
211                           [PREFIX/com]
212   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
213   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
214   --includedir=DIR        C header files in DIR [PREFIX/include]
215   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
216   --infodir=DIR           info documentation in DIR [PREFIX/info]
217   --mandir=DIR            man documentation in DIR [PREFIX/man]
218   --srcdir=DIR            find the sources in DIR [configure dir or ..]
219   --program-prefix=PREFIX prepend PREFIX to installed program names
220   --program-suffix=SUFFIX append SUFFIX to installed program names
221   --program-transform-name=PROGRAM
222                           run sed PROGRAM on installed program names
223 EOF
224     cat << EOF
225 Host type:
226   --build=BUILD           configure for building on BUILD [BUILD=HOST]
227   --host=HOST             configure for HOST [guessed]
228   --target=TARGET         configure for TARGET [TARGET=HOST]
229 Features and packages:
230   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
231   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
232   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
233   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
234   --x-includes=DIR        X include files are in DIR
235   --x-libraries=DIR       X library files are in DIR
236 EOF
237     if test -n "$ac_help"; then
238       echo "--enable and --with options recognized:$ac_help"
239     fi
240     exit 0 ;;
241
242   -host | --host | --hos | --ho)
243     ac_prev=host ;;
244   -host=* | --host=* | --hos=* | --ho=*)
245     host="$ac_optarg" ;;
246
247   -includedir | --includedir | --includedi | --included | --include \
248   | --includ | --inclu | --incl | --inc)
249     ac_prev=includedir ;;
250   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
251   | --includ=* | --inclu=* | --incl=* | --inc=*)
252     includedir="$ac_optarg" ;;
253
254   -infodir | --infodir | --infodi | --infod | --info | --inf)
255     ac_prev=infodir ;;
256   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
257     infodir="$ac_optarg" ;;
258
259   -libdir | --libdir | --libdi | --libd)
260     ac_prev=libdir ;;
261   -libdir=* | --libdir=* | --libdi=* | --libd=*)
262     libdir="$ac_optarg" ;;
263
264   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
265   | --libexe | --libex | --libe)
266     ac_prev=libexecdir ;;
267   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
268   | --libexe=* | --libex=* | --libe=*)
269     libexecdir="$ac_optarg" ;;
270
271   -localstatedir | --localstatedir | --localstatedi | --localstated \
272   | --localstate | --localstat | --localsta | --localst \
273   | --locals | --local | --loca | --loc | --lo)
274     ac_prev=localstatedir ;;
275   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
276   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
277   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
278     localstatedir="$ac_optarg" ;;
279
280   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281     ac_prev=mandir ;;
282   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283     mandir="$ac_optarg" ;;
284
285   -nfp | --nfp | --nf)
286     # Obsolete; use --without-fp.
287     with_fp=no ;;
288
289   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290   | --no-cr | --no-c)
291     no_create=yes ;;
292
293   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
294   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
295     no_recursion=yes ;;
296
297   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
298   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
299   | --oldin | --oldi | --old | --ol | --o)
300     ac_prev=oldincludedir ;;
301   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
302   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
303   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
304     oldincludedir="$ac_optarg" ;;
305
306   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307     ac_prev=prefix ;;
308   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
309     prefix="$ac_optarg" ;;
310
311   -program-prefix | --program-prefix | --program-prefi | --program-pref \
312   | --program-pre | --program-pr | --program-p)
313     ac_prev=program_prefix ;;
314   -program-prefix=* | --program-prefix=* | --program-prefi=* \
315   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
316     program_prefix="$ac_optarg" ;;
317
318   -program-suffix | --program-suffix | --program-suffi | --program-suff \
319   | --program-suf | --program-su | --program-s)
320     ac_prev=program_suffix ;;
321   -program-suffix=* | --program-suffix=* | --program-suffi=* \
322   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
323     program_suffix="$ac_optarg" ;;
324
325   -program-transform-name | --program-transform-name \
326   | --program-transform-nam | --program-transform-na \
327   | --program-transform-n | --program-transform- \
328   | --program-transform | --program-transfor \
329   | --program-transfo | --program-transf \
330   | --program-trans | --program-tran \
331   | --progr-tra | --program-tr | --program-t)
332     ac_prev=program_transform_name ;;
333   -program-transform-name=* | --program-transform-name=* \
334   | --program-transform-nam=* | --program-transform-na=* \
335   | --program-transform-n=* | --program-transform-=* \
336   | --program-transform=* | --program-transfor=* \
337   | --program-transfo=* | --program-transf=* \
338   | --program-trans=* | --program-tran=* \
339   | --progr-tra=* | --program-tr=* | --program-t=*)
340     program_transform_name="$ac_optarg" ;;
341
342   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
343   | -silent | --silent | --silen | --sile | --sil)
344     silent=yes ;;
345
346   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347     ac_prev=sbindir ;;
348   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349   | --sbi=* | --sb=*)
350     sbindir="$ac_optarg" ;;
351
352   -sharedstatedir | --sharedstatedir | --sharedstatedi \
353   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
354   | --sharedst | --shareds | --shared | --share | --shar \
355   | --sha | --sh)
356     ac_prev=sharedstatedir ;;
357   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
358   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
359   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360   | --sha=* | --sh=*)
361     sharedstatedir="$ac_optarg" ;;
362
363   -site | --site | --sit)
364     ac_prev=site ;;
365   -site=* | --site=* | --sit=*)
366     site="$ac_optarg" ;;
367
368   -site-file | --site-file | --site-fil | --site-fi | --site-f)
369     ac_prev=sitefile ;;
370   -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
371     sitefile="$ac_optarg" ;;
372
373   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374     ac_prev=srcdir ;;
375   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
376     srcdir="$ac_optarg" ;;
377
378   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379   | --syscon | --sysco | --sysc | --sys | --sy)
380     ac_prev=sysconfdir ;;
381   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383     sysconfdir="$ac_optarg" ;;
384
385   -target | --target | --targe | --targ | --tar | --ta | --t)
386     ac_prev=target ;;
387   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388     target="$ac_optarg" ;;
389
390   -v | -verbose | --verbose | --verbos | --verbo | --verb)
391     verbose=yes ;;
392
393   -version | --version | --versio | --versi | --vers)
394     echo "configure generated by autoconf version 2.13"
395     exit 0 ;;
396
397   -with-* | --with-*)
398     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399     # Reject names that are not valid shell variable names.
400     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402     fi
403     ac_package=`echo $ac_package| sed 's/-/_/g'`
404     case "$ac_option" in
405       *=*) ;;
406       *) ac_optarg=yes ;;
407     esac
408     eval "with_${ac_package}='$ac_optarg'" ;;
409
410   -without-* | --without-*)
411     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
412     # Reject names that are not valid shell variable names.
413     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415     fi
416     ac_package=`echo $ac_package| sed 's/-/_/g'`
417     eval "with_${ac_package}=no" ;;
418
419   --x)
420     # Obsolete; use --with-x.
421     with_x=yes ;;
422
423   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
424   | --x-incl | --x-inc | --x-in | --x-i)
425     ac_prev=x_includes ;;
426   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
427   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
428     x_includes="$ac_optarg" ;;
429
430   -x-libraries | --x-libraries | --x-librarie | --x-librari \
431   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
432     ac_prev=x_libraries ;;
433   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
434   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
435     x_libraries="$ac_optarg" ;;
436
437   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
438     ;;
439
440   *)
441     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442       echo "configure: warning: $ac_option: invalid host type" 1>&2
443     fi
444     if test "x$nonopt" != xNONE; then
445       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446     fi
447     nonopt="$ac_option"
448     ;;
449
450   esac
451 done
452
453 if test -n "$ac_prev"; then
454   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
455 fi
456
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458
459 # File descriptor usage:
460 # 0 standard input
461 # 1 file creation
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
468   exec 6>/dev/null
469 else
470   exec 6>&1
471 fi
472 exec 5>./config.log
473
474 echo "\
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
477 " 1>&5
478
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
481 ac_configure_args=
482 for ac_arg
483 do
484   case "$ac_arg" in
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c) ;;
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
489   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
491   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
492   esac
493 done
494
495 # NLS nuisances.
496 # Only set these to C if already set.  These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
501 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
503 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
504
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
508 echo > confdefs.h
509
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file=src/ios.cc
513
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516   ac_srcdir_defaulted=yes
517   # Try the directory containing this script, then its parent.
518   ac_prog=$0
519   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
521   srcdir=$ac_confdir
522   if test ! -r $srcdir/$ac_unique_file; then
523     srcdir=..
524   fi
525 else
526   ac_srcdir_defaulted=no
527 fi
528 if test ! -r $srcdir/$ac_unique_file; then
529   if test "$ac_srcdir_defaulted" = yes; then
530     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
531   else
532     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
533   fi
534 fi
535 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$sitefile"; then
539   if test -z "$CONFIG_SITE"; then
540     if test "x$prefix" != xNONE; then
541       CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
542     else
543       CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544     fi
545   fi
546 else
547   CONFIG_SITE="$sitefile"
548 fi
549 for ac_site_file in $CONFIG_SITE; do
550   if test -r "$ac_site_file"; then
551     echo "loading site script $ac_site_file"
552     . "$ac_site_file"
553   fi
554 done
555
556 if test -r "$cache_file"; then
557   echo "loading cache $cache_file"
558   . $cache_file
559 else
560   echo "creating cache $cache_file"
561   > $cache_file
562 fi
563
564 ac_ext=c
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
570
571 ac_exeext=
572 ac_objext=o
573 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
576     ac_n= ac_c='
577 ' ac_t='        '
578   else
579     ac_n=-n ac_c= ac_t=
580   fi
581 else
582   ac_n= ac_c='\c' ac_t=
583 fi
584
585
586
587 PACKAGE=libstdc++
588
589 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
590 release_VERSION=3.1.0
591
592 # For libtool versioning info, format is CURRENT:REVISION:AGE
593 libtool_VERSION=4:0:0
594
595
596 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
597 # AC 2.50 sets target_alias iff the user specified --target, but we use it
598 # everywhere, so we set it here just to be sure.
599 ac_aux_dir=
600 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
601   if test -f $ac_dir/install-sh; then
602     ac_aux_dir=$ac_dir
603     ac_install_sh="$ac_aux_dir/install-sh -c"
604     break
605   elif test -f $ac_dir/install.sh; then
606     ac_aux_dir=$ac_dir
607     ac_install_sh="$ac_aux_dir/install.sh -c"
608     break
609   fi
610 done
611 if test -z "$ac_aux_dir"; then
612   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
613 fi
614 ac_config_guess=$ac_aux_dir/config.guess
615 ac_config_sub=$ac_aux_dir/config.sub
616 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
617
618
619 # Do some error checking and defaulting for the host and target type.
620 # The inputs are:
621 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
622 #
623 # The rules are:
624 # 1. You are not allowed to specify --host, --target, and nonopt at the
625 #    same time.
626 # 2. Host defaults to nonopt.
627 # 3. If nonopt is not specified, then host defaults to the current host,
628 #    as determined by config.guess.
629 # 4. Target and build default to nonopt.
630 # 5. If nonopt is not specified, then target and build default to host.
631
632 # The aliases save the names the user supplied, while $host etc.
633 # will get canonicalized.
634 case $host---$target---$nonopt in
635 NONE---*---* | *---NONE---* | *---*---NONE) ;;
636 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
637 esac
638
639
640 # Make sure we can run config.sub.
641 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
642 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
643 fi
644
645 echo $ac_n "checking host system type""... $ac_c" 1>&6
646 echo "configure:647: checking host system type" >&5
647
648 host_alias=$host
649 case "$host_alias" in
650 NONE)
651   case $nonopt in
652   NONE)
653     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
654     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
655     fi ;;
656   *) host_alias=$nonopt ;;
657   esac ;;
658 esac
659
660 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
661 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
662 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
663 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
664 echo "$ac_t""$host" 1>&6
665
666 echo $ac_n "checking target system type""... $ac_c" 1>&6
667 echo "configure:668: checking target system type" >&5
668
669 target_alias=$target
670 case "$target_alias" in
671 NONE)
672   case $nonopt in
673   NONE) target_alias=$host_alias ;;
674   *) target_alias=$nonopt ;;
675   esac ;;
676 esac
677
678 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
679 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
680 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
681 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
682 echo "$ac_t""$target" 1>&6
683
684 echo $ac_n "checking build system type""... $ac_c" 1>&6
685 echo "configure:686: checking build system type" >&5
686
687 build_alias=$build
688 case "$build_alias" in
689 NONE)
690   case $nonopt in
691   NONE) build_alias=$host_alias ;;
692   *) build_alias=$nonopt ;;
693   esac ;;
694 esac
695
696 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
697 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
698 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
699 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
700 echo "$ac_t""$build" 1>&6
701
702 test "$host_alias" != "$target_alias" &&
703   test "$program_prefix$program_suffix$program_transform_name" = \
704     NONENONEs,x,x, &&
705   program_prefix=${target_alias}-
706
707 target_alias=${target_alias-$target}
708
709
710 # Find a good install program.  We prefer a C program (faster),
711 # so one script is as good as another.  But avoid the broken or
712 # incompatible versions:
713 # SysV /etc/install, /usr/sbin/install
714 # SunOS /usr/etc/install
715 # IRIX /sbin/install
716 # AIX /bin/install
717 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
718 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
719 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
720 # ./install, which can be erroneously created by make from ./install.sh.
721 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
722 echo "configure:723: checking for a BSD compatible install" >&5
723 if test -z "$INSTALL"; then
724 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
725   echo $ac_n "(cached) $ac_c" 1>&6
726 else
727     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
728   for ac_dir in $PATH; do
729     # Account for people who put trailing slashes in PATH elements.
730     case "$ac_dir/" in
731     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
732     *)
733       # OSF1 and SCO ODT 3.0 have their own names for install.
734       # Don't use installbsd from OSF since it installs stuff as root
735       # by default.
736       for ac_prog in ginstall scoinst install; do
737         if test -f $ac_dir/$ac_prog; then
738           if test $ac_prog = install &&
739             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
740             # AIX install.  It has an incompatible calling convention.
741             :
742           else
743             ac_cv_path_install="$ac_dir/$ac_prog -c"
744             break 2
745           fi
746         fi
747       done
748       ;;
749     esac
750   done
751   IFS="$ac_save_IFS"
752
753 fi
754   if test "${ac_cv_path_install+set}" = set; then
755     INSTALL="$ac_cv_path_install"
756   else
757     # As a last resort, use the slow shell script.  We don't cache a
758     # path for INSTALL within a source directory, because that will
759     # break other packages using the cache if that directory is
760     # removed, or if the path is relative.
761     INSTALL="$ac_install_sh"
762   fi
763 fi
764 echo "$ac_t""$INSTALL" 1>&6
765
766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
767 # It thinks the first close brace ends the variable substitution.
768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
769
770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
771
772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
773
774 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
775 echo "configure:776: checking whether build environment is sane" >&5
776 # Just in case
777 sleep 1
778 echo timestamp > conftestfile
779 # Do `set' in a subshell so we don't clobber the current shell's
780 # arguments.  Must try -L first in case configure is actually a
781 # symlink; some systems play weird games with the mod time of symlinks
782 # (eg FreeBSD returns the mod time of the symlink's containing
783 # directory).
784 if (
785    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
786    if test "$*" = "X"; then
787       # -L didn't work.
788       set X `ls -t $srcdir/configure conftestfile`
789    fi
790    if test "$*" != "X $srcdir/configure conftestfile" \
791       && test "$*" != "X conftestfile $srcdir/configure"; then
792
793       # If neither matched, then we have a broken ls.  This can happen
794       # if, for instance, CONFIG_SHELL is bash and it inherits a
795       # broken ls alias from the environment.  This has actually
796       # happened.  Such a system could not be considered "sane".
797       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
798 alias in your environment" 1>&2; exit 1; }
799    fi
800
801    test "$2" = conftestfile
802    )
803 then
804    # Ok.
805    :
806 else
807    { echo "configure: error: newly created file is older than distributed files!
808 Check your system clock" 1>&2; exit 1; }
809 fi
810 rm -f conftest*
811 echo "$ac_t""yes" 1>&6
812 if test "$program_transform_name" = s,x,x,; then
813   program_transform_name=
814 else
815   # Double any \ or $.  echo might interpret backslashes.
816   cat <<\EOF_SED > conftestsed
817 s,\\,\\\\,g; s,\$,$$,g
818 EOF_SED
819   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
820   rm -f conftestsed
821 fi
822 test "$program_prefix" != NONE &&
823   program_transform_name="s,^,${program_prefix},; $program_transform_name"
824 # Use a double $ so make ignores it.
825 test "$program_suffix" != NONE &&
826   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
827
828 # sed with no file args requires a program.
829 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
830
831 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
832 echo "configure:833: checking whether ${MAKE-make} sets \${MAKE}" >&5
833 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
834 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
835   echo $ac_n "(cached) $ac_c" 1>&6
836 else
837   cat > conftestmake <<\EOF
838 all:
839         @echo 'ac_maketemp="${MAKE}"'
840 EOF
841 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
842 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
843 if test -n "$ac_maketemp"; then
844   eval ac_cv_prog_make_${ac_make}_set=yes
845 else
846   eval ac_cv_prog_make_${ac_make}_set=no
847 fi
848 rm -f conftestmake
849 fi
850 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
851   echo "$ac_t""yes" 1>&6
852   SET_MAKE=
853 else
854   echo "$ac_t""no" 1>&6
855   SET_MAKE="MAKE=${MAKE-make}"
856 fi
857
858
859 PACKAGE=$PACKAGE
860
861 VERSION=$release_VERSION
862
863 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
864   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
865 fi
866 cat >> confdefs.h <<EOF
867 #define PACKAGE "$PACKAGE"
868 EOF
869
870 cat >> confdefs.h <<EOF
871 #define VERSION "$VERSION"
872 EOF
873
874
875
876 missing_dir=`cd $ac_aux_dir && pwd`
877 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
878 echo "configure:879: checking for working aclocal" >&5
879 # Run test in a subshell; some versions of sh will print an error if
880 # an executable is not found, even if stderr is redirected.
881 # Redirect stdin to placate older versions of autoconf.  Sigh.
882 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
883    ACLOCAL=aclocal
884    echo "$ac_t""found" 1>&6
885 else
886    ACLOCAL="$missing_dir/missing aclocal"
887    echo "$ac_t""missing" 1>&6
888 fi
889
890 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
891 echo "configure:892: checking for working autoconf" >&5
892 # Run test in a subshell; some versions of sh will print an error if
893 # an executable is not found, even if stderr is redirected.
894 # Redirect stdin to placate older versions of autoconf.  Sigh.
895 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
896    AUTOCONF=autoconf
897    echo "$ac_t""found" 1>&6
898 else
899    AUTOCONF="$missing_dir/missing autoconf"
900    echo "$ac_t""missing" 1>&6
901 fi
902
903 echo $ac_n "checking for working automake""... $ac_c" 1>&6
904 echo "configure:905: checking for working automake" >&5
905 # Run test in a subshell; some versions of sh will print an error if
906 # an executable is not found, even if stderr is redirected.
907 # Redirect stdin to placate older versions of autoconf.  Sigh.
908 if (automake --version) < /dev/null > /dev/null 2>&1; then
909    AUTOMAKE=automake
910    echo "$ac_t""found" 1>&6
911 else
912    AUTOMAKE="$missing_dir/missing automake"
913    echo "$ac_t""missing" 1>&6
914 fi
915
916 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
917 echo "configure:918: checking for working autoheader" >&5
918 # Run test in a subshell; some versions of sh will print an error if
919 # an executable is not found, even if stderr is redirected.
920 # Redirect stdin to placate older versions of autoconf.  Sigh.
921 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
922    AUTOHEADER=autoheader
923    echo "$ac_t""found" 1>&6
924 else
925    AUTOHEADER="$missing_dir/missing autoheader"
926    echo "$ac_t""missing" 1>&6
927 fi
928
929 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
930 echo "configure:931: checking for working makeinfo" >&5
931 # Run test in a subshell; some versions of sh will print an error if
932 # an executable is not found, even if stderr is redirected.
933 # Redirect stdin to placate older versions of autoconf.  Sigh.
934 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
935    MAKEINFO=makeinfo
936    echo "$ac_t""found" 1>&6
937 else
938    MAKEINFO="$missing_dir/missing makeinfo"
939    echo "$ac_t""missing" 1>&6
940 fi
941
942
943
944
945
946
947 # Runs configure.host and configure.target, as well as finds CC, CXX
948 # and assorted other critical bits. Have to run this before the
949 # GLIBCPP_ENABLE_* macros below.
950 if test $host != $build; then
951   ac_tool_prefix=${host_alias}-
952 else
953   ac_tool_prefix=
954 fi
955
956 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
957 echo "configure:958: checking for Cygwin environment" >&5
958 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
959   echo $ac_n "(cached) $ac_c" 1>&6
960 else
961   cat > conftest.$ac_ext <<EOF
962 #line 963 "configure"
963 #include "confdefs.h"
964
965 int main() {
966
967 #ifndef __CYGWIN__
968 #define __CYGWIN__ __CYGWIN32__
969 #endif
970 return __CYGWIN__;
971 ; return 0; }
972 EOF
973 if { (eval echo configure:974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
974   rm -rf conftest*
975   ac_cv_cygwin=yes
976 else
977   echo "configure: failed program was:" >&5
978   cat conftest.$ac_ext >&5
979   rm -rf conftest*
980   ac_cv_cygwin=no
981 fi
982 rm -f conftest*
983 rm -f conftest*
984 fi
985
986 echo "$ac_t""$ac_cv_cygwin" 1>&6
987 CYGWIN=
988 test "$ac_cv_cygwin" = yes && CYGWIN=yes
989 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
990 echo "configure:991: checking for mingw32 environment" >&5
991 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
992   echo $ac_n "(cached) $ac_c" 1>&6
993 else
994   cat > conftest.$ac_ext <<EOF
995 #line 996 "configure"
996 #include "confdefs.h"
997
998 int main() {
999 return __MINGW32__;
1000 ; return 0; }
1001 EOF
1002 if { (eval echo configure:1003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1003   rm -rf conftest*
1004   ac_cv_mingw32=yes
1005 else
1006   echo "configure: failed program was:" >&5
1007   cat conftest.$ac_ext >&5
1008   rm -rf conftest*
1009   ac_cv_mingw32=no
1010 fi
1011 rm -f conftest*
1012 rm -f conftest*
1013 fi
1014
1015 echo "$ac_t""$ac_cv_mingw32" 1>&6
1016 MINGW32=
1017 test "$ac_cv_mingw32" = yes && MINGW32=yes
1018
1019     # Check whether --enable-multilib or --disable-multilib was given.
1020 if test "${enable_multilib+set}" = set; then
1021   enableval="$enable_multilib"
1022   case "${enableval}" in
1023     yes) multilib=yes ;;
1024     no)  multilib=no ;;
1025     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1026    esac
1027 else
1028   multilib=yes
1029 fi
1030
1031 # When building with srcdir == objdir, links to the source files will
1032 # be created in directories within the target_subdir.  We have to
1033 # adjust toplevel_srcdir accordingly, so that configure finds
1034 # install-sh and other auxiliary files that live in the top-level
1035 # source directory.
1036 if test "${srcdir}" = "."; then
1037   if test -z "${with_target_subdir}"; then
1038     toprel=".."
1039   else
1040     if test "${with_target_subdir}" != "."; then
1041       toprel="${with_multisrctop}../.."
1042     else
1043       toprel="${with_multisrctop}.."
1044     fi
1045   fi
1046 else
1047   toprel=".."
1048 fi
1049 ac_aux_dir=
1050 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1051   if test -f $ac_dir/install-sh; then
1052     ac_aux_dir=$ac_dir
1053     ac_install_sh="$ac_aux_dir/install-sh -c"
1054     break
1055   elif test -f $ac_dir/install.sh; then
1056     ac_aux_dir=$ac_dir
1057     ac_install_sh="$ac_aux_dir/install.sh -c"
1058     break
1059   fi
1060 done
1061 if test -z "$ac_aux_dir"; then
1062   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1063 fi
1064 ac_config_guess=$ac_aux_dir/config.guess
1065 ac_config_sub=$ac_aux_dir/config.sub
1066 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1067
1068 toplevel_srcdir=\${top_srcdir}/$toprel
1069
1070
1071 # Export build and source directories.
1072 # These need to be absolute paths, yet at the same time need to
1073 # canonicalize only relative paths, because then amd will not unmount
1074 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1075 glibcpp_builddir=`pwd`
1076 case $srcdir in
1077 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1078 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1079 esac
1080
1081
1082
1083
1084
1085 # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.50+, can also
1086 # be 'cp -p' if linking isn't available.
1087 #ac_cv_prog_LN_S='cp -p'
1088 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1089 echo "configure:1090: checking whether ln -s works" >&5
1090 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1091   echo $ac_n "(cached) $ac_c" 1>&6
1092 else
1093   rm -f conftestdata
1094 if ln -s X conftestdata 2>/dev/null
1095 then
1096   rm -f conftestdata
1097   ac_cv_prog_LN_S="ln -s"
1098 else
1099   ac_cv_prog_LN_S=ln
1100 fi
1101 fi
1102 LN_S="$ac_cv_prog_LN_S"
1103 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1104   echo "$ac_t""yes" 1>&6
1105 else
1106   echo "$ac_t""no" 1>&6
1107 fi
1108
1109
1110 # We use these options to decide which functions to include.
1111 # Check whether --with-target-subdir or --without-target-subdir was given.
1112 if test "${with_target_subdir+set}" = set; then
1113   withval="$with_target_subdir"
1114   :
1115 fi
1116
1117 # Check whether --with-cross-host or --without-cross-host was given.
1118 if test "${with_cross_host+set}" = set; then
1119   withval="$with_cross_host"
1120   :
1121 fi
1122
1123
1124   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1125   
1126
1127   # Never versions of autoconf add an underscore to these functions.
1128   # Prevent future problems ...
1129   
1130   
1131   
1132   
1133
1134 #  AC_PROG_CC
1135
1136 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1137 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1138 # are probably using a cross compiler, which will not be able to fully
1139 # link an executable.  This should really be fixed in autoconf
1140 # itself.
1141
1142
1143
1144
1145 # Extract the first word of "gcc", so it can be a program name with args.
1146 set dummy gcc; ac_word=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1150   echo $ac_n "(cached) $ac_c" 1>&6
1151 else
1152   if test -n "$CC"; then
1153   ac_cv_prog_CC="$CC" # Let the user override the test.
1154 else
1155   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1156   ac_dummy="$PATH"
1157   for ac_dir in $ac_dummy; do
1158     test -z "$ac_dir" && ac_dir=.
1159     if test -f $ac_dir/$ac_word; then
1160       ac_cv_prog_CC="gcc"
1161       break
1162     fi
1163   done
1164   IFS="$ac_save_ifs"
1165 fi
1166 fi
1167 CC="$ac_cv_prog_CC"
1168 if test -n "$CC"; then
1169   echo "$ac_t""$CC" 1>&6
1170 else
1171   echo "$ac_t""no" 1>&6
1172 fi
1173
1174 if test -z "$CC"; then
1175   # Extract the first word of "cc", so it can be a program name with args.
1176 set dummy cc; ac_word=$2
1177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1178 echo "configure:1179: checking for $ac_word" >&5
1179 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1180   echo $ac_n "(cached) $ac_c" 1>&6
1181 else
1182   if test -n "$CC"; then
1183   ac_cv_prog_CC="$CC" # Let the user override the test.
1184 else
1185   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1186   ac_prog_rejected=no
1187   ac_dummy="$PATH"
1188   for ac_dir in $ac_dummy; do
1189     test -z "$ac_dir" && ac_dir=.
1190     if test -f $ac_dir/$ac_word; then
1191       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1192         ac_prog_rejected=yes
1193         continue
1194       fi
1195       ac_cv_prog_CC="cc"
1196       break
1197     fi
1198   done
1199   IFS="$ac_save_ifs"
1200 if test $ac_prog_rejected = yes; then
1201   # We found a bogon in the path, so make sure we never use it.
1202   set dummy $ac_cv_prog_CC
1203   shift
1204   if test $# -gt 0; then
1205     # We chose a different compiler from the bogus one.
1206     # However, it has the same basename, so the bogon will be chosen
1207     # first if we set CC to just the basename; use the full file name.
1208     shift
1209     set dummy "$ac_dir/$ac_word" "$@"
1210     shift
1211     ac_cv_prog_CC="$@"
1212   fi
1213 fi
1214 fi
1215 fi
1216 CC="$ac_cv_prog_CC"
1217 if test -n "$CC"; then
1218   echo "$ac_t""$CC" 1>&6
1219 else
1220   echo "$ac_t""no" 1>&6
1221 fi
1222
1223   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1224 fi
1225
1226 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1227 echo "configure:1228: checking whether we are using GNU C" >&5
1228 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1229   echo $ac_n "(cached) $ac_c" 1>&6
1230 else
1231   cat > conftest.c <<EOF
1232 #ifdef __GNUC__
1233   yes;
1234 #endif
1235 EOF
1236 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1237   ac_cv_prog_gcc=yes
1238 else
1239   ac_cv_prog_gcc=no
1240 fi
1241 fi
1242
1243 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1244
1245 if test $ac_cv_prog_gcc = yes; then
1246   GCC=yes
1247   ac_test_CFLAGS="${CFLAGS+set}"
1248   ac_save_CFLAGS="$CFLAGS"
1249   CFLAGS=
1250   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1251 echo "configure:1252: checking whether ${CC-cc} accepts -g" >&5
1252 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1253   echo $ac_n "(cached) $ac_c" 1>&6
1254 else
1255   echo 'void f(){}' > conftest.c
1256 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1257   ac_cv_prog_cc_g=yes
1258 else
1259   ac_cv_prog_cc_g=no
1260 fi
1261 rm -f conftest*
1262
1263 fi
1264
1265 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1266   if test "$ac_test_CFLAGS" = set; then
1267     CFLAGS="$ac_save_CFLAGS"
1268   elif test $ac_cv_prog_cc_g = yes; then
1269     CFLAGS="-g -O2"
1270   else
1271     CFLAGS="-O2"
1272   fi
1273 else
1274   GCC=
1275   test "${CFLAGS+set}" = set || CFLAGS="-g"
1276 fi
1277
1278
1279 # Can't just call these here as g++ requires libstc++ to be built....
1280 #  AC_PROG_CXX
1281
1282 # Likewise for AC_PROG_CXX.
1283
1284
1285
1286 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1287 # flags that come in CXX while configuring libstdc++.  They're different
1288 # from those used for all other target libraries.  If CXX is set in
1289 # the environment, respect that here.
1290 glibcpp_CXX=$CXX
1291 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1292 do
1293 # Extract the first word of "$ac_prog", so it can be a program name with args.
1294 set dummy $ac_prog; ac_word=$2
1295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1296 echo "configure:1297: checking for $ac_word" >&5
1297 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1298   echo $ac_n "(cached) $ac_c" 1>&6
1299 else
1300   if test -n "$glibcpp_CXX"; then
1301   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1302 else
1303   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1304   ac_dummy="$PATH"
1305   for ac_dir in $ac_dummy; do
1306     test -z "$ac_dir" && ac_dir=.
1307     if test -f $ac_dir/$ac_word; then
1308       ac_cv_prog_glibcpp_CXX="$ac_prog"
1309       break
1310     fi
1311   done
1312   IFS="$ac_save_ifs"
1313 fi
1314 fi
1315 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1316 if test -n "$glibcpp_CXX"; then
1317   echo "$ac_t""$glibcpp_CXX" 1>&6
1318 else
1319   echo "$ac_t""no" 1>&6
1320 fi
1321
1322 test -n "$glibcpp_CXX" && break
1323 done
1324 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1325
1326
1327 CXX=$glibcpp_CXX
1328 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1329
1330 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1331 echo "configure:1332: checking whether we are using GNU C++" >&5
1332 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1333   echo $ac_n "(cached) $ac_c" 1>&6
1334 else
1335   cat > conftest.C <<EOF
1336 #ifdef __GNUC__
1337   yes;
1338 #endif
1339 EOF
1340 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1341   ac_cv_prog_gxx=yes
1342 else
1343   ac_cv_prog_gxx=no
1344 fi
1345 fi
1346
1347 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1348
1349 if test $ac_cv_prog_gxx = yes; then
1350   GXX=yes
1351   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1352   ac_save_CXXFLAGS="$CXXFLAGS"
1353   CXXFLAGS=
1354   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1355 echo "configure:1356: checking whether ${CXX-g++} accepts -g" >&5
1356 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1357   echo $ac_n "(cached) $ac_c" 1>&6
1358 else
1359   echo 'void f(){}' > conftest.cc
1360 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1361   ac_cv_prog_cxx_g=yes
1362 else
1363   ac_cv_prog_cxx_g=no
1364 fi
1365 rm -f conftest*
1366
1367 fi
1368
1369 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1370   if test "$ac_test_CXXFLAGS" = set; then
1371     CXXFLAGS="$ac_save_CXXFLAGS"
1372   elif test $ac_cv_prog_cxx_g = yes; then
1373     CXXFLAGS="-g -O2"
1374   else
1375     CXXFLAGS="-O2"
1376   fi
1377 else
1378   GXX=
1379   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1380 fi
1381
1382
1383    # For some reason, gettext needs this.
1384    echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1385 echo "configure:1386: checking for POSIXized ISC" >&5
1386 if test -d /etc/conf/kconfig.d &&
1387   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1388 then
1389   echo "$ac_t""yes" 1>&6
1390   ISC=yes # If later tests want to check for ISC.
1391   cat >> confdefs.h <<\EOF
1392 #define _POSIX_SOURCE 1
1393 EOF
1394
1395   if test "$GCC" = yes; then
1396     CC="$CC -posix"
1397   else
1398     CC="$CC -Xp"
1399   fi
1400 else
1401   echo "$ac_t""no" 1>&6
1402   ISC=
1403 fi
1404
1405
1406   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1407 set dummy ${ac_tool_prefix}as; ac_word=$2
1408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1409 echo "configure:1410: checking for $ac_word" >&5
1410 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1411   echo $ac_n "(cached) $ac_c" 1>&6
1412 else
1413   if test -n "$AS"; then
1414   ac_cv_prog_AS="$AS" # Let the user override the test.
1415 else
1416   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1417   ac_dummy="$PATH"
1418   for ac_dir in $ac_dummy; do
1419     test -z "$ac_dir" && ac_dir=.
1420     if test -f $ac_dir/$ac_word; then
1421       ac_cv_prog_AS="${ac_tool_prefix}as"
1422       break
1423     fi
1424   done
1425   IFS="$ac_save_ifs"
1426   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1427 fi
1428 fi
1429 AS="$ac_cv_prog_AS"
1430 if test -n "$AS"; then
1431   echo "$ac_t""$AS" 1>&6
1432 else
1433   echo "$ac_t""no" 1>&6
1434 fi
1435
1436
1437
1438   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1439 set dummy ${ac_tool_prefix}ar; ac_word=$2
1440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1441 echo "configure:1442: checking for $ac_word" >&5
1442 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1443   echo $ac_n "(cached) $ac_c" 1>&6
1444 else
1445   if test -n "$AR"; then
1446   ac_cv_prog_AR="$AR" # Let the user override the test.
1447 else
1448   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1449   ac_dummy="$PATH"
1450   for ac_dir in $ac_dummy; do
1451     test -z "$ac_dir" && ac_dir=.
1452     if test -f $ac_dir/$ac_word; then
1453       ac_cv_prog_AR="${ac_tool_prefix}ar"
1454       break
1455     fi
1456   done
1457   IFS="$ac_save_ifs"
1458   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1459 fi
1460 fi
1461 AR="$ac_cv_prog_AR"
1462 if test -n "$AR"; then
1463   echo "$ac_t""$AR" 1>&6
1464 else
1465   echo "$ac_t""no" 1>&6
1466 fi
1467
1468
1469
1470   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1471 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1473 echo "configure:1474: checking for $ac_word" >&5
1474 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1475   echo $ac_n "(cached) $ac_c" 1>&6
1476 else
1477   if test -n "$RANLIB"; then
1478   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1479 else
1480   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1481   ac_dummy="$PATH"
1482   for ac_dir in $ac_dummy; do
1483     test -z "$ac_dir" && ac_dir=.
1484     if test -f $ac_dir/$ac_word; then
1485       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1486       break
1487     fi
1488   done
1489   IFS="$ac_save_ifs"
1490 fi
1491 fi
1492 RANLIB="$ac_cv_prog_RANLIB"
1493 if test -n "$RANLIB"; then
1494   echo "$ac_t""$RANLIB" 1>&6
1495 else
1496   echo "$ac_t""no" 1>&6
1497 fi
1498
1499
1500 if test -z "$ac_cv_prog_RANLIB"; then
1501 if test -n "$ac_tool_prefix"; then
1502   # Extract the first word of "ranlib", so it can be a program name with args.
1503 set dummy ranlib; ac_word=$2
1504 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1505 echo "configure:1506: checking for $ac_word" >&5
1506 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1507   echo $ac_n "(cached) $ac_c" 1>&6
1508 else
1509   if test -n "$RANLIB"; then
1510   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1511 else
1512   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1513   ac_dummy="$PATH"
1514   for ac_dir in $ac_dummy; do
1515     test -z "$ac_dir" && ac_dir=.
1516     if test -f $ac_dir/$ac_word; then
1517       ac_cv_prog_RANLIB="ranlib"
1518       break
1519     fi
1520   done
1521   IFS="$ac_save_ifs"
1522   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1523 fi
1524 fi
1525 RANLIB="$ac_cv_prog_RANLIB"
1526 if test -n "$RANLIB"; then
1527   echo "$ac_t""$RANLIB" 1>&6
1528 else
1529   echo "$ac_t""no" 1>&6
1530 fi
1531
1532 else
1533   RANLIB="ranlib-not-found-in-path-error"
1534 fi
1535 fi
1536
1537   # Find a good install program.  We prefer a C program (faster),
1538 # so one script is as good as another.  But avoid the broken or
1539 # incompatible versions:
1540 # SysV /etc/install, /usr/sbin/install
1541 # SunOS /usr/etc/install
1542 # IRIX /sbin/install
1543 # AIX /bin/install
1544 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1545 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1546 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1547 # ./install, which can be erroneously created by make from ./install.sh.
1548 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1549 echo "configure:1550: checking for a BSD compatible install" >&5
1550 if test -z "$INSTALL"; then
1551 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1552   echo $ac_n "(cached) $ac_c" 1>&6
1553 else
1554     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1555   for ac_dir in $PATH; do
1556     # Account for people who put trailing slashes in PATH elements.
1557     case "$ac_dir/" in
1558     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1559     *)
1560       # OSF1 and SCO ODT 3.0 have their own names for install.
1561       # Don't use installbsd from OSF since it installs stuff as root
1562       # by default.
1563       for ac_prog in ginstall scoinst install; do
1564         if test -f $ac_dir/$ac_prog; then
1565           if test $ac_prog = install &&
1566             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1567             # AIX install.  It has an incompatible calling convention.
1568             :
1569           else
1570             ac_cv_path_install="$ac_dir/$ac_prog -c"
1571             break 2
1572           fi
1573         fi
1574       done
1575       ;;
1576     esac
1577   done
1578   IFS="$ac_save_IFS"
1579
1580 fi
1581   if test "${ac_cv_path_install+set}" = set; then
1582     INSTALL="$ac_cv_path_install"
1583   else
1584     # As a last resort, use the slow shell script.  We don't cache a
1585     # path for INSTALL within a source directory, because that will
1586     # break other packages using the cache if that directory is
1587     # removed, or if the path is relative.
1588     INSTALL="$ac_install_sh"
1589   fi
1590 fi
1591 echo "$ac_t""$INSTALL" 1>&6
1592
1593 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1594 # It thinks the first close brace ends the variable substitution.
1595 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1596
1597 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1598
1599 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1600
1601
1602   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1603 echo "configure:1604: checking whether to enable maintainer-specific portions of Makefiles" >&5
1604     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1605 if test "${enable_maintainer_mode+set}" = set; then
1606   enableval="$enable_maintainer_mode"
1607   USE_MAINTAINER_MODE=$enableval
1608 else
1609   USE_MAINTAINER_MODE=no
1610 fi
1611
1612   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1613   
1614
1615 if test $USE_MAINTAINER_MODE = yes; then
1616   MAINTAINER_MODE_TRUE=
1617   MAINTAINER_MODE_FALSE='#'
1618 else
1619   MAINTAINER_MODE_TRUE='#'
1620   MAINTAINER_MODE_FALSE=
1621 fi
1622   MAINT=$MAINTAINER_MODE_TRUE
1623   
1624
1625
1626   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1627   # at least currently, we never actually build a program, so we never
1628   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1629   # fails, because we are probably configuring with a cross compiler
1630   # which cant create executables.  So we include AC_EXEEXT to keep
1631   # automake happy, but we dont execute it, since we dont care about
1632   # the result.
1633   if false; then
1634     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1635     # to nothing, so nothing would remain between `then' and `fi' if it
1636     # were not for the `:' below.
1637     :
1638     
1639
1640 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1641 echo "configure:1642: checking for executable suffix" >&5
1642 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1643   echo $ac_n "(cached) $ac_c" 1>&6
1644 else
1645   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1646   ac_cv_exeext=.exe
1647 else
1648   rm -f conftest*
1649   echo 'int main () { return 0; }' > conftest.$ac_ext
1650   ac_cv_exeext=
1651   if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1652     for file in conftest.*; do
1653       case $file in
1654       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1655       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1656       esac
1657     done
1658   else
1659     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1660   fi
1661   rm -f conftest*
1662   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1663 fi
1664 fi
1665
1666 EXEEXT=""
1667 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1668 echo "$ac_t""${ac_cv_exeext}" 1>&6
1669 ac_exeext=$EXEEXT
1670
1671   fi
1672
1673   . ${glibcpp_basedir}/configure.host
1674
1675   case ${glibcpp_basedir} in
1676     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1677     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1678   esac
1679
1680   # This does for the target what configure.host does for the host.  In
1681   # addition to possibly modifying the same flags, it also sets up symlinks.
1682   
1683     . ${glibcpp_basedir}/configure.target
1684     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1685     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1686
1687
1688   # 
1689
1690
1691
1692 # Check whether --enable-shared or --disable-shared was given.
1693 if test "${enable_shared+set}" = set; then
1694   enableval="$enable_shared"
1695   p=${PACKAGE-default}
1696 case $enableval in
1697 yes) enable_shared=yes ;;
1698 no) enable_shared=no ;;
1699 *)
1700   enable_shared=no
1701   # Look at the argument we got.  We use all the common list separators.
1702   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1703   for pkg in $enableval; do
1704     if test "X$pkg" = "X$p"; then
1705       enable_shared=yes
1706     fi
1707   done
1708   IFS="$ac_save_ifs"
1709   ;;
1710 esac
1711 else
1712   enable_shared=yes
1713 fi
1714
1715 # Check whether --enable-static or --disable-static was given.
1716 if test "${enable_static+set}" = set; then
1717   enableval="$enable_static"
1718   p=${PACKAGE-default}
1719 case $enableval in
1720 yes) enable_static=yes ;;
1721 no) enable_static=no ;;
1722 *)
1723   enable_static=no
1724   # Look at the argument we got.  We use all the common list separators.
1725   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1726   for pkg in $enableval; do
1727     if test "X$pkg" = "X$p"; then
1728       enable_static=yes
1729     fi
1730   done
1731   IFS="$ac_save_ifs"
1732   ;;
1733 esac
1734 else
1735   enable_static=yes
1736 fi
1737
1738 # Check whether --enable-fast-install or --disable-fast-install was given.
1739 if test "${enable_fast_install+set}" = set; then
1740   enableval="$enable_fast_install"
1741   p=${PACKAGE-default}
1742 case $enableval in
1743 yes) enable_fast_install=yes ;;
1744 no) enable_fast_install=no ;;
1745 *)
1746   enable_fast_install=no
1747   # Look at the argument we got.  We use all the common list separators.
1748   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1749   for pkg in $enableval; do
1750     if test "X$pkg" = "X$p"; then
1751       enable_fast_install=yes
1752     fi
1753   done
1754   IFS="$ac_save_ifs"
1755   ;;
1756 esac
1757 else
1758   enable_fast_install=yes
1759 fi
1760
1761 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1762 if test "${with_gnu_ld+set}" = set; then
1763   withval="$with_gnu_ld"
1764   test "$withval" = no || with_gnu_ld=yes
1765 else
1766   with_gnu_ld=no
1767 fi
1768
1769 ac_prog=ld
1770 if test "$GCC" = yes; then
1771   # Check if gcc -print-prog-name=ld gives a path.
1772   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1773 echo "configure:1774: checking for ld used by GCC" >&5
1774   case $host in
1775   *-*-mingw*)
1776     # gcc leaves a trailing carriage return which upsets mingw
1777     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1778   *)
1779     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1780   esac
1781   case $ac_prog in
1782     # Accept absolute paths.
1783     [\\/]* | [A-Za-z]:[\\/]*)
1784       re_direlt='/[^/][^/]*/\.\./'
1785       # Canonicalize the path of ld
1786       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1787       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1788         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1789       done
1790       test -z "$LD" && LD="$ac_prog"
1791       ;;
1792   "")
1793     # If it fails, then pretend we aren't using GCC.
1794     ac_prog=ld
1795     ;;
1796   *)
1797     # If it is relative, then search for the first ld in PATH.
1798     with_gnu_ld=unknown
1799     ;;
1800   esac
1801 elif test "$with_gnu_ld" = yes; then
1802   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1803 echo "configure:1804: checking for GNU ld" >&5
1804 else
1805   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1806 echo "configure:1807: checking for non-GNU ld" >&5
1807 fi
1808 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1809   echo $ac_n "(cached) $ac_c" 1>&6
1810 else
1811   if test -z "$LD"; then
1812   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1813   for ac_dir in $PATH; do
1814     test -z "$ac_dir" && ac_dir=.
1815     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1816       lt_cv_path_LD="$ac_dir/$ac_prog"
1817       # Check to see if the program is GNU ld.  I'd rather use --version,
1818       # but apparently some GNU ld's only accept -v.
1819       # Break only if it was the GNU/non-GNU ld that we prefer.
1820       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1821         test "$with_gnu_ld" != no && break
1822       else
1823         test "$with_gnu_ld" != yes && break
1824       fi
1825     fi
1826   done
1827   IFS="$ac_save_ifs"
1828 else
1829   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1830 fi
1831 fi
1832
1833 LD="$lt_cv_path_LD"
1834 if test -n "$LD"; then
1835   echo "$ac_t""$LD" 1>&6
1836 else
1837   echo "$ac_t""no" 1>&6
1838 fi
1839 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1840 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1841 echo "configure:1842: checking if the linker ($LD) is GNU ld" >&5
1842 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1843   echo $ac_n "(cached) $ac_c" 1>&6
1844 else
1845   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1846 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1847   lt_cv_prog_gnu_ld=yes
1848 else
1849   lt_cv_prog_gnu_ld=no
1850 fi
1851 fi
1852
1853 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1854 with_gnu_ld=$lt_cv_prog_gnu_ld
1855
1856
1857 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1858 echo "configure:1859: checking for $LD option to reload object files" >&5
1859 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1860   echo $ac_n "(cached) $ac_c" 1>&6
1861 else
1862   lt_cv_ld_reload_flag='-r'
1863 fi
1864
1865 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1866 reload_flag=$lt_cv_ld_reload_flag
1867 test -n "$reload_flag" && reload_flag=" $reload_flag"
1868
1869 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1870 echo "configure:1871: checking for BSD-compatible nm" >&5
1871 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1872   echo $ac_n "(cached) $ac_c" 1>&6
1873 else
1874   if test -n "$NM"; then
1875   # Let the user override the test.
1876   lt_cv_path_NM="$NM"
1877 else
1878   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1879   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1880     test -z "$ac_dir" && ac_dir=.
1881     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1882     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1883       # Check to see if the nm accepts a BSD-compat flag.
1884       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1885       #   nm: unknown option "B" ignored
1886       # Tru64's nm complains that /dev/null is an invalid object file
1887       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1888         lt_cv_path_NM="$tmp_nm -B"
1889         break
1890       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1891         lt_cv_path_NM="$tmp_nm -p"
1892         break
1893       else
1894         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1895         continue # so that we can try to find one that supports BSD flags
1896       fi
1897     fi
1898   done
1899   IFS="$ac_save_ifs"
1900   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1901 fi
1902 fi
1903
1904 NM="$lt_cv_path_NM"
1905 echo "$ac_t""$NM" 1>&6
1906
1907 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1908 echo "configure:1909: checking how to recognise dependant libraries" >&5
1909 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1910   echo $ac_n "(cached) $ac_c" 1>&6
1911 else
1912   lt_cv_file_magic_cmd='$MAGIC_CMD'
1913 lt_cv_file_magic_test_file=
1914 lt_cv_deplibs_check_method='unknown'
1915 # Need to set the preceding variable on all platforms that support
1916 # interlibrary dependencies.
1917 # 'none' -- dependencies not supported.
1918 # `unknown' -- same as none, but documents that we really don't know.
1919 # 'pass_all' -- all dependencies passed with no checks.
1920 # 'test_compile' -- check by making test program.
1921 # 'file_magic [regex]' -- check by looking for files in library path
1922 # which responds to the $file_magic_cmd with a given egrep regex.
1923 # If you have `file' or equivalent on your system and you're not sure
1924 # whether `pass_all' will *always* work, you probably want this one.
1925
1926 case $host_os in
1927 aix*)
1928   lt_cv_deplibs_check_method=pass_all
1929   ;;
1930
1931 beos*)
1932   lt_cv_deplibs_check_method=pass_all
1933   ;;
1934
1935 bsdi4*)
1936   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1937   lt_cv_file_magic_cmd='/usr/bin/file -L'
1938   lt_cv_file_magic_test_file=/shlib/libc.so
1939   ;;
1940
1941 cygwin* | mingw* |pw32*)
1942   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1943   lt_cv_file_magic_cmd='$OBJDUMP -f'
1944   ;;
1945
1946 darwin* | rhapsody*)
1947   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1948   lt_cv_file_magic_cmd='/usr/bin/file -L'
1949   case "$host_os" in
1950   rhapsody* | darwin1.012)
1951     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1952     ;;
1953   *) # Darwin 1.3 on
1954     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1955     ;;
1956   esac
1957   ;;
1958
1959 freebsd* )
1960   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1961     case $host_cpu in
1962     i*86 )
1963       # Not sure whether the presence of OpenBSD here was a mistake.
1964       # Let's accept both of them until this is cleared up.
1965       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1966       lt_cv_file_magic_cmd=/usr/bin/file
1967       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1968       ;;
1969     esac
1970   else
1971     lt_cv_deplibs_check_method=pass_all
1972   fi
1973   ;;
1974
1975 gnu*)
1976   lt_cv_deplibs_check_method=pass_all
1977   ;;
1978
1979 hpux10.20*|hpux11*)
1980   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1981   lt_cv_file_magic_cmd=/usr/bin/file
1982   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1983   ;;
1984
1985 irix5* | irix6*)
1986   case $host_os in
1987   irix5*)
1988     # this will be overridden with pass_all, but let us keep it just in case
1989     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1990     ;;
1991   *)
1992     case $LD in
1993     *-32|*"-32 ") libmagic=32-bit;;
1994     *-n32|*"-n32 ") libmagic=N32;;
1995     *-64|*"-64 ") libmagic=64-bit;;
1996     *) libmagic=never-match;;
1997     esac
1998     # this will be overridden with pass_all, but let us keep it just in case
1999     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2000     ;;
2001   esac
2002   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2003   lt_cv_deplibs_check_method=pass_all
2004   ;;
2005
2006 # This must be Linux ELF.
2007 linux-gnu*)
2008   case $host_cpu in
2009   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2010     lt_cv_deplibs_check_method=pass_all ;;
2011   *)
2012     # glibc up to 2.1.1 does not perform some relocations on ARM
2013     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2014   esac
2015   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2016   ;;
2017
2018 netbsd*)
2019   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2020     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2021   else
2022     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2023   fi
2024   ;;
2025
2026 newsos6)
2027   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2028   lt_cv_file_magic_cmd=/usr/bin/file
2029   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2030   ;;
2031
2032 osf3* | osf4* | osf5*)
2033   # this will be overridden with pass_all, but let us keep it just in case
2034   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2035   lt_cv_file_magic_test_file=/shlib/libc.so
2036   lt_cv_deplibs_check_method=pass_all
2037   ;;
2038
2039 sco3.2v5*)
2040   lt_cv_deplibs_check_method=pass_all
2041   ;;
2042
2043 solaris*)
2044   lt_cv_deplibs_check_method=pass_all
2045   lt_cv_file_magic_test_file=/lib/libc.so
2046   ;;
2047
2048 sysv5uw[78]* | sysv4*uw2*)
2049   lt_cv_deplibs_check_method=pass_all
2050   ;;
2051
2052 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2053   case $host_vendor in
2054   ncr)
2055     lt_cv_deplibs_check_method=pass_all
2056     ;;
2057   motorola)
2058     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]'
2059     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2060     ;;
2061   esac
2062   ;;
2063 esac
2064
2065 fi
2066
2067 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2068 file_magic_cmd=$lt_cv_file_magic_cmd
2069 deplibs_check_method=$lt_cv_deplibs_check_method
2070
2071 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2072 echo "configure:2073: checking for object suffix" >&5
2073 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2074   echo $ac_n "(cached) $ac_c" 1>&6
2075 else
2076   rm -f conftest*
2077 echo 'int i = 1;' > conftest.$ac_ext
2078 if { (eval echo configure:2079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2079   for ac_file in conftest.*; do
2080     case $ac_file in
2081     *.c) ;;
2082     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2083     esac
2084   done
2085 else
2086   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2087 fi
2088 rm -f conftest*
2089 fi
2090
2091 echo "$ac_t""$ac_cv_objext" 1>&6
2092 OBJEXT=$ac_cv_objext
2093 ac_objext=$ac_cv_objext
2094
2095 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2096
2097 # Only perform the check for file, if the check method requires it
2098 case $deplibs_check_method in
2099 file_magic*)
2100   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2101     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2102 echo "configure:2103: checking for ${ac_tool_prefix}file" >&5
2103 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2104   echo $ac_n "(cached) $ac_c" 1>&6
2105 else
2106   case $MAGIC_CMD in
2107   /*)
2108   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2109   ;;
2110   ?:/*)
2111   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2112   ;;
2113   *)
2114   ac_save_MAGIC_CMD="$MAGIC_CMD"
2115   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2116   ac_dummy="/usr/bin:$PATH"
2117   for ac_dir in $ac_dummy; do
2118     test -z "$ac_dir" && ac_dir=.
2119     if test -f $ac_dir/${ac_tool_prefix}file; then
2120       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2121       if test -n "$file_magic_test_file"; then
2122         case $deplibs_check_method in
2123         "file_magic "*)
2124           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2125           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2126           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2127             egrep "$file_magic_regex" > /dev/null; then
2128             :
2129           else
2130             cat <<EOF 1>&2
2131
2132 *** Warning: the command libtool uses to detect shared libraries,
2133 *** $file_magic_cmd, produces output that libtool cannot recognize.
2134 *** The result is that libtool may fail to recognize shared libraries
2135 *** as such.  This will affect the creation of libtool libraries that
2136 *** depend on shared libraries, but programs linked with such libtool
2137 *** libraries will work regardless of this problem.  Nevertheless, you
2138 *** may want to report the problem to your system manager and/or to
2139 *** bug-libtool@gnu.org
2140
2141 EOF
2142           fi ;;
2143         esac
2144       fi
2145       break
2146     fi
2147   done
2148   IFS="$ac_save_ifs"
2149   MAGIC_CMD="$ac_save_MAGIC_CMD"
2150   ;;
2151 esac
2152 fi
2153
2154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2155 if test -n "$MAGIC_CMD"; then
2156   echo "$ac_t""$MAGIC_CMD" 1>&6
2157 else
2158   echo "$ac_t""no" 1>&6
2159 fi
2160
2161 if test -z "$lt_cv_path_MAGIC_CMD"; then
2162   if test -n "$ac_tool_prefix"; then
2163     echo $ac_n "checking for file""... $ac_c" 1>&6
2164 echo "configure:2165: checking for file" >&5
2165 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2166   echo $ac_n "(cached) $ac_c" 1>&6
2167 else
2168   case $MAGIC_CMD in
2169   /*)
2170   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2171   ;;
2172   ?:/*)
2173   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2174   ;;
2175   *)
2176   ac_save_MAGIC_CMD="$MAGIC_CMD"
2177   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2178   ac_dummy="/usr/bin:$PATH"
2179   for ac_dir in $ac_dummy; do
2180     test -z "$ac_dir" && ac_dir=.
2181     if test -f $ac_dir/file; then
2182       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2183       if test -n "$file_magic_test_file"; then
2184         case $deplibs_check_method in
2185         "file_magic "*)
2186           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2187           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2188           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2189             egrep "$file_magic_regex" > /dev/null; then
2190             :
2191           else
2192             cat <<EOF 1>&2
2193
2194 *** Warning: the command libtool uses to detect shared libraries,
2195 *** $file_magic_cmd, produces output that libtool cannot recognize.
2196 *** The result is that libtool may fail to recognize shared libraries
2197 *** as such.  This will affect the creation of libtool libraries that
2198 *** depend on shared libraries, but programs linked with such libtool
2199 *** libraries will work regardless of this problem.  Nevertheless, you
2200 *** may want to report the problem to your system manager and/or to
2201 *** bug-libtool@gnu.org
2202
2203 EOF
2204           fi ;;
2205         esac
2206       fi
2207       break
2208     fi
2209   done
2210   IFS="$ac_save_ifs"
2211   MAGIC_CMD="$ac_save_MAGIC_CMD"
2212   ;;
2213 esac
2214 fi
2215
2216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2217 if test -n "$MAGIC_CMD"; then
2218   echo "$ac_t""$MAGIC_CMD" 1>&6
2219 else
2220   echo "$ac_t""no" 1>&6
2221 fi
2222
2223   else
2224     MAGIC_CMD=:
2225   fi
2226 fi
2227
2228   fi
2229   ;;
2230 esac
2231
2232 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2233 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2235 echo "configure:2236: checking for $ac_word" >&5
2236 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2237   echo $ac_n "(cached) $ac_c" 1>&6
2238 else
2239   if test -n "$RANLIB"; then
2240   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2241 else
2242   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2243   ac_dummy="$PATH"
2244   for ac_dir in $ac_dummy; do
2245     test -z "$ac_dir" && ac_dir=.
2246     if test -f $ac_dir/$ac_word; then
2247       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2248       break
2249     fi
2250   done
2251   IFS="$ac_save_ifs"
2252 fi
2253 fi
2254 RANLIB="$ac_cv_prog_RANLIB"
2255 if test -n "$RANLIB"; then
2256   echo "$ac_t""$RANLIB" 1>&6
2257 else
2258   echo "$ac_t""no" 1>&6
2259 fi
2260
2261
2262 if test -z "$ac_cv_prog_RANLIB"; then
2263 if test -n "$ac_tool_prefix"; then
2264   # Extract the first word of "ranlib", so it can be a program name with args.
2265 set dummy ranlib; ac_word=$2
2266 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2267 echo "configure:2268: checking for $ac_word" >&5
2268 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2269   echo $ac_n "(cached) $ac_c" 1>&6
2270 else
2271   if test -n "$RANLIB"; then
2272   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2273 else
2274   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2275   ac_dummy="$PATH"
2276   for ac_dir in $ac_dummy; do
2277     test -z "$ac_dir" && ac_dir=.
2278     if test -f $ac_dir/$ac_word; then
2279       ac_cv_prog_RANLIB="ranlib"
2280       break
2281     fi
2282   done
2283   IFS="$ac_save_ifs"
2284   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2285 fi
2286 fi
2287 RANLIB="$ac_cv_prog_RANLIB"
2288 if test -n "$RANLIB"; then
2289   echo "$ac_t""$RANLIB" 1>&6
2290 else
2291   echo "$ac_t""no" 1>&6
2292 fi
2293
2294 else
2295   RANLIB=":"
2296 fi
2297 fi
2298
2299 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2300 set dummy ${ac_tool_prefix}strip; ac_word=$2
2301 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2302 echo "configure:2303: checking for $ac_word" >&5
2303 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2304   echo $ac_n "(cached) $ac_c" 1>&6
2305 else
2306   if test -n "$STRIP"; then
2307   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2308 else
2309   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2310   ac_dummy="$PATH"
2311   for ac_dir in $ac_dummy; do
2312     test -z "$ac_dir" && ac_dir=.
2313     if test -f $ac_dir/$ac_word; then
2314       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2315       break
2316     fi
2317   done
2318   IFS="$ac_save_ifs"
2319 fi
2320 fi
2321 STRIP="$ac_cv_prog_STRIP"
2322 if test -n "$STRIP"; then
2323   echo "$ac_t""$STRIP" 1>&6
2324 else
2325   echo "$ac_t""no" 1>&6
2326 fi
2327
2328
2329 if test -z "$ac_cv_prog_STRIP"; then
2330 if test -n "$ac_tool_prefix"; then
2331   # Extract the first word of "strip", so it can be a program name with args.
2332 set dummy strip; ac_word=$2
2333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2334 echo "configure:2335: checking for $ac_word" >&5
2335 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2336   echo $ac_n "(cached) $ac_c" 1>&6
2337 else
2338   if test -n "$STRIP"; then
2339   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2340 else
2341   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2342   ac_dummy="$PATH"
2343   for ac_dir in $ac_dummy; do
2344     test -z "$ac_dir" && ac_dir=.
2345     if test -f $ac_dir/$ac_word; then
2346       ac_cv_prog_STRIP="strip"
2347       break
2348     fi
2349   done
2350   IFS="$ac_save_ifs"
2351   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2352 fi
2353 fi
2354 STRIP="$ac_cv_prog_STRIP"
2355 if test -n "$STRIP"; then
2356   echo "$ac_t""$STRIP" 1>&6
2357 else
2358   echo "$ac_t""no" 1>&6
2359 fi
2360
2361 else
2362   STRIP=":"
2363 fi
2364 fi
2365
2366
2367 # Check for any special flags to pass to ltconfig.
2368 libtool_flags="--cache-file=$cache_file"
2369 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2370 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2371 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2372 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2373 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2374 libtool_flags="$libtool_flags --enable-dlopen"
2375
2376 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2377 if test "${enable_libtool_lock+set}" = set; then
2378   enableval="$enable_libtool_lock"
2379   :
2380 fi
2381
2382 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2383 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2384
2385 # Check whether --with-pic or --without-pic was given.
2386 if test "${with_pic+set}" = set; then
2387   withval="$with_pic"
2388   pic_mode="$withval"
2389 else
2390   pic_mode=default
2391 fi
2392
2393 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2394 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2395
2396 # Some flags need to be propagated to the compiler or linker for good
2397 # libtool support.
2398 case $host in
2399 *-*-irix6*)
2400   # Find out which ABI we are using.
2401   echo '#line 2402 "configure"' > conftest.$ac_ext
2402   if { (eval echo configure:2403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2403     case `/usr/bin/file conftest.$ac_objext` in
2404     *32-bit*)
2405       LD="${LD-ld} -32"
2406       ;;
2407     *N32*)
2408       LD="${LD-ld} -n32"
2409       ;;
2410     *64-bit*)
2411       LD="${LD-ld} -64"
2412       ;;
2413     esac
2414   fi
2415   rm -rf conftest*
2416   ;;
2417
2418 *-*-sco3.2v5*)
2419   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2420   SAVE_CFLAGS="$CFLAGS"
2421   CFLAGS="$CFLAGS -belf"
2422   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2423 echo "configure:2424: checking whether the C compiler needs -belf" >&5
2424 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2425   echo $ac_n "(cached) $ac_c" 1>&6
2426 else
2427   
2428      ac_ext=c
2429 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2432 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2433 cross_compiling=$ac_cv_prog_cc_cross
2434
2435      cat > conftest.$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2438
2439 int main() {
2440
2441 ; return 0; }
2442 EOF
2443 if { (eval echo configure:2444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2444   rm -rf conftest*
2445   lt_cv_cc_needs_belf=yes
2446 else
2447   echo "configure: failed program was:" >&5
2448   cat conftest.$ac_ext >&5
2449   rm -rf conftest*
2450   lt_cv_cc_needs_belf=no
2451 fi
2452 rm -f conftest*
2453      ac_ext=c
2454 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2457 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2458 cross_compiling=$ac_cv_prog_cc_cross
2459
2460 fi
2461
2462 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2463   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2464     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2465     CFLAGS="$SAVE_CFLAGS"
2466   fi
2467   ;;
2468
2469
2470 esac
2471
2472 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2473 echo "configure:2474: checking how to run the C++ preprocessor" >&5
2474 if test -z "$CXXCPP"; then
2475 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2476   echo $ac_n "(cached) $ac_c" 1>&6
2477 else
2478   ac_ext=C
2479 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2480 ac_cpp='$CXXCPP $CPPFLAGS'
2481 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2482 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2483 cross_compiling=$ac_cv_prog_cxx_cross
2484   CXXCPP="${CXX-g++} -E"
2485   cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 #include <stdlib.h>
2489 EOF
2490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2491 { (eval echo configure:2492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2493 if test -z "$ac_err"; then
2494   :
2495 else
2496   echo "$ac_err" >&5
2497   echo "configure: failed program was:" >&5
2498   cat conftest.$ac_ext >&5
2499   rm -rf conftest*
2500   CXXCPP=/lib/cpp
2501 fi
2502 rm -f conftest*
2503   ac_cv_prog_CXXCPP="$CXXCPP"
2504 ac_ext=c
2505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2509 cross_compiling=$ac_cv_prog_cc_cross
2510 fi
2511 fi
2512 CXXCPP="$ac_cv_prog_CXXCPP"
2513 echo "$ac_t""$CXXCPP" 1>&6
2514
2515
2516 # Save cache, so that ltconfig can load it
2517 cat > confcache <<\EOF
2518 # This file is a shell script that caches the results of configure
2519 # tests run on this system so they can be shared between configure
2520 # scripts and configure runs.  It is not useful on other systems.
2521 # If it contains results you don't want to keep, you may remove or edit it.
2522 #
2523 # By default, configure uses ./config.cache as the cache file,
2524 # creating it if it does not exist already.  You can give configure
2525 # the --cache-file=FILE option to use a different cache file; that is
2526 # what configure does when it calls configure scripts in
2527 # subdirectories, so they share the cache.
2528 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2529 # config.status only pays attention to the cache file if you give it the
2530 # --recheck option to rerun configure.
2531 #
2532 EOF
2533 # The following way of writing the cache mishandles newlines in values,
2534 # but we know of no workaround that is simple, portable, and efficient.
2535 # So, don't put newlines in cache variables' values.
2536 # Ultrix sh set writes to stderr and can't be redirected directly,
2537 # and sets the high bit in the cache file unless we assign to the vars.
2538 (set) 2>&1 |
2539   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2540   *ac_space=\ *)
2541     # `set' does not quote correctly, so add quotes (double-quote substitution
2542     # turns \\\\ into \\, and sed turns \\ into \).
2543     sed -n \
2544       -e "s/'/'\\\\''/g" \
2545       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2546     ;;
2547   *)
2548     # `set' quotes correctly as required by POSIX, so do not add quotes.
2549     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2550     ;;
2551   esac >> confcache
2552 if cmp -s $cache_file confcache; then
2553   :
2554 else
2555   if test -w $cache_file; then
2556     echo "updating cache $cache_file"
2557     cat confcache > $cache_file
2558   else
2559     echo "not updating unwritable cache $cache_file"
2560   fi
2561 fi
2562 rm -f confcache
2563
2564
2565 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2566 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2567 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2568 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2569 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2570 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2571 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2572 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2573 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2574 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2575
2576 # Reload cache, that may have been modified by ltconfig
2577 if test -r "$cache_file"; then
2578   echo "loading cache $cache_file"
2579   . $cache_file
2580 else
2581   echo "creating cache $cache_file"
2582   > $cache_file
2583 fi
2584
2585
2586 # This can be used to rebuild libtool when needed
2587 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2588
2589 # Always use our own libtool.
2590 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2591
2592 # Redirect the config.log output again, so that the ltconfig log is not
2593 # clobbered by the next message.
2594 exec 5>>./config.log
2595
2596
2597
2598 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2599 lt_save_CC="$CC"
2600 lt_save_CFLAGS="$CFLAGS"
2601 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2602 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2603 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2604 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2605 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2606 deplibs_check_method="$deplibs_check_method" \
2607 file_magic_cmd="$file_magic_cmd" \
2608 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2609 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2610 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2611 CC="$lt_save_CC"
2612 CFLAGS="$lt_save_CFLAGS"
2613
2614 # Redirect the config.log output again, so that the ltconfig log is not
2615 # clobbered by the next message.
2616 exec 5>>./config.log
2617
2618   
2619
2620   
2621          
2622          
2623
2624
2625
2626 # Check for c++ or library specific bits that don't require linking.
2627 #GLIBCPP_CHECK_COMPILER_VERSION
2628 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2629 echo "configure:2630: checking for GNU make" >&5
2630 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2631   echo $ac_n "(cached) $ac_c" 1>&6
2632 else
2633   _cv_gnu_make_command='' ;
2634           for a in "${MAKE-make}" make gmake gnumake ; do
2635                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2636                   then
2637                           _cv_gnu_make_command=$a ;
2638                           break;
2639                   fi
2640           done ;
2641   
2642 fi
2643
2644 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2645   if test  "x$_cv_gnu_make_command" != "x"  ; then
2646           ifGNUmake='' ;
2647   else
2648           ifGNUmake='#' ;
2649   fi
2650   
2651
2652
2653 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2654 # Check whether --enable-debug or --disable-debug was given.
2655 if test "${enable_debug+set}" = set; then
2656   enableval="$enable_debug"
2657   case "${enableval}" in
2658  yes) enable_debug=yes ;;
2659  no)  enable_debug=no ;;
2660  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2661  esac
2662 else
2663   enable_debug=no
2664 fi
2665
2666 case "${enable_debug}" in
2667     yes) 
2668         DEBUG_FLAGS='-O0 -ggdb3'                        
2669         ;; 
2670     no)   
2671         DEBUG_FLAGS='-g'
2672         ;;
2673 esac
2674
2675
2676 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2677 echo "configure:2678: checking how to run the C preprocessor" >&5
2678 # On Suns, sometimes $CPP names a directory.
2679 if test -n "$CPP" && test -d "$CPP"; then
2680   CPP=
2681 fi
2682 if test -z "$CPP"; then
2683 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2684   echo $ac_n "(cached) $ac_c" 1>&6
2685 else
2686     # This must be in double quotes, not single quotes, because CPP may get
2687   # substituted into the Makefile and "${CC-cc}" will confuse make.
2688   CPP="${CC-cc} -E"
2689   # On the NeXT, cc -E runs the code through the compiler's parser,
2690   # not just through cpp.
2691   cat > conftest.$ac_ext <<EOF
2692 #line 2693 "configure"
2693 #include "confdefs.h"
2694 #include <assert.h>
2695 Syntax Error
2696 EOF
2697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2698 { (eval echo configure:2699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2700 if test -z "$ac_err"; then
2701   :
2702 else
2703   echo "$ac_err" >&5
2704   echo "configure: failed program was:" >&5
2705   cat conftest.$ac_ext >&5
2706   rm -rf conftest*
2707   CPP="${CC-cc} -E -traditional-cpp"
2708   cat > conftest.$ac_ext <<EOF
2709 #line 2710 "configure"
2710 #include "confdefs.h"
2711 #include <assert.h>
2712 Syntax Error
2713 EOF
2714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2717 if test -z "$ac_err"; then
2718   :
2719 else
2720   echo "$ac_err" >&5
2721   echo "configure: failed program was:" >&5
2722   cat conftest.$ac_ext >&5
2723   rm -rf conftest*
2724   CPP="${CC-cc} -nologo -E"
2725   cat > conftest.$ac_ext <<EOF
2726 #line 2727 "configure"
2727 #include "confdefs.h"
2728 #include <assert.h>
2729 Syntax Error
2730 EOF
2731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2732 { (eval echo configure:2733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2734 if test -z "$ac_err"; then
2735   :
2736 else
2737   echo "$ac_err" >&5
2738   echo "configure: failed program was:" >&5
2739   cat conftest.$ac_ext >&5
2740   rm -rf conftest*
2741   CPP=/lib/cpp
2742 fi
2743 rm -f conftest*
2744 fi
2745 rm -f conftest*
2746 fi
2747 rm -f conftest*
2748   ac_cv_prog_CPP="$CPP"
2749 fi
2750   CPP="$ac_cv_prog_CPP"
2751 else
2752   ac_cv_prog_CPP="$CPP"
2753 fi
2754 echo "$ac_t""$CPP" 1>&6
2755
2756
2757   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2758 echo "configure:2759: checking for cstdio to use" >&5
2759   # Check whether --enable-cstdio or --disable-cstdio was given.
2760 if test "${enable_cstdio+set}" = set; then
2761   enableval="$enable_cstdio"
2762   if test x$enable_cstdio = xno; then
2763      enable_cstdio=stdio
2764   fi
2765 else
2766   enable_cstdio=stdio
2767 fi
2768
2769
2770   enable_cstdio_flag=$enable_cstdio
2771
2772     case x${enable_cstdio_flag} in
2773     xlibio)
2774       CSTDIO_H=config/io/c_io_libio.h
2775       BASIC_FILE_H=config/io/basic_file_libio.h
2776       BASIC_FILE_CC=config/io/basic_file_libio.cc
2777       echo "$ac_t""libio" 1>&6
2778
2779       # see if we are on a system with libio native (ie, linux)
2780       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2781 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2782 echo "configure:2783: checking for libio.h" >&5
2783 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2784   echo $ac_n "(cached) $ac_c" 1>&6
2785 else
2786   cat > conftest.$ac_ext <<EOF
2787 #line 2788 "configure"
2788 #include "confdefs.h"
2789 #include <libio.h>
2790 EOF
2791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2792 { (eval echo configure:2793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2794 if test -z "$ac_err"; then
2795   rm -rf conftest*
2796   eval "ac_cv_header_$ac_safe=yes"
2797 else
2798   echo "$ac_err" >&5
2799   echo "configure: failed program was:" >&5
2800   cat conftest.$ac_ext >&5
2801   rm -rf conftest*
2802   eval "ac_cv_header_$ac_safe=no"
2803 fi
2804 rm -f conftest*
2805 fi
2806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2807   echo "$ac_t""yes" 1>&6
2808   has_libio=yes
2809 else
2810   echo "$ac_t""no" 1>&6
2811 has_libio=no
2812 fi
2813
2814
2815       # Need to check and see what version of glibc is being used. If
2816       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2817       # compile most of libio for linux systems.
2818       if test x$has_libio = x"yes"; then
2819         case "$target" in
2820           *-*-linux*)
2821               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2822 echo "configure:2823: checking for glibc version >= 2.2" >&5
2823               cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2826
2827             #include <features.h>
2828               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2829                     ok
2830               #endif
2831               
2832 EOF
2833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2834   egrep "ok" >/dev/null 2>&1; then
2835   rm -rf conftest*
2836   glibc_satisfactory=yes
2837 else
2838   rm -rf conftest*
2839   glibc_satisfactory=no
2840 fi
2841 rm -f conftest*
2842
2843               echo "$ac_t""$glibc_satisfactory" 1>&6
2844             ;;
2845         esac
2846
2847         # XXX at the moment, admit defeat and force the recompilation
2848         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2849         glibc_satisfactory=no        
2850
2851         if test x$glibc_satisfactory = x"yes"; then
2852            need_libio=no
2853            need_wlibio=no        
2854         else
2855            need_libio=yes
2856            # bkoz XXX need to add checks to enable this
2857            # pme XXX here's a first pass at such a check
2858            if test x$enable_c_mbchar != xno; then
2859               need_wlibio=yes
2860            else
2861               need_wlibio=no
2862            fi
2863         fi
2864
2865       else
2866          # Using libio, but <libio.h> doesn't exist on the target system. . .
2867          need_libio=yes
2868          # bkoz XXX need to add checks to enable this
2869          # pme XXX here's a first pass at such a check
2870          if test x$enable_c_mbchar != xno; then
2871              need_wlibio=yes
2872          else
2873              need_wlibio=no
2874          fi
2875       fi
2876       ;;
2877     xstdio | x | xno | xnone | xyes)
2878       # default
2879       CSTDIO_H=config/io/c_io_stdio.h
2880       BASIC_FILE_H=config/io/basic_file_stdio.h
2881       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2882       echo "$ac_t""stdio" 1>&6
2883
2884       # We're not using stdio.
2885       need_libio=no
2886       need_wlibio=no
2887       ;;
2888     *)
2889       echo "$enable_cstdio is an unknown io package" 1>&2
2890       exit 1
2891       ;;
2892   esac
2893   
2894   
2895   
2896
2897   # 2000-08-04 bkoz hack
2898   CCODECVT_C=config/io/c_io_libio_codecvt.c
2899   
2900   # 2000-08-04 bkoz hack
2901
2902   
2903
2904 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2905   GLIBCPP_BUILD_LIBIO_TRUE=
2906   GLIBCPP_BUILD_LIBIO_FALSE='#'
2907 else
2908   GLIBCPP_BUILD_LIBIO_TRUE='#'
2909   GLIBCPP_BUILD_LIBIO_FALSE=
2910 fi
2911   
2912
2913 if test "$need_libio" = yes; then
2914   GLIBCPP_NEED_LIBIO_TRUE=
2915   GLIBCPP_NEED_LIBIO_FALSE='#'
2916 else
2917   GLIBCPP_NEED_LIBIO_TRUE='#'
2918   GLIBCPP_NEED_LIBIO_FALSE=
2919 fi
2920   
2921
2922 if test "$need_wlibio" = yes; then
2923   GLIBCPP_NEED_WLIBIO_TRUE=
2924   GLIBCPP_NEED_WLIBIO_FALSE='#'
2925 else
2926   GLIBCPP_NEED_WLIBIO_TRUE='#'
2927   GLIBCPP_NEED_WLIBIO_FALSE=
2928 fi
2929   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2930     libio_la=../libio/libio.la
2931   else
2932     libio_la=
2933   fi
2934   
2935
2936
2937   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2938 echo "configure:2939: checking for clocale to use" >&5
2939   # Check whether --enable-clocale or --disable-clocale was given.
2940 if test "${enable_clocale+set}" = set; then
2941   enableval="$enable_clocale"
2942   if test x$enable_clocale = xno; then
2943      enable_clocale=generic
2944   fi
2945 else
2946   enable_clocale=generic
2947 fi
2948
2949
2950   enable_clocale_flag=$enable_clocale
2951
2952     case x${enable_clocale_flag} in
2953     xgeneric)
2954       echo "$ac_t""generic" 1>&6
2955
2956       # Don't use gettext.
2957       USE_NLS=no
2958
2959       CLOCALE_H=config/locale/c_locale_generic.h
2960       CLOCALE_CC=config/locale/c_locale_generic.cc
2961       CCODECVT_H=config/locale/codecvt_specializations_generic.h
2962       CCOLLATE_CC=config/locale/collate_members_generic.cc
2963       CMESSAGES_H=config/locale/messages_members_generic.h
2964       CMESSAGES_CC=config/locale/messages_members_generic.cc
2965       CMONEY_CC=config/locale/moneypunct_members_generic.cc
2966       CNUMERIC_CC=config/locale/numpunct_members_generic.cc
2967       CTIME_CC=config/locale/time_members_generic.cc
2968       ;;
2969     xgnu)
2970       echo "$ac_t""gnu" 1>&6
2971
2972       # Declare intention to use gettext, and add support for specific
2973       # languages.
2974       # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
2975       ALL_LINGUAS="de fr"
2976       # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
2977       # Need to deal with MSGFMT, USE_NLS, and glibcpp_[P,M]OFILES
2978       USE_NLS=yes
2979
2980       # Export the build objects.
2981       for ling in $ALL_LINGUAS; do \
2982         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
2983         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
2984       done
2985       
2986       
2987
2988       CLOCALE_H=config/locale/c_locale_gnu.h
2989       CLOCALE_CC=config/locale/c_locale_gnu.cc
2990       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
2991       CCOLLATE_CC=config/locale/collate_members_gnu.cc
2992       CMESSAGES_H=config/locale/messages_members_gnu.h
2993       CMESSAGES_CC=config/locale/messages_members_gnu.cc
2994       CMONEY_CC=config/locale/moneypunct_members_gnu.cc
2995       CNUMERIC_CC=config/locale/numpunct_members_gnu.cc
2996       CTIME_CC=config/locale/time_members_gnu.cc
2997       ;;
2998     xieee_1003.1)
2999       echo "$ac_t""generic" 1>&6
3000
3001       # Don't use gettext.
3002       USE_NLS=no
3003
3004       CLOCALE_H=config/locale/c_locale_ieee_1003.1-200x.h
3005       CLOCALE_CC=config/locale/c_locale_ieee_1003.1-200x.cc
3006       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3007       CCOLLATE_CC=config/locale/collate_members_generic.cc
3008       CMESSAGES_H=config/locale/messages_members_ieee_1003.1-200x.h
3009       CMESSAGES_CC=config/locale/messages_members_ieee_1003.1-200x.cc
3010       CMONEY_CC=config/locale/moneypunct_members_generic.cc
3011       CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3012       CTIME_CC=config/locale/time_members_generic.cc
3013       ;;
3014     *)
3015       echo "$enable_clocale is an unknown locale package" 1>&2
3016       exit 1
3017       ;;
3018   esac
3019
3020   # This is where the testsuite looks for locale catalogs, using the
3021   # -DLOCALEDIR define during testsuite compilation.
3022   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3023   
3024
3025   
3026   
3027   
3028   
3029   
3030   
3031   
3032   
3033   
3034   
3035
3036 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3037 if test "${enable_c_mbchar+set}" = set; then
3038   enableval="$enable_c_mbchar"
3039   case "$enableval" in
3040  yes) enable_c_mbchar=yes ;;
3041  no)  enable_c_mbchar=no ;;
3042  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3043  esac
3044 else
3045   enable_c_mbchar=yes
3046 fi
3047
3048   
3049   # Check whether --enable-c99 or --disable-c99 was given.
3050 if test "${enable_c99+set}" = set; then
3051   enableval="$enable_c99"
3052     case "$enableval" in
3053    yes) enable_c99=yes ;;
3054    no)  enable_c99=no ;;
3055    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3056    esac
3057 else
3058   enable_c99=yes
3059 fi
3060  
3061   
3062   ac_ext=C
3063 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3064 ac_cpp='$CXXCPP $CPPFLAGS'
3065 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3066 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3067 cross_compiling=$ac_cv_prog_cxx_cross
3068
3069
3070   # Check for the existence of <math.h> functions used if C99 is enabled.
3071   ac_c99_math=yes;
3072   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3073 echo "configure:3074: checking for ISO C99 support in <math.h>" >&5
3074   cat > conftest.$ac_ext <<EOF
3075 #line 3076 "configure"
3076 #include "confdefs.h"
3077 #include <math.h>
3078 int main() {
3079 fpclassify(0.0);
3080 ; return 0; }
3081 EOF
3082 if { (eval echo configure:3083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3083   :
3084 else
3085   echo "configure: failed program was:" >&5
3086   cat conftest.$ac_ext >&5
3087   rm -rf conftest*
3088   ac_c99_math=no
3089 fi
3090 rm -f conftest*
3091   cat > conftest.$ac_ext <<EOF
3092 #line 3093 "configure"
3093 #include "confdefs.h"
3094 #include <math.h>
3095 int main() {
3096 isfinite(0.0);
3097 ; return 0; }
3098 EOF
3099 if { (eval echo configure:3100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3100   :
3101 else
3102   echo "configure: failed program was:" >&5
3103   cat conftest.$ac_ext >&5
3104   rm -rf conftest*
3105   ac_c99_math=no
3106 fi
3107 rm -f conftest*
3108   cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3111 #include <math.h>
3112 int main() {
3113 isinf(0.0);
3114 ; return 0; }
3115 EOF
3116 if { (eval echo configure:3117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3117   :
3118 else
3119   echo "configure: failed program was:" >&5
3120   cat conftest.$ac_ext >&5
3121   rm -rf conftest*
3122   ac_c99_math=no
3123 fi
3124 rm -f conftest*
3125   cat > conftest.$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3128 #include <math.h>
3129 int main() {
3130 isnan(0.0);
3131 ; return 0; }
3132 EOF
3133 if { (eval echo configure:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3134   :
3135 else
3136   echo "configure: failed program was:" >&5
3137   cat conftest.$ac_ext >&5
3138   rm -rf conftest*
3139   ac_c99_math=no
3140 fi
3141 rm -f conftest*
3142   cat > conftest.$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3145 #include <math.h>
3146 int main() {
3147 isnormal(0.0);
3148 ; return 0; }
3149 EOF
3150 if { (eval echo configure:3151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3151   :
3152 else
3153   echo "configure: failed program was:" >&5
3154   cat conftest.$ac_ext >&5
3155   rm -rf conftest*
3156   ac_c99_math=no
3157 fi
3158 rm -f conftest*
3159   cat > conftest.$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3162 #include <math.h>
3163 int main() {
3164 signbit(0.0);
3165 ; return 0; }
3166 EOF
3167 if { (eval echo configure:3168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3168   :
3169 else
3170   echo "configure: failed program was:" >&5
3171   cat conftest.$ac_ext >&5
3172   rm -rf conftest*
3173   ac_c99_math=no
3174 fi
3175 rm -f conftest*
3176   cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 #include <math.h>
3180 int main() {
3181 isgreater(0.0,0.0);
3182 ; return 0; }
3183 EOF
3184 if { (eval echo configure:3185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3185   :
3186 else
3187   echo "configure: failed program was:" >&5
3188   cat conftest.$ac_ext >&5
3189   rm -rf conftest*
3190   ac_c99_math=no
3191 fi
3192 rm -f conftest*
3193   cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 #include <math.h>
3197 int main() {
3198 isgreaterequal(0.0,0.0);
3199 ; return 0; }
3200 EOF
3201 if { (eval echo configure:3202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3202   :
3203 else
3204   echo "configure: failed program was:" >&5
3205   cat conftest.$ac_ext >&5
3206   rm -rf conftest*
3207   ac_c99_math=no
3208 fi
3209 rm -f conftest*
3210   cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3213 #include <math.h>
3214 int main() {
3215 isless(0.0,0.0);
3216 ; return 0; }
3217 EOF
3218 if { (eval echo configure:3219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3219   :
3220 else
3221   echo "configure: failed program was:" >&5
3222   cat conftest.$ac_ext >&5
3223   rm -rf conftest*
3224   ac_c99_math=no
3225 fi
3226 rm -f conftest*
3227   cat > conftest.$ac_ext <<EOF
3228 #line 3229 "configure"
3229 #include "confdefs.h"
3230 #include <math.h>
3231 int main() {
3232 islessequal(0.0,0.0);
3233 ; return 0; }
3234 EOF
3235 if { (eval echo configure:3236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3236   :
3237 else
3238   echo "configure: failed program was:" >&5
3239   cat conftest.$ac_ext >&5
3240   rm -rf conftest*
3241   ac_c99_math=no
3242 fi
3243 rm -f conftest*
3244   cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 #include <math.h>
3248 int main() {
3249 islessgreater(0.0,0.0);
3250 ; return 0; }
3251 EOF
3252 if { (eval echo configure:3253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3253   :
3254 else
3255   echo "configure: failed program was:" >&5
3256   cat conftest.$ac_ext >&5
3257   rm -rf conftest*
3258   ac_c99_math=no
3259 fi
3260 rm -f conftest*
3261   cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 #include <math.h>
3265 int main() {
3266 isunordered(0.0,0.0);
3267 ; return 0; }
3268 EOF
3269 if { (eval echo configure:3270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3270   :
3271 else
3272   echo "configure: failed program was:" >&5
3273   cat conftest.$ac_ext >&5
3274   rm -rf conftest*
3275   ac_c99_math=no
3276 fi
3277 rm -f conftest*
3278   echo "$ac_t""$ac_c99_math" 1>&6
3279
3280   # Check for the existence in <stdio.h> of vscanf, et. al.
3281   ac_c99_stdio=yes;
3282   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3283 echo "configure:3284: checking for ISO C99 support in <stdio.h>" >&5
3284   cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3287 #include <stdio.h>
3288 int main() {
3289 snprintf("12", 0, "%i");
3290 ; return 0; }
3291 EOF
3292 if { (eval echo configure:3293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3293   :
3294 else
3295   echo "configure: failed program was:" >&5
3296   cat conftest.$ac_ext >&5
3297   rm -rf conftest*
3298   ac_c99_stdio=no
3299 fi
3300 rm -f conftest*
3301   cat > conftest.$ac_ext <<EOF
3302 #line 3303 "configure"
3303 #include "confdefs.h"
3304 #include <stdio.h>
3305                   #include <stdarg.h>
3306                   void foo(char* fmt, ...)
3307                   {va_list args; va_start(args, fmt);
3308                   vfscanf(stderr, "%i", args);}
3309 int main() {
3310
3311 ; return 0; }
3312 EOF
3313 if { (eval echo configure:3314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3314   :
3315 else
3316   echo "configure: failed program was:" >&5
3317   cat conftest.$ac_ext >&5
3318   rm -rf conftest*
3319   ac_c99_stdio=no
3320 fi
3321 rm -f conftest*
3322   cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 #include <stdio.h>
3326                   #include <stdarg.h>
3327                   void foo(char* fmt, ...)
3328                   {va_list args; va_start(args, fmt);
3329                   vscanf("%i", args);}
3330 int main() {
3331
3332 ; return 0; }
3333 EOF
3334 if { (eval echo configure:3335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3335   :
3336 else
3337   echo "configure: failed program was:" >&5
3338   cat conftest.$ac_ext >&5
3339   rm -rf conftest*
3340   ac_c99_stdio=no
3341 fi
3342 rm -f conftest*
3343   cat > conftest.$ac_ext <<EOF
3344 #line 3345 "configure"
3345 #include "confdefs.h"
3346 #include <stdio.h>
3347                   #include <stdarg.h>
3348                   void foo(char* fmt, ...)
3349                   {va_list args; va_start(args, fmt);
3350                   vsnprintf(fmt, 0, "%i", args);}
3351 int main() {
3352
3353 ; return 0; }
3354 EOF
3355 if { (eval echo configure:3356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3356   :
3357 else
3358   echo "configure: failed program was:" >&5
3359   cat conftest.$ac_ext >&5
3360   rm -rf conftest*
3361   ac_c99_stdio=no
3362 fi
3363 rm -f conftest*
3364   cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 #include <stdio.h>
3368                   #include <stdarg.h>
3369                   void foo(char* fmt, ...)
3370                   {va_list args; va_start(args, fmt);
3371                   vsscanf(fmt, "%i", args);}
3372 int main() {
3373
3374 ; return 0; }
3375 EOF
3376 if { (eval echo configure:3377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3377   :
3378 else
3379   echo "configure: failed program was:" >&5
3380   cat conftest.$ac_ext >&5
3381   rm -rf conftest*
3382   ac_c99_stdio=no
3383 fi
3384 rm -f conftest*
3385   echo "$ac_t""$ac_c99_stdio" 1>&6
3386
3387   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3388   ac_c99_stdlib=yes;
3389   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3390 echo "configure:3391: checking for lldiv_t declaration" >&5
3391   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3392   echo $ac_n "(cached) $ac_c" 1>&6
3393 else
3394   
3395   cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3398 #include <stdlib.h>
3399 int main() {
3400  lldiv_t mydivt;
3401 ; return 0; }
3402 EOF
3403 if { (eval echo configure:3404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3404   rm -rf conftest*
3405   ac_c99_lldiv_t=yes
3406 else
3407   echo "configure: failed program was:" >&5
3408   cat conftest.$ac_ext >&5
3409   rm -rf conftest*
3410   ac_c99_lldiv_t=no
3411 fi
3412 rm -f conftest*
3413   
3414 fi
3415
3416   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3417
3418   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3419 echo "configure:3420: checking for ISO C99 support in <stdlib.h>" >&5
3420   cat > conftest.$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 #include <stdlib.h>
3424 int main() {
3425 char* tmp; strtof("gnu", &tmp);
3426 ; return 0; }
3427 EOF
3428 if { (eval echo configure:3429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3429   :
3430 else
3431   echo "configure: failed program was:" >&5
3432   cat conftest.$ac_ext >&5
3433   rm -rf conftest*
3434   ac_c99_stdlib=no
3435 fi
3436 rm -f conftest*
3437   cat > conftest.$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 #include <stdlib.h>
3441 int main() {
3442 char* tmp; strtold("gnu", &tmp);
3443 ; return 0; }
3444 EOF
3445 if { (eval echo configure:3446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3446   :
3447 else
3448   echo "configure: failed program was:" >&5
3449   cat conftest.$ac_ext >&5
3450   rm -rf conftest*
3451   ac_c99_stdlib=no
3452 fi
3453 rm -f conftest*
3454   cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3457 #include <stdlib.h>
3458 int main() {
3459 char* tmp; strtoll("gnu", &tmp, 10);
3460 ; return 0; }
3461 EOF
3462 if { (eval echo configure:3463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3463   :
3464 else
3465   echo "configure: failed program was:" >&5
3466   cat conftest.$ac_ext >&5
3467   rm -rf conftest*
3468   ac_c99_stdlib=no
3469 fi
3470 rm -f conftest*
3471   cat > conftest.$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3474 #include <stdlib.h>
3475 int main() {
3476 char* tmp; strtoull("gnu", &tmp, 10);
3477 ; return 0; }
3478 EOF
3479 if { (eval echo configure:3480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3480   :
3481 else
3482   echo "configure: failed program was:" >&5
3483   cat conftest.$ac_ext >&5
3484   rm -rf conftest*
3485   ac_c99_stdlib=no
3486 fi
3487 rm -f conftest*
3488   cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 #include <stdlib.h>
3492 int main() {
3493 llabs(10);
3494 ; return 0; }
3495 EOF
3496 if { (eval echo configure:3497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3497   :
3498 else
3499   echo "configure: failed program was:" >&5
3500   cat conftest.$ac_ext >&5
3501   rm -rf conftest*
3502   ac_c99_stdlib=no
3503 fi
3504 rm -f conftest*
3505   cat > conftest.$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3508 #include <stdlib.h>
3509 int main() {
3510 lldiv(10,1);
3511 ; return 0; }
3512 EOF
3513 if { (eval echo configure:3514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3514   :
3515 else
3516   echo "configure: failed program was:" >&5
3517   cat conftest.$ac_ext >&5
3518   rm -rf conftest*
3519   ac_c99_stdlib=no
3520 fi
3521 rm -f conftest*
3522   cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 #include <stdlib.h>
3526 int main() {
3527 atoll("10");
3528 ; return 0; }
3529 EOF
3530 if { (eval echo configure:3531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3531   :
3532 else
3533   echo "configure: failed program was:" >&5
3534   cat conftest.$ac_ext >&5
3535   rm -rf conftest*
3536   ac_c99_stdlib=no
3537 fi
3538 rm -f conftest*
3539   cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3542 #include <stdlib.h>
3543 int main() {
3544 _Exit(0);
3545 ; return 0; }
3546 EOF
3547 if { (eval echo configure:3548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3548   :
3549 else
3550   echo "configure: failed program was:" >&5
3551   cat conftest.$ac_ext >&5
3552   rm -rf conftest*
3553   ac_c99_stdlib=no
3554 fi
3555 rm -f conftest*
3556   if test x"$ac_c99_lldiv_t" = x"no"; then
3557     ac_c99_stdlib=no; 
3558   fi; 
3559   echo "$ac_t""$ac_c99_stdlib" 1>&6
3560
3561   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3562   # XXX the wchar.h checks should be rolled into the general C99 bits.
3563   ac_c99_wchar=yes;
3564   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3565 echo "configure:3566: checking for additional ISO C99 support in <wchar.h>" >&5
3566   cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3569 #include <wchar.h>
3570 int main() {
3571 wcstold(L"10.0", NULL);
3572 ; return 0; }
3573 EOF
3574 if { (eval echo configure:3575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3575   :
3576 else
3577   echo "configure: failed program was:" >&5
3578   cat conftest.$ac_ext >&5
3579   rm -rf conftest*
3580   ac_c99_wchar=no
3581 fi
3582 rm -f conftest*
3583   cat > conftest.$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3586 #include <wchar.h>
3587 int main() {
3588 wcstoll(L"10", NULL, 10);
3589 ; return 0; }
3590 EOF
3591 if { (eval echo configure:3592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3592   :
3593 else
3594   echo "configure: failed program was:" >&5
3595   cat conftest.$ac_ext >&5
3596   rm -rf conftest*
3597   ac_c99_wchar=no
3598 fi
3599 rm -f conftest*
3600   cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 #include <wchar.h>
3604 int main() {
3605 wcstoull(L"10", NULL, 10);
3606 ; return 0; }
3607 EOF
3608 if { (eval echo configure:3609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3609   :
3610 else
3611   echo "configure: failed program was:" >&5
3612   cat conftest.$ac_ext >&5
3613   rm -rf conftest*
3614   ac_c99_wchar=no
3615 fi
3616 rm -f conftest*
3617   echo "$ac_t""$ac_c99_wchar" 1>&6
3618
3619   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3620 echo "configure:3621: checking for enabled ISO C99 support" >&5
3621   if test x"$ac_c99_math" = x"no" ||
3622      test x"$ac_c99_stdio" = x"no" ||
3623      test x"$ac_c99_stdlib" = x"no" ||
3624      test x"$ac_c99_wchar" = x"no"; then
3625     enable_c99=no; 
3626   fi; 
3627   echo "$ac_t""$enable_c99" 1>&6
3628
3629   # Option parsed, now set things appropriately
3630   if test x"$enable_c99" = x"yes"; then
3631     cat >> confdefs.h <<\EOF
3632 #define _GLIBCPP_USE_C99 1
3633 EOF
3634
3635   fi
3636
3637   ac_ext=c
3638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3642 cross_compiling=$ac_cv_prog_cc_cross
3643
3644
3645   
3646   # Check whether --enable-long-long or --disable-long-long was given.
3647 if test "${enable_long_long+set}" = set; then
3648   enableval="$enable_long_long"
3649     case "$enableval" in
3650    yes) enable_long_long=yes ;;
3651    no)  enable_long_long=no ;;
3652    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3653    esac
3654 else
3655   enable_long_long=yes
3656 fi
3657
3658   # iostreams require strtoll, strtoull to compile. If the
3659   # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3660   # go ahead and allow long long to be used.
3661   if test x"$enable_c99" = x"no"; then
3662     enable_long_long=no; 
3663   fi
3664
3665   # Option parsed, now set things appropriately
3666   echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3667 echo "configure:3668: checking for enabled long long support" >&5
3668   if test x"$enable_long_long" = xyes; then
3669     cat >> confdefs.h <<\EOF
3670 #define _GLIBCPP_USE_LONG_LONG 1
3671 EOF
3672
3673   fi
3674   echo "$ac_t""$enable_long_long" 1>&6
3675
3676 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3677 echo "configure:3678: checking for c header strategy to use" >&5
3678 # Check whether --enable-cheaders or --disable-cheaders was given.
3679 if test "${enable_cheaders+set}" = set; then
3680   enableval="$enable_cheaders"
3681   
3682   case "$enableval" in
3683    c) 
3684         enable_cheaders=c 
3685         ;;
3686    c_std)  
3687         enable_cheaders=c_std 
3688         ;;
3689    c_shadow)  
3690         enable_cheaders=c_shadow 
3691         ;;
3692    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3693         ;;
3694   esac
3695 else
3696   enable_cheaders=c_std
3697 fi
3698
3699   echo "$ac_t""$enable_cheaders" 1>&6
3700
3701     case "$enable_cheaders" in
3702     c_shadow) 
3703         CSHADOW_FLAGS="-fno-builtin"
3704         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3705         cat >> confdefs.h <<\EOF
3706 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3707 EOF
3708
3709         ;;
3710     c_std)   
3711         CSHADOW_FLAGS=""
3712         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3713         ;;
3714     c)   
3715         CSHADOW_FLAGS=""
3716         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3717         ;;
3718   esac
3719
3720   
3721   
3722   
3723
3724 if test "$enable_cheaders" = c_shadow; then
3725   GLIBCPP_USE_CSHADOW_TRUE=
3726   GLIBCPP_USE_CSHADOW_FALSE='#'
3727 else
3728   GLIBCPP_USE_CSHADOW_TRUE='#'
3729   GLIBCPP_USE_CSHADOW_FALSE=
3730 fi
3731
3732
3733   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3734 echo "configure:3735: checking for thread model used by GCC" >&5
3735   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3736   echo "$ac_t""$target_thread_file" 1>&6
3737
3738   if test $target_thread_file != single; then
3739     cat >> confdefs.h <<\EOF
3740 #define HAVE_GTHR_DEFAULT 1
3741 EOF
3742
3743     cat >> confdefs.h <<\EOF
3744 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3745 EOF
3746
3747   fi
3748
3749   glibcpp_thread_h=gthr-$target_thread_file.h
3750   
3751
3752 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3753 if test "${enable_cxx_flags+set}" = set; then
3754   enableval="$enable_cxx_flags"
3755   case "x$enableval" in
3756  xyes)   
3757         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3758  xno|x)  
3759         enable_cxx_flags='' ;;
3760  *)      
3761         enable_cxx_flags="$enableval" ;;
3762  esac
3763 else
3764   enable_cxx_flags='none'
3765 fi
3766
3767
3768 if test "$enable_cxx_flags" = "none"; then 
3769   enable_cxx_flags=''; 
3770 fi
3771
3772 if test -n "$enable_cxx_flags"; then
3773     for f in $enable_cxx_flags; do
3774         case "$f" in
3775             -fhonor-std)  ;;
3776             -*)  ;;
3777             *)   # and we're trying to pass /what/ exactly?
3778                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3779         esac
3780     done
3781 fi
3782 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3783
3784
3785
3786   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3787 echo "configure:3788: checking for exception model to use" >&5
3788   
3789   ac_ext=C
3790 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3791 ac_cpp='$CXXCPP $CPPFLAGS'
3792 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3793 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3794 cross_compiling=$ac_cv_prog_cxx_cross
3795
3796   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3797 if test "${enable_sjlj_exceptions+set}" = set; then
3798   enableval="$enable_sjlj_exceptions"
3799   :
3800 else
3801                        cat > conftest.$ac_ext << EOF
3802 #line 3803 "configure"
3803 struct S { ~S(); };
3804 void bar();
3805 void foo()
3806 {
3807   S s;
3808   bar();
3809 }
3810 EOF
3811    old_CXXFLAGS="$CXXFLAGS"  
3812    CXXFLAGS=-S
3813    if { (eval echo configure:3814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3814      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3815        enable_sjlj_exceptions=yes
3816      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3817        enable_sjlj_exceptions=no
3818      fi
3819    fi
3820    CXXFLAGS="$old_CXXFLAGS"
3821    rm -f conftest*
3822 fi
3823
3824    if test x$enable_sjlj_exceptions = xyes; then
3825      cat >> confdefs.h <<\EOF
3826 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3827 EOF
3828
3829      ac_exception_model_name=sjlj
3830    elif test x$enable_sjlj_exceptions = xno; then
3831      ac_exception_model_name="call frame"
3832    else
3833      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3834    fi
3835    ac_ext=c
3836 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3837 ac_cpp='$CPP $CPPFLAGS'
3838 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3839 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3840 cross_compiling=$ac_cv_prog_cc_cross
3841
3842    echo "$ac_t""$ac_exception_model_name" 1>&6
3843
3844 # Check whether --enable-concept-checks or --disable-concept-checks was given.
3845 if test "${enable_concept_checks+set}" = set; then
3846   enableval="$enable_concept_checks"
3847   case "$enableval" in
3848  yes) enable_concept_checks=yes ;;
3849  no)  enable_concept_checks=no ;;
3850  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
3851  esac
3852 else
3853   enable_concept_checks=no
3854 fi
3855 if test x"$enable_concept_checks" = xyes; then
3856   cat >> confdefs.h <<\EOF
3857 #define _GLIBCPP_CONCEPT_CHECKS 1
3858 EOF
3859
3860 fi
3861
3862
3863
3864 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3865
3866   # This lets us hard-code the functionality we know
3867   # we'll have in the cross target environment. "Let" is a
3868   # sugar-coated word placed on an especially dull and tedious hack, actually.
3869   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
3870   # that involve linking can't be used:
3871   # "cannot open sim-crt0.o"
3872   # "cannot open crt0.o"
3873   # etc. All this is because there currently exists no unified,
3874   # consistent way for top level CC information to be passed down
3875   # to target directories: newlib includes, newlib linking info,
3876   # libgloss versus newlib crt0.o, etc. When all of this is done, all
3877   # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
3878
3879   # We are being configured with some form of cross compiler.
3880   GLIBCPP_IS_CROSS_COMPILING=1
3881
3882   # If Canadian cross, then don't pick up tools from the build
3883   # directory.
3884   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
3885     CANADIAN=yes
3886   else
3887     CANADIAN=no
3888   fi
3889
3890   case "$target_alias" in
3891     *-linux*)
3892         # Construct linux crosses by hand, eliminating bits that need ld...
3893         # Check for available headers.
3894         for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3895         machine/endian.h machine/param.h sys/machine.h sys/types.h \
3896         fp.h locale.h float.h inttypes.h
3897 do
3898 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3900 echo "configure:3901: checking for $ac_hdr" >&5
3901 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3902   echo $ac_n "(cached) $ac_c" 1>&6
3903 else
3904   cat > conftest.$ac_ext <<EOF
3905 #line 3906 "configure"
3906 #include "confdefs.h"
3907 #include <$ac_hdr>
3908 EOF
3909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3910 { (eval echo configure:3911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3912 if test -z "$ac_err"; then
3913   rm -rf conftest*
3914   eval "ac_cv_header_$ac_safe=yes"
3915 else
3916   echo "$ac_err" >&5
3917   echo "configure: failed program was:" >&5
3918   cat conftest.$ac_ext >&5
3919   rm -rf conftest*
3920   eval "ac_cv_header_$ac_safe=no"
3921 fi
3922 rm -f conftest*
3923 fi
3924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3925   echo "$ac_t""yes" 1>&6
3926     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3927   cat >> confdefs.h <<EOF
3928 #define $ac_tr_hdr 1
3929 EOF
3930  
3931 else
3932   echo "$ac_t""no" 1>&6
3933 fi
3934 done
3935
3936
3937         # GLIBCPP_CHECK_COMPILER_FEATURES
3938         SECTION_FLAGS='-ffunction-sections -fdata-sections'
3939         
3940         
3941   # If we're not using GNU ld, then there's no point in even trying these
3942   # tests.  Check for that first.  We should have already tested for gld
3943   # by now (in libtool), but require it now just to be safe...
3944   SECTION_LDFLAGS=''
3945   OPT_LDFLAGS=''
3946   
3947
3948   # Set --gc-sections.
3949   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3950     # GNU ld it is!  Joy and bunny rabbits!
3951
3952     # All these tests are for C++; save the language and the compiler flags.
3953     # Need to do this so that g++ won't try to link in libstdc++
3954     ac_test_CFLAGS="${CFLAGS+set}"
3955     ac_save_CFLAGS="$CFLAGS"
3956     CFLAGS='-x c++  -Wl,--gc-sections'
3957
3958     # Check for -Wl,--gc-sections
3959     # XXX This test is broken at the moment, as symbols required for
3960     # linking are now in libsupc++ (not built yet.....). In addition, 
3961     # this test has cored on solaris in the past. In addition,
3962     # --gc-sections doesn't really work at the moment (keeps on discarding
3963     # used sections, first .eh_frame and now some of the glibc sections for
3964     # iconv). Bzzzzt. Thanks for playing, maybe next time.
3965     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3966 echo "configure:3967: checking for ld that supports -Wl,--gc-sections" >&5
3967     if test "$cross_compiling" = yes; then
3968   ac_sectionLDflags=yes
3969 else
3970   cat > conftest.$ac_ext <<EOF
3971 #line 3972 "configure"
3972 #include "confdefs.h"
3973
3974      int main(void) 
3975      {
3976        try { throw 1; }
3977        catch (...) { };
3978        return 0;
3979      }
3980     
3981 EOF
3982 if { (eval echo configure:3983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3983 then
3984   ac_sectionLDflags=yes
3985 else
3986   echo "configure: failed program was:" >&5
3987   cat conftest.$ac_ext >&5
3988   rm -fr conftest*
3989   ac_sectionLFflags=no
3990 fi
3991 rm -fr conftest*
3992 fi
3993
3994     if test "$ac_test_CFLAGS" = set; then
3995       CFLAGS="$ac_save_CFLAGS"
3996     else
3997       # this is the suspicious part
3998       CFLAGS=''
3999     fi
4000     if test "$ac_sectionLDflags" = "yes"; then
4001       SECTION_LDFLAGS='-Wl,--gc-sections'
4002     fi
4003     echo "$ac_t""$ac_sectionLDflags" 1>&6
4004   fi
4005
4006   # Set linker optimization flags.
4007   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
4008      test x"$enable_debug" = x"no"; then
4009     OPT_LDFLAGS='-Wl,-O1'
4010   fi
4011
4012   
4013   
4014
4015         # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4016         # GLIBCPP_CHECK_MATH_SUPPORT
4017         cat >> confdefs.h <<\EOF
4018 #define HAVE_ACOSF 1
4019 EOF
4020
4021         cat >> confdefs.h <<\EOF
4022 #define HAVE_ASINF 1
4023 EOF
4024
4025         cat >> confdefs.h <<\EOF
4026 #define HAVE_ATAN2F 1
4027 EOF
4028
4029         cat >> confdefs.h <<\EOF
4030 #define HAVE_ATANF 1
4031 EOF
4032
4033         cat >> confdefs.h <<\EOF
4034 #define HAVE_CEILF 1
4035 EOF
4036
4037         cat >> confdefs.h <<\EOF
4038 #define HAVE_COPYSIGN 1
4039 EOF
4040
4041         cat >> confdefs.h <<\EOF
4042 #define HAVE_COPYSIGNF 1
4043 EOF
4044
4045         cat >> confdefs.h <<\EOF
4046 #define HAVE_COSF 1
4047 EOF
4048
4049         cat >> confdefs.h <<\EOF
4050 #define HAVE_COSHF 1
4051 EOF
4052
4053         cat >> confdefs.h <<\EOF
4054 #define HAVE_EXPF 1
4055 EOF
4056
4057         cat >> confdefs.h <<\EOF
4058 #define HAVE_FABSF 1
4059 EOF
4060
4061         cat >> confdefs.h <<\EOF
4062 #define HAVE_FINITE 1
4063 EOF
4064
4065         cat >> confdefs.h <<\EOF
4066 #define HAVE_FINITEF 1
4067 EOF
4068
4069         cat >> confdefs.h <<\EOF
4070 #define HAVE_FLOORF 1
4071 EOF
4072
4073         cat >> confdefs.h <<\EOF
4074 #define HAVE_FMODF 1
4075 EOF
4076
4077         cat >> confdefs.h <<\EOF
4078 #define HAVE_FREXPF 1
4079 EOF
4080
4081         cat >> confdefs.h <<\EOF
4082 #define HAVE_HYPOTF 1
4083 EOF
4084
4085         cat >> confdefs.h <<\EOF
4086 #define HAVE_ISINF 1
4087 EOF
4088
4089         cat >> confdefs.h <<\EOF
4090 #define HAVE_ISINFF 1
4091 EOF
4092
4093         cat >> confdefs.h <<\EOF
4094 #define HAVE_ISNAN 1
4095 EOF
4096
4097         cat >> confdefs.h <<\EOF
4098 #define HAVE_ISNANF 1
4099 EOF
4100
4101         cat >> confdefs.h <<\EOF
4102 #define HAVE_LDEXPF 1
4103 EOF
4104
4105         cat >> confdefs.h <<\EOF
4106 #define HAVE_LOG10F 1
4107 EOF
4108
4109         cat >> confdefs.h <<\EOF
4110 #define HAVE_LOGF 1
4111 EOF
4112
4113         cat >> confdefs.h <<\EOF
4114 #define HAVE_MODFF 1
4115 EOF
4116
4117         cat >> confdefs.h <<\EOF
4118 #define HAVE_POWF 1
4119 EOF
4120
4121         cat >> confdefs.h <<\EOF
4122 #define HAVE_SINCOS 1
4123 EOF
4124
4125         cat >> confdefs.h <<\EOF
4126 #define HAVE_SINCOSF 1
4127 EOF
4128
4129         cat >> confdefs.h <<\EOF
4130 #define HAVE_SINF 1
4131 EOF
4132
4133         cat >> confdefs.h <<\EOF
4134 #define HAVE_SINHF 1
4135 EOF
4136
4137         cat >> confdefs.h <<\EOF
4138 #define HAVE_SQRTF 1
4139 EOF
4140
4141         cat >> confdefs.h <<\EOF
4142 #define HAVE_TANF 1
4143 EOF
4144
4145         cat >> confdefs.h <<\EOF
4146 #define HAVE_TANHF 1
4147 EOF
4148
4149
4150         # At some point, we should differentiate between architectures
4151         # like x86, which have long double versions, and alpha/powerpc/etc.,
4152         # which don't. For the time being, punt.
4153         if test x"long_double_math_on_this_cpu" = x"yes"; then
4154           cat >> confdefs.h <<\EOF
4155 #define HAVE_ACOSL 1
4156 EOF
4157
4158           cat >> confdefs.h <<\EOF
4159 #define HAVE_ASINL 1
4160 EOF
4161
4162           cat >> confdefs.h <<\EOF
4163 #define HAVE_ATAN2L 1
4164 EOF
4165
4166           cat >> confdefs.h <<\EOF
4167 #define HAVE_ATANL 1
4168 EOF
4169
4170           cat >> confdefs.h <<\EOF
4171 #define HAVE_CEILL 1
4172 EOF
4173
4174           cat >> confdefs.h <<\EOF
4175 #define HAVE_COPYSIGNL 1
4176 EOF
4177
4178           cat >> confdefs.h <<\EOF
4179 #define HAVE_COSL 1
4180 EOF
4181
4182           cat >> confdefs.h <<\EOF
4183 #define HAVE_COSHL 1
4184 EOF
4185
4186           cat >> confdefs.h <<\EOF
4187 #define HAVE_EXPL 1
4188 EOF
4189
4190           cat >> confdefs.h <<\EOF
4191 #define HAVE_FABSL 1
4192 EOF
4193
4194           cat >> confdefs.h <<\EOF
4195 #define HAVE_FINITEL 1
4196 EOF
4197
4198           cat >> confdefs.h <<\EOF
4199 #define HAVE_FLOORL 1
4200 EOF
4201
4202           cat >> confdefs.h <<\EOF
4203 #define HAVE_FMODL 1
4204 EOF
4205
4206           cat >> confdefs.h <<\EOF
4207 #define HAVE_FREXPL 1
4208 EOF
4209
4210           cat >> confdefs.h <<\EOF
4211 #define HAVE_HYPOTL 1
4212 EOF
4213
4214           cat >> confdefs.h <<\EOF
4215 #define HAVE_ISINFL 1
4216 EOF
4217
4218           cat >> confdefs.h <<\EOF
4219 #define HAVE_ISNANL 1
4220 EOF
4221
4222           cat >> confdefs.h <<\EOF
4223 #define HAVE_LDEXPL 1
4224 EOF
4225
4226           cat >> confdefs.h <<\EOF
4227 #define HAVE_LOG10L 1
4228 EOF
4229
4230           cat >> confdefs.h <<\EOF
4231 #define HAVE_LOGL 1
4232 EOF
4233
4234           cat >> confdefs.h <<\EOF
4235 #define HAVE_MODFL 1
4236 EOF
4237
4238           cat >> confdefs.h <<\EOF
4239 #define HAVE_POWL 1
4240 EOF
4241
4242           cat >> confdefs.h <<\EOF
4243 #define HAVE_SINCOSL 1
4244 EOF
4245
4246           cat >> confdefs.h <<\EOF
4247 #define HAVE_SINL 1
4248 EOF
4249
4250           cat >> confdefs.h <<\EOF
4251 #define HAVE_SINHL 1
4252 EOF
4253
4254           cat >> confdefs.h <<\EOF
4255 #define HAVE_SQRTL 1
4256 EOF
4257
4258           cat >> confdefs.h <<\EOF
4259 #define HAVE_TANL 1
4260 EOF
4261
4262           cat >> confdefs.h <<\EOF
4263 #define HAVE_TANHL 1
4264 EOF
4265
4266         fi
4267         
4268     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4269 echo "configure:4270: checking for main in -lm" >&5
4270 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4272   echo $ac_n "(cached) $ac_c" 1>&6
4273 else
4274   ac_save_LIBS="$LIBS"
4275 LIBS="-lm  $LIBS"
4276 cat > conftest.$ac_ext <<EOF
4277 #line 4278 "configure"
4278 #include "confdefs.h"
4279
4280 int main() {
4281 main()
4282 ; return 0; }
4283 EOF
4284 if { (eval echo configure:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4285   rm -rf conftest*
4286   eval "ac_cv_lib_$ac_lib_var=yes"
4287 else
4288   echo "configure: failed program was:" >&5
4289   cat conftest.$ac_ext >&5
4290   rm -rf conftest*
4291   eval "ac_cv_lib_$ac_lib_var=no"
4292 fi
4293 rm -f conftest*
4294 LIBS="$ac_save_LIBS"
4295
4296 fi
4297 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4298   echo "$ac_t""yes" 1>&6
4299     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4300     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4301   cat >> confdefs.h <<EOF
4302 #define $ac_tr_lib 1
4303 EOF
4304
4305   LIBS="-lm $LIBS"
4306
4307 else
4308   echo "$ac_t""no" 1>&6
4309 fi
4310
4311   for ac_func in nan copysignf
4312 do
4313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4314 echo "configure:4315: checking for $ac_func" >&5
4315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4316   echo $ac_n "(cached) $ac_c" 1>&6
4317 else
4318   cat > conftest.$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4321 /* System header to define __stub macros and hopefully few prototypes,
4322     which can conflict with char $ac_func(); below.  */
4323 #include <assert.h>
4324 /* Override any gcc2 internal prototype to avoid an error.  */
4325 /* We use char because int might match the return type of a gcc2
4326     builtin and then its argument prototype would still apply.  */
4327 char $ac_func();
4328
4329 int main() {
4330
4331 /* The GNU C library defines this for functions which it implements
4332     to always fail with ENOSYS.  Some functions are actually named
4333     something starting with __ and the normal name is an alias.  */
4334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4335 choke me
4336 #else
4337 $ac_func();
4338 #endif
4339
4340 ; return 0; }
4341 EOF
4342 if { (eval echo configure:4343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4343   rm -rf conftest*
4344   eval "ac_cv_func_$ac_func=yes"
4345 else
4346   echo "configure: failed program was:" >&5
4347   cat conftest.$ac_ext >&5
4348   rm -rf conftest*
4349   eval "ac_cv_func_$ac_func=no"
4350 fi
4351 rm -f conftest*
4352 fi
4353
4354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4355   echo "$ac_t""yes" 1>&6
4356     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4357   cat >> confdefs.h <<EOF
4358 #define $ac_tr_func 1
4359 EOF
4360  
4361 else
4362   echo "$ac_t""no" 1>&6
4363 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4364 fi
4365 done
4366
4367
4368
4369           USE_COMPLEX_LONG_DOUBLE=no
4370   if test x$ac_cv_func_copysignl = x"yes"; then
4371     USE_COMPLEX_LONG_DOUBLE=yes
4372     for ac_func in signbitl
4373 do
4374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4375 echo "configure:4376: checking for $ac_func" >&5
4376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4377   echo $ac_n "(cached) $ac_c" 1>&6
4378 else
4379   cat > conftest.$ac_ext <<EOF
4380 #line 4381 "configure"
4381 #include "confdefs.h"
4382 /* System header to define __stub macros and hopefully few prototypes,
4383     which can conflict with char $ac_func(); below.  */
4384 #include <assert.h>
4385 /* Override any gcc2 internal prototype to avoid an error.  */
4386 /* We use char because int might match the return type of a gcc2
4387     builtin and then its argument prototype would still apply.  */
4388 char $ac_func();
4389
4390 int main() {
4391
4392 /* The GNU C library defines this for functions which it implements
4393     to always fail with ENOSYS.  Some functions are actually named
4394     something starting with __ and the normal name is an alias.  */
4395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4396 choke me
4397 #else
4398 $ac_func();
4399 #endif
4400
4401 ; return 0; }
4402 EOF
4403 if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4404   rm -rf conftest*
4405   eval "ac_cv_func_$ac_func=yes"
4406 else
4407   echo "configure: failed program was:" >&5
4408   cat conftest.$ac_ext >&5
4409   rm -rf conftest*
4410   eval "ac_cv_func_$ac_func=no"
4411 fi
4412 rm -f conftest*
4413 fi
4414
4415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4416   echo "$ac_t""yes" 1>&6
4417     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4418   cat >> confdefs.h <<EOF
4419 #define $ac_tr_func 1
4420 EOF
4421  
4422 else
4423   echo "$ac_t""no" 1>&6
4424 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4425 fi
4426 done
4427
4428
4429   fi
4430
4431   
4432
4433         
4434
4435       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4436 echo "configure:4437: checking for mbstate_t" >&5
4437   cat > conftest.$ac_ext <<EOF
4438 #line 4439 "configure"
4439 #include "confdefs.h"
4440 #include <wchar.h>
4441 int main() {
4442 mbstate_t teststate;
4443 ; return 0; }
4444 EOF
4445 if { (eval echo configure:4446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4446   rm -rf conftest*
4447   have_mbstate_t=yes
4448 else
4449   echo "configure: failed program was:" >&5
4450   cat conftest.$ac_ext >&5
4451   rm -rf conftest*
4452   have_mbstate_t=no
4453 fi
4454 rm -f conftest*
4455   echo "$ac_t""$have_mbstate_t" 1>&6
4456   if test x"$have_mbstate_t" = xyes; then
4457     cat >> confdefs.h <<\EOF
4458 #define HAVE_MBSTATE_T 1
4459 EOF
4460
4461   fi
4462
4463     for ac_hdr in wchar.h
4464 do
4465 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4467 echo "configure:4468: checking for $ac_hdr" >&5
4468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4469   echo $ac_n "(cached) $ac_c" 1>&6
4470 else
4471   cat > conftest.$ac_ext <<EOF
4472 #line 4473 "configure"
4473 #include "confdefs.h"
4474 #include <$ac_hdr>
4475 EOF
4476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4477 { (eval echo configure:4478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4479 if test -z "$ac_err"; then
4480   rm -rf conftest*
4481   eval "ac_cv_header_$ac_safe=yes"
4482 else
4483   echo "$ac_err" >&5
4484   echo "configure: failed program was:" >&5
4485   cat conftest.$ac_ext >&5
4486   rm -rf conftest*
4487   eval "ac_cv_header_$ac_safe=no"
4488 fi
4489 rm -f conftest*
4490 fi
4491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4492   echo "$ac_t""yes" 1>&6
4493     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4494   cat >> confdefs.h <<EOF
4495 #define $ac_tr_hdr 1
4496 EOF
4497  ac_has_wchar_h=yes
4498 else
4499   echo "$ac_t""no" 1>&6
4500 ac_has_wchar_h=no
4501 fi
4502 done
4503
4504   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4505 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4506 echo "configure:4507: checking for wctype.h" >&5
4507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4508   echo $ac_n "(cached) $ac_c" 1>&6
4509 else
4510   cat > conftest.$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4513 #include <wctype.h>
4514 EOF
4515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4516 { (eval echo configure:4517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4518 if test -z "$ac_err"; then
4519   rm -rf conftest*
4520   eval "ac_cv_header_$ac_safe=yes"
4521 else
4522   echo "$ac_err" >&5
4523   echo "configure: failed program was:" >&5
4524   cat conftest.$ac_ext >&5
4525   rm -rf conftest*
4526   eval "ac_cv_header_$ac_safe=no"
4527 fi
4528 rm -f conftest*
4529 fi
4530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4531   echo "$ac_t""yes" 1>&6
4532   ac_has_wctype_h=yes
4533 else
4534   echo "$ac_t""no" 1>&6
4535 ac_has_wctype_h=no
4536 fi
4537
4538   
4539     if test x"$ac_has_wchar_h" = xyes &&
4540      test x"$ac_has_wctype_h" = xyes &&
4541      test x"$enable_c_mbchar" != xno; then
4542       
4543             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4544 echo "configure:4545: checking for WCHAR_MIN and WCHAR_MAX" >&5
4545     cat > conftest.$ac_ext <<EOF
4546 #line 4547 "configure"
4547 #include "confdefs.h"
4548 #include <wchar.h>
4549 int main() {
4550 int i = WCHAR_MIN; int j = WCHAR_MAX;
4551 ; return 0; }
4552 EOF
4553 if { (eval echo configure:4554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4554   rm -rf conftest*
4555   has_wchar_minmax=yes
4556 else
4557   echo "configure: failed program was:" >&5
4558   cat conftest.$ac_ext >&5
4559   rm -rf conftest*
4560   has_wchar_minmax=no
4561 fi
4562 rm -f conftest*
4563     echo "$ac_t""$has_wchar_minmax" 1>&6
4564     
4565             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4566 echo "configure:4567: checking for WEOF" >&5
4567     cat > conftest.$ac_ext <<EOF
4568 #line 4569 "configure"
4569 #include "confdefs.h"
4570
4571       #include <wchar.h>
4572       #include <stddef.h>
4573 int main() {
4574 wint_t i = WEOF;
4575 ; return 0; }
4576 EOF
4577 if { (eval echo configure:4578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4578   rm -rf conftest*
4579   has_weof=yes
4580 else
4581   echo "configure: failed program was:" >&5
4582   cat conftest.$ac_ext >&5
4583   rm -rf conftest*
4584   has_weof=no
4585 fi
4586 rm -f conftest*
4587     echo "$ac_t""$has_weof" 1>&6
4588   
4589         ac_wfuncs=yes
4590     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4591 do
4592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4593 echo "configure:4594: checking for $ac_func" >&5
4594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4595   echo $ac_n "(cached) $ac_c" 1>&6
4596 else
4597   cat > conftest.$ac_ext <<EOF
4598 #line 4599 "configure"
4599 #include "confdefs.h"
4600 /* System header to define __stub macros and hopefully few prototypes,
4601     which can conflict with char $ac_func(); below.  */
4602 #include <assert.h>
4603 /* Override any gcc2 internal prototype to avoid an error.  */
4604 /* We use char because int might match the return type of a gcc2
4605     builtin and then its argument prototype would still apply.  */
4606 char $ac_func();
4607
4608 int main() {
4609
4610 /* The GNU C library defines this for functions which it implements
4611     to always fail with ENOSYS.  Some functions are actually named
4612     something starting with __ and the normal name is an alias.  */
4613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4614 choke me
4615 #else
4616 $ac_func();
4617 #endif
4618
4619 ; return 0; }
4620 EOF
4621 if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4622   rm -rf conftest*
4623   eval "ac_cv_func_$ac_func=yes"
4624 else
4625   echo "configure: failed program was:" >&5
4626   cat conftest.$ac_ext >&5
4627   rm -rf conftest*
4628   eval "ac_cv_func_$ac_func=no"
4629 fi
4630 rm -f conftest*
4631 fi
4632
4633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4634   echo "$ac_t""yes" 1>&6
4635     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4636   cat >> confdefs.h <<EOF
4637 #define $ac_tr_func 1
4638 EOF
4639  
4640 else
4641   echo "$ac_t""no" 1>&6
4642 \
4643     ac_wfuncs=no
4644 fi
4645 done
4646
4647   
4648         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4649     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4650     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4651     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4652     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4653     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4654 do
4655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4656 echo "configure:4657: checking for $ac_func" >&5
4657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4658   echo $ac_n "(cached) $ac_c" 1>&6
4659 else
4660   cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4663 /* System header to define __stub macros and hopefully few prototypes,
4664     which can conflict with char $ac_func(); below.  */
4665 #include <assert.h>
4666 /* Override any gcc2 internal prototype to avoid an error.  */
4667 /* We use char because int might match the return type of a gcc2
4668     builtin and then its argument prototype would still apply.  */
4669 char $ac_func();
4670
4671 int main() {
4672
4673 /* The GNU C library defines this for functions which it implements
4674     to always fail with ENOSYS.  Some functions are actually named
4675     something starting with __ and the normal name is an alias.  */
4676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4677 choke me
4678 #else
4679 $ac_func();
4680 #endif
4681
4682 ; return 0; }
4683 EOF
4684 if { (eval echo configure:4685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4685   rm -rf conftest*
4686   eval "ac_cv_func_$ac_func=yes"
4687 else
4688   echo "configure: failed program was:" >&5
4689   cat conftest.$ac_ext >&5
4690   rm -rf conftest*
4691   eval "ac_cv_func_$ac_func=no"
4692 fi
4693 rm -f conftest*
4694 fi
4695
4696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4697   echo "$ac_t""yes" 1>&6
4698     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4699   cat >> confdefs.h <<EOF
4700 #define $ac_tr_func 1
4701 EOF
4702  
4703 else
4704   echo "$ac_t""no" 1>&6
4705 \
4706     ac_wfuncs=no
4707 fi
4708 done
4709
4710
4711     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4712 echo "configure:4713: checking for ISO C99 wchar_t support" >&5
4713     if test x"$has_weof" = xyes &&
4714        test x"$has_wchar_minmax" = xyes &&
4715        test x"$ac_wfuncs" = xyes; then
4716       ac_isoC99_wchar_t=yes
4717     else
4718       ac_isoC99_wchar_t=no
4719     fi
4720     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4721   
4722             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4723 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4724 echo "configure:4725: checking for iconv.h" >&5
4725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4726   echo $ac_n "(cached) $ac_c" 1>&6
4727 else
4728   cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4731 #include <iconv.h>
4732 EOF
4733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4734 { (eval echo configure:4735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4736 if test -z "$ac_err"; then
4737   rm -rf conftest*
4738   eval "ac_cv_header_$ac_safe=yes"
4739 else
4740   echo "$ac_err" >&5
4741   echo "configure: failed program was:" >&5
4742   cat conftest.$ac_ext >&5
4743   rm -rf conftest*
4744   eval "ac_cv_header_$ac_safe=no"
4745 fi
4746 rm -f conftest*
4747 fi
4748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4749   echo "$ac_t""yes" 1>&6
4750   ac_has_iconv_h=yes
4751 else
4752   echo "$ac_t""no" 1>&6
4753 ac_has_iconv_h=no
4754 fi
4755
4756     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4757 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4758 echo "configure:4759: checking for langinfo.h" >&5
4759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4760   echo $ac_n "(cached) $ac_c" 1>&6
4761 else
4762   cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4765 #include <langinfo.h>
4766 EOF
4767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4768 { (eval echo configure:4769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4770 if test -z "$ac_err"; then
4771   rm -rf conftest*
4772   eval "ac_cv_header_$ac_safe=yes"
4773 else
4774   echo "$ac_err" >&5
4775   echo "configure: failed program was:" >&5
4776   cat conftest.$ac_ext >&5
4777   rm -rf conftest*
4778   eval "ac_cv_header_$ac_safe=no"
4779 fi
4780 rm -f conftest*
4781 fi
4782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4783   echo "$ac_t""yes" 1>&6
4784   ac_has_langinfo_h=yes
4785 else
4786   echo "$ac_t""no" 1>&6
4787 ac_has_langinfo_h=no
4788 fi
4789
4790
4791         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4792 echo "configure:4793: checking for iconv in -liconv" >&5
4793 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4795   echo $ac_n "(cached) $ac_c" 1>&6
4796 else
4797   ac_save_LIBS="$LIBS"
4798 LIBS="-liconv  $LIBS"
4799 cat > conftest.$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4802 /* Override any gcc2 internal prototype to avoid an error.  */
4803 /* We use char because int might match the return type of a gcc2
4804     builtin and then its argument prototype would still apply.  */
4805 char iconv();
4806
4807 int main() {
4808 iconv()
4809 ; return 0; }
4810 EOF
4811 if { (eval echo configure:4812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4812   rm -rf conftest*
4813   eval "ac_cv_lib_$ac_lib_var=yes"
4814 else
4815   echo "configure: failed program was:" >&5
4816   cat conftest.$ac_ext >&5
4817   rm -rf conftest*
4818   eval "ac_cv_lib_$ac_lib_var=no"
4819 fi
4820 rm -f conftest*
4821 LIBS="$ac_save_LIBS"
4822
4823 fi
4824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4825   echo "$ac_t""yes" 1>&6
4826   libiconv="-liconv"
4827 else
4828   echo "$ac_t""no" 1>&6
4829 fi
4830
4831     ac_save_LIBS="$LIBS"
4832     LIBS="$LIBS $libiconv"
4833
4834     for ac_func in iconv_open iconv_close iconv nl_langinfo
4835 do
4836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4837 echo "configure:4838: checking for $ac_func" >&5
4838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4839   echo $ac_n "(cached) $ac_c" 1>&6
4840 else
4841   cat > conftest.$ac_ext <<EOF
4842 #line 4843 "configure"
4843 #include "confdefs.h"
4844 /* System header to define __stub macros and hopefully few prototypes,
4845     which can conflict with char $ac_func(); below.  */
4846 #include <assert.h>
4847 /* Override any gcc2 internal prototype to avoid an error.  */
4848 /* We use char because int might match the return type of a gcc2
4849     builtin and then its argument prototype would still apply.  */
4850 char $ac_func();
4851
4852 int main() {
4853
4854 /* The GNU C library defines this for functions which it implements
4855     to always fail with ENOSYS.  Some functions are actually named
4856     something starting with __ and the normal name is an alias.  */
4857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4858 choke me
4859 #else
4860 $ac_func();
4861 #endif
4862
4863 ; return 0; }
4864 EOF
4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4866   rm -rf conftest*
4867   eval "ac_cv_func_$ac_func=yes"
4868 else
4869   echo "configure: failed program was:" >&5
4870   cat conftest.$ac_ext >&5
4871   rm -rf conftest*
4872   eval "ac_cv_func_$ac_func=no"
4873 fi
4874 rm -f conftest*
4875 fi
4876
4877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4878   echo "$ac_t""yes" 1>&6
4879     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4880   cat >> confdefs.h <<EOF
4881 #define $ac_tr_func 1
4882 EOF
4883  \
4884     ac_XPG2funcs=yes
4885 else
4886   echo "$ac_t""no" 1>&6
4887 ac_XPG2funcs=no
4888 fi
4889 done
4890
4891   
4892     LIBS="$ac_save_LIBS"
4893
4894     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4895 echo "configure:4896: checking for XPG2 wchar_t support" >&5
4896     if test x"$ac_has_iconv_h" = xyes &&
4897        test x"$ac_has_langinfo_h" = xyes &&
4898        test x"$ac_XPG2funcs" = xyes; then
4899       ac_XPG2_wchar_t=yes
4900     else
4901       ac_XPG2_wchar_t=no
4902     fi
4903     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4904   
4905             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4906 echo "configure:4907: checking for enabled wchar_t specializations" >&5
4907     if test x"$ac_isoC99_wchar_t" = xyes &&
4908        test x"$ac_XPG2_wchar_t" = xyes; then
4909       cat >> confdefs.h <<\EOF
4910 #define _GLIBCPP_USE_WCHAR_T 1
4911 EOF
4912
4913       echo "$ac_t"""yes"" 1>&6
4914     else
4915       echo "$ac_t"""no"" 1>&6
4916     fi
4917   else
4918         echo "configure: warning: wchar_t support disabled." 1>&2
4919   fi
4920
4921         os_include_dir="config/os/gnu-linux"
4922         # GLIBCPP_CHECK_STDLIB_SUPPORT
4923         cat >> confdefs.h <<\EOF
4924 #define HAVE_STRTOF 1
4925 EOF
4926         
4927         cat >> confdefs.h <<\EOF
4928 #define HAVE_STRTOLD 1
4929 EOF
4930         
4931         # AC_FUNC_MMAP
4932         cat >> confdefs.h <<\EOF
4933 #define HAVE_MMAP 1
4934 EOF
4935
4936         ;;
4937     *)
4938         # We assume newlib. 
4939         # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4940         # GLIBCPP_CHECK_MATH_SUPPORT
4941         cat >> confdefs.h <<\EOF
4942 #define HAVE_FINITE 1
4943 EOF
4944
4945         cat >> confdefs.h <<\EOF
4946 #define HAVE_HYPOT 1
4947 EOF
4948
4949         cat >> confdefs.h <<\EOF
4950 #define HAVE_ISNAN 1
4951 EOF
4952
4953         cat >> confdefs.h <<\EOF
4954 #define HAVE_ISINF 1
4955 EOF
4956
4957
4958         cat >> confdefs.h <<\EOF
4959 #define HAVE_ACOSF 1
4960 EOF
4961
4962         cat >> confdefs.h <<\EOF
4963 #define HAVE_ASINF 1
4964 EOF
4965
4966         cat >> confdefs.h <<\EOF
4967 #define HAVE_ATAN2F 1
4968 EOF
4969
4970         cat >> confdefs.h <<\EOF
4971 #define HAVE_ATANF 1
4972 EOF
4973
4974         cat >> confdefs.h <<\EOF
4975 #define HAVE_CEILF 1
4976 EOF
4977
4978         cat >> confdefs.h <<\EOF
4979 #define HAVE_COSF 1
4980 EOF
4981
4982         cat >> confdefs.h <<\EOF
4983 #define HAVE_COSHF 1
4984 EOF
4985
4986         cat >> confdefs.h <<\EOF
4987 #define HAVE_EXPF 1
4988 EOF
4989
4990         cat >> confdefs.h <<\EOF
4991 #define HAVE_FABSF 1
4992 EOF
4993
4994         cat >> confdefs.h <<\EOF
4995 #define HAVE_FLOORF 1
4996 EOF
4997
4998         cat >> confdefs.h <<\EOF
4999 #define HAVE_FMODF 1
5000 EOF
5001
5002         cat >> confdefs.h <<\EOF
5003 #define HAVE_HYPOTF 1
5004 EOF
5005
5006         cat >> confdefs.h <<\EOF
5007 #define HAVE_ISNANF 1
5008 EOF
5009
5010         cat >> confdefs.h <<\EOF
5011 #define HAVE_ISINFF 1
5012 EOF
5013
5014         cat >> confdefs.h <<\EOF
5015 #define HAVE_LDEXPF 1
5016 EOF
5017
5018         cat >> confdefs.h <<\EOF
5019 #define HAVE_LOG10F 1
5020 EOF
5021
5022         cat >> confdefs.h <<\EOF
5023 #define HAVE_LOGF 1
5024 EOF
5025
5026         cat >> confdefs.h <<\EOF
5027 #define HAVE_MODFF 1
5028 EOF
5029
5030         cat >> confdefs.h <<\EOF
5031 #define HAVE_POWF 1
5032 EOF
5033
5034         cat >> confdefs.h <<\EOF
5035 #define HAVE_SINF 1
5036 EOF
5037
5038         cat >> confdefs.h <<\EOF
5039 #define HAVE_SINHF 1
5040 EOF
5041
5042         cat >> confdefs.h <<\EOF
5043 #define HAVE_SQRTF 1
5044 EOF
5045
5046         cat >> confdefs.h <<\EOF
5047 #define HAVE_TANF 1
5048 EOF
5049
5050         cat >> confdefs.h <<\EOF
5051 #define HAVE_TANHF 1
5052 EOF
5053
5054
5055         os_include_dir="config/os/newlib"
5056         ;;
5057   esac
5058 else
5059
5060   # We are being configured natively. We can do more elaborate tests
5061   # that include AC_TRY_COMPILE now, as the linker is assumed to be
5062   # working.
5063   GLIBCPP_IS_CROSS_COMPILING=0
5064   CANADIAN=no
5065
5066   # Check for available headers.
5067   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
5068   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
5069 do
5070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5072 echo "configure:5073: checking for $ac_hdr" >&5
5073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5074   echo $ac_n "(cached) $ac_c" 1>&6
5075 else
5076   cat > conftest.$ac_ext <<EOF
5077 #line 5078 "configure"
5078 #include "confdefs.h"
5079 #include <$ac_hdr>
5080 EOF
5081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5082 { (eval echo configure:5083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5084 if test -z "$ac_err"; then
5085   rm -rf conftest*
5086   eval "ac_cv_header_$ac_safe=yes"
5087 else
5088   echo "$ac_err" >&5
5089   echo "configure: failed program was:" >&5
5090   cat conftest.$ac_ext >&5
5091   rm -rf conftest*
5092   eval "ac_cv_header_$ac_safe=no"
5093 fi
5094 rm -f conftest*
5095 fi
5096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5097   echo "$ac_t""yes" 1>&6
5098     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5099   cat >> confdefs.h <<EOF
5100 #define $ac_tr_hdr 1
5101 EOF
5102  
5103 else
5104   echo "$ac_t""no" 1>&6
5105 fi
5106 done
5107
5108
5109   
5110   # All these tests are for C++; save the language and the compiler flags.
5111   # The CXXFLAGS thing is suspicious, but based on similar bits previously
5112   # found in GLIBCPP_CONFIGURE.
5113   
5114   ac_ext=C
5115 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5116 ac_cpp='$CXXCPP $CPPFLAGS'
5117 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5118 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5119 cross_compiling=$ac_cv_prog_cxx_cross
5120
5121   ac_test_CXXFLAGS="${CXXFLAGS+set}"
5122   ac_save_CXXFLAGS="$CXXFLAGS"
5123
5124   # Check for maintainer-mode bits.
5125   if test x"$USE_MAINTAINER_MODE" = xno; then
5126     WERROR=''
5127   else
5128     WERROR='-Werror'
5129   fi
5130
5131   # Check for -ffunction-sections -fdata-sections
5132   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
5133 echo "configure:5134: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
5134   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
5135   cat > conftest.$ac_ext <<EOF
5136 #line 5137 "configure"
5137 #include "confdefs.h"
5138
5139 int main() {
5140 int foo;
5141   
5142 ; return 0; }
5143 EOF
5144 if { (eval echo configure:5145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5145   rm -rf conftest*
5146   ac_fdsections=yes
5147 else
5148   echo "configure: failed program was:" >&5
5149   cat conftest.$ac_ext >&5
5150   rm -rf conftest*
5151   ac_fdsections=no
5152 fi
5153 rm -f conftest*
5154   if test "$ac_test_CXXFLAGS" = set; then
5155     CXXFLAGS="$ac_save_CXXFLAGS"
5156   else
5157     # this is the suspicious part
5158     CXXFLAGS=''
5159   fi
5160   if test x"$ac_fdsections" = x"yes" &&
5161      test x"$enable_debug" = x"no"; then
5162     SECTION_FLAGS='-ffunction-sections -fdata-sections'
5163   fi
5164   echo "$ac_t""$ac_fdsections" 1>&6
5165
5166   ac_ext=c
5167 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5168 ac_cpp='$CPP $CPPFLAGS'
5169 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5170 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5171 cross_compiling=$ac_cv_prog_cc_cross
5172
5173   
5174   
5175
5176   
5177   # If we're not using GNU ld, then there's no point in even trying these
5178   # tests.  Check for that first.  We should have already tested for gld
5179   # by now (in libtool), but require it now just to be safe...
5180   SECTION_LDFLAGS=''
5181   OPT_LDFLAGS=''
5182   
5183
5184   # Set --gc-sections.
5185   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5186     # GNU ld it is!  Joy and bunny rabbits!
5187
5188     # All these tests are for C++; save the language and the compiler flags.
5189     # Need to do this so that g++ won't try to link in libstdc++
5190     ac_test_CFLAGS="${CFLAGS+set}"
5191     ac_save_CFLAGS="$CFLAGS"
5192     CFLAGS='-x c++  -Wl,--gc-sections'
5193
5194     # Check for -Wl,--gc-sections
5195     # XXX This test is broken at the moment, as symbols required for
5196     # linking are now in libsupc++ (not built yet.....). In addition, 
5197     # this test has cored on solaris in the past. In addition,
5198     # --gc-sections doesn't really work at the moment (keeps on discarding
5199     # used sections, first .eh_frame and now some of the glibc sections for
5200     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5201     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5202 echo "configure:5203: checking for ld that supports -Wl,--gc-sections" >&5
5203     if test "$cross_compiling" = yes; then
5204   ac_sectionLDflags=yes
5205 else
5206   cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209
5210      int main(void) 
5211      {
5212        try { throw 1; }
5213        catch (...) { };
5214        return 0;
5215      }
5216     
5217 EOF
5218 if { (eval echo configure:5219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5219 then
5220   ac_sectionLDflags=yes
5221 else
5222   echo "configure: failed program was:" >&5
5223   cat conftest.$ac_ext >&5
5224   rm -fr conftest*
5225   ac_sectionLFflags=no
5226 fi
5227 rm -fr conftest*
5228 fi
5229
5230     if test "$ac_test_CFLAGS" = set; then
5231       CFLAGS="$ac_save_CFLAGS"
5232     else
5233       # this is the suspicious part
5234       CFLAGS=''
5235     fi
5236     if test "$ac_sectionLDflags" = "yes"; then
5237       SECTION_LDFLAGS='-Wl,--gc-sections'
5238     fi
5239     echo "$ac_t""$ac_sectionLDflags" 1>&6
5240   fi
5241
5242   # Set linker optimization flags.
5243   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5244      test x"$enable_debug" = x"no"; then
5245     OPT_LDFLAGS='-Wl,-O1'
5246   fi
5247
5248   
5249   
5250
5251   
5252       
5253   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5254 echo "configure:5255: checking for __builtin_abs declaration" >&5
5255   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5256     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5257   echo $ac_n "(cached) $ac_c" 1>&6
5258 else
5259   
5260       
5261       ac_ext=C
5262 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5263 ac_cpp='$CXXCPP $CPPFLAGS'
5264 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5265 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5266 cross_compiling=$ac_cv_prog_cxx_cross
5267
5268       cat > conftest.$ac_ext <<EOF
5269 #line 5270 "configure"
5270 #include "confdefs.h"
5271 #include <math.h>
5272 int main() {
5273  __builtin_abs(0);
5274 ; return 0; }
5275 EOF
5276 if { (eval echo configure:5277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5277   rm -rf conftest*
5278   glibcpp_cv_func___builtin_abs_use=yes
5279 else
5280   echo "configure: failed program was:" >&5
5281   cat conftest.$ac_ext >&5
5282   rm -rf conftest*
5283   glibcpp_cv_func___builtin_abs_use=no
5284 fi
5285 rm -f conftest*
5286       ac_ext=c
5287 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5288 ac_cpp='$CPP $CPPFLAGS'
5289 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5290 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5291 cross_compiling=$ac_cv_prog_cc_cross
5292
5293     
5294 fi
5295
5296   fi
5297   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5298   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5299     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5300 echo "configure:5301: checking for __builtin_abs linkage" >&5
5301     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5302       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5303   echo $ac_n "(cached) $ac_c" 1>&6
5304 else
5305   
5306         cat > conftest.$ac_ext <<EOF
5307 #line 5308 "configure"
5308 #include "confdefs.h"
5309 #include <math.h>
5310 int main() {
5311  __builtin_abs(0);
5312 ; return 0; }
5313 EOF
5314 if { (eval echo configure:5315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5315   rm -rf conftest*
5316   glibcpp_cv_func___builtin_abs_link=yes
5317 else
5318   echo "configure: failed program was:" >&5
5319   cat conftest.$ac_ext >&5
5320   rm -rf conftest*
5321   glibcpp_cv_func___builtin_abs_link=no
5322 fi
5323 rm -f conftest*
5324       
5325 fi
5326
5327     fi
5328     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5329     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5330       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5331       cat >> confdefs.h <<EOF
5332 #define ${ac_tr_func} 1
5333 EOF
5334
5335     fi
5336   fi
5337
5338   
5339   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5340 echo "configure:5341: checking for __builtin_fabsf declaration" >&5
5341   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5342     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5343   echo $ac_n "(cached) $ac_c" 1>&6
5344 else
5345   
5346       
5347       ac_ext=C
5348 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5349 ac_cpp='$CXXCPP $CPPFLAGS'
5350 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5351 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5352 cross_compiling=$ac_cv_prog_cxx_cross
5353
5354       cat > conftest.$ac_ext <<EOF
5355 #line 5356 "configure"
5356 #include "confdefs.h"
5357 #include <math.h>
5358 int main() {
5359  __builtin_fabsf(0);
5360 ; return 0; }
5361 EOF
5362 if { (eval echo configure:5363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5363   rm -rf conftest*
5364   glibcpp_cv_func___builtin_fabsf_use=yes
5365 else
5366   echo "configure: failed program was:" >&5
5367   cat conftest.$ac_ext >&5
5368   rm -rf conftest*
5369   glibcpp_cv_func___builtin_fabsf_use=no
5370 fi
5371 rm -f conftest*
5372       ac_ext=c
5373 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5374 ac_cpp='$CPP $CPPFLAGS'
5375 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5376 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5377 cross_compiling=$ac_cv_prog_cc_cross
5378
5379     
5380 fi
5381
5382   fi
5383   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5384   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5385     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5386 echo "configure:5387: checking for __builtin_fabsf linkage" >&5
5387     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5388       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5389   echo $ac_n "(cached) $ac_c" 1>&6
5390 else
5391   
5392         cat > conftest.$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5395 #include <math.h>
5396 int main() {
5397  __builtin_fabsf(0);
5398 ; return 0; }
5399 EOF
5400 if { (eval echo configure:5401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5401   rm -rf conftest*
5402   glibcpp_cv_func___builtin_fabsf_link=yes
5403 else
5404   echo "configure: failed program was:" >&5
5405   cat conftest.$ac_ext >&5
5406   rm -rf conftest*
5407   glibcpp_cv_func___builtin_fabsf_link=no
5408 fi
5409 rm -f conftest*
5410       
5411 fi
5412
5413     fi
5414     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5415     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5416       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5417       cat >> confdefs.h <<EOF
5418 #define ${ac_tr_func} 1
5419 EOF
5420
5421     fi
5422   fi
5423
5424   
5425   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5426 echo "configure:5427: checking for __builtin_fabs declaration" >&5
5427   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5428     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5429   echo $ac_n "(cached) $ac_c" 1>&6
5430 else
5431   
5432       
5433       ac_ext=C
5434 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5435 ac_cpp='$CXXCPP $CPPFLAGS'
5436 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5437 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5438 cross_compiling=$ac_cv_prog_cxx_cross
5439
5440       cat > conftest.$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5443 #include <math.h>
5444 int main() {
5445  __builtin_fabs(0);
5446 ; return 0; }
5447 EOF
5448 if { (eval echo configure:5449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5449   rm -rf conftest*
5450   glibcpp_cv_func___builtin_fabs_use=yes
5451 else
5452   echo "configure: failed program was:" >&5
5453   cat conftest.$ac_ext >&5
5454   rm -rf conftest*
5455   glibcpp_cv_func___builtin_fabs_use=no
5456 fi
5457 rm -f conftest*
5458       ac_ext=c
5459 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5460 ac_cpp='$CPP $CPPFLAGS'
5461 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5462 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5463 cross_compiling=$ac_cv_prog_cc_cross
5464
5465     
5466 fi
5467
5468   fi
5469   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5470   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5471     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5472 echo "configure:5473: checking for __builtin_fabs linkage" >&5
5473     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5474       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5475   echo $ac_n "(cached) $ac_c" 1>&6
5476 else
5477   
5478         cat > conftest.$ac_ext <<EOF
5479 #line 5480 "configure"
5480 #include "confdefs.h"
5481 #include <math.h>
5482 int main() {
5483  __builtin_fabs(0);
5484 ; return 0; }
5485 EOF
5486 if { (eval echo configure:5487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5487   rm -rf conftest*
5488   glibcpp_cv_func___builtin_fabs_link=yes
5489 else
5490   echo "configure: failed program was:" >&5
5491   cat conftest.$ac_ext >&5
5492   rm -rf conftest*
5493   glibcpp_cv_func___builtin_fabs_link=no
5494 fi
5495 rm -f conftest*
5496       
5497 fi
5498
5499     fi
5500     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5501     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5502       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5503       cat >> confdefs.h <<EOF
5504 #define ${ac_tr_func} 1
5505 EOF
5506
5507     fi
5508   fi
5509
5510   
5511   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5512 echo "configure:5513: checking for __builtin_fabsl declaration" >&5
5513   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5514     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5515   echo $ac_n "(cached) $ac_c" 1>&6
5516 else
5517   
5518       
5519       ac_ext=C
5520 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5521 ac_cpp='$CXXCPP $CPPFLAGS'
5522 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5523 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5524 cross_compiling=$ac_cv_prog_cxx_cross
5525
5526       cat > conftest.$ac_ext <<EOF
5527 #line 5528 "configure"
5528 #include "confdefs.h"
5529 #include <math.h>
5530 int main() {
5531  __builtin_fabsl(0);
5532 ; return 0; }
5533 EOF
5534 if { (eval echo configure:5535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5535   rm -rf conftest*
5536   glibcpp_cv_func___builtin_fabsl_use=yes
5537 else
5538   echo "configure: failed program was:" >&5
5539   cat conftest.$ac_ext >&5
5540   rm -rf conftest*
5541   glibcpp_cv_func___builtin_fabsl_use=no
5542 fi
5543 rm -f conftest*
5544       ac_ext=c
5545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5546 ac_cpp='$CPP $CPPFLAGS'
5547 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5548 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5549 cross_compiling=$ac_cv_prog_cc_cross
5550
5551     
5552 fi
5553
5554   fi
5555   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5556   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5557     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5558 echo "configure:5559: checking for __builtin_fabsl linkage" >&5
5559     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5560       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5561   echo $ac_n "(cached) $ac_c" 1>&6
5562 else
5563   
5564         cat > conftest.$ac_ext <<EOF
5565 #line 5566 "configure"
5566 #include "confdefs.h"
5567 #include <math.h>
5568 int main() {
5569  __builtin_fabsl(0);
5570 ; return 0; }
5571 EOF
5572 if { (eval echo configure:5573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5573   rm -rf conftest*
5574   glibcpp_cv_func___builtin_fabsl_link=yes
5575 else
5576   echo "configure: failed program was:" >&5
5577   cat conftest.$ac_ext >&5
5578   rm -rf conftest*
5579   glibcpp_cv_func___builtin_fabsl_link=no
5580 fi
5581 rm -f conftest*
5582       
5583 fi
5584
5585     fi
5586     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5587     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5588       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5589       cat >> confdefs.h <<EOF
5590 #define ${ac_tr_func} 1
5591 EOF
5592
5593     fi
5594   fi
5595
5596   
5597   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5598 echo "configure:5599: checking for __builtin_labs declaration" >&5
5599   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5600     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5601   echo $ac_n "(cached) $ac_c" 1>&6
5602 else
5603   
5604       
5605       ac_ext=C
5606 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5607 ac_cpp='$CXXCPP $CPPFLAGS'
5608 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5609 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5610 cross_compiling=$ac_cv_prog_cxx_cross
5611
5612       cat > conftest.$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5615 #include <math.h>
5616 int main() {
5617  __builtin_labs(0);
5618 ; return 0; }
5619 EOF
5620 if { (eval echo configure:5621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5621   rm -rf conftest*
5622   glibcpp_cv_func___builtin_labs_use=yes
5623 else
5624   echo "configure: failed program was:" >&5
5625   cat conftest.$ac_ext >&5
5626   rm -rf conftest*
5627   glibcpp_cv_func___builtin_labs_use=no
5628 fi
5629 rm -f conftest*
5630       ac_ext=c
5631 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5632 ac_cpp='$CPP $CPPFLAGS'
5633 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5634 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5635 cross_compiling=$ac_cv_prog_cc_cross
5636
5637     
5638 fi
5639
5640   fi
5641   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5642   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5643     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5644 echo "configure:5645: checking for __builtin_labs linkage" >&5
5645     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5646       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5647   echo $ac_n "(cached) $ac_c" 1>&6
5648 else
5649   
5650         cat > conftest.$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5653 #include <math.h>
5654 int main() {
5655  __builtin_labs(0);
5656 ; return 0; }
5657 EOF
5658 if { (eval echo configure:5659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5659   rm -rf conftest*
5660   glibcpp_cv_func___builtin_labs_link=yes
5661 else
5662   echo "configure: failed program was:" >&5
5663   cat conftest.$ac_ext >&5
5664   rm -rf conftest*
5665   glibcpp_cv_func___builtin_labs_link=no
5666 fi
5667 rm -f conftest*
5668       
5669 fi
5670
5671     fi
5672     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5673     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5674       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5675       cat >> confdefs.h <<EOF
5676 #define ${ac_tr_func} 1
5677 EOF
5678
5679     fi
5680   fi
5681
5682
5683   
5684   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5685 echo "configure:5686: checking for __builtin_sqrtf declaration" >&5
5686   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5687     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5688   echo $ac_n "(cached) $ac_c" 1>&6
5689 else
5690   
5691       
5692       ac_ext=C
5693 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5694 ac_cpp='$CXXCPP $CPPFLAGS'
5695 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5696 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5697 cross_compiling=$ac_cv_prog_cxx_cross
5698
5699       cat > conftest.$ac_ext <<EOF
5700 #line 5701 "configure"
5701 #include "confdefs.h"
5702 #include <math.h>
5703 int main() {
5704  __builtin_sqrtf(0);
5705 ; return 0; }
5706 EOF
5707 if { (eval echo configure:5708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5708   rm -rf conftest*
5709   glibcpp_cv_func___builtin_sqrtf_use=yes
5710 else
5711   echo "configure: failed program was:" >&5
5712   cat conftest.$ac_ext >&5
5713   rm -rf conftest*
5714   glibcpp_cv_func___builtin_sqrtf_use=no
5715 fi
5716 rm -f conftest*
5717       ac_ext=c
5718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5719 ac_cpp='$CPP $CPPFLAGS'
5720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5722 cross_compiling=$ac_cv_prog_cc_cross
5723
5724     
5725 fi
5726
5727   fi
5728   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5729   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5730     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5731 echo "configure:5732: checking for __builtin_sqrtf linkage" >&5
5732     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5733       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5734   echo $ac_n "(cached) $ac_c" 1>&6
5735 else
5736   
5737         cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5740 #include <math.h>
5741 int main() {
5742  __builtin_sqrtf(0);
5743 ; return 0; }
5744 EOF
5745 if { (eval echo configure:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5746   rm -rf conftest*
5747   glibcpp_cv_func___builtin_sqrtf_link=yes
5748 else
5749   echo "configure: failed program was:" >&5
5750   cat conftest.$ac_ext >&5
5751   rm -rf conftest*
5752   glibcpp_cv_func___builtin_sqrtf_link=no
5753 fi
5754 rm -f conftest*
5755       
5756 fi
5757
5758     fi
5759     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5760     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5761       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5762       cat >> confdefs.h <<EOF
5763 #define ${ac_tr_func} 1
5764 EOF
5765
5766     fi
5767   fi
5768
5769   
5770   echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5771 echo "configure:5772: checking for __builtin_fsqrt declaration" >&5
5772   if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5773     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5774   echo $ac_n "(cached) $ac_c" 1>&6
5775 else
5776   
5777       
5778       ac_ext=C
5779 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5780 ac_cpp='$CXXCPP $CPPFLAGS'
5781 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5782 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5783 cross_compiling=$ac_cv_prog_cxx_cross
5784
5785       cat > conftest.$ac_ext <<EOF
5786 #line 5787 "configure"
5787 #include "confdefs.h"
5788 #include <math.h>
5789 int main() {
5790  __builtin_fsqrt(0);
5791 ; return 0; }
5792 EOF
5793 if { (eval echo configure:5794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5794   rm -rf conftest*
5795   glibcpp_cv_func___builtin_fsqrt_use=yes
5796 else
5797   echo "configure: failed program was:" >&5
5798   cat conftest.$ac_ext >&5
5799   rm -rf conftest*
5800   glibcpp_cv_func___builtin_fsqrt_use=no
5801 fi
5802 rm -f conftest*
5803       ac_ext=c
5804 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5805 ac_cpp='$CPP $CPPFLAGS'
5806 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5807 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5808 cross_compiling=$ac_cv_prog_cc_cross
5809
5810     
5811 fi
5812
5813   fi
5814   echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5815   if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5816     echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5817 echo "configure:5818: checking for __builtin_fsqrt linkage" >&5
5818     if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5819       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5820   echo $ac_n "(cached) $ac_c" 1>&6
5821 else
5822   
5823         cat > conftest.$ac_ext <<EOF
5824 #line 5825 "configure"
5825 #include "confdefs.h"
5826 #include <math.h>
5827 int main() {
5828  __builtin_fsqrt(0);
5829 ; return 0; }
5830 EOF
5831 if { (eval echo configure:5832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5832   rm -rf conftest*
5833   glibcpp_cv_func___builtin_fsqrt_link=yes
5834 else
5835   echo "configure: failed program was:" >&5
5836   cat conftest.$ac_ext >&5
5837   rm -rf conftest*
5838   glibcpp_cv_func___builtin_fsqrt_link=no
5839 fi
5840 rm -f conftest*
5841       
5842 fi
5843
5844     fi
5845     echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5846     if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5847       ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5848       cat >> confdefs.h <<EOF
5849 #define ${ac_tr_func} 1
5850 EOF
5851
5852     fi
5853   fi
5854
5855   
5856   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5857 echo "configure:5858: checking for __builtin_sqrtl declaration" >&5
5858   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5859     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5860   echo $ac_n "(cached) $ac_c" 1>&6
5861 else
5862   
5863       
5864       ac_ext=C
5865 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5866 ac_cpp='$CXXCPP $CPPFLAGS'
5867 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5868 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5869 cross_compiling=$ac_cv_prog_cxx_cross
5870
5871       cat > conftest.$ac_ext <<EOF
5872 #line 5873 "configure"
5873 #include "confdefs.h"
5874 #include <math.h>
5875 int main() {
5876  __builtin_sqrtl(0);
5877 ; return 0; }
5878 EOF
5879 if { (eval echo configure:5880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5880   rm -rf conftest*
5881   glibcpp_cv_func___builtin_sqrtl_use=yes
5882 else
5883   echo "configure: failed program was:" >&5
5884   cat conftest.$ac_ext >&5
5885   rm -rf conftest*
5886   glibcpp_cv_func___builtin_sqrtl_use=no
5887 fi
5888 rm -f conftest*
5889       ac_ext=c
5890 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5891 ac_cpp='$CPP $CPPFLAGS'
5892 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5893 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5894 cross_compiling=$ac_cv_prog_cc_cross
5895
5896     
5897 fi
5898
5899   fi
5900   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5901   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5902     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5903 echo "configure:5904: checking for __builtin_sqrtl linkage" >&5
5904     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5905       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5906   echo $ac_n "(cached) $ac_c" 1>&6
5907 else
5908   
5909         cat > conftest.$ac_ext <<EOF
5910 #line 5911 "configure"
5911 #include "confdefs.h"
5912 #include <math.h>
5913 int main() {
5914  __builtin_sqrtl(0);
5915 ; return 0; }
5916 EOF
5917 if { (eval echo configure:5918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5918   rm -rf conftest*
5919   glibcpp_cv_func___builtin_sqrtl_link=yes
5920 else
5921   echo "configure: failed program was:" >&5
5922   cat conftest.$ac_ext >&5
5923   rm -rf conftest*
5924   glibcpp_cv_func___builtin_sqrtl_link=no
5925 fi
5926 rm -f conftest*
5927       
5928 fi
5929
5930     fi
5931     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5932     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5933       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5934       cat >> confdefs.h <<EOF
5935 #define ${ac_tr_func} 1
5936 EOF
5937
5938     fi
5939   fi
5940
5941
5942   
5943   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5944 echo "configure:5945: checking for __builtin_sinf declaration" >&5
5945   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5946     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5947   echo $ac_n "(cached) $ac_c" 1>&6
5948 else
5949   
5950       
5951       ac_ext=C
5952 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5953 ac_cpp='$CXXCPP $CPPFLAGS'
5954 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5955 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5956 cross_compiling=$ac_cv_prog_cxx_cross
5957
5958       cat > conftest.$ac_ext <<EOF
5959 #line 5960 "configure"
5960 #include "confdefs.h"
5961 #include <math.h>
5962 int main() {
5963  __builtin_sinf(0);
5964 ; return 0; }
5965 EOF
5966 if { (eval echo configure:5967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5967   rm -rf conftest*
5968   glibcpp_cv_func___builtin_sinf_use=yes
5969 else
5970   echo "configure: failed program was:" >&5
5971   cat conftest.$ac_ext >&5
5972   rm -rf conftest*
5973   glibcpp_cv_func___builtin_sinf_use=no
5974 fi
5975 rm -f conftest*
5976       ac_ext=c
5977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5978 ac_cpp='$CPP $CPPFLAGS'
5979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5980 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5981 cross_compiling=$ac_cv_prog_cc_cross
5982
5983     
5984 fi
5985
5986   fi
5987   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5988   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5989     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5990 echo "configure:5991: checking for __builtin_sinf linkage" >&5
5991     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5992       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5993   echo $ac_n "(cached) $ac_c" 1>&6
5994 else
5995   
5996         cat > conftest.$ac_ext <<EOF
5997 #line 5998 "configure"
5998 #include "confdefs.h"
5999 #include <math.h>
6000 int main() {
6001  __builtin_sinf(0);
6002 ; return 0; }
6003 EOF
6004 if { (eval echo configure:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6005   rm -rf conftest*
6006   glibcpp_cv_func___builtin_sinf_link=yes
6007 else
6008   echo "configure: failed program was:" >&5
6009   cat conftest.$ac_ext >&5
6010   rm -rf conftest*
6011   glibcpp_cv_func___builtin_sinf_link=no
6012 fi
6013 rm -f conftest*
6014       
6015 fi
6016
6017     fi
6018     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
6019     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
6020       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6021       cat >> confdefs.h <<EOF
6022 #define ${ac_tr_func} 1
6023 EOF
6024
6025     fi
6026   fi
6027
6028   
6029   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
6030 echo "configure:6031: checking for __builtin_sin declaration" >&5
6031   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
6032     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
6033   echo $ac_n "(cached) $ac_c" 1>&6
6034 else
6035   
6036       
6037       ac_ext=C
6038 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6039 ac_cpp='$CXXCPP $CPPFLAGS'
6040 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6041 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6042 cross_compiling=$ac_cv_prog_cxx_cross
6043
6044       cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 #include <math.h>
6048 int main() {
6049  __builtin_sin(0);
6050 ; return 0; }
6051 EOF
6052 if { (eval echo configure:6053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6053   rm -rf conftest*
6054   glibcpp_cv_func___builtin_sin_use=yes
6055 else
6056   echo "configure: failed program was:" >&5
6057   cat conftest.$ac_ext >&5
6058   rm -rf conftest*
6059   glibcpp_cv_func___builtin_sin_use=no
6060 fi
6061 rm -f conftest*
6062       ac_ext=c
6063 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6064 ac_cpp='$CPP $CPPFLAGS'
6065 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6066 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6067 cross_compiling=$ac_cv_prog_cc_cross
6068
6069     
6070 fi
6071
6072   fi
6073   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
6074   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
6075     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
6076 echo "configure:6077: checking for __builtin_sin linkage" >&5
6077     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
6078       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
6079   echo $ac_n "(cached) $ac_c" 1>&6
6080 else
6081   
6082         cat > conftest.$ac_ext <<EOF
6083 #line 6084 "configure"
6084 #include "confdefs.h"
6085 #include <math.h>
6086 int main() {
6087  __builtin_sin(0);
6088 ; return 0; }
6089 EOF
6090 if { (eval echo configure:6091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6091   rm -rf conftest*
6092   glibcpp_cv_func___builtin_sin_link=yes
6093 else
6094   echo "configure: failed program was:" >&5
6095   cat conftest.$ac_ext >&5
6096   rm -rf conftest*
6097   glibcpp_cv_func___builtin_sin_link=no
6098 fi
6099 rm -f conftest*
6100       
6101 fi
6102
6103     fi
6104     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
6105     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
6106       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6107       cat >> confdefs.h <<EOF
6108 #define ${ac_tr_func} 1
6109 EOF
6110
6111     fi
6112   fi
6113
6114   
6115   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
6116 echo "configure:6117: checking for __builtin_sinl declaration" >&5
6117   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
6118     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
6119   echo $ac_n "(cached) $ac_c" 1>&6
6120 else
6121   
6122       
6123       ac_ext=C
6124 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6125 ac_cpp='$CXXCPP $CPPFLAGS'
6126 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6127 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6128 cross_compiling=$ac_cv_prog_cxx_cross
6129
6130       cat > conftest.$ac_ext <<EOF
6131 #line 6132 "configure"
6132 #include "confdefs.h"
6133 #include <math.h>
6134 int main() {
6135  __builtin_sinl(0);
6136 ; return 0; }
6137 EOF
6138 if { (eval echo configure:6139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6139   rm -rf conftest*
6140   glibcpp_cv_func___builtin_sinl_use=yes
6141 else
6142   echo "configure: failed program was:" >&5
6143   cat conftest.$ac_ext >&5
6144   rm -rf conftest*
6145   glibcpp_cv_func___builtin_sinl_use=no
6146 fi
6147 rm -f conftest*
6148       ac_ext=c
6149 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6150 ac_cpp='$CPP $CPPFLAGS'
6151 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6152 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6153 cross_compiling=$ac_cv_prog_cc_cross
6154
6155     
6156 fi
6157
6158   fi
6159   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
6160   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
6161     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
6162 echo "configure:6163: checking for __builtin_sinl linkage" >&5
6163     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
6164       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
6165   echo $ac_n "(cached) $ac_c" 1>&6
6166 else
6167   
6168         cat > conftest.$ac_ext <<EOF
6169 #line 6170 "configure"
6170 #include "confdefs.h"
6171 #include <math.h>
6172 int main() {
6173  __builtin_sinl(0);
6174 ; return 0; }
6175 EOF
6176 if { (eval echo configure:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6177   rm -rf conftest*
6178   glibcpp_cv_func___builtin_sinl_link=yes
6179 else
6180   echo "configure: failed program was:" >&5
6181   cat conftest.$ac_ext >&5
6182   rm -rf conftest*
6183   glibcpp_cv_func___builtin_sinl_link=no
6184 fi
6185 rm -f conftest*
6186       
6187 fi
6188
6189     fi
6190     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
6191     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
6192       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6193       cat >> confdefs.h <<EOF
6194 #define ${ac_tr_func} 1
6195 EOF
6196
6197     fi
6198   fi
6199
6200
6201   
6202   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
6203 echo "configure:6204: checking for __builtin_cosf declaration" >&5
6204   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
6205     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
6206   echo $ac_n "(cached) $ac_c" 1>&6
6207 else
6208   
6209       
6210       ac_ext=C
6211 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6212 ac_cpp='$CXXCPP $CPPFLAGS'
6213 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6214 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6215 cross_compiling=$ac_cv_prog_cxx_cross
6216
6217       cat > conftest.$ac_ext <<EOF
6218 #line 6219 "configure"
6219 #include "confdefs.h"
6220 #include <math.h>
6221 int main() {
6222  __builtin_cosf(0);
6223 ; return 0; }
6224 EOF
6225 if { (eval echo configure:6226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6226   rm -rf conftest*
6227   glibcpp_cv_func___builtin_cosf_use=yes
6228 else
6229   echo "configure: failed program was:" >&5
6230   cat conftest.$ac_ext >&5
6231   rm -rf conftest*
6232   glibcpp_cv_func___builtin_cosf_use=no
6233 fi
6234 rm -f conftest*
6235       ac_ext=c
6236 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6237 ac_cpp='$CPP $CPPFLAGS'
6238 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6239 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6240 cross_compiling=$ac_cv_prog_cc_cross
6241
6242     
6243 fi
6244
6245   fi
6246   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6247   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6248     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6249 echo "configure:6250: checking for __builtin_cosf linkage" >&5
6250     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6251       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6252   echo $ac_n "(cached) $ac_c" 1>&6
6253 else
6254   
6255         cat > conftest.$ac_ext <<EOF
6256 #line 6257 "configure"
6257 #include "confdefs.h"
6258 #include <math.h>
6259 int main() {
6260  __builtin_cosf(0);
6261 ; return 0; }
6262 EOF
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   glibcpp_cv_func___builtin_cosf_link=yes
6266 else
6267   echo "configure: failed program was:" >&5
6268   cat conftest.$ac_ext >&5
6269   rm -rf conftest*
6270   glibcpp_cv_func___builtin_cosf_link=no
6271 fi
6272 rm -f conftest*
6273       
6274 fi
6275
6276     fi
6277     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6278     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6279       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6280       cat >> confdefs.h <<EOF
6281 #define ${ac_tr_func} 1
6282 EOF
6283
6284     fi
6285   fi
6286
6287   
6288   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6289 echo "configure:6290: checking for __builtin_cos declaration" >&5
6290   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6291     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6292   echo $ac_n "(cached) $ac_c" 1>&6
6293 else
6294   
6295       
6296       ac_ext=C
6297 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6298 ac_cpp='$CXXCPP $CPPFLAGS'
6299 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6300 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6301 cross_compiling=$ac_cv_prog_cxx_cross
6302
6303       cat > conftest.$ac_ext <<EOF
6304 #line 6305 "configure"
6305 #include "confdefs.h"
6306 #include <math.h>
6307 int main() {
6308  __builtin_cos(0);
6309 ; return 0; }
6310 EOF
6311 if { (eval echo configure:6312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6312   rm -rf conftest*
6313   glibcpp_cv_func___builtin_cos_use=yes
6314 else
6315   echo "configure: failed program was:" >&5
6316   cat conftest.$ac_ext >&5
6317   rm -rf conftest*
6318   glibcpp_cv_func___builtin_cos_use=no
6319 fi
6320 rm -f conftest*
6321       ac_ext=c
6322 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6323 ac_cpp='$CPP $CPPFLAGS'
6324 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6325 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6326 cross_compiling=$ac_cv_prog_cc_cross
6327
6328     
6329 fi
6330
6331   fi
6332   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6333   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6334     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6335 echo "configure:6336: checking for __builtin_cos linkage" >&5
6336     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6337       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6338   echo $ac_n "(cached) $ac_c" 1>&6
6339 else
6340   
6341         cat > conftest.$ac_ext <<EOF
6342 #line 6343 "configure"
6343 #include "confdefs.h"
6344 #include <math.h>
6345 int main() {
6346  __builtin_cos(0);
6347 ; return 0; }
6348 EOF
6349 if { (eval echo configure:6350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6350   rm -rf conftest*
6351   glibcpp_cv_func___builtin_cos_link=yes
6352 else
6353   echo "configure: failed program was:" >&5
6354   cat conftest.$ac_ext >&5
6355   rm -rf conftest*
6356   glibcpp_cv_func___builtin_cos_link=no
6357 fi
6358 rm -f conftest*
6359       
6360 fi
6361
6362     fi
6363     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6364     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6365       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6366       cat >> confdefs.h <<EOF
6367 #define ${ac_tr_func} 1
6368 EOF
6369
6370     fi
6371   fi
6372
6373   
6374   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6375 echo "configure:6376: checking for __builtin_cosl declaration" >&5
6376   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6377     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6378   echo $ac_n "(cached) $ac_c" 1>&6
6379 else
6380   
6381       
6382       ac_ext=C
6383 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6384 ac_cpp='$CXXCPP $CPPFLAGS'
6385 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6386 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6387 cross_compiling=$ac_cv_prog_cxx_cross
6388
6389       cat > conftest.$ac_ext <<EOF
6390 #line 6391 "configure"
6391 #include "confdefs.h"
6392 #include <math.h>
6393 int main() {
6394  __builtin_cosl(0);
6395 ; return 0; }
6396 EOF
6397 if { (eval echo configure:6398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6398   rm -rf conftest*
6399   glibcpp_cv_func___builtin_cosl_use=yes
6400 else
6401   echo "configure: failed program was:" >&5
6402   cat conftest.$ac_ext >&5
6403   rm -rf conftest*
6404   glibcpp_cv_func___builtin_cosl_use=no
6405 fi
6406 rm -f conftest*
6407       ac_ext=c
6408 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6409 ac_cpp='$CPP $CPPFLAGS'
6410 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6411 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6412 cross_compiling=$ac_cv_prog_cc_cross
6413
6414     
6415 fi
6416
6417   fi
6418   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6419   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6420     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6421 echo "configure:6422: checking for __builtin_cosl linkage" >&5
6422     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6423       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6424   echo $ac_n "(cached) $ac_c" 1>&6
6425 else
6426   
6427         cat > conftest.$ac_ext <<EOF
6428 #line 6429 "configure"
6429 #include "confdefs.h"
6430 #include <math.h>
6431 int main() {
6432  __builtin_cosl(0);
6433 ; return 0; }
6434 EOF
6435 if { (eval echo configure:6436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6436   rm -rf conftest*
6437   glibcpp_cv_func___builtin_cosl_link=yes
6438 else
6439   echo "configure: failed program was:" >&5
6440   cat conftest.$ac_ext >&5
6441   rm -rf conftest*
6442   glibcpp_cv_func___builtin_cosl_link=no
6443 fi
6444 rm -f conftest*
6445       
6446 fi
6447
6448     fi
6449     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6450     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6451       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6452       cat >> confdefs.h <<EOF
6453 #define ${ac_tr_func} 1
6454 EOF
6455
6456     fi
6457   fi
6458
6459
6460               dummyvar=no
6461   if test x$dummyvar = x"yes"; then
6462     cat >> confdefs.h <<\EOF
6463 #define HAVE___BUILTIN_ABS 1
6464 EOF
6465
6466     cat >> confdefs.h <<\EOF
6467 #define HAVE___BUILTIN_LABS 1
6468 EOF
6469
6470     cat >> confdefs.h <<\EOF
6471 #define HAVE___BUILTIN_COS 1
6472 EOF
6473
6474     cat >> confdefs.h <<\EOF
6475 #define HAVE___BUILTIN_COSF 1
6476 EOF
6477
6478     cat >> confdefs.h <<\EOF
6479 #define HAVE___BUILTIN_COSL 1
6480 EOF
6481
6482     cat >> confdefs.h <<\EOF
6483 #define HAVE___BUILTIN_FABS 1
6484 EOF
6485
6486     cat >> confdefs.h <<\EOF
6487 #define HAVE___BUILTIN_FABSF 1
6488 EOF
6489
6490     cat >> confdefs.h <<\EOF
6491 #define HAVE___BUILTIN_FABSL 1
6492 EOF
6493
6494     cat >> confdefs.h <<\EOF
6495 #define HAVE___BUILTIN_SIN 1
6496 EOF
6497
6498     cat >> confdefs.h <<\EOF
6499 #define HAVE___BUILTIN_SINF 1
6500 EOF
6501
6502     cat >> confdefs.h <<\EOF
6503 #define HAVE___BUILTIN_SINL 1
6504 EOF
6505
6506     cat >> confdefs.h <<\EOF
6507 #define HAVE___BUILTIN_FSQRT 1
6508 EOF
6509
6510     cat >> confdefs.h <<\EOF
6511 #define HAVE___BUILTIN_SQRTF 1
6512 EOF
6513
6514     cat >> confdefs.h <<\EOF
6515 #define HAVE___BUILTIN_SQRTL 1
6516 EOF
6517
6518   fi
6519
6520   
6521   ac_test_CXXFLAGS="${CXXFLAGS+set}"
6522   ac_save_CXXFLAGS="$CXXFLAGS"
6523   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6524
6525     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6526 echo "configure:6527: checking for sin in -lm" >&5
6527 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6528 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6529   echo $ac_n "(cached) $ac_c" 1>&6
6530 else
6531   ac_save_LIBS="$LIBS"
6532 LIBS="-lm  $LIBS"
6533 cat > conftest.$ac_ext <<EOF
6534 #line 6535 "configure"
6535 #include "confdefs.h"
6536 /* Override any gcc2 internal prototype to avoid an error.  */
6537 /* We use char because int might match the return type of a gcc2
6538     builtin and then its argument prototype would still apply.  */
6539 char sin();
6540
6541 int main() {
6542 sin()
6543 ; return 0; }
6544 EOF
6545 if { (eval echo configure:6546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6546   rm -rf conftest*
6547   eval "ac_cv_lib_$ac_lib_var=yes"
6548 else
6549   echo "configure: failed program was:" >&5
6550   cat conftest.$ac_ext >&5
6551   rm -rf conftest*
6552   eval "ac_cv_lib_$ac_lib_var=no"
6553 fi
6554 rm -f conftest*
6555 LIBS="$ac_save_LIBS"
6556
6557 fi
6558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6559   echo "$ac_t""yes" 1>&6
6560   libm="-lm"
6561 else
6562   echo "$ac_t""no" 1>&6
6563 fi
6564
6565   ac_save_LIBS="$LIBS"
6566   LIBS="$LIBS $libm"
6567
6568     
6569   
6570   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6571 echo "configure:6572: checking for isinf declaration" >&5
6572   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6573     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6574   echo $ac_n "(cached) $ac_c" 1>&6
6575 else
6576   
6577       
6578       ac_ext=C
6579 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6580 ac_cpp='$CXXCPP $CPPFLAGS'
6581 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6582 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6583 cross_compiling=$ac_cv_prog_cxx_cross
6584
6585       cat > conftest.$ac_ext <<EOF
6586 #line 6587 "configure"
6587 #include "confdefs.h"
6588 #include <math.h>
6589                       #ifdef HAVE_IEEEFP_H
6590                       #include <ieeefp.h>
6591                       #endif
6592                      
6593 int main() {
6594  isinf(0);
6595 ; return 0; }
6596 EOF
6597 if { (eval echo configure:6598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6598   rm -rf conftest*
6599   glibcpp_cv_func_isinf_use=yes
6600 else
6601   echo "configure: failed program was:" >&5
6602   cat conftest.$ac_ext >&5
6603   rm -rf conftest*
6604   glibcpp_cv_func_isinf_use=no
6605 fi
6606 rm -f conftest*
6607       ac_ext=c
6608 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6609 ac_cpp='$CPP $CPPFLAGS'
6610 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6611 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6612 cross_compiling=$ac_cv_prog_cc_cross
6613
6614     
6615 fi
6616
6617   fi
6618   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6619
6620   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6621     for ac_func in isinf
6622 do
6623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6624 echo "configure:6625: checking for $ac_func" >&5
6625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6626   echo $ac_n "(cached) $ac_c" 1>&6
6627 else
6628   cat > conftest.$ac_ext <<EOF
6629 #line 6630 "configure"
6630 #include "confdefs.h"
6631 /* System header to define __stub macros and hopefully few prototypes,
6632     which can conflict with char $ac_func(); below.  */
6633 #include <assert.h>
6634 /* Override any gcc2 internal prototype to avoid an error.  */
6635 /* We use char because int might match the return type of a gcc2
6636     builtin and then its argument prototype would still apply.  */
6637 char $ac_func();
6638
6639 int main() {
6640
6641 /* The GNU C library defines this for functions which it implements
6642     to always fail with ENOSYS.  Some functions are actually named
6643     something starting with __ and the normal name is an alias.  */
6644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6645 choke me
6646 #else
6647 $ac_func();
6648 #endif
6649
6650 ; return 0; }
6651 EOF
6652 if { (eval echo configure:6653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6653   rm -rf conftest*
6654   eval "ac_cv_func_$ac_func=yes"
6655 else
6656   echo "configure: failed program was:" >&5
6657   cat conftest.$ac_ext >&5
6658   rm -rf conftest*
6659   eval "ac_cv_func_$ac_func=no"
6660 fi
6661 rm -f conftest*
6662 fi
6663
6664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6665   echo "$ac_t""yes" 1>&6
6666     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6667   cat >> confdefs.h <<EOF
6668 #define $ac_tr_func 1
6669 EOF
6670  
6671 else
6672   echo "$ac_t""no" 1>&6
6673 fi
6674 done
6675     
6676   else
6677     
6678   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6679 echo "configure:6680: checking for _isinf declaration" >&5
6680   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6681     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6682   echo $ac_n "(cached) $ac_c" 1>&6
6683 else
6684   
6685       
6686       ac_ext=C
6687 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6688 ac_cpp='$CXXCPP $CPPFLAGS'
6689 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6690 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6691 cross_compiling=$ac_cv_prog_cxx_cross
6692
6693       cat > conftest.$ac_ext <<EOF
6694 #line 6695 "configure"
6695 #include "confdefs.h"
6696 #include <math.h>
6697                       #ifdef HAVE_IEEEFP_H
6698                       #include <ieeefp.h>
6699                       #endif
6700                      
6701 int main() {
6702  _isinf(0);
6703 ; return 0; }
6704 EOF
6705 if { (eval echo configure:6706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6706   rm -rf conftest*
6707   glibcpp_cv_func__isinf_use=yes
6708 else
6709   echo "configure: failed program was:" >&5
6710   cat conftest.$ac_ext >&5
6711   rm -rf conftest*
6712   glibcpp_cv_func__isinf_use=no
6713 fi
6714 rm -f conftest*
6715       ac_ext=c
6716 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6717 ac_cpp='$CPP $CPPFLAGS'
6718 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6719 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6720 cross_compiling=$ac_cv_prog_cc_cross
6721
6722     
6723 fi
6724
6725   fi
6726   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6727
6728     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6729       for ac_func in _isinf
6730 do
6731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6732 echo "configure:6733: checking for $ac_func" >&5
6733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6734   echo $ac_n "(cached) $ac_c" 1>&6
6735 else
6736   cat > conftest.$ac_ext <<EOF
6737 #line 6738 "configure"
6738 #include "confdefs.h"
6739 /* System header to define __stub macros and hopefully few prototypes,
6740     which can conflict with char $ac_func(); below.  */
6741 #include <assert.h>
6742 /* Override any gcc2 internal prototype to avoid an error.  */
6743 /* We use char because int might match the return type of a gcc2
6744     builtin and then its argument prototype would still apply.  */
6745 char $ac_func();
6746
6747 int main() {
6748
6749 /* The GNU C library defines this for functions which it implements
6750     to always fail with ENOSYS.  Some functions are actually named
6751     something starting with __ and the normal name is an alias.  */
6752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6753 choke me
6754 #else
6755 $ac_func();
6756 #endif
6757
6758 ; return 0; }
6759 EOF
6760 if { (eval echo configure:6761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6761   rm -rf conftest*
6762   eval "ac_cv_func_$ac_func=yes"
6763 else
6764   echo "configure: failed program was:" >&5
6765   cat conftest.$ac_ext >&5
6766   rm -rf conftest*
6767   eval "ac_cv_func_$ac_func=no"
6768 fi
6769 rm -f conftest*
6770 fi
6771
6772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6773   echo "$ac_t""yes" 1>&6
6774     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6775   cat >> confdefs.h <<EOF
6776 #define $ac_tr_func 1
6777 EOF
6778  
6779 else
6780   echo "$ac_t""no" 1>&6
6781 fi
6782 done
6783     
6784     fi
6785   fi
6786
6787   
6788   
6789   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6790 echo "configure:6791: checking for isnan declaration" >&5
6791   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6792     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6793   echo $ac_n "(cached) $ac_c" 1>&6
6794 else
6795   
6796       
6797       ac_ext=C
6798 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6799 ac_cpp='$CXXCPP $CPPFLAGS'
6800 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6801 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6802 cross_compiling=$ac_cv_prog_cxx_cross
6803
6804       cat > conftest.$ac_ext <<EOF
6805 #line 6806 "configure"
6806 #include "confdefs.h"
6807 #include <math.h>
6808                       #ifdef HAVE_IEEEFP_H
6809                       #include <ieeefp.h>
6810                       #endif
6811                      
6812 int main() {
6813  isnan(0);
6814 ; return 0; }
6815 EOF
6816 if { (eval echo configure:6817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6817   rm -rf conftest*
6818   glibcpp_cv_func_isnan_use=yes
6819 else
6820   echo "configure: failed program was:" >&5
6821   cat conftest.$ac_ext >&5
6822   rm -rf conftest*
6823   glibcpp_cv_func_isnan_use=no
6824 fi
6825 rm -f conftest*
6826       ac_ext=c
6827 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6828 ac_cpp='$CPP $CPPFLAGS'
6829 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6830 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6831 cross_compiling=$ac_cv_prog_cc_cross
6832
6833     
6834 fi
6835
6836   fi
6837   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6838
6839   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6840     for ac_func in isnan
6841 do
6842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6843 echo "configure:6844: checking for $ac_func" >&5
6844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6845   echo $ac_n "(cached) $ac_c" 1>&6
6846 else
6847   cat > conftest.$ac_ext <<EOF
6848 #line 6849 "configure"
6849 #include "confdefs.h"
6850 /* System header to define __stub macros and hopefully few prototypes,
6851     which can conflict with char $ac_func(); below.  */
6852 #include <assert.h>
6853 /* Override any gcc2 internal prototype to avoid an error.  */
6854 /* We use char because int might match the return type of a gcc2
6855     builtin and then its argument prototype would still apply.  */
6856 char $ac_func();
6857
6858 int main() {
6859
6860 /* The GNU C library defines this for functions which it implements
6861     to always fail with ENOSYS.  Some functions are actually named
6862     something starting with __ and the normal name is an alias.  */
6863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6864 choke me
6865 #else
6866 $ac_func();
6867 #endif
6868
6869 ; return 0; }
6870 EOF
6871 if { (eval echo configure:6872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6872   rm -rf conftest*
6873   eval "ac_cv_func_$ac_func=yes"
6874 else
6875   echo "configure: failed program was:" >&5
6876   cat conftest.$ac_ext >&5
6877   rm -rf conftest*
6878   eval "ac_cv_func_$ac_func=no"
6879 fi
6880 rm -f conftest*
6881 fi
6882
6883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6884   echo "$ac_t""yes" 1>&6
6885     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6886   cat >> confdefs.h <<EOF
6887 #define $ac_tr_func 1
6888 EOF
6889  
6890 else
6891   echo "$ac_t""no" 1>&6
6892 fi
6893 done
6894     
6895   else
6896     
6897   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6898 echo "configure:6899: checking for _isnan declaration" >&5
6899   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6900     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6901   echo $ac_n "(cached) $ac_c" 1>&6
6902 else
6903   
6904       
6905       ac_ext=C
6906 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6907 ac_cpp='$CXXCPP $CPPFLAGS'
6908 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6909 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6910 cross_compiling=$ac_cv_prog_cxx_cross
6911
6912       cat > conftest.$ac_ext <<EOF
6913 #line 6914 "configure"
6914 #include "confdefs.h"
6915 #include <math.h>
6916                       #ifdef HAVE_IEEEFP_H
6917                       #include <ieeefp.h>
6918                       #endif
6919                      
6920 int main() {
6921  _isnan(0);
6922 ; return 0; }
6923 EOF
6924 if { (eval echo configure:6925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6925   rm -rf conftest*
6926   glibcpp_cv_func__isnan_use=yes
6927 else
6928   echo "configure: failed program was:" >&5
6929   cat conftest.$ac_ext >&5
6930   rm -rf conftest*
6931   glibcpp_cv_func__isnan_use=no
6932 fi
6933 rm -f conftest*
6934       ac_ext=c
6935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6936 ac_cpp='$CPP $CPPFLAGS'
6937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6939 cross_compiling=$ac_cv_prog_cc_cross
6940
6941     
6942 fi
6943
6944   fi
6945   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6946
6947     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6948       for ac_func in _isnan
6949 do
6950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6951 echo "configure:6952: checking for $ac_func" >&5
6952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6953   echo $ac_n "(cached) $ac_c" 1>&6
6954 else
6955   cat > conftest.$ac_ext <<EOF
6956 #line 6957 "configure"
6957 #include "confdefs.h"
6958 /* System header to define __stub macros and hopefully few prototypes,
6959     which can conflict with char $ac_func(); below.  */
6960 #include <assert.h>
6961 /* Override any gcc2 internal prototype to avoid an error.  */
6962 /* We use char because int might match the return type of a gcc2
6963     builtin and then its argument prototype would still apply.  */
6964 char $ac_func();
6965
6966 int main() {
6967
6968 /* The GNU C library defines this for functions which it implements
6969     to always fail with ENOSYS.  Some functions are actually named
6970     something starting with __ and the normal name is an alias.  */
6971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6972 choke me
6973 #else
6974 $ac_func();
6975 #endif
6976
6977 ; return 0; }
6978 EOF
6979 if { (eval echo configure:6980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6980   rm -rf conftest*
6981   eval "ac_cv_func_$ac_func=yes"
6982 else
6983   echo "configure: failed program was:" >&5
6984   cat conftest.$ac_ext >&5
6985   rm -rf conftest*
6986   eval "ac_cv_func_$ac_func=no"
6987 fi
6988 rm -f conftest*
6989 fi
6990
6991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6992   echo "$ac_t""yes" 1>&6
6993     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6994   cat >> confdefs.h <<EOF
6995 #define $ac_tr_func 1
6996 EOF
6997  
6998 else
6999   echo "$ac_t""no" 1>&6
7000 fi
7001 done
7002     
7003     fi
7004   fi
7005
7006   
7007   
7008   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
7009 echo "configure:7010: checking for finite declaration" >&5
7010   if test x${glibcpp_cv_func_finite_use+set} != xset; then
7011     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
7012   echo $ac_n "(cached) $ac_c" 1>&6
7013 else
7014   
7015       
7016       ac_ext=C
7017 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7018 ac_cpp='$CXXCPP $CPPFLAGS'
7019 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7020 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7021 cross_compiling=$ac_cv_prog_cxx_cross
7022
7023       cat > conftest.$ac_ext <<EOF
7024 #line 7025 "configure"
7025 #include "confdefs.h"
7026 #include <math.h>
7027                       #ifdef HAVE_IEEEFP_H
7028                       #include <ieeefp.h>
7029                       #endif
7030                      
7031 int main() {
7032  finite(0);
7033 ; return 0; }
7034 EOF
7035 if { (eval echo configure:7036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7036   rm -rf conftest*
7037   glibcpp_cv_func_finite_use=yes
7038 else
7039   echo "configure: failed program was:" >&5
7040   cat conftest.$ac_ext >&5
7041   rm -rf conftest*
7042   glibcpp_cv_func_finite_use=no
7043 fi
7044 rm -f conftest*
7045       ac_ext=c
7046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7047 ac_cpp='$CPP $CPPFLAGS'
7048 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7049 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7050 cross_compiling=$ac_cv_prog_cc_cross
7051
7052     
7053 fi
7054
7055   fi
7056   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
7057
7058   if test x$glibcpp_cv_func_finite_use = x"yes"; then
7059     for ac_func in finite
7060 do
7061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7062 echo "configure:7063: checking for $ac_func" >&5
7063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7064   echo $ac_n "(cached) $ac_c" 1>&6
7065 else
7066   cat > conftest.$ac_ext <<EOF
7067 #line 7068 "configure"
7068 #include "confdefs.h"
7069 /* System header to define __stub macros and hopefully few prototypes,
7070     which can conflict with char $ac_func(); below.  */
7071 #include <assert.h>
7072 /* Override any gcc2 internal prototype to avoid an error.  */
7073 /* We use char because int might match the return type of a gcc2
7074     builtin and then its argument prototype would still apply.  */
7075 char $ac_func();
7076
7077 int main() {
7078
7079 /* The GNU C library defines this for functions which it implements
7080     to always fail with ENOSYS.  Some functions are actually named
7081     something starting with __ and the normal name is an alias.  */
7082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7083 choke me
7084 #else
7085 $ac_func();
7086 #endif
7087
7088 ; return 0; }
7089 EOF
7090 if { (eval echo configure:7091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7091   rm -rf conftest*
7092   eval "ac_cv_func_$ac_func=yes"
7093 else
7094   echo "configure: failed program was:" >&5
7095   cat conftest.$ac_ext >&5
7096   rm -rf conftest*
7097   eval "ac_cv_func_$ac_func=no"
7098 fi
7099 rm -f conftest*
7100 fi
7101
7102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7103   echo "$ac_t""yes" 1>&6
7104     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7105   cat >> confdefs.h <<EOF
7106 #define $ac_tr_func 1
7107 EOF
7108  
7109 else
7110   echo "$ac_t""no" 1>&6
7111 fi
7112 done
7113     
7114   else
7115     
7116   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
7117 echo "configure:7118: checking for _finite declaration" >&5
7118   if test x${glibcpp_cv_func__finite_use+set} != xset; then
7119     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
7120   echo $ac_n "(cached) $ac_c" 1>&6
7121 else
7122   
7123       
7124       ac_ext=C
7125 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7126 ac_cpp='$CXXCPP $CPPFLAGS'
7127 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7128 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7129 cross_compiling=$ac_cv_prog_cxx_cross
7130
7131       cat > conftest.$ac_ext <<EOF
7132 #line 7133 "configure"
7133 #include "confdefs.h"
7134 #include <math.h>
7135                       #ifdef HAVE_IEEEFP_H
7136                       #include <ieeefp.h>
7137                       #endif
7138                      
7139 int main() {
7140  _finite(0);
7141 ; return 0; }
7142 EOF
7143 if { (eval echo configure:7144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7144   rm -rf conftest*
7145   glibcpp_cv_func__finite_use=yes
7146 else
7147   echo "configure: failed program was:" >&5
7148   cat conftest.$ac_ext >&5
7149   rm -rf conftest*
7150   glibcpp_cv_func__finite_use=no
7151 fi
7152 rm -f conftest*
7153       ac_ext=c
7154 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7155 ac_cpp='$CPP $CPPFLAGS'
7156 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7157 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7158 cross_compiling=$ac_cv_prog_cc_cross
7159
7160     
7161 fi
7162
7163   fi
7164   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
7165
7166     if test x$glibcpp_cv_func__finite_use = x"yes"; then
7167       for ac_func in _finite
7168 do
7169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7170 echo "configure:7171: checking for $ac_func" >&5
7171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7172   echo $ac_n "(cached) $ac_c" 1>&6
7173 else
7174   cat > conftest.$ac_ext <<EOF
7175 #line 7176 "configure"
7176 #include "confdefs.h"
7177 /* System header to define __stub macros and hopefully few prototypes,
7178     which can conflict with char $ac_func(); below.  */
7179 #include <assert.h>
7180 /* Override any gcc2 internal prototype to avoid an error.  */
7181 /* We use char because int might match the return type of a gcc2
7182     builtin and then its argument prototype would still apply.  */
7183 char $ac_func();
7184
7185 int main() {
7186
7187 /* The GNU C library defines this for functions which it implements
7188     to always fail with ENOSYS.  Some functions are actually named
7189     something starting with __ and the normal name is an alias.  */
7190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7191 choke me
7192 #else
7193 $ac_func();
7194 #endif
7195
7196 ; return 0; }
7197 EOF
7198 if { (eval echo configure:7199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7199   rm -rf conftest*
7200   eval "ac_cv_func_$ac_func=yes"
7201 else
7202   echo "configure: failed program was:" >&5
7203   cat conftest.$ac_ext >&5
7204   rm -rf conftest*
7205   eval "ac_cv_func_$ac_func=no"
7206 fi
7207 rm -f conftest*
7208 fi
7209
7210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7211   echo "$ac_t""yes" 1>&6
7212     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7213   cat >> confdefs.h <<EOF
7214 #define $ac_tr_func 1
7215 EOF
7216  
7217 else
7218   echo "$ac_t""no" 1>&6
7219 fi
7220 done
7221     
7222     fi
7223   fi
7224
7225   
7226   
7227   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7228 echo "configure:7229: checking for copysign declaration" >&5
7229   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7230     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7231   echo $ac_n "(cached) $ac_c" 1>&6
7232 else
7233   
7234       
7235       ac_ext=C
7236 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7237 ac_cpp='$CXXCPP $CPPFLAGS'
7238 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7239 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7240 cross_compiling=$ac_cv_prog_cxx_cross
7241
7242       cat > conftest.$ac_ext <<EOF
7243 #line 7244 "configure"
7244 #include "confdefs.h"
7245 #include <math.h>
7246 int main() {
7247  copysign(0, 0);
7248 ; return 0; }
7249 EOF
7250 if { (eval echo configure:7251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7251   rm -rf conftest*
7252   glibcpp_cv_func_copysign_use=yes
7253 else
7254   echo "configure: failed program was:" >&5
7255   cat conftest.$ac_ext >&5
7256   rm -rf conftest*
7257   glibcpp_cv_func_copysign_use=no
7258 fi
7259 rm -f conftest*
7260       ac_ext=c
7261 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7262 ac_cpp='$CPP $CPPFLAGS'
7263 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7264 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7265 cross_compiling=$ac_cv_prog_cc_cross
7266
7267     
7268 fi
7269
7270   fi
7271   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7272
7273   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7274     for ac_func in copysign
7275 do
7276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7277 echo "configure:7278: checking for $ac_func" >&5
7278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7279   echo $ac_n "(cached) $ac_c" 1>&6
7280 else
7281   cat > conftest.$ac_ext <<EOF
7282 #line 7283 "configure"
7283 #include "confdefs.h"
7284 /* System header to define __stub macros and hopefully few prototypes,
7285     which can conflict with char $ac_func(); below.  */
7286 #include <assert.h>
7287 /* Override any gcc2 internal prototype to avoid an error.  */
7288 /* We use char because int might match the return type of a gcc2
7289     builtin and then its argument prototype would still apply.  */
7290 char $ac_func();
7291
7292 int main() {
7293
7294 /* The GNU C library defines this for functions which it implements
7295     to always fail with ENOSYS.  Some functions are actually named
7296     something starting with __ and the normal name is an alias.  */
7297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7298 choke me
7299 #else
7300 $ac_func();
7301 #endif
7302
7303 ; return 0; }
7304 EOF
7305 if { (eval echo configure:7306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7306   rm -rf conftest*
7307   eval "ac_cv_func_$ac_func=yes"
7308 else
7309   echo "configure: failed program was:" >&5
7310   cat conftest.$ac_ext >&5
7311   rm -rf conftest*
7312   eval "ac_cv_func_$ac_func=no"
7313 fi
7314 rm -f conftest*
7315 fi
7316
7317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7318   echo "$ac_t""yes" 1>&6
7319     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7320   cat >> confdefs.h <<EOF
7321 #define $ac_tr_func 1
7322 EOF
7323  
7324 else
7325   echo "$ac_t""no" 1>&6
7326 fi
7327 done
7328     
7329   else
7330     
7331   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7332 echo "configure:7333: checking for _copysign declaration" >&5
7333   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7334     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7335   echo $ac_n "(cached) $ac_c" 1>&6
7336 else
7337   
7338       
7339       ac_ext=C
7340 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7341 ac_cpp='$CXXCPP $CPPFLAGS'
7342 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7343 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7344 cross_compiling=$ac_cv_prog_cxx_cross
7345
7346       cat > conftest.$ac_ext <<EOF
7347 #line 7348 "configure"
7348 #include "confdefs.h"
7349 #include <math.h>
7350 int main() {
7351  _copysign(0, 0);
7352 ; return 0; }
7353 EOF
7354 if { (eval echo configure:7355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7355   rm -rf conftest*
7356   glibcpp_cv_func__copysign_use=yes
7357 else
7358   echo "configure: failed program was:" >&5
7359   cat conftest.$ac_ext >&5
7360   rm -rf conftest*
7361   glibcpp_cv_func__copysign_use=no
7362 fi
7363 rm -f conftest*
7364       ac_ext=c
7365 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7366 ac_cpp='$CPP $CPPFLAGS'
7367 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7368 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7369 cross_compiling=$ac_cv_prog_cc_cross
7370
7371     
7372 fi
7373
7374   fi
7375   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7376
7377     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7378       for ac_func in _copysign
7379 do
7380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7381 echo "configure:7382: checking for $ac_func" >&5
7382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7383   echo $ac_n "(cached) $ac_c" 1>&6
7384 else
7385   cat > conftest.$ac_ext <<EOF
7386 #line 7387 "configure"
7387 #include "confdefs.h"
7388 /* System header to define __stub macros and hopefully few prototypes,
7389     which can conflict with char $ac_func(); below.  */
7390 #include <assert.h>
7391 /* Override any gcc2 internal prototype to avoid an error.  */
7392 /* We use char because int might match the return type of a gcc2
7393     builtin and then its argument prototype would still apply.  */
7394 char $ac_func();
7395
7396 int main() {
7397
7398 /* The GNU C library defines this for functions which it implements
7399     to always fail with ENOSYS.  Some functions are actually named
7400     something starting with __ and the normal name is an alias.  */
7401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7402 choke me
7403 #else
7404 $ac_func();
7405 #endif
7406
7407 ; return 0; }
7408 EOF
7409 if { (eval echo configure:7410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7410   rm -rf conftest*
7411   eval "ac_cv_func_$ac_func=yes"
7412 else
7413   echo "configure: failed program was:" >&5
7414   cat conftest.$ac_ext >&5
7415   rm -rf conftest*
7416   eval "ac_cv_func_$ac_func=no"
7417 fi
7418 rm -f conftest*
7419 fi
7420
7421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7422   echo "$ac_t""yes" 1>&6
7423     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7424   cat >> confdefs.h <<EOF
7425 #define $ac_tr_func 1
7426 EOF
7427  
7428 else
7429   echo "$ac_t""no" 1>&6
7430 fi
7431 done
7432     
7433     fi
7434   fi
7435
7436   
7437   
7438   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7439 echo "configure:7440: checking for sincos declaration" >&5
7440   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7441     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7442   echo $ac_n "(cached) $ac_c" 1>&6
7443 else
7444   
7445       
7446       ac_ext=C
7447 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7448 ac_cpp='$CXXCPP $CPPFLAGS'
7449 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7450 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7451 cross_compiling=$ac_cv_prog_cxx_cross
7452
7453       cat > conftest.$ac_ext <<EOF
7454 #line 7455 "configure"
7455 #include "confdefs.h"
7456 #include <math.h>
7457 int main() {
7458  sincos(0, 0, 0);
7459 ; return 0; }
7460 EOF
7461 if { (eval echo configure:7462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7462   rm -rf conftest*
7463   glibcpp_cv_func_sincos_use=yes
7464 else
7465   echo "configure: failed program was:" >&5
7466   cat conftest.$ac_ext >&5
7467   rm -rf conftest*
7468   glibcpp_cv_func_sincos_use=no
7469 fi
7470 rm -f conftest*
7471       ac_ext=c
7472 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7473 ac_cpp='$CPP $CPPFLAGS'
7474 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7475 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7476 cross_compiling=$ac_cv_prog_cc_cross
7477
7478     
7479 fi
7480
7481   fi
7482   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7483
7484   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7485     for ac_func in sincos
7486 do
7487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7488 echo "configure:7489: checking for $ac_func" >&5
7489 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7490   echo $ac_n "(cached) $ac_c" 1>&6
7491 else
7492   cat > conftest.$ac_ext <<EOF
7493 #line 7494 "configure"
7494 #include "confdefs.h"
7495 /* System header to define __stub macros and hopefully few prototypes,
7496     which can conflict with char $ac_func(); below.  */
7497 #include <assert.h>
7498 /* Override any gcc2 internal prototype to avoid an error.  */
7499 /* We use char because int might match the return type of a gcc2
7500     builtin and then its argument prototype would still apply.  */
7501 char $ac_func();
7502
7503 int main() {
7504
7505 /* The GNU C library defines this for functions which it implements
7506     to always fail with ENOSYS.  Some functions are actually named
7507     something starting with __ and the normal name is an alias.  */
7508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7509 choke me
7510 #else
7511 $ac_func();
7512 #endif
7513
7514 ; return 0; }
7515 EOF
7516 if { (eval echo configure:7517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7517   rm -rf conftest*
7518   eval "ac_cv_func_$ac_func=yes"
7519 else
7520   echo "configure: failed program was:" >&5
7521   cat conftest.$ac_ext >&5
7522   rm -rf conftest*
7523   eval "ac_cv_func_$ac_func=no"
7524 fi
7525 rm -f conftest*
7526 fi
7527
7528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7529   echo "$ac_t""yes" 1>&6
7530     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7531   cat >> confdefs.h <<EOF
7532 #define $ac_tr_func 1
7533 EOF
7534  
7535 else
7536   echo "$ac_t""no" 1>&6
7537 fi
7538 done
7539     
7540   else
7541     
7542   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7543 echo "configure:7544: checking for _sincos declaration" >&5
7544   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7545     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7546   echo $ac_n "(cached) $ac_c" 1>&6
7547 else
7548   
7549       
7550       ac_ext=C
7551 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7552 ac_cpp='$CXXCPP $CPPFLAGS'
7553 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7554 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7555 cross_compiling=$ac_cv_prog_cxx_cross
7556
7557       cat > conftest.$ac_ext <<EOF
7558 #line 7559 "configure"
7559 #include "confdefs.h"
7560 #include <math.h>
7561 int main() {
7562  _sincos(0, 0, 0);
7563 ; return 0; }
7564 EOF
7565 if { (eval echo configure:7566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7566   rm -rf conftest*
7567   glibcpp_cv_func__sincos_use=yes
7568 else
7569   echo "configure: failed program was:" >&5
7570   cat conftest.$ac_ext >&5
7571   rm -rf conftest*
7572   glibcpp_cv_func__sincos_use=no
7573 fi
7574 rm -f conftest*
7575       ac_ext=c
7576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7577 ac_cpp='$CPP $CPPFLAGS'
7578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7580 cross_compiling=$ac_cv_prog_cc_cross
7581
7582     
7583 fi
7584
7585   fi
7586   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7587
7588     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7589       for ac_func in _sincos
7590 do
7591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7592 echo "configure:7593: checking for $ac_func" >&5
7593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7594   echo $ac_n "(cached) $ac_c" 1>&6
7595 else
7596   cat > conftest.$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7599 /* System header to define __stub macros and hopefully few prototypes,
7600     which can conflict with char $ac_func(); below.  */
7601 #include <assert.h>
7602 /* Override any gcc2 internal prototype to avoid an error.  */
7603 /* We use char because int might match the return type of a gcc2
7604     builtin and then its argument prototype would still apply.  */
7605 char $ac_func();
7606
7607 int main() {
7608
7609 /* The GNU C library defines this for functions which it implements
7610     to always fail with ENOSYS.  Some functions are actually named
7611     something starting with __ and the normal name is an alias.  */
7612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7613 choke me
7614 #else
7615 $ac_func();
7616 #endif
7617
7618 ; return 0; }
7619 EOF
7620 if { (eval echo configure:7621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7621   rm -rf conftest*
7622   eval "ac_cv_func_$ac_func=yes"
7623 else
7624   echo "configure: failed program was:" >&5
7625   cat conftest.$ac_ext >&5
7626   rm -rf conftest*
7627   eval "ac_cv_func_$ac_func=no"
7628 fi
7629 rm -f conftest*
7630 fi
7631
7632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7633   echo "$ac_t""yes" 1>&6
7634     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7635   cat >> confdefs.h <<EOF
7636 #define $ac_tr_func 1
7637 EOF
7638  
7639 else
7640   echo "$ac_t""no" 1>&6
7641 fi
7642 done
7643     
7644     fi
7645   fi
7646
7647   
7648   
7649   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7650 echo "configure:7651: checking for fpclass declaration" >&5
7651   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7652     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7653   echo $ac_n "(cached) $ac_c" 1>&6
7654 else
7655   
7656       
7657       ac_ext=C
7658 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7659 ac_cpp='$CXXCPP $CPPFLAGS'
7660 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7661 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7662 cross_compiling=$ac_cv_prog_cxx_cross
7663
7664       cat > conftest.$ac_ext <<EOF
7665 #line 7666 "configure"
7666 #include "confdefs.h"
7667 #include <math.h>
7668                       #ifdef HAVE_IEEEFP_H
7669                       #include <ieeefp.h>
7670                       #endif
7671                      
7672 int main() {
7673  fpclass(0);
7674 ; return 0; }
7675 EOF
7676 if { (eval echo configure:7677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7677   rm -rf conftest*
7678   glibcpp_cv_func_fpclass_use=yes
7679 else
7680   echo "configure: failed program was:" >&5
7681   cat conftest.$ac_ext >&5
7682   rm -rf conftest*
7683   glibcpp_cv_func_fpclass_use=no
7684 fi
7685 rm -f conftest*
7686       ac_ext=c
7687 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7688 ac_cpp='$CPP $CPPFLAGS'
7689 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7690 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7691 cross_compiling=$ac_cv_prog_cc_cross
7692
7693     
7694 fi
7695
7696   fi
7697   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7698
7699   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7700     for ac_func in fpclass
7701 do
7702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7703 echo "configure:7704: checking for $ac_func" >&5
7704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7705   echo $ac_n "(cached) $ac_c" 1>&6
7706 else
7707   cat > conftest.$ac_ext <<EOF
7708 #line 7709 "configure"
7709 #include "confdefs.h"
7710 /* System header to define __stub macros and hopefully few prototypes,
7711     which can conflict with char $ac_func(); below.  */
7712 #include <assert.h>
7713 /* Override any gcc2 internal prototype to avoid an error.  */
7714 /* We use char because int might match the return type of a gcc2
7715     builtin and then its argument prototype would still apply.  */
7716 char $ac_func();
7717
7718 int main() {
7719
7720 /* The GNU C library defines this for functions which it implements
7721     to always fail with ENOSYS.  Some functions are actually named
7722     something starting with __ and the normal name is an alias.  */
7723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7724 choke me
7725 #else
7726 $ac_func();
7727 #endif
7728
7729 ; return 0; }
7730 EOF
7731 if { (eval echo configure:7732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7732   rm -rf conftest*
7733   eval "ac_cv_func_$ac_func=yes"
7734 else
7735   echo "configure: failed program was:" >&5
7736   cat conftest.$ac_ext >&5
7737   rm -rf conftest*
7738   eval "ac_cv_func_$ac_func=no"
7739 fi
7740 rm -f conftest*
7741 fi
7742
7743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7744   echo "$ac_t""yes" 1>&6
7745     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7746   cat >> confdefs.h <<EOF
7747 #define $ac_tr_func 1
7748 EOF
7749  
7750 else
7751   echo "$ac_t""no" 1>&6
7752 fi
7753 done
7754     
7755   else
7756     
7757   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7758 echo "configure:7759: checking for _fpclass declaration" >&5
7759   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7760     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7761   echo $ac_n "(cached) $ac_c" 1>&6
7762 else
7763   
7764       
7765       ac_ext=C
7766 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7767 ac_cpp='$CXXCPP $CPPFLAGS'
7768 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7769 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7770 cross_compiling=$ac_cv_prog_cxx_cross
7771
7772       cat > conftest.$ac_ext <<EOF
7773 #line 7774 "configure"
7774 #include "confdefs.h"
7775 #include <math.h>
7776                       #ifdef HAVE_IEEEFP_H
7777                       #include <ieeefp.h>
7778                       #endif
7779                      
7780 int main() {
7781  _fpclass(0);
7782 ; return 0; }
7783 EOF
7784 if { (eval echo configure:7785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7785   rm -rf conftest*
7786   glibcpp_cv_func__fpclass_use=yes
7787 else
7788   echo "configure: failed program was:" >&5
7789   cat conftest.$ac_ext >&5
7790   rm -rf conftest*
7791   glibcpp_cv_func__fpclass_use=no
7792 fi
7793 rm -f conftest*
7794       ac_ext=c
7795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7796 ac_cpp='$CPP $CPPFLAGS'
7797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7799 cross_compiling=$ac_cv_prog_cc_cross
7800
7801     
7802 fi
7803
7804   fi
7805   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7806
7807     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7808       for ac_func in _fpclass
7809 do
7810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7811 echo "configure:7812: checking for $ac_func" >&5
7812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7813   echo $ac_n "(cached) $ac_c" 1>&6
7814 else
7815   cat > conftest.$ac_ext <<EOF
7816 #line 7817 "configure"
7817 #include "confdefs.h"
7818 /* System header to define __stub macros and hopefully few prototypes,
7819     which can conflict with char $ac_func(); below.  */
7820 #include <assert.h>
7821 /* Override any gcc2 internal prototype to avoid an error.  */
7822 /* We use char because int might match the return type of a gcc2
7823     builtin and then its argument prototype would still apply.  */
7824 char $ac_func();
7825
7826 int main() {
7827
7828 /* The GNU C library defines this for functions which it implements
7829     to always fail with ENOSYS.  Some functions are actually named
7830     something starting with __ and the normal name is an alias.  */
7831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7832 choke me
7833 #else
7834 $ac_func();
7835 #endif
7836
7837 ; return 0; }
7838 EOF
7839 if { (eval echo configure:7840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7840   rm -rf conftest*
7841   eval "ac_cv_func_$ac_func=yes"
7842 else
7843   echo "configure: failed program was:" >&5
7844   cat conftest.$ac_ext >&5
7845   rm -rf conftest*
7846   eval "ac_cv_func_$ac_func=no"
7847 fi
7848 rm -f conftest*
7849 fi
7850
7851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7852   echo "$ac_t""yes" 1>&6
7853     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7854   cat >> confdefs.h <<EOF
7855 #define $ac_tr_func 1
7856 EOF
7857  
7858 else
7859   echo "$ac_t""no" 1>&6
7860 fi
7861 done
7862     
7863     fi
7864   fi
7865
7866   
7867   
7868   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7869 echo "configure:7870: checking for qfpclass declaration" >&5
7870   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7871     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7872   echo $ac_n "(cached) $ac_c" 1>&6
7873 else
7874   
7875       
7876       ac_ext=C
7877 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7878 ac_cpp='$CXXCPP $CPPFLAGS'
7879 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7880 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7881 cross_compiling=$ac_cv_prog_cxx_cross
7882
7883       cat > conftest.$ac_ext <<EOF
7884 #line 7885 "configure"
7885 #include "confdefs.h"
7886 #include <math.h>
7887                       #ifdef HAVE_IEEEFP_H
7888                       #include <ieeefp.h>
7889                       #endif
7890                      
7891 int main() {
7892  qfpclass(0);
7893 ; return 0; }
7894 EOF
7895 if { (eval echo configure:7896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7896   rm -rf conftest*
7897   glibcpp_cv_func_qfpclass_use=yes
7898 else
7899   echo "configure: failed program was:" >&5
7900   cat conftest.$ac_ext >&5
7901   rm -rf conftest*
7902   glibcpp_cv_func_qfpclass_use=no
7903 fi
7904 rm -f conftest*
7905       ac_ext=c
7906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7907 ac_cpp='$CPP $CPPFLAGS'
7908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7909 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7910 cross_compiling=$ac_cv_prog_cc_cross
7911
7912     
7913 fi
7914
7915   fi
7916   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7917
7918   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7919     for ac_func in qfpclass
7920 do
7921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7922 echo "configure:7923: checking for $ac_func" >&5
7923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7924   echo $ac_n "(cached) $ac_c" 1>&6
7925 else
7926   cat > conftest.$ac_ext <<EOF
7927 #line 7928 "configure"
7928 #include "confdefs.h"
7929 /* System header to define __stub macros and hopefully few prototypes,
7930     which can conflict with char $ac_func(); below.  */
7931 #include <assert.h>
7932 /* Override any gcc2 internal prototype to avoid an error.  */
7933 /* We use char because int might match the return type of a gcc2
7934     builtin and then its argument prototype would still apply.  */
7935 char $ac_func();
7936
7937 int main() {
7938
7939 /* The GNU C library defines this for functions which it implements
7940     to always fail with ENOSYS.  Some functions are actually named
7941     something starting with __ and the normal name is an alias.  */
7942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7943 choke me
7944 #else
7945 $ac_func();
7946 #endif
7947
7948 ; return 0; }
7949 EOF
7950 if { (eval echo configure:7951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7951   rm -rf conftest*
7952   eval "ac_cv_func_$ac_func=yes"
7953 else
7954   echo "configure: failed program was:" >&5
7955   cat conftest.$ac_ext >&5
7956   rm -rf conftest*
7957   eval "ac_cv_func_$ac_func=no"
7958 fi
7959 rm -f conftest*
7960 fi
7961
7962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7963   echo "$ac_t""yes" 1>&6
7964     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7965   cat >> confdefs.h <<EOF
7966 #define $ac_tr_func 1
7967 EOF
7968  
7969 else
7970   echo "$ac_t""no" 1>&6
7971 fi
7972 done
7973     
7974   else
7975     
7976   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7977 echo "configure:7978: checking for _qfpclass declaration" >&5
7978   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7979     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7980   echo $ac_n "(cached) $ac_c" 1>&6
7981 else
7982   
7983       
7984       ac_ext=C
7985 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7986 ac_cpp='$CXXCPP $CPPFLAGS'
7987 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7988 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7989 cross_compiling=$ac_cv_prog_cxx_cross
7990
7991       cat > conftest.$ac_ext <<EOF
7992 #line 7993 "configure"
7993 #include "confdefs.h"
7994 #include <math.h>
7995                       #ifdef HAVE_IEEEFP_H
7996                       #include <ieeefp.h>
7997                       #endif
7998                      
7999 int main() {
8000  _qfpclass(0);
8001 ; return 0; }
8002 EOF
8003 if { (eval echo configure:8004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8004   rm -rf conftest*
8005   glibcpp_cv_func__qfpclass_use=yes
8006 else
8007   echo "configure: failed program was:" >&5
8008   cat conftest.$ac_ext >&5
8009   rm -rf conftest*
8010   glibcpp_cv_func__qfpclass_use=no
8011 fi
8012 rm -f conftest*
8013       ac_ext=c
8014 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8015 ac_cpp='$CPP $CPPFLAGS'
8016 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8017 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8018 cross_compiling=$ac_cv_prog_cc_cross
8019
8020     
8021 fi
8022
8023   fi
8024   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
8025
8026     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
8027       for ac_func in _qfpclass
8028 do
8029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8030 echo "configure:8031: checking for $ac_func" >&5
8031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8032   echo $ac_n "(cached) $ac_c" 1>&6
8033 else
8034   cat > conftest.$ac_ext <<EOF
8035 #line 8036 "configure"
8036 #include "confdefs.h"
8037 /* System header to define __stub macros and hopefully few prototypes,
8038     which can conflict with char $ac_func(); below.  */
8039 #include <assert.h>
8040 /* Override any gcc2 internal prototype to avoid an error.  */
8041 /* We use char because int might match the return type of a gcc2
8042     builtin and then its argument prototype would still apply.  */
8043 char $ac_func();
8044
8045 int main() {
8046
8047 /* The GNU C library defines this for functions which it implements
8048     to always fail with ENOSYS.  Some functions are actually named
8049     something starting with __ and the normal name is an alias.  */
8050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8051 choke me
8052 #else
8053 $ac_func();
8054 #endif
8055
8056 ; return 0; }
8057 EOF
8058 if { (eval echo configure:8059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8059   rm -rf conftest*
8060   eval "ac_cv_func_$ac_func=yes"
8061 else
8062   echo "configure: failed program was:" >&5
8063   cat conftest.$ac_ext >&5
8064   rm -rf conftest*
8065   eval "ac_cv_func_$ac_func=no"
8066 fi
8067 rm -f conftest*
8068 fi
8069
8070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8071   echo "$ac_t""yes" 1>&6
8072     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8073   cat >> confdefs.h <<EOF
8074 #define $ac_tr_func 1
8075 EOF
8076  
8077 else
8078   echo "$ac_t""no" 1>&6
8079 fi
8080 done
8081     
8082     fi
8083   fi
8084
8085   
8086   
8087   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
8088 echo "configure:8089: checking for hypot declaration" >&5
8089   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
8090     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
8091   echo $ac_n "(cached) $ac_c" 1>&6
8092 else
8093   
8094       
8095       ac_ext=C
8096 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8097 ac_cpp='$CXXCPP $CPPFLAGS'
8098 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8099 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8100 cross_compiling=$ac_cv_prog_cxx_cross
8101
8102       cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure"
8104 #include "confdefs.h"
8105 #include <math.h>
8106 int main() {
8107  hypot(0, 0);
8108 ; return 0; }
8109 EOF
8110 if { (eval echo configure:8111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8111   rm -rf conftest*
8112   glibcpp_cv_func_hypot_use=yes
8113 else
8114   echo "configure: failed program was:" >&5
8115   cat conftest.$ac_ext >&5
8116   rm -rf conftest*
8117   glibcpp_cv_func_hypot_use=no
8118 fi
8119 rm -f conftest*
8120       ac_ext=c
8121 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8122 ac_cpp='$CPP $CPPFLAGS'
8123 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8124 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8125 cross_compiling=$ac_cv_prog_cc_cross
8126
8127     
8128 fi
8129
8130   fi
8131   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
8132
8133   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
8134     for ac_func in hypot
8135 do
8136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8137 echo "configure:8138: checking for $ac_func" >&5
8138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8139   echo $ac_n "(cached) $ac_c" 1>&6
8140 else
8141   cat > conftest.$ac_ext <<EOF
8142 #line 8143 "configure"
8143 #include "confdefs.h"
8144 /* System header to define __stub macros and hopefully few prototypes,
8145     which can conflict with char $ac_func(); below.  */
8146 #include <assert.h>
8147 /* Override any gcc2 internal prototype to avoid an error.  */
8148 /* We use char because int might match the return type of a gcc2
8149     builtin and then its argument prototype would still apply.  */
8150 char $ac_func();
8151
8152 int main() {
8153
8154 /* The GNU C library defines this for functions which it implements
8155     to always fail with ENOSYS.  Some functions are actually named
8156     something starting with __ and the normal name is an alias.  */
8157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8158 choke me
8159 #else
8160 $ac_func();
8161 #endif
8162
8163 ; return 0; }
8164 EOF
8165 if { (eval echo configure:8166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8166   rm -rf conftest*
8167   eval "ac_cv_func_$ac_func=yes"
8168 else
8169   echo "configure: failed program was:" >&5
8170   cat conftest.$ac_ext >&5
8171   rm -rf conftest*
8172   eval "ac_cv_func_$ac_func=no"
8173 fi
8174 rm -f conftest*
8175 fi
8176
8177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8178   echo "$ac_t""yes" 1>&6
8179     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8180   cat >> confdefs.h <<EOF
8181 #define $ac_tr_func 1
8182 EOF
8183  
8184 else
8185   echo "$ac_t""no" 1>&6
8186 fi
8187 done
8188     
8189   else
8190     
8191   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
8192 echo "configure:8193: checking for _hypot declaration" >&5
8193   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
8194     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
8195   echo $ac_n "(cached) $ac_c" 1>&6
8196 else
8197   
8198       
8199       ac_ext=C
8200 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8201 ac_cpp='$CXXCPP $CPPFLAGS'
8202 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8203 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8204 cross_compiling=$ac_cv_prog_cxx_cross
8205
8206       cat > conftest.$ac_ext <<EOF
8207 #line 8208 "configure"
8208 #include "confdefs.h"
8209 #include <math.h>
8210 int main() {
8211  _hypot(0, 0);
8212 ; return 0; }
8213 EOF
8214 if { (eval echo configure:8215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8215   rm -rf conftest*
8216   glibcpp_cv_func__hypot_use=yes
8217 else
8218   echo "configure: failed program was:" >&5
8219   cat conftest.$ac_ext >&5
8220   rm -rf conftest*
8221   glibcpp_cv_func__hypot_use=no
8222 fi
8223 rm -f conftest*
8224       ac_ext=c
8225 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8226 ac_cpp='$CPP $CPPFLAGS'
8227 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8228 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8229 cross_compiling=$ac_cv_prog_cc_cross
8230
8231     
8232 fi
8233
8234   fi
8235   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
8236
8237     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
8238       for ac_func in _hypot
8239 do
8240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8241 echo "configure:8242: checking for $ac_func" >&5
8242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8243   echo $ac_n "(cached) $ac_c" 1>&6
8244 else
8245   cat > conftest.$ac_ext <<EOF
8246 #line 8247 "configure"
8247 #include "confdefs.h"
8248 /* System header to define __stub macros and hopefully few prototypes,
8249     which can conflict with char $ac_func(); below.  */
8250 #include <assert.h>
8251 /* Override any gcc2 internal prototype to avoid an error.  */
8252 /* We use char because int might match the return type of a gcc2
8253     builtin and then its argument prototype would still apply.  */
8254 char $ac_func();
8255
8256 int main() {
8257
8258 /* The GNU C library defines this for functions which it implements
8259     to always fail with ENOSYS.  Some functions are actually named
8260     something starting with __ and the normal name is an alias.  */
8261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8262 choke me
8263 #else
8264 $ac_func();
8265 #endif
8266
8267 ; return 0; }
8268 EOF
8269 if { (eval echo configure:8270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8270   rm -rf conftest*
8271   eval "ac_cv_func_$ac_func=yes"
8272 else
8273   echo "configure: failed program was:" >&5
8274   cat conftest.$ac_ext >&5
8275   rm -rf conftest*
8276   eval "ac_cv_func_$ac_func=no"
8277 fi
8278 rm -f conftest*
8279 fi
8280
8281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8282   echo "$ac_t""yes" 1>&6
8283     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8284   cat >> confdefs.h <<EOF
8285 #define $ac_tr_func 1
8286 EOF
8287  
8288 else
8289   echo "$ac_t""no" 1>&6
8290 fi
8291 done
8292     
8293     fi
8294   fi
8295
8296
8297     
8298   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
8299 echo "configure:8300: checking for float trig functions" >&5
8300   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
8301   echo $ac_n "(cached) $ac_c" 1>&6
8302 else
8303   
8304     
8305     ac_ext=C
8306 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8307 ac_cpp='$CXXCPP $CPPFLAGS'
8308 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8309 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8310 cross_compiling=$ac_cv_prog_cxx_cross
8311
8312     cat > conftest.$ac_ext <<EOF
8313 #line 8314 "configure"
8314 #include "confdefs.h"
8315 #include <math.h>
8316 int main() {
8317  `for x in acosf asinf atanf \
8318                                           cosf sinf tanf \
8319                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
8320 ; return 0; }
8321 EOF
8322 if { (eval echo configure:8323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8323   rm -rf conftest*
8324   glibcpp_cv_func_float_trig_use=yes
8325 else
8326   echo "configure: failed program was:" >&5
8327   cat conftest.$ac_ext >&5
8328   rm -rf conftest*
8329   glibcpp_cv_func_float_trig_use=no
8330 fi
8331 rm -f conftest*
8332     ac_ext=c
8333 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8334 ac_cpp='$CPP $CPPFLAGS'
8335 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8336 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8337 cross_compiling=$ac_cv_prog_cc_cross
8338
8339 fi
8340
8341   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
8342   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
8343     for ac_func in acosf asinf atanf \
8344                                           cosf sinf tanf \
8345                                           coshf sinhf tanhf
8346 do
8347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8348 echo "configure:8349: checking for $ac_func" >&5
8349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8350   echo $ac_n "(cached) $ac_c" 1>&6
8351 else
8352   cat > conftest.$ac_ext <<EOF
8353 #line 8354 "configure"
8354 #include "confdefs.h"
8355 /* System header to define __stub macros and hopefully few prototypes,
8356     which can conflict with char $ac_func(); below.  */
8357 #include <assert.h>
8358 /* Override any gcc2 internal prototype to avoid an error.  */
8359 /* We use char because int might match the return type of a gcc2
8360     builtin and then its argument prototype would still apply.  */
8361 char $ac_func();
8362
8363 int main() {
8364
8365 /* The GNU C library defines this for functions which it implements
8366     to always fail with ENOSYS.  Some functions are actually named
8367     something starting with __ and the normal name is an alias.  */
8368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8369 choke me
8370 #else
8371 $ac_func();
8372 #endif
8373
8374 ; return 0; }
8375 EOF
8376 if { (eval echo configure:8377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8377   rm -rf conftest*
8378   eval "ac_cv_func_$ac_func=yes"
8379 else
8380   echo "configure: failed program was:" >&5
8381   cat conftest.$ac_ext >&5
8382   rm -rf conftest*
8383   eval "ac_cv_func_$ac_func=no"
8384 fi
8385 rm -f conftest*
8386 fi
8387
8388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8389   echo "$ac_t""yes" 1>&6
8390     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8391   cat >> confdefs.h <<EOF
8392 #define $ac_tr_func 1
8393 EOF
8394  
8395 else
8396   echo "$ac_t""no" 1>&6
8397 fi
8398 done
8399
8400   fi
8401
8402   
8403   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
8404 echo "configure:8405: checking for float round functions" >&5
8405   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
8406   echo $ac_n "(cached) $ac_c" 1>&6
8407 else
8408   
8409     
8410     ac_ext=C
8411 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8412 ac_cpp='$CXXCPP $CPPFLAGS'
8413 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8414 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8415 cross_compiling=$ac_cv_prog_cxx_cross
8416
8417     cat > conftest.$ac_ext <<EOF
8418 #line 8419 "configure"
8419 #include "confdefs.h"
8420 #include <math.h>
8421 int main() {
8422  `for x in ceilf floorf; do echo "$x (0);"; done` 
8423 ; return 0; }
8424 EOF
8425 if { (eval echo configure:8426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8426   rm -rf conftest*
8427   glibcpp_cv_func_float_round_use=yes
8428 else
8429   echo "configure: failed program was:" >&5
8430   cat conftest.$ac_ext >&5
8431   rm -rf conftest*
8432   glibcpp_cv_func_float_round_use=no
8433 fi
8434 rm -f conftest*
8435     ac_ext=c
8436 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8437 ac_cpp='$CPP $CPPFLAGS'
8438 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8439 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8440 cross_compiling=$ac_cv_prog_cc_cross
8441
8442 fi
8443
8444   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8445   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8446     for ac_func in ceilf floorf
8447 do
8448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8449 echo "configure:8450: checking for $ac_func" >&5
8450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8451   echo $ac_n "(cached) $ac_c" 1>&6
8452 else
8453   cat > conftest.$ac_ext <<EOF
8454 #line 8455 "configure"
8455 #include "confdefs.h"
8456 /* System header to define __stub macros and hopefully few prototypes,
8457     which can conflict with char $ac_func(); below.  */
8458 #include <assert.h>
8459 /* Override any gcc2 internal prototype to avoid an error.  */
8460 /* We use char because int might match the return type of a gcc2
8461     builtin and then its argument prototype would still apply.  */
8462 char $ac_func();
8463
8464 int main() {
8465
8466 /* The GNU C library defines this for functions which it implements
8467     to always fail with ENOSYS.  Some functions are actually named
8468     something starting with __ and the normal name is an alias.  */
8469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8470 choke me
8471 #else
8472 $ac_func();
8473 #endif
8474
8475 ; return 0; }
8476 EOF
8477 if { (eval echo configure:8478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8478   rm -rf conftest*
8479   eval "ac_cv_func_$ac_func=yes"
8480 else
8481   echo "configure: failed program was:" >&5
8482   cat conftest.$ac_ext >&5
8483   rm -rf conftest*
8484   eval "ac_cv_func_$ac_func=no"
8485 fi
8486 rm -f conftest*
8487 fi
8488
8489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8490   echo "$ac_t""yes" 1>&6
8491     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8492   cat >> confdefs.h <<EOF
8493 #define $ac_tr_func 1
8494 EOF
8495  
8496 else
8497   echo "$ac_t""no" 1>&6
8498 fi
8499 done
8500
8501   fi
8502
8503   
8504   
8505   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8506 echo "configure:8507: checking for isnanf declaration" >&5
8507   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8508     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8509   echo $ac_n "(cached) $ac_c" 1>&6
8510 else
8511   
8512       
8513       ac_ext=C
8514 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8515 ac_cpp='$CXXCPP $CPPFLAGS'
8516 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8517 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8518 cross_compiling=$ac_cv_prog_cxx_cross
8519
8520       cat > conftest.$ac_ext <<EOF
8521 #line 8522 "configure"
8522 #include "confdefs.h"
8523 #include <math.h>
8524                       #ifdef HAVE_IEEEFP_H
8525                       #include <ieeefp.h>
8526                       #endif
8527                      
8528 int main() {
8529  isnanf(0);
8530 ; return 0; }
8531 EOF
8532 if { (eval echo configure:8533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8533   rm -rf conftest*
8534   glibcpp_cv_func_isnanf_use=yes
8535 else
8536   echo "configure: failed program was:" >&5
8537   cat conftest.$ac_ext >&5
8538   rm -rf conftest*
8539   glibcpp_cv_func_isnanf_use=no
8540 fi
8541 rm -f conftest*
8542       ac_ext=c
8543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8544 ac_cpp='$CPP $CPPFLAGS'
8545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8547 cross_compiling=$ac_cv_prog_cc_cross
8548
8549     
8550 fi
8551
8552   fi
8553   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8554
8555   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8556     for ac_func in isnanf
8557 do
8558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8559 echo "configure:8560: checking for $ac_func" >&5
8560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8561   echo $ac_n "(cached) $ac_c" 1>&6
8562 else
8563   cat > conftest.$ac_ext <<EOF
8564 #line 8565 "configure"
8565 #include "confdefs.h"
8566 /* System header to define __stub macros and hopefully few prototypes,
8567     which can conflict with char $ac_func(); below.  */
8568 #include <assert.h>
8569 /* Override any gcc2 internal prototype to avoid an error.  */
8570 /* We use char because int might match the return type of a gcc2
8571     builtin and then its argument prototype would still apply.  */
8572 char $ac_func();
8573
8574 int main() {
8575
8576 /* The GNU C library defines this for functions which it implements
8577     to always fail with ENOSYS.  Some functions are actually named
8578     something starting with __ and the normal name is an alias.  */
8579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8580 choke me
8581 #else
8582 $ac_func();
8583 #endif
8584
8585 ; return 0; }
8586 EOF
8587 if { (eval echo configure:8588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8588   rm -rf conftest*
8589   eval "ac_cv_func_$ac_func=yes"
8590 else
8591   echo "configure: failed program was:" >&5
8592   cat conftest.$ac_ext >&5
8593   rm -rf conftest*
8594   eval "ac_cv_func_$ac_func=no"
8595 fi
8596 rm -f conftest*
8597 fi
8598
8599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8600   echo "$ac_t""yes" 1>&6
8601     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8602   cat >> confdefs.h <<EOF
8603 #define $ac_tr_func 1
8604 EOF
8605  
8606 else
8607   echo "$ac_t""no" 1>&6
8608 fi
8609 done
8610     
8611   else
8612     
8613   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8614 echo "configure:8615: checking for _isnanf declaration" >&5
8615   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8616     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8617   echo $ac_n "(cached) $ac_c" 1>&6
8618 else
8619   
8620       
8621       ac_ext=C
8622 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8623 ac_cpp='$CXXCPP $CPPFLAGS'
8624 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8625 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8626 cross_compiling=$ac_cv_prog_cxx_cross
8627
8628       cat > conftest.$ac_ext <<EOF
8629 #line 8630 "configure"
8630 #include "confdefs.h"
8631 #include <math.h>
8632                       #ifdef HAVE_IEEEFP_H
8633                       #include <ieeefp.h>
8634                       #endif
8635                      
8636 int main() {
8637  _isnanf(0);
8638 ; return 0; }
8639 EOF
8640 if { (eval echo configure:8641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8641   rm -rf conftest*
8642   glibcpp_cv_func__isnanf_use=yes
8643 else
8644   echo "configure: failed program was:" >&5
8645   cat conftest.$ac_ext >&5
8646   rm -rf conftest*
8647   glibcpp_cv_func__isnanf_use=no
8648 fi
8649 rm -f conftest*
8650       ac_ext=c
8651 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8652 ac_cpp='$CPP $CPPFLAGS'
8653 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8654 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8655 cross_compiling=$ac_cv_prog_cc_cross
8656
8657     
8658 fi
8659
8660   fi
8661   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8662
8663     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8664       for ac_func in _isnanf
8665 do
8666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8667 echo "configure:8668: checking for $ac_func" >&5
8668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8669   echo $ac_n "(cached) $ac_c" 1>&6
8670 else
8671   cat > conftest.$ac_ext <<EOF
8672 #line 8673 "configure"
8673 #include "confdefs.h"
8674 /* System header to define __stub macros and hopefully few prototypes,
8675     which can conflict with char $ac_func(); below.  */
8676 #include <assert.h>
8677 /* Override any gcc2 internal prototype to avoid an error.  */
8678 /* We use char because int might match the return type of a gcc2
8679     builtin and then its argument prototype would still apply.  */
8680 char $ac_func();
8681
8682 int main() {
8683
8684 /* The GNU C library defines this for functions which it implements
8685     to always fail with ENOSYS.  Some functions are actually named
8686     something starting with __ and the normal name is an alias.  */
8687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8688 choke me
8689 #else
8690 $ac_func();
8691 #endif
8692
8693 ; return 0; }
8694 EOF
8695 if { (eval echo configure:8696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8696   rm -rf conftest*
8697   eval "ac_cv_func_$ac_func=yes"
8698 else
8699   echo "configure: failed program was:" >&5
8700   cat conftest.$ac_ext >&5
8701   rm -rf conftest*
8702   eval "ac_cv_func_$ac_func=no"
8703 fi
8704 rm -f conftest*
8705 fi
8706
8707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8708   echo "$ac_t""yes" 1>&6
8709     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8710   cat >> confdefs.h <<EOF
8711 #define $ac_tr_func 1
8712 EOF
8713  
8714 else
8715   echo "$ac_t""no" 1>&6
8716 fi
8717 done
8718     
8719     fi
8720   fi
8721
8722   
8723   
8724   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8725 echo "configure:8726: checking for isinff declaration" >&5
8726   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8727     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8728   echo $ac_n "(cached) $ac_c" 1>&6
8729 else
8730   
8731       
8732       ac_ext=C
8733 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8734 ac_cpp='$CXXCPP $CPPFLAGS'
8735 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8736 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8737 cross_compiling=$ac_cv_prog_cxx_cross
8738
8739       cat > conftest.$ac_ext <<EOF
8740 #line 8741 "configure"
8741 #include "confdefs.h"
8742 #include <math.h>
8743                       #ifdef HAVE_IEEEFP_H
8744                       #include <ieeefp.h>
8745                       #endif
8746                      
8747 int main() {
8748  isinff(0);
8749 ; return 0; }
8750 EOF
8751 if { (eval echo configure:8752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8752   rm -rf conftest*
8753   glibcpp_cv_func_isinff_use=yes
8754 else
8755   echo "configure: failed program was:" >&5
8756   cat conftest.$ac_ext >&5
8757   rm -rf conftest*
8758   glibcpp_cv_func_isinff_use=no
8759 fi
8760 rm -f conftest*
8761       ac_ext=c
8762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8763 ac_cpp='$CPP $CPPFLAGS'
8764 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8765 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8766 cross_compiling=$ac_cv_prog_cc_cross
8767
8768     
8769 fi
8770
8771   fi
8772   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8773
8774   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8775     for ac_func in isinff
8776 do
8777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8778 echo "configure:8779: checking for $ac_func" >&5
8779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8780   echo $ac_n "(cached) $ac_c" 1>&6
8781 else
8782   cat > conftest.$ac_ext <<EOF
8783 #line 8784 "configure"
8784 #include "confdefs.h"
8785 /* System header to define __stub macros and hopefully few prototypes,
8786     which can conflict with char $ac_func(); below.  */
8787 #include <assert.h>
8788 /* Override any gcc2 internal prototype to avoid an error.  */
8789 /* We use char because int might match the return type of a gcc2
8790     builtin and then its argument prototype would still apply.  */
8791 char $ac_func();
8792
8793 int main() {
8794
8795 /* The GNU C library defines this for functions which it implements
8796     to always fail with ENOSYS.  Some functions are actually named
8797     something starting with __ and the normal name is an alias.  */
8798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8799 choke me
8800 #else
8801 $ac_func();
8802 #endif
8803
8804 ; return 0; }
8805 EOF
8806 if { (eval echo configure:8807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8807   rm -rf conftest*
8808   eval "ac_cv_func_$ac_func=yes"
8809 else
8810   echo "configure: failed program was:" >&5
8811   cat conftest.$ac_ext >&5
8812   rm -rf conftest*
8813   eval "ac_cv_func_$ac_func=no"
8814 fi
8815 rm -f conftest*
8816 fi
8817
8818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8819   echo "$ac_t""yes" 1>&6
8820     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8821   cat >> confdefs.h <<EOF
8822 #define $ac_tr_func 1
8823 EOF
8824  
8825 else
8826   echo "$ac_t""no" 1>&6
8827 fi
8828 done
8829     
8830   else
8831     
8832   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8833 echo "configure:8834: checking for _isinff declaration" >&5
8834   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8835     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8836   echo $ac_n "(cached) $ac_c" 1>&6
8837 else
8838   
8839       
8840       ac_ext=C
8841 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8842 ac_cpp='$CXXCPP $CPPFLAGS'
8843 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8844 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8845 cross_compiling=$ac_cv_prog_cxx_cross
8846
8847       cat > conftest.$ac_ext <<EOF
8848 #line 8849 "configure"
8849 #include "confdefs.h"
8850 #include <math.h>
8851                       #ifdef HAVE_IEEEFP_H
8852                       #include <ieeefp.h>
8853                       #endif
8854                      
8855 int main() {
8856  _isinff(0);
8857 ; return 0; }
8858 EOF
8859 if { (eval echo configure:8860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8860   rm -rf conftest*
8861   glibcpp_cv_func__isinff_use=yes
8862 else
8863   echo "configure: failed program was:" >&5
8864   cat conftest.$ac_ext >&5
8865   rm -rf conftest*
8866   glibcpp_cv_func__isinff_use=no
8867 fi
8868 rm -f conftest*
8869       ac_ext=c
8870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8871 ac_cpp='$CPP $CPPFLAGS'
8872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8873 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8874 cross_compiling=$ac_cv_prog_cc_cross
8875
8876     
8877 fi
8878
8879   fi
8880   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8881
8882     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8883       for ac_func in _isinff
8884 do
8885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8886 echo "configure:8887: checking for $ac_func" >&5
8887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8888   echo $ac_n "(cached) $ac_c" 1>&6
8889 else
8890   cat > conftest.$ac_ext <<EOF
8891 #line 8892 "configure"
8892 #include "confdefs.h"
8893 /* System header to define __stub macros and hopefully few prototypes,
8894     which can conflict with char $ac_func(); below.  */
8895 #include <assert.h>
8896 /* Override any gcc2 internal prototype to avoid an error.  */
8897 /* We use char because int might match the return type of a gcc2
8898     builtin and then its argument prototype would still apply.  */
8899 char $ac_func();
8900
8901 int main() {
8902
8903 /* The GNU C library defines this for functions which it implements
8904     to always fail with ENOSYS.  Some functions are actually named
8905     something starting with __ and the normal name is an alias.  */
8906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8907 choke me
8908 #else
8909 $ac_func();
8910 #endif
8911
8912 ; return 0; }
8913 EOF
8914 if { (eval echo configure:8915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8915   rm -rf conftest*
8916   eval "ac_cv_func_$ac_func=yes"
8917 else
8918   echo "configure: failed program was:" >&5
8919   cat conftest.$ac_ext >&5
8920   rm -rf conftest*
8921   eval "ac_cv_func_$ac_func=no"
8922 fi
8923 rm -f conftest*
8924 fi
8925
8926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8927   echo "$ac_t""yes" 1>&6
8928     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8929   cat >> confdefs.h <<EOF
8930 #define $ac_tr_func 1
8931 EOF
8932  
8933 else
8934   echo "$ac_t""no" 1>&6
8935 fi
8936 done
8937     
8938     fi
8939   fi
8940
8941   
8942   
8943   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
8944 echo "configure:8945: checking for atan2f declaration" >&5
8945   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
8946     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
8947   echo $ac_n "(cached) $ac_c" 1>&6
8948 else
8949   
8950       
8951       ac_ext=C
8952 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8953 ac_cpp='$CXXCPP $CPPFLAGS'
8954 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8955 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8956 cross_compiling=$ac_cv_prog_cxx_cross
8957
8958       cat > conftest.$ac_ext <<EOF
8959 #line 8960 "configure"
8960 #include "confdefs.h"
8961 #include <math.h>
8962 int main() {
8963  atan2f(0, 0);
8964 ; return 0; }
8965 EOF
8966 if { (eval echo configure:8967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8967   rm -rf conftest*
8968   glibcpp_cv_func_atan2f_use=yes
8969 else
8970   echo "configure: failed program was:" >&5
8971   cat conftest.$ac_ext >&5
8972   rm -rf conftest*
8973   glibcpp_cv_func_atan2f_use=no
8974 fi
8975 rm -f conftest*
8976       ac_ext=c
8977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8978 ac_cpp='$CPP $CPPFLAGS'
8979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8980 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8981 cross_compiling=$ac_cv_prog_cc_cross
8982
8983     
8984 fi
8985
8986   fi
8987   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
8988
8989   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
8990     for ac_func in atan2f
8991 do
8992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8993 echo "configure:8994: checking for $ac_func" >&5
8994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8995   echo $ac_n "(cached) $ac_c" 1>&6
8996 else
8997   cat > conftest.$ac_ext <<EOF
8998 #line 8999 "configure"
8999 #include "confdefs.h"
9000 /* System header to define __stub macros and hopefully few prototypes,
9001     which can conflict with char $ac_func(); below.  */
9002 #include <assert.h>
9003 /* Override any gcc2 internal prototype to avoid an error.  */
9004 /* We use char because int might match the return type of a gcc2
9005     builtin and then its argument prototype would still apply.  */
9006 char $ac_func();
9007
9008 int main() {
9009
9010 /* The GNU C library defines this for functions which it implements
9011     to always fail with ENOSYS.  Some functions are actually named
9012     something starting with __ and the normal name is an alias.  */
9013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9014 choke me
9015 #else
9016 $ac_func();
9017 #endif
9018
9019 ; return 0; }
9020 EOF
9021 if { (eval echo configure:9022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9022   rm -rf conftest*
9023   eval "ac_cv_func_$ac_func=yes"
9024 else
9025   echo "configure: failed program was:" >&5
9026   cat conftest.$ac_ext >&5
9027   rm -rf conftest*
9028   eval "ac_cv_func_$ac_func=no"
9029 fi
9030 rm -f conftest*
9031 fi
9032
9033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9034   echo "$ac_t""yes" 1>&6
9035     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9036   cat >> confdefs.h <<EOF
9037 #define $ac_tr_func 1
9038 EOF
9039  
9040 else
9041   echo "$ac_t""no" 1>&6
9042 fi
9043 done
9044     
9045   else
9046     
9047   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
9048 echo "configure:9049: checking for _atan2f declaration" >&5
9049   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
9050     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
9051   echo $ac_n "(cached) $ac_c" 1>&6
9052 else
9053   
9054       
9055       ac_ext=C
9056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9057 ac_cpp='$CXXCPP $CPPFLAGS'
9058 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9059 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9060 cross_compiling=$ac_cv_prog_cxx_cross
9061
9062       cat > conftest.$ac_ext <<EOF
9063 #line 9064 "configure"
9064 #include "confdefs.h"
9065 #include <math.h>
9066 int main() {
9067  _atan2f(0, 0);
9068 ; return 0; }
9069 EOF
9070 if { (eval echo configure:9071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9071   rm -rf conftest*
9072   glibcpp_cv_func__atan2f_use=yes
9073 else
9074   echo "configure: failed program was:" >&5
9075   cat conftest.$ac_ext >&5
9076   rm -rf conftest*
9077   glibcpp_cv_func__atan2f_use=no
9078 fi
9079 rm -f conftest*
9080       ac_ext=c
9081 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9082 ac_cpp='$CPP $CPPFLAGS'
9083 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9084 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9085 cross_compiling=$ac_cv_prog_cc_cross
9086
9087     
9088 fi
9089
9090   fi
9091   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
9092
9093     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
9094       for ac_func in _atan2f
9095 do
9096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9097 echo "configure:9098: checking for $ac_func" >&5
9098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9099   echo $ac_n "(cached) $ac_c" 1>&6
9100 else
9101   cat > conftest.$ac_ext <<EOF
9102 #line 9103 "configure"
9103 #include "confdefs.h"
9104 /* System header to define __stub macros and hopefully few prototypes,
9105     which can conflict with char $ac_func(); below.  */
9106 #include <assert.h>
9107 /* Override any gcc2 internal prototype to avoid an error.  */
9108 /* We use char because int might match the return type of a gcc2
9109     builtin and then its argument prototype would still apply.  */
9110 char $ac_func();
9111
9112 int main() {
9113
9114 /* The GNU C library defines this for functions which it implements
9115     to always fail with ENOSYS.  Some functions are actually named
9116     something starting with __ and the normal name is an alias.  */
9117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9118 choke me
9119 #else
9120 $ac_func();
9121 #endif
9122
9123 ; return 0; }
9124 EOF
9125 if { (eval echo configure:9126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9126   rm -rf conftest*
9127   eval "ac_cv_func_$ac_func=yes"
9128 else
9129   echo "configure: failed program was:" >&5
9130   cat conftest.$ac_ext >&5
9131   rm -rf conftest*
9132   eval "ac_cv_func_$ac_func=no"
9133 fi
9134 rm -f conftest*
9135 fi
9136
9137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9138   echo "$ac_t""yes" 1>&6
9139     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9140   cat >> confdefs.h <<EOF
9141 #define $ac_tr_func 1
9142 EOF
9143  
9144 else
9145   echo "$ac_t""no" 1>&6
9146 fi
9147 done
9148     
9149     fi
9150   fi
9151
9152   
9153   
9154   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
9155 echo "configure:9156: checking for fabsf declaration" >&5
9156   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
9157     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
9158   echo $ac_n "(cached) $ac_c" 1>&6
9159 else
9160   
9161       
9162       ac_ext=C
9163 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9164 ac_cpp='$CXXCPP $CPPFLAGS'
9165 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9166 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9167 cross_compiling=$ac_cv_prog_cxx_cross
9168
9169       cat > conftest.$ac_ext <<EOF
9170 #line 9171 "configure"
9171 #include "confdefs.h"
9172 #include <math.h>
9173                       #ifdef HAVE_IEEEFP_H
9174                       #include <ieeefp.h>
9175                       #endif
9176                      
9177 int main() {
9178  fabsf(0);
9179 ; return 0; }
9180 EOF
9181 if { (eval echo configure:9182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9182   rm -rf conftest*
9183   glibcpp_cv_func_fabsf_use=yes
9184 else
9185   echo "configure: failed program was:" >&5
9186   cat conftest.$ac_ext >&5
9187   rm -rf conftest*
9188   glibcpp_cv_func_fabsf_use=no
9189 fi
9190 rm -f conftest*
9191       ac_ext=c
9192 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9193 ac_cpp='$CPP $CPPFLAGS'
9194 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9195 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9196 cross_compiling=$ac_cv_prog_cc_cross
9197
9198     
9199 fi
9200
9201   fi
9202   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
9203
9204   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
9205     for ac_func in fabsf
9206 do
9207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9208 echo "configure:9209: checking for $ac_func" >&5
9209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9210   echo $ac_n "(cached) $ac_c" 1>&6
9211 else
9212   cat > conftest.$ac_ext <<EOF
9213 #line 9214 "configure"
9214 #include "confdefs.h"
9215 /* System header to define __stub macros and hopefully few prototypes,
9216     which can conflict with char $ac_func(); below.  */
9217 #include <assert.h>
9218 /* Override any gcc2 internal prototype to avoid an error.  */
9219 /* We use char because int might match the return type of a gcc2
9220     builtin and then its argument prototype would still apply.  */
9221 char $ac_func();
9222
9223 int main() {
9224
9225 /* The GNU C library defines this for functions which it implements
9226     to always fail with ENOSYS.  Some functions are actually named
9227     something starting with __ and the normal name is an alias.  */
9228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9229 choke me
9230 #else
9231 $ac_func();
9232 #endif
9233
9234 ; return 0; }
9235 EOF
9236 if { (eval echo configure:9237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9237   rm -rf conftest*
9238   eval "ac_cv_func_$ac_func=yes"
9239 else
9240   echo "configure: failed program was:" >&5
9241   cat conftest.$ac_ext >&5
9242   rm -rf conftest*
9243   eval "ac_cv_func_$ac_func=no"
9244 fi
9245 rm -f conftest*
9246 fi
9247
9248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9249   echo "$ac_t""yes" 1>&6
9250     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9251   cat >> confdefs.h <<EOF
9252 #define $ac_tr_func 1
9253 EOF
9254  
9255 else
9256   echo "$ac_t""no" 1>&6
9257 fi
9258 done
9259     
9260   else
9261     
9262   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
9263 echo "configure:9264: checking for _fabsf declaration" >&5
9264   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
9265     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
9266   echo $ac_n "(cached) $ac_c" 1>&6
9267 else
9268   
9269       
9270       ac_ext=C
9271 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9272 ac_cpp='$CXXCPP $CPPFLAGS'
9273 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9274 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9275 cross_compiling=$ac_cv_prog_cxx_cross
9276
9277       cat > conftest.$ac_ext <<EOF
9278 #line 9279 "configure"
9279 #include "confdefs.h"
9280 #include <math.h>
9281                       #ifdef HAVE_IEEEFP_H
9282                       #include <ieeefp.h>
9283                       #endif
9284                      
9285 int main() {
9286  _fabsf(0);
9287 ; return 0; }
9288 EOF
9289 if { (eval echo configure:9290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9290   rm -rf conftest*
9291   glibcpp_cv_func__fabsf_use=yes
9292 else
9293   echo "configure: failed program was:" >&5
9294   cat conftest.$ac_ext >&5
9295   rm -rf conftest*
9296   glibcpp_cv_func__fabsf_use=no
9297 fi
9298 rm -f conftest*
9299       ac_ext=c
9300 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9301 ac_cpp='$CPP $CPPFLAGS'
9302 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9303 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9304 cross_compiling=$ac_cv_prog_cc_cross
9305
9306     
9307 fi
9308
9309   fi
9310   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
9311
9312     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
9313       for ac_func in _fabsf
9314 do
9315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9316 echo "configure:9317: checking for $ac_func" >&5
9317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9318   echo $ac_n "(cached) $ac_c" 1>&6
9319 else
9320   cat > conftest.$ac_ext <<EOF
9321 #line 9322 "configure"
9322 #include "confdefs.h"
9323 /* System header to define __stub macros and hopefully few prototypes,
9324     which can conflict with char $ac_func(); below.  */
9325 #include <assert.h>
9326 /* Override any gcc2 internal prototype to avoid an error.  */
9327 /* We use char because int might match the return type of a gcc2
9328     builtin and then its argument prototype would still apply.  */
9329 char $ac_func();
9330
9331 int main() {
9332
9333 /* The GNU C library defines this for functions which it implements
9334     to always fail with ENOSYS.  Some functions are actually named
9335     something starting with __ and the normal name is an alias.  */
9336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9337 choke me
9338 #else
9339 $ac_func();
9340 #endif
9341
9342 ; return 0; }
9343 EOF
9344 if { (eval echo configure:9345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9345   rm -rf conftest*
9346   eval "ac_cv_func_$ac_func=yes"
9347 else
9348   echo "configure: failed program was:" >&5
9349   cat conftest.$ac_ext >&5
9350   rm -rf conftest*
9351   eval "ac_cv_func_$ac_func=no"
9352 fi
9353 rm -f conftest*
9354 fi
9355
9356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9357   echo "$ac_t""yes" 1>&6
9358     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9359   cat >> confdefs.h <<EOF
9360 #define $ac_tr_func 1
9361 EOF
9362  
9363 else
9364   echo "$ac_t""no" 1>&6
9365 fi
9366 done
9367     
9368     fi
9369   fi
9370
9371   
9372   
9373   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
9374 echo "configure:9375: checking for fmodf declaration" >&5
9375   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
9376     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
9377   echo $ac_n "(cached) $ac_c" 1>&6
9378 else
9379   
9380       
9381       ac_ext=C
9382 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9383 ac_cpp='$CXXCPP $CPPFLAGS'
9384 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9385 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9386 cross_compiling=$ac_cv_prog_cxx_cross
9387
9388       cat > conftest.$ac_ext <<EOF
9389 #line 9390 "configure"
9390 #include "confdefs.h"
9391 #include <math.h>
9392 int main() {
9393  fmodf(0, 0);
9394 ; return 0; }
9395 EOF
9396 if { (eval echo configure:9397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9397   rm -rf conftest*
9398   glibcpp_cv_func_fmodf_use=yes
9399 else
9400   echo "configure: failed program was:" >&5
9401   cat conftest.$ac_ext >&5
9402   rm -rf conftest*
9403   glibcpp_cv_func_fmodf_use=no
9404 fi
9405 rm -f conftest*
9406       ac_ext=c
9407 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9408 ac_cpp='$CPP $CPPFLAGS'
9409 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9410 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9411 cross_compiling=$ac_cv_prog_cc_cross
9412
9413     
9414 fi
9415
9416   fi
9417   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
9418
9419   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
9420     for ac_func in fmodf
9421 do
9422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9423 echo "configure:9424: checking for $ac_func" >&5
9424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9425   echo $ac_n "(cached) $ac_c" 1>&6
9426 else
9427   cat > conftest.$ac_ext <<EOF
9428 #line 9429 "configure"
9429 #include "confdefs.h"
9430 /* System header to define __stub macros and hopefully few prototypes,
9431     which can conflict with char $ac_func(); below.  */
9432 #include <assert.h>
9433 /* Override any gcc2 internal prototype to avoid an error.  */
9434 /* We use char because int might match the return type of a gcc2
9435     builtin and then its argument prototype would still apply.  */
9436 char $ac_func();
9437
9438 int main() {
9439
9440 /* The GNU C library defines this for functions which it implements
9441     to always fail with ENOSYS.  Some functions are actually named
9442     something starting with __ and the normal name is an alias.  */
9443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9444 choke me
9445 #else
9446 $ac_func();
9447 #endif
9448
9449 ; return 0; }
9450 EOF
9451 if { (eval echo configure:9452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9452   rm -rf conftest*
9453   eval "ac_cv_func_$ac_func=yes"
9454 else
9455   echo "configure: failed program was:" >&5
9456   cat conftest.$ac_ext >&5
9457   rm -rf conftest*
9458   eval "ac_cv_func_$ac_func=no"
9459 fi
9460 rm -f conftest*
9461 fi
9462
9463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9464   echo "$ac_t""yes" 1>&6
9465     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9466   cat >> confdefs.h <<EOF
9467 #define $ac_tr_func 1
9468 EOF
9469  
9470 else
9471   echo "$ac_t""no" 1>&6
9472 fi
9473 done
9474     
9475   else
9476     
9477   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
9478 echo "configure:9479: checking for _fmodf declaration" >&5
9479   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
9480     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
9481   echo $ac_n "(cached) $ac_c" 1>&6
9482 else
9483   
9484       
9485       ac_ext=C
9486 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9487 ac_cpp='$CXXCPP $CPPFLAGS'
9488 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9489 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9490 cross_compiling=$ac_cv_prog_cxx_cross
9491
9492       cat > conftest.$ac_ext <<EOF
9493 #line 9494 "configure"
9494 #include "confdefs.h"
9495 #include <math.h>
9496 int main() {
9497  _fmodf(0, 0);
9498 ; return 0; }
9499 EOF
9500 if { (eval echo configure:9501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9501   rm -rf conftest*
9502   glibcpp_cv_func__fmodf_use=yes
9503 else
9504   echo "configure: failed program was:" >&5
9505   cat conftest.$ac_ext >&5
9506   rm -rf conftest*
9507   glibcpp_cv_func__fmodf_use=no
9508 fi
9509 rm -f conftest*
9510       ac_ext=c
9511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9512 ac_cpp='$CPP $CPPFLAGS'
9513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9514 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9515 cross_compiling=$ac_cv_prog_cc_cross
9516
9517     
9518 fi
9519
9520   fi
9521   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
9522
9523     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
9524       for ac_func in _fmodf
9525 do
9526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9527 echo "configure:9528: checking for $ac_func" >&5
9528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9529   echo $ac_n "(cached) $ac_c" 1>&6
9530 else
9531   cat > conftest.$ac_ext <<EOF
9532 #line 9533 "configure"
9533 #include "confdefs.h"
9534 /* System header to define __stub macros and hopefully few prototypes,
9535     which can conflict with char $ac_func(); below.  */
9536 #include <assert.h>
9537 /* Override any gcc2 internal prototype to avoid an error.  */
9538 /* We use char because int might match the return type of a gcc2
9539     builtin and then its argument prototype would still apply.  */
9540 char $ac_func();
9541
9542 int main() {
9543
9544 /* The GNU C library defines this for functions which it implements
9545     to always fail with ENOSYS.  Some functions are actually named
9546     something starting with __ and the normal name is an alias.  */
9547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9548 choke me
9549 #else
9550 $ac_func();
9551 #endif
9552
9553 ; return 0; }
9554 EOF
9555 if { (eval echo configure:9556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9556   rm -rf conftest*
9557   eval "ac_cv_func_$ac_func=yes"
9558 else
9559   echo "configure: failed program was:" >&5
9560   cat conftest.$ac_ext >&5
9561   rm -rf conftest*
9562   eval "ac_cv_func_$ac_func=no"
9563 fi
9564 rm -f conftest*
9565 fi
9566
9567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9568   echo "$ac_t""yes" 1>&6
9569     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9570   cat >> confdefs.h <<EOF
9571 #define $ac_tr_func 1
9572 EOF
9573  
9574 else
9575   echo "$ac_t""no" 1>&6
9576 fi
9577 done
9578     
9579     fi
9580   fi
9581
9582   
9583   
9584   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
9585 echo "configure:9586: checking for frexpf declaration" >&5
9586   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
9587     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
9588   echo $ac_n "(cached) $ac_c" 1>&6
9589 else
9590   
9591       
9592       ac_ext=C
9593 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9594 ac_cpp='$CXXCPP $CPPFLAGS'
9595 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9596 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9597 cross_compiling=$ac_cv_prog_cxx_cross
9598
9599       cat > conftest.$ac_ext <<EOF
9600 #line 9601 "configure"
9601 #include "confdefs.h"
9602 #include <math.h>
9603 int main() {
9604  frexpf(0, 0);
9605 ; return 0; }
9606 EOF
9607 if { (eval echo configure:9608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9608   rm -rf conftest*
9609   glibcpp_cv_func_frexpf_use=yes
9610 else
9611   echo "configure: failed program was:" >&5
9612   cat conftest.$ac_ext >&5
9613   rm -rf conftest*
9614   glibcpp_cv_func_frexpf_use=no
9615 fi
9616 rm -f conftest*
9617       ac_ext=c
9618 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9619 ac_cpp='$CPP $CPPFLAGS'
9620 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9621 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9622 cross_compiling=$ac_cv_prog_cc_cross
9623
9624     
9625 fi
9626
9627   fi
9628   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
9629
9630   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
9631     for ac_func in frexpf
9632 do
9633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9634 echo "configure:9635: checking for $ac_func" >&5
9635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9636   echo $ac_n "(cached) $ac_c" 1>&6
9637 else
9638   cat > conftest.$ac_ext <<EOF
9639 #line 9640 "configure"
9640 #include "confdefs.h"
9641 /* System header to define __stub macros and hopefully few prototypes,
9642     which can conflict with char $ac_func(); below.  */
9643 #include <assert.h>
9644 /* Override any gcc2 internal prototype to avoid an error.  */
9645 /* We use char because int might match the return type of a gcc2
9646     builtin and then its argument prototype would still apply.  */
9647 char $ac_func();
9648
9649 int main() {
9650
9651 /* The GNU C library defines this for functions which it implements
9652     to always fail with ENOSYS.  Some functions are actually named
9653     something starting with __ and the normal name is an alias.  */
9654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9655 choke me
9656 #else
9657 $ac_func();
9658 #endif
9659
9660 ; return 0; }
9661 EOF
9662 if { (eval echo configure:9663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9663   rm -rf conftest*
9664   eval "ac_cv_func_$ac_func=yes"
9665 else
9666   echo "configure: failed program was:" >&5
9667   cat conftest.$ac_ext >&5
9668   rm -rf conftest*
9669   eval "ac_cv_func_$ac_func=no"
9670 fi
9671 rm -f conftest*
9672 fi
9673
9674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9675   echo "$ac_t""yes" 1>&6
9676     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9677   cat >> confdefs.h <<EOF
9678 #define $ac_tr_func 1
9679 EOF
9680  
9681 else
9682   echo "$ac_t""no" 1>&6
9683 fi
9684 done
9685     
9686   else
9687     
9688   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9689 echo "configure:9690: checking for _frexpf declaration" >&5
9690   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9691     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9692   echo $ac_n "(cached) $ac_c" 1>&6
9693 else
9694   
9695       
9696       ac_ext=C
9697 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9698 ac_cpp='$CXXCPP $CPPFLAGS'
9699 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9700 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9701 cross_compiling=$ac_cv_prog_cxx_cross
9702
9703       cat > conftest.$ac_ext <<EOF
9704 #line 9705 "configure"
9705 #include "confdefs.h"
9706 #include <math.h>
9707 int main() {
9708  _frexpf(0, 0);
9709 ; return 0; }
9710 EOF
9711 if { (eval echo configure:9712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9712   rm -rf conftest*
9713   glibcpp_cv_func__frexpf_use=yes
9714 else
9715   echo "configure: failed program was:" >&5
9716   cat conftest.$ac_ext >&5
9717   rm -rf conftest*
9718   glibcpp_cv_func__frexpf_use=no
9719 fi
9720 rm -f conftest*
9721       ac_ext=c
9722 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9723 ac_cpp='$CPP $CPPFLAGS'
9724 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9725 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9726 cross_compiling=$ac_cv_prog_cc_cross
9727
9728     
9729 fi
9730
9731   fi
9732   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9733
9734     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9735       for ac_func in _frexpf
9736 do
9737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9738 echo "configure:9739: checking for $ac_func" >&5
9739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9740   echo $ac_n "(cached) $ac_c" 1>&6
9741 else
9742   cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9745 /* System header to define __stub macros and hopefully few prototypes,
9746     which can conflict with char $ac_func(); below.  */
9747 #include <assert.h>
9748 /* Override any gcc2 internal prototype to avoid an error.  */
9749 /* We use char because int might match the return type of a gcc2
9750     builtin and then its argument prototype would still apply.  */
9751 char $ac_func();
9752
9753 int main() {
9754
9755 /* The GNU C library defines this for functions which it implements
9756     to always fail with ENOSYS.  Some functions are actually named
9757     something starting with __ and the normal name is an alias.  */
9758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9759 choke me
9760 #else
9761 $ac_func();
9762 #endif
9763
9764 ; return 0; }
9765 EOF
9766 if { (eval echo configure:9767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9767   rm -rf conftest*
9768   eval "ac_cv_func_$ac_func=yes"
9769 else
9770   echo "configure: failed program was:" >&5
9771   cat conftest.$ac_ext >&5
9772   rm -rf conftest*
9773   eval "ac_cv_func_$ac_func=no"
9774 fi
9775 rm -f conftest*
9776 fi
9777
9778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9779   echo "$ac_t""yes" 1>&6
9780     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9781   cat >> confdefs.h <<EOF
9782 #define $ac_tr_func 1
9783 EOF
9784  
9785 else
9786   echo "$ac_t""no" 1>&6
9787 fi
9788 done
9789     
9790     fi
9791   fi
9792
9793   
9794   
9795   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
9796 echo "configure:9797: checking for hypotf declaration" >&5
9797   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
9798     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
9799   echo $ac_n "(cached) $ac_c" 1>&6
9800 else
9801   
9802       
9803       ac_ext=C
9804 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9805 ac_cpp='$CXXCPP $CPPFLAGS'
9806 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9807 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9808 cross_compiling=$ac_cv_prog_cxx_cross
9809
9810       cat > conftest.$ac_ext <<EOF
9811 #line 9812 "configure"
9812 #include "confdefs.h"
9813 #include <math.h>
9814 int main() {
9815  hypotf(0, 0);
9816 ; return 0; }
9817 EOF
9818 if { (eval echo configure:9819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9819   rm -rf conftest*
9820   glibcpp_cv_func_hypotf_use=yes
9821 else
9822   echo "configure: failed program was:" >&5
9823   cat conftest.$ac_ext >&5
9824   rm -rf conftest*
9825   glibcpp_cv_func_hypotf_use=no
9826 fi
9827 rm -f conftest*
9828       ac_ext=c
9829 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9830 ac_cpp='$CPP $CPPFLAGS'
9831 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9832 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9833 cross_compiling=$ac_cv_prog_cc_cross
9834
9835     
9836 fi
9837
9838   fi
9839   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
9840
9841   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
9842     for ac_func in hypotf
9843 do
9844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9845 echo "configure:9846: checking for $ac_func" >&5
9846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9847   echo $ac_n "(cached) $ac_c" 1>&6
9848 else
9849   cat > conftest.$ac_ext <<EOF
9850 #line 9851 "configure"
9851 #include "confdefs.h"
9852 /* System header to define __stub macros and hopefully few prototypes,
9853     which can conflict with char $ac_func(); below.  */
9854 #include <assert.h>
9855 /* Override any gcc2 internal prototype to avoid an error.  */
9856 /* We use char because int might match the return type of a gcc2
9857     builtin and then its argument prototype would still apply.  */
9858 char $ac_func();
9859
9860 int main() {
9861
9862 /* The GNU C library defines this for functions which it implements
9863     to always fail with ENOSYS.  Some functions are actually named
9864     something starting with __ and the normal name is an alias.  */
9865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9866 choke me
9867 #else
9868 $ac_func();
9869 #endif
9870
9871 ; return 0; }
9872 EOF
9873 if { (eval echo configure:9874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9874   rm -rf conftest*
9875   eval "ac_cv_func_$ac_func=yes"
9876 else
9877   echo "configure: failed program was:" >&5
9878   cat conftest.$ac_ext >&5
9879   rm -rf conftest*
9880   eval "ac_cv_func_$ac_func=no"
9881 fi
9882 rm -f conftest*
9883 fi
9884
9885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9886   echo "$ac_t""yes" 1>&6
9887     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9888   cat >> confdefs.h <<EOF
9889 #define $ac_tr_func 1
9890 EOF
9891  
9892 else
9893   echo "$ac_t""no" 1>&6
9894 fi
9895 done
9896     
9897   else
9898     
9899   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
9900 echo "configure:9901: checking for _hypotf declaration" >&5
9901   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
9902     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
9903   echo $ac_n "(cached) $ac_c" 1>&6
9904 else
9905   
9906       
9907       ac_ext=C
9908 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9909 ac_cpp='$CXXCPP $CPPFLAGS'
9910 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9911 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9912 cross_compiling=$ac_cv_prog_cxx_cross
9913
9914       cat > conftest.$ac_ext <<EOF
9915 #line 9916 "configure"
9916 #include "confdefs.h"
9917 #include <math.h>
9918 int main() {
9919  _hypotf(0, 0);
9920 ; return 0; }
9921 EOF
9922 if { (eval echo configure:9923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9923   rm -rf conftest*
9924   glibcpp_cv_func__hypotf_use=yes
9925 else
9926   echo "configure: failed program was:" >&5
9927   cat conftest.$ac_ext >&5
9928   rm -rf conftest*
9929   glibcpp_cv_func__hypotf_use=no
9930 fi
9931 rm -f conftest*
9932       ac_ext=c
9933 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9934 ac_cpp='$CPP $CPPFLAGS'
9935 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9936 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9937 cross_compiling=$ac_cv_prog_cc_cross
9938
9939     
9940 fi
9941
9942   fi
9943   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
9944
9945     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
9946       for ac_func in _hypotf
9947 do
9948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9949 echo "configure:9950: checking for $ac_func" >&5
9950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9951   echo $ac_n "(cached) $ac_c" 1>&6
9952 else
9953   cat > conftest.$ac_ext <<EOF
9954 #line 9955 "configure"
9955 #include "confdefs.h"
9956 /* System header to define __stub macros and hopefully few prototypes,
9957     which can conflict with char $ac_func(); below.  */
9958 #include <assert.h>
9959 /* Override any gcc2 internal prototype to avoid an error.  */
9960 /* We use char because int might match the return type of a gcc2
9961     builtin and then its argument prototype would still apply.  */
9962 char $ac_func();
9963
9964 int main() {
9965
9966 /* The GNU C library defines this for functions which it implements
9967     to always fail with ENOSYS.  Some functions are actually named
9968     something starting with __ and the normal name is an alias.  */
9969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9970 choke me
9971 #else
9972 $ac_func();
9973 #endif
9974
9975 ; return 0; }
9976 EOF
9977 if { (eval echo configure:9978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9978   rm -rf conftest*
9979   eval "ac_cv_func_$ac_func=yes"
9980 else
9981   echo "configure: failed program was:" >&5
9982   cat conftest.$ac_ext >&5
9983   rm -rf conftest*
9984   eval "ac_cv_func_$ac_func=no"
9985 fi
9986 rm -f conftest*
9987 fi
9988
9989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9990   echo "$ac_t""yes" 1>&6
9991     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9992   cat >> confdefs.h <<EOF
9993 #define $ac_tr_func 1
9994 EOF
9995  
9996 else
9997   echo "$ac_t""no" 1>&6
9998 fi
9999 done
10000     
10001     fi
10002   fi
10003
10004   
10005   
10006   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
10007 echo "configure:10008: checking for ldexpf declaration" >&5
10008   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
10009     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
10010   echo $ac_n "(cached) $ac_c" 1>&6
10011 else
10012   
10013       
10014       ac_ext=C
10015 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10016 ac_cpp='$CXXCPP $CPPFLAGS'
10017 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10018 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10019 cross_compiling=$ac_cv_prog_cxx_cross
10020
10021       cat > conftest.$ac_ext <<EOF
10022 #line 10023 "configure"
10023 #include "confdefs.h"
10024 #include <math.h>
10025 int main() {
10026  ldexpf(0, 0);
10027 ; return 0; }
10028 EOF
10029 if { (eval echo configure:10030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10030   rm -rf conftest*
10031   glibcpp_cv_func_ldexpf_use=yes
10032 else
10033   echo "configure: failed program was:" >&5
10034   cat conftest.$ac_ext >&5
10035   rm -rf conftest*
10036   glibcpp_cv_func_ldexpf_use=no
10037 fi
10038 rm -f conftest*
10039       ac_ext=c
10040 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10041 ac_cpp='$CPP $CPPFLAGS'
10042 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10043 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10044 cross_compiling=$ac_cv_prog_cc_cross
10045
10046     
10047 fi
10048
10049   fi
10050   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
10051
10052   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
10053     for ac_func in ldexpf
10054 do
10055 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10056 echo "configure:10057: checking for $ac_func" >&5
10057 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10058   echo $ac_n "(cached) $ac_c" 1>&6
10059 else
10060   cat > conftest.$ac_ext <<EOF
10061 #line 10062 "configure"
10062 #include "confdefs.h"
10063 /* System header to define __stub macros and hopefully few prototypes,
10064     which can conflict with char $ac_func(); below.  */
10065 #include <assert.h>
10066 /* Override any gcc2 internal prototype to avoid an error.  */
10067 /* We use char because int might match the return type of a gcc2
10068     builtin and then its argument prototype would still apply.  */
10069 char $ac_func();
10070
10071 int main() {
10072
10073 /* The GNU C library defines this for functions which it implements
10074     to always fail with ENOSYS.  Some functions are actually named
10075     something starting with __ and the normal name is an alias.  */
10076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10077 choke me
10078 #else
10079 $ac_func();
10080 #endif
10081
10082 ; return 0; }
10083 EOF
10084 if { (eval echo configure:10085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10085   rm -rf conftest*
10086   eval "ac_cv_func_$ac_func=yes"
10087 else
10088   echo "configure: failed program was:" >&5
10089   cat conftest.$ac_ext >&5
10090   rm -rf conftest*
10091   eval "ac_cv_func_$ac_func=no"
10092 fi
10093 rm -f conftest*
10094 fi
10095
10096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10097   echo "$ac_t""yes" 1>&6
10098     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10099   cat >> confdefs.h <<EOF
10100 #define $ac_tr_func 1
10101 EOF
10102  
10103 else
10104   echo "$ac_t""no" 1>&6
10105 fi
10106 done
10107     
10108   else
10109     
10110   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
10111 echo "configure:10112: checking for _ldexpf declaration" >&5
10112   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
10113     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
10114   echo $ac_n "(cached) $ac_c" 1>&6
10115 else
10116   
10117       
10118       ac_ext=C
10119 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10120 ac_cpp='$CXXCPP $CPPFLAGS'
10121 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10122 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10123 cross_compiling=$ac_cv_prog_cxx_cross
10124
10125       cat > conftest.$ac_ext <<EOF
10126 #line 10127 "configure"
10127 #include "confdefs.h"
10128 #include <math.h>
10129 int main() {
10130  _ldexpf(0, 0);
10131 ; return 0; }
10132 EOF
10133 if { (eval echo configure:10134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10134   rm -rf conftest*
10135   glibcpp_cv_func__ldexpf_use=yes
10136 else
10137   echo "configure: failed program was:" >&5
10138   cat conftest.$ac_ext >&5
10139   rm -rf conftest*
10140   glibcpp_cv_func__ldexpf_use=no
10141 fi
10142 rm -f conftest*
10143       ac_ext=c
10144 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10145 ac_cpp='$CPP $CPPFLAGS'
10146 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10147 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10148 cross_compiling=$ac_cv_prog_cc_cross
10149
10150     
10151 fi
10152
10153   fi
10154   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
10155
10156     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
10157       for ac_func in _ldexpf
10158 do
10159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10160 echo "configure:10161: checking for $ac_func" >&5
10161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10162   echo $ac_n "(cached) $ac_c" 1>&6
10163 else
10164   cat > conftest.$ac_ext <<EOF
10165 #line 10166 "configure"
10166 #include "confdefs.h"
10167 /* System header to define __stub macros and hopefully few prototypes,
10168     which can conflict with char $ac_func(); below.  */
10169 #include <assert.h>
10170 /* Override any gcc2 internal prototype to avoid an error.  */
10171 /* We use char because int might match the return type of a gcc2
10172     builtin and then its argument prototype would still apply.  */
10173 char $ac_func();
10174
10175 int main() {
10176
10177 /* The GNU C library defines this for functions which it implements
10178     to always fail with ENOSYS.  Some functions are actually named
10179     something starting with __ and the normal name is an alias.  */
10180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10181 choke me
10182 #else
10183 $ac_func();
10184 #endif
10185
10186 ; return 0; }
10187 EOF
10188 if { (eval echo configure:10189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10189   rm -rf conftest*
10190   eval "ac_cv_func_$ac_func=yes"
10191 else
10192   echo "configure: failed program was:" >&5
10193   cat conftest.$ac_ext >&5
10194   rm -rf conftest*
10195   eval "ac_cv_func_$ac_func=no"
10196 fi
10197 rm -f conftest*
10198 fi
10199
10200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10201   echo "$ac_t""yes" 1>&6
10202     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10203   cat >> confdefs.h <<EOF
10204 #define $ac_tr_func 1
10205 EOF
10206  
10207 else
10208   echo "$ac_t""no" 1>&6
10209 fi
10210 done
10211     
10212     fi
10213   fi
10214
10215   
10216   
10217   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
10218 echo "configure:10219: checking for logf declaration" >&5
10219   if test x${glibcpp_cv_func_logf_use+set} != xset; then
10220     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
10221   echo $ac_n "(cached) $ac_c" 1>&6
10222 else
10223   
10224       
10225       ac_ext=C
10226 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10227 ac_cpp='$CXXCPP $CPPFLAGS'
10228 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10229 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10230 cross_compiling=$ac_cv_prog_cxx_cross
10231
10232       cat > conftest.$ac_ext <<EOF
10233 #line 10234 "configure"
10234 #include "confdefs.h"
10235 #include <math.h>
10236                       #ifdef HAVE_IEEEFP_H
10237                       #include <ieeefp.h>
10238                       #endif
10239                      
10240 int main() {
10241  logf(0);
10242 ; return 0; }
10243 EOF
10244 if { (eval echo configure:10245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10245   rm -rf conftest*
10246   glibcpp_cv_func_logf_use=yes
10247 else
10248   echo "configure: failed program was:" >&5
10249   cat conftest.$ac_ext >&5
10250   rm -rf conftest*
10251   glibcpp_cv_func_logf_use=no
10252 fi
10253 rm -f conftest*
10254       ac_ext=c
10255 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10256 ac_cpp='$CPP $CPPFLAGS'
10257 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10258 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10259 cross_compiling=$ac_cv_prog_cc_cross
10260
10261     
10262 fi
10263
10264   fi
10265   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
10266
10267   if test x$glibcpp_cv_func_logf_use = x"yes"; then
10268     for ac_func in logf
10269 do
10270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10271 echo "configure:10272: checking for $ac_func" >&5
10272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10273   echo $ac_n "(cached) $ac_c" 1>&6
10274 else
10275   cat > conftest.$ac_ext <<EOF
10276 #line 10277 "configure"
10277 #include "confdefs.h"
10278 /* System header to define __stub macros and hopefully few prototypes,
10279     which can conflict with char $ac_func(); below.  */
10280 #include <assert.h>
10281 /* Override any gcc2 internal prototype to avoid an error.  */
10282 /* We use char because int might match the return type of a gcc2
10283     builtin and then its argument prototype would still apply.  */
10284 char $ac_func();
10285
10286 int main() {
10287
10288 /* The GNU C library defines this for functions which it implements
10289     to always fail with ENOSYS.  Some functions are actually named
10290     something starting with __ and the normal name is an alias.  */
10291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10292 choke me
10293 #else
10294 $ac_func();
10295 #endif
10296
10297 ; return 0; }
10298 EOF
10299 if { (eval echo configure:10300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10300   rm -rf conftest*
10301   eval "ac_cv_func_$ac_func=yes"
10302 else
10303   echo "configure: failed program was:" >&5
10304   cat conftest.$ac_ext >&5
10305   rm -rf conftest*
10306   eval "ac_cv_func_$ac_func=no"
10307 fi
10308 rm -f conftest*
10309 fi
10310
10311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10312   echo "$ac_t""yes" 1>&6
10313     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10314   cat >> confdefs.h <<EOF
10315 #define $ac_tr_func 1
10316 EOF
10317  
10318 else
10319   echo "$ac_t""no" 1>&6
10320 fi
10321 done
10322     
10323   else
10324     
10325   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
10326 echo "configure:10327: checking for _logf declaration" >&5
10327   if test x${glibcpp_cv_func__logf_use+set} != xset; then
10328     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
10329   echo $ac_n "(cached) $ac_c" 1>&6
10330 else
10331   
10332       
10333       ac_ext=C
10334 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10335 ac_cpp='$CXXCPP $CPPFLAGS'
10336 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10337 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10338 cross_compiling=$ac_cv_prog_cxx_cross
10339
10340       cat > conftest.$ac_ext <<EOF
10341 #line 10342 "configure"
10342 #include "confdefs.h"
10343 #include <math.h>
10344                       #ifdef HAVE_IEEEFP_H
10345                       #include <ieeefp.h>
10346                       #endif
10347                      
10348 int main() {
10349  _logf(0);
10350 ; return 0; }
10351 EOF
10352 if { (eval echo configure:10353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10353   rm -rf conftest*
10354   glibcpp_cv_func__logf_use=yes
10355 else
10356   echo "configure: failed program was:" >&5
10357   cat conftest.$ac_ext >&5
10358   rm -rf conftest*
10359   glibcpp_cv_func__logf_use=no
10360 fi
10361 rm -f conftest*
10362       ac_ext=c
10363 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10364 ac_cpp='$CPP $CPPFLAGS'
10365 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10366 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10367 cross_compiling=$ac_cv_prog_cc_cross
10368
10369     
10370 fi
10371
10372   fi
10373   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
10374
10375     if test x$glibcpp_cv_func__logf_use = x"yes"; then
10376       for ac_func in _logf
10377 do
10378 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10379 echo "configure:10380: checking for $ac_func" >&5
10380 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10381   echo $ac_n "(cached) $ac_c" 1>&6
10382 else
10383   cat > conftest.$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10386 /* System header to define __stub macros and hopefully few prototypes,
10387     which can conflict with char $ac_func(); below.  */
10388 #include <assert.h>
10389 /* Override any gcc2 internal prototype to avoid an error.  */
10390 /* We use char because int might match the return type of a gcc2
10391     builtin and then its argument prototype would still apply.  */
10392 char $ac_func();
10393
10394 int main() {
10395
10396 /* The GNU C library defines this for functions which it implements
10397     to always fail with ENOSYS.  Some functions are actually named
10398     something starting with __ and the normal name is an alias.  */
10399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10400 choke me
10401 #else
10402 $ac_func();
10403 #endif
10404
10405 ; return 0; }
10406 EOF
10407 if { (eval echo configure:10408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10408   rm -rf conftest*
10409   eval "ac_cv_func_$ac_func=yes"
10410 else
10411   echo "configure: failed program was:" >&5
10412   cat conftest.$ac_ext >&5
10413   rm -rf conftest*
10414   eval "ac_cv_func_$ac_func=no"
10415 fi
10416 rm -f conftest*
10417 fi
10418
10419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10420   echo "$ac_t""yes" 1>&6
10421     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10422   cat >> confdefs.h <<EOF
10423 #define $ac_tr_func 1
10424 EOF
10425  
10426 else
10427   echo "$ac_t""no" 1>&6
10428 fi
10429 done
10430     
10431     fi
10432   fi
10433
10434   
10435   
10436   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
10437 echo "configure:10438: checking for log10f declaration" >&5
10438   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
10439     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
10440   echo $ac_n "(cached) $ac_c" 1>&6
10441 else
10442   
10443       
10444       ac_ext=C
10445 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10446 ac_cpp='$CXXCPP $CPPFLAGS'
10447 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10448 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10449 cross_compiling=$ac_cv_prog_cxx_cross
10450
10451       cat > conftest.$ac_ext <<EOF
10452 #line 10453 "configure"
10453 #include "confdefs.h"
10454 #include <math.h>
10455                       #ifdef HAVE_IEEEFP_H
10456                       #include <ieeefp.h>
10457                       #endif
10458                      
10459 int main() {
10460  log10f(0);
10461 ; return 0; }
10462 EOF
10463 if { (eval echo configure:10464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10464   rm -rf conftest*
10465   glibcpp_cv_func_log10f_use=yes
10466 else
10467   echo "configure: failed program was:" >&5
10468   cat conftest.$ac_ext >&5
10469   rm -rf conftest*
10470   glibcpp_cv_func_log10f_use=no
10471 fi
10472 rm -f conftest*
10473       ac_ext=c
10474 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10475 ac_cpp='$CPP $CPPFLAGS'
10476 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10477 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10478 cross_compiling=$ac_cv_prog_cc_cross
10479
10480     
10481 fi
10482
10483   fi
10484   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
10485
10486   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
10487     for ac_func in log10f
10488 do
10489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10490 echo "configure:10491: checking for $ac_func" >&5
10491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10492   echo $ac_n "(cached) $ac_c" 1>&6
10493 else
10494   cat > conftest.$ac_ext <<EOF
10495 #line 10496 "configure"
10496 #include "confdefs.h"
10497 /* System header to define __stub macros and hopefully few prototypes,
10498     which can conflict with char $ac_func(); below.  */
10499 #include <assert.h>
10500 /* Override any gcc2 internal prototype to avoid an error.  */
10501 /* We use char because int might match the return type of a gcc2
10502     builtin and then its argument prototype would still apply.  */
10503 char $ac_func();
10504
10505 int main() {
10506
10507 /* The GNU C library defines this for functions which it implements
10508     to always fail with ENOSYS.  Some functions are actually named
10509     something starting with __ and the normal name is an alias.  */
10510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10511 choke me
10512 #else
10513 $ac_func();
10514 #endif
10515
10516 ; return 0; }
10517 EOF
10518 if { (eval echo configure:10519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10519   rm -rf conftest*
10520   eval "ac_cv_func_$ac_func=yes"
10521 else
10522   echo "configure: failed program was:" >&5
10523   cat conftest.$ac_ext >&5
10524   rm -rf conftest*
10525   eval "ac_cv_func_$ac_func=no"
10526 fi
10527 rm -f conftest*
10528 fi
10529
10530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10531   echo "$ac_t""yes" 1>&6
10532     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10533   cat >> confdefs.h <<EOF
10534 #define $ac_tr_func 1
10535 EOF
10536  
10537 else
10538   echo "$ac_t""no" 1>&6
10539 fi
10540 done
10541     
10542   else
10543     
10544   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
10545 echo "configure:10546: checking for _log10f declaration" >&5
10546   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
10547     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
10548   echo $ac_n "(cached) $ac_c" 1>&6
10549 else
10550   
10551       
10552       ac_ext=C
10553 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10554 ac_cpp='$CXXCPP $CPPFLAGS'
10555 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10556 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10557 cross_compiling=$ac_cv_prog_cxx_cross
10558
10559       cat > conftest.$ac_ext <<EOF
10560 #line 10561 "configure"
10561 #include "confdefs.h"
10562 #include <math.h>
10563                       #ifdef HAVE_IEEEFP_H
10564                       #include <ieeefp.h>
10565                       #endif
10566                      
10567 int main() {
10568  _log10f(0);
10569 ; return 0; }
10570 EOF
10571 if { (eval echo configure:10572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10572   rm -rf conftest*
10573   glibcpp_cv_func__log10f_use=yes
10574 else
10575   echo "configure: failed program was:" >&5
10576   cat conftest.$ac_ext >&5
10577   rm -rf conftest*
10578   glibcpp_cv_func__log10f_use=no
10579 fi
10580 rm -f conftest*
10581       ac_ext=c
10582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10583 ac_cpp='$CPP $CPPFLAGS'
10584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10586 cross_compiling=$ac_cv_prog_cc_cross
10587
10588     
10589 fi
10590
10591   fi
10592   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
10593
10594     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
10595       for ac_func in _log10f
10596 do
10597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10598 echo "configure:10599: checking for $ac_func" >&5
10599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10600   echo $ac_n "(cached) $ac_c" 1>&6
10601 else
10602   cat > conftest.$ac_ext <<EOF
10603 #line 10604 "configure"
10604 #include "confdefs.h"
10605 /* System header to define __stub macros and hopefully few prototypes,
10606     which can conflict with char $ac_func(); below.  */
10607 #include <assert.h>
10608 /* Override any gcc2 internal prototype to avoid an error.  */
10609 /* We use char because int might match the return type of a gcc2
10610     builtin and then its argument prototype would still apply.  */
10611 char $ac_func();
10612
10613 int main() {
10614
10615 /* The GNU C library defines this for functions which it implements
10616     to always fail with ENOSYS.  Some functions are actually named
10617     something starting with __ and the normal name is an alias.  */
10618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10619 choke me
10620 #else
10621 $ac_func();
10622 #endif
10623
10624 ; return 0; }
10625 EOF
10626 if { (eval echo configure:10627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10627   rm -rf conftest*
10628   eval "ac_cv_func_$ac_func=yes"
10629 else
10630   echo "configure: failed program was:" >&5
10631   cat conftest.$ac_ext >&5
10632   rm -rf conftest*
10633   eval "ac_cv_func_$ac_func=no"
10634 fi
10635 rm -f conftest*
10636 fi
10637
10638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10639   echo "$ac_t""yes" 1>&6
10640     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10641   cat >> confdefs.h <<EOF
10642 #define $ac_tr_func 1
10643 EOF
10644  
10645 else
10646   echo "$ac_t""no" 1>&6
10647 fi
10648 done
10649     
10650     fi
10651   fi
10652
10653   
10654   
10655   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
10656 echo "configure:10657: checking for modff declaration" >&5
10657   if test x${glibcpp_cv_func_modff_use+set} != xset; then
10658     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
10659   echo $ac_n "(cached) $ac_c" 1>&6
10660 else
10661   
10662       
10663       ac_ext=C
10664 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10665 ac_cpp='$CXXCPP $CPPFLAGS'
10666 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10667 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10668 cross_compiling=$ac_cv_prog_cxx_cross
10669
10670       cat > conftest.$ac_ext <<EOF
10671 #line 10672 "configure"
10672 #include "confdefs.h"
10673 #include <math.h>
10674 int main() {
10675  modff(0, 0);
10676 ; return 0; }
10677 EOF
10678 if { (eval echo configure:10679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10679   rm -rf conftest*
10680   glibcpp_cv_func_modff_use=yes
10681 else
10682   echo "configure: failed program was:" >&5
10683   cat conftest.$ac_ext >&5
10684   rm -rf conftest*
10685   glibcpp_cv_func_modff_use=no
10686 fi
10687 rm -f conftest*
10688       ac_ext=c
10689 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10690 ac_cpp='$CPP $CPPFLAGS'
10691 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10692 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10693 cross_compiling=$ac_cv_prog_cc_cross
10694
10695     
10696 fi
10697
10698   fi
10699   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
10700
10701   if test x$glibcpp_cv_func_modff_use = x"yes"; then
10702     for ac_func in modff
10703 do
10704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10705 echo "configure:10706: checking for $ac_func" >&5
10706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10707   echo $ac_n "(cached) $ac_c" 1>&6
10708 else
10709   cat > conftest.$ac_ext <<EOF
10710 #line 10711 "configure"
10711 #include "confdefs.h"
10712 /* System header to define __stub macros and hopefully few prototypes,
10713     which can conflict with char $ac_func(); below.  */
10714 #include <assert.h>
10715 /* Override any gcc2 internal prototype to avoid an error.  */
10716 /* We use char because int might match the return type of a gcc2
10717     builtin and then its argument prototype would still apply.  */
10718 char $ac_func();
10719
10720 int main() {
10721
10722 /* The GNU C library defines this for functions which it implements
10723     to always fail with ENOSYS.  Some functions are actually named
10724     something starting with __ and the normal name is an alias.  */
10725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10726 choke me
10727 #else
10728 $ac_func();
10729 #endif
10730
10731 ; return 0; }
10732 EOF
10733 if { (eval echo configure:10734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10734   rm -rf conftest*
10735   eval "ac_cv_func_$ac_func=yes"
10736 else
10737   echo "configure: failed program was:" >&5
10738   cat conftest.$ac_ext >&5
10739   rm -rf conftest*
10740   eval "ac_cv_func_$ac_func=no"
10741 fi
10742 rm -f conftest*
10743 fi
10744
10745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10746   echo "$ac_t""yes" 1>&6
10747     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10748   cat >> confdefs.h <<EOF
10749 #define $ac_tr_func 1
10750 EOF
10751  
10752 else
10753   echo "$ac_t""no" 1>&6
10754 fi
10755 done
10756     
10757   else
10758     
10759   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
10760 echo "configure:10761: checking for _modff declaration" >&5
10761   if test x${glibcpp_cv_func__modff_use+set} != xset; then
10762     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
10763   echo $ac_n "(cached) $ac_c" 1>&6
10764 else
10765   
10766       
10767       ac_ext=C
10768 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10769 ac_cpp='$CXXCPP $CPPFLAGS'
10770 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10771 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10772 cross_compiling=$ac_cv_prog_cxx_cross
10773
10774       cat > conftest.$ac_ext <<EOF
10775 #line 10776 "configure"
10776 #include "confdefs.h"
10777 #include <math.h>
10778 int main() {
10779  _modff(0, 0);
10780 ; return 0; }
10781 EOF
10782 if { (eval echo configure:10783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10783   rm -rf conftest*
10784   glibcpp_cv_func__modff_use=yes
10785 else
10786   echo "configure: failed program was:" >&5
10787   cat conftest.$ac_ext >&5
10788   rm -rf conftest*
10789   glibcpp_cv_func__modff_use=no
10790 fi
10791 rm -f conftest*
10792       ac_ext=c
10793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10794 ac_cpp='$CPP $CPPFLAGS'
10795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10797 cross_compiling=$ac_cv_prog_cc_cross
10798
10799     
10800 fi
10801
10802   fi
10803   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
10804
10805     if test x$glibcpp_cv_func__modff_use = x"yes"; then
10806       for ac_func in _modff
10807 do
10808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10809 echo "configure:10810: checking for $ac_func" >&5
10810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10811   echo $ac_n "(cached) $ac_c" 1>&6
10812 else
10813   cat > conftest.$ac_ext <<EOF
10814 #line 10815 "configure"
10815 #include "confdefs.h"
10816 /* System header to define __stub macros and hopefully few prototypes,
10817     which can conflict with char $ac_func(); below.  */
10818 #include <assert.h>
10819 /* Override any gcc2 internal prototype to avoid an error.  */
10820 /* We use char because int might match the return type of a gcc2
10821     builtin and then its argument prototype would still apply.  */
10822 char $ac_func();
10823
10824 int main() {
10825
10826 /* The GNU C library defines this for functions which it implements
10827     to always fail with ENOSYS.  Some functions are actually named
10828     something starting with __ and the normal name is an alias.  */
10829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10830 choke me
10831 #else
10832 $ac_func();
10833 #endif
10834
10835 ; return 0; }
10836 EOF
10837 if { (eval echo configure:10838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10838   rm -rf conftest*
10839   eval "ac_cv_func_$ac_func=yes"
10840 else
10841   echo "configure: failed program was:" >&5
10842   cat conftest.$ac_ext >&5
10843   rm -rf conftest*
10844   eval "ac_cv_func_$ac_func=no"
10845 fi
10846 rm -f conftest*
10847 fi
10848
10849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10850   echo "$ac_t""yes" 1>&6
10851     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10852   cat >> confdefs.h <<EOF
10853 #define $ac_tr_func 1
10854 EOF
10855  
10856 else
10857   echo "$ac_t""no" 1>&6
10858 fi
10859 done
10860     
10861     fi
10862   fi
10863
10864   
10865   
10866   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10867 echo "configure:10868: checking for powf declaration" >&5
10868   if test x${glibcpp_cv_func_powf_use+set} != xset; then
10869     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10870   echo $ac_n "(cached) $ac_c" 1>&6
10871 else
10872   
10873       
10874       ac_ext=C
10875 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10876 ac_cpp='$CXXCPP $CPPFLAGS'
10877 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10878 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10879 cross_compiling=$ac_cv_prog_cxx_cross
10880
10881       cat > conftest.$ac_ext <<EOF
10882 #line 10883 "configure"
10883 #include "confdefs.h"
10884 #include <math.h>
10885 int main() {
10886  powf(0, 0);
10887 ; return 0; }
10888 EOF
10889 if { (eval echo configure:10890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10890   rm -rf conftest*
10891   glibcpp_cv_func_powf_use=yes
10892 else
10893   echo "configure: failed program was:" >&5
10894   cat conftest.$ac_ext >&5
10895   rm -rf conftest*
10896   glibcpp_cv_func_powf_use=no
10897 fi
10898 rm -f conftest*
10899       ac_ext=c
10900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10901 ac_cpp='$CPP $CPPFLAGS'
10902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10903 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10904 cross_compiling=$ac_cv_prog_cc_cross
10905
10906     
10907 fi
10908
10909   fi
10910   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10911
10912   if test x$glibcpp_cv_func_powf_use = x"yes"; then
10913     for ac_func in powf
10914 do
10915 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10916 echo "configure:10917: checking for $ac_func" >&5
10917 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10918   echo $ac_n "(cached) $ac_c" 1>&6
10919 else
10920   cat > conftest.$ac_ext <<EOF
10921 #line 10922 "configure"
10922 #include "confdefs.h"
10923 /* System header to define __stub macros and hopefully few prototypes,
10924     which can conflict with char $ac_func(); below.  */
10925 #include <assert.h>
10926 /* Override any gcc2 internal prototype to avoid an error.  */
10927 /* We use char because int might match the return type of a gcc2
10928     builtin and then its argument prototype would still apply.  */
10929 char $ac_func();
10930
10931 int main() {
10932
10933 /* The GNU C library defines this for functions which it implements
10934     to always fail with ENOSYS.  Some functions are actually named
10935     something starting with __ and the normal name is an alias.  */
10936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10937 choke me
10938 #else
10939 $ac_func();
10940 #endif
10941
10942 ; return 0; }
10943 EOF
10944 if { (eval echo configure:10945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10945   rm -rf conftest*
10946   eval "ac_cv_func_$ac_func=yes"
10947 else
10948   echo "configure: failed program was:" >&5
10949   cat conftest.$ac_ext >&5
10950   rm -rf conftest*
10951   eval "ac_cv_func_$ac_func=no"
10952 fi
10953 rm -f conftest*
10954 fi
10955
10956 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10957   echo "$ac_t""yes" 1>&6
10958     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10959   cat >> confdefs.h <<EOF
10960 #define $ac_tr_func 1
10961 EOF
10962  
10963 else
10964   echo "$ac_t""no" 1>&6
10965 fi
10966 done
10967     
10968   else
10969     
10970   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10971 echo "configure:10972: checking for _powf declaration" >&5
10972   if test x${glibcpp_cv_func__powf_use+set} != xset; then
10973     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10974   echo $ac_n "(cached) $ac_c" 1>&6
10975 else
10976   
10977       
10978       ac_ext=C
10979 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10980 ac_cpp='$CXXCPP $CPPFLAGS'
10981 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10982 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10983 cross_compiling=$ac_cv_prog_cxx_cross
10984
10985       cat > conftest.$ac_ext <<EOF
10986 #line 10987 "configure"
10987 #include "confdefs.h"
10988 #include <math.h>
10989 int main() {
10990  _powf(0, 0);
10991 ; return 0; }
10992 EOF
10993 if { (eval echo configure:10994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10994   rm -rf conftest*
10995   glibcpp_cv_func__powf_use=yes
10996 else
10997   echo "configure: failed program was:" >&5
10998   cat conftest.$ac_ext >&5
10999   rm -rf conftest*
11000   glibcpp_cv_func__powf_use=no
11001 fi
11002 rm -f conftest*
11003       ac_ext=c
11004 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11005 ac_cpp='$CPP $CPPFLAGS'
11006 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11007 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11008 cross_compiling=$ac_cv_prog_cc_cross
11009
11010     
11011 fi
11012
11013   fi
11014   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
11015
11016     if test x$glibcpp_cv_func__powf_use = x"yes"; then
11017       for ac_func in _powf
11018 do
11019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11020 echo "configure:11021: checking for $ac_func" >&5
11021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11022   echo $ac_n "(cached) $ac_c" 1>&6
11023 else
11024   cat > conftest.$ac_ext <<EOF
11025 #line 11026 "configure"
11026 #include "confdefs.h"
11027 /* System header to define __stub macros and hopefully few prototypes,
11028     which can conflict with char $ac_func(); below.  */
11029 #include <assert.h>
11030 /* Override any gcc2 internal prototype to avoid an error.  */
11031 /* We use char because int might match the return type of a gcc2
11032     builtin and then its argument prototype would still apply.  */
11033 char $ac_func();
11034
11035 int main() {
11036
11037 /* The GNU C library defines this for functions which it implements
11038     to always fail with ENOSYS.  Some functions are actually named
11039     something starting with __ and the normal name is an alias.  */
11040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11041 choke me
11042 #else
11043 $ac_func();
11044 #endif
11045
11046 ; return 0; }
11047 EOF
11048 if { (eval echo configure:11049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11049   rm -rf conftest*
11050   eval "ac_cv_func_$ac_func=yes"
11051 else
11052   echo "configure: failed program was:" >&5
11053   cat conftest.$ac_ext >&5
11054   rm -rf conftest*
11055   eval "ac_cv_func_$ac_func=no"
11056 fi
11057 rm -f conftest*
11058 fi
11059
11060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11061   echo "$ac_t""yes" 1>&6
11062     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11063   cat >> confdefs.h <<EOF
11064 #define $ac_tr_func 1
11065 EOF
11066  
11067 else
11068   echo "$ac_t""no" 1>&6
11069 fi
11070 done
11071     
11072     fi
11073   fi
11074
11075   
11076   
11077   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
11078 echo "configure:11079: checking for sqrtf declaration" >&5
11079   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
11080     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
11081   echo $ac_n "(cached) $ac_c" 1>&6
11082 else
11083   
11084       
11085       ac_ext=C
11086 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11087 ac_cpp='$CXXCPP $CPPFLAGS'
11088 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11089 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11090 cross_compiling=$ac_cv_prog_cxx_cross
11091
11092       cat > conftest.$ac_ext <<EOF
11093 #line 11094 "configure"
11094 #include "confdefs.h"
11095 #include <math.h>
11096                       #ifdef HAVE_IEEEFP_H
11097                       #include <ieeefp.h>
11098                       #endif
11099                      
11100 int main() {
11101  sqrtf(0);
11102 ; return 0; }
11103 EOF
11104 if { (eval echo configure:11105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11105   rm -rf conftest*
11106   glibcpp_cv_func_sqrtf_use=yes
11107 else
11108   echo "configure: failed program was:" >&5
11109   cat conftest.$ac_ext >&5
11110   rm -rf conftest*
11111   glibcpp_cv_func_sqrtf_use=no
11112 fi
11113 rm -f conftest*
11114       ac_ext=c
11115 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11116 ac_cpp='$CPP $CPPFLAGS'
11117 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11118 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11119 cross_compiling=$ac_cv_prog_cc_cross
11120
11121     
11122 fi
11123
11124   fi
11125   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
11126
11127   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
11128     for ac_func in sqrtf
11129 do
11130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11131 echo "configure:11132: checking for $ac_func" >&5
11132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11133   echo $ac_n "(cached) $ac_c" 1>&6
11134 else
11135   cat > conftest.$ac_ext <<EOF
11136 #line 11137 "configure"
11137 #include "confdefs.h"
11138 /* System header to define __stub macros and hopefully few prototypes,
11139     which can conflict with char $ac_func(); below.  */
11140 #include <assert.h>
11141 /* Override any gcc2 internal prototype to avoid an error.  */
11142 /* We use char because int might match the return type of a gcc2
11143     builtin and then its argument prototype would still apply.  */
11144 char $ac_func();
11145
11146 int main() {
11147
11148 /* The GNU C library defines this for functions which it implements
11149     to always fail with ENOSYS.  Some functions are actually named
11150     something starting with __ and the normal name is an alias.  */
11151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11152 choke me
11153 #else
11154 $ac_func();
11155 #endif
11156
11157 ; return 0; }
11158 EOF
11159 if { (eval echo configure:11160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11160   rm -rf conftest*
11161   eval "ac_cv_func_$ac_func=yes"
11162 else
11163   echo "configure: failed program was:" >&5
11164   cat conftest.$ac_ext >&5
11165   rm -rf conftest*
11166   eval "ac_cv_func_$ac_func=no"
11167 fi
11168 rm -f conftest*
11169 fi
11170
11171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11172   echo "$ac_t""yes" 1>&6
11173     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11174   cat >> confdefs.h <<EOF
11175 #define $ac_tr_func 1
11176 EOF
11177  
11178 else
11179   echo "$ac_t""no" 1>&6
11180 fi
11181 done
11182     
11183   else
11184     
11185   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
11186 echo "configure:11187: checking for _sqrtf declaration" >&5
11187   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
11188     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
11189   echo $ac_n "(cached) $ac_c" 1>&6
11190 else
11191   
11192       
11193       ac_ext=C
11194 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11195 ac_cpp='$CXXCPP $CPPFLAGS'
11196 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11197 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11198 cross_compiling=$ac_cv_prog_cxx_cross
11199
11200       cat > conftest.$ac_ext <<EOF
11201 #line 11202 "configure"
11202 #include "confdefs.h"
11203 #include <math.h>
11204                       #ifdef HAVE_IEEEFP_H
11205                       #include <ieeefp.h>
11206                       #endif
11207                      
11208 int main() {
11209  _sqrtf(0);
11210 ; return 0; }
11211 EOF
11212 if { (eval echo configure:11213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11213   rm -rf conftest*
11214   glibcpp_cv_func__sqrtf_use=yes
11215 else
11216   echo "configure: failed program was:" >&5
11217   cat conftest.$ac_ext >&5
11218   rm -rf conftest*
11219   glibcpp_cv_func__sqrtf_use=no
11220 fi
11221 rm -f conftest*
11222       ac_ext=c
11223 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11224 ac_cpp='$CPP $CPPFLAGS'
11225 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11226 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11227 cross_compiling=$ac_cv_prog_cc_cross
11228
11229     
11230 fi
11231
11232   fi
11233   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
11234
11235     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
11236       for ac_func in _sqrtf
11237 do
11238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11239 echo "configure:11240: checking for $ac_func" >&5
11240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11241   echo $ac_n "(cached) $ac_c" 1>&6
11242 else
11243   cat > conftest.$ac_ext <<EOF
11244 #line 11245 "configure"
11245 #include "confdefs.h"
11246 /* System header to define __stub macros and hopefully few prototypes,
11247     which can conflict with char $ac_func(); below.  */
11248 #include <assert.h>
11249 /* Override any gcc2 internal prototype to avoid an error.  */
11250 /* We use char because int might match the return type of a gcc2
11251     builtin and then its argument prototype would still apply.  */
11252 char $ac_func();
11253
11254 int main() {
11255
11256 /* The GNU C library defines this for functions which it implements
11257     to always fail with ENOSYS.  Some functions are actually named
11258     something starting with __ and the normal name is an alias.  */
11259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11260 choke me
11261 #else
11262 $ac_func();
11263 #endif
11264
11265 ; return 0; }
11266 EOF
11267 if { (eval echo configure:11268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11268   rm -rf conftest*
11269   eval "ac_cv_func_$ac_func=yes"
11270 else
11271   echo "configure: failed program was:" >&5
11272   cat conftest.$ac_ext >&5
11273   rm -rf conftest*
11274   eval "ac_cv_func_$ac_func=no"
11275 fi
11276 rm -f conftest*
11277 fi
11278
11279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11280   echo "$ac_t""yes" 1>&6
11281     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11282   cat >> confdefs.h <<EOF
11283 #define $ac_tr_func 1
11284 EOF
11285  
11286 else
11287   echo "$ac_t""no" 1>&6
11288 fi
11289 done
11290     
11291     fi
11292   fi
11293
11294   
11295   
11296   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
11297 echo "configure:11298: checking for sincosf declaration" >&5
11298   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
11299     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
11300   echo $ac_n "(cached) $ac_c" 1>&6
11301 else
11302   
11303       
11304       ac_ext=C
11305 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11306 ac_cpp='$CXXCPP $CPPFLAGS'
11307 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11308 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11309 cross_compiling=$ac_cv_prog_cxx_cross
11310
11311       cat > conftest.$ac_ext <<EOF
11312 #line 11313 "configure"
11313 #include "confdefs.h"
11314 #include <math.h>
11315 int main() {
11316  sincosf(0, 0, 0);
11317 ; return 0; }
11318 EOF
11319 if { (eval echo configure:11320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11320   rm -rf conftest*
11321   glibcpp_cv_func_sincosf_use=yes
11322 else
11323   echo "configure: failed program was:" >&5
11324   cat conftest.$ac_ext >&5
11325   rm -rf conftest*
11326   glibcpp_cv_func_sincosf_use=no
11327 fi
11328 rm -f conftest*
11329       ac_ext=c
11330 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11331 ac_cpp='$CPP $CPPFLAGS'
11332 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11333 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11334 cross_compiling=$ac_cv_prog_cc_cross
11335
11336     
11337 fi
11338
11339   fi
11340   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
11341
11342   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
11343     for ac_func in sincosf
11344 do
11345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11346 echo "configure:11347: checking for $ac_func" >&5
11347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11348   echo $ac_n "(cached) $ac_c" 1>&6
11349 else
11350   cat > conftest.$ac_ext <<EOF
11351 #line 11352 "configure"
11352 #include "confdefs.h"
11353 /* System header to define __stub macros and hopefully few prototypes,
11354     which can conflict with char $ac_func(); below.  */
11355 #include <assert.h>
11356 /* Override any gcc2 internal prototype to avoid an error.  */
11357 /* We use char because int might match the return type of a gcc2
11358     builtin and then its argument prototype would still apply.  */
11359 char $ac_func();
11360
11361 int main() {
11362
11363 /* The GNU C library defines this for functions which it implements
11364     to always fail with ENOSYS.  Some functions are actually named
11365     something starting with __ and the normal name is an alias.  */
11366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11367 choke me
11368 #else
11369 $ac_func();
11370 #endif
11371
11372 ; return 0; }
11373 EOF
11374 if { (eval echo configure:11375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11375   rm -rf conftest*
11376   eval "ac_cv_func_$ac_func=yes"
11377 else
11378   echo "configure: failed program was:" >&5
11379   cat conftest.$ac_ext >&5
11380   rm -rf conftest*
11381   eval "ac_cv_func_$ac_func=no"
11382 fi
11383 rm -f conftest*
11384 fi
11385
11386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11387   echo "$ac_t""yes" 1>&6
11388     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11389   cat >> confdefs.h <<EOF
11390 #define $ac_tr_func 1
11391 EOF
11392  
11393 else
11394   echo "$ac_t""no" 1>&6
11395 fi
11396 done
11397     
11398   else
11399     
11400   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
11401 echo "configure:11402: checking for _sincosf declaration" >&5
11402   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
11403     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
11404   echo $ac_n "(cached) $ac_c" 1>&6
11405 else
11406   
11407       
11408       ac_ext=C
11409 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11410 ac_cpp='$CXXCPP $CPPFLAGS'
11411 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11412 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11413 cross_compiling=$ac_cv_prog_cxx_cross
11414
11415       cat > conftest.$ac_ext <<EOF
11416 #line 11417 "configure"
11417 #include "confdefs.h"
11418 #include <math.h>
11419 int main() {
11420  _sincosf(0, 0, 0);
11421 ; return 0; }
11422 EOF
11423 if { (eval echo configure:11424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11424   rm -rf conftest*
11425   glibcpp_cv_func__sincosf_use=yes
11426 else
11427   echo "configure: failed program was:" >&5
11428   cat conftest.$ac_ext >&5
11429   rm -rf conftest*
11430   glibcpp_cv_func__sincosf_use=no
11431 fi
11432 rm -f conftest*
11433       ac_ext=c
11434 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11435 ac_cpp='$CPP $CPPFLAGS'
11436 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11437 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11438 cross_compiling=$ac_cv_prog_cc_cross
11439
11440     
11441 fi
11442
11443   fi
11444   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
11445
11446     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
11447       for ac_func in _sincosf
11448 do
11449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11450 echo "configure:11451: checking for $ac_func" >&5
11451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11452   echo $ac_n "(cached) $ac_c" 1>&6
11453 else
11454   cat > conftest.$ac_ext <<EOF
11455 #line 11456 "configure"
11456 #include "confdefs.h"
11457 /* System header to define __stub macros and hopefully few prototypes,
11458     which can conflict with char $ac_func(); below.  */
11459 #include <assert.h>
11460 /* Override any gcc2 internal prototype to avoid an error.  */
11461 /* We use char because int might match the return type of a gcc2
11462     builtin and then its argument prototype would still apply.  */
11463 char $ac_func();
11464
11465 int main() {
11466
11467 /* The GNU C library defines this for functions which it implements
11468     to always fail with ENOSYS.  Some functions are actually named
11469     something starting with __ and the normal name is an alias.  */
11470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11471 choke me
11472 #else
11473 $ac_func();
11474 #endif
11475
11476 ; return 0; }
11477 EOF
11478 if { (eval echo configure:11479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11479   rm -rf conftest*
11480   eval "ac_cv_func_$ac_func=yes"
11481 else
11482   echo "configure: failed program was:" >&5
11483   cat conftest.$ac_ext >&5
11484   rm -rf conftest*
11485   eval "ac_cv_func_$ac_func=no"
11486 fi
11487 rm -f conftest*
11488 fi
11489
11490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11491   echo "$ac_t""yes" 1>&6
11492     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11493   cat >> confdefs.h <<EOF
11494 #define $ac_tr_func 1
11495 EOF
11496  
11497 else
11498   echo "$ac_t""no" 1>&6
11499 fi
11500 done
11501     
11502     fi
11503   fi
11504
11505   
11506   
11507   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
11508 echo "configure:11509: checking for finitef declaration" >&5
11509   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
11510     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
11511   echo $ac_n "(cached) $ac_c" 1>&6
11512 else
11513   
11514       
11515       ac_ext=C
11516 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11517 ac_cpp='$CXXCPP $CPPFLAGS'
11518 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11519 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11520 cross_compiling=$ac_cv_prog_cxx_cross
11521
11522       cat > conftest.$ac_ext <<EOF
11523 #line 11524 "configure"
11524 #include "confdefs.h"
11525 #include <math.h>
11526                       #ifdef HAVE_IEEEFP_H
11527                       #include <ieeefp.h>
11528                       #endif
11529                      
11530 int main() {
11531  finitef(0);
11532 ; return 0; }
11533 EOF
11534 if { (eval echo configure:11535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11535   rm -rf conftest*
11536   glibcpp_cv_func_finitef_use=yes
11537 else
11538   echo "configure: failed program was:" >&5
11539   cat conftest.$ac_ext >&5
11540   rm -rf conftest*
11541   glibcpp_cv_func_finitef_use=no
11542 fi
11543 rm -f conftest*
11544       ac_ext=c
11545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11546 ac_cpp='$CPP $CPPFLAGS'
11547 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11548 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11549 cross_compiling=$ac_cv_prog_cc_cross
11550
11551     
11552 fi
11553
11554   fi
11555   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
11556
11557   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
11558     for ac_func in finitef
11559 do
11560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11561 echo "configure:11562: checking for $ac_func" >&5
11562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11563   echo $ac_n "(cached) $ac_c" 1>&6
11564 else
11565   cat > conftest.$ac_ext <<EOF
11566 #line 11567 "configure"
11567 #include "confdefs.h"
11568 /* System header to define __stub macros and hopefully few prototypes,
11569     which can conflict with char $ac_func(); below.  */
11570 #include <assert.h>
11571 /* Override any gcc2 internal prototype to avoid an error.  */
11572 /* We use char because int might match the return type of a gcc2
11573     builtin and then its argument prototype would still apply.  */
11574 char $ac_func();
11575
11576 int main() {
11577
11578 /* The GNU C library defines this for functions which it implements
11579     to always fail with ENOSYS.  Some functions are actually named
11580     something starting with __ and the normal name is an alias.  */
11581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11582 choke me
11583 #else
11584 $ac_func();
11585 #endif
11586
11587 ; return 0; }
11588 EOF
11589 if { (eval echo configure:11590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11590   rm -rf conftest*
11591   eval "ac_cv_func_$ac_func=yes"
11592 else
11593   echo "configure: failed program was:" >&5
11594   cat conftest.$ac_ext >&5
11595   rm -rf conftest*
11596   eval "ac_cv_func_$ac_func=no"
11597 fi
11598 rm -f conftest*
11599 fi
11600
11601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11602   echo "$ac_t""yes" 1>&6
11603     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11604   cat >> confdefs.h <<EOF
11605 #define $ac_tr_func 1
11606 EOF
11607  
11608 else
11609   echo "$ac_t""no" 1>&6
11610 fi
11611 done
11612     
11613   else
11614     
11615   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
11616 echo "configure:11617: checking for _finitef declaration" >&5
11617   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
11618     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
11619   echo $ac_n "(cached) $ac_c" 1>&6
11620 else
11621   
11622       
11623       ac_ext=C
11624 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11625 ac_cpp='$CXXCPP $CPPFLAGS'
11626 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11627 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11628 cross_compiling=$ac_cv_prog_cxx_cross
11629
11630       cat > conftest.$ac_ext <<EOF
11631 #line 11632 "configure"
11632 #include "confdefs.h"
11633 #include <math.h>
11634                       #ifdef HAVE_IEEEFP_H
11635                       #include <ieeefp.h>
11636                       #endif
11637                      
11638 int main() {
11639  _finitef(0);
11640 ; return 0; }
11641 EOF
11642 if { (eval echo configure:11643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11643   rm -rf conftest*
11644   glibcpp_cv_func__finitef_use=yes
11645 else
11646   echo "configure: failed program was:" >&5
11647   cat conftest.$ac_ext >&5
11648   rm -rf conftest*
11649   glibcpp_cv_func__finitef_use=no
11650 fi
11651 rm -f conftest*
11652       ac_ext=c
11653 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11654 ac_cpp='$CPP $CPPFLAGS'
11655 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11656 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11657 cross_compiling=$ac_cv_prog_cc_cross
11658
11659     
11660 fi
11661
11662   fi
11663   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
11664
11665     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
11666       for ac_func in _finitef
11667 do
11668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11669 echo "configure:11670: checking for $ac_func" >&5
11670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11671   echo $ac_n "(cached) $ac_c" 1>&6
11672 else
11673   cat > conftest.$ac_ext <<EOF
11674 #line 11675 "configure"
11675 #include "confdefs.h"
11676 /* System header to define __stub macros and hopefully few prototypes,
11677     which can conflict with char $ac_func(); below.  */
11678 #include <assert.h>
11679 /* Override any gcc2 internal prototype to avoid an error.  */
11680 /* We use char because int might match the return type of a gcc2
11681     builtin and then its argument prototype would still apply.  */
11682 char $ac_func();
11683
11684 int main() {
11685
11686 /* The GNU C library defines this for functions which it implements
11687     to always fail with ENOSYS.  Some functions are actually named
11688     something starting with __ and the normal name is an alias.  */
11689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11690 choke me
11691 #else
11692 $ac_func();
11693 #endif
11694
11695 ; return 0; }
11696 EOF
11697 if { (eval echo configure:11698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11698   rm -rf conftest*
11699   eval "ac_cv_func_$ac_func=yes"
11700 else
11701   echo "configure: failed program was:" >&5
11702   cat conftest.$ac_ext >&5
11703   rm -rf conftest*
11704   eval "ac_cv_func_$ac_func=no"
11705 fi
11706 rm -f conftest*
11707 fi
11708
11709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11710   echo "$ac_t""yes" 1>&6
11711     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11712   cat >> confdefs.h <<EOF
11713 #define $ac_tr_func 1
11714 EOF
11715  
11716 else
11717   echo "$ac_t""no" 1>&6
11718 fi
11719 done
11720     
11721     fi
11722   fi
11723
11724
11725     
11726   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
11727 echo "configure:11728: checking for long double trig functions" >&5
11728   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
11729   echo $ac_n "(cached) $ac_c" 1>&6
11730 else
11731   
11732     
11733     ac_ext=C
11734 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11735 ac_cpp='$CXXCPP $CPPFLAGS'
11736 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11737 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11738 cross_compiling=$ac_cv_prog_cxx_cross
11739
11740     cat > conftest.$ac_ext <<EOF
11741 #line 11742 "configure"
11742 #include "confdefs.h"
11743 #include <math.h>
11744 int main() {
11745  `for x in acosl asinl atanl \
11746                                           cosl sinl tanl \
11747                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
11748 ; return 0; }
11749 EOF
11750 if { (eval echo configure:11751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11751   rm -rf conftest*
11752   glibcpp_cv_func_long_double_trig_use=yes
11753 else
11754   echo "configure: failed program was:" >&5
11755   cat conftest.$ac_ext >&5
11756   rm -rf conftest*
11757   glibcpp_cv_func_long_double_trig_use=no
11758 fi
11759 rm -f conftest*
11760     ac_ext=c
11761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11762 ac_cpp='$CPP $CPPFLAGS'
11763 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11764 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11765 cross_compiling=$ac_cv_prog_cc_cross
11766
11767 fi
11768
11769   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
11770   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
11771     for ac_func in acosl asinl atanl \
11772                                           cosl sinl tanl \
11773                                           coshl sinhl tanhl
11774 do
11775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11776 echo "configure:11777: checking for $ac_func" >&5
11777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11778   echo $ac_n "(cached) $ac_c" 1>&6
11779 else
11780   cat > conftest.$ac_ext <<EOF
11781 #line 11782 "configure"
11782 #include "confdefs.h"
11783 /* System header to define __stub macros and hopefully few prototypes,
11784     which can conflict with char $ac_func(); below.  */
11785 #include <assert.h>
11786 /* Override any gcc2 internal prototype to avoid an error.  */
11787 /* We use char because int might match the return type of a gcc2
11788     builtin and then its argument prototype would still apply.  */
11789 char $ac_func();
11790
11791 int main() {
11792
11793 /* The GNU C library defines this for functions which it implements
11794     to always fail with ENOSYS.  Some functions are actually named
11795     something starting with __ and the normal name is an alias.  */
11796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11797 choke me
11798 #else
11799 $ac_func();
11800 #endif
11801
11802 ; return 0; }
11803 EOF
11804 if { (eval echo configure:11805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11805   rm -rf conftest*
11806   eval "ac_cv_func_$ac_func=yes"
11807 else
11808   echo "configure: failed program was:" >&5
11809   cat conftest.$ac_ext >&5
11810   rm -rf conftest*
11811   eval "ac_cv_func_$ac_func=no"
11812 fi
11813 rm -f conftest*
11814 fi
11815
11816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11817   echo "$ac_t""yes" 1>&6
11818     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11819   cat >> confdefs.h <<EOF
11820 #define $ac_tr_func 1
11821 EOF
11822  
11823 else
11824   echo "$ac_t""no" 1>&6
11825 fi
11826 done
11827
11828   fi
11829
11830   
11831   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
11832 echo "configure:11833: checking for long double round functions" >&5
11833   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
11834   echo $ac_n "(cached) $ac_c" 1>&6
11835 else
11836   
11837     
11838     ac_ext=C
11839 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11840 ac_cpp='$CXXCPP $CPPFLAGS'
11841 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11842 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11843 cross_compiling=$ac_cv_prog_cxx_cross
11844
11845     cat > conftest.$ac_ext <<EOF
11846 #line 11847 "configure"
11847 #include "confdefs.h"
11848 #include <math.h>
11849 int main() {
11850  `for x in ceill floorl; do echo "$x (0);"; done` 
11851 ; return 0; }
11852 EOF
11853 if { (eval echo configure:11854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11854   rm -rf conftest*
11855   glibcpp_cv_func_long_double_round_use=yes
11856 else
11857   echo "configure: failed program was:" >&5
11858   cat conftest.$ac_ext >&5
11859   rm -rf conftest*
11860   glibcpp_cv_func_long_double_round_use=no
11861 fi
11862 rm -f conftest*
11863     ac_ext=c
11864 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11865 ac_cpp='$CPP $CPPFLAGS'
11866 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11867 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11868 cross_compiling=$ac_cv_prog_cc_cross
11869
11870 fi
11871
11872   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11873   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11874     for ac_func in ceill floorl
11875 do
11876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11877 echo "configure:11878: checking for $ac_func" >&5
11878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11879   echo $ac_n "(cached) $ac_c" 1>&6
11880 else
11881   cat > conftest.$ac_ext <<EOF
11882 #line 11883 "configure"
11883 #include "confdefs.h"
11884 /* System header to define __stub macros and hopefully few prototypes,
11885     which can conflict with char $ac_func(); below.  */
11886 #include <assert.h>
11887 /* Override any gcc2 internal prototype to avoid an error.  */
11888 /* We use char because int might match the return type of a gcc2
11889     builtin and then its argument prototype would still apply.  */
11890 char $ac_func();
11891
11892 int main() {
11893
11894 /* The GNU C library defines this for functions which it implements
11895     to always fail with ENOSYS.  Some functions are actually named
11896     something starting with __ and the normal name is an alias.  */
11897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11898 choke me
11899 #else
11900 $ac_func();
11901 #endif
11902
11903 ; return 0; }
11904 EOF
11905 if { (eval echo configure:11906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11906   rm -rf conftest*
11907   eval "ac_cv_func_$ac_func=yes"
11908 else
11909   echo "configure: failed program was:" >&5
11910   cat conftest.$ac_ext >&5
11911   rm -rf conftest*
11912   eval "ac_cv_func_$ac_func=no"
11913 fi
11914 rm -f conftest*
11915 fi
11916
11917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11918   echo "$ac_t""yes" 1>&6
11919     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11920   cat >> confdefs.h <<EOF
11921 #define $ac_tr_func 1
11922 EOF
11923  
11924 else
11925   echo "$ac_t""no" 1>&6
11926 fi
11927 done
11928
11929   fi
11930
11931   
11932   
11933   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11934 echo "configure:11935: checking for isnanl declaration" >&5
11935   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11936     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11937   echo $ac_n "(cached) $ac_c" 1>&6
11938 else
11939   
11940       
11941       ac_ext=C
11942 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11943 ac_cpp='$CXXCPP $CPPFLAGS'
11944 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11945 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11946 cross_compiling=$ac_cv_prog_cxx_cross
11947
11948       cat > conftest.$ac_ext <<EOF
11949 #line 11950 "configure"
11950 #include "confdefs.h"
11951 #include <math.h>
11952                       #ifdef HAVE_IEEEFP_H
11953                       #include <ieeefp.h>
11954                       #endif
11955                      
11956 int main() {
11957  isnanl(0);
11958 ; return 0; }
11959 EOF
11960 if { (eval echo configure:11961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11961   rm -rf conftest*
11962   glibcpp_cv_func_isnanl_use=yes
11963 else
11964   echo "configure: failed program was:" >&5
11965   cat conftest.$ac_ext >&5
11966   rm -rf conftest*
11967   glibcpp_cv_func_isnanl_use=no
11968 fi
11969 rm -f conftest*
11970       ac_ext=c
11971 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11972 ac_cpp='$CPP $CPPFLAGS'
11973 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11974 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11975 cross_compiling=$ac_cv_prog_cc_cross
11976
11977     
11978 fi
11979
11980   fi
11981   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11982
11983   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11984     for ac_func in isnanl
11985 do
11986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11987 echo "configure:11988: checking for $ac_func" >&5
11988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11989   echo $ac_n "(cached) $ac_c" 1>&6
11990 else
11991   cat > conftest.$ac_ext <<EOF
11992 #line 11993 "configure"
11993 #include "confdefs.h"
11994 /* System header to define __stub macros and hopefully few prototypes,
11995     which can conflict with char $ac_func(); below.  */
11996 #include <assert.h>
11997 /* Override any gcc2 internal prototype to avoid an error.  */
11998 /* We use char because int might match the return type of a gcc2
11999     builtin and then its argument prototype would still apply.  */
12000 char $ac_func();
12001
12002 int main() {
12003
12004 /* The GNU C library defines this for functions which it implements
12005     to always fail with ENOSYS.  Some functions are actually named
12006     something starting with __ and the normal name is an alias.  */
12007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12008 choke me
12009 #else
12010 $ac_func();
12011 #endif
12012
12013 ; return 0; }
12014 EOF
12015 if { (eval echo configure:12016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12016   rm -rf conftest*
12017   eval "ac_cv_func_$ac_func=yes"
12018 else
12019   echo "configure: failed program was:" >&5
12020   cat conftest.$ac_ext >&5
12021   rm -rf conftest*
12022   eval "ac_cv_func_$ac_func=no"
12023 fi
12024 rm -f conftest*
12025 fi
12026
12027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12028   echo "$ac_t""yes" 1>&6
12029     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12030   cat >> confdefs.h <<EOF
12031 #define $ac_tr_func 1
12032 EOF
12033  
12034 else
12035   echo "$ac_t""no" 1>&6
12036 fi
12037 done
12038     
12039   else
12040     
12041   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
12042 echo "configure:12043: checking for _isnanl declaration" >&5
12043   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
12044     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
12045   echo $ac_n "(cached) $ac_c" 1>&6
12046 else
12047   
12048       
12049       ac_ext=C
12050 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12051 ac_cpp='$CXXCPP $CPPFLAGS'
12052 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12053 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12054 cross_compiling=$ac_cv_prog_cxx_cross
12055
12056       cat > conftest.$ac_ext <<EOF
12057 #line 12058 "configure"
12058 #include "confdefs.h"
12059 #include <math.h>
12060                       #ifdef HAVE_IEEEFP_H
12061                       #include <ieeefp.h>
12062                       #endif
12063                      
12064 int main() {
12065  _isnanl(0);
12066 ; return 0; }
12067 EOF
12068 if { (eval echo configure:12069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12069   rm -rf conftest*
12070   glibcpp_cv_func__isnanl_use=yes
12071 else
12072   echo "configure: failed program was:" >&5
12073   cat conftest.$ac_ext >&5
12074   rm -rf conftest*
12075   glibcpp_cv_func__isnanl_use=no
12076 fi
12077 rm -f conftest*
12078       ac_ext=c
12079 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12080 ac_cpp='$CPP $CPPFLAGS'
12081 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12082 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12083 cross_compiling=$ac_cv_prog_cc_cross
12084
12085     
12086 fi
12087
12088   fi
12089   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
12090
12091     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
12092       for ac_func in _isnanl
12093 do
12094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12095 echo "configure:12096: checking for $ac_func" >&5
12096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12097   echo $ac_n "(cached) $ac_c" 1>&6
12098 else
12099   cat > conftest.$ac_ext <<EOF
12100 #line 12101 "configure"
12101 #include "confdefs.h"
12102 /* System header to define __stub macros and hopefully few prototypes,
12103     which can conflict with char $ac_func(); below.  */
12104 #include <assert.h>
12105 /* Override any gcc2 internal prototype to avoid an error.  */
12106 /* We use char because int might match the return type of a gcc2
12107     builtin and then its argument prototype would still apply.  */
12108 char $ac_func();
12109
12110 int main() {
12111
12112 /* The GNU C library defines this for functions which it implements
12113     to always fail with ENOSYS.  Some functions are actually named
12114     something starting with __ and the normal name is an alias.  */
12115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12116 choke me
12117 #else
12118 $ac_func();
12119 #endif
12120
12121 ; return 0; }
12122 EOF
12123 if { (eval echo configure:12124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12124   rm -rf conftest*
12125   eval "ac_cv_func_$ac_func=yes"
12126 else
12127   echo "configure: failed program was:" >&5
12128   cat conftest.$ac_ext >&5
12129   rm -rf conftest*
12130   eval "ac_cv_func_$ac_func=no"
12131 fi
12132 rm -f conftest*
12133 fi
12134
12135 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12136   echo "$ac_t""yes" 1>&6
12137     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12138   cat >> confdefs.h <<EOF
12139 #define $ac_tr_func 1
12140 EOF
12141  
12142 else
12143   echo "$ac_t""no" 1>&6
12144 fi
12145 done
12146     
12147     fi
12148   fi
12149
12150   
12151   
12152   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
12153 echo "configure:12154: checking for isinfl declaration" >&5
12154   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
12155     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
12156   echo $ac_n "(cached) $ac_c" 1>&6
12157 else
12158   
12159       
12160       ac_ext=C
12161 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12162 ac_cpp='$CXXCPP $CPPFLAGS'
12163 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12164 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12165 cross_compiling=$ac_cv_prog_cxx_cross
12166
12167       cat > conftest.$ac_ext <<EOF
12168 #line 12169 "configure"
12169 #include "confdefs.h"
12170 #include <math.h>
12171                       #ifdef HAVE_IEEEFP_H
12172                       #include <ieeefp.h>
12173                       #endif
12174                      
12175 int main() {
12176  isinfl(0);
12177 ; return 0; }
12178 EOF
12179 if { (eval echo configure:12180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12180   rm -rf conftest*
12181   glibcpp_cv_func_isinfl_use=yes
12182 else
12183   echo "configure: failed program was:" >&5
12184   cat conftest.$ac_ext >&5
12185   rm -rf conftest*
12186   glibcpp_cv_func_isinfl_use=no
12187 fi
12188 rm -f conftest*
12189       ac_ext=c
12190 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12191 ac_cpp='$CPP $CPPFLAGS'
12192 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12193 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12194 cross_compiling=$ac_cv_prog_cc_cross
12195
12196     
12197 fi
12198
12199   fi
12200   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
12201
12202   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
12203     for ac_func in isinfl
12204 do
12205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12206 echo "configure:12207: checking for $ac_func" >&5
12207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12208   echo $ac_n "(cached) $ac_c" 1>&6
12209 else
12210   cat > conftest.$ac_ext <<EOF
12211 #line 12212 "configure"
12212 #include "confdefs.h"
12213 /* System header to define __stub macros and hopefully few prototypes,
12214     which can conflict with char $ac_func(); below.  */
12215 #include <assert.h>
12216 /* Override any gcc2 internal prototype to avoid an error.  */
12217 /* We use char because int might match the return type of a gcc2
12218     builtin and then its argument prototype would still apply.  */
12219 char $ac_func();
12220
12221 int main() {
12222
12223 /* The GNU C library defines this for functions which it implements
12224     to always fail with ENOSYS.  Some functions are actually named
12225     something starting with __ and the normal name is an alias.  */
12226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12227 choke me
12228 #else
12229 $ac_func();
12230 #endif
12231
12232 ; return 0; }
12233 EOF
12234 if { (eval echo configure:12235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12235   rm -rf conftest*
12236   eval "ac_cv_func_$ac_func=yes"
12237 else
12238   echo "configure: failed program was:" >&5
12239   cat conftest.$ac_ext >&5
12240   rm -rf conftest*
12241   eval "ac_cv_func_$ac_func=no"
12242 fi
12243 rm -f conftest*
12244 fi
12245
12246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12247   echo "$ac_t""yes" 1>&6
12248     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12249   cat >> confdefs.h <<EOF
12250 #define $ac_tr_func 1
12251 EOF
12252  
12253 else
12254   echo "$ac_t""no" 1>&6
12255 fi
12256 done
12257     
12258   else
12259     
12260   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
12261 echo "configure:12262: checking for _isinfl declaration" >&5
12262   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
12263     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
12264   echo $ac_n "(cached) $ac_c" 1>&6
12265 else
12266   
12267       
12268       ac_ext=C
12269 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12270 ac_cpp='$CXXCPP $CPPFLAGS'
12271 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12272 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12273 cross_compiling=$ac_cv_prog_cxx_cross
12274
12275       cat > conftest.$ac_ext <<EOF
12276 #line 12277 "configure"
12277 #include "confdefs.h"
12278 #include <math.h>
12279                       #ifdef HAVE_IEEEFP_H
12280                       #include <ieeefp.h>
12281                       #endif
12282                      
12283 int main() {
12284  _isinfl(0);
12285 ; return 0; }
12286 EOF
12287 if { (eval echo configure:12288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12288   rm -rf conftest*
12289   glibcpp_cv_func__isinfl_use=yes
12290 else
12291   echo "configure: failed program was:" >&5
12292   cat conftest.$ac_ext >&5
12293   rm -rf conftest*
12294   glibcpp_cv_func__isinfl_use=no
12295 fi
12296 rm -f conftest*
12297       ac_ext=c
12298 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12299 ac_cpp='$CPP $CPPFLAGS'
12300 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12301 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12302 cross_compiling=$ac_cv_prog_cc_cross
12303
12304     
12305 fi
12306
12307   fi
12308   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
12309
12310     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
12311       for ac_func in _isinfl
12312 do
12313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12314 echo "configure:12315: checking for $ac_func" >&5
12315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12316   echo $ac_n "(cached) $ac_c" 1>&6
12317 else
12318   cat > conftest.$ac_ext <<EOF
12319 #line 12320 "configure"
12320 #include "confdefs.h"
12321 /* System header to define __stub macros and hopefully few prototypes,
12322     which can conflict with char $ac_func(); below.  */
12323 #include <assert.h>
12324 /* Override any gcc2 internal prototype to avoid an error.  */
12325 /* We use char because int might match the return type of a gcc2
12326     builtin and then its argument prototype would still apply.  */
12327 char $ac_func();
12328
12329 int main() {
12330
12331 /* The GNU C library defines this for functions which it implements
12332     to always fail with ENOSYS.  Some functions are actually named
12333     something starting with __ and the normal name is an alias.  */
12334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12335 choke me
12336 #else
12337 $ac_func();
12338 #endif
12339
12340 ; return 0; }
12341 EOF
12342 if { (eval echo configure:12343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12343   rm -rf conftest*
12344   eval "ac_cv_func_$ac_func=yes"
12345 else
12346   echo "configure: failed program was:" >&5
12347   cat conftest.$ac_ext >&5
12348   rm -rf conftest*
12349   eval "ac_cv_func_$ac_func=no"
12350 fi
12351 rm -f conftest*
12352 fi
12353
12354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12355   echo "$ac_t""yes" 1>&6
12356     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12357   cat >> confdefs.h <<EOF
12358 #define $ac_tr_func 1
12359 EOF
12360  
12361 else
12362   echo "$ac_t""no" 1>&6
12363 fi
12364 done
12365     
12366     fi
12367   fi
12368
12369   
12370   
12371   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
12372 echo "configure:12373: checking for copysignl declaration" >&5
12373   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
12374     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
12375   echo $ac_n "(cached) $ac_c" 1>&6
12376 else
12377   
12378       
12379       ac_ext=C
12380 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12381 ac_cpp='$CXXCPP $CPPFLAGS'
12382 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12383 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12384 cross_compiling=$ac_cv_prog_cxx_cross
12385
12386       cat > conftest.$ac_ext <<EOF
12387 #line 12388 "configure"
12388 #include "confdefs.h"
12389 #include <math.h>
12390 int main() {
12391  copysignl(0, 0);
12392 ; return 0; }
12393 EOF
12394 if { (eval echo configure:12395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12395   rm -rf conftest*
12396   glibcpp_cv_func_copysignl_use=yes
12397 else
12398   echo "configure: failed program was:" >&5
12399   cat conftest.$ac_ext >&5
12400   rm -rf conftest*
12401   glibcpp_cv_func_copysignl_use=no
12402 fi
12403 rm -f conftest*
12404       ac_ext=c
12405 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12406 ac_cpp='$CPP $CPPFLAGS'
12407 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12408 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12409 cross_compiling=$ac_cv_prog_cc_cross
12410
12411     
12412 fi
12413
12414   fi
12415   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
12416
12417   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
12418     for ac_func in copysignl
12419 do
12420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12421 echo "configure:12422: checking for $ac_func" >&5
12422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12423   echo $ac_n "(cached) $ac_c" 1>&6
12424 else
12425   cat > conftest.$ac_ext <<EOF
12426 #line 12427 "configure"
12427 #include "confdefs.h"
12428 /* System header to define __stub macros and hopefully few prototypes,
12429     which can conflict with char $ac_func(); below.  */
12430 #include <assert.h>
12431 /* Override any gcc2 internal prototype to avoid an error.  */
12432 /* We use char because int might match the return type of a gcc2
12433     builtin and then its argument prototype would still apply.  */
12434 char $ac_func();
12435
12436 int main() {
12437
12438 /* The GNU C library defines this for functions which it implements
12439     to always fail with ENOSYS.  Some functions are actually named
12440     something starting with __ and the normal name is an alias.  */
12441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12442 choke me
12443 #else
12444 $ac_func();
12445 #endif
12446
12447 ; return 0; }
12448 EOF
12449 if { (eval echo configure:12450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12450   rm -rf conftest*
12451   eval "ac_cv_func_$ac_func=yes"
12452 else
12453   echo "configure: failed program was:" >&5
12454   cat conftest.$ac_ext >&5
12455   rm -rf conftest*
12456   eval "ac_cv_func_$ac_func=no"
12457 fi
12458 rm -f conftest*
12459 fi
12460
12461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12462   echo "$ac_t""yes" 1>&6
12463     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12464   cat >> confdefs.h <<EOF
12465 #define $ac_tr_func 1
12466 EOF
12467  
12468 else
12469   echo "$ac_t""no" 1>&6
12470 fi
12471 done
12472     
12473   else
12474     
12475   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
12476 echo "configure:12477: checking for _copysignl declaration" >&5
12477   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
12478     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
12479   echo $ac_n "(cached) $ac_c" 1>&6
12480 else
12481   
12482       
12483       ac_ext=C
12484 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12485 ac_cpp='$CXXCPP $CPPFLAGS'
12486 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12487 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12488 cross_compiling=$ac_cv_prog_cxx_cross
12489
12490       cat > conftest.$ac_ext <<EOF
12491 #line 12492 "configure"
12492 #include "confdefs.h"
12493 #include <math.h>
12494 int main() {
12495  _copysignl(0, 0);
12496 ; return 0; }
12497 EOF
12498 if { (eval echo configure:12499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12499   rm -rf conftest*
12500   glibcpp_cv_func__copysignl_use=yes
12501 else
12502   echo "configure: failed program was:" >&5
12503   cat conftest.$ac_ext >&5
12504   rm -rf conftest*
12505   glibcpp_cv_func__copysignl_use=no
12506 fi
12507 rm -f conftest*
12508       ac_ext=c
12509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12510 ac_cpp='$CPP $CPPFLAGS'
12511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12513 cross_compiling=$ac_cv_prog_cc_cross
12514
12515     
12516 fi
12517
12518   fi
12519   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
12520
12521     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
12522       for ac_func in _copysignl
12523 do
12524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12525 echo "configure:12526: checking for $ac_func" >&5
12526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12527   echo $ac_n "(cached) $ac_c" 1>&6
12528 else
12529   cat > conftest.$ac_ext <<EOF
12530 #line 12531 "configure"
12531 #include "confdefs.h"
12532 /* System header to define __stub macros and hopefully few prototypes,
12533     which can conflict with char $ac_func(); below.  */
12534 #include <assert.h>
12535 /* Override any gcc2 internal prototype to avoid an error.  */
12536 /* We use char because int might match the return type of a gcc2
12537     builtin and then its argument prototype would still apply.  */
12538 char $ac_func();
12539
12540 int main() {
12541
12542 /* The GNU C library defines this for functions which it implements
12543     to always fail with ENOSYS.  Some functions are actually named
12544     something starting with __ and the normal name is an alias.  */
12545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12546 choke me
12547 #else
12548 $ac_func();
12549 #endif
12550
12551 ; return 0; }
12552 EOF
12553 if { (eval echo configure:12554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12554   rm -rf conftest*
12555   eval "ac_cv_func_$ac_func=yes"
12556 else
12557   echo "configure: failed program was:" >&5
12558   cat conftest.$ac_ext >&5
12559   rm -rf conftest*
12560   eval "ac_cv_func_$ac_func=no"
12561 fi
12562 rm -f conftest*
12563 fi
12564
12565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12566   echo "$ac_t""yes" 1>&6
12567     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12568   cat >> confdefs.h <<EOF
12569 #define $ac_tr_func 1
12570 EOF
12571  
12572 else
12573   echo "$ac_t""no" 1>&6
12574 fi
12575 done
12576     
12577     fi
12578   fi
12579
12580   
12581   
12582   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
12583 echo "configure:12584: checking for atan2l declaration" >&5
12584   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
12585     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
12586   echo $ac_n "(cached) $ac_c" 1>&6
12587 else
12588   
12589       
12590       ac_ext=C
12591 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12592 ac_cpp='$CXXCPP $CPPFLAGS'
12593 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12594 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12595 cross_compiling=$ac_cv_prog_cxx_cross
12596
12597       cat > conftest.$ac_ext <<EOF
12598 #line 12599 "configure"
12599 #include "confdefs.h"
12600 #include <math.h>
12601 int main() {
12602  atan2l(0, 0);
12603 ; return 0; }
12604 EOF
12605 if { (eval echo configure:12606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12606   rm -rf conftest*
12607   glibcpp_cv_func_atan2l_use=yes
12608 else
12609   echo "configure: failed program was:" >&5
12610   cat conftest.$ac_ext >&5
12611   rm -rf conftest*
12612   glibcpp_cv_func_atan2l_use=no
12613 fi
12614 rm -f conftest*
12615       ac_ext=c
12616 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12617 ac_cpp='$CPP $CPPFLAGS'
12618 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12619 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12620 cross_compiling=$ac_cv_prog_cc_cross
12621
12622     
12623 fi
12624
12625   fi
12626   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
12627
12628   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
12629     for ac_func in atan2l
12630 do
12631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12632 echo "configure:12633: checking for $ac_func" >&5
12633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12634   echo $ac_n "(cached) $ac_c" 1>&6
12635 else
12636   cat > conftest.$ac_ext <<EOF
12637 #line 12638 "configure"
12638 #include "confdefs.h"
12639 /* System header to define __stub macros and hopefully few prototypes,
12640     which can conflict with char $ac_func(); below.  */
12641 #include <assert.h>
12642 /* Override any gcc2 internal prototype to avoid an error.  */
12643 /* We use char because int might match the return type of a gcc2
12644     builtin and then its argument prototype would still apply.  */
12645 char $ac_func();
12646
12647 int main() {
12648
12649 /* The GNU C library defines this for functions which it implements
12650     to always fail with ENOSYS.  Some functions are actually named
12651     something starting with __ and the normal name is an alias.  */
12652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12653 choke me
12654 #else
12655 $ac_func();
12656 #endif
12657
12658 ; return 0; }
12659 EOF
12660 if { (eval echo configure:12661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12661   rm -rf conftest*
12662   eval "ac_cv_func_$ac_func=yes"
12663 else
12664   echo "configure: failed program was:" >&5
12665   cat conftest.$ac_ext >&5
12666   rm -rf conftest*
12667   eval "ac_cv_func_$ac_func=no"
12668 fi
12669 rm -f conftest*
12670 fi
12671
12672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12673   echo "$ac_t""yes" 1>&6
12674     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12675   cat >> confdefs.h <<EOF
12676 #define $ac_tr_func 1
12677 EOF
12678  
12679 else
12680   echo "$ac_t""no" 1>&6
12681 fi
12682 done
12683     
12684   else
12685     
12686   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
12687 echo "configure:12688: checking for _atan2l declaration" >&5
12688   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
12689     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
12690   echo $ac_n "(cached) $ac_c" 1>&6
12691 else
12692   
12693       
12694       ac_ext=C
12695 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12696 ac_cpp='$CXXCPP $CPPFLAGS'
12697 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12698 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12699 cross_compiling=$ac_cv_prog_cxx_cross
12700
12701       cat > conftest.$ac_ext <<EOF
12702 #line 12703 "configure"
12703 #include "confdefs.h"
12704 #include <math.h>
12705 int main() {
12706  _atan2l(0, 0);
12707 ; return 0; }
12708 EOF
12709 if { (eval echo configure:12710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12710   rm -rf conftest*
12711   glibcpp_cv_func__atan2l_use=yes
12712 else
12713   echo "configure: failed program was:" >&5
12714   cat conftest.$ac_ext >&5
12715   rm -rf conftest*
12716   glibcpp_cv_func__atan2l_use=no
12717 fi
12718 rm -f conftest*
12719       ac_ext=c
12720 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12721 ac_cpp='$CPP $CPPFLAGS'
12722 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12723 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12724 cross_compiling=$ac_cv_prog_cc_cross
12725
12726     
12727 fi
12728
12729   fi
12730   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
12731
12732     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
12733       for ac_func in _atan2l
12734 do
12735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12736 echo "configure:12737: checking for $ac_func" >&5
12737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12738   echo $ac_n "(cached) $ac_c" 1>&6
12739 else
12740   cat > conftest.$ac_ext <<EOF
12741 #line 12742 "configure"
12742 #include "confdefs.h"
12743 /* System header to define __stub macros and hopefully few prototypes,
12744     which can conflict with char $ac_func(); below.  */
12745 #include <assert.h>
12746 /* Override any gcc2 internal prototype to avoid an error.  */
12747 /* We use char because int might match the return type of a gcc2
12748     builtin and then its argument prototype would still apply.  */
12749 char $ac_func();
12750
12751 int main() {
12752
12753 /* The GNU C library defines this for functions which it implements
12754     to always fail with ENOSYS.  Some functions are actually named
12755     something starting with __ and the normal name is an alias.  */
12756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12757 choke me
12758 #else
12759 $ac_func();
12760 #endif
12761
12762 ; return 0; }
12763 EOF
12764 if { (eval echo configure:12765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12765   rm -rf conftest*
12766   eval "ac_cv_func_$ac_func=yes"
12767 else
12768   echo "configure: failed program was:" >&5
12769   cat conftest.$ac_ext >&5
12770   rm -rf conftest*
12771   eval "ac_cv_func_$ac_func=no"
12772 fi
12773 rm -f conftest*
12774 fi
12775
12776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12777   echo "$ac_t""yes" 1>&6
12778     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12779   cat >> confdefs.h <<EOF
12780 #define $ac_tr_func 1
12781 EOF
12782  
12783 else
12784   echo "$ac_t""no" 1>&6
12785 fi
12786 done
12787     
12788     fi
12789   fi
12790
12791   
12792   
12793   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
12794 echo "configure:12795: checking for expl declaration" >&5
12795   if test x${glibcpp_cv_func_expl_use+set} != xset; then
12796     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
12797   echo $ac_n "(cached) $ac_c" 1>&6
12798 else
12799   
12800       
12801       ac_ext=C
12802 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12803 ac_cpp='$CXXCPP $CPPFLAGS'
12804 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12805 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12806 cross_compiling=$ac_cv_prog_cxx_cross
12807
12808       cat > conftest.$ac_ext <<EOF
12809 #line 12810 "configure"
12810 #include "confdefs.h"
12811 #include <math.h>
12812                       #ifdef HAVE_IEEEFP_H
12813                       #include <ieeefp.h>
12814                       #endif
12815                      
12816 int main() {
12817  expl(0);
12818 ; return 0; }
12819 EOF
12820 if { (eval echo configure:12821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12821   rm -rf conftest*
12822   glibcpp_cv_func_expl_use=yes
12823 else
12824   echo "configure: failed program was:" >&5
12825   cat conftest.$ac_ext >&5
12826   rm -rf conftest*
12827   glibcpp_cv_func_expl_use=no
12828 fi
12829 rm -f conftest*
12830       ac_ext=c
12831 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12832 ac_cpp='$CPP $CPPFLAGS'
12833 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12834 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12835 cross_compiling=$ac_cv_prog_cc_cross
12836
12837     
12838 fi
12839
12840   fi
12841   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
12842
12843   if test x$glibcpp_cv_func_expl_use = x"yes"; then
12844     for ac_func in expl
12845 do
12846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12847 echo "configure:12848: checking for $ac_func" >&5
12848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12849   echo $ac_n "(cached) $ac_c" 1>&6
12850 else
12851   cat > conftest.$ac_ext <<EOF
12852 #line 12853 "configure"
12853 #include "confdefs.h"
12854 /* System header to define __stub macros and hopefully few prototypes,
12855     which can conflict with char $ac_func(); below.  */
12856 #include <assert.h>
12857 /* Override any gcc2 internal prototype to avoid an error.  */
12858 /* We use char because int might match the return type of a gcc2
12859     builtin and then its argument prototype would still apply.  */
12860 char $ac_func();
12861
12862 int main() {
12863
12864 /* The GNU C library defines this for functions which it implements
12865     to always fail with ENOSYS.  Some functions are actually named
12866     something starting with __ and the normal name is an alias.  */
12867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12868 choke me
12869 #else
12870 $ac_func();
12871 #endif
12872
12873 ; return 0; }
12874 EOF
12875 if { (eval echo configure:12876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12876   rm -rf conftest*
12877   eval "ac_cv_func_$ac_func=yes"
12878 else
12879   echo "configure: failed program was:" >&5
12880   cat conftest.$ac_ext >&5
12881   rm -rf conftest*
12882   eval "ac_cv_func_$ac_func=no"
12883 fi
12884 rm -f conftest*
12885 fi
12886
12887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12888   echo "$ac_t""yes" 1>&6
12889     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12890   cat >> confdefs.h <<EOF
12891 #define $ac_tr_func 1
12892 EOF
12893  
12894 else
12895   echo "$ac_t""no" 1>&6
12896 fi
12897 done
12898     
12899   else
12900     
12901   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12902 echo "configure:12903: checking for _expl declaration" >&5
12903   if test x${glibcpp_cv_func__expl_use+set} != xset; then
12904     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12905   echo $ac_n "(cached) $ac_c" 1>&6
12906 else
12907   
12908       
12909       ac_ext=C
12910 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12911 ac_cpp='$CXXCPP $CPPFLAGS'
12912 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12913 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12914 cross_compiling=$ac_cv_prog_cxx_cross
12915
12916       cat > conftest.$ac_ext <<EOF
12917 #line 12918 "configure"
12918 #include "confdefs.h"
12919 #include <math.h>
12920                       #ifdef HAVE_IEEEFP_H
12921                       #include <ieeefp.h>
12922                       #endif
12923                      
12924 int main() {
12925  _expl(0);
12926 ; return 0; }
12927 EOF
12928 if { (eval echo configure:12929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12929   rm -rf conftest*
12930   glibcpp_cv_func__expl_use=yes
12931 else
12932   echo "configure: failed program was:" >&5
12933   cat conftest.$ac_ext >&5
12934   rm -rf conftest*
12935   glibcpp_cv_func__expl_use=no
12936 fi
12937 rm -f conftest*
12938       ac_ext=c
12939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12940 ac_cpp='$CPP $CPPFLAGS'
12941 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12942 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12943 cross_compiling=$ac_cv_prog_cc_cross
12944
12945     
12946 fi
12947
12948   fi
12949   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12950
12951     if test x$glibcpp_cv_func__expl_use = x"yes"; then
12952       for ac_func in _expl
12953 do
12954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12955 echo "configure:12956: checking for $ac_func" >&5
12956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12957   echo $ac_n "(cached) $ac_c" 1>&6
12958 else
12959   cat > conftest.$ac_ext <<EOF
12960 #line 12961 "configure"
12961 #include "confdefs.h"
12962 /* System header to define __stub macros and hopefully few prototypes,
12963     which can conflict with char $ac_func(); below.  */
12964 #include <assert.h>
12965 /* Override any gcc2 internal prototype to avoid an error.  */
12966 /* We use char because int might match the return type of a gcc2
12967     builtin and then its argument prototype would still apply.  */
12968 char $ac_func();
12969
12970 int main() {
12971
12972 /* The GNU C library defines this for functions which it implements
12973     to always fail with ENOSYS.  Some functions are actually named
12974     something starting with __ and the normal name is an alias.  */
12975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12976 choke me
12977 #else
12978 $ac_func();
12979 #endif
12980
12981 ; return 0; }
12982 EOF
12983 if { (eval echo configure:12984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12984   rm -rf conftest*
12985   eval "ac_cv_func_$ac_func=yes"
12986 else
12987   echo "configure: failed program was:" >&5
12988   cat conftest.$ac_ext >&5
12989   rm -rf conftest*
12990   eval "ac_cv_func_$ac_func=no"
12991 fi
12992 rm -f conftest*
12993 fi
12994
12995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12996   echo "$ac_t""yes" 1>&6
12997     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12998   cat >> confdefs.h <<EOF
12999 #define $ac_tr_func 1
13000 EOF
13001  
13002 else
13003   echo "$ac_t""no" 1>&6
13004 fi
13005 done
13006     
13007     fi
13008   fi
13009
13010   
13011   
13012   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
13013 echo "configure:13014: checking for fabsl declaration" >&5
13014   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
13015     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
13016   echo $ac_n "(cached) $ac_c" 1>&6
13017 else
13018   
13019       
13020       ac_ext=C
13021 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13022 ac_cpp='$CXXCPP $CPPFLAGS'
13023 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13024 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13025 cross_compiling=$ac_cv_prog_cxx_cross
13026
13027       cat > conftest.$ac_ext <<EOF
13028 #line 13029 "configure"
13029 #include "confdefs.h"
13030 #include <math.h>
13031                       #ifdef HAVE_IEEEFP_H
13032                       #include <ieeefp.h>
13033                       #endif
13034                      
13035 int main() {
13036  fabsl(0);
13037 ; return 0; }
13038 EOF
13039 if { (eval echo configure:13040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13040   rm -rf conftest*
13041   glibcpp_cv_func_fabsl_use=yes
13042 else
13043   echo "configure: failed program was:" >&5
13044   cat conftest.$ac_ext >&5
13045   rm -rf conftest*
13046   glibcpp_cv_func_fabsl_use=no
13047 fi
13048 rm -f conftest*
13049       ac_ext=c
13050 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13051 ac_cpp='$CPP $CPPFLAGS'
13052 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13053 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13054 cross_compiling=$ac_cv_prog_cc_cross
13055
13056     
13057 fi
13058
13059   fi
13060   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
13061
13062   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
13063     for ac_func in fabsl
13064 do
13065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13066 echo "configure:13067: checking for $ac_func" >&5
13067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13068   echo $ac_n "(cached) $ac_c" 1>&6
13069 else
13070   cat > conftest.$ac_ext <<EOF
13071 #line 13072 "configure"
13072 #include "confdefs.h"
13073 /* System header to define __stub macros and hopefully few prototypes,
13074     which can conflict with char $ac_func(); below.  */
13075 #include <assert.h>
13076 /* Override any gcc2 internal prototype to avoid an error.  */
13077 /* We use char because int might match the return type of a gcc2
13078     builtin and then its argument prototype would still apply.  */
13079 char $ac_func();
13080
13081 int main() {
13082
13083 /* The GNU C library defines this for functions which it implements
13084     to always fail with ENOSYS.  Some functions are actually named
13085     something starting with __ and the normal name is an alias.  */
13086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13087 choke me
13088 #else
13089 $ac_func();
13090 #endif
13091
13092 ; return 0; }
13093 EOF
13094 if { (eval echo configure:13095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13095   rm -rf conftest*
13096   eval "ac_cv_func_$ac_func=yes"
13097 else
13098   echo "configure: failed program was:" >&5
13099   cat conftest.$ac_ext >&5
13100   rm -rf conftest*
13101   eval "ac_cv_func_$ac_func=no"
13102 fi
13103 rm -f conftest*
13104 fi
13105
13106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13107   echo "$ac_t""yes" 1>&6
13108     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13109   cat >> confdefs.h <<EOF
13110 #define $ac_tr_func 1
13111 EOF
13112  
13113 else
13114   echo "$ac_t""no" 1>&6
13115 fi
13116 done
13117     
13118   else
13119     
13120   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
13121 echo "configure:13122: checking for _fabsl declaration" >&5
13122   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
13123     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
13124   echo $ac_n "(cached) $ac_c" 1>&6
13125 else
13126   
13127       
13128       ac_ext=C
13129 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13130 ac_cpp='$CXXCPP $CPPFLAGS'
13131 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13132 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13133 cross_compiling=$ac_cv_prog_cxx_cross
13134
13135       cat > conftest.$ac_ext <<EOF
13136 #line 13137 "configure"
13137 #include "confdefs.h"
13138 #include <math.h>
13139                       #ifdef HAVE_IEEEFP_H
13140                       #include <ieeefp.h>
13141                       #endif
13142                      
13143 int main() {
13144  _fabsl(0);
13145 ; return 0; }
13146 EOF
13147 if { (eval echo configure:13148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13148   rm -rf conftest*
13149   glibcpp_cv_func__fabsl_use=yes
13150 else
13151   echo "configure: failed program was:" >&5
13152   cat conftest.$ac_ext >&5
13153   rm -rf conftest*
13154   glibcpp_cv_func__fabsl_use=no
13155 fi
13156 rm -f conftest*
13157       ac_ext=c
13158 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13159 ac_cpp='$CPP $CPPFLAGS'
13160 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13161 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13162 cross_compiling=$ac_cv_prog_cc_cross
13163
13164     
13165 fi
13166
13167   fi
13168   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
13169
13170     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
13171       for ac_func in _fabsl
13172 do
13173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13174 echo "configure:13175: checking for $ac_func" >&5
13175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13176   echo $ac_n "(cached) $ac_c" 1>&6
13177 else
13178   cat > conftest.$ac_ext <<EOF
13179 #line 13180 "configure"
13180 #include "confdefs.h"
13181 /* System header to define __stub macros and hopefully few prototypes,
13182     which can conflict with char $ac_func(); below.  */
13183 #include <assert.h>
13184 /* Override any gcc2 internal prototype to avoid an error.  */
13185 /* We use char because int might match the return type of a gcc2
13186     builtin and then its argument prototype would still apply.  */
13187 char $ac_func();
13188
13189 int main() {
13190
13191 /* The GNU C library defines this for functions which it implements
13192     to always fail with ENOSYS.  Some functions are actually named
13193     something starting with __ and the normal name is an alias.  */
13194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13195 choke me
13196 #else
13197 $ac_func();
13198 #endif
13199
13200 ; return 0; }
13201 EOF
13202 if { (eval echo configure:13203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13203   rm -rf conftest*
13204   eval "ac_cv_func_$ac_func=yes"
13205 else
13206   echo "configure: failed program was:" >&5
13207   cat conftest.$ac_ext >&5
13208   rm -rf conftest*
13209   eval "ac_cv_func_$ac_func=no"
13210 fi
13211 rm -f conftest*
13212 fi
13213
13214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13215   echo "$ac_t""yes" 1>&6
13216     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13217   cat >> confdefs.h <<EOF
13218 #define $ac_tr_func 1
13219 EOF
13220  
13221 else
13222   echo "$ac_t""no" 1>&6
13223 fi
13224 done
13225     
13226     fi
13227   fi
13228
13229   
13230   
13231   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
13232 echo "configure:13233: checking for fmodl declaration" >&5
13233   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
13234     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
13235   echo $ac_n "(cached) $ac_c" 1>&6
13236 else
13237   
13238       
13239       ac_ext=C
13240 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13241 ac_cpp='$CXXCPP $CPPFLAGS'
13242 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13243 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13244 cross_compiling=$ac_cv_prog_cxx_cross
13245
13246       cat > conftest.$ac_ext <<EOF
13247 #line 13248 "configure"
13248 #include "confdefs.h"
13249 #include <math.h>
13250 int main() {
13251  fmodl(0, 0);
13252 ; return 0; }
13253 EOF
13254 if { (eval echo configure:13255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13255   rm -rf conftest*
13256   glibcpp_cv_func_fmodl_use=yes
13257 else
13258   echo "configure: failed program was:" >&5
13259   cat conftest.$ac_ext >&5
13260   rm -rf conftest*
13261   glibcpp_cv_func_fmodl_use=no
13262 fi
13263 rm -f conftest*
13264       ac_ext=c
13265 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13266 ac_cpp='$CPP $CPPFLAGS'
13267 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13268 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13269 cross_compiling=$ac_cv_prog_cc_cross
13270
13271     
13272 fi
13273
13274   fi
13275   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
13276
13277   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
13278     for ac_func in fmodl
13279 do
13280 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13281 echo "configure:13282: checking for $ac_func" >&5
13282 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13283   echo $ac_n "(cached) $ac_c" 1>&6
13284 else
13285   cat > conftest.$ac_ext <<EOF
13286 #line 13287 "configure"
13287 #include "confdefs.h"
13288 /* System header to define __stub macros and hopefully few prototypes,
13289     which can conflict with char $ac_func(); below.  */
13290 #include <assert.h>
13291 /* Override any gcc2 internal prototype to avoid an error.  */
13292 /* We use char because int might match the return type of a gcc2
13293     builtin and then its argument prototype would still apply.  */
13294 char $ac_func();
13295
13296 int main() {
13297
13298 /* The GNU C library defines this for functions which it implements
13299     to always fail with ENOSYS.  Some functions are actually named
13300     something starting with __ and the normal name is an alias.  */
13301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13302 choke me
13303 #else
13304 $ac_func();
13305 #endif
13306
13307 ; return 0; }
13308 EOF
13309 if { (eval echo configure:13310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13310   rm -rf conftest*
13311   eval "ac_cv_func_$ac_func=yes"
13312 else
13313   echo "configure: failed program was:" >&5
13314   cat conftest.$ac_ext >&5
13315   rm -rf conftest*
13316   eval "ac_cv_func_$ac_func=no"
13317 fi
13318 rm -f conftest*
13319 fi
13320
13321 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13322   echo "$ac_t""yes" 1>&6
13323     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13324   cat >> confdefs.h <<EOF
13325 #define $ac_tr_func 1
13326 EOF
13327  
13328 else
13329   echo "$ac_t""no" 1>&6
13330 fi
13331 done
13332     
13333   else
13334     
13335   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
13336 echo "configure:13337: checking for _fmodl declaration" >&5
13337   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
13338     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
13339   echo $ac_n "(cached) $ac_c" 1>&6
13340 else
13341   
13342       
13343       ac_ext=C
13344 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13345 ac_cpp='$CXXCPP $CPPFLAGS'
13346 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13347 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13348 cross_compiling=$ac_cv_prog_cxx_cross
13349
13350       cat > conftest.$ac_ext <<EOF
13351 #line 13352 "configure"
13352 #include "confdefs.h"
13353 #include <math.h>
13354 int main() {
13355  _fmodl(0, 0);
13356 ; return 0; }
13357 EOF
13358 if { (eval echo configure:13359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13359   rm -rf conftest*
13360   glibcpp_cv_func__fmodl_use=yes
13361 else
13362   echo "configure: failed program was:" >&5
13363   cat conftest.$ac_ext >&5
13364   rm -rf conftest*
13365   glibcpp_cv_func__fmodl_use=no
13366 fi
13367 rm -f conftest*
13368       ac_ext=c
13369 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13370 ac_cpp='$CPP $CPPFLAGS'
13371 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13372 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13373 cross_compiling=$ac_cv_prog_cc_cross
13374
13375     
13376 fi
13377
13378   fi
13379   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
13380
13381     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
13382       for ac_func in _fmodl
13383 do
13384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13385 echo "configure:13386: checking for $ac_func" >&5
13386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13387   echo $ac_n "(cached) $ac_c" 1>&6
13388 else
13389   cat > conftest.$ac_ext <<EOF
13390 #line 13391 "configure"
13391 #include "confdefs.h"
13392 /* System header to define __stub macros and hopefully few prototypes,
13393     which can conflict with char $ac_func(); below.  */
13394 #include <assert.h>
13395 /* Override any gcc2 internal prototype to avoid an error.  */
13396 /* We use char because int might match the return type of a gcc2
13397     builtin and then its argument prototype would still apply.  */
13398 char $ac_func();
13399
13400 int main() {
13401
13402 /* The GNU C library defines this for functions which it implements
13403     to always fail with ENOSYS.  Some functions are actually named
13404     something starting with __ and the normal name is an alias.  */
13405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13406 choke me
13407 #else
13408 $ac_func();
13409 #endif
13410
13411 ; return 0; }
13412 EOF
13413 if { (eval echo configure:13414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13414   rm -rf conftest*
13415   eval "ac_cv_func_$ac_func=yes"
13416 else
13417   echo "configure: failed program was:" >&5
13418   cat conftest.$ac_ext >&5
13419   rm -rf conftest*
13420   eval "ac_cv_func_$ac_func=no"
13421 fi
13422 rm -f conftest*
13423 fi
13424
13425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13426   echo "$ac_t""yes" 1>&6
13427     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13428   cat >> confdefs.h <<EOF
13429 #define $ac_tr_func 1
13430 EOF
13431  
13432 else
13433   echo "$ac_t""no" 1>&6
13434 fi
13435 done
13436     
13437     fi
13438   fi
13439
13440   
13441   
13442   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
13443 echo "configure:13444: checking for frexpl declaration" >&5
13444   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
13445     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
13446   echo $ac_n "(cached) $ac_c" 1>&6
13447 else
13448   
13449       
13450       ac_ext=C
13451 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13452 ac_cpp='$CXXCPP $CPPFLAGS'
13453 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13454 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13455 cross_compiling=$ac_cv_prog_cxx_cross
13456
13457       cat > conftest.$ac_ext <<EOF
13458 #line 13459 "configure"
13459 #include "confdefs.h"
13460 #include <math.h>
13461 int main() {
13462  frexpl(0, 0);
13463 ; return 0; }
13464 EOF
13465 if { (eval echo configure:13466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13466   rm -rf conftest*
13467   glibcpp_cv_func_frexpl_use=yes
13468 else
13469   echo "configure: failed program was:" >&5
13470   cat conftest.$ac_ext >&5
13471   rm -rf conftest*
13472   glibcpp_cv_func_frexpl_use=no
13473 fi
13474 rm -f conftest*
13475       ac_ext=c
13476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13477 ac_cpp='$CPP $CPPFLAGS'
13478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13480 cross_compiling=$ac_cv_prog_cc_cross
13481
13482     
13483 fi
13484
13485   fi
13486   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
13487
13488   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
13489     for ac_func in frexpl
13490 do
13491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13492 echo "configure:13493: checking for $ac_func" >&5
13493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13494   echo $ac_n "(cached) $ac_c" 1>&6
13495 else
13496   cat > conftest.$ac_ext <<EOF
13497 #line 13498 "configure"
13498 #include "confdefs.h"
13499 /* System header to define __stub macros and hopefully few prototypes,
13500     which can conflict with char $ac_func(); below.  */
13501 #include <assert.h>
13502 /* Override any gcc2 internal prototype to avoid an error.  */
13503 /* We use char because int might match the return type of a gcc2
13504     builtin and then its argument prototype would still apply.  */
13505 char $ac_func();
13506
13507 int main() {
13508
13509 /* The GNU C library defines this for functions which it implements
13510     to always fail with ENOSYS.  Some functions are actually named
13511     something starting with __ and the normal name is an alias.  */
13512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13513 choke me
13514 #else
13515 $ac_func();
13516 #endif
13517
13518 ; return 0; }
13519 EOF
13520 if { (eval echo configure:13521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13521   rm -rf conftest*
13522   eval "ac_cv_func_$ac_func=yes"
13523 else
13524   echo "configure: failed program was:" >&5
13525   cat conftest.$ac_ext >&5
13526   rm -rf conftest*
13527   eval "ac_cv_func_$ac_func=no"
13528 fi
13529 rm -f conftest*
13530 fi
13531
13532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13533   echo "$ac_t""yes" 1>&6
13534     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13535   cat >> confdefs.h <<EOF
13536 #define $ac_tr_func 1
13537 EOF
13538  
13539 else
13540   echo "$ac_t""no" 1>&6
13541 fi
13542 done
13543     
13544   else
13545     
13546   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
13547 echo "configure:13548: checking for _frexpl declaration" >&5
13548   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
13549     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
13550   echo $ac_n "(cached) $ac_c" 1>&6
13551 else
13552   
13553       
13554       ac_ext=C
13555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13556 ac_cpp='$CXXCPP $CPPFLAGS'
13557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13559 cross_compiling=$ac_cv_prog_cxx_cross
13560
13561       cat > conftest.$ac_ext <<EOF
13562 #line 13563 "configure"
13563 #include "confdefs.h"
13564 #include <math.h>
13565 int main() {
13566  _frexpl(0, 0);
13567 ; return 0; }
13568 EOF
13569 if { (eval echo configure:13570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13570   rm -rf conftest*
13571   glibcpp_cv_func__frexpl_use=yes
13572 else
13573   echo "configure: failed program was:" >&5
13574   cat conftest.$ac_ext >&5
13575   rm -rf conftest*
13576   glibcpp_cv_func__frexpl_use=no
13577 fi
13578 rm -f conftest*
13579       ac_ext=c
13580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13581 ac_cpp='$CPP $CPPFLAGS'
13582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13584 cross_compiling=$ac_cv_prog_cc_cross
13585
13586     
13587 fi
13588
13589   fi
13590   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
13591
13592     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
13593       for ac_func in _frexpl
13594 do
13595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13596 echo "configure:13597: checking for $ac_func" >&5
13597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13598   echo $ac_n "(cached) $ac_c" 1>&6
13599 else
13600   cat > conftest.$ac_ext <<EOF
13601 #line 13602 "configure"
13602 #include "confdefs.h"
13603 /* System header to define __stub macros and hopefully few prototypes,
13604     which can conflict with char $ac_func(); below.  */
13605 #include <assert.h>
13606 /* Override any gcc2 internal prototype to avoid an error.  */
13607 /* We use char because int might match the return type of a gcc2
13608     builtin and then its argument prototype would still apply.  */
13609 char $ac_func();
13610
13611 int main() {
13612
13613 /* The GNU C library defines this for functions which it implements
13614     to always fail with ENOSYS.  Some functions are actually named
13615     something starting with __ and the normal name is an alias.  */
13616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13617 choke me
13618 #else
13619 $ac_func();
13620 #endif
13621
13622 ; return 0; }
13623 EOF
13624 if { (eval echo configure:13625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13625   rm -rf conftest*
13626   eval "ac_cv_func_$ac_func=yes"
13627 else
13628   echo "configure: failed program was:" >&5
13629   cat conftest.$ac_ext >&5
13630   rm -rf conftest*
13631   eval "ac_cv_func_$ac_func=no"
13632 fi
13633 rm -f conftest*
13634 fi
13635
13636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13637   echo "$ac_t""yes" 1>&6
13638     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13639   cat >> confdefs.h <<EOF
13640 #define $ac_tr_func 1
13641 EOF
13642  
13643 else
13644   echo "$ac_t""no" 1>&6
13645 fi
13646 done
13647     
13648     fi
13649   fi
13650
13651   
13652   
13653   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
13654 echo "configure:13655: checking for hypotl declaration" >&5
13655   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
13656     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
13657   echo $ac_n "(cached) $ac_c" 1>&6
13658 else
13659   
13660       
13661       ac_ext=C
13662 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13663 ac_cpp='$CXXCPP $CPPFLAGS'
13664 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13665 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13666 cross_compiling=$ac_cv_prog_cxx_cross
13667
13668       cat > conftest.$ac_ext <<EOF
13669 #line 13670 "configure"
13670 #include "confdefs.h"
13671 #include <math.h>
13672 int main() {
13673  hypotl(0, 0);
13674 ; return 0; }
13675 EOF
13676 if { (eval echo configure:13677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13677   rm -rf conftest*
13678   glibcpp_cv_func_hypotl_use=yes
13679 else
13680   echo "configure: failed program was:" >&5
13681   cat conftest.$ac_ext >&5
13682   rm -rf conftest*
13683   glibcpp_cv_func_hypotl_use=no
13684 fi
13685 rm -f conftest*
13686       ac_ext=c
13687 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13688 ac_cpp='$CPP $CPPFLAGS'
13689 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13690 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13691 cross_compiling=$ac_cv_prog_cc_cross
13692
13693     
13694 fi
13695
13696   fi
13697   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
13698
13699   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
13700     for ac_func in hypotl
13701 do
13702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13703 echo "configure:13704: checking for $ac_func" >&5
13704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13705   echo $ac_n "(cached) $ac_c" 1>&6
13706 else
13707   cat > conftest.$ac_ext <<EOF
13708 #line 13709 "configure"
13709 #include "confdefs.h"
13710 /* System header to define __stub macros and hopefully few prototypes,
13711     which can conflict with char $ac_func(); below.  */
13712 #include <assert.h>
13713 /* Override any gcc2 internal prototype to avoid an error.  */
13714 /* We use char because int might match the return type of a gcc2
13715     builtin and then its argument prototype would still apply.  */
13716 char $ac_func();
13717
13718 int main() {
13719
13720 /* The GNU C library defines this for functions which it implements
13721     to always fail with ENOSYS.  Some functions are actually named
13722     something starting with __ and the normal name is an alias.  */
13723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13724 choke me
13725 #else
13726 $ac_func();
13727 #endif
13728
13729 ; return 0; }
13730 EOF
13731 if { (eval echo configure:13732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13732   rm -rf conftest*
13733   eval "ac_cv_func_$ac_func=yes"
13734 else
13735   echo "configure: failed program was:" >&5
13736   cat conftest.$ac_ext >&5
13737   rm -rf conftest*
13738   eval "ac_cv_func_$ac_func=no"
13739 fi
13740 rm -f conftest*
13741 fi
13742
13743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13744   echo "$ac_t""yes" 1>&6
13745     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13746   cat >> confdefs.h <<EOF
13747 #define $ac_tr_func 1
13748 EOF
13749  
13750 else
13751   echo "$ac_t""no" 1>&6
13752 fi
13753 done
13754     
13755   else
13756     
13757   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
13758 echo "configure:13759: checking for _hypotl declaration" >&5
13759   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
13760     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
13761   echo $ac_n "(cached) $ac_c" 1>&6
13762 else
13763   
13764       
13765       ac_ext=C
13766 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13767 ac_cpp='$CXXCPP $CPPFLAGS'
13768 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13769 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13770 cross_compiling=$ac_cv_prog_cxx_cross
13771
13772       cat > conftest.$ac_ext <<EOF
13773 #line 13774 "configure"
13774 #include "confdefs.h"
13775 #include <math.h>
13776 int main() {
13777  _hypotl(0, 0);
13778 ; return 0; }
13779 EOF
13780 if { (eval echo configure:13781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13781   rm -rf conftest*
13782   glibcpp_cv_func__hypotl_use=yes
13783 else
13784   echo "configure: failed program was:" >&5
13785   cat conftest.$ac_ext >&5
13786   rm -rf conftest*
13787   glibcpp_cv_func__hypotl_use=no
13788 fi
13789 rm -f conftest*
13790       ac_ext=c
13791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13792 ac_cpp='$CPP $CPPFLAGS'
13793 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13794 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13795 cross_compiling=$ac_cv_prog_cc_cross
13796
13797     
13798 fi
13799
13800   fi
13801   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
13802
13803     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
13804       for ac_func in _hypotl
13805 do
13806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13807 echo "configure:13808: checking for $ac_func" >&5
13808 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13809   echo $ac_n "(cached) $ac_c" 1>&6
13810 else
13811   cat > conftest.$ac_ext <<EOF
13812 #line 13813 "configure"
13813 #include "confdefs.h"
13814 /* System header to define __stub macros and hopefully few prototypes,
13815     which can conflict with char $ac_func(); below.  */
13816 #include <assert.h>
13817 /* Override any gcc2 internal prototype to avoid an error.  */
13818 /* We use char because int might match the return type of a gcc2
13819     builtin and then its argument prototype would still apply.  */
13820 char $ac_func();
13821
13822 int main() {
13823
13824 /* The GNU C library defines this for functions which it implements
13825     to always fail with ENOSYS.  Some functions are actually named
13826     something starting with __ and the normal name is an alias.  */
13827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13828 choke me
13829 #else
13830 $ac_func();
13831 #endif
13832
13833 ; return 0; }
13834 EOF
13835 if { (eval echo configure:13836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13836   rm -rf conftest*
13837   eval "ac_cv_func_$ac_func=yes"
13838 else
13839   echo "configure: failed program was:" >&5
13840   cat conftest.$ac_ext >&5
13841   rm -rf conftest*
13842   eval "ac_cv_func_$ac_func=no"
13843 fi
13844 rm -f conftest*
13845 fi
13846
13847 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13848   echo "$ac_t""yes" 1>&6
13849     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13850   cat >> confdefs.h <<EOF
13851 #define $ac_tr_func 1
13852 EOF
13853  
13854 else
13855   echo "$ac_t""no" 1>&6
13856 fi
13857 done
13858     
13859     fi
13860   fi
13861
13862   
13863   
13864   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
13865 echo "configure:13866: checking for ldexpl declaration" >&5
13866   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
13867     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
13868   echo $ac_n "(cached) $ac_c" 1>&6
13869 else
13870   
13871       
13872       ac_ext=C
13873 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13874 ac_cpp='$CXXCPP $CPPFLAGS'
13875 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13876 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13877 cross_compiling=$ac_cv_prog_cxx_cross
13878
13879       cat > conftest.$ac_ext <<EOF
13880 #line 13881 "configure"
13881 #include "confdefs.h"
13882 #include <math.h>
13883 int main() {
13884  ldexpl(0, 0);
13885 ; return 0; }
13886 EOF
13887 if { (eval echo configure:13888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13888   rm -rf conftest*
13889   glibcpp_cv_func_ldexpl_use=yes
13890 else
13891   echo "configure: failed program was:" >&5
13892   cat conftest.$ac_ext >&5
13893   rm -rf conftest*
13894   glibcpp_cv_func_ldexpl_use=no
13895 fi
13896 rm -f conftest*
13897       ac_ext=c
13898 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13899 ac_cpp='$CPP $CPPFLAGS'
13900 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13901 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13902 cross_compiling=$ac_cv_prog_cc_cross
13903
13904     
13905 fi
13906
13907   fi
13908   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
13909
13910   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
13911     for ac_func in ldexpl
13912 do
13913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13914 echo "configure:13915: checking for $ac_func" >&5
13915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13916   echo $ac_n "(cached) $ac_c" 1>&6
13917 else
13918   cat > conftest.$ac_ext <<EOF
13919 #line 13920 "configure"
13920 #include "confdefs.h"
13921 /* System header to define __stub macros and hopefully few prototypes,
13922     which can conflict with char $ac_func(); below.  */
13923 #include <assert.h>
13924 /* Override any gcc2 internal prototype to avoid an error.  */
13925 /* We use char because int might match the return type of a gcc2
13926     builtin and then its argument prototype would still apply.  */
13927 char $ac_func();
13928
13929 int main() {
13930
13931 /* The GNU C library defines this for functions which it implements
13932     to always fail with ENOSYS.  Some functions are actually named
13933     something starting with __ and the normal name is an alias.  */
13934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13935 choke me
13936 #else
13937 $ac_func();
13938 #endif
13939
13940 ; return 0; }
13941 EOF
13942 if { (eval echo configure:13943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13943   rm -rf conftest*
13944   eval "ac_cv_func_$ac_func=yes"
13945 else
13946   echo "configure: failed program was:" >&5
13947   cat conftest.$ac_ext >&5
13948   rm -rf conftest*
13949   eval "ac_cv_func_$ac_func=no"
13950 fi
13951 rm -f conftest*
13952 fi
13953
13954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13955   echo "$ac_t""yes" 1>&6
13956     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13957   cat >> confdefs.h <<EOF
13958 #define $ac_tr_func 1
13959 EOF
13960  
13961 else
13962   echo "$ac_t""no" 1>&6
13963 fi
13964 done
13965     
13966   else
13967     
13968   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
13969 echo "configure:13970: checking for _ldexpl declaration" >&5
13970   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
13971     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
13972   echo $ac_n "(cached) $ac_c" 1>&6
13973 else
13974   
13975       
13976       ac_ext=C
13977 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13978 ac_cpp='$CXXCPP $CPPFLAGS'
13979 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13980 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13981 cross_compiling=$ac_cv_prog_cxx_cross
13982
13983       cat > conftest.$ac_ext <<EOF
13984 #line 13985 "configure"
13985 #include "confdefs.h"
13986 #include <math.h>
13987 int main() {
13988  _ldexpl(0, 0);
13989 ; return 0; }
13990 EOF
13991 if { (eval echo configure:13992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13992   rm -rf conftest*
13993   glibcpp_cv_func__ldexpl_use=yes
13994 else
13995   echo "configure: failed program was:" >&5
13996   cat conftest.$ac_ext >&5
13997   rm -rf conftest*
13998   glibcpp_cv_func__ldexpl_use=no
13999 fi
14000 rm -f conftest*
14001       ac_ext=c
14002 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14003 ac_cpp='$CPP $CPPFLAGS'
14004 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14005 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14006 cross_compiling=$ac_cv_prog_cc_cross
14007
14008     
14009 fi
14010
14011   fi
14012   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
14013
14014     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
14015       for ac_func in _ldexpl
14016 do
14017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14018 echo "configure:14019: checking for $ac_func" >&5
14019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14020   echo $ac_n "(cached) $ac_c" 1>&6
14021 else
14022   cat > conftest.$ac_ext <<EOF
14023 #line 14024 "configure"
14024 #include "confdefs.h"
14025 /* System header to define __stub macros and hopefully few prototypes,
14026     which can conflict with char $ac_func(); below.  */
14027 #include <assert.h>
14028 /* Override any gcc2 internal prototype to avoid an error.  */
14029 /* We use char because int might match the return type of a gcc2
14030     builtin and then its argument prototype would still apply.  */
14031 char $ac_func();
14032
14033 int main() {
14034
14035 /* The GNU C library defines this for functions which it implements
14036     to always fail with ENOSYS.  Some functions are actually named
14037     something starting with __ and the normal name is an alias.  */
14038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14039 choke me
14040 #else
14041 $ac_func();
14042 #endif
14043
14044 ; return 0; }
14045 EOF
14046 if { (eval echo configure:14047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14047   rm -rf conftest*
14048   eval "ac_cv_func_$ac_func=yes"
14049 else
14050   echo "configure: failed program was:" >&5
14051   cat conftest.$ac_ext >&5
14052   rm -rf conftest*
14053   eval "ac_cv_func_$ac_func=no"
14054 fi
14055 rm -f conftest*
14056 fi
14057
14058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14059   echo "$ac_t""yes" 1>&6
14060     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14061   cat >> confdefs.h <<EOF
14062 #define $ac_tr_func 1
14063 EOF
14064  
14065 else
14066   echo "$ac_t""no" 1>&6
14067 fi
14068 done
14069     
14070     fi
14071   fi
14072
14073   
14074   
14075   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
14076 echo "configure:14077: checking for logl declaration" >&5
14077   if test x${glibcpp_cv_func_logl_use+set} != xset; then
14078     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
14079   echo $ac_n "(cached) $ac_c" 1>&6
14080 else
14081   
14082       
14083       ac_ext=C
14084 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14085 ac_cpp='$CXXCPP $CPPFLAGS'
14086 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14087 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14088 cross_compiling=$ac_cv_prog_cxx_cross
14089
14090       cat > conftest.$ac_ext <<EOF
14091 #line 14092 "configure"
14092 #include "confdefs.h"
14093 #include <math.h>
14094                       #ifdef HAVE_IEEEFP_H
14095                       #include <ieeefp.h>
14096                       #endif
14097                      
14098 int main() {
14099  logl(0);
14100 ; return 0; }
14101 EOF
14102 if { (eval echo configure:14103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14103   rm -rf conftest*
14104   glibcpp_cv_func_logl_use=yes
14105 else
14106   echo "configure: failed program was:" >&5
14107   cat conftest.$ac_ext >&5
14108   rm -rf conftest*
14109   glibcpp_cv_func_logl_use=no
14110 fi
14111 rm -f conftest*
14112       ac_ext=c
14113 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14114 ac_cpp='$CPP $CPPFLAGS'
14115 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14116 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14117 cross_compiling=$ac_cv_prog_cc_cross
14118
14119     
14120 fi
14121
14122   fi
14123   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
14124
14125   if test x$glibcpp_cv_func_logl_use = x"yes"; then
14126     for ac_func in logl
14127 do
14128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14129 echo "configure:14130: checking for $ac_func" >&5
14130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14131   echo $ac_n "(cached) $ac_c" 1>&6
14132 else
14133   cat > conftest.$ac_ext <<EOF
14134 #line 14135 "configure"
14135 #include "confdefs.h"
14136 /* System header to define __stub macros and hopefully few prototypes,
14137     which can conflict with char $ac_func(); below.  */
14138 #include <assert.h>
14139 /* Override any gcc2 internal prototype to avoid an error.  */
14140 /* We use char because int might match the return type of a gcc2
14141     builtin and then its argument prototype would still apply.  */
14142 char $ac_func();
14143
14144 int main() {
14145
14146 /* The GNU C library defines this for functions which it implements
14147     to always fail with ENOSYS.  Some functions are actually named
14148     something starting with __ and the normal name is an alias.  */
14149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14150 choke me
14151 #else
14152 $ac_func();
14153 #endif
14154
14155 ; return 0; }
14156 EOF
14157 if { (eval echo configure:14158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14158   rm -rf conftest*
14159   eval "ac_cv_func_$ac_func=yes"
14160 else
14161   echo "configure: failed program was:" >&5
14162   cat conftest.$ac_ext >&5
14163   rm -rf conftest*
14164   eval "ac_cv_func_$ac_func=no"
14165 fi
14166 rm -f conftest*
14167 fi
14168
14169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14170   echo "$ac_t""yes" 1>&6
14171     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14172   cat >> confdefs.h <<EOF
14173 #define $ac_tr_func 1
14174 EOF
14175  
14176 else
14177   echo "$ac_t""no" 1>&6
14178 fi
14179 done
14180     
14181   else
14182     
14183   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
14184 echo "configure:14185: checking for _logl declaration" >&5
14185   if test x${glibcpp_cv_func__logl_use+set} != xset; then
14186     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
14187   echo $ac_n "(cached) $ac_c" 1>&6
14188 else
14189   
14190       
14191       ac_ext=C
14192 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14193 ac_cpp='$CXXCPP $CPPFLAGS'
14194 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14195 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14196 cross_compiling=$ac_cv_prog_cxx_cross
14197
14198       cat > conftest.$ac_ext <<EOF
14199 #line 14200 "configure"
14200 #include "confdefs.h"
14201 #include <math.h>
14202                       #ifdef HAVE_IEEEFP_H
14203                       #include <ieeefp.h>
14204                       #endif
14205                      
14206 int main() {
14207  _logl(0);
14208 ; return 0; }
14209 EOF
14210 if { (eval echo configure:14211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14211   rm -rf conftest*
14212   glibcpp_cv_func__logl_use=yes
14213 else
14214   echo "configure: failed program was:" >&5
14215   cat conftest.$ac_ext >&5
14216   rm -rf conftest*
14217   glibcpp_cv_func__logl_use=no
14218 fi
14219 rm -f conftest*
14220       ac_ext=c
14221 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14222 ac_cpp='$CPP $CPPFLAGS'
14223 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14224 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14225 cross_compiling=$ac_cv_prog_cc_cross
14226
14227     
14228 fi
14229
14230   fi
14231   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
14232
14233     if test x$glibcpp_cv_func__logl_use = x"yes"; then
14234       for ac_func in _logl
14235 do
14236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14237 echo "configure:14238: checking for $ac_func" >&5
14238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14239   echo $ac_n "(cached) $ac_c" 1>&6
14240 else
14241   cat > conftest.$ac_ext <<EOF
14242 #line 14243 "configure"
14243 #include "confdefs.h"
14244 /* System header to define __stub macros and hopefully few prototypes,
14245     which can conflict with char $ac_func(); below.  */
14246 #include <assert.h>
14247 /* Override any gcc2 internal prototype to avoid an error.  */
14248 /* We use char because int might match the return type of a gcc2
14249     builtin and then its argument prototype would still apply.  */
14250 char $ac_func();
14251
14252 int main() {
14253
14254 /* The GNU C library defines this for functions which it implements
14255     to always fail with ENOSYS.  Some functions are actually named
14256     something starting with __ and the normal name is an alias.  */
14257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14258 choke me
14259 #else
14260 $ac_func();
14261 #endif
14262
14263 ; return 0; }
14264 EOF
14265 if { (eval echo configure:14266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14266   rm -rf conftest*
14267   eval "ac_cv_func_$ac_func=yes"
14268 else
14269   echo "configure: failed program was:" >&5
14270   cat conftest.$ac_ext >&5
14271   rm -rf conftest*
14272   eval "ac_cv_func_$ac_func=no"
14273 fi
14274 rm -f conftest*
14275 fi
14276
14277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14278   echo "$ac_t""yes" 1>&6
14279     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14280   cat >> confdefs.h <<EOF
14281 #define $ac_tr_func 1
14282 EOF
14283  
14284 else
14285   echo "$ac_t""no" 1>&6
14286 fi
14287 done
14288     
14289     fi
14290   fi
14291
14292   
14293   
14294   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
14295 echo "configure:14296: checking for log10l declaration" >&5
14296   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
14297     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
14298   echo $ac_n "(cached) $ac_c" 1>&6
14299 else
14300   
14301       
14302       ac_ext=C
14303 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14304 ac_cpp='$CXXCPP $CPPFLAGS'
14305 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14306 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14307 cross_compiling=$ac_cv_prog_cxx_cross
14308
14309       cat > conftest.$ac_ext <<EOF
14310 #line 14311 "configure"
14311 #include "confdefs.h"
14312 #include <math.h>
14313                       #ifdef HAVE_IEEEFP_H
14314                       #include <ieeefp.h>
14315                       #endif
14316                      
14317 int main() {
14318  log10l(0);
14319 ; return 0; }
14320 EOF
14321 if { (eval echo configure:14322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14322   rm -rf conftest*
14323   glibcpp_cv_func_log10l_use=yes
14324 else
14325   echo "configure: failed program was:" >&5
14326   cat conftest.$ac_ext >&5
14327   rm -rf conftest*
14328   glibcpp_cv_func_log10l_use=no
14329 fi
14330 rm -f conftest*
14331       ac_ext=c
14332 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14333 ac_cpp='$CPP $CPPFLAGS'
14334 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14335 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14336 cross_compiling=$ac_cv_prog_cc_cross
14337
14338     
14339 fi
14340
14341   fi
14342   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
14343
14344   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
14345     for ac_func in log10l
14346 do
14347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14348 echo "configure:14349: checking for $ac_func" >&5
14349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14350   echo $ac_n "(cached) $ac_c" 1>&6
14351 else
14352   cat > conftest.$ac_ext <<EOF
14353 #line 14354 "configure"
14354 #include "confdefs.h"
14355 /* System header to define __stub macros and hopefully few prototypes,
14356     which can conflict with char $ac_func(); below.  */
14357 #include <assert.h>
14358 /* Override any gcc2 internal prototype to avoid an error.  */
14359 /* We use char because int might match the return type of a gcc2
14360     builtin and then its argument prototype would still apply.  */
14361 char $ac_func();
14362
14363 int main() {
14364
14365 /* The GNU C library defines this for functions which it implements
14366     to always fail with ENOSYS.  Some functions are actually named
14367     something starting with __ and the normal name is an alias.  */
14368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14369 choke me
14370 #else
14371 $ac_func();
14372 #endif
14373
14374 ; return 0; }
14375 EOF
14376 if { (eval echo configure:14377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14377   rm -rf conftest*
14378   eval "ac_cv_func_$ac_func=yes"
14379 else
14380   echo "configure: failed program was:" >&5
14381   cat conftest.$ac_ext >&5
14382   rm -rf conftest*
14383   eval "ac_cv_func_$ac_func=no"
14384 fi
14385 rm -f conftest*
14386 fi
14387
14388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14389   echo "$ac_t""yes" 1>&6
14390     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14391   cat >> confdefs.h <<EOF
14392 #define $ac_tr_func 1
14393 EOF
14394  
14395 else
14396   echo "$ac_t""no" 1>&6
14397 fi
14398 done
14399     
14400   else
14401     
14402   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
14403 echo "configure:14404: checking for _log10l declaration" >&5
14404   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
14405     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
14406   echo $ac_n "(cached) $ac_c" 1>&6
14407 else
14408   
14409       
14410       ac_ext=C
14411 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14412 ac_cpp='$CXXCPP $CPPFLAGS'
14413 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14414 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14415 cross_compiling=$ac_cv_prog_cxx_cross
14416
14417       cat > conftest.$ac_ext <<EOF
14418 #line 14419 "configure"
14419 #include "confdefs.h"
14420 #include <math.h>
14421                       #ifdef HAVE_IEEEFP_H
14422                       #include <ieeefp.h>
14423                       #endif
14424                      
14425 int main() {
14426  _log10l(0);
14427 ; return 0; }
14428 EOF
14429 if { (eval echo configure:14430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14430   rm -rf conftest*
14431   glibcpp_cv_func__log10l_use=yes
14432 else
14433   echo "configure: failed program was:" >&5
14434   cat conftest.$ac_ext >&5
14435   rm -rf conftest*
14436   glibcpp_cv_func__log10l_use=no
14437 fi
14438 rm -f conftest*
14439       ac_ext=c
14440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14441 ac_cpp='$CPP $CPPFLAGS'
14442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14444 cross_compiling=$ac_cv_prog_cc_cross
14445
14446     
14447 fi
14448
14449   fi
14450   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
14451
14452     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
14453       for ac_func in _log10l
14454 do
14455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14456 echo "configure:14457: checking for $ac_func" >&5
14457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14458   echo $ac_n "(cached) $ac_c" 1>&6
14459 else
14460   cat > conftest.$ac_ext <<EOF
14461 #line 14462 "configure"
14462 #include "confdefs.h"
14463 /* System header to define __stub macros and hopefully few prototypes,
14464     which can conflict with char $ac_func(); below.  */
14465 #include <assert.h>
14466 /* Override any gcc2 internal prototype to avoid an error.  */
14467 /* We use char because int might match the return type of a gcc2
14468     builtin and then its argument prototype would still apply.  */
14469 char $ac_func();
14470
14471 int main() {
14472
14473 /* The GNU C library defines this for functions which it implements
14474     to always fail with ENOSYS.  Some functions are actually named
14475     something starting with __ and the normal name is an alias.  */
14476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14477 choke me
14478 #else
14479 $ac_func();
14480 #endif
14481
14482 ; return 0; }
14483 EOF
14484 if { (eval echo configure:14485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14485   rm -rf conftest*
14486   eval "ac_cv_func_$ac_func=yes"
14487 else
14488   echo "configure: failed program was:" >&5
14489   cat conftest.$ac_ext >&5
14490   rm -rf conftest*
14491   eval "ac_cv_func_$ac_func=no"
14492 fi
14493 rm -f conftest*
14494 fi
14495
14496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14497   echo "$ac_t""yes" 1>&6
14498     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14499   cat >> confdefs.h <<EOF
14500 #define $ac_tr_func 1
14501 EOF
14502  
14503 else
14504   echo "$ac_t""no" 1>&6
14505 fi
14506 done
14507     
14508     fi
14509   fi
14510
14511   
14512   
14513   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
14514 echo "configure:14515: checking for modfl declaration" >&5
14515   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
14516     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
14517   echo $ac_n "(cached) $ac_c" 1>&6
14518 else
14519   
14520       
14521       ac_ext=C
14522 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14523 ac_cpp='$CXXCPP $CPPFLAGS'
14524 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14525 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14526 cross_compiling=$ac_cv_prog_cxx_cross
14527
14528       cat > conftest.$ac_ext <<EOF
14529 #line 14530 "configure"
14530 #include "confdefs.h"
14531 #include <math.h>
14532 int main() {
14533  modfl(0, 0);
14534 ; return 0; }
14535 EOF
14536 if { (eval echo configure:14537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14537   rm -rf conftest*
14538   glibcpp_cv_func_modfl_use=yes
14539 else
14540   echo "configure: failed program was:" >&5
14541   cat conftest.$ac_ext >&5
14542   rm -rf conftest*
14543   glibcpp_cv_func_modfl_use=no
14544 fi
14545 rm -f conftest*
14546       ac_ext=c
14547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14548 ac_cpp='$CPP $CPPFLAGS'
14549 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14550 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14551 cross_compiling=$ac_cv_prog_cc_cross
14552
14553     
14554 fi
14555
14556   fi
14557   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
14558
14559   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
14560     for ac_func in modfl
14561 do
14562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14563 echo "configure:14564: checking for $ac_func" >&5
14564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14565   echo $ac_n "(cached) $ac_c" 1>&6
14566 else
14567   cat > conftest.$ac_ext <<EOF
14568 #line 14569 "configure"
14569 #include "confdefs.h"
14570 /* System header to define __stub macros and hopefully few prototypes,
14571     which can conflict with char $ac_func(); below.  */
14572 #include <assert.h>
14573 /* Override any gcc2 internal prototype to avoid an error.  */
14574 /* We use char because int might match the return type of a gcc2
14575     builtin and then its argument prototype would still apply.  */
14576 char $ac_func();
14577
14578 int main() {
14579
14580 /* The GNU C library defines this for functions which it implements
14581     to always fail with ENOSYS.  Some functions are actually named
14582     something starting with __ and the normal name is an alias.  */
14583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14584 choke me
14585 #else
14586 $ac_func();
14587 #endif
14588
14589 ; return 0; }
14590 EOF
14591 if { (eval echo configure:14592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14592   rm -rf conftest*
14593   eval "ac_cv_func_$ac_func=yes"
14594 else
14595   echo "configure: failed program was:" >&5
14596   cat conftest.$ac_ext >&5
14597   rm -rf conftest*
14598   eval "ac_cv_func_$ac_func=no"
14599 fi
14600 rm -f conftest*
14601 fi
14602
14603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14604   echo "$ac_t""yes" 1>&6
14605     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14606   cat >> confdefs.h <<EOF
14607 #define $ac_tr_func 1
14608 EOF
14609  
14610 else
14611   echo "$ac_t""no" 1>&6
14612 fi
14613 done
14614     
14615   else
14616     
14617   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
14618 echo "configure:14619: checking for _modfl declaration" >&5
14619   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
14620     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
14621   echo $ac_n "(cached) $ac_c" 1>&6
14622 else
14623   
14624       
14625       ac_ext=C
14626 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14627 ac_cpp='$CXXCPP $CPPFLAGS'
14628 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14629 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14630 cross_compiling=$ac_cv_prog_cxx_cross
14631
14632       cat > conftest.$ac_ext <<EOF
14633 #line 14634 "configure"
14634 #include "confdefs.h"
14635 #include <math.h>
14636 int main() {
14637  _modfl(0, 0);
14638 ; return 0; }
14639 EOF
14640 if { (eval echo configure:14641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14641   rm -rf conftest*
14642   glibcpp_cv_func__modfl_use=yes
14643 else
14644   echo "configure: failed program was:" >&5
14645   cat conftest.$ac_ext >&5
14646   rm -rf conftest*
14647   glibcpp_cv_func__modfl_use=no
14648 fi
14649 rm -f conftest*
14650       ac_ext=c
14651 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14652 ac_cpp='$CPP $CPPFLAGS'
14653 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14654 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14655 cross_compiling=$ac_cv_prog_cc_cross
14656
14657     
14658 fi
14659
14660   fi
14661   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
14662
14663     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
14664       for ac_func in _modfl
14665 do
14666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14667 echo "configure:14668: checking for $ac_func" >&5
14668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14669   echo $ac_n "(cached) $ac_c" 1>&6
14670 else
14671   cat > conftest.$ac_ext <<EOF
14672 #line 14673 "configure"
14673 #include "confdefs.h"
14674 /* System header to define __stub macros and hopefully few prototypes,
14675     which can conflict with char $ac_func(); below.  */
14676 #include <assert.h>
14677 /* Override any gcc2 internal prototype to avoid an error.  */
14678 /* We use char because int might match the return type of a gcc2
14679     builtin and then its argument prototype would still apply.  */
14680 char $ac_func();
14681
14682 int main() {
14683
14684 /* The GNU C library defines this for functions which it implements
14685     to always fail with ENOSYS.  Some functions are actually named
14686     something starting with __ and the normal name is an alias.  */
14687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14688 choke me
14689 #else
14690 $ac_func();
14691 #endif
14692
14693 ; return 0; }
14694 EOF
14695 if { (eval echo configure:14696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14696   rm -rf conftest*
14697   eval "ac_cv_func_$ac_func=yes"
14698 else
14699   echo "configure: failed program was:" >&5
14700   cat conftest.$ac_ext >&5
14701   rm -rf conftest*
14702   eval "ac_cv_func_$ac_func=no"
14703 fi
14704 rm -f conftest*
14705 fi
14706
14707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14708   echo "$ac_t""yes" 1>&6
14709     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14710   cat >> confdefs.h <<EOF
14711 #define $ac_tr_func 1
14712 EOF
14713  
14714 else
14715   echo "$ac_t""no" 1>&6
14716 fi
14717 done
14718     
14719     fi
14720   fi
14721
14722   
14723   
14724   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
14725 echo "configure:14726: checking for powl declaration" >&5
14726   if test x${glibcpp_cv_func_powl_use+set} != xset; then
14727     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
14728   echo $ac_n "(cached) $ac_c" 1>&6
14729 else
14730   
14731       
14732       ac_ext=C
14733 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14734 ac_cpp='$CXXCPP $CPPFLAGS'
14735 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14736 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14737 cross_compiling=$ac_cv_prog_cxx_cross
14738
14739       cat > conftest.$ac_ext <<EOF
14740 #line 14741 "configure"
14741 #include "confdefs.h"
14742 #include <math.h>
14743 int main() {
14744  powl(0, 0);
14745 ; return 0; }
14746 EOF
14747 if { (eval echo configure:14748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14748   rm -rf conftest*
14749   glibcpp_cv_func_powl_use=yes
14750 else
14751   echo "configure: failed program was:" >&5
14752   cat conftest.$ac_ext >&5
14753   rm -rf conftest*
14754   glibcpp_cv_func_powl_use=no
14755 fi
14756 rm -f conftest*
14757       ac_ext=c
14758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14759 ac_cpp='$CPP $CPPFLAGS'
14760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14762 cross_compiling=$ac_cv_prog_cc_cross
14763
14764     
14765 fi
14766
14767   fi
14768   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
14769
14770   if test x$glibcpp_cv_func_powl_use = x"yes"; then
14771     for ac_func in powl
14772 do
14773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14774 echo "configure:14775: checking for $ac_func" >&5
14775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14776   echo $ac_n "(cached) $ac_c" 1>&6
14777 else
14778   cat > conftest.$ac_ext <<EOF
14779 #line 14780 "configure"
14780 #include "confdefs.h"
14781 /* System header to define __stub macros and hopefully few prototypes,
14782     which can conflict with char $ac_func(); below.  */
14783 #include <assert.h>
14784 /* Override any gcc2 internal prototype to avoid an error.  */
14785 /* We use char because int might match the return type of a gcc2
14786     builtin and then its argument prototype would still apply.  */
14787 char $ac_func();
14788
14789 int main() {
14790
14791 /* The GNU C library defines this for functions which it implements
14792     to always fail with ENOSYS.  Some functions are actually named
14793     something starting with __ and the normal name is an alias.  */
14794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14795 choke me
14796 #else
14797 $ac_func();
14798 #endif
14799
14800 ; return 0; }
14801 EOF
14802 if { (eval echo configure:14803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14803   rm -rf conftest*
14804   eval "ac_cv_func_$ac_func=yes"
14805 else
14806   echo "configure: failed program was:" >&5
14807   cat conftest.$ac_ext >&5
14808   rm -rf conftest*
14809   eval "ac_cv_func_$ac_func=no"
14810 fi
14811 rm -f conftest*
14812 fi
14813
14814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14815   echo "$ac_t""yes" 1>&6
14816     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14817   cat >> confdefs.h <<EOF
14818 #define $ac_tr_func 1
14819 EOF
14820  
14821 else
14822   echo "$ac_t""no" 1>&6
14823 fi
14824 done
14825     
14826   else
14827     
14828   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
14829 echo "configure:14830: checking for _powl declaration" >&5
14830   if test x${glibcpp_cv_func__powl_use+set} != xset; then
14831     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
14832   echo $ac_n "(cached) $ac_c" 1>&6
14833 else
14834   
14835       
14836       ac_ext=C
14837 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14838 ac_cpp='$CXXCPP $CPPFLAGS'
14839 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14840 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14841 cross_compiling=$ac_cv_prog_cxx_cross
14842
14843       cat > conftest.$ac_ext <<EOF
14844 #line 14845 "configure"
14845 #include "confdefs.h"
14846 #include <math.h>
14847 int main() {
14848  _powl(0, 0);
14849 ; return 0; }
14850 EOF
14851 if { (eval echo configure:14852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14852   rm -rf conftest*
14853   glibcpp_cv_func__powl_use=yes
14854 else
14855   echo "configure: failed program was:" >&5
14856   cat conftest.$ac_ext >&5
14857   rm -rf conftest*
14858   glibcpp_cv_func__powl_use=no
14859 fi
14860 rm -f conftest*
14861       ac_ext=c
14862 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14863 ac_cpp='$CPP $CPPFLAGS'
14864 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14865 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14866 cross_compiling=$ac_cv_prog_cc_cross
14867
14868     
14869 fi
14870
14871   fi
14872   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
14873
14874     if test x$glibcpp_cv_func__powl_use = x"yes"; then
14875       for ac_func in _powl
14876 do
14877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14878 echo "configure:14879: checking for $ac_func" >&5
14879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14880   echo $ac_n "(cached) $ac_c" 1>&6
14881 else
14882   cat > conftest.$ac_ext <<EOF
14883 #line 14884 "configure"
14884 #include "confdefs.h"
14885 /* System header to define __stub macros and hopefully few prototypes,
14886     which can conflict with char $ac_func(); below.  */
14887 #include <assert.h>
14888 /* Override any gcc2 internal prototype to avoid an error.  */
14889 /* We use char because int might match the return type of a gcc2
14890     builtin and then its argument prototype would still apply.  */
14891 char $ac_func();
14892
14893 int main() {
14894
14895 /* The GNU C library defines this for functions which it implements
14896     to always fail with ENOSYS.  Some functions are actually named
14897     something starting with __ and the normal name is an alias.  */
14898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14899 choke me
14900 #else
14901 $ac_func();
14902 #endif
14903
14904 ; return 0; }
14905 EOF
14906 if { (eval echo configure:14907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14907   rm -rf conftest*
14908   eval "ac_cv_func_$ac_func=yes"
14909 else
14910   echo "configure: failed program was:" >&5
14911   cat conftest.$ac_ext >&5
14912   rm -rf conftest*
14913   eval "ac_cv_func_$ac_func=no"
14914 fi
14915 rm -f conftest*
14916 fi
14917
14918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14919   echo "$ac_t""yes" 1>&6
14920     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14921   cat >> confdefs.h <<EOF
14922 #define $ac_tr_func 1
14923 EOF
14924  
14925 else
14926   echo "$ac_t""no" 1>&6
14927 fi
14928 done
14929     
14930     fi
14931   fi
14932
14933   
14934   
14935   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
14936 echo "configure:14937: checking for sqrtl declaration" >&5
14937   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
14938     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
14939   echo $ac_n "(cached) $ac_c" 1>&6
14940 else
14941   
14942       
14943       ac_ext=C
14944 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14945 ac_cpp='$CXXCPP $CPPFLAGS'
14946 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14947 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14948 cross_compiling=$ac_cv_prog_cxx_cross
14949
14950       cat > conftest.$ac_ext <<EOF
14951 #line 14952 "configure"
14952 #include "confdefs.h"
14953 #include <math.h>
14954                       #ifdef HAVE_IEEEFP_H
14955                       #include <ieeefp.h>
14956                       #endif
14957                      
14958 int main() {
14959  sqrtl(0);
14960 ; return 0; }
14961 EOF
14962 if { (eval echo configure:14963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14963   rm -rf conftest*
14964   glibcpp_cv_func_sqrtl_use=yes
14965 else
14966   echo "configure: failed program was:" >&5
14967   cat conftest.$ac_ext >&5
14968   rm -rf conftest*
14969   glibcpp_cv_func_sqrtl_use=no
14970 fi
14971 rm -f conftest*
14972       ac_ext=c
14973 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14974 ac_cpp='$CPP $CPPFLAGS'
14975 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14976 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14977 cross_compiling=$ac_cv_prog_cc_cross
14978
14979     
14980 fi
14981
14982   fi
14983   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
14984
14985   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
14986     for ac_func in sqrtl
14987 do
14988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14989 echo "configure:14990: checking for $ac_func" >&5
14990 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14991   echo $ac_n "(cached) $ac_c" 1>&6
14992 else
14993   cat > conftest.$ac_ext <<EOF
14994 #line 14995 "configure"
14995 #include "confdefs.h"
14996 /* System header to define __stub macros and hopefully few prototypes,
14997     which can conflict with char $ac_func(); below.  */
14998 #include <assert.h>
14999 /* Override any gcc2 internal prototype to avoid an error.  */
15000 /* We use char because int might match the return type of a gcc2
15001     builtin and then its argument prototype would still apply.  */
15002 char $ac_func();
15003
15004 int main() {
15005
15006 /* The GNU C library defines this for functions which it implements
15007     to always fail with ENOSYS.  Some functions are actually named
15008     something starting with __ and the normal name is an alias.  */
15009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15010 choke me
15011 #else
15012 $ac_func();
15013 #endif
15014
15015 ; return 0; }
15016 EOF
15017 if { (eval echo configure:15018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15018   rm -rf conftest*
15019   eval "ac_cv_func_$ac_func=yes"
15020 else
15021   echo "configure: failed program was:" >&5
15022   cat conftest.$ac_ext >&5
15023   rm -rf conftest*
15024   eval "ac_cv_func_$ac_func=no"
15025 fi
15026 rm -f conftest*
15027 fi
15028
15029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15030   echo "$ac_t""yes" 1>&6
15031     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15032   cat >> confdefs.h <<EOF
15033 #define $ac_tr_func 1
15034 EOF
15035  
15036 else
15037   echo "$ac_t""no" 1>&6
15038 fi
15039 done
15040     
15041   else
15042     
15043   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
15044 echo "configure:15045: checking for _sqrtl declaration" >&5
15045   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
15046     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
15047   echo $ac_n "(cached) $ac_c" 1>&6
15048 else
15049   
15050       
15051       ac_ext=C
15052 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15053 ac_cpp='$CXXCPP $CPPFLAGS'
15054 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15055 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15056 cross_compiling=$ac_cv_prog_cxx_cross
15057
15058       cat > conftest.$ac_ext <<EOF
15059 #line 15060 "configure"
15060 #include "confdefs.h"
15061 #include <math.h>
15062                       #ifdef HAVE_IEEEFP_H
15063                       #include <ieeefp.h>
15064                       #endif
15065                      
15066 int main() {
15067  _sqrtl(0);
15068 ; return 0; }
15069 EOF
15070 if { (eval echo configure:15071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15071   rm -rf conftest*
15072   glibcpp_cv_func__sqrtl_use=yes
15073 else
15074   echo "configure: failed program was:" >&5
15075   cat conftest.$ac_ext >&5
15076   rm -rf conftest*
15077   glibcpp_cv_func__sqrtl_use=no
15078 fi
15079 rm -f conftest*
15080       ac_ext=c
15081 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15082 ac_cpp='$CPP $CPPFLAGS'
15083 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15084 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15085 cross_compiling=$ac_cv_prog_cc_cross
15086
15087     
15088 fi
15089
15090   fi
15091   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
15092
15093     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
15094       for ac_func in _sqrtl
15095 do
15096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15097 echo "configure:15098: checking for $ac_func" >&5
15098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15099   echo $ac_n "(cached) $ac_c" 1>&6
15100 else
15101   cat > conftest.$ac_ext <<EOF
15102 #line 15103 "configure"
15103 #include "confdefs.h"
15104 /* System header to define __stub macros and hopefully few prototypes,
15105     which can conflict with char $ac_func(); below.  */
15106 #include <assert.h>
15107 /* Override any gcc2 internal prototype to avoid an error.  */
15108 /* We use char because int might match the return type of a gcc2
15109     builtin and then its argument prototype would still apply.  */
15110 char $ac_func();
15111
15112 int main() {
15113
15114 /* The GNU C library defines this for functions which it implements
15115     to always fail with ENOSYS.  Some functions are actually named
15116     something starting with __ and the normal name is an alias.  */
15117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15118 choke me
15119 #else
15120 $ac_func();
15121 #endif
15122
15123 ; return 0; }
15124 EOF
15125 if { (eval echo configure:15126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15126   rm -rf conftest*
15127   eval "ac_cv_func_$ac_func=yes"
15128 else
15129   echo "configure: failed program was:" >&5
15130   cat conftest.$ac_ext >&5
15131   rm -rf conftest*
15132   eval "ac_cv_func_$ac_func=no"
15133 fi
15134 rm -f conftest*
15135 fi
15136
15137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15138   echo "$ac_t""yes" 1>&6
15139     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15140   cat >> confdefs.h <<EOF
15141 #define $ac_tr_func 1
15142 EOF
15143  
15144 else
15145   echo "$ac_t""no" 1>&6
15146 fi
15147 done
15148     
15149     fi
15150   fi
15151
15152   
15153   
15154   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
15155 echo "configure:15156: checking for sincosl declaration" >&5
15156   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
15157     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
15158   echo $ac_n "(cached) $ac_c" 1>&6
15159 else
15160   
15161       
15162       ac_ext=C
15163 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15164 ac_cpp='$CXXCPP $CPPFLAGS'
15165 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15166 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15167 cross_compiling=$ac_cv_prog_cxx_cross
15168
15169       cat > conftest.$ac_ext <<EOF
15170 #line 15171 "configure"
15171 #include "confdefs.h"
15172 #include <math.h>
15173 int main() {
15174  sincosl(0, 0, 0);
15175 ; return 0; }
15176 EOF
15177 if { (eval echo configure:15178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15178   rm -rf conftest*
15179   glibcpp_cv_func_sincosl_use=yes
15180 else
15181   echo "configure: failed program was:" >&5
15182   cat conftest.$ac_ext >&5
15183   rm -rf conftest*
15184   glibcpp_cv_func_sincosl_use=no
15185 fi
15186 rm -f conftest*
15187       ac_ext=c
15188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15189 ac_cpp='$CPP $CPPFLAGS'
15190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15192 cross_compiling=$ac_cv_prog_cc_cross
15193
15194     
15195 fi
15196
15197   fi
15198   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
15199
15200   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
15201     for ac_func in sincosl
15202 do
15203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15204 echo "configure:15205: checking for $ac_func" >&5
15205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15206   echo $ac_n "(cached) $ac_c" 1>&6
15207 else
15208   cat > conftest.$ac_ext <<EOF
15209 #line 15210 "configure"
15210 #include "confdefs.h"
15211 /* System header to define __stub macros and hopefully few prototypes,
15212     which can conflict with char $ac_func(); below.  */
15213 #include <assert.h>
15214 /* Override any gcc2 internal prototype to avoid an error.  */
15215 /* We use char because int might match the return type of a gcc2
15216     builtin and then its argument prototype would still apply.  */
15217 char $ac_func();
15218
15219 int main() {
15220
15221 /* The GNU C library defines this for functions which it implements
15222     to always fail with ENOSYS.  Some functions are actually named
15223     something starting with __ and the normal name is an alias.  */
15224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15225 choke me
15226 #else
15227 $ac_func();
15228 #endif
15229
15230 ; return 0; }
15231 EOF
15232 if { (eval echo configure:15233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15233   rm -rf conftest*
15234   eval "ac_cv_func_$ac_func=yes"
15235 else
15236   echo "configure: failed program was:" >&5
15237   cat conftest.$ac_ext >&5
15238   rm -rf conftest*
15239   eval "ac_cv_func_$ac_func=no"
15240 fi
15241 rm -f conftest*
15242 fi
15243
15244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15245   echo "$ac_t""yes" 1>&6
15246     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15247   cat >> confdefs.h <<EOF
15248 #define $ac_tr_func 1
15249 EOF
15250  
15251 else
15252   echo "$ac_t""no" 1>&6
15253 fi
15254 done
15255     
15256   else
15257     
15258   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
15259 echo "configure:15260: checking for _sincosl declaration" >&5
15260   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
15261     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
15262   echo $ac_n "(cached) $ac_c" 1>&6
15263 else
15264   
15265       
15266       ac_ext=C
15267 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15268 ac_cpp='$CXXCPP $CPPFLAGS'
15269 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15270 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15271 cross_compiling=$ac_cv_prog_cxx_cross
15272
15273       cat > conftest.$ac_ext <<EOF
15274 #line 15275 "configure"
15275 #include "confdefs.h"
15276 #include <math.h>
15277 int main() {
15278  _sincosl(0, 0, 0);
15279 ; return 0; }
15280 EOF
15281 if { (eval echo configure:15282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15282   rm -rf conftest*
15283   glibcpp_cv_func__sincosl_use=yes
15284 else
15285   echo "configure: failed program was:" >&5
15286   cat conftest.$ac_ext >&5
15287   rm -rf conftest*
15288   glibcpp_cv_func__sincosl_use=no
15289 fi
15290 rm -f conftest*
15291       ac_ext=c
15292 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15293 ac_cpp='$CPP $CPPFLAGS'
15294 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15295 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15296 cross_compiling=$ac_cv_prog_cc_cross
15297
15298     
15299 fi
15300
15301   fi
15302   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
15303
15304     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
15305       for ac_func in _sincosl
15306 do
15307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15308 echo "configure:15309: checking for $ac_func" >&5
15309 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15310   echo $ac_n "(cached) $ac_c" 1>&6
15311 else
15312   cat > conftest.$ac_ext <<EOF
15313 #line 15314 "configure"
15314 #include "confdefs.h"
15315 /* System header to define __stub macros and hopefully few prototypes,
15316     which can conflict with char $ac_func(); below.  */
15317 #include <assert.h>
15318 /* Override any gcc2 internal prototype to avoid an error.  */
15319 /* We use char because int might match the return type of a gcc2
15320     builtin and then its argument prototype would still apply.  */
15321 char $ac_func();
15322
15323 int main() {
15324
15325 /* The GNU C library defines this for functions which it implements
15326     to always fail with ENOSYS.  Some functions are actually named
15327     something starting with __ and the normal name is an alias.  */
15328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15329 choke me
15330 #else
15331 $ac_func();
15332 #endif
15333
15334 ; return 0; }
15335 EOF
15336 if { (eval echo configure:15337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15337   rm -rf conftest*
15338   eval "ac_cv_func_$ac_func=yes"
15339 else
15340   echo "configure: failed program was:" >&5
15341   cat conftest.$ac_ext >&5
15342   rm -rf conftest*
15343   eval "ac_cv_func_$ac_func=no"
15344 fi
15345 rm -f conftest*
15346 fi
15347
15348 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15349   echo "$ac_t""yes" 1>&6
15350     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15351   cat >> confdefs.h <<EOF
15352 #define $ac_tr_func 1
15353 EOF
15354  
15355 else
15356   echo "$ac_t""no" 1>&6
15357 fi
15358 done
15359     
15360     fi
15361   fi
15362
15363   
15364   
15365   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
15366 echo "configure:15367: checking for finitel declaration" >&5
15367   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
15368     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
15369   echo $ac_n "(cached) $ac_c" 1>&6
15370 else
15371   
15372       
15373       ac_ext=C
15374 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15375 ac_cpp='$CXXCPP $CPPFLAGS'
15376 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15377 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15378 cross_compiling=$ac_cv_prog_cxx_cross
15379
15380       cat > conftest.$ac_ext <<EOF
15381 #line 15382 "configure"
15382 #include "confdefs.h"
15383 #include <math.h>
15384                       #ifdef HAVE_IEEEFP_H
15385                       #include <ieeefp.h>
15386                       #endif
15387                      
15388 int main() {
15389  finitel(0);
15390 ; return 0; }
15391 EOF
15392 if { (eval echo configure:15393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15393   rm -rf conftest*
15394   glibcpp_cv_func_finitel_use=yes
15395 else
15396   echo "configure: failed program was:" >&5
15397   cat conftest.$ac_ext >&5
15398   rm -rf conftest*
15399   glibcpp_cv_func_finitel_use=no
15400 fi
15401 rm -f conftest*
15402       ac_ext=c
15403 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15404 ac_cpp='$CPP $CPPFLAGS'
15405 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15406 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15407 cross_compiling=$ac_cv_prog_cc_cross
15408
15409     
15410 fi
15411
15412   fi
15413   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
15414
15415   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
15416     for ac_func in finitel
15417 do
15418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15419 echo "configure:15420: checking for $ac_func" >&5
15420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15421   echo $ac_n "(cached) $ac_c" 1>&6
15422 else
15423   cat > conftest.$ac_ext <<EOF
15424 #line 15425 "configure"
15425 #include "confdefs.h"
15426 /* System header to define __stub macros and hopefully few prototypes,
15427     which can conflict with char $ac_func(); below.  */
15428 #include <assert.h>
15429 /* Override any gcc2 internal prototype to avoid an error.  */
15430 /* We use char because int might match the return type of a gcc2
15431     builtin and then its argument prototype would still apply.  */
15432 char $ac_func();
15433
15434 int main() {
15435
15436 /* The GNU C library defines this for functions which it implements
15437     to always fail with ENOSYS.  Some functions are actually named
15438     something starting with __ and the normal name is an alias.  */
15439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15440 choke me
15441 #else
15442 $ac_func();
15443 #endif
15444
15445 ; return 0; }
15446 EOF
15447 if { (eval echo configure:15448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15448   rm -rf conftest*
15449   eval "ac_cv_func_$ac_func=yes"
15450 else
15451   echo "configure: failed program was:" >&5
15452   cat conftest.$ac_ext >&5
15453   rm -rf conftest*
15454   eval "ac_cv_func_$ac_func=no"
15455 fi
15456 rm -f conftest*
15457 fi
15458
15459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15460   echo "$ac_t""yes" 1>&6
15461     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15462   cat >> confdefs.h <<EOF
15463 #define $ac_tr_func 1
15464 EOF
15465  
15466 else
15467   echo "$ac_t""no" 1>&6
15468 fi
15469 done
15470     
15471   else
15472     
15473   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
15474 echo "configure:15475: checking for _finitel declaration" >&5
15475   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
15476     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
15477   echo $ac_n "(cached) $ac_c" 1>&6
15478 else
15479   
15480       
15481       ac_ext=C
15482 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15483 ac_cpp='$CXXCPP $CPPFLAGS'
15484 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15485 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15486 cross_compiling=$ac_cv_prog_cxx_cross
15487
15488       cat > conftest.$ac_ext <<EOF
15489 #line 15490 "configure"
15490 #include "confdefs.h"
15491 #include <math.h>
15492                       #ifdef HAVE_IEEEFP_H
15493                       #include <ieeefp.h>
15494                       #endif
15495                      
15496 int main() {
15497  _finitel(0);
15498 ; return 0; }
15499 EOF
15500 if { (eval echo configure:15501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15501   rm -rf conftest*
15502   glibcpp_cv_func__finitel_use=yes
15503 else
15504   echo "configure: failed program was:" >&5
15505   cat conftest.$ac_ext >&5
15506   rm -rf conftest*
15507   glibcpp_cv_func__finitel_use=no
15508 fi
15509 rm -f conftest*
15510       ac_ext=c
15511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15512 ac_cpp='$CPP $CPPFLAGS'
15513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15514 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15515 cross_compiling=$ac_cv_prog_cc_cross
15516
15517     
15518 fi
15519
15520   fi
15521   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
15522
15523     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
15524       for ac_func in _finitel
15525 do
15526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15527 echo "configure:15528: checking for $ac_func" >&5
15528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15529   echo $ac_n "(cached) $ac_c" 1>&6
15530 else
15531   cat > conftest.$ac_ext <<EOF
15532 #line 15533 "configure"
15533 #include "confdefs.h"
15534 /* System header to define __stub macros and hopefully few prototypes,
15535     which can conflict with char $ac_func(); below.  */
15536 #include <assert.h>
15537 /* Override any gcc2 internal prototype to avoid an error.  */
15538 /* We use char because int might match the return type of a gcc2
15539     builtin and then its argument prototype would still apply.  */
15540 char $ac_func();
15541
15542 int main() {
15543
15544 /* The GNU C library defines this for functions which it implements
15545     to always fail with ENOSYS.  Some functions are actually named
15546     something starting with __ and the normal name is an alias.  */
15547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15548 choke me
15549 #else
15550 $ac_func();
15551 #endif
15552
15553 ; return 0; }
15554 EOF
15555 if { (eval echo configure:15556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15556   rm -rf conftest*
15557   eval "ac_cv_func_$ac_func=yes"
15558 else
15559   echo "configure: failed program was:" >&5
15560   cat conftest.$ac_ext >&5
15561   rm -rf conftest*
15562   eval "ac_cv_func_$ac_func=no"
15563 fi
15564 rm -f conftest*
15565 fi
15566
15567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15568   echo "$ac_t""yes" 1>&6
15569     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15570   cat >> confdefs.h <<EOF
15571 #define $ac_tr_func 1
15572 EOF
15573  
15574 else
15575   echo "$ac_t""no" 1>&6
15576 fi
15577 done
15578     
15579     fi
15580   fi
15581
15582
15583         
15584     
15585   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
15586 echo "configure:15587: checking for _float trig functions" >&5
15587   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
15588   echo $ac_n "(cached) $ac_c" 1>&6
15589 else
15590   
15591     
15592     ac_ext=C
15593 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15594 ac_cpp='$CXXCPP $CPPFLAGS'
15595 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15596 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15597 cross_compiling=$ac_cv_prog_cxx_cross
15598
15599     cat > conftest.$ac_ext <<EOF
15600 #line 15601 "configure"
15601 #include "confdefs.h"
15602 #include <math.h>
15603 int main() {
15604  `for x in _acosf _asinf _atanf \
15605                                           _cosf _sinf _tanf \
15606                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
15607 ; return 0; }
15608 EOF
15609 if { (eval echo configure:15610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15610   rm -rf conftest*
15611   glibcpp_cv_func__float_trig_use=yes
15612 else
15613   echo "configure: failed program was:" >&5
15614   cat conftest.$ac_ext >&5
15615   rm -rf conftest*
15616   glibcpp_cv_func__float_trig_use=no
15617 fi
15618 rm -f conftest*
15619     ac_ext=c
15620 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15621 ac_cpp='$CPP $CPPFLAGS'
15622 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15623 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15624 cross_compiling=$ac_cv_prog_cc_cross
15625
15626 fi
15627
15628   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
15629   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
15630     for ac_func in _acosf _asinf _atanf \
15631                                           _cosf _sinf _tanf \
15632                                           _coshf _sinhf _tanhf
15633 do
15634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15635 echo "configure:15636: checking for $ac_func" >&5
15636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15637   echo $ac_n "(cached) $ac_c" 1>&6
15638 else
15639   cat > conftest.$ac_ext <<EOF
15640 #line 15641 "configure"
15641 #include "confdefs.h"
15642 /* System header to define __stub macros and hopefully few prototypes,
15643     which can conflict with char $ac_func(); below.  */
15644 #include <assert.h>
15645 /* Override any gcc2 internal prototype to avoid an error.  */
15646 /* We use char because int might match the return type of a gcc2
15647     builtin and then its argument prototype would still apply.  */
15648 char $ac_func();
15649
15650 int main() {
15651
15652 /* The GNU C library defines this for functions which it implements
15653     to always fail with ENOSYS.  Some functions are actually named
15654     something starting with __ and the normal name is an alias.  */
15655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15656 choke me
15657 #else
15658 $ac_func();
15659 #endif
15660
15661 ; return 0; }
15662 EOF
15663 if { (eval echo configure:15664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15664   rm -rf conftest*
15665   eval "ac_cv_func_$ac_func=yes"
15666 else
15667   echo "configure: failed program was:" >&5
15668   cat conftest.$ac_ext >&5
15669   rm -rf conftest*
15670   eval "ac_cv_func_$ac_func=no"
15671 fi
15672 rm -f conftest*
15673 fi
15674
15675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15676   echo "$ac_t""yes" 1>&6
15677     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15678   cat >> confdefs.h <<EOF
15679 #define $ac_tr_func 1
15680 EOF
15681  
15682 else
15683   echo "$ac_t""no" 1>&6
15684 fi
15685 done
15686
15687   fi
15688
15689   
15690   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
15691 echo "configure:15692: checking for _float round functions" >&5
15692   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
15693   echo $ac_n "(cached) $ac_c" 1>&6
15694 else
15695   
15696     
15697     ac_ext=C
15698 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15699 ac_cpp='$CXXCPP $CPPFLAGS'
15700 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15701 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15702 cross_compiling=$ac_cv_prog_cxx_cross
15703
15704     cat > conftest.$ac_ext <<EOF
15705 #line 15706 "configure"
15706 #include "confdefs.h"
15707 #include <math.h>
15708 int main() {
15709  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
15710 ; return 0; }
15711 EOF
15712 if { (eval echo configure:15713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15713   rm -rf conftest*
15714   glibcpp_cv_func__float_round_use=yes
15715 else
15716   echo "configure: failed program was:" >&5
15717   cat conftest.$ac_ext >&5
15718   rm -rf conftest*
15719   glibcpp_cv_func__float_round_use=no
15720 fi
15721 rm -f conftest*
15722     ac_ext=c
15723 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15724 ac_cpp='$CPP $CPPFLAGS'
15725 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15726 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15727 cross_compiling=$ac_cv_prog_cc_cross
15728
15729 fi
15730
15731   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
15732   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
15733     for ac_func in _ceilf _floorf
15734 do
15735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15736 echo "configure:15737: checking for $ac_func" >&5
15737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15738   echo $ac_n "(cached) $ac_c" 1>&6
15739 else
15740   cat > conftest.$ac_ext <<EOF
15741 #line 15742 "configure"
15742 #include "confdefs.h"
15743 /* System header to define __stub macros and hopefully few prototypes,
15744     which can conflict with char $ac_func(); below.  */
15745 #include <assert.h>
15746 /* Override any gcc2 internal prototype to avoid an error.  */
15747 /* We use char because int might match the return type of a gcc2
15748     builtin and then its argument prototype would still apply.  */
15749 char $ac_func();
15750
15751 int main() {
15752
15753 /* The GNU C library defines this for functions which it implements
15754     to always fail with ENOSYS.  Some functions are actually named
15755     something starting with __ and the normal name is an alias.  */
15756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15757 choke me
15758 #else
15759 $ac_func();
15760 #endif
15761
15762 ; return 0; }
15763 EOF
15764 if { (eval echo configure:15765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15765   rm -rf conftest*
15766   eval "ac_cv_func_$ac_func=yes"
15767 else
15768   echo "configure: failed program was:" >&5
15769   cat conftest.$ac_ext >&5
15770   rm -rf conftest*
15771   eval "ac_cv_func_$ac_func=no"
15772 fi
15773 rm -f conftest*
15774 fi
15775
15776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15777   echo "$ac_t""yes" 1>&6
15778     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15779   cat >> confdefs.h <<EOF
15780 #define $ac_tr_func 1
15781 EOF
15782  
15783 else
15784   echo "$ac_t""no" 1>&6
15785 fi
15786 done
15787
15788   fi
15789
15790
15791     
15792   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
15793 echo "configure:15794: checking for _long double trig functions" >&5
15794   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
15795   echo $ac_n "(cached) $ac_c" 1>&6
15796 else
15797   
15798     
15799     ac_ext=C
15800 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15801 ac_cpp='$CXXCPP $CPPFLAGS'
15802 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15803 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15804 cross_compiling=$ac_cv_prog_cxx_cross
15805
15806     cat > conftest.$ac_ext <<EOF
15807 #line 15808 "configure"
15808 #include "confdefs.h"
15809 #include <math.h>
15810 int main() {
15811  `for x in _acosl _asinl _atanl \
15812                                           _cosl _sinl _tanl \
15813                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
15814 ; return 0; }
15815 EOF
15816 if { (eval echo configure:15817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15817   rm -rf conftest*
15818   glibcpp_cv_func__long_double_trig_use=yes
15819 else
15820   echo "configure: failed program was:" >&5
15821   cat conftest.$ac_ext >&5
15822   rm -rf conftest*
15823   glibcpp_cv_func__long_double_trig_use=no
15824 fi
15825 rm -f conftest*
15826     ac_ext=c
15827 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15828 ac_cpp='$CPP $CPPFLAGS'
15829 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15830 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15831 cross_compiling=$ac_cv_prog_cc_cross
15832
15833 fi
15834
15835   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
15836   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
15837     for ac_func in _acosl _asinl _atanl \
15838                                           _cosl _sinl _tanl \
15839                                           _coshl _sinhl _tanhl
15840 do
15841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15842 echo "configure:15843: checking for $ac_func" >&5
15843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15844   echo $ac_n "(cached) $ac_c" 1>&6
15845 else
15846   cat > conftest.$ac_ext <<EOF
15847 #line 15848 "configure"
15848 #include "confdefs.h"
15849 /* System header to define __stub macros and hopefully few prototypes,
15850     which can conflict with char $ac_func(); below.  */
15851 #include <assert.h>
15852 /* Override any gcc2 internal prototype to avoid an error.  */
15853 /* We use char because int might match the return type of a gcc2
15854     builtin and then its argument prototype would still apply.  */
15855 char $ac_func();
15856
15857 int main() {
15858
15859 /* The GNU C library defines this for functions which it implements
15860     to always fail with ENOSYS.  Some functions are actually named
15861     something starting with __ and the normal name is an alias.  */
15862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15863 choke me
15864 #else
15865 $ac_func();
15866 #endif
15867
15868 ; return 0; }
15869 EOF
15870 if { (eval echo configure:15871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15871   rm -rf conftest*
15872   eval "ac_cv_func_$ac_func=yes"
15873 else
15874   echo "configure: failed program was:" >&5
15875   cat conftest.$ac_ext >&5
15876   rm -rf conftest*
15877   eval "ac_cv_func_$ac_func=no"
15878 fi
15879 rm -f conftest*
15880 fi
15881
15882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15883   echo "$ac_t""yes" 1>&6
15884     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15885   cat >> confdefs.h <<EOF
15886 #define $ac_tr_func 1
15887 EOF
15888  
15889 else
15890   echo "$ac_t""no" 1>&6
15891 fi
15892 done
15893
15894   fi
15895
15896   
15897   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
15898 echo "configure:15899: checking for _long double round functions" >&5
15899   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
15900   echo $ac_n "(cached) $ac_c" 1>&6
15901 else
15902   
15903     
15904     ac_ext=C
15905 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15906 ac_cpp='$CXXCPP $CPPFLAGS'
15907 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15908 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15909 cross_compiling=$ac_cv_prog_cxx_cross
15910
15911     cat > conftest.$ac_ext <<EOF
15912 #line 15913 "configure"
15913 #include "confdefs.h"
15914 #include <math.h>
15915 int main() {
15916  `for x in _ceill _floorl; do echo "$x (0);"; done` 
15917 ; return 0; }
15918 EOF
15919 if { (eval echo configure:15920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15920   rm -rf conftest*
15921   glibcpp_cv_func__long_double_round_use=yes
15922 else
15923   echo "configure: failed program was:" >&5
15924   cat conftest.$ac_ext >&5
15925   rm -rf conftest*
15926   glibcpp_cv_func__long_double_round_use=no
15927 fi
15928 rm -f conftest*
15929     ac_ext=c
15930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15931 ac_cpp='$CPP $CPPFLAGS'
15932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15934 cross_compiling=$ac_cv_prog_cc_cross
15935
15936 fi
15937
15938   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
15939   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
15940     for ac_func in _ceill _floorl
15941 do
15942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15943 echo "configure:15944: checking for $ac_func" >&5
15944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15945   echo $ac_n "(cached) $ac_c" 1>&6
15946 else
15947   cat > conftest.$ac_ext <<EOF
15948 #line 15949 "configure"
15949 #include "confdefs.h"
15950 /* System header to define __stub macros and hopefully few prototypes,
15951     which can conflict with char $ac_func(); below.  */
15952 #include <assert.h>
15953 /* Override any gcc2 internal prototype to avoid an error.  */
15954 /* We use char because int might match the return type of a gcc2
15955     builtin and then its argument prototype would still apply.  */
15956 char $ac_func();
15957
15958 int main() {
15959
15960 /* The GNU C library defines this for functions which it implements
15961     to always fail with ENOSYS.  Some functions are actually named
15962     something starting with __ and the normal name is an alias.  */
15963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15964 choke me
15965 #else
15966 $ac_func();
15967 #endif
15968
15969 ; return 0; }
15970 EOF
15971 if { (eval echo configure:15972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15972   rm -rf conftest*
15973   eval "ac_cv_func_$ac_func=yes"
15974 else
15975   echo "configure: failed program was:" >&5
15976   cat conftest.$ac_ext >&5
15977   rm -rf conftest*
15978   eval "ac_cv_func_$ac_func=no"
15979 fi
15980 rm -f conftest*
15981 fi
15982
15983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15984   echo "$ac_t""yes" 1>&6
15985     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15986   cat >> confdefs.h <<EOF
15987 #define $ac_tr_func 1
15988 EOF
15989  
15990 else
15991   echo "$ac_t""no" 1>&6
15992 fi
15993 done
15994
15995   fi
15996
15997
15998   LIBS="$ac_save_LIBS"
15999   CXXFLAGS="$ac_save_CXXFLAGS"
16000
16001   
16002     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
16003 echo "configure:16004: checking for main in -lm" >&5
16004 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
16005 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16006   echo $ac_n "(cached) $ac_c" 1>&6
16007 else
16008   ac_save_LIBS="$LIBS"
16009 LIBS="-lm  $LIBS"
16010 cat > conftest.$ac_ext <<EOF
16011 #line 16012 "configure"
16012 #include "confdefs.h"
16013
16014 int main() {
16015 main()
16016 ; return 0; }
16017 EOF
16018 if { (eval echo configure:16019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16019   rm -rf conftest*
16020   eval "ac_cv_lib_$ac_lib_var=yes"
16021 else
16022   echo "configure: failed program was:" >&5
16023   cat conftest.$ac_ext >&5
16024   rm -rf conftest*
16025   eval "ac_cv_lib_$ac_lib_var=no"
16026 fi
16027 rm -f conftest*
16028 LIBS="$ac_save_LIBS"
16029
16030 fi
16031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16032   echo "$ac_t""yes" 1>&6
16033     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
16034     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
16035   cat >> confdefs.h <<EOF
16036 #define $ac_tr_lib 1
16037 EOF
16038
16039   LIBS="-lm $LIBS"
16040
16041 else
16042   echo "$ac_t""no" 1>&6
16043 fi
16044
16045   for ac_func in nan copysignf
16046 do
16047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16048 echo "configure:16049: checking for $ac_func" >&5
16049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16050   echo $ac_n "(cached) $ac_c" 1>&6
16051 else
16052   cat > conftest.$ac_ext <<EOF
16053 #line 16054 "configure"
16054 #include "confdefs.h"
16055 /* System header to define __stub macros and hopefully few prototypes,
16056     which can conflict with char $ac_func(); below.  */
16057 #include <assert.h>
16058 /* Override any gcc2 internal prototype to avoid an error.  */
16059 /* We use char because int might match the return type of a gcc2
16060     builtin and then its argument prototype would still apply.  */
16061 char $ac_func();
16062
16063 int main() {
16064
16065 /* The GNU C library defines this for functions which it implements
16066     to always fail with ENOSYS.  Some functions are actually named
16067     something starting with __ and the normal name is an alias.  */
16068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16069 choke me
16070 #else
16071 $ac_func();
16072 #endif
16073
16074 ; return 0; }
16075 EOF
16076 if { (eval echo configure:16077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16077   rm -rf conftest*
16078   eval "ac_cv_func_$ac_func=yes"
16079 else
16080   echo "configure: failed program was:" >&5
16081   cat conftest.$ac_ext >&5
16082   rm -rf conftest*
16083   eval "ac_cv_func_$ac_func=no"
16084 fi
16085 rm -f conftest*
16086 fi
16087
16088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16089   echo "$ac_t""yes" 1>&6
16090     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16091   cat >> confdefs.h <<EOF
16092 #define $ac_tr_func 1
16093 EOF
16094  
16095 else
16096   echo "$ac_t""no" 1>&6
16097 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16098 fi
16099 done
16100
16101
16102
16103           USE_COMPLEX_LONG_DOUBLE=no
16104   if test x$ac_cv_func_copysignl = x"yes"; then
16105     USE_COMPLEX_LONG_DOUBLE=yes
16106     for ac_func in signbitl
16107 do
16108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16109 echo "configure:16110: checking for $ac_func" >&5
16110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16111   echo $ac_n "(cached) $ac_c" 1>&6
16112 else
16113   cat > conftest.$ac_ext <<EOF
16114 #line 16115 "configure"
16115 #include "confdefs.h"
16116 /* System header to define __stub macros and hopefully few prototypes,
16117     which can conflict with char $ac_func(); below.  */
16118 #include <assert.h>
16119 /* Override any gcc2 internal prototype to avoid an error.  */
16120 /* We use char because int might match the return type of a gcc2
16121     builtin and then its argument prototype would still apply.  */
16122 char $ac_func();
16123
16124 int main() {
16125
16126 /* The GNU C library defines this for functions which it implements
16127     to always fail with ENOSYS.  Some functions are actually named
16128     something starting with __ and the normal name is an alias.  */
16129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16130 choke me
16131 #else
16132 $ac_func();
16133 #endif
16134
16135 ; return 0; }
16136 EOF
16137 if { (eval echo configure:16138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16138   rm -rf conftest*
16139   eval "ac_cv_func_$ac_func=yes"
16140 else
16141   echo "configure: failed program was:" >&5
16142   cat conftest.$ac_ext >&5
16143   rm -rf conftest*
16144   eval "ac_cv_func_$ac_func=no"
16145 fi
16146 rm -f conftest*
16147 fi
16148
16149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16150   echo "$ac_t""yes" 1>&6
16151     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16152   cat >> confdefs.h <<EOF
16153 #define $ac_tr_func 1
16154 EOF
16155  
16156 else
16157   echo "$ac_t""no" 1>&6
16158 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16159 fi
16160 done
16161
16162
16163   fi
16164
16165   
16166
16167   
16168
16169       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
16170 echo "configure:16171: checking for mbstate_t" >&5
16171   cat > conftest.$ac_ext <<EOF
16172 #line 16173 "configure"
16173 #include "confdefs.h"
16174 #include <wchar.h>
16175 int main() {
16176 mbstate_t teststate;
16177 ; return 0; }
16178 EOF
16179 if { (eval echo configure:16180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16180   rm -rf conftest*
16181   have_mbstate_t=yes
16182 else
16183   echo "configure: failed program was:" >&5
16184   cat conftest.$ac_ext >&5
16185   rm -rf conftest*
16186   have_mbstate_t=no
16187 fi
16188 rm -f conftest*
16189   echo "$ac_t""$have_mbstate_t" 1>&6
16190   if test x"$have_mbstate_t" = xyes; then
16191     cat >> confdefs.h <<\EOF
16192 #define HAVE_MBSTATE_T 1
16193 EOF
16194
16195   fi
16196
16197     for ac_hdr in wchar.h
16198 do
16199 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16200 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16201 echo "configure:16202: checking for $ac_hdr" >&5
16202 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16203   echo $ac_n "(cached) $ac_c" 1>&6
16204 else
16205   cat > conftest.$ac_ext <<EOF
16206 #line 16207 "configure"
16207 #include "confdefs.h"
16208 #include <$ac_hdr>
16209 EOF
16210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16211 { (eval echo configure:16212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16213 if test -z "$ac_err"; then
16214   rm -rf conftest*
16215   eval "ac_cv_header_$ac_safe=yes"
16216 else
16217   echo "$ac_err" >&5
16218   echo "configure: failed program was:" >&5
16219   cat conftest.$ac_ext >&5
16220   rm -rf conftest*
16221   eval "ac_cv_header_$ac_safe=no"
16222 fi
16223 rm -f conftest*
16224 fi
16225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16226   echo "$ac_t""yes" 1>&6
16227     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16228   cat >> confdefs.h <<EOF
16229 #define $ac_tr_hdr 1
16230 EOF
16231  ac_has_wchar_h=yes
16232 else
16233   echo "$ac_t""no" 1>&6
16234 ac_has_wchar_h=no
16235 fi
16236 done
16237
16238   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
16239 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
16240 echo "configure:16241: checking for wctype.h" >&5
16241 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16242   echo $ac_n "(cached) $ac_c" 1>&6
16243 else
16244   cat > conftest.$ac_ext <<EOF
16245 #line 16246 "configure"
16246 #include "confdefs.h"
16247 #include <wctype.h>
16248 EOF
16249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16250 { (eval echo configure:16251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16252 if test -z "$ac_err"; then
16253   rm -rf conftest*
16254   eval "ac_cv_header_$ac_safe=yes"
16255 else
16256   echo "$ac_err" >&5
16257   echo "configure: failed program was:" >&5
16258   cat conftest.$ac_ext >&5
16259   rm -rf conftest*
16260   eval "ac_cv_header_$ac_safe=no"
16261 fi
16262 rm -f conftest*
16263 fi
16264 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16265   echo "$ac_t""yes" 1>&6
16266   ac_has_wctype_h=yes
16267 else
16268   echo "$ac_t""no" 1>&6
16269 ac_has_wctype_h=no
16270 fi
16271
16272   
16273     if test x"$ac_has_wchar_h" = xyes &&
16274      test x"$ac_has_wctype_h" = xyes &&
16275      test x"$enable_c_mbchar" != xno; then
16276       
16277             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
16278 echo "configure:16279: checking for WCHAR_MIN and WCHAR_MAX" >&5
16279     cat > conftest.$ac_ext <<EOF
16280 #line 16281 "configure"
16281 #include "confdefs.h"
16282 #include <wchar.h>
16283 int main() {
16284 int i = WCHAR_MIN; int j = WCHAR_MAX;
16285 ; return 0; }
16286 EOF
16287 if { (eval echo configure:16288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16288   rm -rf conftest*
16289   has_wchar_minmax=yes
16290 else
16291   echo "configure: failed program was:" >&5
16292   cat conftest.$ac_ext >&5
16293   rm -rf conftest*
16294   has_wchar_minmax=no
16295 fi
16296 rm -f conftest*
16297     echo "$ac_t""$has_wchar_minmax" 1>&6
16298     
16299             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
16300 echo "configure:16301: checking for WEOF" >&5
16301     cat > conftest.$ac_ext <<EOF
16302 #line 16303 "configure"
16303 #include "confdefs.h"
16304
16305       #include <wchar.h>
16306       #include <stddef.h>
16307 int main() {
16308 wint_t i = WEOF;
16309 ; return 0; }
16310 EOF
16311 if { (eval echo configure:16312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16312   rm -rf conftest*
16313   has_weof=yes
16314 else
16315   echo "configure: failed program was:" >&5
16316   cat conftest.$ac_ext >&5
16317   rm -rf conftest*
16318   has_weof=no
16319 fi
16320 rm -f conftest*
16321     echo "$ac_t""$has_weof" 1>&6
16322   
16323         ac_wfuncs=yes
16324     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
16325 do
16326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16327 echo "configure:16328: checking for $ac_func" >&5
16328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16329   echo $ac_n "(cached) $ac_c" 1>&6
16330 else
16331   cat > conftest.$ac_ext <<EOF
16332 #line 16333 "configure"
16333 #include "confdefs.h"
16334 /* System header to define __stub macros and hopefully few prototypes,
16335     which can conflict with char $ac_func(); below.  */
16336 #include <assert.h>
16337 /* Override any gcc2 internal prototype to avoid an error.  */
16338 /* We use char because int might match the return type of a gcc2
16339     builtin and then its argument prototype would still apply.  */
16340 char $ac_func();
16341
16342 int main() {
16343
16344 /* The GNU C library defines this for functions which it implements
16345     to always fail with ENOSYS.  Some functions are actually named
16346     something starting with __ and the normal name is an alias.  */
16347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16348 choke me
16349 #else
16350 $ac_func();
16351 #endif
16352
16353 ; return 0; }
16354 EOF
16355 if { (eval echo configure:16356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16356   rm -rf conftest*
16357   eval "ac_cv_func_$ac_func=yes"
16358 else
16359   echo "configure: failed program was:" >&5
16360   cat conftest.$ac_ext >&5
16361   rm -rf conftest*
16362   eval "ac_cv_func_$ac_func=no"
16363 fi
16364 rm -f conftest*
16365 fi
16366
16367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16368   echo "$ac_t""yes" 1>&6
16369     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16370   cat >> confdefs.h <<EOF
16371 #define $ac_tr_func 1
16372 EOF
16373  
16374 else
16375   echo "$ac_t""no" 1>&6
16376 \
16377     ac_wfuncs=no
16378 fi
16379 done
16380
16381   
16382         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
16383     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
16384     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
16385     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
16386     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
16387     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
16388 do
16389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16390 echo "configure:16391: checking for $ac_func" >&5
16391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16392   echo $ac_n "(cached) $ac_c" 1>&6
16393 else
16394   cat > conftest.$ac_ext <<EOF
16395 #line 16396 "configure"
16396 #include "confdefs.h"
16397 /* System header to define __stub macros and hopefully few prototypes,
16398     which can conflict with char $ac_func(); below.  */
16399 #include <assert.h>
16400 /* Override any gcc2 internal prototype to avoid an error.  */
16401 /* We use char because int might match the return type of a gcc2
16402     builtin and then its argument prototype would still apply.  */
16403 char $ac_func();
16404
16405 int main() {
16406
16407 /* The GNU C library defines this for functions which it implements
16408     to always fail with ENOSYS.  Some functions are actually named
16409     something starting with __ and the normal name is an alias.  */
16410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16411 choke me
16412 #else
16413 $ac_func();
16414 #endif
16415
16416 ; return 0; }
16417 EOF
16418 if { (eval echo configure:16419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16419   rm -rf conftest*
16420   eval "ac_cv_func_$ac_func=yes"
16421 else
16422   echo "configure: failed program was:" >&5
16423   cat conftest.$ac_ext >&5
16424   rm -rf conftest*
16425   eval "ac_cv_func_$ac_func=no"
16426 fi
16427 rm -f conftest*
16428 fi
16429
16430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16431   echo "$ac_t""yes" 1>&6
16432     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16433   cat >> confdefs.h <<EOF
16434 #define $ac_tr_func 1
16435 EOF
16436  
16437 else
16438   echo "$ac_t""no" 1>&6
16439 \
16440     ac_wfuncs=no
16441 fi
16442 done
16443
16444
16445     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
16446 echo "configure:16447: checking for ISO C99 wchar_t support" >&5
16447     if test x"$has_weof" = xyes &&
16448        test x"$has_wchar_minmax" = xyes &&
16449        test x"$ac_wfuncs" = xyes; then
16450       ac_isoC99_wchar_t=yes
16451     else
16452       ac_isoC99_wchar_t=no
16453     fi
16454     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
16455   
16456             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
16457 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
16458 echo "configure:16459: checking for iconv.h" >&5
16459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16460   echo $ac_n "(cached) $ac_c" 1>&6
16461 else
16462   cat > conftest.$ac_ext <<EOF
16463 #line 16464 "configure"
16464 #include "confdefs.h"
16465 #include <iconv.h>
16466 EOF
16467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16468 { (eval echo configure:16469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16470 if test -z "$ac_err"; then
16471   rm -rf conftest*
16472   eval "ac_cv_header_$ac_safe=yes"
16473 else
16474   echo "$ac_err" >&5
16475   echo "configure: failed program was:" >&5
16476   cat conftest.$ac_ext >&5
16477   rm -rf conftest*
16478   eval "ac_cv_header_$ac_safe=no"
16479 fi
16480 rm -f conftest*
16481 fi
16482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16483   echo "$ac_t""yes" 1>&6
16484   ac_has_iconv_h=yes
16485 else
16486   echo "$ac_t""no" 1>&6
16487 ac_has_iconv_h=no
16488 fi
16489
16490     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
16491 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
16492 echo "configure:16493: checking for langinfo.h" >&5
16493 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16494   echo $ac_n "(cached) $ac_c" 1>&6
16495 else
16496   cat > conftest.$ac_ext <<EOF
16497 #line 16498 "configure"
16498 #include "confdefs.h"
16499 #include <langinfo.h>
16500 EOF
16501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16502 { (eval echo configure:16503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16504 if test -z "$ac_err"; then
16505   rm -rf conftest*
16506   eval "ac_cv_header_$ac_safe=yes"
16507 else
16508   echo "$ac_err" >&5
16509   echo "configure: failed program was:" >&5
16510   cat conftest.$ac_ext >&5
16511   rm -rf conftest*
16512   eval "ac_cv_header_$ac_safe=no"
16513 fi
16514 rm -f conftest*
16515 fi
16516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16517   echo "$ac_t""yes" 1>&6
16518   ac_has_langinfo_h=yes
16519 else
16520   echo "$ac_t""no" 1>&6
16521 ac_has_langinfo_h=no
16522 fi
16523
16524
16525         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
16526 echo "configure:16527: checking for iconv in -liconv" >&5
16527 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
16528 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16529   echo $ac_n "(cached) $ac_c" 1>&6
16530 else
16531   ac_save_LIBS="$LIBS"
16532 LIBS="-liconv  $LIBS"
16533 cat > conftest.$ac_ext <<EOF
16534 #line 16535 "configure"
16535 #include "confdefs.h"
16536 /* Override any gcc2 internal prototype to avoid an error.  */
16537 /* We use char because int might match the return type of a gcc2
16538     builtin and then its argument prototype would still apply.  */
16539 char iconv();
16540
16541 int main() {
16542 iconv()
16543 ; return 0; }
16544 EOF
16545 if { (eval echo configure:16546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16546   rm -rf conftest*
16547   eval "ac_cv_lib_$ac_lib_var=yes"
16548 else
16549   echo "configure: failed program was:" >&5
16550   cat conftest.$ac_ext >&5
16551   rm -rf conftest*
16552   eval "ac_cv_lib_$ac_lib_var=no"
16553 fi
16554 rm -f conftest*
16555 LIBS="$ac_save_LIBS"
16556
16557 fi
16558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16559   echo "$ac_t""yes" 1>&6
16560   libiconv="-liconv"
16561 else
16562   echo "$ac_t""no" 1>&6
16563 fi
16564
16565     ac_save_LIBS="$LIBS"
16566     LIBS="$LIBS $libiconv"
16567
16568     for ac_func in iconv_open iconv_close iconv nl_langinfo
16569 do
16570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16571 echo "configure:16572: checking for $ac_func" >&5
16572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16573   echo $ac_n "(cached) $ac_c" 1>&6
16574 else
16575   cat > conftest.$ac_ext <<EOF
16576 #line 16577 "configure"
16577 #include "confdefs.h"
16578 /* System header to define __stub macros and hopefully few prototypes,
16579     which can conflict with char $ac_func(); below.  */
16580 #include <assert.h>
16581 /* Override any gcc2 internal prototype to avoid an error.  */
16582 /* We use char because int might match the return type of a gcc2
16583     builtin and then its argument prototype would still apply.  */
16584 char $ac_func();
16585
16586 int main() {
16587
16588 /* The GNU C library defines this for functions which it implements
16589     to always fail with ENOSYS.  Some functions are actually named
16590     something starting with __ and the normal name is an alias.  */
16591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16592 choke me
16593 #else
16594 $ac_func();
16595 #endif
16596
16597 ; return 0; }
16598 EOF
16599 if { (eval echo configure:16600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16600   rm -rf conftest*
16601   eval "ac_cv_func_$ac_func=yes"
16602 else
16603   echo "configure: failed program was:" >&5
16604   cat conftest.$ac_ext >&5
16605   rm -rf conftest*
16606   eval "ac_cv_func_$ac_func=no"
16607 fi
16608 rm -f conftest*
16609 fi
16610
16611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16612   echo "$ac_t""yes" 1>&6
16613     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16614   cat >> confdefs.h <<EOF
16615 #define $ac_tr_func 1
16616 EOF
16617  \
16618     ac_XPG2funcs=yes
16619 else
16620   echo "$ac_t""no" 1>&6
16621 ac_XPG2funcs=no
16622 fi
16623 done
16624
16625   
16626     LIBS="$ac_save_LIBS"
16627
16628     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
16629 echo "configure:16630: checking for XPG2 wchar_t support" >&5
16630     if test x"$ac_has_iconv_h" = xyes &&
16631        test x"$ac_has_langinfo_h" = xyes &&
16632        test x"$ac_XPG2funcs" = xyes; then
16633       ac_XPG2_wchar_t=yes
16634     else
16635       ac_XPG2_wchar_t=no
16636     fi
16637     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
16638   
16639             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
16640 echo "configure:16641: checking for enabled wchar_t specializations" >&5
16641     if test x"$ac_isoC99_wchar_t" = xyes &&
16642        test x"$ac_XPG2_wchar_t" = xyes; then
16643       cat >> confdefs.h <<\EOF
16644 #define _GLIBCPP_USE_WCHAR_T 1
16645 EOF
16646
16647       echo "$ac_t"""yes"" 1>&6
16648     else
16649       echo "$ac_t"""no"" 1>&6
16650     fi
16651   else
16652         echo "configure: warning: wchar_t support disabled." 1>&2
16653   fi
16654
16655   
16656   ac_test_CXXFLAGS="${CXXFLAGS+set}"
16657   ac_save_CXXFLAGS="$CXXFLAGS"
16658   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
16659
16660   
16661   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
16662 echo "configure:16663: checking for strtold declaration" >&5
16663   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
16664     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
16665   echo $ac_n "(cached) $ac_c" 1>&6
16666 else
16667   
16668       
16669       ac_ext=C
16670 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16671 ac_cpp='$CXXCPP $CPPFLAGS'
16672 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16673 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16674 cross_compiling=$ac_cv_prog_cxx_cross
16675
16676       cat > conftest.$ac_ext <<EOF
16677 #line 16678 "configure"
16678 #include "confdefs.h"
16679 #include <stdlib.h>
16680 int main() {
16681  strtold(0, 0);
16682 ; return 0; }
16683 EOF
16684 if { (eval echo configure:16685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16685   rm -rf conftest*
16686   glibcpp_cv_func_strtold_use=yes
16687 else
16688   echo "configure: failed program was:" >&5
16689   cat conftest.$ac_ext >&5
16690   rm -rf conftest*
16691   glibcpp_cv_func_strtold_use=no
16692 fi
16693 rm -f conftest*
16694       ac_ext=c
16695 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16696 ac_cpp='$CPP $CPPFLAGS'
16697 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16698 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16699 cross_compiling=$ac_cv_prog_cc_cross
16700
16701     
16702 fi
16703
16704   fi
16705   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
16706   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
16707     for ac_func in strtold
16708 do
16709 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16710 echo "configure:16711: checking for $ac_func" >&5
16711 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16712   echo $ac_n "(cached) $ac_c" 1>&6
16713 else
16714   cat > conftest.$ac_ext <<EOF
16715 #line 16716 "configure"
16716 #include "confdefs.h"
16717 /* System header to define __stub macros and hopefully few prototypes,
16718     which can conflict with char $ac_func(); below.  */
16719 #include <assert.h>
16720 /* Override any gcc2 internal prototype to avoid an error.  */
16721 /* We use char because int might match the return type of a gcc2
16722     builtin and then its argument prototype would still apply.  */
16723 char $ac_func();
16724
16725 int main() {
16726
16727 /* The GNU C library defines this for functions which it implements
16728     to always fail with ENOSYS.  Some functions are actually named
16729     something starting with __ and the normal name is an alias.  */
16730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16731 choke me
16732 #else
16733 $ac_func();
16734 #endif
16735
16736 ; return 0; }
16737 EOF
16738 if { (eval echo configure:16739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16739   rm -rf conftest*
16740   eval "ac_cv_func_$ac_func=yes"
16741 else
16742   echo "configure: failed program was:" >&5
16743   cat conftest.$ac_ext >&5
16744   rm -rf conftest*
16745   eval "ac_cv_func_$ac_func=no"
16746 fi
16747 rm -f conftest*
16748 fi
16749
16750 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16751   echo "$ac_t""yes" 1>&6
16752     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16753   cat >> confdefs.h <<EOF
16754 #define $ac_tr_func 1
16755 EOF
16756  
16757 else
16758   echo "$ac_t""no" 1>&6
16759 fi
16760 done
16761     
16762   fi
16763
16764   for ac_func in drand48
16765 do
16766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16767 echo "configure:16768: checking for $ac_func" >&5
16768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16769   echo $ac_n "(cached) $ac_c" 1>&6
16770 else
16771   cat > conftest.$ac_ext <<EOF
16772 #line 16773 "configure"
16773 #include "confdefs.h"
16774 /* System header to define __stub macros and hopefully few prototypes,
16775     which can conflict with char $ac_func(); below.  */
16776 #include <assert.h>
16777 /* Override any gcc2 internal prototype to avoid an error.  */
16778 /* We use char because int might match the return type of a gcc2
16779     builtin and then its argument prototype would still apply.  */
16780 char $ac_func();
16781
16782 int main() {
16783
16784 /* The GNU C library defines this for functions which it implements
16785     to always fail with ENOSYS.  Some functions are actually named
16786     something starting with __ and the normal name is an alias.  */
16787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16788 choke me
16789 #else
16790 $ac_func();
16791 #endif
16792
16793 ; return 0; }
16794 EOF
16795 if { (eval echo configure:16796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16796   rm -rf conftest*
16797   eval "ac_cv_func_$ac_func=yes"
16798 else
16799   echo "configure: failed program was:" >&5
16800   cat conftest.$ac_ext >&5
16801   rm -rf conftest*
16802   eval "ac_cv_func_$ac_func=no"
16803 fi
16804 rm -f conftest*
16805 fi
16806
16807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16808   echo "$ac_t""yes" 1>&6
16809     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16810   cat >> confdefs.h <<EOF
16811 #define $ac_tr_func 1
16812 EOF
16813  
16814 else
16815   echo "$ac_t""no" 1>&6
16816 fi
16817 done
16818
16819
16820   CXXFLAGS="$ac_save_CXXFLAGS"
16821
16822   
16823   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16824 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16825 echo "configure:16826: checking for locale.h" >&5
16826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16827   echo $ac_n "(cached) $ac_c" 1>&6
16828 else
16829   cat > conftest.$ac_ext <<EOF
16830 #line 16831 "configure"
16831 #include "confdefs.h"
16832 #include <locale.h>
16833 EOF
16834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16835 { (eval echo configure:16836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16837 if test -z "$ac_err"; then
16838   rm -rf conftest*
16839   eval "ac_cv_header_$ac_safe=yes"
16840 else
16841   echo "$ac_err" >&5
16842   echo "configure: failed program was:" >&5
16843   cat conftest.$ac_ext >&5
16844   rm -rf conftest*
16845   eval "ac_cv_header_$ac_safe=no"
16846 fi
16847 rm -f conftest*
16848 fi
16849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16850   echo "$ac_t""yes" 1>&6
16851   
16852     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16853 echo "configure:16854: checking for LC_MESSAGES" >&5
16854 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16855   echo $ac_n "(cached) $ac_c" 1>&6
16856 else
16857   cat > conftest.$ac_ext <<EOF
16858 #line 16859 "configure"
16859 #include "confdefs.h"
16860 #include <locale.h>
16861 int main() {
16862 return LC_MESSAGES
16863 ; return 0; }
16864 EOF
16865 if { (eval echo configure:16866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16866   rm -rf conftest*
16867   ac_cv_val_LC_MESSAGES=yes
16868 else
16869   echo "configure: failed program was:" >&5
16870   cat conftest.$ac_ext >&5
16871   rm -rf conftest*
16872   ac_cv_val_LC_MESSAGES=no
16873 fi
16874 rm -f conftest*
16875 fi
16876
16877 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16878     if test $ac_cv_val_LC_MESSAGES = yes; then
16879       cat >> confdefs.h <<\EOF
16880 #define HAVE_LC_MESSAGES 1
16881 EOF
16882
16883     fi
16884   
16885 else
16886   echo "$ac_t""no" 1>&6
16887 fi
16888
16889
16890
16891   cat > conftest.$ac_ext <<EOF
16892 #line 16893 "configure"
16893 #include "confdefs.h"
16894
16895   #include <setjmp.h>
16896   
16897 int main() {
16898 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16899 ; return 0; }
16900 EOF
16901 if { (eval echo configure:16902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16902   rm -rf conftest*
16903   cat >> confdefs.h <<\EOF
16904 #define HAVE_SIGSETJMP 1
16905 EOF
16906
16907   
16908 else
16909   echo "configure: failed program was:" >&5
16910   cat conftest.$ac_ext >&5
16911 fi
16912 rm -f conftest*
16913
16914   for ac_hdr in unistd.h
16915 do
16916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16918 echo "configure:16919: checking for $ac_hdr" >&5
16919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16920   echo $ac_n "(cached) $ac_c" 1>&6
16921 else
16922   cat > conftest.$ac_ext <<EOF
16923 #line 16924 "configure"
16924 #include "confdefs.h"
16925 #include <$ac_hdr>
16926 EOF
16927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16928 { (eval echo configure:16929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16930 if test -z "$ac_err"; then
16931   rm -rf conftest*
16932   eval "ac_cv_header_$ac_safe=yes"
16933 else
16934   echo "$ac_err" >&5
16935   echo "configure: failed program was:" >&5
16936   cat conftest.$ac_ext >&5
16937   rm -rf conftest*
16938   eval "ac_cv_header_$ac_safe=no"
16939 fi
16940 rm -f conftest*
16941 fi
16942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16943   echo "$ac_t""yes" 1>&6
16944     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16945   cat >> confdefs.h <<EOF
16946 #define $ac_tr_hdr 1
16947 EOF
16948  
16949 else
16950   echo "$ac_t""no" 1>&6
16951 fi
16952 done
16953
16954 for ac_func in getpagesize
16955 do
16956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16957 echo "configure:16958: checking for $ac_func" >&5
16958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16959   echo $ac_n "(cached) $ac_c" 1>&6
16960 else
16961   cat > conftest.$ac_ext <<EOF
16962 #line 16963 "configure"
16963 #include "confdefs.h"
16964 /* System header to define __stub macros and hopefully few prototypes,
16965     which can conflict with char $ac_func(); below.  */
16966 #include <assert.h>
16967 /* Override any gcc2 internal prototype to avoid an error.  */
16968 /* We use char because int might match the return type of a gcc2
16969     builtin and then its argument prototype would still apply.  */
16970 char $ac_func();
16971
16972 int main() {
16973
16974 /* The GNU C library defines this for functions which it implements
16975     to always fail with ENOSYS.  Some functions are actually named
16976     something starting with __ and the normal name is an alias.  */
16977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16978 choke me
16979 #else
16980 $ac_func();
16981 #endif
16982
16983 ; return 0; }
16984 EOF
16985 if { (eval echo configure:16986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16986   rm -rf conftest*
16987   eval "ac_cv_func_$ac_func=yes"
16988 else
16989   echo "configure: failed program was:" >&5
16990   cat conftest.$ac_ext >&5
16991   rm -rf conftest*
16992   eval "ac_cv_func_$ac_func=no"
16993 fi
16994 rm -f conftest*
16995 fi
16996
16997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16998   echo "$ac_t""yes" 1>&6
16999     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17000   cat >> confdefs.h <<EOF
17001 #define $ac_tr_func 1
17002 EOF
17003  
17004 else
17005   echo "$ac_t""no" 1>&6
17006 fi
17007 done
17008
17009 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
17010 echo "configure:17011: checking for working mmap" >&5
17011 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
17012   echo $ac_n "(cached) $ac_c" 1>&6
17013 else
17014   if test "$cross_compiling" = yes; then
17015   ac_cv_func_mmap_fixed_mapped=no
17016 else
17017   cat > conftest.$ac_ext <<EOF
17018 #line 17019 "configure"
17019 #include "confdefs.h"
17020
17021 /* Thanks to Mike Haertel and Jim Avera for this test.
17022    Here is a matrix of mmap possibilities:
17023         mmap private not fixed
17024         mmap private fixed at somewhere currently unmapped
17025         mmap private fixed at somewhere already mapped
17026         mmap shared not fixed
17027         mmap shared fixed at somewhere currently unmapped
17028         mmap shared fixed at somewhere already mapped
17029    For private mappings, we should verify that changes cannot be read()
17030    back from the file, nor mmap's back from the file at a different
17031    address.  (There have been systems where private was not correctly
17032    implemented like the infamous i386 svr4.0, and systems where the
17033    VM page cache was not coherent with the filesystem buffer cache
17034    like early versions of FreeBSD and possibly contemporary NetBSD.)
17035    For shared mappings, we should conversely verify that changes get
17036    propogated back to all the places they're supposed to be.
17037
17038    Grep wants private fixed already mapped.
17039    The main things grep needs to know about mmap are:
17040    * does it exist and is it safe to write into the mmap'd area
17041    * how to use it (BSD variants)  */
17042 #include <sys/types.h>
17043 #include <fcntl.h>
17044 #include <sys/mman.h>
17045
17046 /* This mess was copied from the GNU getpagesize.h.  */
17047 #ifndef HAVE_GETPAGESIZE
17048 # ifdef HAVE_UNISTD_H
17049 #  include <unistd.h>
17050 # endif
17051
17052 /* Assume that all systems that can run configure have sys/param.h.  */
17053 # ifndef HAVE_SYS_PARAM_H
17054 #  define HAVE_SYS_PARAM_H 1
17055 # endif
17056
17057 # ifdef _SC_PAGESIZE
17058 #  define getpagesize() sysconf(_SC_PAGESIZE)
17059 # else /* no _SC_PAGESIZE */
17060 #  ifdef HAVE_SYS_PARAM_H
17061 #   include <sys/param.h>
17062 #   ifdef EXEC_PAGESIZE
17063 #    define getpagesize() EXEC_PAGESIZE
17064 #   else /* no EXEC_PAGESIZE */
17065 #    ifdef NBPG
17066 #     define getpagesize() NBPG * CLSIZE
17067 #     ifndef CLSIZE
17068 #      define CLSIZE 1
17069 #     endif /* no CLSIZE */
17070 #    else /* no NBPG */
17071 #     ifdef NBPC
17072 #      define getpagesize() NBPC
17073 #     else /* no NBPC */
17074 #      ifdef PAGESIZE
17075 #       define getpagesize() PAGESIZE
17076 #      endif /* PAGESIZE */
17077 #     endif /* no NBPC */
17078 #    endif /* no NBPG */
17079 #   endif /* no EXEC_PAGESIZE */
17080 #  else /* no HAVE_SYS_PARAM_H */
17081 #   define getpagesize() 8192   /* punt totally */
17082 #  endif /* no HAVE_SYS_PARAM_H */
17083 # endif /* no _SC_PAGESIZE */
17084
17085 #endif /* no HAVE_GETPAGESIZE */
17086
17087 #ifdef __cplusplus
17088 extern "C" { void *malloc(unsigned); }
17089 #else
17090 char *malloc();
17091 #endif
17092
17093 int
17094 main()
17095 {
17096         char *data, *data2, *data3;
17097         int i, pagesize;
17098         int fd;
17099
17100         pagesize = getpagesize();
17101
17102         /*
17103          * First, make a file with some known garbage in it.
17104          */
17105         data = malloc(pagesize);
17106         if (!data)
17107                 exit(1);
17108         for (i = 0; i < pagesize; ++i)
17109                 *(data + i) = rand();
17110         umask(0);
17111         fd = creat("conftestmmap", 0600);
17112         if (fd < 0)
17113                 exit(1);
17114         if (write(fd, data, pagesize) != pagesize)
17115                 exit(1);
17116         close(fd);
17117
17118         /*
17119          * Next, try to mmap the file at a fixed address which
17120          * already has something else allocated at it.  If we can,
17121          * also make sure that we see the same garbage.
17122          */
17123         fd = open("conftestmmap", O_RDWR);
17124         if (fd < 0)
17125                 exit(1);
17126         data2 = malloc(2 * pagesize);
17127         if (!data2)
17128                 exit(1);
17129         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
17130         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
17131             MAP_PRIVATE | MAP_FIXED, fd, 0L))
17132                 exit(1);
17133         for (i = 0; i < pagesize; ++i)
17134                 if (*(data + i) != *(data2 + i))
17135                         exit(1);
17136
17137         /*
17138          * Finally, make sure that changes to the mapped area
17139          * do not percolate back to the file as seen by read().
17140          * (This is a bug on some variants of i386 svr4.0.)
17141          */
17142         for (i = 0; i < pagesize; ++i)
17143                 *(data2 + i) = *(data2 + i) + 1;
17144         data3 = malloc(pagesize);
17145         if (!data3)
17146                 exit(1);
17147         if (read(fd, data3, pagesize) != pagesize)
17148                 exit(1);
17149         for (i = 0; i < pagesize; ++i)
17150                 if (*(data + i) != *(data3 + i))
17151                         exit(1);
17152         close(fd);
17153         unlink("conftestmmap");
17154         exit(0);
17155 }
17156
17157 EOF
17158 if { (eval echo configure:17159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
17159 then
17160   ac_cv_func_mmap_fixed_mapped=yes
17161 else
17162   echo "configure: failed program was:" >&5
17163   cat conftest.$ac_ext >&5
17164   rm -fr conftest*
17165   ac_cv_func_mmap_fixed_mapped=no
17166 fi
17167 rm -fr conftest*
17168 fi
17169
17170 fi
17171
17172 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
17173 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17174   cat >> confdefs.h <<\EOF
17175 #define HAVE_MMAP 1
17176 EOF
17177
17178 fi
17179
17180
17181   # Establish limits on memory usage during 'make check'
17182   
17183   
17184   setrlimit_have_headers=yes
17185   for ac_hdr in sys/resource.h unistd.h
17186 do
17187 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17189 echo "configure:17190: checking for $ac_hdr" >&5
17190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17191   echo $ac_n "(cached) $ac_c" 1>&6
17192 else
17193   cat > conftest.$ac_ext <<EOF
17194 #line 17195 "configure"
17195 #include "confdefs.h"
17196 #include <$ac_hdr>
17197 EOF
17198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17199 { (eval echo configure:17200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17201 if test -z "$ac_err"; then
17202   rm -rf conftest*
17203   eval "ac_cv_header_$ac_safe=yes"
17204 else
17205   echo "$ac_err" >&5
17206   echo "configure: failed program was:" >&5
17207   cat conftest.$ac_ext >&5
17208   rm -rf conftest*
17209   eval "ac_cv_header_$ac_safe=no"
17210 fi
17211 rm -f conftest*
17212 fi
17213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17214   echo "$ac_t""yes" 1>&6
17215     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17216   cat >> confdefs.h <<EOF
17217 #define $ac_tr_hdr 1
17218 EOF
17219  
17220 else
17221   echo "$ac_t""no" 1>&6
17222 setrlimit_have_headers=no
17223 fi
17224 done
17225
17226   # If don't have the headers, then we can't run the tests now, and we
17227   # won't be seeing any of these during testsuite compilation.
17228   if test $setrlimit_have_headers = yes; then
17229     # Can't do these in a loop, else the resulting syntax is wrong.
17230     
17231   cat > conftest.$ac_ext <<EOF
17232 #line 17233 "configure"
17233 #include "confdefs.h"
17234 #include <sys/resource.h>
17235                   #include <unistd.h>
17236                  
17237 int main() {
17238  int f = RLIMIT_DATA ; 
17239 ; return 0; }
17240 EOF
17241 if { (eval echo configure:17242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17242   rm -rf conftest*
17243   glibcpp_mresult=1
17244 else
17245   echo "configure: failed program was:" >&5
17246   cat conftest.$ac_ext >&5
17247   rm -rf conftest*
17248   glibcpp_mresult=0
17249 fi
17250 rm -f conftest*
17251   cat >> confdefs.h <<EOF
17252 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
17253 EOF
17254
17255
17256     
17257   cat > conftest.$ac_ext <<EOF
17258 #line 17259 "configure"
17259 #include "confdefs.h"
17260 #include <sys/resource.h>
17261                   #include <unistd.h>
17262                  
17263 int main() {
17264  int f = RLIMIT_RSS ; 
17265 ; return 0; }
17266 EOF
17267 if { (eval echo configure:17268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17268   rm -rf conftest*
17269   glibcpp_mresult=1
17270 else
17271   echo "configure: failed program was:" >&5
17272   cat conftest.$ac_ext >&5
17273   rm -rf conftest*
17274   glibcpp_mresult=0
17275 fi
17276 rm -f conftest*
17277   cat >> confdefs.h <<EOF
17278 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
17279 EOF
17280
17281
17282     
17283   cat > conftest.$ac_ext <<EOF
17284 #line 17285 "configure"
17285 #include "confdefs.h"
17286 #include <sys/resource.h>
17287                   #include <unistd.h>
17288                  
17289 int main() {
17290  int f = RLIMIT_VMEM ; 
17291 ; return 0; }
17292 EOF
17293 if { (eval echo configure:17294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17294   rm -rf conftest*
17295   glibcpp_mresult=1
17296 else
17297   echo "configure: failed program was:" >&5
17298   cat conftest.$ac_ext >&5
17299   rm -rf conftest*
17300   glibcpp_mresult=0
17301 fi
17302 rm -f conftest*
17303   cat >> confdefs.h <<EOF
17304 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
17305 EOF
17306
17307
17308     
17309   cat > conftest.$ac_ext <<EOF
17310 #line 17311 "configure"
17311 #include "confdefs.h"
17312 #include <sys/resource.h>
17313                   #include <unistd.h>
17314                  
17315 int main() {
17316  int f = RLIMIT_AS ; 
17317 ; return 0; }
17318 EOF
17319 if { (eval echo configure:17320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17320   rm -rf conftest*
17321   glibcpp_mresult=1
17322 else
17323   echo "configure: failed program was:" >&5
17324   cat conftest.$ac_ext >&5
17325   rm -rf conftest*
17326   glibcpp_mresult=0
17327 fi
17328 rm -f conftest*
17329   cat >> confdefs.h <<EOF
17330 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
17331 EOF
17332
17333
17334
17335     # Check for rlimit, setrlimit.
17336     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
17337   echo $ac_n "(cached) $ac_c" 1>&6
17338 else
17339   
17340       cat > conftest.$ac_ext <<EOF
17341 #line 17342 "configure"
17342 #include "confdefs.h"
17343 #include <sys/resource.h>
17344                       #include <unistd.h>
17345                      
17346 int main() {
17347  struct rlimit r; setrlimit(0, &r);
17348 ; return 0; }
17349 EOF
17350 if { (eval echo configure:17351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17351   rm -rf conftest*
17352   ac_setrlimit=yes
17353 else
17354   echo "configure: failed program was:" >&5
17355   cat conftest.$ac_ext >&5
17356   rm -rf conftest*
17357   ac_setrlimit=no
17358 fi
17359 rm -f conftest*
17360     
17361 fi
17362
17363   fi
17364
17365   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
17366 echo "configure:17367: checking for testsuite memory limit support" >&5
17367   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
17368     ac_mem_limits=yes
17369     cat >> confdefs.h <<\EOF
17370 #define _GLIBCPP_MEM_LIMITS 1
17371 EOF
17372
17373   else
17374     ac_mem_limits=no
17375   fi
17376   echo "$ac_t""$ac_mem_limits" 1>&6
17377
17378
17379 fi
17380
17381
17382 # Propagate the target-specific source directories through the build chain.
17383 OS_INC_SRCDIR=$os_include_dir/bits
17384 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
17385 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
17386
17387
17388
17389
17390 # Set up cross-compile flags
17391
17392
17393
17394 if test "$CANADIAN" = yes; then
17395   CANADIAN_TRUE=
17396   CANADIAN_FALSE='#'
17397 else
17398   CANADIAN_TRUE='#'
17399   CANADIAN_FALSE=
17400 fi
17401  
17402 cat > confcache <<\EOF
17403 # This file is a shell script that caches the results of configure
17404 # tests run on this system so they can be shared between configure
17405 # scripts and configure runs.  It is not useful on other systems.
17406 # If it contains results you don't want to keep, you may remove or edit it.
17407 #
17408 # By default, configure uses ./config.cache as the cache file,
17409 # creating it if it does not exist already.  You can give configure
17410 # the --cache-file=FILE option to use a different cache file; that is
17411 # what configure does when it calls configure scripts in
17412 # subdirectories, so they share the cache.
17413 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17414 # config.status only pays attention to the cache file if you give it the
17415 # --recheck option to rerun configure.
17416 #
17417 EOF
17418 # The following way of writing the cache mishandles newlines in values,
17419 # but we know of no workaround that is simple, portable, and efficient.
17420 # So, don't put newlines in cache variables' values.
17421 # Ultrix sh set writes to stderr and can't be redirected directly,
17422 # and sets the high bit in the cache file unless we assign to the vars.
17423 (set) 2>&1 |
17424   case `(ac_space=' '; set | grep ac_space) 2>&1` in
17425   *ac_space=\ *)
17426     # `set' does not quote correctly, so add quotes (double-quote substitution
17427     # turns \\\\ into \\, and sed turns \\ into \).
17428     sed -n \
17429       -e "s/'/'\\\\''/g" \
17430       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17431     ;;
17432   *)
17433     # `set' quotes correctly as required by POSIX, so do not add quotes.
17434     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17435     ;;
17436   esac >> confcache
17437 if cmp -s $cache_file confcache; then
17438   :
17439 else
17440   if test -w $cache_file; then
17441     echo "updating cache $cache_file"
17442     cat confcache > $cache_file
17443   else
17444     echo "not updating unwritable cache $cache_file"
17445   fi
17446 fi
17447 rm -f confcache
17448
17449
17450 if test "${multilib}" = "yes"; then
17451   multilib_arg="--enable-multilib"
17452 else
17453   multilib_arg=
17454 fi
17455
17456 # Needed so that g++ can find the correct include subdir automatically.
17457 INTERFACE=v3
17458
17459 # Export all the install information
17460
17461 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
17462 # exported correctly in GLIBCPP_CONFIGURE.
17463 glibcpp_toolexecdir=no
17464 glibcpp_toolexeclibdir=no
17465 glibcpp_prefixdir=${prefix}
17466
17467 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
17468 echo "configure:17469: checking for interface version number" >&5
17469 libstdcxx_interface=$INTERFACE
17470 echo "$ac_t""$libstdcxx_interface" 1>&6
17471
17472 # Process the option --with-gxx-include-dir=<path to include-files directory>
17473 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
17474 echo "configure:17475: checking for --with-gxx-include-dir" >&5
17475 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
17476 if test "${with_gxx_include_dir+set}" = set; then
17477   withval="$with_gxx_include_dir"
17478   case "${withval}" in
17479   yes)
17480     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
17481     gxx_include_dir=no
17482     ;;
17483   no)
17484     gxx_include_dir=no
17485     ;;
17486   *)
17487     gxx_include_dir=${withval}
17488     ;;
17489 esac
17490 else
17491   gxx_include_dir=no
17492 fi
17493
17494 echo "$ac_t""$gxx_include_dir" 1>&6
17495
17496 # Process the option "--enable-version-specific-runtime-libs"
17497 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
17498 echo "configure:17499: checking for --enable-version-specific-runtime-libs" >&5
17499 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17500 if test "${enable_version_specific_runtime_libs+set}" = set; then
17501   enableval="$enable_version_specific_runtime_libs"
17502   case "$enableval" in
17503  yes) version_specific_libs=yes ;;
17504  no)  version_specific_libs=no ;;
17505  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
17506  esac
17507 else
17508   version_specific_libs=no
17509 fi
17510 # Option set, now we can test it.
17511 echo "$ac_t""$version_specific_libs" 1>&6
17512
17513 if test $version_specific_libs = yes; then
17514   # Need the gcc compiler version to know where to install libraries
17515   # and header files if --enable-version-specific-runtime-libs option
17516   # is selected.
17517     gcc_version_trigger=${srcdir}/../gcc/version.c
17518   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
17519   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
17520   gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
17521   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
17522   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
17523   fi
17524
17525 # Default case for install directory for include files.
17526 if test $version_specific_libs = no &&
17527    test $gxx_include_dir = no; then
17528   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
17529 fi
17530
17531 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
17532 # Install a library built with a cross compiler in tooldir, not libdir.
17533 if test x"$glibcpp_toolexecdir" = x"no"; then 
17534   if test -n "$with_cross_host" &&
17535      test x"$with_cross_host" != x"no"; then
17536     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
17537     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
17538   else
17539     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
17540     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
17541   fi
17542 fi
17543
17544 echo $ac_n "checking for install location""... $ac_c" 1>&6
17545 echo "configure:17546: checking for install location" >&5
17546 echo "$ac_t""$gxx_include_dir" 1>&6
17547
17548
17549
17550
17551
17552
17553
17554 # Export all the include and flag information to makefiles.
17555
17556   # Root level of the build directory include sources.
17557   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
17558
17559   # Passed down for canadian crosses.
17560   if test x"$CANADIAN" = xyes; then
17561     TOPLEVEL_INCLUDES='-I$(includedir)'
17562   fi
17563
17564   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
17565
17566   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
17567
17568   if test x"$need_libio" = xyes; then
17569     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
17570     
17571   fi
17572
17573   # Now, export this to all the little Makefiles....
17574   
17575   
17576   
17577   
17578
17579
17580   # Optimization flags that are probably a good idea for thrill-seekers. Just
17581   # uncomment the lines below and make, everything else is ready to go... 
17582   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
17583   OPTIMIZE_CXXFLAGS=
17584   
17585
17586   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
17587   
17588
17589
17590 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
17591    grep "enable shared" > /dev/null; then
17592   LIBSUPCXX_PICFLAGS=-prefer-pic
17593 else
17594   LIBSUPCXX_PICFLAGS=
17595 fi
17596
17597
17598 # Generate the various Makefiles, include files, and scripts.
17599 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
17600 # and libsupc++/Makefile.am so that multilib installs will end up
17601 # installed in the correct place. To work around this not being passed
17602 # down from config-ml.in -> top_srcdir/Makefile.am ->
17603 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
17604 trap '' 1 2 15
17605 cat > confcache <<\EOF
17606 # This file is a shell script that caches the results of configure
17607 # tests run on this system so they can be shared between configure
17608 # scripts and configure runs.  It is not useful on other systems.
17609 # If it contains results you don't want to keep, you may remove or edit it.
17610 #
17611 # By default, configure uses ./config.cache as the cache file,
17612 # creating it if it does not exist already.  You can give configure
17613 # the --cache-file=FILE option to use a different cache file; that is
17614 # what configure does when it calls configure scripts in
17615 # subdirectories, so they share the cache.
17616 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17617 # config.status only pays attention to the cache file if you give it the
17618 # --recheck option to rerun configure.
17619 #
17620 EOF
17621 # The following way of writing the cache mishandles newlines in values,
17622 # but we know of no workaround that is simple, portable, and efficient.
17623 # So, don't put newlines in cache variables' values.
17624 # Ultrix sh set writes to stderr and can't be redirected directly,
17625 # and sets the high bit in the cache file unless we assign to the vars.
17626 (set) 2>&1 |
17627   case `(ac_space=' '; set | grep ac_space) 2>&1` in
17628   *ac_space=\ *)
17629     # `set' does not quote correctly, so add quotes (double-quote substitution
17630     # turns \\\\ into \\, and sed turns \\ into \).
17631     sed -n \
17632       -e "s/'/'\\\\''/g" \
17633       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17634     ;;
17635   *)
17636     # `set' quotes correctly as required by POSIX, so do not add quotes.
17637     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17638     ;;
17639   esac >> confcache
17640 if cmp -s $cache_file confcache; then
17641   :
17642 else
17643   if test -w $cache_file; then
17644     echo "updating cache $cache_file"
17645     cat confcache > $cache_file
17646   else
17647     echo "not updating unwritable cache $cache_file"
17648   fi
17649 fi
17650 rm -f confcache
17651
17652 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17653
17654 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17655 # Let make expand exec_prefix.
17656 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17657
17658 # Any assignment to VPATH causes Sun make to only execute
17659 # the first set of double-colon rules, so remove it if not needed.
17660 # If there is a colon in the path, we need to keep it.
17661 if test "x$srcdir" = x.; then
17662   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
17663 fi
17664
17665 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17666
17667 DEFS=-DHAVE_CONFIG_H
17668
17669 # Without the "./", some shells look in PATH for config.status.
17670 : ${CONFIG_STATUS=./config.status}
17671
17672 echo creating $CONFIG_STATUS
17673 rm -f $CONFIG_STATUS
17674 cat > $CONFIG_STATUS <<EOF
17675 #! /bin/sh
17676 # Generated automatically by configure.
17677 # Run this file to recreate the current configuration.
17678 # This directory was configured as follows,
17679 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17680 #
17681 # $0 $ac_configure_args
17682 #
17683 # Compiler output produced by configure, useful for debugging
17684 # configure, is in ./config.log if it exists.
17685
17686 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17687 for ac_option
17688 do
17689   case "\$ac_option" in
17690   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17691     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17692     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17693   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17694     echo "$CONFIG_STATUS generated by autoconf version 2.13"
17695     exit 0 ;;
17696   -help | --help | --hel | --he | --h)
17697     echo "\$ac_cs_usage"; exit 0 ;;
17698   *) echo "\$ac_cs_usage"; exit 1 ;;
17699   esac
17700 done
17701
17702 ac_given_srcdir=$srcdir
17703 ac_given_INSTALL="$INSTALL"
17704
17705 trap 'rm -fr `echo "Makefile \
17706     include/Makefile src/Makefile \
17707     libmath/Makefile libio/Makefile libsupc++/Makefile \
17708     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17709 EOF
17710 cat >> $CONFIG_STATUS <<EOF
17711
17712 # Protect against being on the right side of a sed subst in config.status.
17713 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17714  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17715 $ac_vpsub
17716 $extrasub
17717 s%@SHELL@%$SHELL%g
17718 s%@CFLAGS@%$CFLAGS%g
17719 s%@CPPFLAGS@%$CPPFLAGS%g
17720 s%@CXXFLAGS@%$CXXFLAGS%g
17721 s%@FFLAGS@%$FFLAGS%g
17722 s%@DEFS@%$DEFS%g
17723 s%@LDFLAGS@%$LDFLAGS%g
17724 s%@LIBS@%$LIBS%g
17725 s%@exec_prefix@%$exec_prefix%g
17726 s%@prefix@%$prefix%g
17727 s%@program_transform_name@%$program_transform_name%g
17728 s%@bindir@%$bindir%g
17729 s%@sbindir@%$sbindir%g
17730 s%@libexecdir@%$libexecdir%g
17731 s%@datadir@%$datadir%g
17732 s%@sysconfdir@%$sysconfdir%g
17733 s%@sharedstatedir@%$sharedstatedir%g
17734 s%@localstatedir@%$localstatedir%g
17735 s%@libdir@%$libdir%g
17736 s%@includedir@%$includedir%g
17737 s%@oldincludedir@%$oldincludedir%g
17738 s%@infodir@%$infodir%g
17739 s%@mandir@%$mandir%g
17740 s%@PACKAGE@%$PACKAGE%g
17741 s%@release_VERSION@%$release_VERSION%g
17742 s%@libtool_VERSION@%$libtool_VERSION%g
17743 s%@host@%$host%g
17744 s%@host_alias@%$host_alias%g
17745 s%@host_cpu@%$host_cpu%g
17746 s%@host_vendor@%$host_vendor%g
17747 s%@host_os@%$host_os%g
17748 s%@target@%$target%g
17749 s%@target_alias@%$target_alias%g
17750 s%@target_cpu@%$target_cpu%g
17751 s%@target_vendor@%$target_vendor%g
17752 s%@target_os@%$target_os%g
17753 s%@build@%$build%g
17754 s%@build_alias@%$build_alias%g
17755 s%@build_cpu@%$build_cpu%g
17756 s%@build_vendor@%$build_vendor%g
17757 s%@build_os@%$build_os%g
17758 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17759 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17760 s%@INSTALL_DATA@%$INSTALL_DATA%g
17761 s%@VERSION@%$VERSION%g
17762 s%@ACLOCAL@%$ACLOCAL%g
17763 s%@AUTOCONF@%$AUTOCONF%g
17764 s%@AUTOMAKE@%$AUTOMAKE%g
17765 s%@AUTOHEADER@%$AUTOHEADER%g
17766 s%@MAKEINFO@%$MAKEINFO%g
17767 s%@SET_MAKE@%$SET_MAKE%g
17768 s%@toplevel_srcdir@%$toplevel_srcdir%g
17769 s%@glibcpp_builddir@%$glibcpp_builddir%g
17770 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
17771 s%@LN_S@%$LN_S%g
17772 s%@glibcpp_basedir@%$glibcpp_basedir%g
17773 s%@CC@%$CC%g
17774 s%@glibcpp_CXX@%$glibcpp_CXX%g
17775 s%@AS@%$AS%g
17776 s%@AR@%$AR%g
17777 s%@RANLIB@%$RANLIB%g
17778 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
17779 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
17780 s%@MAINT@%$MAINT%g
17781 s%@EXEEXT@%$EXEEXT%g
17782 s%@OBJEXT@%$OBJEXT%g
17783 s%@STRIP@%$STRIP%g
17784 s%@LIBTOOL@%$LIBTOOL%g
17785 s%@CXXCPP@%$CXXCPP%g
17786 s%@enable_shared@%$enable_shared%g
17787 s%@enable_static@%$enable_static%g
17788 s%@ifGNUmake@%$ifGNUmake%g
17789 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
17790 s%@CPP@%$CPP%g
17791 s%@CSTDIO_H@%$CSTDIO_H%g
17792 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
17793 s%@CCODECVT_C@%$CCODECVT_C%g
17794 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
17795 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
17796 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
17797 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
17798 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
17799 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
17800 s%@libio_la@%$libio_la%g
17801 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
17802 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
17803 s%@glibcpp_localedir@%$glibcpp_localedir%g
17804 s%@USE_NLS@%$USE_NLS%g
17805 s%@CLOCALE_H@%$CLOCALE_H%g
17806 s%@CCODECVT_H@%$CCODECVT_H%g
17807 s%@CMESSAGES_H@%$CMESSAGES_H%g
17808 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
17809 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
17810 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
17811 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
17812 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
17813 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
17814 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
17815 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
17816 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
17817 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
17818 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
17819 s%@WERROR@%$WERROR%g
17820 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
17821 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
17822 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
17823 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
17824 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
17825 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
17826 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
17827 s%@gxx_include_dir@%$gxx_include_dir%g
17828 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
17829 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
17830 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
17831 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
17832 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
17833 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
17834 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
17835 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
17836 s%@WARN_FLAGS@%$WARN_FLAGS%g
17837 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
17838
17839 CEOF
17840 EOF
17841
17842 cat >> $CONFIG_STATUS <<\EOF
17843
17844 # Split the substitutions into bite-sized pieces for seds with
17845 # small command number limits, like on Digital OSF/1 and HP-UX.
17846 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17847 ac_file=1 # Number of current file.
17848 ac_beg=1 # First line for current file.
17849 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17850 ac_more_lines=:
17851 ac_sed_cmds=""
17852 while $ac_more_lines; do
17853   if test $ac_beg -gt 1; then
17854     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17855   else
17856     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17857   fi
17858   if test ! -s conftest.s$ac_file; then
17859     ac_more_lines=false
17860     rm -f conftest.s$ac_file
17861   else
17862     if test -z "$ac_sed_cmds"; then
17863       ac_sed_cmds="sed -f conftest.s$ac_file"
17864     else
17865       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17866     fi
17867     ac_file=`expr $ac_file + 1`
17868     ac_beg=$ac_end
17869     ac_end=`expr $ac_end + $ac_max_sed_cmds`
17870   fi
17871 done
17872 if test -z "$ac_sed_cmds"; then
17873   ac_sed_cmds=cat
17874 fi
17875 EOF
17876
17877 cat >> $CONFIG_STATUS <<EOF
17878
17879 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
17880     include/Makefile src/Makefile \
17881     libmath/Makefile libio/Makefile libsupc++/Makefile \
17882     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
17883 EOF
17884 cat >> $CONFIG_STATUS <<\EOF
17885 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17886   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17887   case "$ac_file" in
17888   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17889        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17890   *) ac_file_in="${ac_file}.in" ;;
17891   esac
17892
17893   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17894
17895   # Remove last slash and all that follows it.  Not all systems have dirname.
17896   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17897   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17898     # The file is in a subdirectory.
17899     test ! -d "$ac_dir" && mkdir "$ac_dir"
17900     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17901     # A "../" for each directory in $ac_dir_suffix.
17902     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17903   else
17904     ac_dir_suffix= ac_dots=
17905   fi
17906
17907   case "$ac_given_srcdir" in
17908   .)  srcdir=.
17909       if test -z "$ac_dots"; then top_srcdir=.
17910       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17911   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17912   *) # Relative path.
17913     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17914     top_srcdir="$ac_dots$ac_given_srcdir" ;;
17915   esac
17916
17917   case "$ac_given_INSTALL" in
17918   [/$]*) INSTALL="$ac_given_INSTALL" ;;
17919   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17920   esac
17921
17922   echo creating "$ac_file"
17923   rm -f "$ac_file"
17924   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17925   case "$ac_file" in
17926   *Makefile*) ac_comsub="1i\\
17927 # $configure_input" ;;
17928   *) ac_comsub= ;;
17929   esac
17930
17931   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17932   sed -e "$ac_comsub
17933 s%@configure_input@%$configure_input%g
17934 s%@srcdir@%$srcdir%g
17935 s%@top_srcdir@%$top_srcdir%g
17936 s%@INSTALL@%$INSTALL%g
17937 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17938 fi; done
17939 rm -f conftest.s*
17940
17941 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17942 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17943 #
17944 # ac_d sets the value in "#define NAME VALUE" lines.
17945 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17946 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
17947 ac_dC='\3'
17948 ac_dD='%g'
17949 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17950 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17951 ac_uB='\([      ]\)%\1#\2define\3'
17952 ac_uC=' '
17953 ac_uD='\4%g'
17954 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17955 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17956 ac_eB='$%\1#\2define\3'
17957 ac_eC=' '
17958 ac_eD='%g'
17959
17960 if test "${CONFIG_HEADERS+set}" != set; then
17961 EOF
17962 cat >> $CONFIG_STATUS <<EOF
17963   CONFIG_HEADERS="config.h"
17964 EOF
17965 cat >> $CONFIG_STATUS <<\EOF
17966 fi
17967 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17968   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17969   case "$ac_file" in
17970   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17971        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17972   *) ac_file_in="${ac_file}.in" ;;
17973   esac
17974
17975   echo creating $ac_file
17976
17977   rm -f conftest.frag conftest.in conftest.out
17978   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17979   cat $ac_file_inputs > conftest.in
17980
17981 EOF
17982
17983 # Transform confdefs.h into a sed script conftest.vals that substitutes
17984 # the proper values into config.h.in to produce config.h.  And first:
17985 # Protect against being on the right side of a sed subst in config.status.
17986 # Protect against being in an unquoted here document in config.status.
17987 rm -f conftest.vals
17988 cat > conftest.hdr <<\EOF
17989 s/[\\&%]/\\&/g
17990 s%[\\$`]%\\&%g
17991 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17992 s%ac_d%ac_u%gp
17993 s%ac_u%ac_e%gp
17994 EOF
17995 sed -n -f conftest.hdr confdefs.h > conftest.vals
17996 rm -f conftest.hdr
17997
17998 # This sed command replaces #undef with comments.  This is necessary, for
17999 # example, in the case of _POSIX_SOURCE, which is predefined and required
18000 # on some systems where configure will not decide to define it.
18001 cat >> conftest.vals <<\EOF
18002 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18003 EOF
18004
18005 # Break up conftest.vals because some shells have a limit on
18006 # the size of here documents, and old seds have small limits too.
18007
18008 rm -f conftest.tail
18009 while :
18010 do
18011   ac_lines=`grep -c . conftest.vals`
18012   # grep -c gives empty output for an empty file on some AIX systems.
18013   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18014   # Write a limited-size here document to conftest.frag.
18015   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18016   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18017   echo 'CEOF
18018   sed -f conftest.frag conftest.in > conftest.out
18019   rm -f conftest.in
18020   mv conftest.out conftest.in
18021 ' >> $CONFIG_STATUS
18022   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18023   rm -f conftest.vals
18024   mv conftest.tail conftest.vals
18025 done
18026 rm -f conftest.vals
18027
18028 cat >> $CONFIG_STATUS <<\EOF
18029   rm -f conftest.frag conftest.h
18030   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
18031   cat conftest.in >> conftest.h
18032   rm -f conftest.in
18033   if cmp -s $ac_file conftest.h 2>/dev/null; then
18034     echo "$ac_file is unchanged"
18035     rm -f conftest.h
18036   else
18037     # Remove last slash and all that follows it.  Not all systems have dirname.
18038       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18039       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18040       # The file is in a subdirectory.
18041       test ! -d "$ac_dir" && mkdir "$ac_dir"
18042     fi
18043     rm -f $ac_file
18044     mv conftest.h $ac_file
18045   fi
18046 fi; done
18047
18048 EOF
18049
18050 cat >> $CONFIG_STATUS <<EOF
18051 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC"
18052 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/messages.cc src/moneypunct.cc src/numpunct.cc src/time.cc"
18053 EOF
18054
18055 cat >> $CONFIG_STATUS <<\EOF
18056 srcdir=$ac_given_srcdir
18057 while test -n "$ac_sources"; do
18058   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
18059   set $ac_sources; ac_source=$1; shift; ac_sources=$*
18060
18061   echo "linking $srcdir/$ac_source to $ac_dest"
18062
18063   if test ! -r $srcdir/$ac_source; then
18064     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
18065   fi
18066   rm -f $ac_dest
18067
18068   # Make relative symlinks.
18069   # Remove last slash and all that follows it.  Not all systems have dirname.
18070   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
18071   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
18072     # The dest file is in a subdirectory.
18073     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
18074     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
18075     # A "../" for each directory in $ac_dest_dir_suffix.
18076     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
18077   else
18078     ac_dest_dir_suffix= ac_dots=
18079   fi
18080
18081   case "$srcdir" in
18082   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
18083   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
18084   esac
18085
18086   # Make a symlink if possible; otherwise try a hard link.
18087   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18088     ln $srcdir/$ac_source $ac_dest; then :
18089   else
18090     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
18091   fi
18092 done
18093 EOF
18094 cat >> $CONFIG_STATUS <<EOF
18095
18096 srcdir=${srcdir}
18097 host=${host}
18098 target=${target}
18099 with_multisubdir=${with_multisubdir}
18100 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18101 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18102 glibcpp_basedir=${glibcpp_basedir}
18103 CC="${CC}"
18104 CXX="${CXX}"
18105
18106 EOF
18107 cat >> $CONFIG_STATUS <<\EOF
18108 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
18109 if test -n "$CONFIG_FILES"; then
18110   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
18111   grep '^MULTISUBDIR =' Makefile >> src/Makefile
18112   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
18113 fi
18114 chmod +x mkcheck
18115 chmod +x testsuite_flags
18116
18117 exit 0
18118 EOF
18119 chmod +x $CONFIG_STATUS
18120 rm -fr confdefs* $ac_clean_files
18121 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18122
18123
18124
18125 # Sanity checking & User-visible messages.
18126 # Checks down here, otherwise they get scrolled off before
18127 # the user will notice.
18128
18129 # Trying to get more people to read documentation.  Possibly remove
18130 # check and warn all the time. There is no "informational" AC_MSG_
18131 # macro, so these are going to be printed even when --quiet/--silent
18132 # is given.
18133 if test ! -f stamp-sanity-warned; then
18134   touch stamp-sanity-warned
18135   echo ""
18136   echo "Please make certain that you read the installation information here:"
18137   echo "  faster => ${srcdir}/docs/install.html"
18138   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
18139   echo ""
18140   echo "and the configuration information here:"
18141   echo "  faster => ${srcdir}/docs/configopts.html"
18142   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
18143   echo ""
18144   echo "before proceeding with ${_cv_gnu_make_command}."
18145   echo ""
18146 fi