OSDN Git Service

2001-04-17 Benjamin Kosnik <bkoz@redhat.com>
[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   --with-target-subdir=SUBDIR
16                            configuring in a subdirectory"
17 ac_help="$ac_help
18   --with-cross-host=HOST  configuring with a cross compiler"
19 ac_help="$ac_help
20   --enable-multilib       build hella library versions (default)"
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-long-long      turns on 'long long' [default=no]"
50 ac_help="$ac_help
51   --enable-cheaders construct "C" header files for
52                            g++ [default=c_std]"
53 ac_help="$ac_help
54   --enable-threads       enable thread usage for target GCC.
55      --enable-threads=LIB   use LIB thread package for target GCC. [default=no]
56   "
57 ac_help="$ac_help
58   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
59                                 [default=none]"
60 ac_help="$ac_help
61   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
62 ac_help="$ac_help
63  --with-gxx-include-dir  the installation directory for include files"
64 ac_help="$ac_help
65   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
66
67 # Initialize some variables set by options.
68 # The variables have the same names as the options, with
69 # dashes changed to underlines.
70 build=NONE
71 cache_file=./config.cache
72 exec_prefix=NONE
73 host=NONE
74 no_create=
75 nonopt=NONE
76 no_recursion=
77 prefix=NONE
78 program_prefix=NONE
79 program_suffix=NONE
80 program_transform_name=s,x,x,
81 silent=
82 site=
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   --version               print the version of autoconf that created configure
198 Directory and file names:
199   --prefix=PREFIX         install architecture-independent files in PREFIX
200                           [$ac_default_prefix]
201   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
202                           [same as prefix]
203   --bindir=DIR            user executables in DIR [EPREFIX/bin]
204   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
205   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
206   --datadir=DIR           read-only architecture-independent data in DIR
207                           [PREFIX/share]
208   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
209   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
210                           [PREFIX/com]
211   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
212   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
213   --includedir=DIR        C header files in DIR [PREFIX/include]
214   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
215   --infodir=DIR           info documentation in DIR [PREFIX/info]
216   --mandir=DIR            man documentation in DIR [PREFIX/man]
217   --srcdir=DIR            find the sources in DIR [configure dir or ..]
218   --program-prefix=PREFIX prepend PREFIX to installed program names
219   --program-suffix=SUFFIX append SUFFIX to installed program names
220   --program-transform-name=PROGRAM
221                           run sed PROGRAM on installed program names
222 EOF
223     cat << EOF
224 Host type:
225   --build=BUILD           configure for building on BUILD [BUILD=HOST]
226   --host=HOST             configure for HOST [guessed]
227   --target=TARGET         configure for TARGET [TARGET=HOST]
228 Features and packages:
229   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
230   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
231   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
232   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
233   --x-includes=DIR        X include files are in DIR
234   --x-libraries=DIR       X library files are in DIR
235 EOF
236     if test -n "$ac_help"; then
237       echo "--enable and --with options recognized:$ac_help"
238     fi
239     exit 0 ;;
240
241   -host | --host | --hos | --ho)
242     ac_prev=host ;;
243   -host=* | --host=* | --hos=* | --ho=*)
244     host="$ac_optarg" ;;
245
246   -includedir | --includedir | --includedi | --included | --include \
247   | --includ | --inclu | --incl | --inc)
248     ac_prev=includedir ;;
249   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250   | --includ=* | --inclu=* | --incl=* | --inc=*)
251     includedir="$ac_optarg" ;;
252
253   -infodir | --infodir | --infodi | --infod | --info | --inf)
254     ac_prev=infodir ;;
255   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256     infodir="$ac_optarg" ;;
257
258   -libdir | --libdir | --libdi | --libd)
259     ac_prev=libdir ;;
260   -libdir=* | --libdir=* | --libdi=* | --libd=*)
261     libdir="$ac_optarg" ;;
262
263   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264   | --libexe | --libex | --libe)
265     ac_prev=libexecdir ;;
266   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267   | --libexe=* | --libex=* | --libe=*)
268     libexecdir="$ac_optarg" ;;
269
270   -localstatedir | --localstatedir | --localstatedi | --localstated \
271   | --localstate | --localstat | --localsta | --localst \
272   | --locals | --local | --loca | --loc | --lo)
273     ac_prev=localstatedir ;;
274   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277     localstatedir="$ac_optarg" ;;
278
279   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
280     ac_prev=mandir ;;
281   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282     mandir="$ac_optarg" ;;
283
284   -nfp | --nfp | --nf)
285     # Obsolete; use --without-fp.
286     with_fp=no ;;
287
288   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289   | --no-cr | --no-c)
290     no_create=yes ;;
291
292   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294     no_recursion=yes ;;
295
296   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298   | --oldin | --oldi | --old | --ol | --o)
299     ac_prev=oldincludedir ;;
300   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303     oldincludedir="$ac_optarg" ;;
304
305   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
306     ac_prev=prefix ;;
307   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308     prefix="$ac_optarg" ;;
309
310   -program-prefix | --program-prefix | --program-prefi | --program-pref \
311   | --program-pre | --program-pr | --program-p)
312     ac_prev=program_prefix ;;
313   -program-prefix=* | --program-prefix=* | --program-prefi=* \
314   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315     program_prefix="$ac_optarg" ;;
316
317   -program-suffix | --program-suffix | --program-suffi | --program-suff \
318   | --program-suf | --program-su | --program-s)
319     ac_prev=program_suffix ;;
320   -program-suffix=* | --program-suffix=* | --program-suffi=* \
321   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322     program_suffix="$ac_optarg" ;;
323
324   -program-transform-name | --program-transform-name \
325   | --program-transform-nam | --program-transform-na \
326   | --program-transform-n | --program-transform- \
327   | --program-transform | --program-transfor \
328   | --program-transfo | --program-transf \
329   | --program-trans | --program-tran \
330   | --progr-tra | --program-tr | --program-t)
331     ac_prev=program_transform_name ;;
332   -program-transform-name=* | --program-transform-name=* \
333   | --program-transform-nam=* | --program-transform-na=* \
334   | --program-transform-n=* | --program-transform-=* \
335   | --program-transform=* | --program-transfor=* \
336   | --program-transfo=* | --program-transf=* \
337   | --program-trans=* | --program-tran=* \
338   | --progr-tra=* | --program-tr=* | --program-t=*)
339     program_transform_name="$ac_optarg" ;;
340
341   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342   | -silent | --silent | --silen | --sile | --sil)
343     silent=yes ;;
344
345   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
346     ac_prev=sbindir ;;
347   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
348   | --sbi=* | --sb=*)
349     sbindir="$ac_optarg" ;;
350
351   -sharedstatedir | --sharedstatedir | --sharedstatedi \
352   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353   | --sharedst | --shareds | --shared | --share | --shar \
354   | --sha | --sh)
355     ac_prev=sharedstatedir ;;
356   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
359   | --sha=* | --sh=*)
360     sharedstatedir="$ac_optarg" ;;
361
362   -site | --site | --sit)
363     ac_prev=site ;;
364   -site=* | --site=* | --sit=*)
365     site="$ac_optarg" ;;
366
367   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
368     ac_prev=srcdir ;;
369   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370     srcdir="$ac_optarg" ;;
371
372   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373   | --syscon | --sysco | --sysc | --sys | --sy)
374     ac_prev=sysconfdir ;;
375   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377     sysconfdir="$ac_optarg" ;;
378
379   -target | --target | --targe | --targ | --tar | --ta | --t)
380     ac_prev=target ;;
381   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382     target="$ac_optarg" ;;
383
384   -v | -verbose | --verbose | --verbos | --verbo | --verb)
385     verbose=yes ;;
386
387   -version | --version | --versio | --versi | --vers)
388     echo "configure generated by autoconf version 2.13"
389     exit 0 ;;
390
391   -with-* | --with-*)
392     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393     # Reject names that are not valid shell variable names.
394     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396     fi
397     ac_package=`echo $ac_package| sed 's/-/_/g'`
398     case "$ac_option" in
399       *=*) ;;
400       *) ac_optarg=yes ;;
401     esac
402     eval "with_${ac_package}='$ac_optarg'" ;;
403
404   -without-* | --without-*)
405     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
406     # Reject names that are not valid shell variable names.
407     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409     fi
410     ac_package=`echo $ac_package| sed 's/-/_/g'`
411     eval "with_${ac_package}=no" ;;
412
413   --x)
414     # Obsolete; use --with-x.
415     with_x=yes ;;
416
417   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
418   | --x-incl | --x-inc | --x-in | --x-i)
419     ac_prev=x_includes ;;
420   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
421   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
422     x_includes="$ac_optarg" ;;
423
424   -x-libraries | --x-libraries | --x-librarie | --x-librari \
425   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
426     ac_prev=x_libraries ;;
427   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
428   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
429     x_libraries="$ac_optarg" ;;
430
431   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
432     ;;
433
434   *)
435     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436       echo "configure: warning: $ac_option: invalid host type" 1>&2
437     fi
438     if test "x$nonopt" != xNONE; then
439       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
440     fi
441     nonopt="$ac_option"
442     ;;
443
444   esac
445 done
446
447 if test -n "$ac_prev"; then
448   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
449 fi
450
451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
452
453 # File descriptor usage:
454 # 0 standard input
455 # 1 file creation
456 # 2 errors and warnings
457 # 3 some systems may open it to /dev/tty
458 # 4 used on the Kubota Titan
459 # 6 checking for... messages and results
460 # 5 compiler messages saved in config.log
461 if test "$silent" = yes; then
462   exec 6>/dev/null
463 else
464   exec 6>&1
465 fi
466 exec 5>./config.log
467
468 echo "\
469 This file contains any messages produced by compilers while
470 running configure, to aid debugging if configure makes a mistake.
471 " 1>&5
472
473 # Strip out --no-create and --no-recursion so they do not pile up.
474 # Also quote any args containing shell metacharacters.
475 ac_configure_args=
476 for ac_arg
477 do
478   case "$ac_arg" in
479   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
480   | --no-cr | --no-c) ;;
481   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
483   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
485   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
486   esac
487 done
488
489 # NLS nuisances.
490 # Only set these to C if already set.  These must not be set unconditionally
491 # because not all systems understand e.g. LANG=C (notably SCO).
492 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493 # Non-C LC_CTYPE values break the ctype check.
494 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
495 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
496 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
497 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
498
499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
500 rm -rf conftest* confdefs.h
501 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
502 echo > confdefs.h
503
504 # A filename unique to this package, relative to the directory that
505 # configure is in, which we can look for to find out if srcdir is correct.
506 ac_unique_file=src/ios.cc
507
508 # Find the source files, if location was not specified.
509 if test -z "$srcdir"; then
510   ac_srcdir_defaulted=yes
511   # Try the directory containing this script, then its parent.
512   ac_prog=$0
513   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
515   srcdir=$ac_confdir
516   if test ! -r $srcdir/$ac_unique_file; then
517     srcdir=..
518   fi
519 else
520   ac_srcdir_defaulted=no
521 fi
522 if test ! -r $srcdir/$ac_unique_file; then
523   if test "$ac_srcdir_defaulted" = yes; then
524     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
525   else
526     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
527   fi
528 fi
529 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
530
531 # Prefer explicitly selected file to automatically selected ones.
532 if test -z "$CONFIG_SITE"; then
533   if test "x$prefix" != xNONE; then
534     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
535   else
536     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
537   fi
538 fi
539 for ac_site_file in $CONFIG_SITE; do
540   if test -r "$ac_site_file"; then
541     echo "loading site script $ac_site_file"
542     . "$ac_site_file"
543   fi
544 done
545
546 if test -r "$cache_file"; then
547   echo "loading cache $cache_file"
548   . $cache_file
549 else
550   echo "creating cache $cache_file"
551   > $cache_file
552 fi
553
554 ac_ext=c
555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
556 ac_cpp='$CPP $CPPFLAGS'
557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
558 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
559 cross_compiling=$ac_cv_prog_cc_cross
560
561 ac_exeext=
562 ac_objext=o
563 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
564   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
565   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
566     ac_n= ac_c='
567 ' ac_t='        '
568   else
569     ac_n=-n ac_c= ac_t=
570   fi
571 else
572   ac_n= ac_c='\c' ac_t=
573 fi
574
575
576
577 # When building with srcdir == objdir, links to the source files will
578 # be created in directories within the target_subdir.  We have to
579 # adjust toplevel_srcdir accordingly, so that configure finds
580 # install-sh and other auxiliary files that live in the top-level
581 # source directory.
582 if test "${srcdir}" = "."; then
583   if test -z "${with_target_subdir}"; then
584     toplevel_srcdir="\${top_srcdir}/.."
585     auxdir="${srcdir}/.."
586   else
587     if test "${with_target_subdir}" != "."; then
588       toplevel_srcdir="\${top_srcdir}/${with_multisrctop}../.."
589       auxdir="${srcdir}/${with_multisrctop}../.."
590     else
591       toplevel_srcdir="\${top_srcdir}/${with_multisrctop}.."
592       auxdir="${srcdir}/${with_multisrctop}.."
593     fi
594   fi
595 else
596   toplevel_srcdir="\${top_srcdir}/.."
597   auxdir="${srcdir}/.."
598 fi
599 ac_aux_dir=
600 for ac_dir in $auxdir $srcdir/$auxdir; 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 $auxdir $srcdir/$auxdir" 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
620
621
622 # Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
623
624 # Do some error checking and defaulting for the host and target type.
625 # The inputs are:
626 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
627 #
628 # The rules are:
629 # 1. You are not allowed to specify --host, --target, and nonopt at the
630 #    same time.
631 # 2. Host defaults to nonopt.
632 # 3. If nonopt is not specified, then host defaults to the current host,
633 #    as determined by config.guess.
634 # 4. Target and build default to nonopt.
635 # 5. If nonopt is not specified, then target and build default to host.
636
637 # The aliases save the names the user supplied, while $host etc.
638 # will get canonicalized.
639 case $host---$target---$nonopt in
640 NONE---*---* | *---NONE---* | *---*---NONE) ;;
641 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
642 esac
643
644
645 # Make sure we can run config.sub.
646 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
647 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
648 fi
649
650 echo $ac_n "checking host system type""... $ac_c" 1>&6
651 echo "configure:652: checking host system type" >&5
652
653 host_alias=$host
654 case "$host_alias" in
655 NONE)
656   case $nonopt in
657   NONE)
658     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
659     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
660     fi ;;
661   *) host_alias=$nonopt ;;
662   esac ;;
663 esac
664
665 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
666 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
667 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
668 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
669 echo "$ac_t""$host" 1>&6
670
671 echo $ac_n "checking target system type""... $ac_c" 1>&6
672 echo "configure:673: checking target system type" >&5
673
674 target_alias=$target
675 case "$target_alias" in
676 NONE)
677   case $nonopt in
678   NONE) target_alias=$host_alias ;;
679   *) target_alias=$nonopt ;;
680   esac ;;
681 esac
682
683 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
684 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
685 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
686 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
687 echo "$ac_t""$target" 1>&6
688
689 echo $ac_n "checking build system type""... $ac_c" 1>&6
690 echo "configure:691: checking build system type" >&5
691
692 build_alias=$build
693 case "$build_alias" in
694 NONE)
695   case $nonopt in
696   NONE) build_alias=$host_alias ;;
697   *) build_alias=$nonopt ;;
698   esac ;;
699 esac
700
701 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
702 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
703 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
704 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
705 echo "$ac_t""$build" 1>&6
706
707 test "$host_alias" != "$target_alias" &&
708   test "$program_prefix$program_suffix$program_transform_name" = \
709     NONENONEs,x,x, &&
710   program_prefix=${target_alias}-
711
712
713 # We use these options to decide which functions to include.
714 # Check whether --with-target-subdir or --without-target-subdir was given.
715 if test "${with_target_subdir+set}" = set; then
716   withval="$with_target_subdir"
717   :
718 fi
719
720 # Check whether --with-cross-host or --without-cross-host was given.
721 if test "${with_cross_host+set}" = set; then
722   withval="$with_cross_host"
723   :
724 fi
725
726
727 # Runs configure.host and configure.target. Have to run this before
728 # the GLIBCPP_ENABLE_* macros below.
729 # Find a good install program.  We prefer a C program (faster),
730 # so one script is as good as another.  But avoid the broken or
731 # incompatible versions:
732 # SysV /etc/install, /usr/sbin/install
733 # SunOS /usr/etc/install
734 # IRIX /sbin/install
735 # AIX /bin/install
736 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
737 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
738 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
739 # ./install, which can be erroneously created by make from ./install.sh.
740 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
741 echo "configure:742: checking for a BSD compatible install" >&5
742 if test -z "$INSTALL"; then
743 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
744   echo $ac_n "(cached) $ac_c" 1>&6
745 else
746     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
747   for ac_dir in $PATH; do
748     # Account for people who put trailing slashes in PATH elements.
749     case "$ac_dir/" in
750     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
751     *)
752       # OSF1 and SCO ODT 3.0 have their own names for install.
753       # Don't use installbsd from OSF since it installs stuff as root
754       # by default.
755       for ac_prog in ginstall scoinst install; do
756         if test -f $ac_dir/$ac_prog; then
757           if test $ac_prog = install &&
758             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
759             # AIX install.  It has an incompatible calling convention.
760             :
761           else
762             ac_cv_path_install="$ac_dir/$ac_prog -c"
763             break 2
764           fi
765         fi
766       done
767       ;;
768     esac
769   done
770   IFS="$ac_save_IFS"
771
772 fi
773   if test "${ac_cv_path_install+set}" = set; then
774     INSTALL="$ac_cv_path_install"
775   else
776     # As a last resort, use the slow shell script.  We don't cache a
777     # path for INSTALL within a source directory, because that will
778     # break other packages using the cache if that directory is
779     # removed, or if the path is relative.
780     INSTALL="$ac_install_sh"
781   fi
782 fi
783 echo "$ac_t""$INSTALL" 1>&6
784
785 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
786 # It thinks the first close brace ends the variable substitution.
787 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
788
789 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
790
791 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
792
793 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
794 echo "configure:795: checking whether build environment is sane" >&5
795 # Just in case
796 sleep 1
797 echo timestamp > conftestfile
798 # Do `set' in a subshell so we don't clobber the current shell's
799 # arguments.  Must try -L first in case configure is actually a
800 # symlink; some systems play weird games with the mod time of symlinks
801 # (eg FreeBSD returns the mod time of the symlink's containing
802 # directory).
803 if (
804    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
805    if test "$*" = "X"; then
806       # -L didn't work.
807       set X `ls -t $srcdir/configure conftestfile`
808    fi
809    if test "$*" != "X $srcdir/configure conftestfile" \
810       && test "$*" != "X conftestfile $srcdir/configure"; then
811
812       # If neither matched, then we have a broken ls.  This can happen
813       # if, for instance, CONFIG_SHELL is bash and it inherits a
814       # broken ls alias from the environment.  This has actually
815       # happened.  Such a system could not be considered "sane".
816       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
817 alias in your environment" 1>&2; exit 1; }
818    fi
819
820    test "$2" = conftestfile
821    )
822 then
823    # Ok.
824    :
825 else
826    { echo "configure: error: newly created file is older than distributed files!
827 Check your system clock" 1>&2; exit 1; }
828 fi
829 rm -f conftest*
830 echo "$ac_t""yes" 1>&6
831 if test "$program_transform_name" = s,x,x,; then
832   program_transform_name=
833 else
834   # Double any \ or $.  echo might interpret backslashes.
835   cat <<\EOF_SED > conftestsed
836 s,\\,\\\\,g; s,\$,$$,g
837 EOF_SED
838   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
839   rm -f conftestsed
840 fi
841 test "$program_prefix" != NONE &&
842   program_transform_name="s,^,${program_prefix},; $program_transform_name"
843 # Use a double $ so make ignores it.
844 test "$program_suffix" != NONE &&
845   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
846
847 # sed with no file args requires a program.
848 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
849
850 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
851 echo "configure:852: checking whether ${MAKE-make} sets \${MAKE}" >&5
852 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
853 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
854   echo $ac_n "(cached) $ac_c" 1>&6
855 else
856   cat > conftestmake <<\EOF
857 all:
858         @echo 'ac_maketemp="${MAKE}"'
859 EOF
860 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
861 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
862 if test -n "$ac_maketemp"; then
863   eval ac_cv_prog_make_${ac_make}_set=yes
864 else
865   eval ac_cv_prog_make_${ac_make}_set=no
866 fi
867 rm -f conftestmake
868 fi
869 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
870   echo "$ac_t""yes" 1>&6
871   SET_MAKE=
872 else
873   echo "$ac_t""no" 1>&6
874   SET_MAKE="MAKE=${MAKE-make}"
875 fi
876
877 if test $host != $build; then
878   ac_tool_prefix=${host_alias}-
879 else
880   ac_tool_prefix=
881 fi
882
883 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
884 echo "configure:885: checking for Cygwin environment" >&5
885 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
886   echo $ac_n "(cached) $ac_c" 1>&6
887 else
888   cat > conftest.$ac_ext <<EOF
889 #line 890 "configure"
890 #include "confdefs.h"
891
892 int main() {
893
894 #ifndef __CYGWIN__
895 #define __CYGWIN__ __CYGWIN32__
896 #endif
897 return __CYGWIN__;
898 ; return 0; }
899 EOF
900 if { (eval echo configure:901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
901   rm -rf conftest*
902   ac_cv_cygwin=yes
903 else
904   echo "configure: failed program was:" >&5
905   cat conftest.$ac_ext >&5
906   rm -rf conftest*
907   ac_cv_cygwin=no
908 fi
909 rm -f conftest*
910 rm -f conftest*
911 fi
912
913 echo "$ac_t""$ac_cv_cygwin" 1>&6
914 CYGWIN=
915 test "$ac_cv_cygwin" = yes && CYGWIN=yes
916 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
917 echo "configure:918: checking for mingw32 environment" >&5
918 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
919   echo $ac_n "(cached) $ac_c" 1>&6
920 else
921   cat > conftest.$ac_ext <<EOF
922 #line 923 "configure"
923 #include "confdefs.h"
924
925 int main() {
926 return __MINGW32__;
927 ; return 0; }
928 EOF
929 if { (eval echo configure:930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
930   rm -rf conftest*
931   ac_cv_mingw32=yes
932 else
933   echo "configure: failed program was:" >&5
934   cat conftest.$ac_ext >&5
935   rm -rf conftest*
936   ac_cv_mingw32=no
937 fi
938 rm -f conftest*
939 rm -f conftest*
940 fi
941
942 echo "$ac_t""$ac_cv_mingw32" 1>&6
943 MINGW32=
944 test "$ac_cv_mingw32" = yes && MINGW32=yes
945
946     # Check whether --enable-multilib or --disable-multilib was given.
947 if test "${enable_multilib+set}" = set; then
948   enableval="$enable_multilib"
949   case "${enableval}" in
950     yes) multilib=yes ;;
951     no)  multilib=no ;;
952     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
953    esac
954 else
955   multilib=yes
956 fi
957
958   glibcpp_basedir=$auxdir/./libstdc++-v3
959   
960
961   
962 PACKAGE=libstdc++
963
964 VERSION=2.91
965
966 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
967   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
968 fi
969 cat >> confdefs.h <<EOF
970 #define PACKAGE "$PACKAGE"
971 EOF
972
973 cat >> confdefs.h <<EOF
974 #define VERSION "$VERSION"
975 EOF
976
977
978
979 missing_dir=`cd $ac_aux_dir && pwd`
980 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
981 echo "configure:982: checking for working aclocal" >&5
982 # Run test in a subshell; some versions of sh will print an error if
983 # an executable is not found, even if stderr is redirected.
984 # Redirect stdin to placate older versions of autoconf.  Sigh.
985 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
986    ACLOCAL=aclocal
987    echo "$ac_t""found" 1>&6
988 else
989    ACLOCAL="$missing_dir/missing aclocal"
990    echo "$ac_t""missing" 1>&6
991 fi
992
993 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
994 echo "configure:995: checking for working autoconf" >&5
995 # Run test in a subshell; some versions of sh will print an error if
996 # an executable is not found, even if stderr is redirected.
997 # Redirect stdin to placate older versions of autoconf.  Sigh.
998 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
999    AUTOCONF=autoconf
1000    echo "$ac_t""found" 1>&6
1001 else
1002    AUTOCONF="$missing_dir/missing autoconf"
1003    echo "$ac_t""missing" 1>&6
1004 fi
1005
1006 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1007 echo "configure:1008: checking for working automake" >&5
1008 # Run test in a subshell; some versions of sh will print an error if
1009 # an executable is not found, even if stderr is redirected.
1010 # Redirect stdin to placate older versions of autoconf.  Sigh.
1011 if (automake --version) < /dev/null > /dev/null 2>&1; then
1012    AUTOMAKE=automake
1013    echo "$ac_t""found" 1>&6
1014 else
1015    AUTOMAKE="$missing_dir/missing automake"
1016    echo "$ac_t""missing" 1>&6
1017 fi
1018
1019 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1020 echo "configure:1021: checking for working autoheader" >&5
1021 # Run test in a subshell; some versions of sh will print an error if
1022 # an executable is not found, even if stderr is redirected.
1023 # Redirect stdin to placate older versions of autoconf.  Sigh.
1024 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1025    AUTOHEADER=autoheader
1026    echo "$ac_t""found" 1>&6
1027 else
1028    AUTOHEADER="$missing_dir/missing autoheader"
1029    echo "$ac_t""missing" 1>&6
1030 fi
1031
1032 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1033 echo "configure:1034: checking for working makeinfo" >&5
1034 # Run test in a subshell; some versions of sh will print an error if
1035 # an executable is not found, even if stderr is redirected.
1036 # Redirect stdin to placate older versions of autoconf.  Sigh.
1037 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1038    MAKEINFO=makeinfo
1039    echo "$ac_t""found" 1>&6
1040 else
1041    MAKEINFO="$missing_dir/missing makeinfo"
1042    echo "$ac_t""missing" 1>&6
1043 fi
1044
1045
1046
1047   # Never versions of autoconf add an underscore to these functions.
1048   # Prevent future problems ...
1049   
1050   
1051   
1052   
1053
1054 #  AC_PROG_CC
1055
1056 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1057 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1058 # are probably using a cross compiler, which will not be able to fully
1059 # link an executable.  This should really be fixed in autoconf
1060 # itself.
1061
1062
1063
1064
1065 # Extract the first word of "gcc", so it can be a program name with args.
1066 set dummy gcc; ac_word=$2
1067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1068 echo "configure:1069: checking for $ac_word" >&5
1069 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1070   echo $ac_n "(cached) $ac_c" 1>&6
1071 else
1072   if test -n "$CC"; then
1073   ac_cv_prog_CC="$CC" # Let the user override the test.
1074 else
1075   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1076   ac_dummy="$PATH"
1077   for ac_dir in $ac_dummy; do
1078     test -z "$ac_dir" && ac_dir=.
1079     if test -f $ac_dir/$ac_word; then
1080       ac_cv_prog_CC="gcc"
1081       break
1082     fi
1083   done
1084   IFS="$ac_save_ifs"
1085 fi
1086 fi
1087 CC="$ac_cv_prog_CC"
1088 if test -n "$CC"; then
1089   echo "$ac_t""$CC" 1>&6
1090 else
1091   echo "$ac_t""no" 1>&6
1092 fi
1093
1094 if test -z "$CC"; then
1095   # Extract the first word of "cc", so it can be a program name with args.
1096 set dummy cc; ac_word=$2
1097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1098 echo "configure:1099: checking for $ac_word" >&5
1099 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1100   echo $ac_n "(cached) $ac_c" 1>&6
1101 else
1102   if test -n "$CC"; then
1103   ac_cv_prog_CC="$CC" # Let the user override the test.
1104 else
1105   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1106   ac_prog_rejected=no
1107   ac_dummy="$PATH"
1108   for ac_dir in $ac_dummy; do
1109     test -z "$ac_dir" && ac_dir=.
1110     if test -f $ac_dir/$ac_word; then
1111       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1112         ac_prog_rejected=yes
1113         continue
1114       fi
1115       ac_cv_prog_CC="cc"
1116       break
1117     fi
1118   done
1119   IFS="$ac_save_ifs"
1120 if test $ac_prog_rejected = yes; then
1121   # We found a bogon in the path, so make sure we never use it.
1122   set dummy $ac_cv_prog_CC
1123   shift
1124   if test $# -gt 0; then
1125     # We chose a different compiler from the bogus one.
1126     # However, it has the same basename, so the bogon will be chosen
1127     # first if we set CC to just the basename; use the full file name.
1128     shift
1129     set dummy "$ac_dir/$ac_word" "$@"
1130     shift
1131     ac_cv_prog_CC="$@"
1132   fi
1133 fi
1134 fi
1135 fi
1136 CC="$ac_cv_prog_CC"
1137 if test -n "$CC"; then
1138   echo "$ac_t""$CC" 1>&6
1139 else
1140   echo "$ac_t""no" 1>&6
1141 fi
1142
1143   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1144 fi
1145
1146 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether we are using GNU C" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1149   echo $ac_n "(cached) $ac_c" 1>&6
1150 else
1151   cat > conftest.c <<EOF
1152 #ifdef __GNUC__
1153   yes;
1154 #endif
1155 EOF
1156 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1157   ac_cv_prog_gcc=yes
1158 else
1159   ac_cv_prog_gcc=no
1160 fi
1161 fi
1162
1163 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1164
1165 if test $ac_cv_prog_gcc = yes; then
1166   GCC=yes
1167   ac_test_CFLAGS="${CFLAGS+set}"
1168   ac_save_CFLAGS="$CFLAGS"
1169   CFLAGS=
1170   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1171 echo "configure:1172: checking whether ${CC-cc} accepts -g" >&5
1172 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1173   echo $ac_n "(cached) $ac_c" 1>&6
1174 else
1175   echo 'void f(){}' > conftest.c
1176 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1177   ac_cv_prog_cc_g=yes
1178 else
1179   ac_cv_prog_cc_g=no
1180 fi
1181 rm -f conftest*
1182
1183 fi
1184
1185 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1186   if test "$ac_test_CFLAGS" = set; then
1187     CFLAGS="$ac_save_CFLAGS"
1188   elif test $ac_cv_prog_cc_g = yes; then
1189     CFLAGS="-g -O2"
1190   else
1191     CFLAGS="-O2"
1192   fi
1193 else
1194   GCC=
1195   test "${CFLAGS+set}" = set || CFLAGS="-g"
1196 fi
1197
1198
1199 # Can't just call these here as g++ requires libstc++ to be built....
1200 #  AC_PROG_CXX
1201
1202 # Likewise for AC_PROG_CXX.
1203
1204
1205
1206 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1207 # flags that come in CXX while configuring libstdc++.  They're different
1208 # from those used for all other target libraries.  If CXX is set in
1209 # the environment, respect that here.
1210 glibcpp_CXX=$CXX
1211 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1212 do
1213 # Extract the first word of "$ac_prog", so it can be a program name with args.
1214 set dummy $ac_prog; ac_word=$2
1215 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216 echo "configure:1217: checking for $ac_word" >&5
1217 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1218   echo $ac_n "(cached) $ac_c" 1>&6
1219 else
1220   if test -n "$glibcpp_CXX"; then
1221   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1222 else
1223   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1224   ac_dummy="$PATH"
1225   for ac_dir in $ac_dummy; do
1226     test -z "$ac_dir" && ac_dir=.
1227     if test -f $ac_dir/$ac_word; then
1228       ac_cv_prog_glibcpp_CXX="$ac_prog"
1229       break
1230     fi
1231   done
1232   IFS="$ac_save_ifs"
1233 fi
1234 fi
1235 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1236 if test -n "$glibcpp_CXX"; then
1237   echo "$ac_t""$glibcpp_CXX" 1>&6
1238 else
1239   echo "$ac_t""no" 1>&6
1240 fi
1241
1242 test -n "$glibcpp_CXX" && break
1243 done
1244 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1245
1246
1247 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1248
1249 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1250 echo "configure:1251: checking whether we are using GNU C++" >&5
1251 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1252   echo $ac_n "(cached) $ac_c" 1>&6
1253 else
1254   cat > conftest.C <<EOF
1255 #ifdef __GNUC__
1256   yes;
1257 #endif
1258 EOF
1259 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1260   ac_cv_prog_gxx=yes
1261 else
1262   ac_cv_prog_gxx=no
1263 fi
1264 fi
1265
1266 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1267
1268 if test $ac_cv_prog_gxx = yes; then
1269   GXX=yes
1270   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1271   ac_save_CXXFLAGS="$CXXFLAGS"
1272   CXXFLAGS=
1273   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1274 echo "configure:1275: checking whether ${CXX-g++} accepts -g" >&5
1275 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1276   echo $ac_n "(cached) $ac_c" 1>&6
1277 else
1278   echo 'void f(){}' > conftest.cc
1279 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1280   ac_cv_prog_cxx_g=yes
1281 else
1282   ac_cv_prog_cxx_g=no
1283 fi
1284 rm -f conftest*
1285
1286 fi
1287
1288 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1289   if test "$ac_test_CXXFLAGS" = set; then
1290     CXXFLAGS="$ac_save_CXXFLAGS"
1291   elif test $ac_cv_prog_cxx_g = yes; then
1292     CXXFLAGS="-g -O2"
1293   else
1294     CXXFLAGS="-O2"
1295   fi
1296 else
1297   GXX=
1298   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1299 fi
1300
1301
1302   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1303 set dummy ${ac_tool_prefix}as; ac_word=$2
1304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1305 echo "configure:1306: checking for $ac_word" >&5
1306 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1307   echo $ac_n "(cached) $ac_c" 1>&6
1308 else
1309   if test -n "$AS"; then
1310   ac_cv_prog_AS="$AS" # Let the user override the test.
1311 else
1312   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1313   ac_dummy="$PATH"
1314   for ac_dir in $ac_dummy; do
1315     test -z "$ac_dir" && ac_dir=.
1316     if test -f $ac_dir/$ac_word; then
1317       ac_cv_prog_AS="${ac_tool_prefix}as"
1318       break
1319     fi
1320   done
1321   IFS="$ac_save_ifs"
1322   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1323 fi
1324 fi
1325 AS="$ac_cv_prog_AS"
1326 if test -n "$AS"; then
1327   echo "$ac_t""$AS" 1>&6
1328 else
1329   echo "$ac_t""no" 1>&6
1330 fi
1331
1332
1333
1334   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1335 set dummy ${ac_tool_prefix}ar; ac_word=$2
1336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1337 echo "configure:1338: checking for $ac_word" >&5
1338 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1339   echo $ac_n "(cached) $ac_c" 1>&6
1340 else
1341   if test -n "$AR"; then
1342   ac_cv_prog_AR="$AR" # Let the user override the test.
1343 else
1344   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1345   ac_dummy="$PATH"
1346   for ac_dir in $ac_dummy; do
1347     test -z "$ac_dir" && ac_dir=.
1348     if test -f $ac_dir/$ac_word; then
1349       ac_cv_prog_AR="${ac_tool_prefix}ar"
1350       break
1351     fi
1352   done
1353   IFS="$ac_save_ifs"
1354   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1355 fi
1356 fi
1357 AR="$ac_cv_prog_AR"
1358 if test -n "$AR"; then
1359   echo "$ac_t""$AR" 1>&6
1360 else
1361   echo "$ac_t""no" 1>&6
1362 fi
1363
1364
1365
1366   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1367 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1369 echo "configure:1370: checking for $ac_word" >&5
1370 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1371   echo $ac_n "(cached) $ac_c" 1>&6
1372 else
1373   if test -n "$RANLIB"; then
1374   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1375 else
1376   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1377   ac_dummy="$PATH"
1378   for ac_dir in $ac_dummy; do
1379     test -z "$ac_dir" && ac_dir=.
1380     if test -f $ac_dir/$ac_word; then
1381       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1382       break
1383     fi
1384   done
1385   IFS="$ac_save_ifs"
1386 fi
1387 fi
1388 RANLIB="$ac_cv_prog_RANLIB"
1389 if test -n "$RANLIB"; then
1390   echo "$ac_t""$RANLIB" 1>&6
1391 else
1392   echo "$ac_t""no" 1>&6
1393 fi
1394
1395
1396 if test -z "$ac_cv_prog_RANLIB"; then
1397 if test -n "$ac_tool_prefix"; then
1398   # Extract the first word of "ranlib", so it can be a program name with args.
1399 set dummy ranlib; ac_word=$2
1400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1401 echo "configure:1402: checking for $ac_word" >&5
1402 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1403   echo $ac_n "(cached) $ac_c" 1>&6
1404 else
1405   if test -n "$RANLIB"; then
1406   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1407 else
1408   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1409   ac_dummy="$PATH"
1410   for ac_dir in $ac_dummy; do
1411     test -z "$ac_dir" && ac_dir=.
1412     if test -f $ac_dir/$ac_word; then
1413       ac_cv_prog_RANLIB="ranlib"
1414       break
1415     fi
1416   done
1417   IFS="$ac_save_ifs"
1418   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1419 fi
1420 fi
1421 RANLIB="$ac_cv_prog_RANLIB"
1422 if test -n "$RANLIB"; then
1423   echo "$ac_t""$RANLIB" 1>&6
1424 else
1425   echo "$ac_t""no" 1>&6
1426 fi
1427
1428 else
1429   RANLIB="ranlib-not-found-in-path-error"
1430 fi
1431 fi
1432
1433   # Extract the first word of "${ac_tool_prefix}expect", so it can be a program name with args.
1434 set dummy ${ac_tool_prefix}expect; ac_word=$2
1435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1436 echo "configure:1437: checking for $ac_word" >&5
1437 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_expect'+set}'`\" = set"; then
1438   echo $ac_n "(cached) $ac_c" 1>&6
1439 else
1440   if test -n "$glibcpp_expect"; then
1441   ac_cv_prog_glibcpp_expect="$glibcpp_expect" # Let the user override the test.
1442 else
1443   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1444   ac_dummy="$PATH"
1445   for ac_dir in $ac_dummy; do
1446     test -z "$ac_dir" && ac_dir=.
1447     if test -f $ac_dir/$ac_word; then
1448       ac_cv_prog_glibcpp_expect="${ac_tool_prefix}expect"
1449       break
1450     fi
1451   done
1452   IFS="$ac_save_ifs"
1453 fi
1454 fi
1455 glibcpp_expect="$ac_cv_prog_glibcpp_expect"
1456 if test -n "$glibcpp_expect"; then
1457   echo "$ac_t""$glibcpp_expect" 1>&6
1458 else
1459   echo "$ac_t""no" 1>&6
1460 fi
1461
1462
1463 if test -z "$ac_cv_prog_glibcpp_expect"; then
1464 if test -n "$ac_tool_prefix"; then
1465   # Extract the first word of "expect", so it can be a program name with args.
1466 set dummy expect; ac_word=$2
1467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1468 echo "configure:1469: checking for $ac_word" >&5
1469 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_expect'+set}'`\" = set"; then
1470   echo $ac_n "(cached) $ac_c" 1>&6
1471 else
1472   if test -n "$glibcpp_expect"; then
1473   ac_cv_prog_glibcpp_expect="$glibcpp_expect" # Let the user override the test.
1474 else
1475   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1476   ac_dummy="$PATH"
1477   for ac_dir in $ac_dummy; do
1478     test -z "$ac_dir" && ac_dir=.
1479     if test -f $ac_dir/$ac_word; then
1480       ac_cv_prog_glibcpp_expect="expect"
1481       break
1482     fi
1483   done
1484   IFS="$ac_save_ifs"
1485   test -z "$ac_cv_prog_glibcpp_expect" && ac_cv_prog_glibcpp_expect="expect-not-found-in-path-error"
1486 fi
1487 fi
1488 glibcpp_expect="$ac_cv_prog_glibcpp_expect"
1489 if test -n "$glibcpp_expect"; then
1490   echo "$ac_t""$glibcpp_expect" 1>&6
1491 else
1492   echo "$ac_t""no" 1>&6
1493 fi
1494
1495 else
1496   glibcpp_expect="expect-not-found-in-path-error"
1497 fi
1498 fi
1499
1500   # Extract the first word of "${ac_tool_prefix}runtest", so it can be a program name with args.
1501 set dummy ${ac_tool_prefix}runtest; ac_word=$2
1502 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1503 echo "configure:1504: checking for $ac_word" >&5
1504 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_runtest'+set}'`\" = set"; then
1505   echo $ac_n "(cached) $ac_c" 1>&6
1506 else
1507   if test -n "$glibcpp_runtest"; then
1508   ac_cv_prog_glibcpp_runtest="$glibcpp_runtest" # Let the user override the test.
1509 else
1510   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1511   ac_dummy="$PATH"
1512   for ac_dir in $ac_dummy; do
1513     test -z "$ac_dir" && ac_dir=.
1514     if test -f $ac_dir/$ac_word; then
1515       ac_cv_prog_glibcpp_runtest="${ac_tool_prefix}runtest"
1516       break
1517     fi
1518   done
1519   IFS="$ac_save_ifs"
1520 fi
1521 fi
1522 glibcpp_runtest="$ac_cv_prog_glibcpp_runtest"
1523 if test -n "$glibcpp_runtest"; then
1524   echo "$ac_t""$glibcpp_runtest" 1>&6
1525 else
1526   echo "$ac_t""no" 1>&6
1527 fi
1528
1529
1530 if test -z "$ac_cv_prog_glibcpp_runtest"; then
1531 if test -n "$ac_tool_prefix"; then
1532   # Extract the first word of "runtest", so it can be a program name with args.
1533 set dummy runtest; ac_word=$2
1534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1535 echo "configure:1536: checking for $ac_word" >&5
1536 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_runtest'+set}'`\" = set"; then
1537   echo $ac_n "(cached) $ac_c" 1>&6
1538 else
1539   if test -n "$glibcpp_runtest"; then
1540   ac_cv_prog_glibcpp_runtest="$glibcpp_runtest" # Let the user override the test.
1541 else
1542   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1543   ac_dummy="$PATH"
1544   for ac_dir in $ac_dummy; do
1545     test -z "$ac_dir" && ac_dir=.
1546     if test -f $ac_dir/$ac_word; then
1547       ac_cv_prog_glibcpp_runtest="runtest"
1548       break
1549     fi
1550   done
1551   IFS="$ac_save_ifs"
1552   test -z "$ac_cv_prog_glibcpp_runtest" && ac_cv_prog_glibcpp_runtest="runtest-not-found-in-path-error"
1553 fi
1554 fi
1555 glibcpp_runtest="$ac_cv_prog_glibcpp_runtest"
1556 if test -n "$glibcpp_runtest"; then
1557   echo "$ac_t""$glibcpp_runtest" 1>&6
1558 else
1559   echo "$ac_t""no" 1>&6
1560 fi
1561
1562 else
1563   glibcpp_runtest="runtest-not-found-in-path-error"
1564 fi
1565 fi
1566
1567   
1568   
1569   # Find a good install program.  We prefer a C program (faster),
1570 # so one script is as good as another.  But avoid the broken or
1571 # incompatible versions:
1572 # SysV /etc/install, /usr/sbin/install
1573 # SunOS /usr/etc/install
1574 # IRIX /sbin/install
1575 # AIX /bin/install
1576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1579 # ./install, which can be erroneously created by make from ./install.sh.
1580 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1581 echo "configure:1582: checking for a BSD compatible install" >&5
1582 if test -z "$INSTALL"; then
1583 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1584   echo $ac_n "(cached) $ac_c" 1>&6
1585 else
1586     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1587   for ac_dir in $PATH; do
1588     # Account for people who put trailing slashes in PATH elements.
1589     case "$ac_dir/" in
1590     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1591     *)
1592       # OSF1 and SCO ODT 3.0 have their own names for install.
1593       # Don't use installbsd from OSF since it installs stuff as root
1594       # by default.
1595       for ac_prog in ginstall scoinst install; do
1596         if test -f $ac_dir/$ac_prog; then
1597           if test $ac_prog = install &&
1598             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1599             # AIX install.  It has an incompatible calling convention.
1600             :
1601           else
1602             ac_cv_path_install="$ac_dir/$ac_prog -c"
1603             break 2
1604           fi
1605         fi
1606       done
1607       ;;
1608     esac
1609   done
1610   IFS="$ac_save_IFS"
1611
1612 fi
1613   if test "${ac_cv_path_install+set}" = set; then
1614     INSTALL="$ac_cv_path_install"
1615   else
1616     # As a last resort, use the slow shell script.  We don't cache a
1617     # path for INSTALL within a source directory, because that will
1618     # break other packages using the cache if that directory is
1619     # removed, or if the path is relative.
1620     INSTALL="$ac_install_sh"
1621   fi
1622 fi
1623 echo "$ac_t""$INSTALL" 1>&6
1624
1625 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1626 # It thinks the first close brace ends the variable substitution.
1627 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1628
1629 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1630
1631 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1632
1633
1634   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1635 echo "configure:1636: checking whether to enable maintainer-specific portions of Makefiles" >&5
1636     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1637 if test "${enable_maintainer_mode+set}" = set; then
1638   enableval="$enable_maintainer_mode"
1639   USE_MAINTAINER_MODE=$enableval
1640 else
1641   USE_MAINTAINER_MODE=no
1642 fi
1643
1644   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1645   
1646
1647 if test $USE_MAINTAINER_MODE = yes; then
1648   MAINTAINER_MODE_TRUE=
1649   MAINTAINER_MODE_FALSE='#'
1650 else
1651   MAINTAINER_MODE_TRUE='#'
1652   MAINTAINER_MODE_FALSE=
1653 fi
1654   MAINT=$MAINTAINER_MODE_TRUE
1655   
1656
1657
1658   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1659   # at least currently, we never actually build a program, so we never
1660   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1661   # fails, because we are probably configuring with a cross compiler
1662   # which cant create executables.  So we include AC_EXEEXT to keep
1663   # automake happy, but we dont execute it, since we dont care about
1664   # the result.
1665   if false; then
1666     
1667
1668 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1669 echo "configure:1670: checking for executable suffix" >&5
1670 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1671   echo $ac_n "(cached) $ac_c" 1>&6
1672 else
1673   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1674   ac_cv_exeext=.exe
1675 else
1676   rm -f conftest*
1677   echo 'int main () { return 0; }' > conftest.$ac_ext
1678   ac_cv_exeext=
1679   if { (eval echo configure:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1680     for file in conftest.*; do
1681       case $file in
1682       *.c | *.o | *.obj) ;;
1683       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1684       esac
1685     done
1686   else
1687     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1688   fi
1689   rm -f conftest*
1690   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1691 fi
1692 fi
1693
1694 EXEEXT=""
1695 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1696 echo "$ac_t""${ac_cv_exeext}" 1>&6
1697 ac_exeext=$EXEEXT
1698
1699   fi
1700
1701   . ${glibcpp_basedir}/configure.host
1702
1703   case ${glibcpp_basedir} in
1704     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1705     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1706   esac
1707
1708   # This does for the target what configure.host does for the host.  In
1709   # addition to possibly modifying the same flags, it also sets up symlinks.
1710   
1711     . ${glibcpp_basedir}/configure.target
1712     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1713     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1714     
1715
1716
1717
1718
1719 # Check whether --enable-shared or --disable-shared was given.
1720 if test "${enable_shared+set}" = set; then
1721   enableval="$enable_shared"
1722   p=${PACKAGE-default}
1723 case $enableval in
1724 yes) enable_shared=yes ;;
1725 no) enable_shared=no ;;
1726 *)
1727   enable_shared=no
1728   # Look at the argument we got.  We use all the common list separators.
1729   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1730   for pkg in $enableval; do
1731     if test "X$pkg" = "X$p"; then
1732       enable_shared=yes
1733     fi
1734   done
1735   IFS="$ac_save_ifs"
1736   ;;
1737 esac
1738 else
1739   enable_shared=yes
1740 fi
1741
1742 # Check whether --enable-static or --disable-static was given.
1743 if test "${enable_static+set}" = set; then
1744   enableval="$enable_static"
1745   p=${PACKAGE-default}
1746 case $enableval in
1747 yes) enable_static=yes ;;
1748 no) enable_static=no ;;
1749 *)
1750   enable_static=no
1751   # Look at the argument we got.  We use all the common list separators.
1752   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1753   for pkg in $enableval; do
1754     if test "X$pkg" = "X$p"; then
1755       enable_static=yes
1756     fi
1757   done
1758   IFS="$ac_save_ifs"
1759   ;;
1760 esac
1761 else
1762   enable_static=yes
1763 fi
1764
1765 # Check whether --enable-fast-install or --disable-fast-install was given.
1766 if test "${enable_fast_install+set}" = set; then
1767   enableval="$enable_fast_install"
1768   p=${PACKAGE-default}
1769 case $enableval in
1770 yes) enable_fast_install=yes ;;
1771 no) enable_fast_install=no ;;
1772 *)
1773   enable_fast_install=no
1774   # Look at the argument we got.  We use all the common list separators.
1775   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1776   for pkg in $enableval; do
1777     if test "X$pkg" = "X$p"; then
1778       enable_fast_install=yes
1779     fi
1780   done
1781   IFS="$ac_save_ifs"
1782   ;;
1783 esac
1784 else
1785   enable_fast_install=yes
1786 fi
1787
1788 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1789 if test "${with_gnu_ld+set}" = set; then
1790   withval="$with_gnu_ld"
1791   test "$withval" = no || with_gnu_ld=yes
1792 else
1793   with_gnu_ld=no
1794 fi
1795
1796 ac_prog=ld
1797 if test "$GCC" = yes; then
1798   # Check if gcc -print-prog-name=ld gives a path.
1799   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1800 echo "configure:1801: checking for ld used by GCC" >&5
1801   case $host in
1802   *-*-mingw*)
1803     # gcc leaves a trailing carriage return which upsets mingw
1804     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1805   *)
1806     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1807   esac
1808   case $ac_prog in
1809     # Accept absolute paths.
1810     [\\/]* | [A-Za-z]:[\\/]*)
1811       re_direlt='/[^/][^/]*/\.\./'
1812       # Canonicalize the path of ld
1813       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1814       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1815         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1816       done
1817       test -z "$LD" && LD="$ac_prog"
1818       ;;
1819   "")
1820     # If it fails, then pretend we aren't using GCC.
1821     ac_prog=ld
1822     ;;
1823   *)
1824     # If it is relative, then search for the first ld in PATH.
1825     with_gnu_ld=unknown
1826     ;;
1827   esac
1828 elif test "$with_gnu_ld" = yes; then
1829   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1830 echo "configure:1831: checking for GNU ld" >&5
1831 else
1832   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1833 echo "configure:1834: checking for non-GNU ld" >&5
1834 fi
1835 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1836   echo $ac_n "(cached) $ac_c" 1>&6
1837 else
1838   if test -z "$LD"; then
1839   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1840   for ac_dir in $PATH; do
1841     test -z "$ac_dir" && ac_dir=.
1842     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1843       lt_cv_path_LD="$ac_dir/$ac_prog"
1844       # Check to see if the program is GNU ld.  I'd rather use --version,
1845       # but apparently some GNU ld's only accept -v.
1846       # Break only if it was the GNU/non-GNU ld that we prefer.
1847       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1848         test "$with_gnu_ld" != no && break
1849       else
1850         test "$with_gnu_ld" != yes && break
1851       fi
1852     fi
1853   done
1854   IFS="$ac_save_ifs"
1855 else
1856   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1857 fi
1858 fi
1859
1860 LD="$lt_cv_path_LD"
1861 if test -n "$LD"; then
1862   echo "$ac_t""$LD" 1>&6
1863 else
1864   echo "$ac_t""no" 1>&6
1865 fi
1866 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1867 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1868 echo "configure:1869: checking if the linker ($LD) is GNU ld" >&5
1869 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1870   echo $ac_n "(cached) $ac_c" 1>&6
1871 else
1872   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1873 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1874   lt_cv_prog_gnu_ld=yes
1875 else
1876   lt_cv_prog_gnu_ld=no
1877 fi
1878 fi
1879
1880 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1881 with_gnu_ld=$lt_cv_prog_gnu_ld
1882
1883
1884 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1885 echo "configure:1886: checking for $LD option to reload object files" >&5
1886 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1887   echo $ac_n "(cached) $ac_c" 1>&6
1888 else
1889   lt_cv_ld_reload_flag='-r'
1890 fi
1891
1892 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1893 reload_flag=$lt_cv_ld_reload_flag
1894 test -n "$reload_flag" && reload_flag=" $reload_flag"
1895
1896 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1897 echo "configure:1898: checking for BSD-compatible nm" >&5
1898 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1899   echo $ac_n "(cached) $ac_c" 1>&6
1900 else
1901   if test -n "$NM"; then
1902   # Let the user override the test.
1903   lt_cv_path_NM="$NM"
1904 else
1905   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1906   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1907     test -z "$ac_dir" && ac_dir=.
1908     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1909     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1910       # Check to see if the nm accepts a BSD-compat flag.
1911       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1912       #   nm: unknown option "B" ignored
1913       # Tru64's nm complains that /dev/null is an invalid object file
1914       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1915         lt_cv_path_NM="$tmp_nm -B"
1916         break
1917       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1918         lt_cv_path_NM="$tmp_nm -p"
1919         break
1920       else
1921         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1922         continue # so that we can try to find one that supports BSD flags
1923       fi
1924     fi
1925   done
1926   IFS="$ac_save_ifs"
1927   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1928 fi
1929 fi
1930
1931 NM="$lt_cv_path_NM"
1932 echo "$ac_t""$NM" 1>&6
1933
1934 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1935 echo "configure:1936: checking whether ln -s works" >&5
1936 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1937   echo $ac_n "(cached) $ac_c" 1>&6
1938 else
1939   rm -f conftestdata
1940 if ln -s X conftestdata 2>/dev/null
1941 then
1942   rm -f conftestdata
1943   ac_cv_prog_LN_S="ln -s"
1944 else
1945   ac_cv_prog_LN_S=ln
1946 fi
1947 fi
1948 LN_S="$ac_cv_prog_LN_S"
1949 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1950   echo "$ac_t""yes" 1>&6
1951 else
1952   echo "$ac_t""no" 1>&6
1953 fi
1954
1955 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1956 echo "configure:1957: checking how to recognise dependant libraries" >&5
1957 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1958   echo $ac_n "(cached) $ac_c" 1>&6
1959 else
1960   lt_cv_file_magic_cmd='$MAGIC_CMD'
1961 lt_cv_file_magic_test_file=
1962 lt_cv_deplibs_check_method='unknown'
1963 # Need to set the preceding variable on all platforms that support
1964 # interlibrary dependencies.
1965 # 'none' -- dependencies not supported.
1966 # `unknown' -- same as none, but documents that we really don't know.
1967 # 'pass_all' -- all dependencies passed with no checks.
1968 # 'test_compile' -- check by making test program.
1969 # 'file_magic [regex]' -- check by looking for files in library path
1970 # which responds to the $file_magic_cmd with a given egrep regex.
1971 # If you have `file' or equivalent on your system and you're not sure
1972 # whether `pass_all' will *always* work, you probably want this one.
1973
1974 case $host_os in
1975 aix*)
1976   lt_cv_deplibs_check_method=pass_all
1977   ;;
1978
1979 beos*)
1980   lt_cv_deplibs_check_method=pass_all
1981   ;;
1982
1983 bsdi4*)
1984   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1985   lt_cv_file_magic_cmd='/usr/bin/file -L'
1986   lt_cv_file_magic_test_file=/shlib/libc.so
1987   ;;
1988
1989 cygwin* | mingw* |pw32*)
1990   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1991   lt_cv_file_magic_cmd='$OBJDUMP -f'
1992   ;;
1993
1994 darwin* | rhapsody*)
1995   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1996   lt_cv_file_magic_cmd='/usr/bin/file -L'
1997   case "$host_os" in
1998   rhapsody* | darwin1.012)
1999     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2000     ;;
2001   *) # Darwin 1.3 on
2002     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2003     ;;
2004   esac
2005   ;;
2006
2007 freebsd* )
2008   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2009     case $host_cpu in
2010     i*86 )
2011       # Not sure whether the presence of OpenBSD here was a mistake.
2012       # Let's accept both of them until this is cleared up.
2013       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2014       lt_cv_file_magic_cmd=/usr/bin/file
2015       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2016       ;;
2017     esac
2018   else
2019     lt_cv_deplibs_check_method=pass_all
2020   fi
2021   ;;
2022
2023 gnu*)
2024   lt_cv_deplibs_check_method=pass_all
2025   ;;
2026
2027 hpux10.20*|hpux11*)
2028   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2029   lt_cv_file_magic_cmd=/usr/bin/file
2030   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2031   ;;
2032
2033 irix5* | irix6*)
2034   case $host_os in
2035   irix5*)
2036     # this will be overridden with pass_all, but let us keep it just in case
2037     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2038     ;;
2039   *)
2040     case $LD in
2041     *-32|*"-32 ") libmagic=32-bit;;
2042     *-n32|*"-n32 ") libmagic=N32;;
2043     *-64|*"-64 ") libmagic=64-bit;;
2044     *) libmagic=never-match;;
2045     esac
2046     # this will be overridden with pass_all, but let us keep it just in case
2047     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2048     ;;
2049   esac
2050   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2051   lt_cv_deplibs_check_method=pass_all
2052   ;;
2053
2054 # This must be Linux ELF.
2055 linux-gnu*)
2056   case $host_cpu in
2057   alpha* | i*86 | powerpc* | sparc* | ia64* )
2058     lt_cv_deplibs_check_method=pass_all ;;
2059   *)
2060     # glibc up to 2.1.1 does not perform some relocations on ARM
2061     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2062   esac
2063   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2064   ;;
2065
2066 netbsd*)
2067   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2068     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2069   else
2070     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2071   fi
2072   ;;
2073
2074 newsos6)
2075   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2076   lt_cv_file_magic_cmd=/usr/bin/file
2077   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2078   ;;
2079
2080 osf3* | osf4* | osf5*)
2081   # this will be overridden with pass_all, but let us keep it just in case
2082   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2083   lt_cv_file_magic_test_file=/shlib/libc.so
2084   lt_cv_deplibs_check_method=pass_all
2085   ;;
2086
2087 sco3.2v5*)
2088   lt_cv_deplibs_check_method=pass_all
2089   ;;
2090
2091 solaris*)
2092   lt_cv_deplibs_check_method=pass_all
2093   lt_cv_file_magic_test_file=/lib/libc.so
2094   ;;
2095
2096 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2097   case $host_vendor in
2098   ncr)
2099     lt_cv_deplibs_check_method=pass_all
2100     ;;
2101   motorola)
2102     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]'
2103     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2104     ;;
2105   esac
2106   ;;
2107 esac
2108
2109 fi
2110
2111 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2112 file_magic_cmd=$lt_cv_file_magic_cmd
2113 deplibs_check_method=$lt_cv_deplibs_check_method
2114
2115 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2116 echo "configure:2117: checking for object suffix" >&5
2117 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2118   echo $ac_n "(cached) $ac_c" 1>&6
2119 else
2120   rm -f conftest*
2121 echo 'int i = 1;' > conftest.$ac_ext
2122 if { (eval echo configure:2123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2123   for ac_file in conftest.*; do
2124     case $ac_file in
2125     *.c) ;;
2126     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2127     esac
2128   done
2129 else
2130   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2131 fi
2132 rm -f conftest*
2133 fi
2134
2135 echo "$ac_t""$ac_cv_objext" 1>&6
2136 OBJEXT=$ac_cv_objext
2137 ac_objext=$ac_cv_objext
2138
2139 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2140
2141 # Only perform the check for file, if the check method requires it
2142 case $deplibs_check_method in
2143 file_magic*)
2144   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2145     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2146 echo "configure:2147: checking for ${ac_tool_prefix}file" >&5
2147 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2148   echo $ac_n "(cached) $ac_c" 1>&6
2149 else
2150   case $MAGIC_CMD in
2151   /*)
2152   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2153   ;;
2154   ?:/*)
2155   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2156   ;;
2157   *)
2158   ac_save_MAGIC_CMD="$MAGIC_CMD"
2159   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2160   ac_dummy="/usr/bin:$PATH"
2161   for ac_dir in $ac_dummy; do
2162     test -z "$ac_dir" && ac_dir=.
2163     if test -f $ac_dir/${ac_tool_prefix}file; then
2164       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2165       if test -n "$file_magic_test_file"; then
2166         case $deplibs_check_method in
2167         "file_magic "*)
2168           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2169           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2170           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2171             egrep "$file_magic_regex" > /dev/null; then
2172             :
2173           else
2174             cat <<EOF 1>&2
2175
2176 *** Warning: the command libtool uses to detect shared libraries,
2177 *** $file_magic_cmd, produces output that libtool cannot recognize.
2178 *** The result is that libtool may fail to recognize shared libraries
2179 *** as such.  This will affect the creation of libtool libraries that
2180 *** depend on shared libraries, but programs linked with such libtool
2181 *** libraries will work regardless of this problem.  Nevertheless, you
2182 *** may want to report the problem to your system manager and/or to
2183 *** bug-libtool@gnu.org
2184
2185 EOF
2186           fi ;;
2187         esac
2188       fi
2189       break
2190     fi
2191   done
2192   IFS="$ac_save_ifs"
2193   MAGIC_CMD="$ac_save_MAGIC_CMD"
2194   ;;
2195 esac
2196 fi
2197
2198 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2199 if test -n "$MAGIC_CMD"; then
2200   echo "$ac_t""$MAGIC_CMD" 1>&6
2201 else
2202   echo "$ac_t""no" 1>&6
2203 fi
2204
2205 if test -z "$lt_cv_path_MAGIC_CMD"; then
2206   if test -n "$ac_tool_prefix"; then
2207     echo $ac_n "checking for file""... $ac_c" 1>&6
2208 echo "configure:2209: checking for file" >&5
2209 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2210   echo $ac_n "(cached) $ac_c" 1>&6
2211 else
2212   case $MAGIC_CMD in
2213   /*)
2214   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2215   ;;
2216   ?:/*)
2217   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2218   ;;
2219   *)
2220   ac_save_MAGIC_CMD="$MAGIC_CMD"
2221   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2222   ac_dummy="/usr/bin:$PATH"
2223   for ac_dir in $ac_dummy; do
2224     test -z "$ac_dir" && ac_dir=.
2225     if test -f $ac_dir/file; then
2226       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2227       if test -n "$file_magic_test_file"; then
2228         case $deplibs_check_method in
2229         "file_magic "*)
2230           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2231           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2232           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2233             egrep "$file_magic_regex" > /dev/null; then
2234             :
2235           else
2236             cat <<EOF 1>&2
2237
2238 *** Warning: the command libtool uses to detect shared libraries,
2239 *** $file_magic_cmd, produces output that libtool cannot recognize.
2240 *** The result is that libtool may fail to recognize shared libraries
2241 *** as such.  This will affect the creation of libtool libraries that
2242 *** depend on shared libraries, but programs linked with such libtool
2243 *** libraries will work regardless of this problem.  Nevertheless, you
2244 *** may want to report the problem to your system manager and/or to
2245 *** bug-libtool@gnu.org
2246
2247 EOF
2248           fi ;;
2249         esac
2250       fi
2251       break
2252     fi
2253   done
2254   IFS="$ac_save_ifs"
2255   MAGIC_CMD="$ac_save_MAGIC_CMD"
2256   ;;
2257 esac
2258 fi
2259
2260 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2261 if test -n "$MAGIC_CMD"; then
2262   echo "$ac_t""$MAGIC_CMD" 1>&6
2263 else
2264   echo "$ac_t""no" 1>&6
2265 fi
2266
2267   else
2268     MAGIC_CMD=:
2269   fi
2270 fi
2271
2272   fi
2273   ;;
2274 esac
2275
2276 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2277 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2279 echo "configure:2280: checking for $ac_word" >&5
2280 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2281   echo $ac_n "(cached) $ac_c" 1>&6
2282 else
2283   if test -n "$RANLIB"; then
2284   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2285 else
2286   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2287   ac_dummy="$PATH"
2288   for ac_dir in $ac_dummy; do
2289     test -z "$ac_dir" && ac_dir=.
2290     if test -f $ac_dir/$ac_word; then
2291       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2292       break
2293     fi
2294   done
2295   IFS="$ac_save_ifs"
2296 fi
2297 fi
2298 RANLIB="$ac_cv_prog_RANLIB"
2299 if test -n "$RANLIB"; then
2300   echo "$ac_t""$RANLIB" 1>&6
2301 else
2302   echo "$ac_t""no" 1>&6
2303 fi
2304
2305
2306 if test -z "$ac_cv_prog_RANLIB"; then
2307 if test -n "$ac_tool_prefix"; then
2308   # Extract the first word of "ranlib", so it can be a program name with args.
2309 set dummy ranlib; ac_word=$2
2310 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2311 echo "configure:2312: checking for $ac_word" >&5
2312 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2313   echo $ac_n "(cached) $ac_c" 1>&6
2314 else
2315   if test -n "$RANLIB"; then
2316   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2317 else
2318   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2319   ac_dummy="$PATH"
2320   for ac_dir in $ac_dummy; do
2321     test -z "$ac_dir" && ac_dir=.
2322     if test -f $ac_dir/$ac_word; then
2323       ac_cv_prog_RANLIB="ranlib"
2324       break
2325     fi
2326   done
2327   IFS="$ac_save_ifs"
2328   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2329 fi
2330 fi
2331 RANLIB="$ac_cv_prog_RANLIB"
2332 if test -n "$RANLIB"; then
2333   echo "$ac_t""$RANLIB" 1>&6
2334 else
2335   echo "$ac_t""no" 1>&6
2336 fi
2337
2338 else
2339   RANLIB=":"
2340 fi
2341 fi
2342
2343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2344 set dummy ${ac_tool_prefix}strip; ac_word=$2
2345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2346 echo "configure:2347: checking for $ac_word" >&5
2347 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2348   echo $ac_n "(cached) $ac_c" 1>&6
2349 else
2350   if test -n "$STRIP"; then
2351   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2352 else
2353   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2354   ac_dummy="$PATH"
2355   for ac_dir in $ac_dummy; do
2356     test -z "$ac_dir" && ac_dir=.
2357     if test -f $ac_dir/$ac_word; then
2358       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2359       break
2360     fi
2361   done
2362   IFS="$ac_save_ifs"
2363 fi
2364 fi
2365 STRIP="$ac_cv_prog_STRIP"
2366 if test -n "$STRIP"; then
2367   echo "$ac_t""$STRIP" 1>&6
2368 else
2369   echo "$ac_t""no" 1>&6
2370 fi
2371
2372
2373 if test -z "$ac_cv_prog_STRIP"; then
2374 if test -n "$ac_tool_prefix"; then
2375   # Extract the first word of "strip", so it can be a program name with args.
2376 set dummy strip; ac_word=$2
2377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2378 echo "configure:2379: checking for $ac_word" >&5
2379 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2380   echo $ac_n "(cached) $ac_c" 1>&6
2381 else
2382   if test -n "$STRIP"; then
2383   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2384 else
2385   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2386   ac_dummy="$PATH"
2387   for ac_dir in $ac_dummy; do
2388     test -z "$ac_dir" && ac_dir=.
2389     if test -f $ac_dir/$ac_word; then
2390       ac_cv_prog_STRIP="strip"
2391       break
2392     fi
2393   done
2394   IFS="$ac_save_ifs"
2395   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2396 fi
2397 fi
2398 STRIP="$ac_cv_prog_STRIP"
2399 if test -n "$STRIP"; then
2400   echo "$ac_t""$STRIP" 1>&6
2401 else
2402   echo "$ac_t""no" 1>&6
2403 fi
2404
2405 else
2406   STRIP=":"
2407 fi
2408 fi
2409
2410
2411 # Check for any special flags to pass to ltconfig.
2412 libtool_flags="--cache-file=$cache_file"
2413 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2414 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2415 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2416 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2417 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2418 libtool_flags="$libtool_flags --enable-dlopen"
2419
2420 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2421 if test "${enable_libtool_lock+set}" = set; then
2422   enableval="$enable_libtool_lock"
2423   :
2424 fi
2425
2426 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2427 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2428
2429 # Check whether --with-pic or --without-pic was given.
2430 if test "${with_pic+set}" = set; then
2431   withval="$with_pic"
2432   pic_mode="$withval"
2433 else
2434   pic_mode=default
2435 fi
2436
2437 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2438 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2439
2440 # Some flags need to be propagated to the compiler or linker for good
2441 # libtool support.
2442 case $host in
2443 *-*-irix6*)
2444   # Find out which ABI we are using.
2445   echo '#line 2446 "configure"' > conftest.$ac_ext
2446   if { (eval echo configure:2447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2447     case `/usr/bin/file conftest.$ac_objext` in
2448     *32-bit*)
2449       LD="${LD-ld} -32"
2450       ;;
2451     *N32*)
2452       LD="${LD-ld} -n32"
2453       ;;
2454     *64-bit*)
2455       LD="${LD-ld} -64"
2456       ;;
2457     esac
2458   fi
2459   rm -rf conftest*
2460   ;;
2461
2462 *-*-sco3.2v5*)
2463   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2464   SAVE_CFLAGS="$CFLAGS"
2465   CFLAGS="$CFLAGS -belf"
2466   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2467 echo "configure:2468: checking whether the C compiler needs -belf" >&5
2468 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2469   echo $ac_n "(cached) $ac_c" 1>&6
2470 else
2471   
2472      ac_ext=c
2473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2474 ac_cpp='$CPP $CPPFLAGS'
2475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2477 cross_compiling=$ac_cv_prog_cc_cross
2478
2479      cat > conftest.$ac_ext <<EOF
2480 #line 2481 "configure"
2481 #include "confdefs.h"
2482
2483 int main() {
2484
2485 ; return 0; }
2486 EOF
2487 if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2488   rm -rf conftest*
2489   lt_cv_cc_needs_belf=yes
2490 else
2491   echo "configure: failed program was:" >&5
2492   cat conftest.$ac_ext >&5
2493   rm -rf conftest*
2494   lt_cv_cc_needs_belf=no
2495 fi
2496 rm -f conftest*
2497      ac_ext=c
2498 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2499 ac_cpp='$CPP $CPPFLAGS'
2500 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2501 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2502 cross_compiling=$ac_cv_prog_cc_cross
2503
2504 fi
2505
2506 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2507   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2508     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2509     CFLAGS="$SAVE_CFLAGS"
2510   fi
2511   ;;
2512
2513
2514 esac
2515
2516 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2517 echo "configure:2518: checking how to run the C++ preprocessor" >&5
2518 if test -z "$CXXCPP"; then
2519 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2520   echo $ac_n "(cached) $ac_c" 1>&6
2521 else
2522   ac_ext=C
2523 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2524 ac_cpp='$CXXCPP $CPPFLAGS'
2525 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2526 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2527 cross_compiling=$ac_cv_prog_cxx_cross
2528   CXXCPP="${CXX-g++} -E"
2529   cat > conftest.$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2532 #include <stdlib.h>
2533 EOF
2534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2535 { (eval echo configure:2536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2537 if test -z "$ac_err"; then
2538   :
2539 else
2540   echo "$ac_err" >&5
2541   echo "configure: failed program was:" >&5
2542   cat conftest.$ac_ext >&5
2543   rm -rf conftest*
2544   CXXCPP=/lib/cpp
2545 fi
2546 rm -f conftest*
2547   ac_cv_prog_CXXCPP="$CXXCPP"
2548 ac_ext=c
2549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2550 ac_cpp='$CPP $CPPFLAGS'
2551 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2552 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2553 cross_compiling=$ac_cv_prog_cc_cross
2554 fi
2555 fi
2556 CXXCPP="$ac_cv_prog_CXXCPP"
2557 echo "$ac_t""$CXXCPP" 1>&6
2558
2559
2560 # Save cache, so that ltconfig can load it
2561 cat > confcache <<\EOF
2562 # This file is a shell script that caches the results of configure
2563 # tests run on this system so they can be shared between configure
2564 # scripts and configure runs.  It is not useful on other systems.
2565 # If it contains results you don't want to keep, you may remove or edit it.
2566 #
2567 # By default, configure uses ./config.cache as the cache file,
2568 # creating it if it does not exist already.  You can give configure
2569 # the --cache-file=FILE option to use a different cache file; that is
2570 # what configure does when it calls configure scripts in
2571 # subdirectories, so they share the cache.
2572 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2573 # config.status only pays attention to the cache file if you give it the
2574 # --recheck option to rerun configure.
2575 #
2576 EOF
2577 # The following way of writing the cache mishandles newlines in values,
2578 # but we know of no workaround that is simple, portable, and efficient.
2579 # So, don't put newlines in cache variables' values.
2580 # Ultrix sh set writes to stderr and can't be redirected directly,
2581 # and sets the high bit in the cache file unless we assign to the vars.
2582 (set) 2>&1 |
2583   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2584   *ac_space=\ *)
2585     # `set' does not quote correctly, so add quotes (double-quote substitution
2586     # turns \\\\ into \\, and sed turns \\ into \).
2587     sed -n \
2588       -e "s/'/'\\\\''/g" \
2589       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2590     ;;
2591   *)
2592     # `set' quotes correctly as required by POSIX, so do not add quotes.
2593     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2594     ;;
2595   esac >> confcache
2596 if cmp -s $cache_file confcache; then
2597   :
2598 else
2599   if test -w $cache_file; then
2600     echo "updating cache $cache_file"
2601     cat confcache > $cache_file
2602   else
2603     echo "not updating unwritable cache $cache_file"
2604   fi
2605 fi
2606 rm -f confcache
2607
2608
2609 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2610 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2611 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2612 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2613 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2614 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2615 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2616 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2617 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2618 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2619
2620 # Reload cache, that may have been modified by ltconfig
2621 if test -r "$cache_file"; then
2622   echo "loading cache $cache_file"
2623   . $cache_file
2624 else
2625   echo "creating cache $cache_file"
2626   > $cache_file
2627 fi
2628
2629
2630 # This can be used to rebuild libtool when needed
2631 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2632
2633 # Always use our own libtool.
2634 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2635
2636 # Redirect the config.log output again, so that the ltconfig log is not
2637 # clobbered by the next message.
2638 exec 5>>./config.log
2639
2640
2641
2642 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2643 lt_save_CC="$CC"
2644 lt_save_CFLAGS="$CFLAGS"
2645 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2646 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2647 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2648 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2649 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2650 deplibs_check_method="$deplibs_check_method" \
2651 file_magic_cmd="$file_magic_cmd" \
2652 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2653 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2654 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2655 CC="$lt_save_CC"
2656 CFLAGS="$lt_save_CFLAGS"
2657
2658 # Redirect the config.log output again, so that the ltconfig log is not
2659 # clobbered by the next message.
2660 exec 5>>./config.log
2661
2662   
2663
2664   
2665          
2666          
2667
2668
2669 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2670 echo "configure:2671: checking for GNU make" >&5
2671 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2672   echo $ac_n "(cached) $ac_c" 1>&6
2673 else
2674   _cv_gnu_make_command='' ;
2675           for a in "${MAKE-make}" make gmake gnumake ; do
2676                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2677                   then
2678                           _cv_gnu_make_command=$a ;
2679                           break;
2680                   fi
2681           done ;
2682   
2683 fi
2684
2685 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2686   if test  "x$_cv_gnu_make_command" != "x"  ; then
2687           ifGNUmake='' ;
2688   else
2689           ifGNUmake='#' ;
2690   fi
2691   
2692
2693   if test "x$_cv_gnu_make_command" = "x"; then
2694     { echo "configure: error: GNU make not found. Please install it or correct your path." 1>&2; exit 1; }
2695   fi
2696
2697
2698
2699
2700 # Check for c++ or library specific bits that don't require linking.
2701
2702 if test ! -f stamp-sanity-compiler; then
2703   echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2704 echo "configure:2705: checking for g++ that will successfully compile libstdc++-v3" >&5
2705   
2706   ac_ext=C
2707 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2708 ac_cpp='$CXXCPP $CPPFLAGS'
2709 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2710 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2711 cross_compiling=$ac_cv_prog_cxx_cross
2712
2713   cat > conftest.$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2716
2717   #if __GNUC__ >= 3
2718     ok
2719   #endif
2720   
2721 EOF
2722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2723   egrep "ok" >/dev/null 2>&1; then
2724   rm -rf conftest*
2725   gpp_satisfactory=yes
2726 else
2727   rm -rf conftest*
2728   { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; }
2729 fi
2730 rm -f conftest*
2731
2732   ac_ext=c
2733 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2736 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2737 cross_compiling=$ac_cv_prog_cc_cross
2738
2739   echo "$ac_t""$gpp_satisfactory" 1>&6
2740   touch stamp-sanity-compiler
2741 fi
2742
2743
2744 # Enable all the crazy c++ stuff.  C_MBCHAR must come early.
2745 # Check whether --enable-debug or --disable-debug was given.
2746 if test "${enable_debug+set}" = set; then
2747   enableval="$enable_debug"
2748   case "${enableval}" in
2749  yes) enable_debug=yes ;;
2750  no)  enable_debug=no ;;
2751  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2752  esac
2753 else
2754   enable_debug=no
2755 fi
2756
2757 case "${enable_debug}" in
2758     yes) 
2759         DEBUG_FLAGS='-O0 -ggdb3'                        
2760         ;; 
2761     no)   
2762         DEBUG_FLAGS='-g'
2763         ;;
2764 esac
2765
2766
2767 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2768 echo "configure:2769: checking how to run the C preprocessor" >&5
2769 # On Suns, sometimes $CPP names a directory.
2770 if test -n "$CPP" && test -d "$CPP"; then
2771   CPP=
2772 fi
2773 if test -z "$CPP"; then
2774 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2775   echo $ac_n "(cached) $ac_c" 1>&6
2776 else
2777     # This must be in double quotes, not single quotes, because CPP may get
2778   # substituted into the Makefile and "${CC-cc}" will confuse make.
2779   CPP="${CC-cc} -E"
2780   # On the NeXT, cc -E runs the code through the compiler's parser,
2781   # not just through cpp.
2782   cat > conftest.$ac_ext <<EOF
2783 #line 2784 "configure"
2784 #include "confdefs.h"
2785 #include <assert.h>
2786 Syntax Error
2787 EOF
2788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2789 { (eval echo configure:2790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2791 if test -z "$ac_err"; then
2792   :
2793 else
2794   echo "$ac_err" >&5
2795   echo "configure: failed program was:" >&5
2796   cat conftest.$ac_ext >&5
2797   rm -rf conftest*
2798   CPP="${CC-cc} -E -traditional-cpp"
2799   cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2802 #include <assert.h>
2803 Syntax Error
2804 EOF
2805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2806 { (eval echo configure:2807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2808 if test -z "$ac_err"; then
2809   :
2810 else
2811   echo "$ac_err" >&5
2812   echo "configure: failed program was:" >&5
2813   cat conftest.$ac_ext >&5
2814   rm -rf conftest*
2815   CPP="${CC-cc} -nologo -E"
2816   cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 #include <assert.h>
2820 Syntax Error
2821 EOF
2822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2823 { (eval echo configure:2824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2825 if test -z "$ac_err"; then
2826   :
2827 else
2828   echo "$ac_err" >&5
2829   echo "configure: failed program was:" >&5
2830   cat conftest.$ac_ext >&5
2831   rm -rf conftest*
2832   CPP=/lib/cpp
2833 fi
2834 rm -f conftest*
2835 fi
2836 rm -f conftest*
2837 fi
2838 rm -f conftest*
2839   ac_cv_prog_CPP="$CPP"
2840 fi
2841   CPP="$ac_cv_prog_CPP"
2842 else
2843   ac_cv_prog_CPP="$CPP"
2844 fi
2845 echo "$ac_t""$CPP" 1>&6
2846
2847
2848   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2849 echo "configure:2850: checking for cstdio to use" >&5
2850   # Check whether --enable-cstdio or --disable-cstdio was given.
2851 if test "${enable_cstdio+set}" = set; then
2852   enableval="$enable_cstdio"
2853   if test x$enable_cstdio = xno; then
2854      enable_cstdio=stdio
2855   fi
2856 else
2857   enable_cstdio=stdio
2858 fi
2859
2860
2861   enable_cstdio_flag=$enable_cstdio
2862
2863     case x${enable_cstdio_flag} in
2864     xlibio)
2865       CSTDIO_H=config/c_io_libio.h
2866       BASIC_FILE_H=config/basic_file_libio.h
2867       BASIC_FILE_CC=config/basic_file_libio.cc
2868       echo "$ac_t""libio" 1>&6
2869
2870       # see if we are on a system with libio native (ie, linux)
2871       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2872 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2873 echo "configure:2874: checking for libio.h" >&5
2874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2875   echo $ac_n "(cached) $ac_c" 1>&6
2876 else
2877   cat > conftest.$ac_ext <<EOF
2878 #line 2879 "configure"
2879 #include "confdefs.h"
2880 #include <libio.h>
2881 EOF
2882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2883 { (eval echo configure:2884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2885 if test -z "$ac_err"; then
2886   rm -rf conftest*
2887   eval "ac_cv_header_$ac_safe=yes"
2888 else
2889   echo "$ac_err" >&5
2890   echo "configure: failed program was:" >&5
2891   cat conftest.$ac_ext >&5
2892   rm -rf conftest*
2893   eval "ac_cv_header_$ac_safe=no"
2894 fi
2895 rm -f conftest*
2896 fi
2897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2898   echo "$ac_t""yes" 1>&6
2899   has_libio=yes
2900 else
2901   echo "$ac_t""no" 1>&6
2902 has_libio=no
2903 fi
2904
2905
2906       # Need to check and see what version of glibc is being used. If
2907       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2908       # compile most of libio for linux systems.
2909       if test x$has_libio = x"yes"; then
2910         case "$target" in
2911           *-*-linux*)
2912               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2913 echo "configure:2914: checking for glibc version >= 2.2" >&5
2914               cat > conftest.$ac_ext <<EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2917
2918             #include <features.h>
2919               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2920                     ok
2921               #endif
2922               
2923 EOF
2924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2925   egrep "ok" >/dev/null 2>&1; then
2926   rm -rf conftest*
2927   glibc_satisfactory=yes
2928 else
2929   rm -rf conftest*
2930   glibc_satisfactory=no
2931 fi
2932 rm -f conftest*
2933
2934               echo "$ac_t""$glibc_satisfactory" 1>&6
2935             ;;
2936         esac
2937
2938         # XXX at the moment, admit defeat and force the recompilation
2939         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2940         glibc_satisfactory=no        
2941
2942         if test x$glibc_satisfactory = x"yes"; then
2943            need_libio=no
2944            need_wlibio=no        
2945         else
2946            need_libio=yes
2947            # bkoz XXX need to add checks to enable this
2948            # pme XXX here's a first pass at such a check
2949            if test x$enable_c_mbchar != xno; then
2950               need_wlibio=yes
2951            else
2952               need_wlibio=no
2953            fi
2954         fi
2955
2956       else
2957          # Using libio, but <libio.h> doesn't exist on the target system. . .
2958          need_libio=yes
2959          # bkoz XXX need to add checks to enable this
2960          # pme XXX here's a first pass at such a check
2961          if test x$enable_c_mbchar != xno; then
2962              need_wlibio=yes
2963          else
2964              need_wlibio=no
2965          fi
2966       fi
2967       ;;
2968     xstdio | x | xno | xnone | xyes)
2969       # default
2970       CSTDIO_H=config/c_io_stdio.h
2971       BASIC_FILE_H=config/basic_file_stdio.h
2972       BASIC_FILE_CC=config/basic_file_stdio.cc
2973       echo "$ac_t""stdio" 1>&6
2974
2975       # We're not using stdio.
2976       need_libio=no
2977       need_wlibio=no
2978       ;;
2979     *)
2980       echo "$enable_cstdio is an unknown io package" 1>&2
2981       exit 1
2982       ;;
2983   esac
2984   
2985   
2986   
2987
2988   # 2000-08-04 bkoz hack
2989   CCODECVT_C=config/c_io_libio_codecvt.c
2990   
2991   # 2000-08-04 bkoz hack
2992
2993   
2994
2995 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2996   GLIBCPP_BUILD_LIBIO_TRUE=
2997   GLIBCPP_BUILD_LIBIO_FALSE='#'
2998 else
2999   GLIBCPP_BUILD_LIBIO_TRUE='#'
3000   GLIBCPP_BUILD_LIBIO_FALSE=
3001 fi
3002   
3003
3004 if test "$need_libio" = yes; then
3005   GLIBCPP_NEED_LIBIO_TRUE=
3006   GLIBCPP_NEED_LIBIO_FALSE='#'
3007 else
3008   GLIBCPP_NEED_LIBIO_TRUE='#'
3009   GLIBCPP_NEED_LIBIO_FALSE=
3010 fi
3011   
3012
3013 if test "$need_wlibio" = yes; then
3014   GLIBCPP_NEED_WLIBIO_TRUE=
3015   GLIBCPP_NEED_WLIBIO_FALSE='#'
3016 else
3017   GLIBCPP_NEED_WLIBIO_TRUE='#'
3018   GLIBCPP_NEED_WLIBIO_FALSE=
3019 fi
3020   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3021     libio_la=../libio/libio.la
3022   else
3023     libio_la=
3024   fi
3025   
3026
3027
3028   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3029 echo "configure:3030: checking for clocale to use" >&5
3030   # Check whether --enable-clocale or --disable-clocale was given.
3031 if test "${enable_clocale+set}" = set; then
3032   enableval="$enable_clocale"
3033   if test x$enable_clocale = xno; then
3034      enable_clocale=generic
3035   fi
3036 else
3037   enable_clocale=generic
3038 fi
3039
3040
3041   enable_clocale_flag=$enable_clocale
3042
3043     case x${enable_clocale_flag} in
3044     xgnu)
3045       CLOCALE_H=config/c_locale_gnu.h
3046       CLOCALE_CC=config/c_locale_gnu.cc
3047       echo "$ac_t""gnu" 1>&6
3048       ;;
3049     xgeneric)
3050       CLOCALE_H=config/c_locale_generic.h
3051       CLOCALE_CC=config/c_locale_generic.cc
3052       echo "$ac_t""generic" 1>&6
3053       ;;
3054     *)
3055       echo "$enable_clocale is an unknown locale package" 1>&2
3056       exit 1
3057       ;;
3058   esac
3059
3060   
3061   
3062
3063 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3064 if test "${enable_c_mbchar+set}" = set; then
3065   enableval="$enable_c_mbchar"
3066   case "$enableval" in
3067  yes) enable_c_mbchar=yes ;;
3068  no)  enable_c_mbchar=no ;;
3069  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3070  esac
3071 else
3072   enable_c_mbchar=yes
3073 fi
3074
3075   
3076   # Check whether --enable-long-long or --disable-long-long was given.
3077 if test "${enable_long_long+set}" = set; then
3078   enableval="$enable_long_long"
3079     case "$enableval" in
3080    yes) enable_long_long=yes ;;
3081    no)  enable_long_long=no ;;
3082    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3083    esac
3084 else
3085   enable_long_long=no
3086 fi
3087  
3088   # Allow use of os-dependent settings, so that macros that turn on
3089   # C99 capabilities can be defined and used in a consistent way.
3090   OS_INC_PATH=${srcdir}/$os_include_dir
3091   ac_test_CFLAGS="${CFLAGS+set}"
3092   ac_save_CFLAGS="$CFLAGS"
3093   CFLAGS="-I$OS_INC_PATH"
3094
3095   # Check for the existence of functions used if long long is enabled.
3096   echo $ac_n "checking for strtoll""... $ac_c" 1>&6
3097 echo "configure:3098: checking for strtoll" >&5
3098 if eval "test \"`echo '$''{'ac_cv_func_strtoll'+set}'`\" = set"; then
3099   echo $ac_n "(cached) $ac_c" 1>&6
3100 else
3101   cat > conftest.$ac_ext <<EOF
3102 #line 3103 "configure"
3103 #include "confdefs.h"
3104 /* System header to define __stub macros and hopefully few prototypes,
3105     which can conflict with char strtoll(); below.  */
3106 #include <assert.h>
3107 /* Override any gcc2 internal prototype to avoid an error.  */
3108 /* We use char because int might match the return type of a gcc2
3109     builtin and then its argument prototype would still apply.  */
3110 char strtoll();
3111
3112 int main() {
3113
3114 /* The GNU C library defines this for functions which it implements
3115     to always fail with ENOSYS.  Some functions are actually named
3116     something starting with __ and the normal name is an alias.  */
3117 #if defined (__stub_strtoll) || defined (__stub___strtoll)
3118 choke me
3119 #else
3120 strtoll();
3121 #endif
3122
3123 ; return 0; }
3124 EOF
3125 if { (eval echo configure:3126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3126   rm -rf conftest*
3127   eval "ac_cv_func_strtoll=yes"
3128 else
3129   echo "configure: failed program was:" >&5
3130   cat conftest.$ac_ext >&5
3131   rm -rf conftest*
3132   eval "ac_cv_func_strtoll=no"
3133 fi
3134 rm -f conftest*
3135 fi
3136
3137 if eval "test \"`echo '$ac_cv_func_'strtoll`\" = yes"; then
3138   echo "$ac_t""yes" 1>&6
3139   :
3140 else
3141   echo "$ac_t""no" 1>&6
3142 ac_strtoll=no
3143 fi
3144
3145   echo $ac_n "checking for strtoull""... $ac_c" 1>&6
3146 echo "configure:3147: checking for strtoull" >&5
3147 if eval "test \"`echo '$''{'ac_cv_func_strtoull'+set}'`\" = set"; then
3148   echo $ac_n "(cached) $ac_c" 1>&6
3149 else
3150   cat > conftest.$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3153 /* System header to define __stub macros and hopefully few prototypes,
3154     which can conflict with char strtoull(); below.  */
3155 #include <assert.h>
3156 /* Override any gcc2 internal prototype to avoid an error.  */
3157 /* We use char because int might match the return type of a gcc2
3158     builtin and then its argument prototype would still apply.  */
3159 char strtoull();
3160
3161 int main() {
3162
3163 /* The GNU C library defines this for functions which it implements
3164     to always fail with ENOSYS.  Some functions are actually named
3165     something starting with __ and the normal name is an alias.  */
3166 #if defined (__stub_strtoull) || defined (__stub___strtoull)
3167 choke me
3168 #else
3169 strtoull();
3170 #endif
3171
3172 ; return 0; }
3173 EOF
3174 if { (eval echo configure:3175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3175   rm -rf conftest*
3176   eval "ac_cv_func_strtoull=yes"
3177 else
3178   echo "configure: failed program was:" >&5
3179   cat conftest.$ac_ext >&5
3180   rm -rf conftest*
3181   eval "ac_cv_func_strtoull=no"
3182 fi
3183 rm -f conftest*
3184 fi
3185
3186 if eval "test \"`echo '$ac_cv_func_'strtoull`\" = yes"; then
3187   echo "$ac_t""yes" 1>&6
3188   :
3189 else
3190   echo "$ac_t""no" 1>&6
3191 ac_strtoull=no
3192 fi
3193
3194
3195   # Check for lldiv_t, et. al.
3196   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3197 echo "configure:3198: checking for lldiv_t declaration" >&5
3198   if eval "test \"`echo '$''{'glibcpp_lldiv_t_use'+set}'`\" = set"; then
3199   echo $ac_n "(cached) $ac_c" 1>&6
3200 else
3201   
3202   cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3205 #include <bits/os_defines.h>
3206                   #include <stdlib.h>
3207 int main() {
3208  lldiv_t mydivt;
3209 ; return 0; }
3210 EOF
3211 if { (eval echo configure:3212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3212   rm -rf conftest*
3213   glibcpp_lldiv_t_use=yes
3214 else
3215   echo "configure: failed program was:" >&5
3216   cat conftest.$ac_ext >&5
3217   rm -rf conftest*
3218   glibcpp_lldiv_t_use=no
3219 fi
3220 rm -f conftest*
3221   
3222 fi
3223
3224   echo "$ac_t""$glibcpp_lldiv_t_use" 1>&6
3225   if test x$glibcpp_lldiv_t_use = x"yes"; then
3226     cat >> confdefs.h <<\EOF
3227 #define HAVE_LLDIV_T 1
3228 EOF
3229
3230   fi
3231
3232   echo $ac_n "checking for enabled long long""... $ac_c" 1>&6
3233 echo "configure:3234: checking for enabled long long" >&5
3234   if test x"$ac_strtoll" = xno || test x"$ac_strtoull" = xno; then 
3235     enable_long_long=no; 
3236   fi; 
3237   echo "$ac_t""$enable_long_long" 1>&6
3238
3239   # Option parsed, now set things appropriately
3240   if test x"$enable_long_long" = xyes; then
3241     cat >> confdefs.h <<\EOF
3242 #define _GLIBCPP_USE_LONG_LONG 1
3243 EOF
3244
3245   fi
3246
3247   # Reset CFLAGS
3248   CFLAGS="$ac_save_CFLAGS"
3249
3250 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3251 echo "configure:3252: checking for c header strategy to use" >&5
3252 # Check whether --enable-cheaders or --disable-cheaders was given.
3253 if test "${enable_cheaders+set}" = set; then
3254   enableval="$enable_cheaders"
3255   
3256   case "$enableval" in
3257    c) 
3258         enable_cheaders=c 
3259         ;;
3260    c_std)  
3261         enable_cheaders=c_std 
3262         ;;
3263    c_shadow)  
3264         enable_cheaders=c_shadow 
3265         ;;
3266    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3267         ;;
3268   esac
3269 else
3270   enable_cheaders=c_std
3271 fi
3272
3273   echo "$ac_t""$enable_cheaders" 1>&6
3274
3275     case "$enable_cheaders" in
3276     c_shadow) 
3277         CSHADOW_FLAGS="-fno-builtin"
3278         C_INCLUDE_DIR='${top_srcdir}/include/c_shadow'
3279         cat >> confdefs.h <<\EOF
3280 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3281 EOF
3282
3283         ;;
3284     c_std)   
3285         CSHADOW_FLAGS=""
3286         C_INCLUDE_DIR='${top_srcdir}/include/c_std'
3287         ;;
3288     c)   
3289         CSHADOW_FLAGS=""
3290         C_INCLUDE_DIR='${top_srcdir}/include/c'
3291         ;;
3292   esac
3293
3294   
3295   
3296   
3297
3298 if test "$enable_cheaders" = c_shadow; then
3299   GLIBCPP_USE_CSHADOW_TRUE=
3300   GLIBCPP_USE_CSHADOW_FALSE='#'
3301 else
3302   GLIBCPP_USE_CSHADOW_TRUE='#'
3303   GLIBCPP_USE_CSHADOW_FALSE=
3304 fi
3305
3306
3307       echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
3308 echo "configure:3309: checking for threads package to use" >&5
3309   # Check whether --enable-threads or --disable-threads was given.
3310 if test "${enable_threads+set}" = set; then
3311   enableval="$enable_threads"
3312   if test x$enable_threads = xno; then
3313     enable_threads=''
3314   fi
3315 else
3316   enable_threads=''
3317 fi
3318
3319
3320   enable_threads_flag=$enable_threads
3321
3322     case x${enable_threads_flag} in
3323         x | xno | xnone)
3324                 # No threads
3325                 target_thread_file='single'
3326                 ;;
3327         xyes)
3328                 # default
3329                 target_thread_file='posix'
3330                 ;;
3331         xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
3332         xsolaris | xwin32 | xdce | xvxworks)
3333                 target_thread_file=$enable_threads_flag
3334                 ;;
3335         *)
3336                 echo "$enable_threads is an unknown thread package" 1>&2
3337                 exit 1
3338                 ;;
3339   esac
3340
3341     THREADH=
3342   case "$target_thread_file" in
3343     no | none | single)
3344       THREADH=threads-no.h
3345       ;;
3346     posix | pthreads)
3347       THREADH=threads-posix.h
3348       ;;
3349     decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3350       { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3351       ;;
3352     *)
3353       { echo "configure: error: $THREADS is an unsupported/unknown thread package" 1>&2; exit 1; }
3354       ;;
3355   esac
3356   echo "$ac_t""$THREADH" 1>&6
3357
3358   
3359   if test $THREADH != threads-no.h; then
3360     cat >> confdefs.h <<\EOF
3361 #define _GLIBCPP_USE_THREADS 1
3362 EOF
3363
3364   fi
3365
3366 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3367 if test "${enable_cxx_flags+set}" = set; then
3368   enableval="$enable_cxx_flags"
3369   case "x$enableval" in
3370  xyes)   
3371         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3372  xno|x)  
3373         enable_cxx_flags='' ;;
3374  *)      
3375         enable_cxx_flags="$enableval" ;;
3376  esac
3377 else
3378   enable_cxx_flags='none'
3379 fi
3380
3381
3382 if test "$enable_cxx_flags" = "none"; then 
3383   enable_cxx_flags=''; 
3384 fi
3385
3386 if test -n "$enable_cxx_flags"; then
3387     for f in $enable_cxx_flags; do
3388         case "$f" in
3389             -fhonor-std)  ;;
3390             -*)  ;;
3391             *)   # and we're trying to pass /what/ exactly?
3392                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3393         esac
3394     done
3395 fi
3396 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3397
3398
3399
3400   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3401 echo "configure:3402: checking for exception model to use" >&5
3402   
3403   ac_ext=C
3404 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3405 ac_cpp='$CXXCPP $CPPFLAGS'
3406 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3407 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3408 cross_compiling=$ac_cv_prog_cxx_cross
3409
3410   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3411 if test "${enable_sjlj_exceptions+set}" = set; then
3412   enableval="$enable_sjlj_exceptions"
3413   :
3414 else
3415                        cat > conftest.$ac_ext << EOF
3416 #line 3417 "configure"
3417 struct S { ~S(); };
3418 void bar();
3419 void foo()
3420 {
3421   S s;
3422   bar();
3423 }
3424 EOF
3425    old_CXXFLAGS="$CXXFLAGS"  
3426    CXXFLAGS=-S
3427    if { (eval echo configure:3428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3428      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3429        enable_sjlj_exceptions=yes
3430      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3431        enable_sjlj_exceptions=no
3432      fi
3433    fi
3434    CXXFLAGS="$old_CXXFLAGS"
3435    rm -f conftest*
3436 fi
3437
3438    if test x$enable_sjlj_exceptions = xyes; then
3439      cat >> confdefs.h <<\EOF
3440 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3441 EOF
3442
3443      ac_exception_model_name=sjlj
3444    elif test x$enable_sjlj_exceptions = xno; then
3445      ac_exception_model_name="call frame"
3446    else
3447      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3448    fi
3449    ac_ext=c
3450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3454 cross_compiling=$ac_cv_prog_cc_cross
3455
3456    echo "$ac_t""$ac_exception_model_name" 1>&6
3457
3458
3459 if test -n "$with_cross_host"; then
3460
3461   # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
3462   # may not work correctly, because the compiler may not be able to
3463   # link executables.
3464   xcompiling=1
3465   NATIVE=no
3466
3467   # If Canadian cross, then don't pick up tools from the build
3468   # directory.
3469   if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3470     CANADIAN=yes
3471     NULL_TARGET=yes
3472   else
3473     CANADIAN=no
3474     NULL_TARGET=no
3475   fi
3476
3477   case "$target_alias" in
3478     *-linux*)
3479         # Construct linux crosses by hand, eliminating bits that need ld...
3480         # Check for available headers.
3481         for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3482         machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
3483         float.h inttypes.h
3484 do
3485 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3487 echo "configure:3488: checking for $ac_hdr" >&5
3488 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3489   echo $ac_n "(cached) $ac_c" 1>&6
3490 else
3491   cat > conftest.$ac_ext <<EOF
3492 #line 3493 "configure"
3493 #include "confdefs.h"
3494 #include <$ac_hdr>
3495 EOF
3496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3497 { (eval echo configure:3498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3499 if test -z "$ac_err"; then
3500   rm -rf conftest*
3501   eval "ac_cv_header_$ac_safe=yes"
3502 else
3503   echo "$ac_err" >&5
3504   echo "configure: failed program was:" >&5
3505   cat conftest.$ac_ext >&5
3506   rm -rf conftest*
3507   eval "ac_cv_header_$ac_safe=no"
3508 fi
3509 rm -f conftest*
3510 fi
3511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3512   echo "$ac_t""yes" 1>&6
3513     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3514   cat >> confdefs.h <<EOF
3515 #define $ac_tr_hdr 1
3516 EOF
3517  
3518 else
3519   echo "$ac_t""no" 1>&6
3520 fi
3521 done
3522
3523
3524         # GLIBCPP_CHECK_COMPILER_FEATURES
3525         SECTION_FLAGS='-ffunction-sections -fdata-sections'
3526         
3527         
3528   # If we're not using GNU ld, then there's no point in even trying these
3529   # tests.  Check for that first.  We should have already tested for gld
3530   # by now (in libtool), but require it now just to be safe...
3531   SECTION_LDFLAGS=''
3532   OPT_LDFLAGS=''
3533   
3534
3535   # Set --gc-sections.
3536   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3537     # GNU ld it is!  Joy and bunny rabbits!
3538
3539     # All these tests are for C++; save the language and the compiler flags.
3540     # Need to do this so that g++ won't try to link in libstdc++
3541     ac_test_CFLAGS="${CFLAGS+set}"
3542     ac_save_CFLAGS="$CFLAGS"
3543     CFLAGS='-x c++  -Wl,--gc-sections'
3544
3545     # Check for -Wl,--gc-sections
3546     # XXX This test is broken at the moment, as symbols required for
3547     # linking are now in libsupc++ (not built yet.....). In addition, 
3548     # this test has cored on solaris in the past. In addition,
3549     # --gc-sections doesn't really work at the moment (keeps on discarding
3550     # used sections, first .eh_frame and now some of the glibc sections for
3551     # iconv). Bzzzzt. Thanks for playing, maybe next time.
3552     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3553 echo "configure:3554: checking for ld that supports -Wl,--gc-sections" >&5
3554     if test "$cross_compiling" = yes; then
3555   ac_sectionLDflags=yes
3556 else
3557   cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560
3561      int main(void) 
3562      {
3563        try { throw 1; }
3564        catch (...) { };
3565        return 0;
3566      }
3567     
3568 EOF
3569 if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3570 then
3571   ac_sectionLDflags=yes
3572 else
3573   echo "configure: failed program was:" >&5
3574   cat conftest.$ac_ext >&5
3575   rm -fr conftest*
3576   ac_sectionLFflags=no
3577 fi
3578 rm -fr conftest*
3579 fi
3580
3581     if test "$ac_test_CFLAGS" = set; then
3582       CFLAGS="$ac_save_CFLAGS"
3583     else
3584       # this is the suspicious part
3585       CFLAGS=''
3586     fi
3587     if test "$ac_sectionLDflags" = "yes"; then
3588       SECTION_LDFLAGS='-Wl,--gc-sections'
3589     fi
3590     echo "$ac_t""$ac_sectionLDflags" 1>&6
3591   fi
3592
3593   # Set linker optimization flags.
3594   if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
3595     OPT_LDFLAGS='-Wl,-O1'
3596   fi
3597
3598   
3599   
3600
3601         # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3602         # GLIBCPP_CHECK_MATH_SUPPORT
3603         cat >> confdefs.h <<\EOF
3604 #define HAVE_ACOSF 1
3605 EOF
3606
3607         cat >> confdefs.h <<\EOF
3608 #define HAVE_ASINF 1
3609 EOF
3610
3611         cat >> confdefs.h <<\EOF
3612 #define HAVE_ATAN2F 1
3613 EOF
3614
3615         cat >> confdefs.h <<\EOF
3616 #define HAVE_ATANF 1
3617 EOF
3618
3619         cat >> confdefs.h <<\EOF
3620 #define HAVE_CEILF 1
3621 EOF
3622
3623         cat >> confdefs.h <<\EOF
3624 #define HAVE_COPYSIGN 1
3625 EOF
3626
3627         cat >> confdefs.h <<\EOF
3628 #define HAVE_COPYSIGNF 1
3629 EOF
3630
3631         cat >> confdefs.h <<\EOF
3632 #define HAVE_COSF 1
3633 EOF
3634
3635         cat >> confdefs.h <<\EOF
3636 #define HAVE_COSHF 1
3637 EOF
3638
3639         cat >> confdefs.h <<\EOF
3640 #define HAVE_EXPF 1
3641 EOF
3642
3643         cat >> confdefs.h <<\EOF
3644 #define HAVE_FABSF 1
3645 EOF
3646
3647         cat >> confdefs.h <<\EOF
3648 #define HAVE_FINITE 1
3649 EOF
3650
3651         cat >> confdefs.h <<\EOF
3652 #define HAVE_FINITEF 1
3653 EOF
3654
3655         cat >> confdefs.h <<\EOF
3656 #define HAVE_FLOORF 1
3657 EOF
3658
3659         cat >> confdefs.h <<\EOF
3660 #define HAVE_FMODF 1
3661 EOF
3662
3663         cat >> confdefs.h <<\EOF
3664 #define HAVE_FREXPF 1
3665 EOF
3666
3667         cat >> confdefs.h <<\EOF
3668 #define HAVE_ISINF 1
3669 EOF
3670
3671         cat >> confdefs.h <<\EOF
3672 #define HAVE_ISINFF 1
3673 EOF
3674
3675         cat >> confdefs.h <<\EOF
3676 #define HAVE_ISNAN 1
3677 EOF
3678
3679         cat >> confdefs.h <<\EOF
3680 #define HAVE_ISNANF 1
3681 EOF
3682
3683         cat >> confdefs.h <<\EOF
3684 #define HAVE_LDEXPF 1
3685 EOF
3686
3687         cat >> confdefs.h <<\EOF
3688 #define HAVE_LOG10F 1
3689 EOF
3690
3691         cat >> confdefs.h <<\EOF
3692 #define HAVE_LOGF 1
3693 EOF
3694
3695         cat >> confdefs.h <<\EOF
3696 #define HAVE_MODFF 1
3697 EOF
3698
3699         cat >> confdefs.h <<\EOF
3700 #define HAVE_POWF 1
3701 EOF
3702
3703         cat >> confdefs.h <<\EOF
3704 #define HAVE_SINCOS 1
3705 EOF
3706
3707         cat >> confdefs.h <<\EOF
3708 #define HAVE_SINCOSF 1
3709 EOF
3710
3711         cat >> confdefs.h <<\EOF
3712 #define HAVE_SINF 1
3713 EOF
3714
3715         cat >> confdefs.h <<\EOF
3716 #define HAVE_SINHF 1
3717 EOF
3718
3719         cat >> confdefs.h <<\EOF
3720 #define HAVE_SQRTF 1
3721 EOF
3722
3723         cat >> confdefs.h <<\EOF
3724 #define HAVE_TANF 1
3725 EOF
3726
3727         cat >> confdefs.h <<\EOF
3728 #define HAVE_TANHF 1
3729 EOF
3730
3731
3732         # At some point, we should differentiate between architectures
3733         # like x86, which have long double versions, and alpha/powerpc/etc.,
3734         # which don't. For the time being, punt.
3735         if test x"long_double_math_on_this_cpu" = x"yes"; then
3736           cat >> confdefs.h <<\EOF
3737 #define HAVE_ACOSL 1
3738 EOF
3739
3740           cat >> confdefs.h <<\EOF
3741 #define HAVE_ASINL 1
3742 EOF
3743
3744           cat >> confdefs.h <<\EOF
3745 #define HAVE_ATAN2L 1
3746 EOF
3747
3748           cat >> confdefs.h <<\EOF
3749 #define HAVE_ATANL 1
3750 EOF
3751
3752           cat >> confdefs.h <<\EOF
3753 #define HAVE_CEILL 1
3754 EOF
3755
3756           cat >> confdefs.h <<\EOF
3757 #define HAVE_COPYSIGNL 1
3758 EOF
3759
3760           cat >> confdefs.h <<\EOF
3761 #define HAVE_COSL 1
3762 EOF
3763
3764           cat >> confdefs.h <<\EOF
3765 #define HAVE_COSHL 1
3766 EOF
3767
3768           cat >> confdefs.h <<\EOF
3769 #define HAVE_EXPL 1
3770 EOF
3771
3772           cat >> confdefs.h <<\EOF
3773 #define HAVE_FABSL 1
3774 EOF
3775
3776           cat >> confdefs.h <<\EOF
3777 #define HAVE_FINITEL 1
3778 EOF
3779
3780           cat >> confdefs.h <<\EOF
3781 #define HAVE_FLOORL 1
3782 EOF
3783
3784           cat >> confdefs.h <<\EOF
3785 #define HAVE_FMODL 1
3786 EOF
3787
3788           cat >> confdefs.h <<\EOF
3789 #define HAVE_FREXPL 1
3790 EOF
3791
3792           cat >> confdefs.h <<\EOF
3793 #define HAVE_ISINFL 1
3794 EOF
3795
3796           cat >> confdefs.h <<\EOF
3797 #define HAVE_ISNANL 1
3798 EOF
3799
3800           cat >> confdefs.h <<\EOF
3801 #define HAVE_LDEXPL 1
3802 EOF
3803
3804           cat >> confdefs.h <<\EOF
3805 #define HAVE_LOG10L 1
3806 EOF
3807
3808           cat >> confdefs.h <<\EOF
3809 #define HAVE_LOGL 1
3810 EOF
3811
3812           cat >> confdefs.h <<\EOF
3813 #define HAVE_MODFL 1
3814 EOF
3815
3816           cat >> confdefs.h <<\EOF
3817 #define HAVE_POWL 1
3818 EOF
3819
3820           cat >> confdefs.h <<\EOF
3821 #define HAVE_SINCOSL 1
3822 EOF
3823
3824           cat >> confdefs.h <<\EOF
3825 #define HAVE_SINL 1
3826 EOF
3827
3828           cat >> confdefs.h <<\EOF
3829 #define HAVE_SINHL 1
3830 EOF
3831
3832           cat >> confdefs.h <<\EOF
3833 #define HAVE_SQRTL 1
3834 EOF
3835
3836           cat >> confdefs.h <<\EOF
3837 #define HAVE_TANL 1
3838 EOF
3839
3840           cat >> confdefs.h <<\EOF
3841 #define HAVE_TANHL 1
3842 EOF
3843
3844         fi
3845         
3846     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3847 echo "configure:3848: checking for main in -lm" >&5
3848 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3850   echo $ac_n "(cached) $ac_c" 1>&6
3851 else
3852   ac_save_LIBS="$LIBS"
3853 LIBS="-lm  $LIBS"
3854 cat > conftest.$ac_ext <<EOF
3855 #line 3856 "configure"
3856 #include "confdefs.h"
3857
3858 int main() {
3859 main()
3860 ; return 0; }
3861 EOF
3862 if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3863   rm -rf conftest*
3864   eval "ac_cv_lib_$ac_lib_var=yes"
3865 else
3866   echo "configure: failed program was:" >&5
3867   cat conftest.$ac_ext >&5
3868   rm -rf conftest*
3869   eval "ac_cv_lib_$ac_lib_var=no"
3870 fi
3871 rm -f conftest*
3872 LIBS="$ac_save_LIBS"
3873
3874 fi
3875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3876   echo "$ac_t""yes" 1>&6
3877     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3878     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3879   cat >> confdefs.h <<EOF
3880 #define $ac_tr_lib 1
3881 EOF
3882
3883   LIBS="-lm $LIBS"
3884
3885 else
3886   echo "$ac_t""no" 1>&6
3887 fi
3888
3889   for ac_func in nan hypot hypotf atan2f expf copysignf
3890 do
3891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3892 echo "configure:3893: checking for $ac_func" >&5
3893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3894   echo $ac_n "(cached) $ac_c" 1>&6
3895 else
3896   cat > conftest.$ac_ext <<EOF
3897 #line 3898 "configure"
3898 #include "confdefs.h"
3899 /* System header to define __stub macros and hopefully few prototypes,
3900     which can conflict with char $ac_func(); below.  */
3901 #include <assert.h>
3902 /* Override any gcc2 internal prototype to avoid an error.  */
3903 /* We use char because int might match the return type of a gcc2
3904     builtin and then its argument prototype would still apply.  */
3905 char $ac_func();
3906
3907 int main() {
3908
3909 /* The GNU C library defines this for functions which it implements
3910     to always fail with ENOSYS.  Some functions are actually named
3911     something starting with __ and the normal name is an alias.  */
3912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3913 choke me
3914 #else
3915 $ac_func();
3916 #endif
3917
3918 ; return 0; }
3919 EOF
3920 if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3921   rm -rf conftest*
3922   eval "ac_cv_func_$ac_func=yes"
3923 else
3924   echo "configure: failed program was:" >&5
3925   cat conftest.$ac_ext >&5
3926   rm -rf conftest*
3927   eval "ac_cv_func_$ac_func=no"
3928 fi
3929 rm -f conftest*
3930 fi
3931
3932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3933   echo "$ac_t""yes" 1>&6
3934     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3935   cat >> confdefs.h <<EOF
3936 #define $ac_tr_func 1
3937 EOF
3938  
3939 else
3940   echo "$ac_t""no" 1>&6
3941 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
3942 fi
3943 done
3944
3945
3946
3947           USE_COMPLEX_LONG_DOUBLE=no
3948   if test x$ac_cv_func_atan2l = x"yes" \
3949      && test x$ac_cv_func_copysignl = x"yes"; then
3950     USE_COMPLEX_LONG_DOUBLE=yes
3951     for ac_func in hypotl signbitl
3952 do
3953 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3954 echo "configure:3955: checking for $ac_func" >&5
3955 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3956   echo $ac_n "(cached) $ac_c" 1>&6
3957 else
3958   cat > conftest.$ac_ext <<EOF
3959 #line 3960 "configure"
3960 #include "confdefs.h"
3961 /* System header to define __stub macros and hopefully few prototypes,
3962     which can conflict with char $ac_func(); below.  */
3963 #include <assert.h>
3964 /* Override any gcc2 internal prototype to avoid an error.  */
3965 /* We use char because int might match the return type of a gcc2
3966     builtin and then its argument prototype would still apply.  */
3967 char $ac_func();
3968
3969 int main() {
3970
3971 /* The GNU C library defines this for functions which it implements
3972     to always fail with ENOSYS.  Some functions are actually named
3973     something starting with __ and the normal name is an alias.  */
3974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3975 choke me
3976 #else
3977 $ac_func();
3978 #endif
3979
3980 ; return 0; }
3981 EOF
3982 if { (eval echo configure:3983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3983   rm -rf conftest*
3984   eval "ac_cv_func_$ac_func=yes"
3985 else
3986   echo "configure: failed program was:" >&5
3987   cat conftest.$ac_ext >&5
3988   rm -rf conftest*
3989   eval "ac_cv_func_$ac_func=no"
3990 fi
3991 rm -f conftest*
3992 fi
3993
3994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3995   echo "$ac_t""yes" 1>&6
3996     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3997   cat >> confdefs.h <<EOF
3998 #define $ac_tr_func 1
3999 EOF
4000  
4001 else
4002   echo "$ac_t""no" 1>&6
4003 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4004 fi
4005 done
4006
4007
4008   fi
4009
4010   
4011
4012         
4013   
4014
4015   echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
4016 echo "configure:4017: checking for GNU C++ __complex__ support" >&5
4017   if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
4018   echo $ac_n "(cached) $ac_c" 1>&6
4019 else
4020   
4021     
4022     ac_ext=C
4023 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4024 ac_cpp='$CXXCPP $CPPFLAGS'
4025 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4026 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4027 cross_compiling=$ac_cv_prog_cxx_cross
4028
4029     cat > conftest.$ac_ext <<EOF
4030 #line 4031 "configure"
4031 #include "confdefs.h"
4032 struct dcomplex { __complex__ double x; }; \
4033                     dcomplex f(const dcomplex& x) { return dcomplex(x); }
4034 int main() {
4035 \
4036                      dcomplex x; f(x); 
4037 ; return 0; }
4038 EOF
4039 if { (eval echo configure:4040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4040   rm -rf conftest*
4041   glibcpp_cv_complex=ok
4042 else
4043   echo "configure: failed program was:" >&5
4044   cat conftest.$ac_ext >&5
4045   rm -rf conftest*
4046   glibcpp_cv_complex=buggy
4047     
4048 fi
4049 rm -f conftest*
4050     ac_ext=c
4051 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4052 ac_cpp='$CPP $CPPFLAGS'
4053 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4054 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4055 cross_compiling=$ac_cv_prog_cc_cross
4056
4057   
4058 fi
4059
4060   echo "$ac_t""$glibcpp_cv_complex" 1>&6
4061   if test $glibcpp_cv_complex = buggy; then
4062     cat >> confdefs.h <<\EOF
4063 #define _GLIBCPP_BUGGY_COMPLEX 1
4064 EOF
4065
4066   fi
4067
4068   echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
4069 echo "configure:4070: checking for GNU C++ __complex__ float support" >&5
4070   if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
4071   echo $ac_n "(cached) $ac_c" 1>&6
4072 else
4073   
4074     
4075     ac_ext=C
4076 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4077 ac_cpp='$CXXCPP $CPPFLAGS'
4078 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4079 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4080 cross_compiling=$ac_cv_prog_cxx_cross
4081
4082     rm -f conftest.h
4083     cat > conftest.h <<EOB
4084       //
4085       // Check for buggy __complex__ that causes ICE in most versions of egcs
4086       // and gcc-2.95.x on certain platforms (eg., x86-win32).
4087       //
4088       // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
4089       // more info on the bug itself.
4090       //
4091       struct
4092       float_complex
4093       {
4094        __complex__ float m_value;
4095        float_complex (float = 0.0f, float = 0.0f);
4096        float_complex (__complex__ float val) : m_value (val) {}
4097        float_complex foo (const float_complex &val)
4098          { return float_complex (~val.m_value); }
4099       };
4100 EOB
4101     cat > conftest.$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4104 #include "conftest.h"
4105 int main() {
4106
4107 ; return 0; }
4108 EOF
4109 if { (eval echo configure:4110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4110   rm -rf conftest*
4111   glibcpp_cv_float_complex=ok
4112 else
4113   echo "configure: failed program was:" >&5
4114   cat conftest.$ac_ext >&5
4115   rm -rf conftest*
4116   glibcpp_cv_float_complex=buggy
4117     
4118 fi
4119 rm -f conftest*
4120     ac_ext=c
4121 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4124 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4125 cross_compiling=$ac_cv_prog_cc_cross
4126
4127   
4128 fi
4129
4130   echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
4131   if test $glibcpp_cv_float_complex = buggy; then
4132     cat >> confdefs.h <<\EOF
4133 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
4134 EOF
4135
4136   fi
4137
4138         
4139
4140       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4141 echo "configure:4142: checking for mbstate_t" >&5
4142   cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4145 #include <wchar.h>
4146 int main() {
4147 mbstate_t teststate;
4148 ; return 0; }
4149 EOF
4150 if { (eval echo configure:4151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4151   rm -rf conftest*
4152   have_mbstate_t=yes
4153 else
4154   echo "configure: failed program was:" >&5
4155   cat conftest.$ac_ext >&5
4156   rm -rf conftest*
4157   have_mbstate_t=no
4158 fi
4159 rm -f conftest*
4160   echo "$ac_t""$have_mbstate_t" 1>&6
4161   if test x"$have_mbstate_t" = xyes; then
4162     cat >> confdefs.h <<\EOF
4163 #define HAVE_MBSTATE_T 1
4164 EOF
4165
4166   fi
4167
4168     for ac_hdr in wchar.h
4169 do
4170 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4171 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4172 echo "configure:4173: checking for $ac_hdr" >&5
4173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4174   echo $ac_n "(cached) $ac_c" 1>&6
4175 else
4176   cat > conftest.$ac_ext <<EOF
4177 #line 4178 "configure"
4178 #include "confdefs.h"
4179 #include <$ac_hdr>
4180 EOF
4181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4182 { (eval echo configure:4183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4184 if test -z "$ac_err"; then
4185   rm -rf conftest*
4186   eval "ac_cv_header_$ac_safe=yes"
4187 else
4188   echo "$ac_err" >&5
4189   echo "configure: failed program was:" >&5
4190   cat conftest.$ac_ext >&5
4191   rm -rf conftest*
4192   eval "ac_cv_header_$ac_safe=no"
4193 fi
4194 rm -f conftest*
4195 fi
4196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4197   echo "$ac_t""yes" 1>&6
4198     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4199   cat >> confdefs.h <<EOF
4200 #define $ac_tr_hdr 1
4201 EOF
4202  ac_has_wchar_h=yes
4203 else
4204   echo "$ac_t""no" 1>&6
4205 ac_has_wchar_h=no
4206 fi
4207 done
4208
4209   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4210 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4211 echo "configure:4212: checking for wctype.h" >&5
4212 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4213   echo $ac_n "(cached) $ac_c" 1>&6
4214 else
4215   cat > conftest.$ac_ext <<EOF
4216 #line 4217 "configure"
4217 #include "confdefs.h"
4218 #include <wctype.h>
4219 EOF
4220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4221 { (eval echo configure:4222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4223 if test -z "$ac_err"; then
4224   rm -rf conftest*
4225   eval "ac_cv_header_$ac_safe=yes"
4226 else
4227   echo "$ac_err" >&5
4228   echo "configure: failed program was:" >&5
4229   cat conftest.$ac_ext >&5
4230   rm -rf conftest*
4231   eval "ac_cv_header_$ac_safe=no"
4232 fi
4233 rm -f conftest*
4234 fi
4235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4236   echo "$ac_t""yes" 1>&6
4237   ac_has_wctype_h=yes
4238 else
4239   echo "$ac_t""no" 1>&6
4240 ac_has_wctype_h=no
4241 fi
4242
4243   
4244     if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
4245      && test x"$enable_c_mbchar" != xno; then
4246       
4247             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4248 echo "configure:4249: checking for WCHAR_MIN and WCHAR_MAX" >&5
4249     cat > conftest.$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4252 #include <wchar.h>
4253 int main() {
4254 int i = WCHAR_MIN; int j = WCHAR_MAX;
4255 ; return 0; }
4256 EOF
4257 if { (eval echo configure:4258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4258   rm -rf conftest*
4259   has_wchar_minmax=yes
4260 else
4261   echo "configure: failed program was:" >&5
4262   cat conftest.$ac_ext >&5
4263   rm -rf conftest*
4264   has_wchar_minmax=no
4265 fi
4266 rm -f conftest*
4267     echo "$ac_t""$has_wchar_minmax" 1>&6
4268     
4269             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4270 echo "configure:4271: checking for WEOF" >&5
4271     cat > conftest.$ac_ext <<EOF
4272 #line 4273 "configure"
4273 #include "confdefs.h"
4274
4275       #include <wchar.h>
4276       #include <stddef.h>
4277 int main() {
4278 wint_t i = WEOF;
4279 ; return 0; }
4280 EOF
4281 if { (eval echo configure:4282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4282   rm -rf conftest*
4283   has_weof=yes
4284 else
4285   echo "configure: failed program was:" >&5
4286   cat conftest.$ac_ext >&5
4287   rm -rf conftest*
4288   has_weof=no
4289 fi
4290 rm -f conftest*
4291     echo "$ac_t""$has_weof" 1>&6
4292   
4293         for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
4294     wcsrtombs mbsrtowcs
4295 do
4296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4297 echo "configure:4298: checking for $ac_func" >&5
4298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4299   echo $ac_n "(cached) $ac_c" 1>&6
4300 else
4301   cat > conftest.$ac_ext <<EOF
4302 #line 4303 "configure"
4303 #include "confdefs.h"
4304 /* System header to define __stub macros and hopefully few prototypes,
4305     which can conflict with char $ac_func(); below.  */
4306 #include <assert.h>
4307 /* Override any gcc2 internal prototype to avoid an error.  */
4308 /* We use char because int might match the return type of a gcc2
4309     builtin and then its argument prototype would still apply.  */
4310 char $ac_func();
4311
4312 int main() {
4313
4314 /* The GNU C library defines this for functions which it implements
4315     to always fail with ENOSYS.  Some functions are actually named
4316     something starting with __ and the normal name is an alias.  */
4317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4318 choke me
4319 #else
4320 $ac_func();
4321 #endif
4322
4323 ; return 0; }
4324 EOF
4325 if { (eval echo configure:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4326   rm -rf conftest*
4327   eval "ac_cv_func_$ac_func=yes"
4328 else
4329   echo "configure: failed program was:" >&5
4330   cat conftest.$ac_ext >&5
4331   rm -rf conftest*
4332   eval "ac_cv_func_$ac_func=no"
4333 fi
4334 rm -f conftest*
4335 fi
4336
4337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4338   echo "$ac_t""yes" 1>&6
4339     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4340   cat >> confdefs.h <<EOF
4341 #define $ac_tr_func 1
4342 EOF
4343  ac_wfuncs=yes
4344 else
4345   echo "$ac_t""no" 1>&6
4346 ac_wfuncs=no
4347 fi
4348 done
4349
4350   
4351     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4352 echo "configure:4353: checking for ISO C99 wchar_t support" >&5
4353     if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
4354        && test x"$ac_wfuncs" = xyes; then
4355       ac_isoC99_wchar_t=yes
4356     else
4357       ac_isoC99_wchar_t=no
4358     fi
4359     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4360   
4361             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4362 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4363 echo "configure:4364: checking for iconv.h" >&5
4364 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4365   echo $ac_n "(cached) $ac_c" 1>&6
4366 else
4367   cat > conftest.$ac_ext <<EOF
4368 #line 4369 "configure"
4369 #include "confdefs.h"
4370 #include <iconv.h>
4371 EOF
4372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4373 { (eval echo configure:4374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4375 if test -z "$ac_err"; then
4376   rm -rf conftest*
4377   eval "ac_cv_header_$ac_safe=yes"
4378 else
4379   echo "$ac_err" >&5
4380   echo "configure: failed program was:" >&5
4381   cat conftest.$ac_ext >&5
4382   rm -rf conftest*
4383   eval "ac_cv_header_$ac_safe=no"
4384 fi
4385 rm -f conftest*
4386 fi
4387 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4388   echo "$ac_t""yes" 1>&6
4389   ac_has_iconv_h=yes
4390 else
4391   echo "$ac_t""no" 1>&6
4392 ac_has_iconv_h=no
4393 fi
4394
4395     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4396 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4397 echo "configure:4398: checking for langinfo.h" >&5
4398 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4399   echo $ac_n "(cached) $ac_c" 1>&6
4400 else
4401   cat > conftest.$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4404 #include <langinfo.h>
4405 EOF
4406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4407 { (eval echo configure:4408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4409 if test -z "$ac_err"; then
4410   rm -rf conftest*
4411   eval "ac_cv_header_$ac_safe=yes"
4412 else
4413   echo "$ac_err" >&5
4414   echo "configure: failed program was:" >&5
4415   cat conftest.$ac_ext >&5
4416   rm -rf conftest*
4417   eval "ac_cv_header_$ac_safe=no"
4418 fi
4419 rm -f conftest*
4420 fi
4421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4422   echo "$ac_t""yes" 1>&6
4423   ac_has_langinfo_h=yes
4424 else
4425   echo "$ac_t""no" 1>&6
4426 ac_has_langinfo_h=no
4427 fi
4428
4429
4430         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4431 echo "configure:4432: checking for iconv in -liconv" >&5
4432 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4434   echo $ac_n "(cached) $ac_c" 1>&6
4435 else
4436   ac_save_LIBS="$LIBS"
4437 LIBS="-liconv  $LIBS"
4438 cat > conftest.$ac_ext <<EOF
4439 #line 4440 "configure"
4440 #include "confdefs.h"
4441 /* Override any gcc2 internal prototype to avoid an error.  */
4442 /* We use char because int might match the return type of a gcc2
4443     builtin and then its argument prototype would still apply.  */
4444 char iconv();
4445
4446 int main() {
4447 iconv()
4448 ; return 0; }
4449 EOF
4450 if { (eval echo configure:4451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4451   rm -rf conftest*
4452   eval "ac_cv_lib_$ac_lib_var=yes"
4453 else
4454   echo "configure: failed program was:" >&5
4455   cat conftest.$ac_ext >&5
4456   rm -rf conftest*
4457   eval "ac_cv_lib_$ac_lib_var=no"
4458 fi
4459 rm -f conftest*
4460 LIBS="$ac_save_LIBS"
4461
4462 fi
4463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4464   echo "$ac_t""yes" 1>&6
4465   libiconv="-liconv"
4466 else
4467   echo "$ac_t""no" 1>&6
4468 fi
4469
4470     ac_save_LIBS="$LIBS"
4471     LIBS="$LIBS $libiconv"
4472
4473     for ac_func in iconv_open iconv_close iconv nl_langinfo
4474 do
4475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4476 echo "configure:4477: checking for $ac_func" >&5
4477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4478   echo $ac_n "(cached) $ac_c" 1>&6
4479 else
4480   cat > conftest.$ac_ext <<EOF
4481 #line 4482 "configure"
4482 #include "confdefs.h"
4483 /* System header to define __stub macros and hopefully few prototypes,
4484     which can conflict with char $ac_func(); below.  */
4485 #include <assert.h>
4486 /* Override any gcc2 internal prototype to avoid an error.  */
4487 /* We use char because int might match the return type of a gcc2
4488     builtin and then its argument prototype would still apply.  */
4489 char $ac_func();
4490
4491 int main() {
4492
4493 /* The GNU C library defines this for functions which it implements
4494     to always fail with ENOSYS.  Some functions are actually named
4495     something starting with __ and the normal name is an alias.  */
4496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4497 choke me
4498 #else
4499 $ac_func();
4500 #endif
4501
4502 ; return 0; }
4503 EOF
4504 if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4505   rm -rf conftest*
4506   eval "ac_cv_func_$ac_func=yes"
4507 else
4508   echo "configure: failed program was:" >&5
4509   cat conftest.$ac_ext >&5
4510   rm -rf conftest*
4511   eval "ac_cv_func_$ac_func=no"
4512 fi
4513 rm -f conftest*
4514 fi
4515
4516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4517   echo "$ac_t""yes" 1>&6
4518     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4519   cat >> confdefs.h <<EOF
4520 #define $ac_tr_func 1
4521 EOF
4522  \
4523     ac_XPG2funcs=yes
4524 else
4525   echo "$ac_t""no" 1>&6
4526 ac_XPG2funcs=no
4527 fi
4528 done
4529
4530   
4531     LIBS="$ac_save_LIBS"
4532
4533     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4534 echo "configure:4535: checking for XPG2 wchar_t support" >&5
4535     if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
4536        && test x"$ac_XPG2funcs" = xyes; then
4537       ac_XPG2_wchar_t=yes
4538     else
4539       ac_XPG2_wchar_t=no
4540     fi
4541     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4542   
4543             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4544 echo "configure:4545: checking for enabled wchar_t specializations" >&5
4545     if test x"$ac_isoC99_wchar_t" = xyes \
4546        && test x"$ac_XPG2_wchar_t" = xyes; then
4547       cat >> confdefs.h <<\EOF
4548 #define _GLIBCPP_USE_WCHAR_T 1
4549 EOF
4550
4551       echo "$ac_t"""yes"" 1>&6
4552     else
4553       echo "$ac_t"""no"" 1>&6
4554     fi
4555   else
4556         echo "configure: warning: wchar_t support disabled." 1>&2
4557   fi
4558
4559         os_include_dir="config/os/gnu-linux"
4560         # GLIBCPP_CHECK_STDLIB_SUPPORT
4561         cat >> confdefs.h <<\EOF
4562 #define HAVE_STRTOF 1
4563 EOF
4564         
4565         cat >> confdefs.h <<\EOF
4566 #define HAVE_STRTOLD 1
4567 EOF
4568         
4569         # AC_FUNC_MMAP
4570         cat >> confdefs.h <<\EOF
4571 #define HAVE_MMAP 1
4572 EOF
4573
4574         ;;
4575     *)
4576         # We assume newlib.  This lets us hard-code the functions we know
4577         # we'll have.
4578         cat >> confdefs.h <<\EOF
4579 #define HAVE_FINITE 1
4580 EOF
4581
4582         cat >> confdefs.h <<\EOF
4583 #define HAVE_ISNAN 1
4584 EOF
4585
4586         cat >> confdefs.h <<\EOF
4587 #define HAVE_ISNANF 1
4588 EOF
4589
4590         cat >> confdefs.h <<\EOF
4591 #define HAVE_ISINF 1
4592 EOF
4593
4594         cat >> confdefs.h <<\EOF
4595 #define HAVE_ISINFF 1
4596 EOF
4597
4598
4599         os_include_dir="config/os/newlib"
4600
4601         cat >> confdefs.h <<\EOF
4602 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
4603 EOF
4604
4605         cat >> confdefs.h <<\EOF
4606 #define _GLIBCPP_BUGGY_COMPLEX 1
4607 EOF
4608
4609         # need to check for faster f versions of math functions, ie sinf?
4610         ;;
4611   esac
4612 else
4613
4614   # We are being configured natively. We can do more elaborate tests
4615   # that include AC_TRY_COMPILE now, as the linker is assumed to be
4616   # working.
4617   xcompiling=0
4618   NATIVE=yes
4619   CANADIAN=no
4620   NULL_TARGET=no
4621
4622   # Check for available headers.
4623   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
4624   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
4625 do
4626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4628 echo "configure:4629: checking for $ac_hdr" >&5
4629 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4630   echo $ac_n "(cached) $ac_c" 1>&6
4631 else
4632   cat > conftest.$ac_ext <<EOF
4633 #line 4634 "configure"
4634 #include "confdefs.h"
4635 #include <$ac_hdr>
4636 EOF
4637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4638 { (eval echo configure:4639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4640 if test -z "$ac_err"; then
4641   rm -rf conftest*
4642   eval "ac_cv_header_$ac_safe=yes"
4643 else
4644   echo "$ac_err" >&5
4645   echo "configure: failed program was:" >&5
4646   cat conftest.$ac_ext >&5
4647   rm -rf conftest*
4648   eval "ac_cv_header_$ac_safe=no"
4649 fi
4650 rm -f conftest*
4651 fi
4652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4653   echo "$ac_t""yes" 1>&6
4654     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4655   cat >> confdefs.h <<EOF
4656 #define $ac_tr_hdr 1
4657 EOF
4658  
4659 else
4660   echo "$ac_t""no" 1>&6
4661 fi
4662 done
4663
4664
4665   
4666   # All these tests are for C++; save the language and the compiler flags.
4667   # The CXXFLAGS thing is suspicious, but based on similar bits 
4668   # found in GLIBCPP_CONFIGURE.
4669   
4670   ac_ext=C
4671 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4672 ac_cpp='$CXXCPP $CPPFLAGS'
4673 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4674 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4675 cross_compiling=$ac_cv_prog_cxx_cross
4676
4677   ac_test_CXXFLAGS="${CXXFLAGS+set}"
4678   ac_save_CXXFLAGS="$CXXFLAGS"
4679
4680   # Check for maintainer-mode bits.
4681   if test x"$USE_MAINTAINER_MODE" = xno; then
4682     WERROR=''
4683   else
4684     WERROR='-Werror'
4685   fi
4686
4687   # Check for -ffunction-sections -fdata-sections
4688   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
4689 echo "configure:4690: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
4690   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
4691   cat > conftest.$ac_ext <<EOF
4692 #line 4693 "configure"
4693 #include "confdefs.h"
4694
4695 int main() {
4696 int foo;
4697   
4698 ; return 0; }
4699 EOF
4700 if { (eval echo configure:4701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4701   rm -rf conftest*
4702   ac_fdsections=yes
4703 else
4704   echo "configure: failed program was:" >&5
4705   cat conftest.$ac_ext >&5
4706   rm -rf conftest*
4707   ac_fdsections=no
4708 fi
4709 rm -f conftest*
4710   if test "$ac_test_CXXFLAGS" = set; then
4711     CXXFLAGS="$ac_save_CXXFLAGS"
4712   else
4713     # this is the suspicious part
4714     CXXFLAGS=''
4715   fi
4716   if test x"$ac_fdsections" = x"yes" && test x"$enable_debug" = x"no"; then
4717     SECTION_FLAGS='-ffunction-sections -fdata-sections'
4718   fi
4719   echo "$ac_t""$ac_fdsections" 1>&6
4720
4721   ac_ext=c
4722 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4723 ac_cpp='$CPP $CPPFLAGS'
4724 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4725 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4726 cross_compiling=$ac_cv_prog_cc_cross
4727
4728   
4729   
4730
4731   
4732   # If we're not using GNU ld, then there's no point in even trying these
4733   # tests.  Check for that first.  We should have already tested for gld
4734   # by now (in libtool), but require it now just to be safe...
4735   SECTION_LDFLAGS=''
4736   OPT_LDFLAGS=''
4737   
4738
4739   # Set --gc-sections.
4740   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4741     # GNU ld it is!  Joy and bunny rabbits!
4742
4743     # All these tests are for C++; save the language and the compiler flags.
4744     # Need to do this so that g++ won't try to link in libstdc++
4745     ac_test_CFLAGS="${CFLAGS+set}"
4746     ac_save_CFLAGS="$CFLAGS"
4747     CFLAGS='-x c++  -Wl,--gc-sections'
4748
4749     # Check for -Wl,--gc-sections
4750     # XXX This test is broken at the moment, as symbols required for
4751     # linking are now in libsupc++ (not built yet.....). In addition, 
4752     # this test has cored on solaris in the past. In addition,
4753     # --gc-sections doesn't really work at the moment (keeps on discarding
4754     # used sections, first .eh_frame and now some of the glibc sections for
4755     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4756     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4757 echo "configure:4758: checking for ld that supports -Wl,--gc-sections" >&5
4758     if test "$cross_compiling" = yes; then
4759   ac_sectionLDflags=yes
4760 else
4761   cat > conftest.$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4764
4765      int main(void) 
4766      {
4767        try { throw 1; }
4768        catch (...) { };
4769        return 0;
4770      }
4771     
4772 EOF
4773 if { (eval echo configure:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4774 then
4775   ac_sectionLDflags=yes
4776 else
4777   echo "configure: failed program was:" >&5
4778   cat conftest.$ac_ext >&5
4779   rm -fr conftest*
4780   ac_sectionLFflags=no
4781 fi
4782 rm -fr conftest*
4783 fi
4784
4785     if test "$ac_test_CFLAGS" = set; then
4786       CFLAGS="$ac_save_CFLAGS"
4787     else
4788       # this is the suspicious part
4789       CFLAGS=''
4790     fi
4791     if test "$ac_sectionLDflags" = "yes"; then
4792       SECTION_LDFLAGS='-Wl,--gc-sections'
4793     fi
4794     echo "$ac_t""$ac_sectionLDflags" 1>&6
4795   fi
4796
4797   # Set linker optimization flags.
4798   if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4799     OPT_LDFLAGS='-Wl,-O1'
4800   fi
4801
4802   
4803   
4804
4805   
4806       
4807   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
4808 echo "configure:4809: checking for __builtin_abs declaration" >&5
4809   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
4810     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
4811   echo $ac_n "(cached) $ac_c" 1>&6
4812 else
4813   
4814       
4815       ac_ext=C
4816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4817 ac_cpp='$CXXCPP $CPPFLAGS'
4818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4819 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4820 cross_compiling=$ac_cv_prog_cxx_cross
4821
4822       cat > conftest.$ac_ext <<EOF
4823 #line 4824 "configure"
4824 #include "confdefs.h"
4825 #include <math.h>
4826 int main() {
4827  __builtin_abs(0);
4828 ; return 0; }
4829 EOF
4830 if { (eval echo configure:4831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4831   rm -rf conftest*
4832   glibcpp_cv_func___builtin_abs_use=yes
4833 else
4834   echo "configure: failed program was:" >&5
4835   cat conftest.$ac_ext >&5
4836   rm -rf conftest*
4837   glibcpp_cv_func___builtin_abs_use=no
4838 fi
4839 rm -f conftest*
4840       ac_ext=c
4841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4844 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4845 cross_compiling=$ac_cv_prog_cc_cross
4846
4847     
4848 fi
4849
4850   fi
4851   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
4852   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
4853     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
4854 echo "configure:4855: checking for __builtin_abs linkage" >&5
4855     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
4856       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
4857   echo $ac_n "(cached) $ac_c" 1>&6
4858 else
4859   
4860         cat > conftest.$ac_ext <<EOF
4861 #line 4862 "configure"
4862 #include "confdefs.h"
4863 #include <math.h>
4864 int main() {
4865  __builtin_abs(0);
4866 ; return 0; }
4867 EOF
4868 if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4869   rm -rf conftest*
4870   glibcpp_cv_func___builtin_abs_link=yes
4871 else
4872   echo "configure: failed program was:" >&5
4873   cat conftest.$ac_ext >&5
4874   rm -rf conftest*
4875   glibcpp_cv_func___builtin_abs_link=no
4876 fi
4877 rm -f conftest*
4878       
4879 fi
4880
4881     fi
4882     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
4883     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
4884       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4885       cat >> confdefs.h <<EOF
4886 #define ${ac_tr_func} 1
4887 EOF
4888
4889     fi
4890   fi
4891
4892   
4893   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
4894 echo "configure:4895: checking for __builtin_fabsf declaration" >&5
4895   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
4896     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
4897   echo $ac_n "(cached) $ac_c" 1>&6
4898 else
4899   
4900       
4901       ac_ext=C
4902 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4903 ac_cpp='$CXXCPP $CPPFLAGS'
4904 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4905 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4906 cross_compiling=$ac_cv_prog_cxx_cross
4907
4908       cat > conftest.$ac_ext <<EOF
4909 #line 4910 "configure"
4910 #include "confdefs.h"
4911 #include <math.h>
4912 int main() {
4913  __builtin_fabsf(0);
4914 ; return 0; }
4915 EOF
4916 if { (eval echo configure:4917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4917   rm -rf conftest*
4918   glibcpp_cv_func___builtin_fabsf_use=yes
4919 else
4920   echo "configure: failed program was:" >&5
4921   cat conftest.$ac_ext >&5
4922   rm -rf conftest*
4923   glibcpp_cv_func___builtin_fabsf_use=no
4924 fi
4925 rm -f conftest*
4926       ac_ext=c
4927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4928 ac_cpp='$CPP $CPPFLAGS'
4929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4931 cross_compiling=$ac_cv_prog_cc_cross
4932
4933     
4934 fi
4935
4936   fi
4937   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
4938   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
4939     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
4940 echo "configure:4941: checking for __builtin_fabsf linkage" >&5
4941     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
4942       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
4943   echo $ac_n "(cached) $ac_c" 1>&6
4944 else
4945   
4946         cat > conftest.$ac_ext <<EOF
4947 #line 4948 "configure"
4948 #include "confdefs.h"
4949 #include <math.h>
4950 int main() {
4951  __builtin_fabsf(0);
4952 ; return 0; }
4953 EOF
4954 if { (eval echo configure:4955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4955   rm -rf conftest*
4956   glibcpp_cv_func___builtin_fabsf_link=yes
4957 else
4958   echo "configure: failed program was:" >&5
4959   cat conftest.$ac_ext >&5
4960   rm -rf conftest*
4961   glibcpp_cv_func___builtin_fabsf_link=no
4962 fi
4963 rm -f conftest*
4964       
4965 fi
4966
4967     fi
4968     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
4969     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
4970       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4971       cat >> confdefs.h <<EOF
4972 #define ${ac_tr_func} 1
4973 EOF
4974
4975     fi
4976   fi
4977
4978   
4979   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
4980 echo "configure:4981: checking for __builtin_fabs declaration" >&5
4981   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
4982     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
4983   echo $ac_n "(cached) $ac_c" 1>&6
4984 else
4985   
4986       
4987       ac_ext=C
4988 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4989 ac_cpp='$CXXCPP $CPPFLAGS'
4990 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4991 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4992 cross_compiling=$ac_cv_prog_cxx_cross
4993
4994       cat > conftest.$ac_ext <<EOF
4995 #line 4996 "configure"
4996 #include "confdefs.h"
4997 #include <math.h>
4998 int main() {
4999  __builtin_fabs(0);
5000 ; return 0; }
5001 EOF
5002 if { (eval echo configure:5003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5003   rm -rf conftest*
5004   glibcpp_cv_func___builtin_fabs_use=yes
5005 else
5006   echo "configure: failed program was:" >&5
5007   cat conftest.$ac_ext >&5
5008   rm -rf conftest*
5009   glibcpp_cv_func___builtin_fabs_use=no
5010 fi
5011 rm -f conftest*
5012       ac_ext=c
5013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5014 ac_cpp='$CPP $CPPFLAGS'
5015 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5016 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5017 cross_compiling=$ac_cv_prog_cc_cross
5018
5019     
5020 fi
5021
5022   fi
5023   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5024   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5025     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5026 echo "configure:5027: checking for __builtin_fabs linkage" >&5
5027     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5028       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5029   echo $ac_n "(cached) $ac_c" 1>&6
5030 else
5031   
5032         cat > conftest.$ac_ext <<EOF
5033 #line 5034 "configure"
5034 #include "confdefs.h"
5035 #include <math.h>
5036 int main() {
5037  __builtin_fabs(0);
5038 ; return 0; }
5039 EOF
5040 if { (eval echo configure:5041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5041   rm -rf conftest*
5042   glibcpp_cv_func___builtin_fabs_link=yes
5043 else
5044   echo "configure: failed program was:" >&5
5045   cat conftest.$ac_ext >&5
5046   rm -rf conftest*
5047   glibcpp_cv_func___builtin_fabs_link=no
5048 fi
5049 rm -f conftest*
5050       
5051 fi
5052
5053     fi
5054     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5055     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5056       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5057       cat >> confdefs.h <<EOF
5058 #define ${ac_tr_func} 1
5059 EOF
5060
5061     fi
5062   fi
5063
5064   
5065   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5066 echo "configure:5067: checking for __builtin_fabsl declaration" >&5
5067   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5068     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5069   echo $ac_n "(cached) $ac_c" 1>&6
5070 else
5071   
5072       
5073       ac_ext=C
5074 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5075 ac_cpp='$CXXCPP $CPPFLAGS'
5076 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5077 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5078 cross_compiling=$ac_cv_prog_cxx_cross
5079
5080       cat > conftest.$ac_ext <<EOF
5081 #line 5082 "configure"
5082 #include "confdefs.h"
5083 #include <math.h>
5084 int main() {
5085  __builtin_fabsl(0);
5086 ; return 0; }
5087 EOF
5088 if { (eval echo configure:5089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5089   rm -rf conftest*
5090   glibcpp_cv_func___builtin_fabsl_use=yes
5091 else
5092   echo "configure: failed program was:" >&5
5093   cat conftest.$ac_ext >&5
5094   rm -rf conftest*
5095   glibcpp_cv_func___builtin_fabsl_use=no
5096 fi
5097 rm -f conftest*
5098       ac_ext=c
5099 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5100 ac_cpp='$CPP $CPPFLAGS'
5101 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5102 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5103 cross_compiling=$ac_cv_prog_cc_cross
5104
5105     
5106 fi
5107
5108   fi
5109   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5110   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5111     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5112 echo "configure:5113: checking for __builtin_fabsl linkage" >&5
5113     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5114       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5115   echo $ac_n "(cached) $ac_c" 1>&6
5116 else
5117   
5118         cat > conftest.$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5121 #include <math.h>
5122 int main() {
5123  __builtin_fabsl(0);
5124 ; return 0; }
5125 EOF
5126 if { (eval echo configure:5127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5127   rm -rf conftest*
5128   glibcpp_cv_func___builtin_fabsl_link=yes
5129 else
5130   echo "configure: failed program was:" >&5
5131   cat conftest.$ac_ext >&5
5132   rm -rf conftest*
5133   glibcpp_cv_func___builtin_fabsl_link=no
5134 fi
5135 rm -f conftest*
5136       
5137 fi
5138
5139     fi
5140     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5141     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5142       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5143       cat >> confdefs.h <<EOF
5144 #define ${ac_tr_func} 1
5145 EOF
5146
5147     fi
5148   fi
5149
5150   
5151   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5152 echo "configure:5153: checking for __builtin_labs declaration" >&5
5153   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5154     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5155   echo $ac_n "(cached) $ac_c" 1>&6
5156 else
5157   
5158       
5159       ac_ext=C
5160 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5161 ac_cpp='$CXXCPP $CPPFLAGS'
5162 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5163 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5164 cross_compiling=$ac_cv_prog_cxx_cross
5165
5166       cat > conftest.$ac_ext <<EOF
5167 #line 5168 "configure"
5168 #include "confdefs.h"
5169 #include <math.h>
5170 int main() {
5171  __builtin_labs(0);
5172 ; return 0; }
5173 EOF
5174 if { (eval echo configure:5175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5175   rm -rf conftest*
5176   glibcpp_cv_func___builtin_labs_use=yes
5177 else
5178   echo "configure: failed program was:" >&5
5179   cat conftest.$ac_ext >&5
5180   rm -rf conftest*
5181   glibcpp_cv_func___builtin_labs_use=no
5182 fi
5183 rm -f conftest*
5184       ac_ext=c
5185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5186 ac_cpp='$CPP $CPPFLAGS'
5187 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5188 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5189 cross_compiling=$ac_cv_prog_cc_cross
5190
5191     
5192 fi
5193
5194   fi
5195   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5196   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5197     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5198 echo "configure:5199: checking for __builtin_labs linkage" >&5
5199     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5200       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5201   echo $ac_n "(cached) $ac_c" 1>&6
5202 else
5203   
5204         cat > conftest.$ac_ext <<EOF
5205 #line 5206 "configure"
5206 #include "confdefs.h"
5207 #include <math.h>
5208 int main() {
5209  __builtin_labs(0);
5210 ; return 0; }
5211 EOF
5212 if { (eval echo configure:5213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5213   rm -rf conftest*
5214   glibcpp_cv_func___builtin_labs_link=yes
5215 else
5216   echo "configure: failed program was:" >&5
5217   cat conftest.$ac_ext >&5
5218   rm -rf conftest*
5219   glibcpp_cv_func___builtin_labs_link=no
5220 fi
5221 rm -f conftest*
5222       
5223 fi
5224
5225     fi
5226     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5227     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5228       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5229       cat >> confdefs.h <<EOF
5230 #define ${ac_tr_func} 1
5231 EOF
5232
5233     fi
5234   fi
5235
5236
5237   
5238   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5239 echo "configure:5240: checking for __builtin_sqrtf declaration" >&5
5240   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5241     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5242   echo $ac_n "(cached) $ac_c" 1>&6
5243 else
5244   
5245       
5246       ac_ext=C
5247 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5248 ac_cpp='$CXXCPP $CPPFLAGS'
5249 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5250 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5251 cross_compiling=$ac_cv_prog_cxx_cross
5252
5253       cat > conftest.$ac_ext <<EOF
5254 #line 5255 "configure"
5255 #include "confdefs.h"
5256 #include <math.h>
5257 int main() {
5258  __builtin_sqrtf(0);
5259 ; return 0; }
5260 EOF
5261 if { (eval echo configure:5262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5262   rm -rf conftest*
5263   glibcpp_cv_func___builtin_sqrtf_use=yes
5264 else
5265   echo "configure: failed program was:" >&5
5266   cat conftest.$ac_ext >&5
5267   rm -rf conftest*
5268   glibcpp_cv_func___builtin_sqrtf_use=no
5269 fi
5270 rm -f conftest*
5271       ac_ext=c
5272 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5273 ac_cpp='$CPP $CPPFLAGS'
5274 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5275 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5276 cross_compiling=$ac_cv_prog_cc_cross
5277
5278     
5279 fi
5280
5281   fi
5282   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5283   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5284     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5285 echo "configure:5286: checking for __builtin_sqrtf linkage" >&5
5286     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5287       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5288   echo $ac_n "(cached) $ac_c" 1>&6
5289 else
5290   
5291         cat > conftest.$ac_ext <<EOF
5292 #line 5293 "configure"
5293 #include "confdefs.h"
5294 #include <math.h>
5295 int main() {
5296  __builtin_sqrtf(0);
5297 ; return 0; }
5298 EOF
5299 if { (eval echo configure:5300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5300   rm -rf conftest*
5301   glibcpp_cv_func___builtin_sqrtf_link=yes
5302 else
5303   echo "configure: failed program was:" >&5
5304   cat conftest.$ac_ext >&5
5305   rm -rf conftest*
5306   glibcpp_cv_func___builtin_sqrtf_link=no
5307 fi
5308 rm -f conftest*
5309       
5310 fi
5311
5312     fi
5313     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5314     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5315       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5316       cat >> confdefs.h <<EOF
5317 #define ${ac_tr_func} 1
5318 EOF
5319
5320     fi
5321   fi
5322
5323   
5324   echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5325 echo "configure:5326: checking for __builtin_fsqrt declaration" >&5
5326   if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5327     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5328   echo $ac_n "(cached) $ac_c" 1>&6
5329 else
5330   
5331       
5332       ac_ext=C
5333 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5334 ac_cpp='$CXXCPP $CPPFLAGS'
5335 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5336 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5337 cross_compiling=$ac_cv_prog_cxx_cross
5338
5339       cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure"
5341 #include "confdefs.h"
5342 #include <math.h>
5343 int main() {
5344  __builtin_fsqrt(0);
5345 ; return 0; }
5346 EOF
5347 if { (eval echo configure:5348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5348   rm -rf conftest*
5349   glibcpp_cv_func___builtin_fsqrt_use=yes
5350 else
5351   echo "configure: failed program was:" >&5
5352   cat conftest.$ac_ext >&5
5353   rm -rf conftest*
5354   glibcpp_cv_func___builtin_fsqrt_use=no
5355 fi
5356 rm -f conftest*
5357       ac_ext=c
5358 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5359 ac_cpp='$CPP $CPPFLAGS'
5360 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5361 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5362 cross_compiling=$ac_cv_prog_cc_cross
5363
5364     
5365 fi
5366
5367   fi
5368   echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5369   if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5370     echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5371 echo "configure:5372: checking for __builtin_fsqrt linkage" >&5
5372     if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5373       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5374   echo $ac_n "(cached) $ac_c" 1>&6
5375 else
5376   
5377         cat > conftest.$ac_ext <<EOF
5378 #line 5379 "configure"
5379 #include "confdefs.h"
5380 #include <math.h>
5381 int main() {
5382  __builtin_fsqrt(0);
5383 ; return 0; }
5384 EOF
5385 if { (eval echo configure:5386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5386   rm -rf conftest*
5387   glibcpp_cv_func___builtin_fsqrt_link=yes
5388 else
5389   echo "configure: failed program was:" >&5
5390   cat conftest.$ac_ext >&5
5391   rm -rf conftest*
5392   glibcpp_cv_func___builtin_fsqrt_link=no
5393 fi
5394 rm -f conftest*
5395       
5396 fi
5397
5398     fi
5399     echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5400     if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5401       ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5402       cat >> confdefs.h <<EOF
5403 #define ${ac_tr_func} 1
5404 EOF
5405
5406     fi
5407   fi
5408
5409   
5410   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5411 echo "configure:5412: checking for __builtin_sqrtl declaration" >&5
5412   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5413     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5414   echo $ac_n "(cached) $ac_c" 1>&6
5415 else
5416   
5417       
5418       ac_ext=C
5419 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5420 ac_cpp='$CXXCPP $CPPFLAGS'
5421 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5422 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5423 cross_compiling=$ac_cv_prog_cxx_cross
5424
5425       cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5428 #include <math.h>
5429 int main() {
5430  __builtin_sqrtl(0);
5431 ; return 0; }
5432 EOF
5433 if { (eval echo configure:5434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5434   rm -rf conftest*
5435   glibcpp_cv_func___builtin_sqrtl_use=yes
5436 else
5437   echo "configure: failed program was:" >&5
5438   cat conftest.$ac_ext >&5
5439   rm -rf conftest*
5440   glibcpp_cv_func___builtin_sqrtl_use=no
5441 fi
5442 rm -f conftest*
5443       ac_ext=c
5444 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5445 ac_cpp='$CPP $CPPFLAGS'
5446 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5447 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5448 cross_compiling=$ac_cv_prog_cc_cross
5449
5450     
5451 fi
5452
5453   fi
5454   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5455   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5456     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5457 echo "configure:5458: checking for __builtin_sqrtl linkage" >&5
5458     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5459       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5460   echo $ac_n "(cached) $ac_c" 1>&6
5461 else
5462   
5463         cat > conftest.$ac_ext <<EOF
5464 #line 5465 "configure"
5465 #include "confdefs.h"
5466 #include <math.h>
5467 int main() {
5468  __builtin_sqrtl(0);
5469 ; return 0; }
5470 EOF
5471 if { (eval echo configure:5472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5472   rm -rf conftest*
5473   glibcpp_cv_func___builtin_sqrtl_link=yes
5474 else
5475   echo "configure: failed program was:" >&5
5476   cat conftest.$ac_ext >&5
5477   rm -rf conftest*
5478   glibcpp_cv_func___builtin_sqrtl_link=no
5479 fi
5480 rm -f conftest*
5481       
5482 fi
5483
5484     fi
5485     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5486     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5487       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5488       cat >> confdefs.h <<EOF
5489 #define ${ac_tr_func} 1
5490 EOF
5491
5492     fi
5493   fi
5494
5495
5496   
5497   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5498 echo "configure:5499: checking for __builtin_sinf declaration" >&5
5499   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5500     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5501   echo $ac_n "(cached) $ac_c" 1>&6
5502 else
5503   
5504       
5505       ac_ext=C
5506 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5507 ac_cpp='$CXXCPP $CPPFLAGS'
5508 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5509 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5510 cross_compiling=$ac_cv_prog_cxx_cross
5511
5512       cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5515 #include <math.h>
5516 int main() {
5517  __builtin_sinf(0);
5518 ; return 0; }
5519 EOF
5520 if { (eval echo configure:5521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5521   rm -rf conftest*
5522   glibcpp_cv_func___builtin_sinf_use=yes
5523 else
5524   echo "configure: failed program was:" >&5
5525   cat conftest.$ac_ext >&5
5526   rm -rf conftest*
5527   glibcpp_cv_func___builtin_sinf_use=no
5528 fi
5529 rm -f conftest*
5530       ac_ext=c
5531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5532 ac_cpp='$CPP $CPPFLAGS'
5533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5535 cross_compiling=$ac_cv_prog_cc_cross
5536
5537     
5538 fi
5539
5540   fi
5541   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5542   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5543     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5544 echo "configure:5545: checking for __builtin_sinf linkage" >&5
5545     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5546       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5547   echo $ac_n "(cached) $ac_c" 1>&6
5548 else
5549   
5550         cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure"
5552 #include "confdefs.h"
5553 #include <math.h>
5554 int main() {
5555  __builtin_sinf(0);
5556 ; return 0; }
5557 EOF
5558 if { (eval echo configure:5559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5559   rm -rf conftest*
5560   glibcpp_cv_func___builtin_sinf_link=yes
5561 else
5562   echo "configure: failed program was:" >&5
5563   cat conftest.$ac_ext >&5
5564   rm -rf conftest*
5565   glibcpp_cv_func___builtin_sinf_link=no
5566 fi
5567 rm -f conftest*
5568       
5569 fi
5570
5571     fi
5572     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5573     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5574       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5575       cat >> confdefs.h <<EOF
5576 #define ${ac_tr_func} 1
5577 EOF
5578
5579     fi
5580   fi
5581
5582   
5583   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5584 echo "configure:5585: checking for __builtin_sin declaration" >&5
5585   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5586     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5587   echo $ac_n "(cached) $ac_c" 1>&6
5588 else
5589   
5590       
5591       ac_ext=C
5592 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5593 ac_cpp='$CXXCPP $CPPFLAGS'
5594 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5595 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5596 cross_compiling=$ac_cv_prog_cxx_cross
5597
5598       cat > conftest.$ac_ext <<EOF
5599 #line 5600 "configure"
5600 #include "confdefs.h"
5601 #include <math.h>
5602 int main() {
5603  __builtin_sin(0);
5604 ; return 0; }
5605 EOF
5606 if { (eval echo configure:5607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5607   rm -rf conftest*
5608   glibcpp_cv_func___builtin_sin_use=yes
5609 else
5610   echo "configure: failed program was:" >&5
5611   cat conftest.$ac_ext >&5
5612   rm -rf conftest*
5613   glibcpp_cv_func___builtin_sin_use=no
5614 fi
5615 rm -f conftest*
5616       ac_ext=c
5617 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5618 ac_cpp='$CPP $CPPFLAGS'
5619 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5620 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5621 cross_compiling=$ac_cv_prog_cc_cross
5622
5623     
5624 fi
5625
5626   fi
5627   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
5628   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
5629     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
5630 echo "configure:5631: checking for __builtin_sin linkage" >&5
5631     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
5632       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
5633   echo $ac_n "(cached) $ac_c" 1>&6
5634 else
5635   
5636         cat > conftest.$ac_ext <<EOF
5637 #line 5638 "configure"
5638 #include "confdefs.h"
5639 #include <math.h>
5640 int main() {
5641  __builtin_sin(0);
5642 ; return 0; }
5643 EOF
5644 if { (eval echo configure:5645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5645   rm -rf conftest*
5646   glibcpp_cv_func___builtin_sin_link=yes
5647 else
5648   echo "configure: failed program was:" >&5
5649   cat conftest.$ac_ext >&5
5650   rm -rf conftest*
5651   glibcpp_cv_func___builtin_sin_link=no
5652 fi
5653 rm -f conftest*
5654       
5655 fi
5656
5657     fi
5658     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
5659     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
5660       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5661       cat >> confdefs.h <<EOF
5662 #define ${ac_tr_func} 1
5663 EOF
5664
5665     fi
5666   fi
5667
5668   
5669   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
5670 echo "configure:5671: checking for __builtin_sinl declaration" >&5
5671   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
5672     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
5673   echo $ac_n "(cached) $ac_c" 1>&6
5674 else
5675   
5676       
5677       ac_ext=C
5678 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5679 ac_cpp='$CXXCPP $CPPFLAGS'
5680 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5681 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5682 cross_compiling=$ac_cv_prog_cxx_cross
5683
5684       cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5687 #include <math.h>
5688 int main() {
5689  __builtin_sinl(0);
5690 ; return 0; }
5691 EOF
5692 if { (eval echo configure:5693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5693   rm -rf conftest*
5694   glibcpp_cv_func___builtin_sinl_use=yes
5695 else
5696   echo "configure: failed program was:" >&5
5697   cat conftest.$ac_ext >&5
5698   rm -rf conftest*
5699   glibcpp_cv_func___builtin_sinl_use=no
5700 fi
5701 rm -f conftest*
5702       ac_ext=c
5703 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5704 ac_cpp='$CPP $CPPFLAGS'
5705 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5706 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5707 cross_compiling=$ac_cv_prog_cc_cross
5708
5709     
5710 fi
5711
5712   fi
5713   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
5714   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
5715     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
5716 echo "configure:5717: checking for __builtin_sinl linkage" >&5
5717     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
5718       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
5719   echo $ac_n "(cached) $ac_c" 1>&6
5720 else
5721   
5722         cat > conftest.$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5725 #include <math.h>
5726 int main() {
5727  __builtin_sinl(0);
5728 ; return 0; }
5729 EOF
5730 if { (eval echo configure:5731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5731   rm -rf conftest*
5732   glibcpp_cv_func___builtin_sinl_link=yes
5733 else
5734   echo "configure: failed program was:" >&5
5735   cat conftest.$ac_ext >&5
5736   rm -rf conftest*
5737   glibcpp_cv_func___builtin_sinl_link=no
5738 fi
5739 rm -f conftest*
5740       
5741 fi
5742
5743     fi
5744     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
5745     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
5746       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5747       cat >> confdefs.h <<EOF
5748 #define ${ac_tr_func} 1
5749 EOF
5750
5751     fi
5752   fi
5753
5754
5755   
5756   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
5757 echo "configure:5758: checking for __builtin_cosf declaration" >&5
5758   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
5759     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
5760   echo $ac_n "(cached) $ac_c" 1>&6
5761 else
5762   
5763       
5764       ac_ext=C
5765 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5766 ac_cpp='$CXXCPP $CPPFLAGS'
5767 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5768 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5769 cross_compiling=$ac_cv_prog_cxx_cross
5770
5771       cat > conftest.$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5774 #include <math.h>
5775 int main() {
5776  __builtin_cosf(0);
5777 ; return 0; }
5778 EOF
5779 if { (eval echo configure:5780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5780   rm -rf conftest*
5781   glibcpp_cv_func___builtin_cosf_use=yes
5782 else
5783   echo "configure: failed program was:" >&5
5784   cat conftest.$ac_ext >&5
5785   rm -rf conftest*
5786   glibcpp_cv_func___builtin_cosf_use=no
5787 fi
5788 rm -f conftest*
5789       ac_ext=c
5790 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5791 ac_cpp='$CPP $CPPFLAGS'
5792 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5793 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5794 cross_compiling=$ac_cv_prog_cc_cross
5795
5796     
5797 fi
5798
5799   fi
5800   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
5801   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
5802     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
5803 echo "configure:5804: checking for __builtin_cosf linkage" >&5
5804     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
5805       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
5806   echo $ac_n "(cached) $ac_c" 1>&6
5807 else
5808   
5809         cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5812 #include <math.h>
5813 int main() {
5814  __builtin_cosf(0);
5815 ; return 0; }
5816 EOF
5817 if { (eval echo configure:5818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5818   rm -rf conftest*
5819   glibcpp_cv_func___builtin_cosf_link=yes
5820 else
5821   echo "configure: failed program was:" >&5
5822   cat conftest.$ac_ext >&5
5823   rm -rf conftest*
5824   glibcpp_cv_func___builtin_cosf_link=no
5825 fi
5826 rm -f conftest*
5827       
5828 fi
5829
5830     fi
5831     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
5832     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
5833       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5834       cat >> confdefs.h <<EOF
5835 #define ${ac_tr_func} 1
5836 EOF
5837
5838     fi
5839   fi
5840
5841   
5842   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
5843 echo "configure:5844: checking for __builtin_cos declaration" >&5
5844   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
5845     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
5846   echo $ac_n "(cached) $ac_c" 1>&6
5847 else
5848   
5849       
5850       ac_ext=C
5851 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5852 ac_cpp='$CXXCPP $CPPFLAGS'
5853 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5854 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5855 cross_compiling=$ac_cv_prog_cxx_cross
5856
5857       cat > conftest.$ac_ext <<EOF
5858 #line 5859 "configure"
5859 #include "confdefs.h"
5860 #include <math.h>
5861 int main() {
5862  __builtin_cos(0);
5863 ; return 0; }
5864 EOF
5865 if { (eval echo configure:5866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5866   rm -rf conftest*
5867   glibcpp_cv_func___builtin_cos_use=yes
5868 else
5869   echo "configure: failed program was:" >&5
5870   cat conftest.$ac_ext >&5
5871   rm -rf conftest*
5872   glibcpp_cv_func___builtin_cos_use=no
5873 fi
5874 rm -f conftest*
5875       ac_ext=c
5876 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5877 ac_cpp='$CPP $CPPFLAGS'
5878 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5879 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5880 cross_compiling=$ac_cv_prog_cc_cross
5881
5882     
5883 fi
5884
5885   fi
5886   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
5887   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
5888     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
5889 echo "configure:5890: checking for __builtin_cos linkage" >&5
5890     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
5891       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
5892   echo $ac_n "(cached) $ac_c" 1>&6
5893 else
5894   
5895         cat > conftest.$ac_ext <<EOF
5896 #line 5897 "configure"
5897 #include "confdefs.h"
5898 #include <math.h>
5899 int main() {
5900  __builtin_cos(0);
5901 ; return 0; }
5902 EOF
5903 if { (eval echo configure:5904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5904   rm -rf conftest*
5905   glibcpp_cv_func___builtin_cos_link=yes
5906 else
5907   echo "configure: failed program was:" >&5
5908   cat conftest.$ac_ext >&5
5909   rm -rf conftest*
5910   glibcpp_cv_func___builtin_cos_link=no
5911 fi
5912 rm -f conftest*
5913       
5914 fi
5915
5916     fi
5917     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
5918     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
5919       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5920       cat >> confdefs.h <<EOF
5921 #define ${ac_tr_func} 1
5922 EOF
5923
5924     fi
5925   fi
5926
5927   
5928   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
5929 echo "configure:5930: checking for __builtin_cosl declaration" >&5
5930   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
5931     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
5932   echo $ac_n "(cached) $ac_c" 1>&6
5933 else
5934   
5935       
5936       ac_ext=C
5937 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5938 ac_cpp='$CXXCPP $CPPFLAGS'
5939 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5940 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5941 cross_compiling=$ac_cv_prog_cxx_cross
5942
5943       cat > conftest.$ac_ext <<EOF
5944 #line 5945 "configure"
5945 #include "confdefs.h"
5946 #include <math.h>
5947 int main() {
5948  __builtin_cosl(0);
5949 ; return 0; }
5950 EOF
5951 if { (eval echo configure:5952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5952   rm -rf conftest*
5953   glibcpp_cv_func___builtin_cosl_use=yes
5954 else
5955   echo "configure: failed program was:" >&5
5956   cat conftest.$ac_ext >&5
5957   rm -rf conftest*
5958   glibcpp_cv_func___builtin_cosl_use=no
5959 fi
5960 rm -f conftest*
5961       ac_ext=c
5962 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5963 ac_cpp='$CPP $CPPFLAGS'
5964 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5965 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5966 cross_compiling=$ac_cv_prog_cc_cross
5967
5968     
5969 fi
5970
5971   fi
5972   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
5973   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
5974     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
5975 echo "configure:5976: checking for __builtin_cosl linkage" >&5
5976     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
5977       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
5978   echo $ac_n "(cached) $ac_c" 1>&6
5979 else
5980   
5981         cat > conftest.$ac_ext <<EOF
5982 #line 5983 "configure"
5983 #include "confdefs.h"
5984 #include <math.h>
5985 int main() {
5986  __builtin_cosl(0);
5987 ; return 0; }
5988 EOF
5989 if { (eval echo configure:5990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5990   rm -rf conftest*
5991   glibcpp_cv_func___builtin_cosl_link=yes
5992 else
5993   echo "configure: failed program was:" >&5
5994   cat conftest.$ac_ext >&5
5995   rm -rf conftest*
5996   glibcpp_cv_func___builtin_cosl_link=no
5997 fi
5998 rm -f conftest*
5999       
6000 fi
6001
6002     fi
6003     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6004     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6005       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6006       cat >> confdefs.h <<EOF
6007 #define ${ac_tr_func} 1
6008 EOF
6009
6010     fi
6011   fi
6012
6013
6014               dummyvar=no
6015   if test x$dummyvar = x"yes"; then
6016     cat >> confdefs.h <<\EOF
6017 #define HAVE___BUILTIN_ABS 1
6018 EOF
6019
6020     cat >> confdefs.h <<\EOF
6021 #define HAVE___BUILTIN_LABS 1
6022 EOF
6023
6024     cat >> confdefs.h <<\EOF
6025 #define HAVE___BUILTIN_COS 1
6026 EOF
6027
6028     cat >> confdefs.h <<\EOF
6029 #define HAVE___BUILTIN_COSF 1
6030 EOF
6031
6032     cat >> confdefs.h <<\EOF
6033 #define HAVE___BUILTIN_COSL 1
6034 EOF
6035
6036     cat >> confdefs.h <<\EOF
6037 #define HAVE___BUILTIN_FABS 1
6038 EOF
6039
6040     cat >> confdefs.h <<\EOF
6041 #define HAVE___BUILTIN_FABSF 1
6042 EOF
6043
6044     cat >> confdefs.h <<\EOF
6045 #define HAVE___BUILTIN_FABSL 1
6046 EOF
6047
6048     cat >> confdefs.h <<\EOF
6049 #define HAVE___BUILTIN_SIN 1
6050 EOF
6051
6052     cat >> confdefs.h <<\EOF
6053 #define HAVE___BUILTIN_SINF 1
6054 EOF
6055
6056     cat >> confdefs.h <<\EOF
6057 #define HAVE___BUILTIN_SINL 1
6058 EOF
6059
6060     cat >> confdefs.h <<\EOF
6061 #define HAVE___BUILTIN_FSQRT 1
6062 EOF
6063
6064     cat >> confdefs.h <<\EOF
6065 #define HAVE___BUILTIN_SQRTF 1
6066 EOF
6067
6068     cat >> confdefs.h <<\EOF
6069 #define HAVE___BUILTIN_SQRTL 1
6070 EOF
6071
6072   fi
6073
6074   
6075   ac_test_CXXFLAGS="${CXXFLAGS+set}"
6076   ac_save_CXXFLAGS="$CXXFLAGS"
6077   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6078
6079     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6080 echo "configure:6081: checking for sin in -lm" >&5
6081 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6082 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6083   echo $ac_n "(cached) $ac_c" 1>&6
6084 else
6085   ac_save_LIBS="$LIBS"
6086 LIBS="-lm  $LIBS"
6087 cat > conftest.$ac_ext <<EOF
6088 #line 6089 "configure"
6089 #include "confdefs.h"
6090 /* Override any gcc2 internal prototype to avoid an error.  */
6091 /* We use char because int might match the return type of a gcc2
6092     builtin and then its argument prototype would still apply.  */
6093 char sin();
6094
6095 int main() {
6096 sin()
6097 ; return 0; }
6098 EOF
6099 if { (eval echo configure:6100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6100   rm -rf conftest*
6101   eval "ac_cv_lib_$ac_lib_var=yes"
6102 else
6103   echo "configure: failed program was:" >&5
6104   cat conftest.$ac_ext >&5
6105   rm -rf conftest*
6106   eval "ac_cv_lib_$ac_lib_var=no"
6107 fi
6108 rm -f conftest*
6109 LIBS="$ac_save_LIBS"
6110
6111 fi
6112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6113   echo "$ac_t""yes" 1>&6
6114   libm="-lm"
6115 else
6116   echo "$ac_t""no" 1>&6
6117 fi
6118
6119   ac_save_LIBS="$LIBS"
6120   LIBS="$LIBS $libm"
6121
6122     
6123   
6124   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6125 echo "configure:6126: checking for isinf declaration" >&5
6126   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6127     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6128   echo $ac_n "(cached) $ac_c" 1>&6
6129 else
6130   
6131       
6132       ac_ext=C
6133 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6134 ac_cpp='$CXXCPP $CPPFLAGS'
6135 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6136 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6137 cross_compiling=$ac_cv_prog_cxx_cross
6138
6139       cat > conftest.$ac_ext <<EOF
6140 #line 6141 "configure"
6141 #include "confdefs.h"
6142 #include <math.h>
6143                       #ifdef HAVE_IEEEFP_H
6144                       #include <ieeefp.h>
6145                       #endif
6146                      
6147 int main() {
6148  isinf(0);
6149 ; return 0; }
6150 EOF
6151 if { (eval echo configure:6152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6152   rm -rf conftest*
6153   glibcpp_cv_func_isinf_use=yes
6154 else
6155   echo "configure: failed program was:" >&5
6156   cat conftest.$ac_ext >&5
6157   rm -rf conftest*
6158   glibcpp_cv_func_isinf_use=no
6159 fi
6160 rm -f conftest*
6161       ac_ext=c
6162 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6163 ac_cpp='$CPP $CPPFLAGS'
6164 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6165 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6166 cross_compiling=$ac_cv_prog_cc_cross
6167
6168     
6169 fi
6170
6171   fi
6172   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6173
6174   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6175     for ac_func in isinf
6176 do
6177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6178 echo "configure:6179: checking for $ac_func" >&5
6179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6180   echo $ac_n "(cached) $ac_c" 1>&6
6181 else
6182   cat > conftest.$ac_ext <<EOF
6183 #line 6184 "configure"
6184 #include "confdefs.h"
6185 /* System header to define __stub macros and hopefully few prototypes,
6186     which can conflict with char $ac_func(); below.  */
6187 #include <assert.h>
6188 /* Override any gcc2 internal prototype to avoid an error.  */
6189 /* We use char because int might match the return type of a gcc2
6190     builtin and then its argument prototype would still apply.  */
6191 char $ac_func();
6192
6193 int main() {
6194
6195 /* The GNU C library defines this for functions which it implements
6196     to always fail with ENOSYS.  Some functions are actually named
6197     something starting with __ and the normal name is an alias.  */
6198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6199 choke me
6200 #else
6201 $ac_func();
6202 #endif
6203
6204 ; return 0; }
6205 EOF
6206 if { (eval echo configure:6207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6207   rm -rf conftest*
6208   eval "ac_cv_func_$ac_func=yes"
6209 else
6210   echo "configure: failed program was:" >&5
6211   cat conftest.$ac_ext >&5
6212   rm -rf conftest*
6213   eval "ac_cv_func_$ac_func=no"
6214 fi
6215 rm -f conftest*
6216 fi
6217
6218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6219   echo "$ac_t""yes" 1>&6
6220     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6221   cat >> confdefs.h <<EOF
6222 #define $ac_tr_func 1
6223 EOF
6224  
6225 else
6226   echo "$ac_t""no" 1>&6
6227 fi
6228 done
6229     
6230   else
6231     
6232   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6233 echo "configure:6234: checking for _isinf declaration" >&5
6234   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6235     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6236   echo $ac_n "(cached) $ac_c" 1>&6
6237 else
6238   
6239       
6240       ac_ext=C
6241 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6242 ac_cpp='$CXXCPP $CPPFLAGS'
6243 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6244 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6245 cross_compiling=$ac_cv_prog_cxx_cross
6246
6247       cat > conftest.$ac_ext <<EOF
6248 #line 6249 "configure"
6249 #include "confdefs.h"
6250 #include <math.h>
6251                       #ifdef HAVE_IEEEFP_H
6252                       #include <ieeefp.h>
6253                       #endif
6254                      
6255 int main() {
6256  _isinf(0);
6257 ; return 0; }
6258 EOF
6259 if { (eval echo configure:6260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6260   rm -rf conftest*
6261   glibcpp_cv_func__isinf_use=yes
6262 else
6263   echo "configure: failed program was:" >&5
6264   cat conftest.$ac_ext >&5
6265   rm -rf conftest*
6266   glibcpp_cv_func__isinf_use=no
6267 fi
6268 rm -f conftest*
6269       ac_ext=c
6270 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6271 ac_cpp='$CPP $CPPFLAGS'
6272 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6273 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6274 cross_compiling=$ac_cv_prog_cc_cross
6275
6276     
6277 fi
6278
6279   fi
6280   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6281
6282     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6283       for ac_func in _isinf
6284 do
6285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6286 echo "configure:6287: checking for $ac_func" >&5
6287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6288   echo $ac_n "(cached) $ac_c" 1>&6
6289 else
6290   cat > conftest.$ac_ext <<EOF
6291 #line 6292 "configure"
6292 #include "confdefs.h"
6293 /* System header to define __stub macros and hopefully few prototypes,
6294     which can conflict with char $ac_func(); below.  */
6295 #include <assert.h>
6296 /* Override any gcc2 internal prototype to avoid an error.  */
6297 /* We use char because int might match the return type of a gcc2
6298     builtin and then its argument prototype would still apply.  */
6299 char $ac_func();
6300
6301 int main() {
6302
6303 /* The GNU C library defines this for functions which it implements
6304     to always fail with ENOSYS.  Some functions are actually named
6305     something starting with __ and the normal name is an alias.  */
6306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6307 choke me
6308 #else
6309 $ac_func();
6310 #endif
6311
6312 ; return 0; }
6313 EOF
6314 if { (eval echo configure:6315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6315   rm -rf conftest*
6316   eval "ac_cv_func_$ac_func=yes"
6317 else
6318   echo "configure: failed program was:" >&5
6319   cat conftest.$ac_ext >&5
6320   rm -rf conftest*
6321   eval "ac_cv_func_$ac_func=no"
6322 fi
6323 rm -f conftest*
6324 fi
6325
6326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6327   echo "$ac_t""yes" 1>&6
6328     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6329   cat >> confdefs.h <<EOF
6330 #define $ac_tr_func 1
6331 EOF
6332  
6333 else
6334   echo "$ac_t""no" 1>&6
6335 fi
6336 done
6337     
6338     fi  
6339   fi
6340
6341   
6342   
6343   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6344 echo "configure:6345: checking for isnan declaration" >&5
6345   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6346     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6347   echo $ac_n "(cached) $ac_c" 1>&6
6348 else
6349   
6350       
6351       ac_ext=C
6352 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6353 ac_cpp='$CXXCPP $CPPFLAGS'
6354 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6355 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6356 cross_compiling=$ac_cv_prog_cxx_cross
6357
6358       cat > conftest.$ac_ext <<EOF
6359 #line 6360 "configure"
6360 #include "confdefs.h"
6361 #include <math.h>
6362                       #ifdef HAVE_IEEEFP_H
6363                       #include <ieeefp.h>
6364                       #endif
6365                      
6366 int main() {
6367  isnan(0);
6368 ; return 0; }
6369 EOF
6370 if { (eval echo configure:6371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6371   rm -rf conftest*
6372   glibcpp_cv_func_isnan_use=yes
6373 else
6374   echo "configure: failed program was:" >&5
6375   cat conftest.$ac_ext >&5
6376   rm -rf conftest*
6377   glibcpp_cv_func_isnan_use=no
6378 fi
6379 rm -f conftest*
6380       ac_ext=c
6381 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6382 ac_cpp='$CPP $CPPFLAGS'
6383 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6384 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6385 cross_compiling=$ac_cv_prog_cc_cross
6386
6387     
6388 fi
6389
6390   fi
6391   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6392
6393   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6394     for ac_func in isnan
6395 do
6396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6397 echo "configure:6398: checking for $ac_func" >&5
6398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6399   echo $ac_n "(cached) $ac_c" 1>&6
6400 else
6401   cat > conftest.$ac_ext <<EOF
6402 #line 6403 "configure"
6403 #include "confdefs.h"
6404 /* System header to define __stub macros and hopefully few prototypes,
6405     which can conflict with char $ac_func(); below.  */
6406 #include <assert.h>
6407 /* Override any gcc2 internal prototype to avoid an error.  */
6408 /* We use char because int might match the return type of a gcc2
6409     builtin and then its argument prototype would still apply.  */
6410 char $ac_func();
6411
6412 int main() {
6413
6414 /* The GNU C library defines this for functions which it implements
6415     to always fail with ENOSYS.  Some functions are actually named
6416     something starting with __ and the normal name is an alias.  */
6417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6418 choke me
6419 #else
6420 $ac_func();
6421 #endif
6422
6423 ; return 0; }
6424 EOF
6425 if { (eval echo configure:6426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6426   rm -rf conftest*
6427   eval "ac_cv_func_$ac_func=yes"
6428 else
6429   echo "configure: failed program was:" >&5
6430   cat conftest.$ac_ext >&5
6431   rm -rf conftest*
6432   eval "ac_cv_func_$ac_func=no"
6433 fi
6434 rm -f conftest*
6435 fi
6436
6437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6438   echo "$ac_t""yes" 1>&6
6439     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6440   cat >> confdefs.h <<EOF
6441 #define $ac_tr_func 1
6442 EOF
6443  
6444 else
6445   echo "$ac_t""no" 1>&6
6446 fi
6447 done
6448     
6449   else
6450     
6451   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6452 echo "configure:6453: checking for _isnan declaration" >&5
6453   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6454     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6455   echo $ac_n "(cached) $ac_c" 1>&6
6456 else
6457   
6458       
6459       ac_ext=C
6460 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6461 ac_cpp='$CXXCPP $CPPFLAGS'
6462 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6463 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6464 cross_compiling=$ac_cv_prog_cxx_cross
6465
6466       cat > conftest.$ac_ext <<EOF
6467 #line 6468 "configure"
6468 #include "confdefs.h"
6469 #include <math.h>
6470                       #ifdef HAVE_IEEEFP_H
6471                       #include <ieeefp.h>
6472                       #endif
6473                      
6474 int main() {
6475  _isnan(0);
6476 ; return 0; }
6477 EOF
6478 if { (eval echo configure:6479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6479   rm -rf conftest*
6480   glibcpp_cv_func__isnan_use=yes
6481 else
6482   echo "configure: failed program was:" >&5
6483   cat conftest.$ac_ext >&5
6484   rm -rf conftest*
6485   glibcpp_cv_func__isnan_use=no
6486 fi
6487 rm -f conftest*
6488       ac_ext=c
6489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6490 ac_cpp='$CPP $CPPFLAGS'
6491 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6492 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6493 cross_compiling=$ac_cv_prog_cc_cross
6494
6495     
6496 fi
6497
6498   fi
6499   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6500
6501     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6502       for ac_func in _isnan
6503 do
6504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6505 echo "configure:6506: checking for $ac_func" >&5
6506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6507   echo $ac_n "(cached) $ac_c" 1>&6
6508 else
6509   cat > conftest.$ac_ext <<EOF
6510 #line 6511 "configure"
6511 #include "confdefs.h"
6512 /* System header to define __stub macros and hopefully few prototypes,
6513     which can conflict with char $ac_func(); below.  */
6514 #include <assert.h>
6515 /* Override any gcc2 internal prototype to avoid an error.  */
6516 /* We use char because int might match the return type of a gcc2
6517     builtin and then its argument prototype would still apply.  */
6518 char $ac_func();
6519
6520 int main() {
6521
6522 /* The GNU C library defines this for functions which it implements
6523     to always fail with ENOSYS.  Some functions are actually named
6524     something starting with __ and the normal name is an alias.  */
6525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6526 choke me
6527 #else
6528 $ac_func();
6529 #endif
6530
6531 ; return 0; }
6532 EOF
6533 if { (eval echo configure:6534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6534   rm -rf conftest*
6535   eval "ac_cv_func_$ac_func=yes"
6536 else
6537   echo "configure: failed program was:" >&5
6538   cat conftest.$ac_ext >&5
6539   rm -rf conftest*
6540   eval "ac_cv_func_$ac_func=no"
6541 fi
6542 rm -f conftest*
6543 fi
6544
6545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6546   echo "$ac_t""yes" 1>&6
6547     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6548   cat >> confdefs.h <<EOF
6549 #define $ac_tr_func 1
6550 EOF
6551  
6552 else
6553   echo "$ac_t""no" 1>&6
6554 fi
6555 done
6556     
6557     fi  
6558   fi
6559
6560   
6561   
6562   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6563 echo "configure:6564: checking for finite declaration" >&5
6564   if test x${glibcpp_cv_func_finite_use+set} != xset; then
6565     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6566   echo $ac_n "(cached) $ac_c" 1>&6
6567 else
6568   
6569       
6570       ac_ext=C
6571 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6572 ac_cpp='$CXXCPP $CPPFLAGS'
6573 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6574 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6575 cross_compiling=$ac_cv_prog_cxx_cross
6576
6577       cat > conftest.$ac_ext <<EOF
6578 #line 6579 "configure"
6579 #include "confdefs.h"
6580 #include <math.h>
6581                       #ifdef HAVE_IEEEFP_H
6582                       #include <ieeefp.h>
6583                       #endif
6584                      
6585 int main() {
6586  finite(0);
6587 ; return 0; }
6588 EOF
6589 if { (eval echo configure:6590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6590   rm -rf conftest*
6591   glibcpp_cv_func_finite_use=yes
6592 else
6593   echo "configure: failed program was:" >&5
6594   cat conftest.$ac_ext >&5
6595   rm -rf conftest*
6596   glibcpp_cv_func_finite_use=no
6597 fi
6598 rm -f conftest*
6599       ac_ext=c
6600 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6601 ac_cpp='$CPP $CPPFLAGS'
6602 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6603 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6604 cross_compiling=$ac_cv_prog_cc_cross
6605
6606     
6607 fi
6608
6609   fi
6610   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
6611
6612   if test x$glibcpp_cv_func_finite_use = x"yes"; then
6613     for ac_func in finite
6614 do
6615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6616 echo "configure:6617: checking for $ac_func" >&5
6617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6618   echo $ac_n "(cached) $ac_c" 1>&6
6619 else
6620   cat > conftest.$ac_ext <<EOF
6621 #line 6622 "configure"
6622 #include "confdefs.h"
6623 /* System header to define __stub macros and hopefully few prototypes,
6624     which can conflict with char $ac_func(); below.  */
6625 #include <assert.h>
6626 /* Override any gcc2 internal prototype to avoid an error.  */
6627 /* We use char because int might match the return type of a gcc2
6628     builtin and then its argument prototype would still apply.  */
6629 char $ac_func();
6630
6631 int main() {
6632
6633 /* The GNU C library defines this for functions which it implements
6634     to always fail with ENOSYS.  Some functions are actually named
6635     something starting with __ and the normal name is an alias.  */
6636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6637 choke me
6638 #else
6639 $ac_func();
6640 #endif
6641
6642 ; return 0; }
6643 EOF
6644 if { (eval echo configure:6645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6645   rm -rf conftest*
6646   eval "ac_cv_func_$ac_func=yes"
6647 else
6648   echo "configure: failed program was:" >&5
6649   cat conftest.$ac_ext >&5
6650   rm -rf conftest*
6651   eval "ac_cv_func_$ac_func=no"
6652 fi
6653 rm -f conftest*
6654 fi
6655
6656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6657   echo "$ac_t""yes" 1>&6
6658     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6659   cat >> confdefs.h <<EOF
6660 #define $ac_tr_func 1
6661 EOF
6662  
6663 else
6664   echo "$ac_t""no" 1>&6
6665 fi
6666 done
6667     
6668   else
6669     
6670   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
6671 echo "configure:6672: checking for _finite declaration" >&5
6672   if test x${glibcpp_cv_func__finite_use+set} != xset; then
6673     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
6674   echo $ac_n "(cached) $ac_c" 1>&6
6675 else
6676   
6677       
6678       ac_ext=C
6679 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6680 ac_cpp='$CXXCPP $CPPFLAGS'
6681 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6682 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6683 cross_compiling=$ac_cv_prog_cxx_cross
6684
6685       cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6688 #include <math.h>
6689                       #ifdef HAVE_IEEEFP_H
6690                       #include <ieeefp.h>
6691                       #endif
6692                      
6693 int main() {
6694  _finite(0);
6695 ; return 0; }
6696 EOF
6697 if { (eval echo configure:6698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6698   rm -rf conftest*
6699   glibcpp_cv_func__finite_use=yes
6700 else
6701   echo "configure: failed program was:" >&5
6702   cat conftest.$ac_ext >&5
6703   rm -rf conftest*
6704   glibcpp_cv_func__finite_use=no
6705 fi
6706 rm -f conftest*
6707       ac_ext=c
6708 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6709 ac_cpp='$CPP $CPPFLAGS'
6710 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6711 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6712 cross_compiling=$ac_cv_prog_cc_cross
6713
6714     
6715 fi
6716
6717   fi
6718   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
6719
6720     if test x$glibcpp_cv_func__finite_use = x"yes"; then
6721       for ac_func in _finite
6722 do
6723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6724 echo "configure:6725: checking for $ac_func" >&5
6725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6726   echo $ac_n "(cached) $ac_c" 1>&6
6727 else
6728   cat > conftest.$ac_ext <<EOF
6729 #line 6730 "configure"
6730 #include "confdefs.h"
6731 /* System header to define __stub macros and hopefully few prototypes,
6732     which can conflict with char $ac_func(); below.  */
6733 #include <assert.h>
6734 /* Override any gcc2 internal prototype to avoid an error.  */
6735 /* We use char because int might match the return type of a gcc2
6736     builtin and then its argument prototype would still apply.  */
6737 char $ac_func();
6738
6739 int main() {
6740
6741 /* The GNU C library defines this for functions which it implements
6742     to always fail with ENOSYS.  Some functions are actually named
6743     something starting with __ and the normal name is an alias.  */
6744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6745 choke me
6746 #else
6747 $ac_func();
6748 #endif
6749
6750 ; return 0; }
6751 EOF
6752 if { (eval echo configure:6753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6753   rm -rf conftest*
6754   eval "ac_cv_func_$ac_func=yes"
6755 else
6756   echo "configure: failed program was:" >&5
6757   cat conftest.$ac_ext >&5
6758   rm -rf conftest*
6759   eval "ac_cv_func_$ac_func=no"
6760 fi
6761 rm -f conftest*
6762 fi
6763
6764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6765   echo "$ac_t""yes" 1>&6
6766     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6767   cat >> confdefs.h <<EOF
6768 #define $ac_tr_func 1
6769 EOF
6770  
6771 else
6772   echo "$ac_t""no" 1>&6
6773 fi
6774 done
6775     
6776     fi  
6777   fi
6778
6779   
6780   
6781   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
6782 echo "configure:6783: checking for copysign declaration" >&5
6783   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
6784     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
6785   echo $ac_n "(cached) $ac_c" 1>&6
6786 else
6787   
6788       
6789       ac_ext=C
6790 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6791 ac_cpp='$CXXCPP $CPPFLAGS'
6792 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6793 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6794 cross_compiling=$ac_cv_prog_cxx_cross
6795
6796       cat > conftest.$ac_ext <<EOF
6797 #line 6798 "configure"
6798 #include "confdefs.h"
6799 #include <math.h>
6800 int main() {
6801  copysign(0, 0);
6802 ; return 0; }
6803 EOF
6804 if { (eval echo configure:6805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6805   rm -rf conftest*
6806   glibcpp_cv_func_copysign_use=yes
6807 else
6808   echo "configure: failed program was:" >&5
6809   cat conftest.$ac_ext >&5
6810   rm -rf conftest*
6811   glibcpp_cv_func_copysign_use=no
6812 fi
6813 rm -f conftest*
6814       ac_ext=c
6815 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6816 ac_cpp='$CPP $CPPFLAGS'
6817 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6818 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6819 cross_compiling=$ac_cv_prog_cc_cross
6820
6821     
6822 fi
6823
6824   fi
6825   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
6826
6827   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
6828     for ac_func in copysign
6829 do
6830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6831 echo "configure:6832: checking for $ac_func" >&5
6832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6833   echo $ac_n "(cached) $ac_c" 1>&6
6834 else
6835   cat > conftest.$ac_ext <<EOF
6836 #line 6837 "configure"
6837 #include "confdefs.h"
6838 /* System header to define __stub macros and hopefully few prototypes,
6839     which can conflict with char $ac_func(); below.  */
6840 #include <assert.h>
6841 /* Override any gcc2 internal prototype to avoid an error.  */
6842 /* We use char because int might match the return type of a gcc2
6843     builtin and then its argument prototype would still apply.  */
6844 char $ac_func();
6845
6846 int main() {
6847
6848 /* The GNU C library defines this for functions which it implements
6849     to always fail with ENOSYS.  Some functions are actually named
6850     something starting with __ and the normal name is an alias.  */
6851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6852 choke me
6853 #else
6854 $ac_func();
6855 #endif
6856
6857 ; return 0; }
6858 EOF
6859 if { (eval echo configure:6860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6860   rm -rf conftest*
6861   eval "ac_cv_func_$ac_func=yes"
6862 else
6863   echo "configure: failed program was:" >&5
6864   cat conftest.$ac_ext >&5
6865   rm -rf conftest*
6866   eval "ac_cv_func_$ac_func=no"
6867 fi
6868 rm -f conftest*
6869 fi
6870
6871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6872   echo "$ac_t""yes" 1>&6
6873     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6874   cat >> confdefs.h <<EOF
6875 #define $ac_tr_func 1
6876 EOF
6877  
6878 else
6879   echo "$ac_t""no" 1>&6
6880 fi
6881 done
6882     
6883   else
6884     
6885   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
6886 echo "configure:6887: checking for _copysign declaration" >&5
6887   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
6888     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
6889   echo $ac_n "(cached) $ac_c" 1>&6
6890 else
6891   
6892       
6893       ac_ext=C
6894 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6895 ac_cpp='$CXXCPP $CPPFLAGS'
6896 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6897 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6898 cross_compiling=$ac_cv_prog_cxx_cross
6899
6900       cat > conftest.$ac_ext <<EOF
6901 #line 6902 "configure"
6902 #include "confdefs.h"
6903 #include <math.h>
6904 int main() {
6905  _copysign(0, 0);
6906 ; return 0; }
6907 EOF
6908 if { (eval echo configure:6909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6909   rm -rf conftest*
6910   glibcpp_cv_func__copysign_use=yes
6911 else
6912   echo "configure: failed program was:" >&5
6913   cat conftest.$ac_ext >&5
6914   rm -rf conftest*
6915   glibcpp_cv_func__copysign_use=no
6916 fi
6917 rm -f conftest*
6918       ac_ext=c
6919 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6920 ac_cpp='$CPP $CPPFLAGS'
6921 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6922 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6923 cross_compiling=$ac_cv_prog_cc_cross
6924
6925     
6926 fi
6927
6928   fi
6929   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
6930
6931     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
6932       for ac_func in _copysign
6933 do
6934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6935 echo "configure:6936: checking for $ac_func" >&5
6936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6937   echo $ac_n "(cached) $ac_c" 1>&6
6938 else
6939   cat > conftest.$ac_ext <<EOF
6940 #line 6941 "configure"
6941 #include "confdefs.h"
6942 /* System header to define __stub macros and hopefully few prototypes,
6943     which can conflict with char $ac_func(); below.  */
6944 #include <assert.h>
6945 /* Override any gcc2 internal prototype to avoid an error.  */
6946 /* We use char because int might match the return type of a gcc2
6947     builtin and then its argument prototype would still apply.  */
6948 char $ac_func();
6949
6950 int main() {
6951
6952 /* The GNU C library defines this for functions which it implements
6953     to always fail with ENOSYS.  Some functions are actually named
6954     something starting with __ and the normal name is an alias.  */
6955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6956 choke me
6957 #else
6958 $ac_func();
6959 #endif
6960
6961 ; return 0; }
6962 EOF
6963 if { (eval echo configure:6964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6964   rm -rf conftest*
6965   eval "ac_cv_func_$ac_func=yes"
6966 else
6967   echo "configure: failed program was:" >&5
6968   cat conftest.$ac_ext >&5
6969   rm -rf conftest*
6970   eval "ac_cv_func_$ac_func=no"
6971 fi
6972 rm -f conftest*
6973 fi
6974
6975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6976   echo "$ac_t""yes" 1>&6
6977     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6978   cat >> confdefs.h <<EOF
6979 #define $ac_tr_func 1
6980 EOF
6981  
6982 else
6983   echo "$ac_t""no" 1>&6
6984 fi
6985 done
6986     
6987     fi  
6988   fi
6989
6990   
6991   
6992   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
6993 echo "configure:6994: checking for sincos declaration" >&5
6994   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
6995     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
6996   echo $ac_n "(cached) $ac_c" 1>&6
6997 else
6998   
6999       
7000       ac_ext=C
7001 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7002 ac_cpp='$CXXCPP $CPPFLAGS'
7003 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7004 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7005 cross_compiling=$ac_cv_prog_cxx_cross
7006
7007       cat > conftest.$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h"
7010 #include <math.h>
7011 int main() {
7012  sincos(0, 0, 0);
7013 ; return 0; }
7014 EOF
7015 if { (eval echo configure:7016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7016   rm -rf conftest*
7017   glibcpp_cv_func_sincos_use=yes
7018 else
7019   echo "configure: failed program was:" >&5
7020   cat conftest.$ac_ext >&5
7021   rm -rf conftest*
7022   glibcpp_cv_func_sincos_use=no
7023 fi
7024 rm -f conftest*
7025       ac_ext=c
7026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7027 ac_cpp='$CPP $CPPFLAGS'
7028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7030 cross_compiling=$ac_cv_prog_cc_cross
7031
7032     
7033 fi
7034
7035   fi
7036   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7037
7038   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7039     for ac_func in sincos
7040 do
7041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7042 echo "configure:7043: checking for $ac_func" >&5
7043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7044   echo $ac_n "(cached) $ac_c" 1>&6
7045 else
7046   cat > conftest.$ac_ext <<EOF
7047 #line 7048 "configure"
7048 #include "confdefs.h"
7049 /* System header to define __stub macros and hopefully few prototypes,
7050     which can conflict with char $ac_func(); below.  */
7051 #include <assert.h>
7052 /* Override any gcc2 internal prototype to avoid an error.  */
7053 /* We use char because int might match the return type of a gcc2
7054     builtin and then its argument prototype would still apply.  */
7055 char $ac_func();
7056
7057 int main() {
7058
7059 /* The GNU C library defines this for functions which it implements
7060     to always fail with ENOSYS.  Some functions are actually named
7061     something starting with __ and the normal name is an alias.  */
7062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7063 choke me
7064 #else
7065 $ac_func();
7066 #endif
7067
7068 ; return 0; }
7069 EOF
7070 if { (eval echo configure:7071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7071   rm -rf conftest*
7072   eval "ac_cv_func_$ac_func=yes"
7073 else
7074   echo "configure: failed program was:" >&5
7075   cat conftest.$ac_ext >&5
7076   rm -rf conftest*
7077   eval "ac_cv_func_$ac_func=no"
7078 fi
7079 rm -f conftest*
7080 fi
7081
7082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7083   echo "$ac_t""yes" 1>&6
7084     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7085   cat >> confdefs.h <<EOF
7086 #define $ac_tr_func 1
7087 EOF
7088  
7089 else
7090   echo "$ac_t""no" 1>&6
7091 fi
7092 done
7093     
7094   else
7095     
7096   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7097 echo "configure:7098: checking for _sincos declaration" >&5
7098   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7099     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7100   echo $ac_n "(cached) $ac_c" 1>&6
7101 else
7102   
7103       
7104       ac_ext=C
7105 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7106 ac_cpp='$CXXCPP $CPPFLAGS'
7107 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7108 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7109 cross_compiling=$ac_cv_prog_cxx_cross
7110
7111       cat > conftest.$ac_ext <<EOF
7112 #line 7113 "configure"
7113 #include "confdefs.h"
7114 #include <math.h>
7115 int main() {
7116  _sincos(0, 0, 0);
7117 ; return 0; }
7118 EOF
7119 if { (eval echo configure:7120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7120   rm -rf conftest*
7121   glibcpp_cv_func__sincos_use=yes
7122 else
7123   echo "configure: failed program was:" >&5
7124   cat conftest.$ac_ext >&5
7125   rm -rf conftest*
7126   glibcpp_cv_func__sincos_use=no
7127 fi
7128 rm -f conftest*
7129       ac_ext=c
7130 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7131 ac_cpp='$CPP $CPPFLAGS'
7132 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7133 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7134 cross_compiling=$ac_cv_prog_cc_cross
7135
7136     
7137 fi
7138
7139   fi
7140   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7141
7142     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7143       for ac_func in _sincos
7144 do
7145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7146 echo "configure:7147: checking for $ac_func" >&5
7147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7148   echo $ac_n "(cached) $ac_c" 1>&6
7149 else
7150   cat > conftest.$ac_ext <<EOF
7151 #line 7152 "configure"
7152 #include "confdefs.h"
7153 /* System header to define __stub macros and hopefully few prototypes,
7154     which can conflict with char $ac_func(); below.  */
7155 #include <assert.h>
7156 /* Override any gcc2 internal prototype to avoid an error.  */
7157 /* We use char because int might match the return type of a gcc2
7158     builtin and then its argument prototype would still apply.  */
7159 char $ac_func();
7160
7161 int main() {
7162
7163 /* The GNU C library defines this for functions which it implements
7164     to always fail with ENOSYS.  Some functions are actually named
7165     something starting with __ and the normal name is an alias.  */
7166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7167 choke me
7168 #else
7169 $ac_func();
7170 #endif
7171
7172 ; return 0; }
7173 EOF
7174 if { (eval echo configure:7175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7175   rm -rf conftest*
7176   eval "ac_cv_func_$ac_func=yes"
7177 else
7178   echo "configure: failed program was:" >&5
7179   cat conftest.$ac_ext >&5
7180   rm -rf conftest*
7181   eval "ac_cv_func_$ac_func=no"
7182 fi
7183 rm -f conftest*
7184 fi
7185
7186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7187   echo "$ac_t""yes" 1>&6
7188     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7189   cat >> confdefs.h <<EOF
7190 #define $ac_tr_func 1
7191 EOF
7192  
7193 else
7194   echo "$ac_t""no" 1>&6
7195 fi
7196 done
7197     
7198     fi  
7199   fi
7200
7201   
7202   
7203   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7204 echo "configure:7205: checking for fpclass declaration" >&5
7205   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7206     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7207   echo $ac_n "(cached) $ac_c" 1>&6
7208 else
7209   
7210       
7211       ac_ext=C
7212 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7213 ac_cpp='$CXXCPP $CPPFLAGS'
7214 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7215 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7216 cross_compiling=$ac_cv_prog_cxx_cross
7217
7218       cat > conftest.$ac_ext <<EOF
7219 #line 7220 "configure"
7220 #include "confdefs.h"
7221 #include <math.h>
7222                       #ifdef HAVE_IEEEFP_H
7223                       #include <ieeefp.h>
7224                       #endif
7225                      
7226 int main() {
7227  fpclass(0);
7228 ; return 0; }
7229 EOF
7230 if { (eval echo configure:7231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7231   rm -rf conftest*
7232   glibcpp_cv_func_fpclass_use=yes
7233 else
7234   echo "configure: failed program was:" >&5
7235   cat conftest.$ac_ext >&5
7236   rm -rf conftest*
7237   glibcpp_cv_func_fpclass_use=no
7238 fi
7239 rm -f conftest*
7240       ac_ext=c
7241 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7242 ac_cpp='$CPP $CPPFLAGS'
7243 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7244 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7245 cross_compiling=$ac_cv_prog_cc_cross
7246
7247     
7248 fi
7249
7250   fi
7251   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7252
7253   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7254     for ac_func in fpclass
7255 do
7256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7257 echo "configure:7258: checking for $ac_func" >&5
7258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7259   echo $ac_n "(cached) $ac_c" 1>&6
7260 else
7261   cat > conftest.$ac_ext <<EOF
7262 #line 7263 "configure"
7263 #include "confdefs.h"
7264 /* System header to define __stub macros and hopefully few prototypes,
7265     which can conflict with char $ac_func(); below.  */
7266 #include <assert.h>
7267 /* Override any gcc2 internal prototype to avoid an error.  */
7268 /* We use char because int might match the return type of a gcc2
7269     builtin and then its argument prototype would still apply.  */
7270 char $ac_func();
7271
7272 int main() {
7273
7274 /* The GNU C library defines this for functions which it implements
7275     to always fail with ENOSYS.  Some functions are actually named
7276     something starting with __ and the normal name is an alias.  */
7277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7278 choke me
7279 #else
7280 $ac_func();
7281 #endif
7282
7283 ; return 0; }
7284 EOF
7285 if { (eval echo configure:7286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7286   rm -rf conftest*
7287   eval "ac_cv_func_$ac_func=yes"
7288 else
7289   echo "configure: failed program was:" >&5
7290   cat conftest.$ac_ext >&5
7291   rm -rf conftest*
7292   eval "ac_cv_func_$ac_func=no"
7293 fi
7294 rm -f conftest*
7295 fi
7296
7297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7298   echo "$ac_t""yes" 1>&6
7299     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7300   cat >> confdefs.h <<EOF
7301 #define $ac_tr_func 1
7302 EOF
7303  
7304 else
7305   echo "$ac_t""no" 1>&6
7306 fi
7307 done
7308     
7309   else
7310     
7311   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7312 echo "configure:7313: checking for _fpclass declaration" >&5
7313   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7314     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7315   echo $ac_n "(cached) $ac_c" 1>&6
7316 else
7317   
7318       
7319       ac_ext=C
7320 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7321 ac_cpp='$CXXCPP $CPPFLAGS'
7322 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7323 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7324 cross_compiling=$ac_cv_prog_cxx_cross
7325
7326       cat > conftest.$ac_ext <<EOF
7327 #line 7328 "configure"
7328 #include "confdefs.h"
7329 #include <math.h>
7330                       #ifdef HAVE_IEEEFP_H
7331                       #include <ieeefp.h>
7332                       #endif
7333                      
7334 int main() {
7335  _fpclass(0);
7336 ; return 0; }
7337 EOF
7338 if { (eval echo configure:7339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7339   rm -rf conftest*
7340   glibcpp_cv_func__fpclass_use=yes
7341 else
7342   echo "configure: failed program was:" >&5
7343   cat conftest.$ac_ext >&5
7344   rm -rf conftest*
7345   glibcpp_cv_func__fpclass_use=no
7346 fi
7347 rm -f conftest*
7348       ac_ext=c
7349 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7350 ac_cpp='$CPP $CPPFLAGS'
7351 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7352 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7353 cross_compiling=$ac_cv_prog_cc_cross
7354
7355     
7356 fi
7357
7358   fi
7359   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7360
7361     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7362       for ac_func in _fpclass
7363 do
7364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7365 echo "configure:7366: checking for $ac_func" >&5
7366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7367   echo $ac_n "(cached) $ac_c" 1>&6
7368 else
7369   cat > conftest.$ac_ext <<EOF
7370 #line 7371 "configure"
7371 #include "confdefs.h"
7372 /* System header to define __stub macros and hopefully few prototypes,
7373     which can conflict with char $ac_func(); below.  */
7374 #include <assert.h>
7375 /* Override any gcc2 internal prototype to avoid an error.  */
7376 /* We use char because int might match the return type of a gcc2
7377     builtin and then its argument prototype would still apply.  */
7378 char $ac_func();
7379
7380 int main() {
7381
7382 /* The GNU C library defines this for functions which it implements
7383     to always fail with ENOSYS.  Some functions are actually named
7384     something starting with __ and the normal name is an alias.  */
7385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7386 choke me
7387 #else
7388 $ac_func();
7389 #endif
7390
7391 ; return 0; }
7392 EOF
7393 if { (eval echo configure:7394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7394   rm -rf conftest*
7395   eval "ac_cv_func_$ac_func=yes"
7396 else
7397   echo "configure: failed program was:" >&5
7398   cat conftest.$ac_ext >&5
7399   rm -rf conftest*
7400   eval "ac_cv_func_$ac_func=no"
7401 fi
7402 rm -f conftest*
7403 fi
7404
7405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7406   echo "$ac_t""yes" 1>&6
7407     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7408   cat >> confdefs.h <<EOF
7409 #define $ac_tr_func 1
7410 EOF
7411  
7412 else
7413   echo "$ac_t""no" 1>&6
7414 fi
7415 done
7416     
7417     fi  
7418   fi
7419
7420   
7421   
7422   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7423 echo "configure:7424: checking for qfpclass declaration" >&5
7424   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7425     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7426   echo $ac_n "(cached) $ac_c" 1>&6
7427 else
7428   
7429       
7430       ac_ext=C
7431 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7432 ac_cpp='$CXXCPP $CPPFLAGS'
7433 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7434 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7435 cross_compiling=$ac_cv_prog_cxx_cross
7436
7437       cat > conftest.$ac_ext <<EOF
7438 #line 7439 "configure"
7439 #include "confdefs.h"
7440 #include <math.h>
7441                       #ifdef HAVE_IEEEFP_H
7442                       #include <ieeefp.h>
7443                       #endif
7444                      
7445 int main() {
7446  qfpclass(0);
7447 ; return 0; }
7448 EOF
7449 if { (eval echo configure:7450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7450   rm -rf conftest*
7451   glibcpp_cv_func_qfpclass_use=yes
7452 else
7453   echo "configure: failed program was:" >&5
7454   cat conftest.$ac_ext >&5
7455   rm -rf conftest*
7456   glibcpp_cv_func_qfpclass_use=no
7457 fi
7458 rm -f conftest*
7459       ac_ext=c
7460 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7461 ac_cpp='$CPP $CPPFLAGS'
7462 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7463 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7464 cross_compiling=$ac_cv_prog_cc_cross
7465
7466     
7467 fi
7468
7469   fi
7470   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7471
7472   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7473     for ac_func in qfpclass
7474 do
7475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7476 echo "configure:7477: checking for $ac_func" >&5
7477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7478   echo $ac_n "(cached) $ac_c" 1>&6
7479 else
7480   cat > conftest.$ac_ext <<EOF
7481 #line 7482 "configure"
7482 #include "confdefs.h"
7483 /* System header to define __stub macros and hopefully few prototypes,
7484     which can conflict with char $ac_func(); below.  */
7485 #include <assert.h>
7486 /* Override any gcc2 internal prototype to avoid an error.  */
7487 /* We use char because int might match the return type of a gcc2
7488     builtin and then its argument prototype would still apply.  */
7489 char $ac_func();
7490
7491 int main() {
7492
7493 /* The GNU C library defines this for functions which it implements
7494     to always fail with ENOSYS.  Some functions are actually named
7495     something starting with __ and the normal name is an alias.  */
7496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7497 choke me
7498 #else
7499 $ac_func();
7500 #endif
7501
7502 ; return 0; }
7503 EOF
7504 if { (eval echo configure:7505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7505   rm -rf conftest*
7506   eval "ac_cv_func_$ac_func=yes"
7507 else
7508   echo "configure: failed program was:" >&5
7509   cat conftest.$ac_ext >&5
7510   rm -rf conftest*
7511   eval "ac_cv_func_$ac_func=no"
7512 fi
7513 rm -f conftest*
7514 fi
7515
7516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7517   echo "$ac_t""yes" 1>&6
7518     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7519   cat >> confdefs.h <<EOF
7520 #define $ac_tr_func 1
7521 EOF
7522  
7523 else
7524   echo "$ac_t""no" 1>&6
7525 fi
7526 done
7527     
7528   else
7529     
7530   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7531 echo "configure:7532: checking for _qfpclass declaration" >&5
7532   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7533     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7534   echo $ac_n "(cached) $ac_c" 1>&6
7535 else
7536   
7537       
7538       ac_ext=C
7539 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7540 ac_cpp='$CXXCPP $CPPFLAGS'
7541 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7542 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7543 cross_compiling=$ac_cv_prog_cxx_cross
7544
7545       cat > conftest.$ac_ext <<EOF
7546 #line 7547 "configure"
7547 #include "confdefs.h"
7548 #include <math.h>
7549                       #ifdef HAVE_IEEEFP_H
7550                       #include <ieeefp.h>
7551                       #endif
7552                      
7553 int main() {
7554  _qfpclass(0);
7555 ; return 0; }
7556 EOF
7557 if { (eval echo configure:7558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7558   rm -rf conftest*
7559   glibcpp_cv_func__qfpclass_use=yes
7560 else
7561   echo "configure: failed program was:" >&5
7562   cat conftest.$ac_ext >&5
7563   rm -rf conftest*
7564   glibcpp_cv_func__qfpclass_use=no
7565 fi
7566 rm -f conftest*
7567       ac_ext=c
7568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7569 ac_cpp='$CPP $CPPFLAGS'
7570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7572 cross_compiling=$ac_cv_prog_cc_cross
7573
7574     
7575 fi
7576
7577   fi
7578   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7579
7580     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7581       for ac_func in _qfpclass
7582 do
7583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7584 echo "configure:7585: checking for $ac_func" >&5
7585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7586   echo $ac_n "(cached) $ac_c" 1>&6
7587 else
7588   cat > conftest.$ac_ext <<EOF
7589 #line 7590 "configure"
7590 #include "confdefs.h"
7591 /* System header to define __stub macros and hopefully few prototypes,
7592     which can conflict with char $ac_func(); below.  */
7593 #include <assert.h>
7594 /* Override any gcc2 internal prototype to avoid an error.  */
7595 /* We use char because int might match the return type of a gcc2
7596     builtin and then its argument prototype would still apply.  */
7597 char $ac_func();
7598
7599 int main() {
7600
7601 /* The GNU C library defines this for functions which it implements
7602     to always fail with ENOSYS.  Some functions are actually named
7603     something starting with __ and the normal name is an alias.  */
7604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7605 choke me
7606 #else
7607 $ac_func();
7608 #endif
7609
7610 ; return 0; }
7611 EOF
7612 if { (eval echo configure:7613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7613   rm -rf conftest*
7614   eval "ac_cv_func_$ac_func=yes"
7615 else
7616   echo "configure: failed program was:" >&5
7617   cat conftest.$ac_ext >&5
7618   rm -rf conftest*
7619   eval "ac_cv_func_$ac_func=no"
7620 fi
7621 rm -f conftest*
7622 fi
7623
7624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7625   echo "$ac_t""yes" 1>&6
7626     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7627   cat >> confdefs.h <<EOF
7628 #define $ac_tr_func 1
7629 EOF
7630  
7631 else
7632   echo "$ac_t""no" 1>&6
7633 fi
7634 done
7635     
7636     fi  
7637   fi
7638
7639
7640     
7641   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
7642 echo "configure:7643: checking for float trig functions" >&5
7643   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
7644   echo $ac_n "(cached) $ac_c" 1>&6
7645 else
7646   
7647     
7648     ac_ext=C
7649 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7650 ac_cpp='$CXXCPP $CPPFLAGS'
7651 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7652 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7653 cross_compiling=$ac_cv_prog_cxx_cross
7654
7655     cat > conftest.$ac_ext <<EOF
7656 #line 7657 "configure"
7657 #include "confdefs.h"
7658 #include <math.h>
7659 int main() {
7660  `for x in acosf asinf atanf \
7661                                           cosf sinf tanf \
7662                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
7663 ; return 0; }
7664 EOF
7665 if { (eval echo configure:7666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7666   rm -rf conftest*
7667   glibcpp_cv_func_float_trig_use=yes
7668 else
7669   echo "configure: failed program was:" >&5
7670   cat conftest.$ac_ext >&5
7671   rm -rf conftest*
7672   glibcpp_cv_func_float_trig_use=no
7673 fi
7674 rm -f conftest*
7675     ac_ext=c
7676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7677 ac_cpp='$CPP $CPPFLAGS'
7678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7680 cross_compiling=$ac_cv_prog_cc_cross
7681
7682 fi
7683
7684   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
7685   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
7686     for ac_func in acosf asinf atanf \
7687                                           cosf sinf tanf \
7688                                           coshf sinhf tanhf
7689 do
7690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7691 echo "configure:7692: checking for $ac_func" >&5
7692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7693   echo $ac_n "(cached) $ac_c" 1>&6
7694 else
7695   cat > conftest.$ac_ext <<EOF
7696 #line 7697 "configure"
7697 #include "confdefs.h"
7698 /* System header to define __stub macros and hopefully few prototypes,
7699     which can conflict with char $ac_func(); below.  */
7700 #include <assert.h>
7701 /* Override any gcc2 internal prototype to avoid an error.  */
7702 /* We use char because int might match the return type of a gcc2
7703     builtin and then its argument prototype would still apply.  */
7704 char $ac_func();
7705
7706 int main() {
7707
7708 /* The GNU C library defines this for functions which it implements
7709     to always fail with ENOSYS.  Some functions are actually named
7710     something starting with __ and the normal name is an alias.  */
7711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7712 choke me
7713 #else
7714 $ac_func();
7715 #endif
7716
7717 ; return 0; }
7718 EOF
7719 if { (eval echo configure:7720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7720   rm -rf conftest*
7721   eval "ac_cv_func_$ac_func=yes"
7722 else
7723   echo "configure: failed program was:" >&5
7724   cat conftest.$ac_ext >&5
7725   rm -rf conftest*
7726   eval "ac_cv_func_$ac_func=no"
7727 fi
7728 rm -f conftest*
7729 fi
7730
7731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7732   echo "$ac_t""yes" 1>&6
7733     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7734   cat >> confdefs.h <<EOF
7735 #define $ac_tr_func 1
7736 EOF
7737  
7738 else
7739   echo "$ac_t""no" 1>&6
7740 fi
7741 done
7742
7743   fi
7744
7745   
7746   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
7747 echo "configure:7748: checking for float round functions" >&5
7748   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
7749   echo $ac_n "(cached) $ac_c" 1>&6
7750 else
7751   
7752     
7753     ac_ext=C
7754 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7755 ac_cpp='$CXXCPP $CPPFLAGS'
7756 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7757 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7758 cross_compiling=$ac_cv_prog_cxx_cross
7759
7760     cat > conftest.$ac_ext <<EOF
7761 #line 7762 "configure"
7762 #include "confdefs.h"
7763 #include <math.h>
7764 int main() {
7765  `for x in ceilf floorf; do echo "$x (0);"; done` 
7766 ; return 0; }
7767 EOF
7768 if { (eval echo configure:7769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7769   rm -rf conftest*
7770   glibcpp_cv_func_float_round_use=yes
7771 else
7772   echo "configure: failed program was:" >&5
7773   cat conftest.$ac_ext >&5
7774   rm -rf conftest*
7775   glibcpp_cv_func_float_round_use=no
7776 fi
7777 rm -f conftest*
7778     ac_ext=c
7779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7780 ac_cpp='$CPP $CPPFLAGS'
7781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7782 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7783 cross_compiling=$ac_cv_prog_cc_cross
7784
7785 fi
7786
7787   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
7788   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
7789     for ac_func in ceilf floorf
7790 do
7791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7792 echo "configure:7793: checking for $ac_func" >&5
7793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7794   echo $ac_n "(cached) $ac_c" 1>&6
7795 else
7796   cat > conftest.$ac_ext <<EOF
7797 #line 7798 "configure"
7798 #include "confdefs.h"
7799 /* System header to define __stub macros and hopefully few prototypes,
7800     which can conflict with char $ac_func(); below.  */
7801 #include <assert.h>
7802 /* Override any gcc2 internal prototype to avoid an error.  */
7803 /* We use char because int might match the return type of a gcc2
7804     builtin and then its argument prototype would still apply.  */
7805 char $ac_func();
7806
7807 int main() {
7808
7809 /* The GNU C library defines this for functions which it implements
7810     to always fail with ENOSYS.  Some functions are actually named
7811     something starting with __ and the normal name is an alias.  */
7812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7813 choke me
7814 #else
7815 $ac_func();
7816 #endif
7817
7818 ; return 0; }
7819 EOF
7820 if { (eval echo configure:7821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7821   rm -rf conftest*
7822   eval "ac_cv_func_$ac_func=yes"
7823 else
7824   echo "configure: failed program was:" >&5
7825   cat conftest.$ac_ext >&5
7826   rm -rf conftest*
7827   eval "ac_cv_func_$ac_func=no"
7828 fi
7829 rm -f conftest*
7830 fi
7831
7832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7833   echo "$ac_t""yes" 1>&6
7834     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7835   cat >> confdefs.h <<EOF
7836 #define $ac_tr_func 1
7837 EOF
7838  
7839 else
7840   echo "$ac_t""no" 1>&6
7841 fi
7842 done
7843
7844   fi
7845
7846   
7847   
7848   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
7849 echo "configure:7850: checking for isnanf declaration" >&5
7850   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
7851     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
7852   echo $ac_n "(cached) $ac_c" 1>&6
7853 else
7854   
7855       
7856       ac_ext=C
7857 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7858 ac_cpp='$CXXCPP $CPPFLAGS'
7859 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7860 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7861 cross_compiling=$ac_cv_prog_cxx_cross
7862
7863       cat > conftest.$ac_ext <<EOF
7864 #line 7865 "configure"
7865 #include "confdefs.h"
7866 #include <math.h>
7867                       #ifdef HAVE_IEEEFP_H
7868                       #include <ieeefp.h>
7869                       #endif
7870                      
7871 int main() {
7872  isnanf(0);
7873 ; return 0; }
7874 EOF
7875 if { (eval echo configure:7876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7876   rm -rf conftest*
7877   glibcpp_cv_func_isnanf_use=yes
7878 else
7879   echo "configure: failed program was:" >&5
7880   cat conftest.$ac_ext >&5
7881   rm -rf conftest*
7882   glibcpp_cv_func_isnanf_use=no
7883 fi
7884 rm -f conftest*
7885       ac_ext=c
7886 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7887 ac_cpp='$CPP $CPPFLAGS'
7888 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7889 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7890 cross_compiling=$ac_cv_prog_cc_cross
7891
7892     
7893 fi
7894
7895   fi
7896   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
7897
7898   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
7899     for ac_func in isnanf
7900 do
7901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7902 echo "configure:7903: checking for $ac_func" >&5
7903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7904   echo $ac_n "(cached) $ac_c" 1>&6
7905 else
7906   cat > conftest.$ac_ext <<EOF
7907 #line 7908 "configure"
7908 #include "confdefs.h"
7909 /* System header to define __stub macros and hopefully few prototypes,
7910     which can conflict with char $ac_func(); below.  */
7911 #include <assert.h>
7912 /* Override any gcc2 internal prototype to avoid an error.  */
7913 /* We use char because int might match the return type of a gcc2
7914     builtin and then its argument prototype would still apply.  */
7915 char $ac_func();
7916
7917 int main() {
7918
7919 /* The GNU C library defines this for functions which it implements
7920     to always fail with ENOSYS.  Some functions are actually named
7921     something starting with __ and the normal name is an alias.  */
7922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7923 choke me
7924 #else
7925 $ac_func();
7926 #endif
7927
7928 ; return 0; }
7929 EOF
7930 if { (eval echo configure:7931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7931   rm -rf conftest*
7932   eval "ac_cv_func_$ac_func=yes"
7933 else
7934   echo "configure: failed program was:" >&5
7935   cat conftest.$ac_ext >&5
7936   rm -rf conftest*
7937   eval "ac_cv_func_$ac_func=no"
7938 fi
7939 rm -f conftest*
7940 fi
7941
7942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7943   echo "$ac_t""yes" 1>&6
7944     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7945   cat >> confdefs.h <<EOF
7946 #define $ac_tr_func 1
7947 EOF
7948  
7949 else
7950   echo "$ac_t""no" 1>&6
7951 fi
7952 done
7953     
7954   else
7955     
7956   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
7957 echo "configure:7958: checking for _isnanf declaration" >&5
7958   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
7959     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
7960   echo $ac_n "(cached) $ac_c" 1>&6
7961 else
7962   
7963       
7964       ac_ext=C
7965 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7966 ac_cpp='$CXXCPP $CPPFLAGS'
7967 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7968 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7969 cross_compiling=$ac_cv_prog_cxx_cross
7970
7971       cat > conftest.$ac_ext <<EOF
7972 #line 7973 "configure"
7973 #include "confdefs.h"
7974 #include <math.h>
7975                       #ifdef HAVE_IEEEFP_H
7976                       #include <ieeefp.h>
7977                       #endif
7978                      
7979 int main() {
7980  _isnanf(0);
7981 ; return 0; }
7982 EOF
7983 if { (eval echo configure:7984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7984   rm -rf conftest*
7985   glibcpp_cv_func__isnanf_use=yes
7986 else
7987   echo "configure: failed program was:" >&5
7988   cat conftest.$ac_ext >&5
7989   rm -rf conftest*
7990   glibcpp_cv_func__isnanf_use=no
7991 fi
7992 rm -f conftest*
7993       ac_ext=c
7994 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7995 ac_cpp='$CPP $CPPFLAGS'
7996 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7997 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7998 cross_compiling=$ac_cv_prog_cc_cross
7999
8000     
8001 fi
8002
8003   fi
8004   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8005
8006     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8007       for ac_func in _isnanf
8008 do
8009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8010 echo "configure:8011: checking for $ac_func" >&5
8011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8012   echo $ac_n "(cached) $ac_c" 1>&6
8013 else
8014   cat > conftest.$ac_ext <<EOF
8015 #line 8016 "configure"
8016 #include "confdefs.h"
8017 /* System header to define __stub macros and hopefully few prototypes,
8018     which can conflict with char $ac_func(); below.  */
8019 #include <assert.h>
8020 /* Override any gcc2 internal prototype to avoid an error.  */
8021 /* We use char because int might match the return type of a gcc2
8022     builtin and then its argument prototype would still apply.  */
8023 char $ac_func();
8024
8025 int main() {
8026
8027 /* The GNU C library defines this for functions which it implements
8028     to always fail with ENOSYS.  Some functions are actually named
8029     something starting with __ and the normal name is an alias.  */
8030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8031 choke me
8032 #else
8033 $ac_func();
8034 #endif
8035
8036 ; return 0; }
8037 EOF
8038 if { (eval echo configure:8039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8039   rm -rf conftest*
8040   eval "ac_cv_func_$ac_func=yes"
8041 else
8042   echo "configure: failed program was:" >&5
8043   cat conftest.$ac_ext >&5
8044   rm -rf conftest*
8045   eval "ac_cv_func_$ac_func=no"
8046 fi
8047 rm -f conftest*
8048 fi
8049
8050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8051   echo "$ac_t""yes" 1>&6
8052     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8053   cat >> confdefs.h <<EOF
8054 #define $ac_tr_func 1
8055 EOF
8056  
8057 else
8058   echo "$ac_t""no" 1>&6
8059 fi
8060 done
8061     
8062     fi  
8063   fi
8064
8065   
8066   
8067   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8068 echo "configure:8069: checking for isinff declaration" >&5
8069   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8070     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8071   echo $ac_n "(cached) $ac_c" 1>&6
8072 else
8073   
8074       
8075       ac_ext=C
8076 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8077 ac_cpp='$CXXCPP $CPPFLAGS'
8078 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8079 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8080 cross_compiling=$ac_cv_prog_cxx_cross
8081
8082       cat > conftest.$ac_ext <<EOF
8083 #line 8084 "configure"
8084 #include "confdefs.h"
8085 #include <math.h>
8086                       #ifdef HAVE_IEEEFP_H
8087                       #include <ieeefp.h>
8088                       #endif
8089                      
8090 int main() {
8091  isinff(0);
8092 ; return 0; }
8093 EOF
8094 if { (eval echo configure:8095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8095   rm -rf conftest*
8096   glibcpp_cv_func_isinff_use=yes
8097 else
8098   echo "configure: failed program was:" >&5
8099   cat conftest.$ac_ext >&5
8100   rm -rf conftest*
8101   glibcpp_cv_func_isinff_use=no
8102 fi
8103 rm -f conftest*
8104       ac_ext=c
8105 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8106 ac_cpp='$CPP $CPPFLAGS'
8107 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8108 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8109 cross_compiling=$ac_cv_prog_cc_cross
8110
8111     
8112 fi
8113
8114   fi
8115   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8116
8117   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8118     for ac_func in isinff
8119 do
8120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8121 echo "configure:8122: checking for $ac_func" >&5
8122 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8123   echo $ac_n "(cached) $ac_c" 1>&6
8124 else
8125   cat > conftest.$ac_ext <<EOF
8126 #line 8127 "configure"
8127 #include "confdefs.h"
8128 /* System header to define __stub macros and hopefully few prototypes,
8129     which can conflict with char $ac_func(); below.  */
8130 #include <assert.h>
8131 /* Override any gcc2 internal prototype to avoid an error.  */
8132 /* We use char because int might match the return type of a gcc2
8133     builtin and then its argument prototype would still apply.  */
8134 char $ac_func();
8135
8136 int main() {
8137
8138 /* The GNU C library defines this for functions which it implements
8139     to always fail with ENOSYS.  Some functions are actually named
8140     something starting with __ and the normal name is an alias.  */
8141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8142 choke me
8143 #else
8144 $ac_func();
8145 #endif
8146
8147 ; return 0; }
8148 EOF
8149 if { (eval echo configure:8150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8150   rm -rf conftest*
8151   eval "ac_cv_func_$ac_func=yes"
8152 else
8153   echo "configure: failed program was:" >&5
8154   cat conftest.$ac_ext >&5
8155   rm -rf conftest*
8156   eval "ac_cv_func_$ac_func=no"
8157 fi
8158 rm -f conftest*
8159 fi
8160
8161 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8162   echo "$ac_t""yes" 1>&6
8163     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8164   cat >> confdefs.h <<EOF
8165 #define $ac_tr_func 1
8166 EOF
8167  
8168 else
8169   echo "$ac_t""no" 1>&6
8170 fi
8171 done
8172     
8173   else
8174     
8175   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8176 echo "configure:8177: checking for _isinff declaration" >&5
8177   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8178     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8179   echo $ac_n "(cached) $ac_c" 1>&6
8180 else
8181   
8182       
8183       ac_ext=C
8184 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8185 ac_cpp='$CXXCPP $CPPFLAGS'
8186 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8187 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8188 cross_compiling=$ac_cv_prog_cxx_cross
8189
8190       cat > conftest.$ac_ext <<EOF
8191 #line 8192 "configure"
8192 #include "confdefs.h"
8193 #include <math.h>
8194                       #ifdef HAVE_IEEEFP_H
8195                       #include <ieeefp.h>
8196                       #endif
8197                      
8198 int main() {
8199  _isinff(0);
8200 ; return 0; }
8201 EOF
8202 if { (eval echo configure:8203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8203   rm -rf conftest*
8204   glibcpp_cv_func__isinff_use=yes
8205 else
8206   echo "configure: failed program was:" >&5
8207   cat conftest.$ac_ext >&5
8208   rm -rf conftest*
8209   glibcpp_cv_func__isinff_use=no
8210 fi
8211 rm -f conftest*
8212       ac_ext=c
8213 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8214 ac_cpp='$CPP $CPPFLAGS'
8215 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8216 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8217 cross_compiling=$ac_cv_prog_cc_cross
8218
8219     
8220 fi
8221
8222   fi
8223   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8224
8225     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8226       for ac_func in _isinff
8227 do
8228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8229 echo "configure:8230: checking for $ac_func" >&5
8230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8231   echo $ac_n "(cached) $ac_c" 1>&6
8232 else
8233   cat > conftest.$ac_ext <<EOF
8234 #line 8235 "configure"
8235 #include "confdefs.h"
8236 /* System header to define __stub macros and hopefully few prototypes,
8237     which can conflict with char $ac_func(); below.  */
8238 #include <assert.h>
8239 /* Override any gcc2 internal prototype to avoid an error.  */
8240 /* We use char because int might match the return type of a gcc2
8241     builtin and then its argument prototype would still apply.  */
8242 char $ac_func();
8243
8244 int main() {
8245
8246 /* The GNU C library defines this for functions which it implements
8247     to always fail with ENOSYS.  Some functions are actually named
8248     something starting with __ and the normal name is an alias.  */
8249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8250 choke me
8251 #else
8252 $ac_func();
8253 #endif
8254
8255 ; return 0; }
8256 EOF
8257 if { (eval echo configure:8258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8258   rm -rf conftest*
8259   eval "ac_cv_func_$ac_func=yes"
8260 else
8261   echo "configure: failed program was:" >&5
8262   cat conftest.$ac_ext >&5
8263   rm -rf conftest*
8264   eval "ac_cv_func_$ac_func=no"
8265 fi
8266 rm -f conftest*
8267 fi
8268
8269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8270   echo "$ac_t""yes" 1>&6
8271     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8272   cat >> confdefs.h <<EOF
8273 #define $ac_tr_func 1
8274 EOF
8275  
8276 else
8277   echo "$ac_t""no" 1>&6
8278 fi
8279 done
8280     
8281     fi  
8282   fi
8283
8284   
8285   
8286   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8287 echo "configure:8288: checking for fabsf declaration" >&5
8288   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8289     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8290   echo $ac_n "(cached) $ac_c" 1>&6
8291 else
8292   
8293       
8294       ac_ext=C
8295 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8296 ac_cpp='$CXXCPP $CPPFLAGS'
8297 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8298 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8299 cross_compiling=$ac_cv_prog_cxx_cross
8300
8301       cat > conftest.$ac_ext <<EOF
8302 #line 8303 "configure"
8303 #include "confdefs.h"
8304 #include <math.h>
8305                       #ifdef HAVE_IEEEFP_H
8306                       #include <ieeefp.h>
8307                       #endif
8308                      
8309 int main() {
8310  fabsf(0);
8311 ; return 0; }
8312 EOF
8313 if { (eval echo configure:8314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8314   rm -rf conftest*
8315   glibcpp_cv_func_fabsf_use=yes
8316 else
8317   echo "configure: failed program was:" >&5
8318   cat conftest.$ac_ext >&5
8319   rm -rf conftest*
8320   glibcpp_cv_func_fabsf_use=no
8321 fi
8322 rm -f conftest*
8323       ac_ext=c
8324 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8325 ac_cpp='$CPP $CPPFLAGS'
8326 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8327 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8328 cross_compiling=$ac_cv_prog_cc_cross
8329
8330     
8331 fi
8332
8333   fi
8334   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8335
8336   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8337     for ac_func in fabsf
8338 do
8339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8340 echo "configure:8341: checking for $ac_func" >&5
8341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8342   echo $ac_n "(cached) $ac_c" 1>&6
8343 else
8344   cat > conftest.$ac_ext <<EOF
8345 #line 8346 "configure"
8346 #include "confdefs.h"
8347 /* System header to define __stub macros and hopefully few prototypes,
8348     which can conflict with char $ac_func(); below.  */
8349 #include <assert.h>
8350 /* Override any gcc2 internal prototype to avoid an error.  */
8351 /* We use char because int might match the return type of a gcc2
8352     builtin and then its argument prototype would still apply.  */
8353 char $ac_func();
8354
8355 int main() {
8356
8357 /* The GNU C library defines this for functions which it implements
8358     to always fail with ENOSYS.  Some functions are actually named
8359     something starting with __ and the normal name is an alias.  */
8360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8361 choke me
8362 #else
8363 $ac_func();
8364 #endif
8365
8366 ; return 0; }
8367 EOF
8368 if { (eval echo configure:8369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8369   rm -rf conftest*
8370   eval "ac_cv_func_$ac_func=yes"
8371 else
8372   echo "configure: failed program was:" >&5
8373   cat conftest.$ac_ext >&5
8374   rm -rf conftest*
8375   eval "ac_cv_func_$ac_func=no"
8376 fi
8377 rm -f conftest*
8378 fi
8379
8380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8381   echo "$ac_t""yes" 1>&6
8382     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8383   cat >> confdefs.h <<EOF
8384 #define $ac_tr_func 1
8385 EOF
8386  
8387 else
8388   echo "$ac_t""no" 1>&6
8389 fi
8390 done
8391     
8392   else
8393     
8394   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
8395 echo "configure:8396: checking for _fabsf declaration" >&5
8396   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
8397     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
8398   echo $ac_n "(cached) $ac_c" 1>&6
8399 else
8400   
8401       
8402       ac_ext=C
8403 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8404 ac_cpp='$CXXCPP $CPPFLAGS'
8405 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8406 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8407 cross_compiling=$ac_cv_prog_cxx_cross
8408
8409       cat > conftest.$ac_ext <<EOF
8410 #line 8411 "configure"
8411 #include "confdefs.h"
8412 #include <math.h>
8413                       #ifdef HAVE_IEEEFP_H
8414                       #include <ieeefp.h>
8415                       #endif
8416                      
8417 int main() {
8418  _fabsf(0);
8419 ; return 0; }
8420 EOF
8421 if { (eval echo configure:8422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8422   rm -rf conftest*
8423   glibcpp_cv_func__fabsf_use=yes
8424 else
8425   echo "configure: failed program was:" >&5
8426   cat conftest.$ac_ext >&5
8427   rm -rf conftest*
8428   glibcpp_cv_func__fabsf_use=no
8429 fi
8430 rm -f conftest*
8431       ac_ext=c
8432 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8433 ac_cpp='$CPP $CPPFLAGS'
8434 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8435 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8436 cross_compiling=$ac_cv_prog_cc_cross
8437
8438     
8439 fi
8440
8441   fi
8442   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
8443
8444     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
8445       for ac_func in _fabsf
8446 do
8447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8448 echo "configure:8449: checking for $ac_func" >&5
8449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8450   echo $ac_n "(cached) $ac_c" 1>&6
8451 else
8452   cat > conftest.$ac_ext <<EOF
8453 #line 8454 "configure"
8454 #include "confdefs.h"
8455 /* System header to define __stub macros and hopefully few prototypes,
8456     which can conflict with char $ac_func(); below.  */
8457 #include <assert.h>
8458 /* Override any gcc2 internal prototype to avoid an error.  */
8459 /* We use char because int might match the return type of a gcc2
8460     builtin and then its argument prototype would still apply.  */
8461 char $ac_func();
8462
8463 int main() {
8464
8465 /* The GNU C library defines this for functions which it implements
8466     to always fail with ENOSYS.  Some functions are actually named
8467     something starting with __ and the normal name is an alias.  */
8468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8469 choke me
8470 #else
8471 $ac_func();
8472 #endif
8473
8474 ; return 0; }
8475 EOF
8476 if { (eval echo configure:8477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8477   rm -rf conftest*
8478   eval "ac_cv_func_$ac_func=yes"
8479 else
8480   echo "configure: failed program was:" >&5
8481   cat conftest.$ac_ext >&5
8482   rm -rf conftest*
8483   eval "ac_cv_func_$ac_func=no"
8484 fi
8485 rm -f conftest*
8486 fi
8487
8488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8489   echo "$ac_t""yes" 1>&6
8490     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8491   cat >> confdefs.h <<EOF
8492 #define $ac_tr_func 1
8493 EOF
8494  
8495 else
8496   echo "$ac_t""no" 1>&6
8497 fi
8498 done
8499     
8500     fi  
8501   fi
8502
8503   
8504   
8505   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
8506 echo "configure:8507: checking for fmodf declaration" >&5
8507   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
8508     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_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 int main() {
8525  fmodf(0, 0);
8526 ; return 0; }
8527 EOF
8528 if { (eval echo configure:8529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8529   rm -rf conftest*
8530   glibcpp_cv_func_fmodf_use=yes
8531 else
8532   echo "configure: failed program was:" >&5
8533   cat conftest.$ac_ext >&5
8534   rm -rf conftest*
8535   glibcpp_cv_func_fmodf_use=no
8536 fi
8537 rm -f conftest*
8538       ac_ext=c
8539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8540 ac_cpp='$CPP $CPPFLAGS'
8541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8543 cross_compiling=$ac_cv_prog_cc_cross
8544
8545     
8546 fi
8547
8548   fi
8549   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
8550
8551   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
8552     for ac_func in fmodf
8553 do
8554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8555 echo "configure:8556: checking for $ac_func" >&5
8556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8557   echo $ac_n "(cached) $ac_c" 1>&6
8558 else
8559   cat > conftest.$ac_ext <<EOF
8560 #line 8561 "configure"
8561 #include "confdefs.h"
8562 /* System header to define __stub macros and hopefully few prototypes,
8563     which can conflict with char $ac_func(); below.  */
8564 #include <assert.h>
8565 /* Override any gcc2 internal prototype to avoid an error.  */
8566 /* We use char because int might match the return type of a gcc2
8567     builtin and then its argument prototype would still apply.  */
8568 char $ac_func();
8569
8570 int main() {
8571
8572 /* The GNU C library defines this for functions which it implements
8573     to always fail with ENOSYS.  Some functions are actually named
8574     something starting with __ and the normal name is an alias.  */
8575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8576 choke me
8577 #else
8578 $ac_func();
8579 #endif
8580
8581 ; return 0; }
8582 EOF
8583 if { (eval echo configure:8584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8584   rm -rf conftest*
8585   eval "ac_cv_func_$ac_func=yes"
8586 else
8587   echo "configure: failed program was:" >&5
8588   cat conftest.$ac_ext >&5
8589   rm -rf conftest*
8590   eval "ac_cv_func_$ac_func=no"
8591 fi
8592 rm -f conftest*
8593 fi
8594
8595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8596   echo "$ac_t""yes" 1>&6
8597     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8598   cat >> confdefs.h <<EOF
8599 #define $ac_tr_func 1
8600 EOF
8601  
8602 else
8603   echo "$ac_t""no" 1>&6
8604 fi
8605 done
8606     
8607   else
8608     
8609   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
8610 echo "configure:8611: checking for _fmodf declaration" >&5
8611   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
8612     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
8613   echo $ac_n "(cached) $ac_c" 1>&6
8614 else
8615   
8616       
8617       ac_ext=C
8618 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8619 ac_cpp='$CXXCPP $CPPFLAGS'
8620 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8621 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8622 cross_compiling=$ac_cv_prog_cxx_cross
8623
8624       cat > conftest.$ac_ext <<EOF
8625 #line 8626 "configure"
8626 #include "confdefs.h"
8627 #include <math.h>
8628 int main() {
8629  _fmodf(0, 0);
8630 ; return 0; }
8631 EOF
8632 if { (eval echo configure:8633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8633   rm -rf conftest*
8634   glibcpp_cv_func__fmodf_use=yes
8635 else
8636   echo "configure: failed program was:" >&5
8637   cat conftest.$ac_ext >&5
8638   rm -rf conftest*
8639   glibcpp_cv_func__fmodf_use=no
8640 fi
8641 rm -f conftest*
8642       ac_ext=c
8643 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8644 ac_cpp='$CPP $CPPFLAGS'
8645 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8646 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8647 cross_compiling=$ac_cv_prog_cc_cross
8648
8649     
8650 fi
8651
8652   fi
8653   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
8654
8655     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
8656       for ac_func in _fmodf
8657 do
8658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8659 echo "configure:8660: checking for $ac_func" >&5
8660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8661   echo $ac_n "(cached) $ac_c" 1>&6
8662 else
8663   cat > conftest.$ac_ext <<EOF
8664 #line 8665 "configure"
8665 #include "confdefs.h"
8666 /* System header to define __stub macros and hopefully few prototypes,
8667     which can conflict with char $ac_func(); below.  */
8668 #include <assert.h>
8669 /* Override any gcc2 internal prototype to avoid an error.  */
8670 /* We use char because int might match the return type of a gcc2
8671     builtin and then its argument prototype would still apply.  */
8672 char $ac_func();
8673
8674 int main() {
8675
8676 /* The GNU C library defines this for functions which it implements
8677     to always fail with ENOSYS.  Some functions are actually named
8678     something starting with __ and the normal name is an alias.  */
8679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8680 choke me
8681 #else
8682 $ac_func();
8683 #endif
8684
8685 ; return 0; }
8686 EOF
8687 if { (eval echo configure:8688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8688   rm -rf conftest*
8689   eval "ac_cv_func_$ac_func=yes"
8690 else
8691   echo "configure: failed program was:" >&5
8692   cat conftest.$ac_ext >&5
8693   rm -rf conftest*
8694   eval "ac_cv_func_$ac_func=no"
8695 fi
8696 rm -f conftest*
8697 fi
8698
8699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8700   echo "$ac_t""yes" 1>&6
8701     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8702   cat >> confdefs.h <<EOF
8703 #define $ac_tr_func 1
8704 EOF
8705  
8706 else
8707   echo "$ac_t""no" 1>&6
8708 fi
8709 done
8710     
8711     fi  
8712   fi
8713
8714   
8715   
8716   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
8717 echo "configure:8718: checking for frexpf declaration" >&5
8718   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
8719     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
8720   echo $ac_n "(cached) $ac_c" 1>&6
8721 else
8722   
8723       
8724       ac_ext=C
8725 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8726 ac_cpp='$CXXCPP $CPPFLAGS'
8727 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8728 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8729 cross_compiling=$ac_cv_prog_cxx_cross
8730
8731       cat > conftest.$ac_ext <<EOF
8732 #line 8733 "configure"
8733 #include "confdefs.h"
8734 #include <math.h>
8735 int main() {
8736  frexpf(0, 0);
8737 ; return 0; }
8738 EOF
8739 if { (eval echo configure:8740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8740   rm -rf conftest*
8741   glibcpp_cv_func_frexpf_use=yes
8742 else
8743   echo "configure: failed program was:" >&5
8744   cat conftest.$ac_ext >&5
8745   rm -rf conftest*
8746   glibcpp_cv_func_frexpf_use=no
8747 fi
8748 rm -f conftest*
8749       ac_ext=c
8750 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8751 ac_cpp='$CPP $CPPFLAGS'
8752 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8753 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8754 cross_compiling=$ac_cv_prog_cc_cross
8755
8756     
8757 fi
8758
8759   fi
8760   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
8761
8762   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
8763     for ac_func in frexpf
8764 do
8765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8766 echo "configure:8767: checking for $ac_func" >&5
8767 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8768   echo $ac_n "(cached) $ac_c" 1>&6
8769 else
8770   cat > conftest.$ac_ext <<EOF
8771 #line 8772 "configure"
8772 #include "confdefs.h"
8773 /* System header to define __stub macros and hopefully few prototypes,
8774     which can conflict with char $ac_func(); below.  */
8775 #include <assert.h>
8776 /* Override any gcc2 internal prototype to avoid an error.  */
8777 /* We use char because int might match the return type of a gcc2
8778     builtin and then its argument prototype would still apply.  */
8779 char $ac_func();
8780
8781 int main() {
8782
8783 /* The GNU C library defines this for functions which it implements
8784     to always fail with ENOSYS.  Some functions are actually named
8785     something starting with __ and the normal name is an alias.  */
8786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8787 choke me
8788 #else
8789 $ac_func();
8790 #endif
8791
8792 ; return 0; }
8793 EOF
8794 if { (eval echo configure:8795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8795   rm -rf conftest*
8796   eval "ac_cv_func_$ac_func=yes"
8797 else
8798   echo "configure: failed program was:" >&5
8799   cat conftest.$ac_ext >&5
8800   rm -rf conftest*
8801   eval "ac_cv_func_$ac_func=no"
8802 fi
8803 rm -f conftest*
8804 fi
8805
8806 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8807   echo "$ac_t""yes" 1>&6
8808     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8809   cat >> confdefs.h <<EOF
8810 #define $ac_tr_func 1
8811 EOF
8812  
8813 else
8814   echo "$ac_t""no" 1>&6
8815 fi
8816 done
8817     
8818   else
8819     
8820   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
8821 echo "configure:8822: checking for _frexpf declaration" >&5
8822   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
8823     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
8824   echo $ac_n "(cached) $ac_c" 1>&6
8825 else
8826   
8827       
8828       ac_ext=C
8829 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8830 ac_cpp='$CXXCPP $CPPFLAGS'
8831 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8832 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8833 cross_compiling=$ac_cv_prog_cxx_cross
8834
8835       cat > conftest.$ac_ext <<EOF
8836 #line 8837 "configure"
8837 #include "confdefs.h"
8838 #include <math.h>
8839 int main() {
8840  _frexpf(0, 0);
8841 ; return 0; }
8842 EOF
8843 if { (eval echo configure:8844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8844   rm -rf conftest*
8845   glibcpp_cv_func__frexpf_use=yes
8846 else
8847   echo "configure: failed program was:" >&5
8848   cat conftest.$ac_ext >&5
8849   rm -rf conftest*
8850   glibcpp_cv_func__frexpf_use=no
8851 fi
8852 rm -f conftest*
8853       ac_ext=c
8854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8855 ac_cpp='$CPP $CPPFLAGS'
8856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8858 cross_compiling=$ac_cv_prog_cc_cross
8859
8860     
8861 fi
8862
8863   fi
8864   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
8865
8866     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
8867       for ac_func in _frexpf
8868 do
8869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8870 echo "configure:8871: checking for $ac_func" >&5
8871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8872   echo $ac_n "(cached) $ac_c" 1>&6
8873 else
8874   cat > conftest.$ac_ext <<EOF
8875 #line 8876 "configure"
8876 #include "confdefs.h"
8877 /* System header to define __stub macros and hopefully few prototypes,
8878     which can conflict with char $ac_func(); below.  */
8879 #include <assert.h>
8880 /* Override any gcc2 internal prototype to avoid an error.  */
8881 /* We use char because int might match the return type of a gcc2
8882     builtin and then its argument prototype would still apply.  */
8883 char $ac_func();
8884
8885 int main() {
8886
8887 /* The GNU C library defines this for functions which it implements
8888     to always fail with ENOSYS.  Some functions are actually named
8889     something starting with __ and the normal name is an alias.  */
8890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8891 choke me
8892 #else
8893 $ac_func();
8894 #endif
8895
8896 ; return 0; }
8897 EOF
8898 if { (eval echo configure:8899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8899   rm -rf conftest*
8900   eval "ac_cv_func_$ac_func=yes"
8901 else
8902   echo "configure: failed program was:" >&5
8903   cat conftest.$ac_ext >&5
8904   rm -rf conftest*
8905   eval "ac_cv_func_$ac_func=no"
8906 fi
8907 rm -f conftest*
8908 fi
8909
8910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8911   echo "$ac_t""yes" 1>&6
8912     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8913   cat >> confdefs.h <<EOF
8914 #define $ac_tr_func 1
8915 EOF
8916  
8917 else
8918   echo "$ac_t""no" 1>&6
8919 fi
8920 done
8921     
8922     fi  
8923   fi
8924
8925   
8926   
8927   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
8928 echo "configure:8929: checking for ldexpf declaration" >&5
8929   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
8930     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
8931   echo $ac_n "(cached) $ac_c" 1>&6
8932 else
8933   
8934       
8935       ac_ext=C
8936 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8937 ac_cpp='$CXXCPP $CPPFLAGS'
8938 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8939 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8940 cross_compiling=$ac_cv_prog_cxx_cross
8941
8942       cat > conftest.$ac_ext <<EOF
8943 #line 8944 "configure"
8944 #include "confdefs.h"
8945 #include <math.h>
8946 int main() {
8947  ldexpf(0, 0);
8948 ; return 0; }
8949 EOF
8950 if { (eval echo configure:8951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8951   rm -rf conftest*
8952   glibcpp_cv_func_ldexpf_use=yes
8953 else
8954   echo "configure: failed program was:" >&5
8955   cat conftest.$ac_ext >&5
8956   rm -rf conftest*
8957   glibcpp_cv_func_ldexpf_use=no
8958 fi
8959 rm -f conftest*
8960       ac_ext=c
8961 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8962 ac_cpp='$CPP $CPPFLAGS'
8963 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8964 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8965 cross_compiling=$ac_cv_prog_cc_cross
8966
8967     
8968 fi
8969
8970   fi
8971   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
8972
8973   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
8974     for ac_func in ldexpf
8975 do
8976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8977 echo "configure:8978: checking for $ac_func" >&5
8978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8979   echo $ac_n "(cached) $ac_c" 1>&6
8980 else
8981   cat > conftest.$ac_ext <<EOF
8982 #line 8983 "configure"
8983 #include "confdefs.h"
8984 /* System header to define __stub macros and hopefully few prototypes,
8985     which can conflict with char $ac_func(); below.  */
8986 #include <assert.h>
8987 /* Override any gcc2 internal prototype to avoid an error.  */
8988 /* We use char because int might match the return type of a gcc2
8989     builtin and then its argument prototype would still apply.  */
8990 char $ac_func();
8991
8992 int main() {
8993
8994 /* The GNU C library defines this for functions which it implements
8995     to always fail with ENOSYS.  Some functions are actually named
8996     something starting with __ and the normal name is an alias.  */
8997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8998 choke me
8999 #else
9000 $ac_func();
9001 #endif
9002
9003 ; return 0; }
9004 EOF
9005 if { (eval echo configure:9006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9006   rm -rf conftest*
9007   eval "ac_cv_func_$ac_func=yes"
9008 else
9009   echo "configure: failed program was:" >&5
9010   cat conftest.$ac_ext >&5
9011   rm -rf conftest*
9012   eval "ac_cv_func_$ac_func=no"
9013 fi
9014 rm -f conftest*
9015 fi
9016
9017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9018   echo "$ac_t""yes" 1>&6
9019     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9020   cat >> confdefs.h <<EOF
9021 #define $ac_tr_func 1
9022 EOF
9023  
9024 else
9025   echo "$ac_t""no" 1>&6
9026 fi
9027 done
9028     
9029   else
9030     
9031   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
9032 echo "configure:9033: checking for _ldexpf declaration" >&5
9033   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
9034     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
9035   echo $ac_n "(cached) $ac_c" 1>&6
9036 else
9037   
9038       
9039       ac_ext=C
9040 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9041 ac_cpp='$CXXCPP $CPPFLAGS'
9042 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9043 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9044 cross_compiling=$ac_cv_prog_cxx_cross
9045
9046       cat > conftest.$ac_ext <<EOF
9047 #line 9048 "configure"
9048 #include "confdefs.h"
9049 #include <math.h>
9050 int main() {
9051  _ldexpf(0, 0);
9052 ; return 0; }
9053 EOF
9054 if { (eval echo configure:9055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9055   rm -rf conftest*
9056   glibcpp_cv_func__ldexpf_use=yes
9057 else
9058   echo "configure: failed program was:" >&5
9059   cat conftest.$ac_ext >&5
9060   rm -rf conftest*
9061   glibcpp_cv_func__ldexpf_use=no
9062 fi
9063 rm -f conftest*
9064       ac_ext=c
9065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9066 ac_cpp='$CPP $CPPFLAGS'
9067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9069 cross_compiling=$ac_cv_prog_cc_cross
9070
9071     
9072 fi
9073
9074   fi
9075   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
9076
9077     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
9078       for ac_func in _ldexpf
9079 do
9080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9081 echo "configure:9082: checking for $ac_func" >&5
9082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9083   echo $ac_n "(cached) $ac_c" 1>&6
9084 else
9085   cat > conftest.$ac_ext <<EOF
9086 #line 9087 "configure"
9087 #include "confdefs.h"
9088 /* System header to define __stub macros and hopefully few prototypes,
9089     which can conflict with char $ac_func(); below.  */
9090 #include <assert.h>
9091 /* Override any gcc2 internal prototype to avoid an error.  */
9092 /* We use char because int might match the return type of a gcc2
9093     builtin and then its argument prototype would still apply.  */
9094 char $ac_func();
9095
9096 int main() {
9097
9098 /* The GNU C library defines this for functions which it implements
9099     to always fail with ENOSYS.  Some functions are actually named
9100     something starting with __ and the normal name is an alias.  */
9101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9102 choke me
9103 #else
9104 $ac_func();
9105 #endif
9106
9107 ; return 0; }
9108 EOF
9109 if { (eval echo configure:9110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9110   rm -rf conftest*
9111   eval "ac_cv_func_$ac_func=yes"
9112 else
9113   echo "configure: failed program was:" >&5
9114   cat conftest.$ac_ext >&5
9115   rm -rf conftest*
9116   eval "ac_cv_func_$ac_func=no"
9117 fi
9118 rm -f conftest*
9119 fi
9120
9121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9122   echo "$ac_t""yes" 1>&6
9123     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9124   cat >> confdefs.h <<EOF
9125 #define $ac_tr_func 1
9126 EOF
9127  
9128 else
9129   echo "$ac_t""no" 1>&6
9130 fi
9131 done
9132     
9133     fi  
9134   fi
9135
9136   
9137   
9138   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
9139 echo "configure:9140: checking for logf declaration" >&5
9140   if test x${glibcpp_cv_func_logf_use+set} != xset; then
9141     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
9142   echo $ac_n "(cached) $ac_c" 1>&6
9143 else
9144   
9145       
9146       ac_ext=C
9147 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9148 ac_cpp='$CXXCPP $CPPFLAGS'
9149 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9150 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9151 cross_compiling=$ac_cv_prog_cxx_cross
9152
9153       cat > conftest.$ac_ext <<EOF
9154 #line 9155 "configure"
9155 #include "confdefs.h"
9156 #include <math.h>
9157                       #ifdef HAVE_IEEEFP_H
9158                       #include <ieeefp.h>
9159                       #endif
9160                      
9161 int main() {
9162  logf(0);
9163 ; return 0; }
9164 EOF
9165 if { (eval echo configure:9166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9166   rm -rf conftest*
9167   glibcpp_cv_func_logf_use=yes
9168 else
9169   echo "configure: failed program was:" >&5
9170   cat conftest.$ac_ext >&5
9171   rm -rf conftest*
9172   glibcpp_cv_func_logf_use=no
9173 fi
9174 rm -f conftest*
9175       ac_ext=c
9176 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9177 ac_cpp='$CPP $CPPFLAGS'
9178 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9179 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9180 cross_compiling=$ac_cv_prog_cc_cross
9181
9182     
9183 fi
9184
9185   fi
9186   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
9187
9188   if test x$glibcpp_cv_func_logf_use = x"yes"; then
9189     for ac_func in logf
9190 do
9191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9192 echo "configure:9193: checking for $ac_func" >&5
9193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9194   echo $ac_n "(cached) $ac_c" 1>&6
9195 else
9196   cat > conftest.$ac_ext <<EOF
9197 #line 9198 "configure"
9198 #include "confdefs.h"
9199 /* System header to define __stub macros and hopefully few prototypes,
9200     which can conflict with char $ac_func(); below.  */
9201 #include <assert.h>
9202 /* Override any gcc2 internal prototype to avoid an error.  */
9203 /* We use char because int might match the return type of a gcc2
9204     builtin and then its argument prototype would still apply.  */
9205 char $ac_func();
9206
9207 int main() {
9208
9209 /* The GNU C library defines this for functions which it implements
9210     to always fail with ENOSYS.  Some functions are actually named
9211     something starting with __ and the normal name is an alias.  */
9212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9213 choke me
9214 #else
9215 $ac_func();
9216 #endif
9217
9218 ; return 0; }
9219 EOF
9220 if { (eval echo configure:9221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9221   rm -rf conftest*
9222   eval "ac_cv_func_$ac_func=yes"
9223 else
9224   echo "configure: failed program was:" >&5
9225   cat conftest.$ac_ext >&5
9226   rm -rf conftest*
9227   eval "ac_cv_func_$ac_func=no"
9228 fi
9229 rm -f conftest*
9230 fi
9231
9232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9233   echo "$ac_t""yes" 1>&6
9234     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9235   cat >> confdefs.h <<EOF
9236 #define $ac_tr_func 1
9237 EOF
9238  
9239 else
9240   echo "$ac_t""no" 1>&6
9241 fi
9242 done
9243     
9244   else
9245     
9246   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
9247 echo "configure:9248: checking for _logf declaration" >&5
9248   if test x${glibcpp_cv_func__logf_use+set} != xset; then
9249     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
9250   echo $ac_n "(cached) $ac_c" 1>&6
9251 else
9252   
9253       
9254       ac_ext=C
9255 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9256 ac_cpp='$CXXCPP $CPPFLAGS'
9257 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9258 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9259 cross_compiling=$ac_cv_prog_cxx_cross
9260
9261       cat > conftest.$ac_ext <<EOF
9262 #line 9263 "configure"
9263 #include "confdefs.h"
9264 #include <math.h>
9265                       #ifdef HAVE_IEEEFP_H
9266                       #include <ieeefp.h>
9267                       #endif
9268                      
9269 int main() {
9270  _logf(0);
9271 ; return 0; }
9272 EOF
9273 if { (eval echo configure:9274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9274   rm -rf conftest*
9275   glibcpp_cv_func__logf_use=yes
9276 else
9277   echo "configure: failed program was:" >&5
9278   cat conftest.$ac_ext >&5
9279   rm -rf conftest*
9280   glibcpp_cv_func__logf_use=no
9281 fi
9282 rm -f conftest*
9283       ac_ext=c
9284 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9285 ac_cpp='$CPP $CPPFLAGS'
9286 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9287 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9288 cross_compiling=$ac_cv_prog_cc_cross
9289
9290     
9291 fi
9292
9293   fi
9294   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
9295
9296     if test x$glibcpp_cv_func__logf_use = x"yes"; then
9297       for ac_func in _logf
9298 do
9299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9300 echo "configure:9301: checking for $ac_func" >&5
9301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9302   echo $ac_n "(cached) $ac_c" 1>&6
9303 else
9304   cat > conftest.$ac_ext <<EOF
9305 #line 9306 "configure"
9306 #include "confdefs.h"
9307 /* System header to define __stub macros and hopefully few prototypes,
9308     which can conflict with char $ac_func(); below.  */
9309 #include <assert.h>
9310 /* Override any gcc2 internal prototype to avoid an error.  */
9311 /* We use char because int might match the return type of a gcc2
9312     builtin and then its argument prototype would still apply.  */
9313 char $ac_func();
9314
9315 int main() {
9316
9317 /* The GNU C library defines this for functions which it implements
9318     to always fail with ENOSYS.  Some functions are actually named
9319     something starting with __ and the normal name is an alias.  */
9320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9321 choke me
9322 #else
9323 $ac_func();
9324 #endif
9325
9326 ; return 0; }
9327 EOF
9328 if { (eval echo configure:9329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9329   rm -rf conftest*
9330   eval "ac_cv_func_$ac_func=yes"
9331 else
9332   echo "configure: failed program was:" >&5
9333   cat conftest.$ac_ext >&5
9334   rm -rf conftest*
9335   eval "ac_cv_func_$ac_func=no"
9336 fi
9337 rm -f conftest*
9338 fi
9339
9340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9341   echo "$ac_t""yes" 1>&6
9342     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9343   cat >> confdefs.h <<EOF
9344 #define $ac_tr_func 1
9345 EOF
9346  
9347 else
9348   echo "$ac_t""no" 1>&6
9349 fi
9350 done
9351     
9352     fi  
9353   fi
9354
9355   
9356   
9357   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
9358 echo "configure:9359: checking for log10f declaration" >&5
9359   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
9360     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
9361   echo $ac_n "(cached) $ac_c" 1>&6
9362 else
9363   
9364       
9365       ac_ext=C
9366 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9367 ac_cpp='$CXXCPP $CPPFLAGS'
9368 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9369 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9370 cross_compiling=$ac_cv_prog_cxx_cross
9371
9372       cat > conftest.$ac_ext <<EOF
9373 #line 9374 "configure"
9374 #include "confdefs.h"
9375 #include <math.h>
9376                       #ifdef HAVE_IEEEFP_H
9377                       #include <ieeefp.h>
9378                       #endif
9379                      
9380 int main() {
9381  log10f(0);
9382 ; return 0; }
9383 EOF
9384 if { (eval echo configure:9385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9385   rm -rf conftest*
9386   glibcpp_cv_func_log10f_use=yes
9387 else
9388   echo "configure: failed program was:" >&5
9389   cat conftest.$ac_ext >&5
9390   rm -rf conftest*
9391   glibcpp_cv_func_log10f_use=no
9392 fi
9393 rm -f conftest*
9394       ac_ext=c
9395 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9396 ac_cpp='$CPP $CPPFLAGS'
9397 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9398 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9399 cross_compiling=$ac_cv_prog_cc_cross
9400
9401     
9402 fi
9403
9404   fi
9405   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
9406
9407   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
9408     for ac_func in log10f
9409 do
9410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9411 echo "configure:9412: checking for $ac_func" >&5
9412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9413   echo $ac_n "(cached) $ac_c" 1>&6
9414 else
9415   cat > conftest.$ac_ext <<EOF
9416 #line 9417 "configure"
9417 #include "confdefs.h"
9418 /* System header to define __stub macros and hopefully few prototypes,
9419     which can conflict with char $ac_func(); below.  */
9420 #include <assert.h>
9421 /* Override any gcc2 internal prototype to avoid an error.  */
9422 /* We use char because int might match the return type of a gcc2
9423     builtin and then its argument prototype would still apply.  */
9424 char $ac_func();
9425
9426 int main() {
9427
9428 /* The GNU C library defines this for functions which it implements
9429     to always fail with ENOSYS.  Some functions are actually named
9430     something starting with __ and the normal name is an alias.  */
9431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9432 choke me
9433 #else
9434 $ac_func();
9435 #endif
9436
9437 ; return 0; }
9438 EOF
9439 if { (eval echo configure:9440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9440   rm -rf conftest*
9441   eval "ac_cv_func_$ac_func=yes"
9442 else
9443   echo "configure: failed program was:" >&5
9444   cat conftest.$ac_ext >&5
9445   rm -rf conftest*
9446   eval "ac_cv_func_$ac_func=no"
9447 fi
9448 rm -f conftest*
9449 fi
9450
9451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9452   echo "$ac_t""yes" 1>&6
9453     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9454   cat >> confdefs.h <<EOF
9455 #define $ac_tr_func 1
9456 EOF
9457  
9458 else
9459   echo "$ac_t""no" 1>&6
9460 fi
9461 done
9462     
9463   else
9464     
9465   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
9466 echo "configure:9467: checking for _log10f declaration" >&5
9467   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
9468     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
9469   echo $ac_n "(cached) $ac_c" 1>&6
9470 else
9471   
9472       
9473       ac_ext=C
9474 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9475 ac_cpp='$CXXCPP $CPPFLAGS'
9476 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9477 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9478 cross_compiling=$ac_cv_prog_cxx_cross
9479
9480       cat > conftest.$ac_ext <<EOF
9481 #line 9482 "configure"
9482 #include "confdefs.h"
9483 #include <math.h>
9484                       #ifdef HAVE_IEEEFP_H
9485                       #include <ieeefp.h>
9486                       #endif
9487                      
9488 int main() {
9489  _log10f(0);
9490 ; return 0; }
9491 EOF
9492 if { (eval echo configure:9493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9493   rm -rf conftest*
9494   glibcpp_cv_func__log10f_use=yes
9495 else
9496   echo "configure: failed program was:" >&5
9497   cat conftest.$ac_ext >&5
9498   rm -rf conftest*
9499   glibcpp_cv_func__log10f_use=no
9500 fi
9501 rm -f conftest*
9502       ac_ext=c
9503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9504 ac_cpp='$CPP $CPPFLAGS'
9505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9507 cross_compiling=$ac_cv_prog_cc_cross
9508
9509     
9510 fi
9511
9512   fi
9513   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
9514
9515     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
9516       for ac_func in _log10f
9517 do
9518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9519 echo "configure:9520: checking for $ac_func" >&5
9520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9521   echo $ac_n "(cached) $ac_c" 1>&6
9522 else
9523   cat > conftest.$ac_ext <<EOF
9524 #line 9525 "configure"
9525 #include "confdefs.h"
9526 /* System header to define __stub macros and hopefully few prototypes,
9527     which can conflict with char $ac_func(); below.  */
9528 #include <assert.h>
9529 /* Override any gcc2 internal prototype to avoid an error.  */
9530 /* We use char because int might match the return type of a gcc2
9531     builtin and then its argument prototype would still apply.  */
9532 char $ac_func();
9533
9534 int main() {
9535
9536 /* The GNU C library defines this for functions which it implements
9537     to always fail with ENOSYS.  Some functions are actually named
9538     something starting with __ and the normal name is an alias.  */
9539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9540 choke me
9541 #else
9542 $ac_func();
9543 #endif
9544
9545 ; return 0; }
9546 EOF
9547 if { (eval echo configure:9548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9548   rm -rf conftest*
9549   eval "ac_cv_func_$ac_func=yes"
9550 else
9551   echo "configure: failed program was:" >&5
9552   cat conftest.$ac_ext >&5
9553   rm -rf conftest*
9554   eval "ac_cv_func_$ac_func=no"
9555 fi
9556 rm -f conftest*
9557 fi
9558
9559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9560   echo "$ac_t""yes" 1>&6
9561     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9562   cat >> confdefs.h <<EOF
9563 #define $ac_tr_func 1
9564 EOF
9565  
9566 else
9567   echo "$ac_t""no" 1>&6
9568 fi
9569 done
9570     
9571     fi  
9572   fi
9573
9574   
9575   
9576   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
9577 echo "configure:9578: checking for modff declaration" >&5
9578   if test x${glibcpp_cv_func_modff_use+set} != xset; then
9579     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
9580   echo $ac_n "(cached) $ac_c" 1>&6
9581 else
9582   
9583       
9584       ac_ext=C
9585 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9586 ac_cpp='$CXXCPP $CPPFLAGS'
9587 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9588 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9589 cross_compiling=$ac_cv_prog_cxx_cross
9590
9591       cat > conftest.$ac_ext <<EOF
9592 #line 9593 "configure"
9593 #include "confdefs.h"
9594 #include <math.h>
9595 int main() {
9596  modff(0, 0);
9597 ; return 0; }
9598 EOF
9599 if { (eval echo configure:9600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9600   rm -rf conftest*
9601   glibcpp_cv_func_modff_use=yes
9602 else
9603   echo "configure: failed program was:" >&5
9604   cat conftest.$ac_ext >&5
9605   rm -rf conftest*
9606   glibcpp_cv_func_modff_use=no
9607 fi
9608 rm -f conftest*
9609       ac_ext=c
9610 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9611 ac_cpp='$CPP $CPPFLAGS'
9612 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9613 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9614 cross_compiling=$ac_cv_prog_cc_cross
9615
9616     
9617 fi
9618
9619   fi
9620   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
9621
9622   if test x$glibcpp_cv_func_modff_use = x"yes"; then
9623     for ac_func in modff
9624 do
9625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9626 echo "configure:9627: checking for $ac_func" >&5
9627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9628   echo $ac_n "(cached) $ac_c" 1>&6
9629 else
9630   cat > conftest.$ac_ext <<EOF
9631 #line 9632 "configure"
9632 #include "confdefs.h"
9633 /* System header to define __stub macros and hopefully few prototypes,
9634     which can conflict with char $ac_func(); below.  */
9635 #include <assert.h>
9636 /* Override any gcc2 internal prototype to avoid an error.  */
9637 /* We use char because int might match the return type of a gcc2
9638     builtin and then its argument prototype would still apply.  */
9639 char $ac_func();
9640
9641 int main() {
9642
9643 /* The GNU C library defines this for functions which it implements
9644     to always fail with ENOSYS.  Some functions are actually named
9645     something starting with __ and the normal name is an alias.  */
9646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9647 choke me
9648 #else
9649 $ac_func();
9650 #endif
9651
9652 ; return 0; }
9653 EOF
9654 if { (eval echo configure:9655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9655   rm -rf conftest*
9656   eval "ac_cv_func_$ac_func=yes"
9657 else
9658   echo "configure: failed program was:" >&5
9659   cat conftest.$ac_ext >&5
9660   rm -rf conftest*
9661   eval "ac_cv_func_$ac_func=no"
9662 fi
9663 rm -f conftest*
9664 fi
9665
9666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9667   echo "$ac_t""yes" 1>&6
9668     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9669   cat >> confdefs.h <<EOF
9670 #define $ac_tr_func 1
9671 EOF
9672  
9673 else
9674   echo "$ac_t""no" 1>&6
9675 fi
9676 done
9677     
9678   else
9679     
9680   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
9681 echo "configure:9682: checking for _modff declaration" >&5
9682   if test x${glibcpp_cv_func__modff_use+set} != xset; then
9683     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
9684   echo $ac_n "(cached) $ac_c" 1>&6
9685 else
9686   
9687       
9688       ac_ext=C
9689 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9690 ac_cpp='$CXXCPP $CPPFLAGS'
9691 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9692 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9693 cross_compiling=$ac_cv_prog_cxx_cross
9694
9695       cat > conftest.$ac_ext <<EOF
9696 #line 9697 "configure"
9697 #include "confdefs.h"
9698 #include <math.h>
9699 int main() {
9700  _modff(0, 0);
9701 ; return 0; }
9702 EOF
9703 if { (eval echo configure:9704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9704   rm -rf conftest*
9705   glibcpp_cv_func__modff_use=yes
9706 else
9707   echo "configure: failed program was:" >&5
9708   cat conftest.$ac_ext >&5
9709   rm -rf conftest*
9710   glibcpp_cv_func__modff_use=no
9711 fi
9712 rm -f conftest*
9713       ac_ext=c
9714 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9715 ac_cpp='$CPP $CPPFLAGS'
9716 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9717 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9718 cross_compiling=$ac_cv_prog_cc_cross
9719
9720     
9721 fi
9722
9723   fi
9724   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
9725
9726     if test x$glibcpp_cv_func__modff_use = x"yes"; then
9727       for ac_func in _modff
9728 do
9729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9730 echo "configure:9731: checking for $ac_func" >&5
9731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9732   echo $ac_n "(cached) $ac_c" 1>&6
9733 else
9734   cat > conftest.$ac_ext <<EOF
9735 #line 9736 "configure"
9736 #include "confdefs.h"
9737 /* System header to define __stub macros and hopefully few prototypes,
9738     which can conflict with char $ac_func(); below.  */
9739 #include <assert.h>
9740 /* Override any gcc2 internal prototype to avoid an error.  */
9741 /* We use char because int might match the return type of a gcc2
9742     builtin and then its argument prototype would still apply.  */
9743 char $ac_func();
9744
9745 int main() {
9746
9747 /* The GNU C library defines this for functions which it implements
9748     to always fail with ENOSYS.  Some functions are actually named
9749     something starting with __ and the normal name is an alias.  */
9750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9751 choke me
9752 #else
9753 $ac_func();
9754 #endif
9755
9756 ; return 0; }
9757 EOF
9758 if { (eval echo configure:9759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9759   rm -rf conftest*
9760   eval "ac_cv_func_$ac_func=yes"
9761 else
9762   echo "configure: failed program was:" >&5
9763   cat conftest.$ac_ext >&5
9764   rm -rf conftest*
9765   eval "ac_cv_func_$ac_func=no"
9766 fi
9767 rm -f conftest*
9768 fi
9769
9770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9771   echo "$ac_t""yes" 1>&6
9772     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9773   cat >> confdefs.h <<EOF
9774 #define $ac_tr_func 1
9775 EOF
9776  
9777 else
9778   echo "$ac_t""no" 1>&6
9779 fi
9780 done
9781     
9782     fi  
9783   fi
9784
9785   
9786   
9787   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
9788 echo "configure:9789: checking for powf declaration" >&5
9789   if test x${glibcpp_cv_func_powf_use+set} != xset; then
9790     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
9791   echo $ac_n "(cached) $ac_c" 1>&6
9792 else
9793   
9794       
9795       ac_ext=C
9796 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9797 ac_cpp='$CXXCPP $CPPFLAGS'
9798 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9799 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9800 cross_compiling=$ac_cv_prog_cxx_cross
9801
9802       cat > conftest.$ac_ext <<EOF
9803 #line 9804 "configure"
9804 #include "confdefs.h"
9805 #include <math.h>
9806 int main() {
9807  powf(0, 0);
9808 ; return 0; }
9809 EOF
9810 if { (eval echo configure:9811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9811   rm -rf conftest*
9812   glibcpp_cv_func_powf_use=yes
9813 else
9814   echo "configure: failed program was:" >&5
9815   cat conftest.$ac_ext >&5
9816   rm -rf conftest*
9817   glibcpp_cv_func_powf_use=no
9818 fi
9819 rm -f conftest*
9820       ac_ext=c
9821 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9822 ac_cpp='$CPP $CPPFLAGS'
9823 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9824 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9825 cross_compiling=$ac_cv_prog_cc_cross
9826
9827     
9828 fi
9829
9830   fi
9831   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
9832
9833   if test x$glibcpp_cv_func_powf_use = x"yes"; then
9834     for ac_func in powf
9835 do
9836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9837 echo "configure:9838: checking for $ac_func" >&5
9838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9839   echo $ac_n "(cached) $ac_c" 1>&6
9840 else
9841   cat > conftest.$ac_ext <<EOF
9842 #line 9843 "configure"
9843 #include "confdefs.h"
9844 /* System header to define __stub macros and hopefully few prototypes,
9845     which can conflict with char $ac_func(); below.  */
9846 #include <assert.h>
9847 /* Override any gcc2 internal prototype to avoid an error.  */
9848 /* We use char because int might match the return type of a gcc2
9849     builtin and then its argument prototype would still apply.  */
9850 char $ac_func();
9851
9852 int main() {
9853
9854 /* The GNU C library defines this for functions which it implements
9855     to always fail with ENOSYS.  Some functions are actually named
9856     something starting with __ and the normal name is an alias.  */
9857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9858 choke me
9859 #else
9860 $ac_func();
9861 #endif
9862
9863 ; return 0; }
9864 EOF
9865 if { (eval echo configure:9866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9866   rm -rf conftest*
9867   eval "ac_cv_func_$ac_func=yes"
9868 else
9869   echo "configure: failed program was:" >&5
9870   cat conftest.$ac_ext >&5
9871   rm -rf conftest*
9872   eval "ac_cv_func_$ac_func=no"
9873 fi
9874 rm -f conftest*
9875 fi
9876
9877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9878   echo "$ac_t""yes" 1>&6
9879     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9880   cat >> confdefs.h <<EOF
9881 #define $ac_tr_func 1
9882 EOF
9883  
9884 else
9885   echo "$ac_t""no" 1>&6
9886 fi
9887 done
9888     
9889   else
9890     
9891   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
9892 echo "configure:9893: checking for _powf declaration" >&5
9893   if test x${glibcpp_cv_func__powf_use+set} != xset; then
9894     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
9895   echo $ac_n "(cached) $ac_c" 1>&6
9896 else
9897   
9898       
9899       ac_ext=C
9900 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9901 ac_cpp='$CXXCPP $CPPFLAGS'
9902 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9903 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9904 cross_compiling=$ac_cv_prog_cxx_cross
9905
9906       cat > conftest.$ac_ext <<EOF
9907 #line 9908 "configure"
9908 #include "confdefs.h"
9909 #include <math.h>
9910 int main() {
9911  _powf(0, 0);
9912 ; return 0; }
9913 EOF
9914 if { (eval echo configure:9915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9915   rm -rf conftest*
9916   glibcpp_cv_func__powf_use=yes
9917 else
9918   echo "configure: failed program was:" >&5
9919   cat conftest.$ac_ext >&5
9920   rm -rf conftest*
9921   glibcpp_cv_func__powf_use=no
9922 fi
9923 rm -f conftest*
9924       ac_ext=c
9925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9926 ac_cpp='$CPP $CPPFLAGS'
9927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9929 cross_compiling=$ac_cv_prog_cc_cross
9930
9931     
9932 fi
9933
9934   fi
9935   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
9936
9937     if test x$glibcpp_cv_func__powf_use = x"yes"; then
9938       for ac_func in _powf
9939 do
9940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9941 echo "configure:9942: checking for $ac_func" >&5
9942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9943   echo $ac_n "(cached) $ac_c" 1>&6
9944 else
9945   cat > conftest.$ac_ext <<EOF
9946 #line 9947 "configure"
9947 #include "confdefs.h"
9948 /* System header to define __stub macros and hopefully few prototypes,
9949     which can conflict with char $ac_func(); below.  */
9950 #include <assert.h>
9951 /* Override any gcc2 internal prototype to avoid an error.  */
9952 /* We use char because int might match the return type of a gcc2
9953     builtin and then its argument prototype would still apply.  */
9954 char $ac_func();
9955
9956 int main() {
9957
9958 /* The GNU C library defines this for functions which it implements
9959     to always fail with ENOSYS.  Some functions are actually named
9960     something starting with __ and the normal name is an alias.  */
9961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9962 choke me
9963 #else
9964 $ac_func();
9965 #endif
9966
9967 ; return 0; }
9968 EOF
9969 if { (eval echo configure:9970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9970   rm -rf conftest*
9971   eval "ac_cv_func_$ac_func=yes"
9972 else
9973   echo "configure: failed program was:" >&5
9974   cat conftest.$ac_ext >&5
9975   rm -rf conftest*
9976   eval "ac_cv_func_$ac_func=no"
9977 fi
9978 rm -f conftest*
9979 fi
9980
9981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9982   echo "$ac_t""yes" 1>&6
9983     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9984   cat >> confdefs.h <<EOF
9985 #define $ac_tr_func 1
9986 EOF
9987  
9988 else
9989   echo "$ac_t""no" 1>&6
9990 fi
9991 done
9992     
9993     fi  
9994   fi
9995
9996   
9997   
9998   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
9999 echo "configure:10000: checking for sqrtf declaration" >&5
10000   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
10001     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
10002   echo $ac_n "(cached) $ac_c" 1>&6
10003 else
10004   
10005       
10006       ac_ext=C
10007 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10008 ac_cpp='$CXXCPP $CPPFLAGS'
10009 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10010 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10011 cross_compiling=$ac_cv_prog_cxx_cross
10012
10013       cat > conftest.$ac_ext <<EOF
10014 #line 10015 "configure"
10015 #include "confdefs.h"
10016 #include <math.h>
10017                       #ifdef HAVE_IEEEFP_H
10018                       #include <ieeefp.h>
10019                       #endif
10020                      
10021 int main() {
10022  sqrtf(0);
10023 ; return 0; }
10024 EOF
10025 if { (eval echo configure:10026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10026   rm -rf conftest*
10027   glibcpp_cv_func_sqrtf_use=yes
10028 else
10029   echo "configure: failed program was:" >&5
10030   cat conftest.$ac_ext >&5
10031   rm -rf conftest*
10032   glibcpp_cv_func_sqrtf_use=no
10033 fi
10034 rm -f conftest*
10035       ac_ext=c
10036 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10037 ac_cpp='$CPP $CPPFLAGS'
10038 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10039 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10040 cross_compiling=$ac_cv_prog_cc_cross
10041
10042     
10043 fi
10044
10045   fi
10046   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
10047
10048   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
10049     for ac_func in sqrtf
10050 do
10051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10052 echo "configure:10053: checking for $ac_func" >&5
10053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10054   echo $ac_n "(cached) $ac_c" 1>&6
10055 else
10056   cat > conftest.$ac_ext <<EOF
10057 #line 10058 "configure"
10058 #include "confdefs.h"
10059 /* System header to define __stub macros and hopefully few prototypes,
10060     which can conflict with char $ac_func(); below.  */
10061 #include <assert.h>
10062 /* Override any gcc2 internal prototype to avoid an error.  */
10063 /* We use char because int might match the return type of a gcc2
10064     builtin and then its argument prototype would still apply.  */
10065 char $ac_func();
10066
10067 int main() {
10068
10069 /* The GNU C library defines this for functions which it implements
10070     to always fail with ENOSYS.  Some functions are actually named
10071     something starting with __ and the normal name is an alias.  */
10072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10073 choke me
10074 #else
10075 $ac_func();
10076 #endif
10077
10078 ; return 0; }
10079 EOF
10080 if { (eval echo configure:10081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10081   rm -rf conftest*
10082   eval "ac_cv_func_$ac_func=yes"
10083 else
10084   echo "configure: failed program was:" >&5
10085   cat conftest.$ac_ext >&5
10086   rm -rf conftest*
10087   eval "ac_cv_func_$ac_func=no"
10088 fi
10089 rm -f conftest*
10090 fi
10091
10092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10093   echo "$ac_t""yes" 1>&6
10094     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10095   cat >> confdefs.h <<EOF
10096 #define $ac_tr_func 1
10097 EOF
10098  
10099 else
10100   echo "$ac_t""no" 1>&6
10101 fi
10102 done
10103     
10104   else
10105     
10106   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
10107 echo "configure:10108: checking for _sqrtf declaration" >&5
10108   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
10109     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
10110   echo $ac_n "(cached) $ac_c" 1>&6
10111 else
10112   
10113       
10114       ac_ext=C
10115 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10116 ac_cpp='$CXXCPP $CPPFLAGS'
10117 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10118 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10119 cross_compiling=$ac_cv_prog_cxx_cross
10120
10121       cat > conftest.$ac_ext <<EOF
10122 #line 10123 "configure"
10123 #include "confdefs.h"
10124 #include <math.h>
10125                       #ifdef HAVE_IEEEFP_H
10126                       #include <ieeefp.h>
10127                       #endif
10128                      
10129 int main() {
10130  _sqrtf(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__sqrtf_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__sqrtf_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__sqrtf_use" 1>&6
10155
10156     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
10157       for ac_func in _sqrtf
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 sincosf declaration""... $ac_c" 1>&6
10218 echo "configure:10219: checking for sincosf declaration" >&5
10219   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
10220     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_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 int main() {
10237  sincosf(0, 0, 0);
10238 ; return 0; }
10239 EOF
10240 if { (eval echo configure:10241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10241   rm -rf conftest*
10242   glibcpp_cv_func_sincosf_use=yes
10243 else
10244   echo "configure: failed program was:" >&5
10245   cat conftest.$ac_ext >&5
10246   rm -rf conftest*
10247   glibcpp_cv_func_sincosf_use=no
10248 fi
10249 rm -f conftest*
10250       ac_ext=c
10251 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10252 ac_cpp='$CPP $CPPFLAGS'
10253 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10254 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10255 cross_compiling=$ac_cv_prog_cc_cross
10256
10257     
10258 fi
10259
10260   fi
10261   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
10262
10263   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
10264     for ac_func in sincosf
10265 do
10266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10267 echo "configure:10268: checking for $ac_func" >&5
10268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10269   echo $ac_n "(cached) $ac_c" 1>&6
10270 else
10271   cat > conftest.$ac_ext <<EOF
10272 #line 10273 "configure"
10273 #include "confdefs.h"
10274 /* System header to define __stub macros and hopefully few prototypes,
10275     which can conflict with char $ac_func(); below.  */
10276 #include <assert.h>
10277 /* Override any gcc2 internal prototype to avoid an error.  */
10278 /* We use char because int might match the return type of a gcc2
10279     builtin and then its argument prototype would still apply.  */
10280 char $ac_func();
10281
10282 int main() {
10283
10284 /* The GNU C library defines this for functions which it implements
10285     to always fail with ENOSYS.  Some functions are actually named
10286     something starting with __ and the normal name is an alias.  */
10287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10288 choke me
10289 #else
10290 $ac_func();
10291 #endif
10292
10293 ; return 0; }
10294 EOF
10295 if { (eval echo configure:10296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10296   rm -rf conftest*
10297   eval "ac_cv_func_$ac_func=yes"
10298 else
10299   echo "configure: failed program was:" >&5
10300   cat conftest.$ac_ext >&5
10301   rm -rf conftest*
10302   eval "ac_cv_func_$ac_func=no"
10303 fi
10304 rm -f conftest*
10305 fi
10306
10307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10308   echo "$ac_t""yes" 1>&6
10309     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10310   cat >> confdefs.h <<EOF
10311 #define $ac_tr_func 1
10312 EOF
10313  
10314 else
10315   echo "$ac_t""no" 1>&6
10316 fi
10317 done
10318     
10319   else
10320     
10321   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
10322 echo "configure:10323: checking for _sincosf declaration" >&5
10323   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
10324     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
10325   echo $ac_n "(cached) $ac_c" 1>&6
10326 else
10327   
10328       
10329       ac_ext=C
10330 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10331 ac_cpp='$CXXCPP $CPPFLAGS'
10332 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10333 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10334 cross_compiling=$ac_cv_prog_cxx_cross
10335
10336       cat > conftest.$ac_ext <<EOF
10337 #line 10338 "configure"
10338 #include "confdefs.h"
10339 #include <math.h>
10340 int main() {
10341  _sincosf(0, 0, 0);
10342 ; return 0; }
10343 EOF
10344 if { (eval echo configure:10345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10345   rm -rf conftest*
10346   glibcpp_cv_func__sincosf_use=yes
10347 else
10348   echo "configure: failed program was:" >&5
10349   cat conftest.$ac_ext >&5
10350   rm -rf conftest*
10351   glibcpp_cv_func__sincosf_use=no
10352 fi
10353 rm -f conftest*
10354       ac_ext=c
10355 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10356 ac_cpp='$CPP $CPPFLAGS'
10357 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10358 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10359 cross_compiling=$ac_cv_prog_cc_cross
10360
10361     
10362 fi
10363
10364   fi
10365   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
10366
10367     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
10368       for ac_func in _sincosf
10369 do
10370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10371 echo "configure:10372: checking for $ac_func" >&5
10372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10373   echo $ac_n "(cached) $ac_c" 1>&6
10374 else
10375   cat > conftest.$ac_ext <<EOF
10376 #line 10377 "configure"
10377 #include "confdefs.h"
10378 /* System header to define __stub macros and hopefully few prototypes,
10379     which can conflict with char $ac_func(); below.  */
10380 #include <assert.h>
10381 /* Override any gcc2 internal prototype to avoid an error.  */
10382 /* We use char because int might match the return type of a gcc2
10383     builtin and then its argument prototype would still apply.  */
10384 char $ac_func();
10385
10386 int main() {
10387
10388 /* The GNU C library defines this for functions which it implements
10389     to always fail with ENOSYS.  Some functions are actually named
10390     something starting with __ and the normal name is an alias.  */
10391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10392 choke me
10393 #else
10394 $ac_func();
10395 #endif
10396
10397 ; return 0; }
10398 EOF
10399 if { (eval echo configure:10400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10400   rm -rf conftest*
10401   eval "ac_cv_func_$ac_func=yes"
10402 else
10403   echo "configure: failed program was:" >&5
10404   cat conftest.$ac_ext >&5
10405   rm -rf conftest*
10406   eval "ac_cv_func_$ac_func=no"
10407 fi
10408 rm -f conftest*
10409 fi
10410
10411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10412   echo "$ac_t""yes" 1>&6
10413     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10414   cat >> confdefs.h <<EOF
10415 #define $ac_tr_func 1
10416 EOF
10417  
10418 else
10419   echo "$ac_t""no" 1>&6
10420 fi
10421 done
10422     
10423     fi  
10424   fi
10425
10426   
10427   
10428   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
10429 echo "configure:10430: checking for finitef declaration" >&5
10430   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
10431     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
10432   echo $ac_n "(cached) $ac_c" 1>&6
10433 else
10434   
10435       
10436       ac_ext=C
10437 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10438 ac_cpp='$CXXCPP $CPPFLAGS'
10439 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10440 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10441 cross_compiling=$ac_cv_prog_cxx_cross
10442
10443       cat > conftest.$ac_ext <<EOF
10444 #line 10445 "configure"
10445 #include "confdefs.h"
10446 #include <math.h>
10447                       #ifdef HAVE_IEEEFP_H
10448                       #include <ieeefp.h>
10449                       #endif
10450                      
10451 int main() {
10452  finitef(0);
10453 ; return 0; }
10454 EOF
10455 if { (eval echo configure:10456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10456   rm -rf conftest*
10457   glibcpp_cv_func_finitef_use=yes
10458 else
10459   echo "configure: failed program was:" >&5
10460   cat conftest.$ac_ext >&5
10461   rm -rf conftest*
10462   glibcpp_cv_func_finitef_use=no
10463 fi
10464 rm -f conftest*
10465       ac_ext=c
10466 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10467 ac_cpp='$CPP $CPPFLAGS'
10468 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10469 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10470 cross_compiling=$ac_cv_prog_cc_cross
10471
10472     
10473 fi
10474
10475   fi
10476   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
10477
10478   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
10479     for ac_func in finitef
10480 do
10481 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10482 echo "configure:10483: checking for $ac_func" >&5
10483 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10484   echo $ac_n "(cached) $ac_c" 1>&6
10485 else
10486   cat > conftest.$ac_ext <<EOF
10487 #line 10488 "configure"
10488 #include "confdefs.h"
10489 /* System header to define __stub macros and hopefully few prototypes,
10490     which can conflict with char $ac_func(); below.  */
10491 #include <assert.h>
10492 /* Override any gcc2 internal prototype to avoid an error.  */
10493 /* We use char because int might match the return type of a gcc2
10494     builtin and then its argument prototype would still apply.  */
10495 char $ac_func();
10496
10497 int main() {
10498
10499 /* The GNU C library defines this for functions which it implements
10500     to always fail with ENOSYS.  Some functions are actually named
10501     something starting with __ and the normal name is an alias.  */
10502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10503 choke me
10504 #else
10505 $ac_func();
10506 #endif
10507
10508 ; return 0; }
10509 EOF
10510 if { (eval echo configure:10511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10511   rm -rf conftest*
10512   eval "ac_cv_func_$ac_func=yes"
10513 else
10514   echo "configure: failed program was:" >&5
10515   cat conftest.$ac_ext >&5
10516   rm -rf conftest*
10517   eval "ac_cv_func_$ac_func=no"
10518 fi
10519 rm -f conftest*
10520 fi
10521
10522 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10523   echo "$ac_t""yes" 1>&6
10524     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10525   cat >> confdefs.h <<EOF
10526 #define $ac_tr_func 1
10527 EOF
10528  
10529 else
10530   echo "$ac_t""no" 1>&6
10531 fi
10532 done
10533     
10534   else
10535     
10536   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
10537 echo "configure:10538: checking for _finitef declaration" >&5
10538   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
10539     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
10540   echo $ac_n "(cached) $ac_c" 1>&6
10541 else
10542   
10543       
10544       ac_ext=C
10545 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10546 ac_cpp='$CXXCPP $CPPFLAGS'
10547 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10548 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10549 cross_compiling=$ac_cv_prog_cxx_cross
10550
10551       cat > conftest.$ac_ext <<EOF
10552 #line 10553 "configure"
10553 #include "confdefs.h"
10554 #include <math.h>
10555                       #ifdef HAVE_IEEEFP_H
10556                       #include <ieeefp.h>
10557                       #endif
10558                      
10559 int main() {
10560  _finitef(0);
10561 ; return 0; }
10562 EOF
10563 if { (eval echo configure:10564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10564   rm -rf conftest*
10565   glibcpp_cv_func__finitef_use=yes
10566 else
10567   echo "configure: failed program was:" >&5
10568   cat conftest.$ac_ext >&5
10569   rm -rf conftest*
10570   glibcpp_cv_func__finitef_use=no
10571 fi
10572 rm -f conftest*
10573       ac_ext=c
10574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10575 ac_cpp='$CPP $CPPFLAGS'
10576 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10577 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10578 cross_compiling=$ac_cv_prog_cc_cross
10579
10580     
10581 fi
10582
10583   fi
10584   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
10585
10586     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
10587       for ac_func in _finitef
10588 do
10589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10590 echo "configure:10591: checking for $ac_func" >&5
10591 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10592   echo $ac_n "(cached) $ac_c" 1>&6
10593 else
10594   cat > conftest.$ac_ext <<EOF
10595 #line 10596 "configure"
10596 #include "confdefs.h"
10597 /* System header to define __stub macros and hopefully few prototypes,
10598     which can conflict with char $ac_func(); below.  */
10599 #include <assert.h>
10600 /* Override any gcc2 internal prototype to avoid an error.  */
10601 /* We use char because int might match the return type of a gcc2
10602     builtin and then its argument prototype would still apply.  */
10603 char $ac_func();
10604
10605 int main() {
10606
10607 /* The GNU C library defines this for functions which it implements
10608     to always fail with ENOSYS.  Some functions are actually named
10609     something starting with __ and the normal name is an alias.  */
10610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10611 choke me
10612 #else
10613 $ac_func();
10614 #endif
10615
10616 ; return 0; }
10617 EOF
10618 if { (eval echo configure:10619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10619   rm -rf conftest*
10620   eval "ac_cv_func_$ac_func=yes"
10621 else
10622   echo "configure: failed program was:" >&5
10623   cat conftest.$ac_ext >&5
10624   rm -rf conftest*
10625   eval "ac_cv_func_$ac_func=no"
10626 fi
10627 rm -f conftest*
10628 fi
10629
10630 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10631   echo "$ac_t""yes" 1>&6
10632     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10633   cat >> confdefs.h <<EOF
10634 #define $ac_tr_func 1
10635 EOF
10636  
10637 else
10638   echo "$ac_t""no" 1>&6
10639 fi
10640 done
10641     
10642     fi  
10643   fi
10644
10645
10646     
10647   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
10648 echo "configure:10649: checking for long double trig functions" >&5
10649   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
10650   echo $ac_n "(cached) $ac_c" 1>&6
10651 else
10652   
10653     
10654     ac_ext=C
10655 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10656 ac_cpp='$CXXCPP $CPPFLAGS'
10657 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10658 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10659 cross_compiling=$ac_cv_prog_cxx_cross
10660
10661     cat > conftest.$ac_ext <<EOF
10662 #line 10663 "configure"
10663 #include "confdefs.h"
10664 #include <math.h>
10665 int main() {
10666  `for x in acosl asinl atanl \
10667                                           cosl sinl tanl \
10668                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
10669 ; return 0; }
10670 EOF
10671 if { (eval echo configure:10672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10672   rm -rf conftest*
10673   glibcpp_cv_func_long_double_trig_use=yes
10674 else
10675   echo "configure: failed program was:" >&5
10676   cat conftest.$ac_ext >&5
10677   rm -rf conftest*
10678   glibcpp_cv_func_long_double_trig_use=no
10679 fi
10680 rm -f conftest*
10681     ac_ext=c
10682 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10683 ac_cpp='$CPP $CPPFLAGS'
10684 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10685 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10686 cross_compiling=$ac_cv_prog_cc_cross
10687
10688 fi
10689
10690   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
10691   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
10692     for ac_func in acosl asinl atanl \
10693                                           cosl sinl tanl \
10694                                           coshl sinhl tanhl
10695 do
10696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10697 echo "configure:10698: checking for $ac_func" >&5
10698 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10699   echo $ac_n "(cached) $ac_c" 1>&6
10700 else
10701   cat > conftest.$ac_ext <<EOF
10702 #line 10703 "configure"
10703 #include "confdefs.h"
10704 /* System header to define __stub macros and hopefully few prototypes,
10705     which can conflict with char $ac_func(); below.  */
10706 #include <assert.h>
10707 /* Override any gcc2 internal prototype to avoid an error.  */
10708 /* We use char because int might match the return type of a gcc2
10709     builtin and then its argument prototype would still apply.  */
10710 char $ac_func();
10711
10712 int main() {
10713
10714 /* The GNU C library defines this for functions which it implements
10715     to always fail with ENOSYS.  Some functions are actually named
10716     something starting with __ and the normal name is an alias.  */
10717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10718 choke me
10719 #else
10720 $ac_func();
10721 #endif
10722
10723 ; return 0; }
10724 EOF
10725 if { (eval echo configure:10726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10726   rm -rf conftest*
10727   eval "ac_cv_func_$ac_func=yes"
10728 else
10729   echo "configure: failed program was:" >&5
10730   cat conftest.$ac_ext >&5
10731   rm -rf conftest*
10732   eval "ac_cv_func_$ac_func=no"
10733 fi
10734 rm -f conftest*
10735 fi
10736
10737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10738   echo "$ac_t""yes" 1>&6
10739     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10740   cat >> confdefs.h <<EOF
10741 #define $ac_tr_func 1
10742 EOF
10743  
10744 else
10745   echo "$ac_t""no" 1>&6
10746 fi
10747 done
10748
10749   fi
10750
10751   
10752   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
10753 echo "configure:10754: checking for long double round functions" >&5
10754   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
10755   echo $ac_n "(cached) $ac_c" 1>&6
10756 else
10757   
10758     
10759     ac_ext=C
10760 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10761 ac_cpp='$CXXCPP $CPPFLAGS'
10762 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10763 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10764 cross_compiling=$ac_cv_prog_cxx_cross
10765
10766     cat > conftest.$ac_ext <<EOF
10767 #line 10768 "configure"
10768 #include "confdefs.h"
10769 #include <math.h>
10770 int main() {
10771  `for x in ceill floorl; do echo "$x (0);"; done` 
10772 ; return 0; }
10773 EOF
10774 if { (eval echo configure:10775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10775   rm -rf conftest*
10776   glibcpp_cv_func_long_double_round_use=yes
10777 else
10778   echo "configure: failed program was:" >&5
10779   cat conftest.$ac_ext >&5
10780   rm -rf conftest*
10781   glibcpp_cv_func_long_double_round_use=no
10782 fi
10783 rm -f conftest*
10784     ac_ext=c
10785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10786 ac_cpp='$CPP $CPPFLAGS'
10787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10788 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10789 cross_compiling=$ac_cv_prog_cc_cross
10790
10791 fi
10792
10793   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
10794   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
10795     for ac_func in ceill floorl
10796 do
10797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10798 echo "configure:10799: checking for $ac_func" >&5
10799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10800   echo $ac_n "(cached) $ac_c" 1>&6
10801 else
10802   cat > conftest.$ac_ext <<EOF
10803 #line 10804 "configure"
10804 #include "confdefs.h"
10805 /* System header to define __stub macros and hopefully few prototypes,
10806     which can conflict with char $ac_func(); below.  */
10807 #include <assert.h>
10808 /* Override any gcc2 internal prototype to avoid an error.  */
10809 /* We use char because int might match the return type of a gcc2
10810     builtin and then its argument prototype would still apply.  */
10811 char $ac_func();
10812
10813 int main() {
10814
10815 /* The GNU C library defines this for functions which it implements
10816     to always fail with ENOSYS.  Some functions are actually named
10817     something starting with __ and the normal name is an alias.  */
10818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10819 choke me
10820 #else
10821 $ac_func();
10822 #endif
10823
10824 ; return 0; }
10825 EOF
10826 if { (eval echo configure:10827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10827   rm -rf conftest*
10828   eval "ac_cv_func_$ac_func=yes"
10829 else
10830   echo "configure: failed program was:" >&5
10831   cat conftest.$ac_ext >&5
10832   rm -rf conftest*
10833   eval "ac_cv_func_$ac_func=no"
10834 fi
10835 rm -f conftest*
10836 fi
10837
10838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10839   echo "$ac_t""yes" 1>&6
10840     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10841   cat >> confdefs.h <<EOF
10842 #define $ac_tr_func 1
10843 EOF
10844  
10845 else
10846   echo "$ac_t""no" 1>&6
10847 fi
10848 done
10849
10850   fi
10851
10852   
10853   
10854   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
10855 echo "configure:10856: checking for isnanl declaration" >&5
10856   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
10857     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
10858   echo $ac_n "(cached) $ac_c" 1>&6
10859 else
10860   
10861       
10862       ac_ext=C
10863 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10864 ac_cpp='$CXXCPP $CPPFLAGS'
10865 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10866 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10867 cross_compiling=$ac_cv_prog_cxx_cross
10868
10869       cat > conftest.$ac_ext <<EOF
10870 #line 10871 "configure"
10871 #include "confdefs.h"
10872 #include <math.h>
10873                       #ifdef HAVE_IEEEFP_H
10874                       #include <ieeefp.h>
10875                       #endif
10876                      
10877 int main() {
10878  isnanl(0);
10879 ; return 0; }
10880 EOF
10881 if { (eval echo configure:10882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10882   rm -rf conftest*
10883   glibcpp_cv_func_isnanl_use=yes
10884 else
10885   echo "configure: failed program was:" >&5
10886   cat conftest.$ac_ext >&5
10887   rm -rf conftest*
10888   glibcpp_cv_func_isnanl_use=no
10889 fi
10890 rm -f conftest*
10891       ac_ext=c
10892 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10893 ac_cpp='$CPP $CPPFLAGS'
10894 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10895 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10896 cross_compiling=$ac_cv_prog_cc_cross
10897
10898     
10899 fi
10900
10901   fi
10902   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
10903
10904   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
10905     for ac_func in isnanl
10906 do
10907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10908 echo "configure:10909: checking for $ac_func" >&5
10909 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10910   echo $ac_n "(cached) $ac_c" 1>&6
10911 else
10912   cat > conftest.$ac_ext <<EOF
10913 #line 10914 "configure"
10914 #include "confdefs.h"
10915 /* System header to define __stub macros and hopefully few prototypes,
10916     which can conflict with char $ac_func(); below.  */
10917 #include <assert.h>
10918 /* Override any gcc2 internal prototype to avoid an error.  */
10919 /* We use char because int might match the return type of a gcc2
10920     builtin and then its argument prototype would still apply.  */
10921 char $ac_func();
10922
10923 int main() {
10924
10925 /* The GNU C library defines this for functions which it implements
10926     to always fail with ENOSYS.  Some functions are actually named
10927     something starting with __ and the normal name is an alias.  */
10928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10929 choke me
10930 #else
10931 $ac_func();
10932 #endif
10933
10934 ; return 0; }
10935 EOF
10936 if { (eval echo configure:10937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10937   rm -rf conftest*
10938   eval "ac_cv_func_$ac_func=yes"
10939 else
10940   echo "configure: failed program was:" >&5
10941   cat conftest.$ac_ext >&5
10942   rm -rf conftest*
10943   eval "ac_cv_func_$ac_func=no"
10944 fi
10945 rm -f conftest*
10946 fi
10947
10948 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10949   echo "$ac_t""yes" 1>&6
10950     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10951   cat >> confdefs.h <<EOF
10952 #define $ac_tr_func 1
10953 EOF
10954  
10955 else
10956   echo "$ac_t""no" 1>&6
10957 fi
10958 done
10959     
10960   else
10961     
10962   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
10963 echo "configure:10964: checking for _isnanl declaration" >&5
10964   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
10965     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
10966   echo $ac_n "(cached) $ac_c" 1>&6
10967 else
10968   
10969       
10970       ac_ext=C
10971 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10972 ac_cpp='$CXXCPP $CPPFLAGS'
10973 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10974 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10975 cross_compiling=$ac_cv_prog_cxx_cross
10976
10977       cat > conftest.$ac_ext <<EOF
10978 #line 10979 "configure"
10979 #include "confdefs.h"
10980 #include <math.h>
10981                       #ifdef HAVE_IEEEFP_H
10982                       #include <ieeefp.h>
10983                       #endif
10984                      
10985 int main() {
10986  _isnanl(0);
10987 ; return 0; }
10988 EOF
10989 if { (eval echo configure:10990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10990   rm -rf conftest*
10991   glibcpp_cv_func__isnanl_use=yes
10992 else
10993   echo "configure: failed program was:" >&5
10994   cat conftest.$ac_ext >&5
10995   rm -rf conftest*
10996   glibcpp_cv_func__isnanl_use=no
10997 fi
10998 rm -f conftest*
10999       ac_ext=c
11000 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11001 ac_cpp='$CPP $CPPFLAGS'
11002 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11003 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11004 cross_compiling=$ac_cv_prog_cc_cross
11005
11006     
11007 fi
11008
11009   fi
11010   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
11011
11012     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
11013       for ac_func in _isnanl
11014 do
11015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11016 echo "configure:11017: checking for $ac_func" >&5
11017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11018   echo $ac_n "(cached) $ac_c" 1>&6
11019 else
11020   cat > conftest.$ac_ext <<EOF
11021 #line 11022 "configure"
11022 #include "confdefs.h"
11023 /* System header to define __stub macros and hopefully few prototypes,
11024     which can conflict with char $ac_func(); below.  */
11025 #include <assert.h>
11026 /* Override any gcc2 internal prototype to avoid an error.  */
11027 /* We use char because int might match the return type of a gcc2
11028     builtin and then its argument prototype would still apply.  */
11029 char $ac_func();
11030
11031 int main() {
11032
11033 /* The GNU C library defines this for functions which it implements
11034     to always fail with ENOSYS.  Some functions are actually named
11035     something starting with __ and the normal name is an alias.  */
11036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11037 choke me
11038 #else
11039 $ac_func();
11040 #endif
11041
11042 ; return 0; }
11043 EOF
11044 if { (eval echo configure:11045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11045   rm -rf conftest*
11046   eval "ac_cv_func_$ac_func=yes"
11047 else
11048   echo "configure: failed program was:" >&5
11049   cat conftest.$ac_ext >&5
11050   rm -rf conftest*
11051   eval "ac_cv_func_$ac_func=no"
11052 fi
11053 rm -f conftest*
11054 fi
11055
11056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11057   echo "$ac_t""yes" 1>&6
11058     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11059   cat >> confdefs.h <<EOF
11060 #define $ac_tr_func 1
11061 EOF
11062  
11063 else
11064   echo "$ac_t""no" 1>&6
11065 fi
11066 done
11067     
11068     fi  
11069   fi
11070
11071   
11072   
11073   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
11074 echo "configure:11075: checking for isinfl declaration" >&5
11075   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
11076     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
11077   echo $ac_n "(cached) $ac_c" 1>&6
11078 else
11079   
11080       
11081       ac_ext=C
11082 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11083 ac_cpp='$CXXCPP $CPPFLAGS'
11084 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11085 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11086 cross_compiling=$ac_cv_prog_cxx_cross
11087
11088       cat > conftest.$ac_ext <<EOF
11089 #line 11090 "configure"
11090 #include "confdefs.h"
11091 #include <math.h>
11092                       #ifdef HAVE_IEEEFP_H
11093                       #include <ieeefp.h>
11094                       #endif
11095                      
11096 int main() {
11097  isinfl(0);
11098 ; return 0; }
11099 EOF
11100 if { (eval echo configure:11101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11101   rm -rf conftest*
11102   glibcpp_cv_func_isinfl_use=yes
11103 else
11104   echo "configure: failed program was:" >&5
11105   cat conftest.$ac_ext >&5
11106   rm -rf conftest*
11107   glibcpp_cv_func_isinfl_use=no
11108 fi
11109 rm -f conftest*
11110       ac_ext=c
11111 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11112 ac_cpp='$CPP $CPPFLAGS'
11113 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11114 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11115 cross_compiling=$ac_cv_prog_cc_cross
11116
11117     
11118 fi
11119
11120   fi
11121   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
11122
11123   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
11124     for ac_func in isinfl
11125 do
11126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11127 echo "configure:11128: checking for $ac_func" >&5
11128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11129   echo $ac_n "(cached) $ac_c" 1>&6
11130 else
11131   cat > conftest.$ac_ext <<EOF
11132 #line 11133 "configure"
11133 #include "confdefs.h"
11134 /* System header to define __stub macros and hopefully few prototypes,
11135     which can conflict with char $ac_func(); below.  */
11136 #include <assert.h>
11137 /* Override any gcc2 internal prototype to avoid an error.  */
11138 /* We use char because int might match the return type of a gcc2
11139     builtin and then its argument prototype would still apply.  */
11140 char $ac_func();
11141
11142 int main() {
11143
11144 /* The GNU C library defines this for functions which it implements
11145     to always fail with ENOSYS.  Some functions are actually named
11146     something starting with __ and the normal name is an alias.  */
11147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11148 choke me
11149 #else
11150 $ac_func();
11151 #endif
11152
11153 ; return 0; }
11154 EOF
11155 if { (eval echo configure:11156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11156   rm -rf conftest*
11157   eval "ac_cv_func_$ac_func=yes"
11158 else
11159   echo "configure: failed program was:" >&5
11160   cat conftest.$ac_ext >&5
11161   rm -rf conftest*
11162   eval "ac_cv_func_$ac_func=no"
11163 fi
11164 rm -f conftest*
11165 fi
11166
11167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11168   echo "$ac_t""yes" 1>&6
11169     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11170   cat >> confdefs.h <<EOF
11171 #define $ac_tr_func 1
11172 EOF
11173  
11174 else
11175   echo "$ac_t""no" 1>&6
11176 fi
11177 done
11178     
11179   else
11180     
11181   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
11182 echo "configure:11183: checking for _isinfl declaration" >&5
11183   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
11184     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
11185   echo $ac_n "(cached) $ac_c" 1>&6
11186 else
11187   
11188       
11189       ac_ext=C
11190 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11191 ac_cpp='$CXXCPP $CPPFLAGS'
11192 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11193 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11194 cross_compiling=$ac_cv_prog_cxx_cross
11195
11196       cat > conftest.$ac_ext <<EOF
11197 #line 11198 "configure"
11198 #include "confdefs.h"
11199 #include <math.h>
11200                       #ifdef HAVE_IEEEFP_H
11201                       #include <ieeefp.h>
11202                       #endif
11203                      
11204 int main() {
11205  _isinfl(0);
11206 ; return 0; }
11207 EOF
11208 if { (eval echo configure:11209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11209   rm -rf conftest*
11210   glibcpp_cv_func__isinfl_use=yes
11211 else
11212   echo "configure: failed program was:" >&5
11213   cat conftest.$ac_ext >&5
11214   rm -rf conftest*
11215   glibcpp_cv_func__isinfl_use=no
11216 fi
11217 rm -f conftest*
11218       ac_ext=c
11219 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11220 ac_cpp='$CPP $CPPFLAGS'
11221 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11222 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11223 cross_compiling=$ac_cv_prog_cc_cross
11224
11225     
11226 fi
11227
11228   fi
11229   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
11230
11231     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
11232       for ac_func in _isinfl
11233 do
11234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11235 echo "configure:11236: checking for $ac_func" >&5
11236 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11237   echo $ac_n "(cached) $ac_c" 1>&6
11238 else
11239   cat > conftest.$ac_ext <<EOF
11240 #line 11241 "configure"
11241 #include "confdefs.h"
11242 /* System header to define __stub macros and hopefully few prototypes,
11243     which can conflict with char $ac_func(); below.  */
11244 #include <assert.h>
11245 /* Override any gcc2 internal prototype to avoid an error.  */
11246 /* We use char because int might match the return type of a gcc2
11247     builtin and then its argument prototype would still apply.  */
11248 char $ac_func();
11249
11250 int main() {
11251
11252 /* The GNU C library defines this for functions which it implements
11253     to always fail with ENOSYS.  Some functions are actually named
11254     something starting with __ and the normal name is an alias.  */
11255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11256 choke me
11257 #else
11258 $ac_func();
11259 #endif
11260
11261 ; return 0; }
11262 EOF
11263 if { (eval echo configure:11264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11264   rm -rf conftest*
11265   eval "ac_cv_func_$ac_func=yes"
11266 else
11267   echo "configure: failed program was:" >&5
11268   cat conftest.$ac_ext >&5
11269   rm -rf conftest*
11270   eval "ac_cv_func_$ac_func=no"
11271 fi
11272 rm -f conftest*
11273 fi
11274
11275 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11276   echo "$ac_t""yes" 1>&6
11277     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11278   cat >> confdefs.h <<EOF
11279 #define $ac_tr_func 1
11280 EOF
11281  
11282 else
11283   echo "$ac_t""no" 1>&6
11284 fi
11285 done
11286     
11287     fi  
11288   fi
11289
11290   
11291   
11292   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
11293 echo "configure:11294: checking for copysignl declaration" >&5
11294   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
11295     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
11296   echo $ac_n "(cached) $ac_c" 1>&6
11297 else
11298   
11299       
11300       ac_ext=C
11301 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11302 ac_cpp='$CXXCPP $CPPFLAGS'
11303 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11304 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11305 cross_compiling=$ac_cv_prog_cxx_cross
11306
11307       cat > conftest.$ac_ext <<EOF
11308 #line 11309 "configure"
11309 #include "confdefs.h"
11310 #include <math.h>
11311 int main() {
11312  copysignl(0, 0);
11313 ; return 0; }
11314 EOF
11315 if { (eval echo configure:11316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11316   rm -rf conftest*
11317   glibcpp_cv_func_copysignl_use=yes
11318 else
11319   echo "configure: failed program was:" >&5
11320   cat conftest.$ac_ext >&5
11321   rm -rf conftest*
11322   glibcpp_cv_func_copysignl_use=no
11323 fi
11324 rm -f conftest*
11325       ac_ext=c
11326 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11327 ac_cpp='$CPP $CPPFLAGS'
11328 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11329 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11330 cross_compiling=$ac_cv_prog_cc_cross
11331
11332     
11333 fi
11334
11335   fi
11336   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
11337
11338   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
11339     for ac_func in copysignl
11340 do
11341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11342 echo "configure:11343: checking for $ac_func" >&5
11343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11344   echo $ac_n "(cached) $ac_c" 1>&6
11345 else
11346   cat > conftest.$ac_ext <<EOF
11347 #line 11348 "configure"
11348 #include "confdefs.h"
11349 /* System header to define __stub macros and hopefully few prototypes,
11350     which can conflict with char $ac_func(); below.  */
11351 #include <assert.h>
11352 /* Override any gcc2 internal prototype to avoid an error.  */
11353 /* We use char because int might match the return type of a gcc2
11354     builtin and then its argument prototype would still apply.  */
11355 char $ac_func();
11356
11357 int main() {
11358
11359 /* The GNU C library defines this for functions which it implements
11360     to always fail with ENOSYS.  Some functions are actually named
11361     something starting with __ and the normal name is an alias.  */
11362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11363 choke me
11364 #else
11365 $ac_func();
11366 #endif
11367
11368 ; return 0; }
11369 EOF
11370 if { (eval echo configure:11371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11371   rm -rf conftest*
11372   eval "ac_cv_func_$ac_func=yes"
11373 else
11374   echo "configure: failed program was:" >&5
11375   cat conftest.$ac_ext >&5
11376   rm -rf conftest*
11377   eval "ac_cv_func_$ac_func=no"
11378 fi
11379 rm -f conftest*
11380 fi
11381
11382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11383   echo "$ac_t""yes" 1>&6
11384     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11385   cat >> confdefs.h <<EOF
11386 #define $ac_tr_func 1
11387 EOF
11388  
11389 else
11390   echo "$ac_t""no" 1>&6
11391 fi
11392 done
11393     
11394   else
11395     
11396   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
11397 echo "configure:11398: checking for _copysignl declaration" >&5
11398   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
11399     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
11400   echo $ac_n "(cached) $ac_c" 1>&6
11401 else
11402   
11403       
11404       ac_ext=C
11405 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11406 ac_cpp='$CXXCPP $CPPFLAGS'
11407 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11408 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11409 cross_compiling=$ac_cv_prog_cxx_cross
11410
11411       cat > conftest.$ac_ext <<EOF
11412 #line 11413 "configure"
11413 #include "confdefs.h"
11414 #include <math.h>
11415 int main() {
11416  _copysignl(0, 0);
11417 ; return 0; }
11418 EOF
11419 if { (eval echo configure:11420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11420   rm -rf conftest*
11421   glibcpp_cv_func__copysignl_use=yes
11422 else
11423   echo "configure: failed program was:" >&5
11424   cat conftest.$ac_ext >&5
11425   rm -rf conftest*
11426   glibcpp_cv_func__copysignl_use=no
11427 fi
11428 rm -f conftest*
11429       ac_ext=c
11430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11431 ac_cpp='$CPP $CPPFLAGS'
11432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11434 cross_compiling=$ac_cv_prog_cc_cross
11435
11436     
11437 fi
11438
11439   fi
11440   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
11441
11442     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
11443       for ac_func in _copysignl
11444 do
11445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11446 echo "configure:11447: checking for $ac_func" >&5
11447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11448   echo $ac_n "(cached) $ac_c" 1>&6
11449 else
11450   cat > conftest.$ac_ext <<EOF
11451 #line 11452 "configure"
11452 #include "confdefs.h"
11453 /* System header to define __stub macros and hopefully few prototypes,
11454     which can conflict with char $ac_func(); below.  */
11455 #include <assert.h>
11456 /* Override any gcc2 internal prototype to avoid an error.  */
11457 /* We use char because int might match the return type of a gcc2
11458     builtin and then its argument prototype would still apply.  */
11459 char $ac_func();
11460
11461 int main() {
11462
11463 /* The GNU C library defines this for functions which it implements
11464     to always fail with ENOSYS.  Some functions are actually named
11465     something starting with __ and the normal name is an alias.  */
11466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11467 choke me
11468 #else
11469 $ac_func();
11470 #endif
11471
11472 ; return 0; }
11473 EOF
11474 if { (eval echo configure:11475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11475   rm -rf conftest*
11476   eval "ac_cv_func_$ac_func=yes"
11477 else
11478   echo "configure: failed program was:" >&5
11479   cat conftest.$ac_ext >&5
11480   rm -rf conftest*
11481   eval "ac_cv_func_$ac_func=no"
11482 fi
11483 rm -f conftest*
11484 fi
11485
11486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11487   echo "$ac_t""yes" 1>&6
11488     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11489   cat >> confdefs.h <<EOF
11490 #define $ac_tr_func 1
11491 EOF
11492  
11493 else
11494   echo "$ac_t""no" 1>&6
11495 fi
11496 done
11497     
11498     fi  
11499   fi
11500
11501   
11502   
11503   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
11504 echo "configure:11505: checking for atan2l declaration" >&5
11505   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
11506     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
11507   echo $ac_n "(cached) $ac_c" 1>&6
11508 else
11509   
11510       
11511       ac_ext=C
11512 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11513 ac_cpp='$CXXCPP $CPPFLAGS'
11514 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11515 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11516 cross_compiling=$ac_cv_prog_cxx_cross
11517
11518       cat > conftest.$ac_ext <<EOF
11519 #line 11520 "configure"
11520 #include "confdefs.h"
11521 #include <math.h>
11522 int main() {
11523  atan2l(0, 0);
11524 ; return 0; }
11525 EOF
11526 if { (eval echo configure:11527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11527   rm -rf conftest*
11528   glibcpp_cv_func_atan2l_use=yes
11529 else
11530   echo "configure: failed program was:" >&5
11531   cat conftest.$ac_ext >&5
11532   rm -rf conftest*
11533   glibcpp_cv_func_atan2l_use=no
11534 fi
11535 rm -f conftest*
11536       ac_ext=c
11537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11538 ac_cpp='$CPP $CPPFLAGS'
11539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11541 cross_compiling=$ac_cv_prog_cc_cross
11542
11543     
11544 fi
11545
11546   fi
11547   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
11548
11549   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
11550     for ac_func in atan2l
11551 do
11552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11553 echo "configure:11554: checking for $ac_func" >&5
11554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11555   echo $ac_n "(cached) $ac_c" 1>&6
11556 else
11557   cat > conftest.$ac_ext <<EOF
11558 #line 11559 "configure"
11559 #include "confdefs.h"
11560 /* System header to define __stub macros and hopefully few prototypes,
11561     which can conflict with char $ac_func(); below.  */
11562 #include <assert.h>
11563 /* Override any gcc2 internal prototype to avoid an error.  */
11564 /* We use char because int might match the return type of a gcc2
11565     builtin and then its argument prototype would still apply.  */
11566 char $ac_func();
11567
11568 int main() {
11569
11570 /* The GNU C library defines this for functions which it implements
11571     to always fail with ENOSYS.  Some functions are actually named
11572     something starting with __ and the normal name is an alias.  */
11573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11574 choke me
11575 #else
11576 $ac_func();
11577 #endif
11578
11579 ; return 0; }
11580 EOF
11581 if { (eval echo configure:11582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11582   rm -rf conftest*
11583   eval "ac_cv_func_$ac_func=yes"
11584 else
11585   echo "configure: failed program was:" >&5
11586   cat conftest.$ac_ext >&5
11587   rm -rf conftest*
11588   eval "ac_cv_func_$ac_func=no"
11589 fi
11590 rm -f conftest*
11591 fi
11592
11593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11594   echo "$ac_t""yes" 1>&6
11595     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11596   cat >> confdefs.h <<EOF
11597 #define $ac_tr_func 1
11598 EOF
11599  
11600 else
11601   echo "$ac_t""no" 1>&6
11602 fi
11603 done
11604     
11605   else
11606     
11607   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
11608 echo "configure:11609: checking for _atan2l declaration" >&5
11609   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
11610     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
11611   echo $ac_n "(cached) $ac_c" 1>&6
11612 else
11613   
11614       
11615       ac_ext=C
11616 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11617 ac_cpp='$CXXCPP $CPPFLAGS'
11618 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11619 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11620 cross_compiling=$ac_cv_prog_cxx_cross
11621
11622       cat > conftest.$ac_ext <<EOF
11623 #line 11624 "configure"
11624 #include "confdefs.h"
11625 #include <math.h>
11626 int main() {
11627  _atan2l(0, 0);
11628 ; return 0; }
11629 EOF
11630 if { (eval echo configure:11631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11631   rm -rf conftest*
11632   glibcpp_cv_func__atan2l_use=yes
11633 else
11634   echo "configure: failed program was:" >&5
11635   cat conftest.$ac_ext >&5
11636   rm -rf conftest*
11637   glibcpp_cv_func__atan2l_use=no
11638 fi
11639 rm -f conftest*
11640       ac_ext=c
11641 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11642 ac_cpp='$CPP $CPPFLAGS'
11643 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11644 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11645 cross_compiling=$ac_cv_prog_cc_cross
11646
11647     
11648 fi
11649
11650   fi
11651   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
11652
11653     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
11654       for ac_func in _atan2l
11655 do
11656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11657 echo "configure:11658: checking for $ac_func" >&5
11658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11659   echo $ac_n "(cached) $ac_c" 1>&6
11660 else
11661   cat > conftest.$ac_ext <<EOF
11662 #line 11663 "configure"
11663 #include "confdefs.h"
11664 /* System header to define __stub macros and hopefully few prototypes,
11665     which can conflict with char $ac_func(); below.  */
11666 #include <assert.h>
11667 /* Override any gcc2 internal prototype to avoid an error.  */
11668 /* We use char because int might match the return type of a gcc2
11669     builtin and then its argument prototype would still apply.  */
11670 char $ac_func();
11671
11672 int main() {
11673
11674 /* The GNU C library defines this for functions which it implements
11675     to always fail with ENOSYS.  Some functions are actually named
11676     something starting with __ and the normal name is an alias.  */
11677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11678 choke me
11679 #else
11680 $ac_func();
11681 #endif
11682
11683 ; return 0; }
11684 EOF
11685 if { (eval echo configure:11686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11686   rm -rf conftest*
11687   eval "ac_cv_func_$ac_func=yes"
11688 else
11689   echo "configure: failed program was:" >&5
11690   cat conftest.$ac_ext >&5
11691   rm -rf conftest*
11692   eval "ac_cv_func_$ac_func=no"
11693 fi
11694 rm -f conftest*
11695 fi
11696
11697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11698   echo "$ac_t""yes" 1>&6
11699     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11700   cat >> confdefs.h <<EOF
11701 #define $ac_tr_func 1
11702 EOF
11703  
11704 else
11705   echo "$ac_t""no" 1>&6
11706 fi
11707 done
11708     
11709     fi  
11710   fi
11711
11712   
11713   
11714   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
11715 echo "configure:11716: checking for expl declaration" >&5
11716   if test x${glibcpp_cv_func_expl_use+set} != xset; then
11717     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
11718   echo $ac_n "(cached) $ac_c" 1>&6
11719 else
11720   
11721       
11722       ac_ext=C
11723 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11724 ac_cpp='$CXXCPP $CPPFLAGS'
11725 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11726 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11727 cross_compiling=$ac_cv_prog_cxx_cross
11728
11729       cat > conftest.$ac_ext <<EOF
11730 #line 11731 "configure"
11731 #include "confdefs.h"
11732 #include <math.h>
11733                       #ifdef HAVE_IEEEFP_H
11734                       #include <ieeefp.h>
11735                       #endif
11736                      
11737 int main() {
11738  expl(0);
11739 ; return 0; }
11740 EOF
11741 if { (eval echo configure:11742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11742   rm -rf conftest*
11743   glibcpp_cv_func_expl_use=yes
11744 else
11745   echo "configure: failed program was:" >&5
11746   cat conftest.$ac_ext >&5
11747   rm -rf conftest*
11748   glibcpp_cv_func_expl_use=no
11749 fi
11750 rm -f conftest*
11751       ac_ext=c
11752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11753 ac_cpp='$CPP $CPPFLAGS'
11754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11756 cross_compiling=$ac_cv_prog_cc_cross
11757
11758     
11759 fi
11760
11761   fi
11762   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
11763
11764   if test x$glibcpp_cv_func_expl_use = x"yes"; then
11765     for ac_func in expl
11766 do
11767 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11768 echo "configure:11769: checking for $ac_func" >&5
11769 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11770   echo $ac_n "(cached) $ac_c" 1>&6
11771 else
11772   cat > conftest.$ac_ext <<EOF
11773 #line 11774 "configure"
11774 #include "confdefs.h"
11775 /* System header to define __stub macros and hopefully few prototypes,
11776     which can conflict with char $ac_func(); below.  */
11777 #include <assert.h>
11778 /* Override any gcc2 internal prototype to avoid an error.  */
11779 /* We use char because int might match the return type of a gcc2
11780     builtin and then its argument prototype would still apply.  */
11781 char $ac_func();
11782
11783 int main() {
11784
11785 /* The GNU C library defines this for functions which it implements
11786     to always fail with ENOSYS.  Some functions are actually named
11787     something starting with __ and the normal name is an alias.  */
11788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11789 choke me
11790 #else
11791 $ac_func();
11792 #endif
11793
11794 ; return 0; }
11795 EOF
11796 if { (eval echo configure:11797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11797   rm -rf conftest*
11798   eval "ac_cv_func_$ac_func=yes"
11799 else
11800   echo "configure: failed program was:" >&5
11801   cat conftest.$ac_ext >&5
11802   rm -rf conftest*
11803   eval "ac_cv_func_$ac_func=no"
11804 fi
11805 rm -f conftest*
11806 fi
11807
11808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11809   echo "$ac_t""yes" 1>&6
11810     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11811   cat >> confdefs.h <<EOF
11812 #define $ac_tr_func 1
11813 EOF
11814  
11815 else
11816   echo "$ac_t""no" 1>&6
11817 fi
11818 done
11819     
11820   else
11821     
11822   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
11823 echo "configure:11824: checking for _expl declaration" >&5
11824   if test x${glibcpp_cv_func__expl_use+set} != xset; then
11825     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
11826   echo $ac_n "(cached) $ac_c" 1>&6
11827 else
11828   
11829       
11830       ac_ext=C
11831 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11832 ac_cpp='$CXXCPP $CPPFLAGS'
11833 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11834 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11835 cross_compiling=$ac_cv_prog_cxx_cross
11836
11837       cat > conftest.$ac_ext <<EOF
11838 #line 11839 "configure"
11839 #include "confdefs.h"
11840 #include <math.h>
11841                       #ifdef HAVE_IEEEFP_H
11842                       #include <ieeefp.h>
11843                       #endif
11844                      
11845 int main() {
11846  _expl(0);
11847 ; return 0; }
11848 EOF
11849 if { (eval echo configure:11850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11850   rm -rf conftest*
11851   glibcpp_cv_func__expl_use=yes
11852 else
11853   echo "configure: failed program was:" >&5
11854   cat conftest.$ac_ext >&5
11855   rm -rf conftest*
11856   glibcpp_cv_func__expl_use=no
11857 fi
11858 rm -f conftest*
11859       ac_ext=c
11860 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11861 ac_cpp='$CPP $CPPFLAGS'
11862 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11863 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11864 cross_compiling=$ac_cv_prog_cc_cross
11865
11866     
11867 fi
11868
11869   fi
11870   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
11871
11872     if test x$glibcpp_cv_func__expl_use = x"yes"; then
11873       for ac_func in _expl
11874 do
11875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11876 echo "configure:11877: checking for $ac_func" >&5
11877 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11878   echo $ac_n "(cached) $ac_c" 1>&6
11879 else
11880   cat > conftest.$ac_ext <<EOF
11881 #line 11882 "configure"
11882 #include "confdefs.h"
11883 /* System header to define __stub macros and hopefully few prototypes,
11884     which can conflict with char $ac_func(); below.  */
11885 #include <assert.h>
11886 /* Override any gcc2 internal prototype to avoid an error.  */
11887 /* We use char because int might match the return type of a gcc2
11888     builtin and then its argument prototype would still apply.  */
11889 char $ac_func();
11890
11891 int main() {
11892
11893 /* The GNU C library defines this for functions which it implements
11894     to always fail with ENOSYS.  Some functions are actually named
11895     something starting with __ and the normal name is an alias.  */
11896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11897 choke me
11898 #else
11899 $ac_func();
11900 #endif
11901
11902 ; return 0; }
11903 EOF
11904 if { (eval echo configure:11905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11905   rm -rf conftest*
11906   eval "ac_cv_func_$ac_func=yes"
11907 else
11908   echo "configure: failed program was:" >&5
11909   cat conftest.$ac_ext >&5
11910   rm -rf conftest*
11911   eval "ac_cv_func_$ac_func=no"
11912 fi
11913 rm -f conftest*
11914 fi
11915
11916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11917   echo "$ac_t""yes" 1>&6
11918     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11919   cat >> confdefs.h <<EOF
11920 #define $ac_tr_func 1
11921 EOF
11922  
11923 else
11924   echo "$ac_t""no" 1>&6
11925 fi
11926 done
11927     
11928     fi  
11929   fi
11930
11931   
11932   
11933   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
11934 echo "configure:11935: checking for fabsl declaration" >&5
11935   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
11936     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_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  fabsl(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_fabsl_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_fabsl_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_fabsl_use" 1>&6
11982
11983   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
11984     for ac_func in fabsl
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 _fabsl declaration""... $ac_c" 1>&6
12042 echo "configure:12043: checking for _fabsl declaration" >&5
12043   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
12044     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_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  _fabsl(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__fabsl_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__fabsl_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__fabsl_use" 1>&6
12090
12091     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
12092       for ac_func in _fabsl
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 fmodl declaration""... $ac_c" 1>&6
12153 echo "configure:12154: checking for fmodl declaration" >&5
12154   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
12155     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_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 int main() {
12172  fmodl(0, 0);
12173 ; return 0; }
12174 EOF
12175 if { (eval echo configure:12176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12176   rm -rf conftest*
12177   glibcpp_cv_func_fmodl_use=yes
12178 else
12179   echo "configure: failed program was:" >&5
12180   cat conftest.$ac_ext >&5
12181   rm -rf conftest*
12182   glibcpp_cv_func_fmodl_use=no
12183 fi
12184 rm -f conftest*
12185       ac_ext=c
12186 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12187 ac_cpp='$CPP $CPPFLAGS'
12188 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12189 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12190 cross_compiling=$ac_cv_prog_cc_cross
12191
12192     
12193 fi
12194
12195   fi
12196   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
12197
12198   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
12199     for ac_func in fmodl
12200 do
12201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12202 echo "configure:12203: checking for $ac_func" >&5
12203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12204   echo $ac_n "(cached) $ac_c" 1>&6
12205 else
12206   cat > conftest.$ac_ext <<EOF
12207 #line 12208 "configure"
12208 #include "confdefs.h"
12209 /* System header to define __stub macros and hopefully few prototypes,
12210     which can conflict with char $ac_func(); below.  */
12211 #include <assert.h>
12212 /* Override any gcc2 internal prototype to avoid an error.  */
12213 /* We use char because int might match the return type of a gcc2
12214     builtin and then its argument prototype would still apply.  */
12215 char $ac_func();
12216
12217 int main() {
12218
12219 /* The GNU C library defines this for functions which it implements
12220     to always fail with ENOSYS.  Some functions are actually named
12221     something starting with __ and the normal name is an alias.  */
12222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12223 choke me
12224 #else
12225 $ac_func();
12226 #endif
12227
12228 ; return 0; }
12229 EOF
12230 if { (eval echo configure:12231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12231   rm -rf conftest*
12232   eval "ac_cv_func_$ac_func=yes"
12233 else
12234   echo "configure: failed program was:" >&5
12235   cat conftest.$ac_ext >&5
12236   rm -rf conftest*
12237   eval "ac_cv_func_$ac_func=no"
12238 fi
12239 rm -f conftest*
12240 fi
12241
12242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12243   echo "$ac_t""yes" 1>&6
12244     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12245   cat >> confdefs.h <<EOF
12246 #define $ac_tr_func 1
12247 EOF
12248  
12249 else
12250   echo "$ac_t""no" 1>&6
12251 fi
12252 done
12253     
12254   else
12255     
12256   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
12257 echo "configure:12258: checking for _fmodl declaration" >&5
12258   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
12259     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
12260   echo $ac_n "(cached) $ac_c" 1>&6
12261 else
12262   
12263       
12264       ac_ext=C
12265 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12266 ac_cpp='$CXXCPP $CPPFLAGS'
12267 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12268 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12269 cross_compiling=$ac_cv_prog_cxx_cross
12270
12271       cat > conftest.$ac_ext <<EOF
12272 #line 12273 "configure"
12273 #include "confdefs.h"
12274 #include <math.h>
12275 int main() {
12276  _fmodl(0, 0);
12277 ; return 0; }
12278 EOF
12279 if { (eval echo configure:12280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12280   rm -rf conftest*
12281   glibcpp_cv_func__fmodl_use=yes
12282 else
12283   echo "configure: failed program was:" >&5
12284   cat conftest.$ac_ext >&5
12285   rm -rf conftest*
12286   glibcpp_cv_func__fmodl_use=no
12287 fi
12288 rm -f conftest*
12289       ac_ext=c
12290 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12291 ac_cpp='$CPP $CPPFLAGS'
12292 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12293 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12294 cross_compiling=$ac_cv_prog_cc_cross
12295
12296     
12297 fi
12298
12299   fi
12300   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
12301
12302     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
12303       for ac_func in _fmodl
12304 do
12305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12306 echo "configure:12307: checking for $ac_func" >&5
12307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12308   echo $ac_n "(cached) $ac_c" 1>&6
12309 else
12310   cat > conftest.$ac_ext <<EOF
12311 #line 12312 "configure"
12312 #include "confdefs.h"
12313 /* System header to define __stub macros and hopefully few prototypes,
12314     which can conflict with char $ac_func(); below.  */
12315 #include <assert.h>
12316 /* Override any gcc2 internal prototype to avoid an error.  */
12317 /* We use char because int might match the return type of a gcc2
12318     builtin and then its argument prototype would still apply.  */
12319 char $ac_func();
12320
12321 int main() {
12322
12323 /* The GNU C library defines this for functions which it implements
12324     to always fail with ENOSYS.  Some functions are actually named
12325     something starting with __ and the normal name is an alias.  */
12326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12327 choke me
12328 #else
12329 $ac_func();
12330 #endif
12331
12332 ; return 0; }
12333 EOF
12334 if { (eval echo configure:12335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12335   rm -rf conftest*
12336   eval "ac_cv_func_$ac_func=yes"
12337 else
12338   echo "configure: failed program was:" >&5
12339   cat conftest.$ac_ext >&5
12340   rm -rf conftest*
12341   eval "ac_cv_func_$ac_func=no"
12342 fi
12343 rm -f conftest*
12344 fi
12345
12346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12347   echo "$ac_t""yes" 1>&6
12348     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12349   cat >> confdefs.h <<EOF
12350 #define $ac_tr_func 1
12351 EOF
12352  
12353 else
12354   echo "$ac_t""no" 1>&6
12355 fi
12356 done
12357     
12358     fi  
12359   fi
12360
12361   
12362   
12363   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
12364 echo "configure:12365: checking for frexpl declaration" >&5
12365   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
12366     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
12367   echo $ac_n "(cached) $ac_c" 1>&6
12368 else
12369   
12370       
12371       ac_ext=C
12372 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12373 ac_cpp='$CXXCPP $CPPFLAGS'
12374 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12375 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12376 cross_compiling=$ac_cv_prog_cxx_cross
12377
12378       cat > conftest.$ac_ext <<EOF
12379 #line 12380 "configure"
12380 #include "confdefs.h"
12381 #include <math.h>
12382 int main() {
12383  frexpl(0, 0);
12384 ; return 0; }
12385 EOF
12386 if { (eval echo configure:12387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12387   rm -rf conftest*
12388   glibcpp_cv_func_frexpl_use=yes
12389 else
12390   echo "configure: failed program was:" >&5
12391   cat conftest.$ac_ext >&5
12392   rm -rf conftest*
12393   glibcpp_cv_func_frexpl_use=no
12394 fi
12395 rm -f conftest*
12396       ac_ext=c
12397 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12398 ac_cpp='$CPP $CPPFLAGS'
12399 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12400 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12401 cross_compiling=$ac_cv_prog_cc_cross
12402
12403     
12404 fi
12405
12406   fi
12407   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
12408
12409   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
12410     for ac_func in frexpl
12411 do
12412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12413 echo "configure:12414: checking for $ac_func" >&5
12414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12415   echo $ac_n "(cached) $ac_c" 1>&6
12416 else
12417   cat > conftest.$ac_ext <<EOF
12418 #line 12419 "configure"
12419 #include "confdefs.h"
12420 /* System header to define __stub macros and hopefully few prototypes,
12421     which can conflict with char $ac_func(); below.  */
12422 #include <assert.h>
12423 /* Override any gcc2 internal prototype to avoid an error.  */
12424 /* We use char because int might match the return type of a gcc2
12425     builtin and then its argument prototype would still apply.  */
12426 char $ac_func();
12427
12428 int main() {
12429
12430 /* The GNU C library defines this for functions which it implements
12431     to always fail with ENOSYS.  Some functions are actually named
12432     something starting with __ and the normal name is an alias.  */
12433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12434 choke me
12435 #else
12436 $ac_func();
12437 #endif
12438
12439 ; return 0; }
12440 EOF
12441 if { (eval echo configure:12442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12442   rm -rf conftest*
12443   eval "ac_cv_func_$ac_func=yes"
12444 else
12445   echo "configure: failed program was:" >&5
12446   cat conftest.$ac_ext >&5
12447   rm -rf conftest*
12448   eval "ac_cv_func_$ac_func=no"
12449 fi
12450 rm -f conftest*
12451 fi
12452
12453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12454   echo "$ac_t""yes" 1>&6
12455     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12456   cat >> confdefs.h <<EOF
12457 #define $ac_tr_func 1
12458 EOF
12459  
12460 else
12461   echo "$ac_t""no" 1>&6
12462 fi
12463 done
12464     
12465   else
12466     
12467   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
12468 echo "configure:12469: checking for _frexpl declaration" >&5
12469   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
12470     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
12471   echo $ac_n "(cached) $ac_c" 1>&6
12472 else
12473   
12474       
12475       ac_ext=C
12476 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12477 ac_cpp='$CXXCPP $CPPFLAGS'
12478 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12479 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12480 cross_compiling=$ac_cv_prog_cxx_cross
12481
12482       cat > conftest.$ac_ext <<EOF
12483 #line 12484 "configure"
12484 #include "confdefs.h"
12485 #include <math.h>
12486 int main() {
12487  _frexpl(0, 0);
12488 ; return 0; }
12489 EOF
12490 if { (eval echo configure:12491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12491   rm -rf conftest*
12492   glibcpp_cv_func__frexpl_use=yes
12493 else
12494   echo "configure: failed program was:" >&5
12495   cat conftest.$ac_ext >&5
12496   rm -rf conftest*
12497   glibcpp_cv_func__frexpl_use=no
12498 fi
12499 rm -f conftest*
12500       ac_ext=c
12501 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12502 ac_cpp='$CPP $CPPFLAGS'
12503 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12504 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12505 cross_compiling=$ac_cv_prog_cc_cross
12506
12507     
12508 fi
12509
12510   fi
12511   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
12512
12513     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
12514       for ac_func in _frexpl
12515 do
12516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12517 echo "configure:12518: checking for $ac_func" >&5
12518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12519   echo $ac_n "(cached) $ac_c" 1>&6
12520 else
12521   cat > conftest.$ac_ext <<EOF
12522 #line 12523 "configure"
12523 #include "confdefs.h"
12524 /* System header to define __stub macros and hopefully few prototypes,
12525     which can conflict with char $ac_func(); below.  */
12526 #include <assert.h>
12527 /* Override any gcc2 internal prototype to avoid an error.  */
12528 /* We use char because int might match the return type of a gcc2
12529     builtin and then its argument prototype would still apply.  */
12530 char $ac_func();
12531
12532 int main() {
12533
12534 /* The GNU C library defines this for functions which it implements
12535     to always fail with ENOSYS.  Some functions are actually named
12536     something starting with __ and the normal name is an alias.  */
12537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12538 choke me
12539 #else
12540 $ac_func();
12541 #endif
12542
12543 ; return 0; }
12544 EOF
12545 if { (eval echo configure:12546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12546   rm -rf conftest*
12547   eval "ac_cv_func_$ac_func=yes"
12548 else
12549   echo "configure: failed program was:" >&5
12550   cat conftest.$ac_ext >&5
12551   rm -rf conftest*
12552   eval "ac_cv_func_$ac_func=no"
12553 fi
12554 rm -f conftest*
12555 fi
12556
12557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12558   echo "$ac_t""yes" 1>&6
12559     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12560   cat >> confdefs.h <<EOF
12561 #define $ac_tr_func 1
12562 EOF
12563  
12564 else
12565   echo "$ac_t""no" 1>&6
12566 fi
12567 done
12568     
12569     fi  
12570   fi
12571
12572   
12573   
12574   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
12575 echo "configure:12576: checking for ldexpl declaration" >&5
12576   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
12577     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
12578   echo $ac_n "(cached) $ac_c" 1>&6
12579 else
12580   
12581       
12582       ac_ext=C
12583 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12584 ac_cpp='$CXXCPP $CPPFLAGS'
12585 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12586 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12587 cross_compiling=$ac_cv_prog_cxx_cross
12588
12589       cat > conftest.$ac_ext <<EOF
12590 #line 12591 "configure"
12591 #include "confdefs.h"
12592 #include <math.h>
12593 int main() {
12594  ldexpl(0, 0);
12595 ; return 0; }
12596 EOF
12597 if { (eval echo configure:12598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12598   rm -rf conftest*
12599   glibcpp_cv_func_ldexpl_use=yes
12600 else
12601   echo "configure: failed program was:" >&5
12602   cat conftest.$ac_ext >&5
12603   rm -rf conftest*
12604   glibcpp_cv_func_ldexpl_use=no
12605 fi
12606 rm -f conftest*
12607       ac_ext=c
12608 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12609 ac_cpp='$CPP $CPPFLAGS'
12610 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12611 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12612 cross_compiling=$ac_cv_prog_cc_cross
12613
12614     
12615 fi
12616
12617   fi
12618   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
12619
12620   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
12621     for ac_func in ldexpl
12622 do
12623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12624 echo "configure:12625: checking for $ac_func" >&5
12625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12626   echo $ac_n "(cached) $ac_c" 1>&6
12627 else
12628   cat > conftest.$ac_ext <<EOF
12629 #line 12630 "configure"
12630 #include "confdefs.h"
12631 /* System header to define __stub macros and hopefully few prototypes,
12632     which can conflict with char $ac_func(); below.  */
12633 #include <assert.h>
12634 /* Override any gcc2 internal prototype to avoid an error.  */
12635 /* We use char because int might match the return type of a gcc2
12636     builtin and then its argument prototype would still apply.  */
12637 char $ac_func();
12638
12639 int main() {
12640
12641 /* The GNU C library defines this for functions which it implements
12642     to always fail with ENOSYS.  Some functions are actually named
12643     something starting with __ and the normal name is an alias.  */
12644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12645 choke me
12646 #else
12647 $ac_func();
12648 #endif
12649
12650 ; return 0; }
12651 EOF
12652 if { (eval echo configure:12653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12653   rm -rf conftest*
12654   eval "ac_cv_func_$ac_func=yes"
12655 else
12656   echo "configure: failed program was:" >&5
12657   cat conftest.$ac_ext >&5
12658   rm -rf conftest*
12659   eval "ac_cv_func_$ac_func=no"
12660 fi
12661 rm -f conftest*
12662 fi
12663
12664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12665   echo "$ac_t""yes" 1>&6
12666     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12667   cat >> confdefs.h <<EOF
12668 #define $ac_tr_func 1
12669 EOF
12670  
12671 else
12672   echo "$ac_t""no" 1>&6
12673 fi
12674 done
12675     
12676   else
12677     
12678   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
12679 echo "configure:12680: checking for _ldexpl declaration" >&5
12680   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
12681     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
12682   echo $ac_n "(cached) $ac_c" 1>&6
12683 else
12684   
12685       
12686       ac_ext=C
12687 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12688 ac_cpp='$CXXCPP $CPPFLAGS'
12689 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12690 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12691 cross_compiling=$ac_cv_prog_cxx_cross
12692
12693       cat > conftest.$ac_ext <<EOF
12694 #line 12695 "configure"
12695 #include "confdefs.h"
12696 #include <math.h>
12697 int main() {
12698  _ldexpl(0, 0);
12699 ; return 0; }
12700 EOF
12701 if { (eval echo configure:12702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12702   rm -rf conftest*
12703   glibcpp_cv_func__ldexpl_use=yes
12704 else
12705   echo "configure: failed program was:" >&5
12706   cat conftest.$ac_ext >&5
12707   rm -rf conftest*
12708   glibcpp_cv_func__ldexpl_use=no
12709 fi
12710 rm -f conftest*
12711       ac_ext=c
12712 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12713 ac_cpp='$CPP $CPPFLAGS'
12714 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12715 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12716 cross_compiling=$ac_cv_prog_cc_cross
12717
12718     
12719 fi
12720
12721   fi
12722   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
12723
12724     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
12725       for ac_func in _ldexpl
12726 do
12727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12728 echo "configure:12729: checking for $ac_func" >&5
12729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12730   echo $ac_n "(cached) $ac_c" 1>&6
12731 else
12732   cat > conftest.$ac_ext <<EOF
12733 #line 12734 "configure"
12734 #include "confdefs.h"
12735 /* System header to define __stub macros and hopefully few prototypes,
12736     which can conflict with char $ac_func(); below.  */
12737 #include <assert.h>
12738 /* Override any gcc2 internal prototype to avoid an error.  */
12739 /* We use char because int might match the return type of a gcc2
12740     builtin and then its argument prototype would still apply.  */
12741 char $ac_func();
12742
12743 int main() {
12744
12745 /* The GNU C library defines this for functions which it implements
12746     to always fail with ENOSYS.  Some functions are actually named
12747     something starting with __ and the normal name is an alias.  */
12748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12749 choke me
12750 #else
12751 $ac_func();
12752 #endif
12753
12754 ; return 0; }
12755 EOF
12756 if { (eval echo configure:12757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12757   rm -rf conftest*
12758   eval "ac_cv_func_$ac_func=yes"
12759 else
12760   echo "configure: failed program was:" >&5
12761   cat conftest.$ac_ext >&5
12762   rm -rf conftest*
12763   eval "ac_cv_func_$ac_func=no"
12764 fi
12765 rm -f conftest*
12766 fi
12767
12768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12769   echo "$ac_t""yes" 1>&6
12770     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12771   cat >> confdefs.h <<EOF
12772 #define $ac_tr_func 1
12773 EOF
12774  
12775 else
12776   echo "$ac_t""no" 1>&6
12777 fi
12778 done
12779     
12780     fi  
12781   fi
12782
12783   
12784   
12785   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
12786 echo "configure:12787: checking for logl declaration" >&5
12787   if test x${glibcpp_cv_func_logl_use+set} != xset; then
12788     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
12789   echo $ac_n "(cached) $ac_c" 1>&6
12790 else
12791   
12792       
12793       ac_ext=C
12794 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12795 ac_cpp='$CXXCPP $CPPFLAGS'
12796 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12797 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12798 cross_compiling=$ac_cv_prog_cxx_cross
12799
12800       cat > conftest.$ac_ext <<EOF
12801 #line 12802 "configure"
12802 #include "confdefs.h"
12803 #include <math.h>
12804                       #ifdef HAVE_IEEEFP_H
12805                       #include <ieeefp.h>
12806                       #endif
12807                      
12808 int main() {
12809  logl(0);
12810 ; return 0; }
12811 EOF
12812 if { (eval echo configure:12813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12813   rm -rf conftest*
12814   glibcpp_cv_func_logl_use=yes
12815 else
12816   echo "configure: failed program was:" >&5
12817   cat conftest.$ac_ext >&5
12818   rm -rf conftest*
12819   glibcpp_cv_func_logl_use=no
12820 fi
12821 rm -f conftest*
12822       ac_ext=c
12823 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12824 ac_cpp='$CPP $CPPFLAGS'
12825 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12826 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12827 cross_compiling=$ac_cv_prog_cc_cross
12828
12829     
12830 fi
12831
12832   fi
12833   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
12834
12835   if test x$glibcpp_cv_func_logl_use = x"yes"; then
12836     for ac_func in logl
12837 do
12838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12839 echo "configure:12840: checking for $ac_func" >&5
12840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12841   echo $ac_n "(cached) $ac_c" 1>&6
12842 else
12843   cat > conftest.$ac_ext <<EOF
12844 #line 12845 "configure"
12845 #include "confdefs.h"
12846 /* System header to define __stub macros and hopefully few prototypes,
12847     which can conflict with char $ac_func(); below.  */
12848 #include <assert.h>
12849 /* Override any gcc2 internal prototype to avoid an error.  */
12850 /* We use char because int might match the return type of a gcc2
12851     builtin and then its argument prototype would still apply.  */
12852 char $ac_func();
12853
12854 int main() {
12855
12856 /* The GNU C library defines this for functions which it implements
12857     to always fail with ENOSYS.  Some functions are actually named
12858     something starting with __ and the normal name is an alias.  */
12859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12860 choke me
12861 #else
12862 $ac_func();
12863 #endif
12864
12865 ; return 0; }
12866 EOF
12867 if { (eval echo configure:12868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12868   rm -rf conftest*
12869   eval "ac_cv_func_$ac_func=yes"
12870 else
12871   echo "configure: failed program was:" >&5
12872   cat conftest.$ac_ext >&5
12873   rm -rf conftest*
12874   eval "ac_cv_func_$ac_func=no"
12875 fi
12876 rm -f conftest*
12877 fi
12878
12879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12880   echo "$ac_t""yes" 1>&6
12881     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12882   cat >> confdefs.h <<EOF
12883 #define $ac_tr_func 1
12884 EOF
12885  
12886 else
12887   echo "$ac_t""no" 1>&6
12888 fi
12889 done
12890     
12891   else
12892     
12893   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
12894 echo "configure:12895: checking for _logl declaration" >&5
12895   if test x${glibcpp_cv_func__logl_use+set} != xset; then
12896     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
12897   echo $ac_n "(cached) $ac_c" 1>&6
12898 else
12899   
12900       
12901       ac_ext=C
12902 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12903 ac_cpp='$CXXCPP $CPPFLAGS'
12904 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12905 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12906 cross_compiling=$ac_cv_prog_cxx_cross
12907
12908       cat > conftest.$ac_ext <<EOF
12909 #line 12910 "configure"
12910 #include "confdefs.h"
12911 #include <math.h>
12912                       #ifdef HAVE_IEEEFP_H
12913                       #include <ieeefp.h>
12914                       #endif
12915                      
12916 int main() {
12917  _logl(0);
12918 ; return 0; }
12919 EOF
12920 if { (eval echo configure:12921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12921   rm -rf conftest*
12922   glibcpp_cv_func__logl_use=yes
12923 else
12924   echo "configure: failed program was:" >&5
12925   cat conftest.$ac_ext >&5
12926   rm -rf conftest*
12927   glibcpp_cv_func__logl_use=no
12928 fi
12929 rm -f conftest*
12930       ac_ext=c
12931 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12932 ac_cpp='$CPP $CPPFLAGS'
12933 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12934 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12935 cross_compiling=$ac_cv_prog_cc_cross
12936
12937     
12938 fi
12939
12940   fi
12941   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
12942
12943     if test x$glibcpp_cv_func__logl_use = x"yes"; then
12944       for ac_func in _logl
12945 do
12946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12947 echo "configure:12948: checking for $ac_func" >&5
12948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12949   echo $ac_n "(cached) $ac_c" 1>&6
12950 else
12951   cat > conftest.$ac_ext <<EOF
12952 #line 12953 "configure"
12953 #include "confdefs.h"
12954 /* System header to define __stub macros and hopefully few prototypes,
12955     which can conflict with char $ac_func(); below.  */
12956 #include <assert.h>
12957 /* Override any gcc2 internal prototype to avoid an error.  */
12958 /* We use char because int might match the return type of a gcc2
12959     builtin and then its argument prototype would still apply.  */
12960 char $ac_func();
12961
12962 int main() {
12963
12964 /* The GNU C library defines this for functions which it implements
12965     to always fail with ENOSYS.  Some functions are actually named
12966     something starting with __ and the normal name is an alias.  */
12967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12968 choke me
12969 #else
12970 $ac_func();
12971 #endif
12972
12973 ; return 0; }
12974 EOF
12975 if { (eval echo configure:12976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12976   rm -rf conftest*
12977   eval "ac_cv_func_$ac_func=yes"
12978 else
12979   echo "configure: failed program was:" >&5
12980   cat conftest.$ac_ext >&5
12981   rm -rf conftest*
12982   eval "ac_cv_func_$ac_func=no"
12983 fi
12984 rm -f conftest*
12985 fi
12986
12987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12988   echo "$ac_t""yes" 1>&6
12989     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12990   cat >> confdefs.h <<EOF
12991 #define $ac_tr_func 1
12992 EOF
12993  
12994 else
12995   echo "$ac_t""no" 1>&6
12996 fi
12997 done
12998     
12999     fi  
13000   fi
13001
13002   
13003   
13004   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
13005 echo "configure:13006: checking for log10l declaration" >&5
13006   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
13007     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
13008   echo $ac_n "(cached) $ac_c" 1>&6
13009 else
13010   
13011       
13012       ac_ext=C
13013 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13014 ac_cpp='$CXXCPP $CPPFLAGS'
13015 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13016 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13017 cross_compiling=$ac_cv_prog_cxx_cross
13018
13019       cat > conftest.$ac_ext <<EOF
13020 #line 13021 "configure"
13021 #include "confdefs.h"
13022 #include <math.h>
13023                       #ifdef HAVE_IEEEFP_H
13024                       #include <ieeefp.h>
13025                       #endif
13026                      
13027 int main() {
13028  log10l(0);
13029 ; return 0; }
13030 EOF
13031 if { (eval echo configure:13032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13032   rm -rf conftest*
13033   glibcpp_cv_func_log10l_use=yes
13034 else
13035   echo "configure: failed program was:" >&5
13036   cat conftest.$ac_ext >&5
13037   rm -rf conftest*
13038   glibcpp_cv_func_log10l_use=no
13039 fi
13040 rm -f conftest*
13041       ac_ext=c
13042 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13043 ac_cpp='$CPP $CPPFLAGS'
13044 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13045 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13046 cross_compiling=$ac_cv_prog_cc_cross
13047
13048     
13049 fi
13050
13051   fi
13052   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
13053
13054   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
13055     for ac_func in log10l
13056 do
13057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13058 echo "configure:13059: checking for $ac_func" >&5
13059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13060   echo $ac_n "(cached) $ac_c" 1>&6
13061 else
13062   cat > conftest.$ac_ext <<EOF
13063 #line 13064 "configure"
13064 #include "confdefs.h"
13065 /* System header to define __stub macros and hopefully few prototypes,
13066     which can conflict with char $ac_func(); below.  */
13067 #include <assert.h>
13068 /* Override any gcc2 internal prototype to avoid an error.  */
13069 /* We use char because int might match the return type of a gcc2
13070     builtin and then its argument prototype would still apply.  */
13071 char $ac_func();
13072
13073 int main() {
13074
13075 /* The GNU C library defines this for functions which it implements
13076     to always fail with ENOSYS.  Some functions are actually named
13077     something starting with __ and the normal name is an alias.  */
13078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13079 choke me
13080 #else
13081 $ac_func();
13082 #endif
13083
13084 ; return 0; }
13085 EOF
13086 if { (eval echo configure:13087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13087   rm -rf conftest*
13088   eval "ac_cv_func_$ac_func=yes"
13089 else
13090   echo "configure: failed program was:" >&5
13091   cat conftest.$ac_ext >&5
13092   rm -rf conftest*
13093   eval "ac_cv_func_$ac_func=no"
13094 fi
13095 rm -f conftest*
13096 fi
13097
13098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13099   echo "$ac_t""yes" 1>&6
13100     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13101   cat >> confdefs.h <<EOF
13102 #define $ac_tr_func 1
13103 EOF
13104  
13105 else
13106   echo "$ac_t""no" 1>&6
13107 fi
13108 done
13109     
13110   else
13111     
13112   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
13113 echo "configure:13114: checking for _log10l declaration" >&5
13114   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
13115     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
13116   echo $ac_n "(cached) $ac_c" 1>&6
13117 else
13118   
13119       
13120       ac_ext=C
13121 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13122 ac_cpp='$CXXCPP $CPPFLAGS'
13123 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13124 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13125 cross_compiling=$ac_cv_prog_cxx_cross
13126
13127       cat > conftest.$ac_ext <<EOF
13128 #line 13129 "configure"
13129 #include "confdefs.h"
13130 #include <math.h>
13131                       #ifdef HAVE_IEEEFP_H
13132                       #include <ieeefp.h>
13133                       #endif
13134                      
13135 int main() {
13136  _log10l(0);
13137 ; return 0; }
13138 EOF
13139 if { (eval echo configure:13140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13140   rm -rf conftest*
13141   glibcpp_cv_func__log10l_use=yes
13142 else
13143   echo "configure: failed program was:" >&5
13144   cat conftest.$ac_ext >&5
13145   rm -rf conftest*
13146   glibcpp_cv_func__log10l_use=no
13147 fi
13148 rm -f conftest*
13149       ac_ext=c
13150 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13151 ac_cpp='$CPP $CPPFLAGS'
13152 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13153 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13154 cross_compiling=$ac_cv_prog_cc_cross
13155
13156     
13157 fi
13158
13159   fi
13160   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
13161
13162     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
13163       for ac_func in _log10l
13164 do
13165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13166 echo "configure:13167: checking for $ac_func" >&5
13167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13168   echo $ac_n "(cached) $ac_c" 1>&6
13169 else
13170   cat > conftest.$ac_ext <<EOF
13171 #line 13172 "configure"
13172 #include "confdefs.h"
13173 /* System header to define __stub macros and hopefully few prototypes,
13174     which can conflict with char $ac_func(); below.  */
13175 #include <assert.h>
13176 /* Override any gcc2 internal prototype to avoid an error.  */
13177 /* We use char because int might match the return type of a gcc2
13178     builtin and then its argument prototype would still apply.  */
13179 char $ac_func();
13180
13181 int main() {
13182
13183 /* The GNU C library defines this for functions which it implements
13184     to always fail with ENOSYS.  Some functions are actually named
13185     something starting with __ and the normal name is an alias.  */
13186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13187 choke me
13188 #else
13189 $ac_func();
13190 #endif
13191
13192 ; return 0; }
13193 EOF
13194 if { (eval echo configure:13195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13195   rm -rf conftest*
13196   eval "ac_cv_func_$ac_func=yes"
13197 else
13198   echo "configure: failed program was:" >&5
13199   cat conftest.$ac_ext >&5
13200   rm -rf conftest*
13201   eval "ac_cv_func_$ac_func=no"
13202 fi
13203 rm -f conftest*
13204 fi
13205
13206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13207   echo "$ac_t""yes" 1>&6
13208     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13209   cat >> confdefs.h <<EOF
13210 #define $ac_tr_func 1
13211 EOF
13212  
13213 else
13214   echo "$ac_t""no" 1>&6
13215 fi
13216 done
13217     
13218     fi  
13219   fi
13220
13221   
13222   
13223   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
13224 echo "configure:13225: checking for modfl declaration" >&5
13225   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
13226     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
13227   echo $ac_n "(cached) $ac_c" 1>&6
13228 else
13229   
13230       
13231       ac_ext=C
13232 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13233 ac_cpp='$CXXCPP $CPPFLAGS'
13234 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13235 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13236 cross_compiling=$ac_cv_prog_cxx_cross
13237
13238       cat > conftest.$ac_ext <<EOF
13239 #line 13240 "configure"
13240 #include "confdefs.h"
13241 #include <math.h>
13242 int main() {
13243  modfl(0, 0);
13244 ; return 0; }
13245 EOF
13246 if { (eval echo configure:13247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13247   rm -rf conftest*
13248   glibcpp_cv_func_modfl_use=yes
13249 else
13250   echo "configure: failed program was:" >&5
13251   cat conftest.$ac_ext >&5
13252   rm -rf conftest*
13253   glibcpp_cv_func_modfl_use=no
13254 fi
13255 rm -f conftest*
13256       ac_ext=c
13257 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13258 ac_cpp='$CPP $CPPFLAGS'
13259 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13260 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13261 cross_compiling=$ac_cv_prog_cc_cross
13262
13263     
13264 fi
13265
13266   fi
13267   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
13268
13269   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
13270     for ac_func in modfl
13271 do
13272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13273 echo "configure:13274: checking for $ac_func" >&5
13274 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13275   echo $ac_n "(cached) $ac_c" 1>&6
13276 else
13277   cat > conftest.$ac_ext <<EOF
13278 #line 13279 "configure"
13279 #include "confdefs.h"
13280 /* System header to define __stub macros and hopefully few prototypes,
13281     which can conflict with char $ac_func(); below.  */
13282 #include <assert.h>
13283 /* Override any gcc2 internal prototype to avoid an error.  */
13284 /* We use char because int might match the return type of a gcc2
13285     builtin and then its argument prototype would still apply.  */
13286 char $ac_func();
13287
13288 int main() {
13289
13290 /* The GNU C library defines this for functions which it implements
13291     to always fail with ENOSYS.  Some functions are actually named
13292     something starting with __ and the normal name is an alias.  */
13293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13294 choke me
13295 #else
13296 $ac_func();
13297 #endif
13298
13299 ; return 0; }
13300 EOF
13301 if { (eval echo configure:13302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13302   rm -rf conftest*
13303   eval "ac_cv_func_$ac_func=yes"
13304 else
13305   echo "configure: failed program was:" >&5
13306   cat conftest.$ac_ext >&5
13307   rm -rf conftest*
13308   eval "ac_cv_func_$ac_func=no"
13309 fi
13310 rm -f conftest*
13311 fi
13312
13313 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13314   echo "$ac_t""yes" 1>&6
13315     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13316   cat >> confdefs.h <<EOF
13317 #define $ac_tr_func 1
13318 EOF
13319  
13320 else
13321   echo "$ac_t""no" 1>&6
13322 fi
13323 done
13324     
13325   else
13326     
13327   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
13328 echo "configure:13329: checking for _modfl declaration" >&5
13329   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
13330     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
13331   echo $ac_n "(cached) $ac_c" 1>&6
13332 else
13333   
13334       
13335       ac_ext=C
13336 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13337 ac_cpp='$CXXCPP $CPPFLAGS'
13338 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13339 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13340 cross_compiling=$ac_cv_prog_cxx_cross
13341
13342       cat > conftest.$ac_ext <<EOF
13343 #line 13344 "configure"
13344 #include "confdefs.h"
13345 #include <math.h>
13346 int main() {
13347  _modfl(0, 0);
13348 ; return 0; }
13349 EOF
13350 if { (eval echo configure:13351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13351   rm -rf conftest*
13352   glibcpp_cv_func__modfl_use=yes
13353 else
13354   echo "configure: failed program was:" >&5
13355   cat conftest.$ac_ext >&5
13356   rm -rf conftest*
13357   glibcpp_cv_func__modfl_use=no
13358 fi
13359 rm -f conftest*
13360       ac_ext=c
13361 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13362 ac_cpp='$CPP $CPPFLAGS'
13363 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13364 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13365 cross_compiling=$ac_cv_prog_cc_cross
13366
13367     
13368 fi
13369
13370   fi
13371   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
13372
13373     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
13374       for ac_func in _modfl
13375 do
13376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13377 echo "configure:13378: checking for $ac_func" >&5
13378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13379   echo $ac_n "(cached) $ac_c" 1>&6
13380 else
13381   cat > conftest.$ac_ext <<EOF
13382 #line 13383 "configure"
13383 #include "confdefs.h"
13384 /* System header to define __stub macros and hopefully few prototypes,
13385     which can conflict with char $ac_func(); below.  */
13386 #include <assert.h>
13387 /* Override any gcc2 internal prototype to avoid an error.  */
13388 /* We use char because int might match the return type of a gcc2
13389     builtin and then its argument prototype would still apply.  */
13390 char $ac_func();
13391
13392 int main() {
13393
13394 /* The GNU C library defines this for functions which it implements
13395     to always fail with ENOSYS.  Some functions are actually named
13396     something starting with __ and the normal name is an alias.  */
13397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13398 choke me
13399 #else
13400 $ac_func();
13401 #endif
13402
13403 ; return 0; }
13404 EOF
13405 if { (eval echo configure:13406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13406   rm -rf conftest*
13407   eval "ac_cv_func_$ac_func=yes"
13408 else
13409   echo "configure: failed program was:" >&5
13410   cat conftest.$ac_ext >&5
13411   rm -rf conftest*
13412   eval "ac_cv_func_$ac_func=no"
13413 fi
13414 rm -f conftest*
13415 fi
13416
13417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13418   echo "$ac_t""yes" 1>&6
13419     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13420   cat >> confdefs.h <<EOF
13421 #define $ac_tr_func 1
13422 EOF
13423  
13424 else
13425   echo "$ac_t""no" 1>&6
13426 fi
13427 done
13428     
13429     fi  
13430   fi
13431
13432   
13433   
13434   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
13435 echo "configure:13436: checking for powl declaration" >&5
13436   if test x${glibcpp_cv_func_powl_use+set} != xset; then
13437     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
13438   echo $ac_n "(cached) $ac_c" 1>&6
13439 else
13440   
13441       
13442       ac_ext=C
13443 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13444 ac_cpp='$CXXCPP $CPPFLAGS'
13445 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13446 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13447 cross_compiling=$ac_cv_prog_cxx_cross
13448
13449       cat > conftest.$ac_ext <<EOF
13450 #line 13451 "configure"
13451 #include "confdefs.h"
13452 #include <math.h>
13453 int main() {
13454  powl(0, 0);
13455 ; return 0; }
13456 EOF
13457 if { (eval echo configure:13458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13458   rm -rf conftest*
13459   glibcpp_cv_func_powl_use=yes
13460 else
13461   echo "configure: failed program was:" >&5
13462   cat conftest.$ac_ext >&5
13463   rm -rf conftest*
13464   glibcpp_cv_func_powl_use=no
13465 fi
13466 rm -f conftest*
13467       ac_ext=c
13468 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13469 ac_cpp='$CPP $CPPFLAGS'
13470 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13471 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13472 cross_compiling=$ac_cv_prog_cc_cross
13473
13474     
13475 fi
13476
13477   fi
13478   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
13479
13480   if test x$glibcpp_cv_func_powl_use = x"yes"; then
13481     for ac_func in powl
13482 do
13483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13484 echo "configure:13485: checking for $ac_func" >&5
13485 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13486   echo $ac_n "(cached) $ac_c" 1>&6
13487 else
13488   cat > conftest.$ac_ext <<EOF
13489 #line 13490 "configure"
13490 #include "confdefs.h"
13491 /* System header to define __stub macros and hopefully few prototypes,
13492     which can conflict with char $ac_func(); below.  */
13493 #include <assert.h>
13494 /* Override any gcc2 internal prototype to avoid an error.  */
13495 /* We use char because int might match the return type of a gcc2
13496     builtin and then its argument prototype would still apply.  */
13497 char $ac_func();
13498
13499 int main() {
13500
13501 /* The GNU C library defines this for functions which it implements
13502     to always fail with ENOSYS.  Some functions are actually named
13503     something starting with __ and the normal name is an alias.  */
13504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13505 choke me
13506 #else
13507 $ac_func();
13508 #endif
13509
13510 ; return 0; }
13511 EOF
13512 if { (eval echo configure:13513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13513   rm -rf conftest*
13514   eval "ac_cv_func_$ac_func=yes"
13515 else
13516   echo "configure: failed program was:" >&5
13517   cat conftest.$ac_ext >&5
13518   rm -rf conftest*
13519   eval "ac_cv_func_$ac_func=no"
13520 fi
13521 rm -f conftest*
13522 fi
13523
13524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13525   echo "$ac_t""yes" 1>&6
13526     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13527   cat >> confdefs.h <<EOF
13528 #define $ac_tr_func 1
13529 EOF
13530  
13531 else
13532   echo "$ac_t""no" 1>&6
13533 fi
13534 done
13535     
13536   else
13537     
13538   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
13539 echo "configure:13540: checking for _powl declaration" >&5
13540   if test x${glibcpp_cv_func__powl_use+set} != xset; then
13541     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
13542   echo $ac_n "(cached) $ac_c" 1>&6
13543 else
13544   
13545       
13546       ac_ext=C
13547 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13548 ac_cpp='$CXXCPP $CPPFLAGS'
13549 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13550 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13551 cross_compiling=$ac_cv_prog_cxx_cross
13552
13553       cat > conftest.$ac_ext <<EOF
13554 #line 13555 "configure"
13555 #include "confdefs.h"
13556 #include <math.h>
13557 int main() {
13558  _powl(0, 0);
13559 ; return 0; }
13560 EOF
13561 if { (eval echo configure:13562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13562   rm -rf conftest*
13563   glibcpp_cv_func__powl_use=yes
13564 else
13565   echo "configure: failed program was:" >&5
13566   cat conftest.$ac_ext >&5
13567   rm -rf conftest*
13568   glibcpp_cv_func__powl_use=no
13569 fi
13570 rm -f conftest*
13571       ac_ext=c
13572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13573 ac_cpp='$CPP $CPPFLAGS'
13574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13576 cross_compiling=$ac_cv_prog_cc_cross
13577
13578     
13579 fi
13580
13581   fi
13582   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
13583
13584     if test x$glibcpp_cv_func__powl_use = x"yes"; then
13585       for ac_func in _powl
13586 do
13587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13588 echo "configure:13589: checking for $ac_func" >&5
13589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13590   echo $ac_n "(cached) $ac_c" 1>&6
13591 else
13592   cat > conftest.$ac_ext <<EOF
13593 #line 13594 "configure"
13594 #include "confdefs.h"
13595 /* System header to define __stub macros and hopefully few prototypes,
13596     which can conflict with char $ac_func(); below.  */
13597 #include <assert.h>
13598 /* Override any gcc2 internal prototype to avoid an error.  */
13599 /* We use char because int might match the return type of a gcc2
13600     builtin and then its argument prototype would still apply.  */
13601 char $ac_func();
13602
13603 int main() {
13604
13605 /* The GNU C library defines this for functions which it implements
13606     to always fail with ENOSYS.  Some functions are actually named
13607     something starting with __ and the normal name is an alias.  */
13608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13609 choke me
13610 #else
13611 $ac_func();
13612 #endif
13613
13614 ; return 0; }
13615 EOF
13616 if { (eval echo configure:13617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13617   rm -rf conftest*
13618   eval "ac_cv_func_$ac_func=yes"
13619 else
13620   echo "configure: failed program was:" >&5
13621   cat conftest.$ac_ext >&5
13622   rm -rf conftest*
13623   eval "ac_cv_func_$ac_func=no"
13624 fi
13625 rm -f conftest*
13626 fi
13627
13628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13629   echo "$ac_t""yes" 1>&6
13630     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13631   cat >> confdefs.h <<EOF
13632 #define $ac_tr_func 1
13633 EOF
13634  
13635 else
13636   echo "$ac_t""no" 1>&6
13637 fi
13638 done
13639     
13640     fi  
13641   fi
13642
13643   
13644   
13645   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
13646 echo "configure:13647: checking for sqrtl declaration" >&5
13647   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
13648     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
13649   echo $ac_n "(cached) $ac_c" 1>&6
13650 else
13651   
13652       
13653       ac_ext=C
13654 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13655 ac_cpp='$CXXCPP $CPPFLAGS'
13656 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13657 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13658 cross_compiling=$ac_cv_prog_cxx_cross
13659
13660       cat > conftest.$ac_ext <<EOF
13661 #line 13662 "configure"
13662 #include "confdefs.h"
13663 #include <math.h>
13664                       #ifdef HAVE_IEEEFP_H
13665                       #include <ieeefp.h>
13666                       #endif
13667                      
13668 int main() {
13669  sqrtl(0);
13670 ; return 0; }
13671 EOF
13672 if { (eval echo configure:13673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13673   rm -rf conftest*
13674   glibcpp_cv_func_sqrtl_use=yes
13675 else
13676   echo "configure: failed program was:" >&5
13677   cat conftest.$ac_ext >&5
13678   rm -rf conftest*
13679   glibcpp_cv_func_sqrtl_use=no
13680 fi
13681 rm -f conftest*
13682       ac_ext=c
13683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13684 ac_cpp='$CPP $CPPFLAGS'
13685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13687 cross_compiling=$ac_cv_prog_cc_cross
13688
13689     
13690 fi
13691
13692   fi
13693   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
13694
13695   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
13696     for ac_func in sqrtl
13697 do
13698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13699 echo "configure:13700: checking for $ac_func" >&5
13700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13701   echo $ac_n "(cached) $ac_c" 1>&6
13702 else
13703   cat > conftest.$ac_ext <<EOF
13704 #line 13705 "configure"
13705 #include "confdefs.h"
13706 /* System header to define __stub macros and hopefully few prototypes,
13707     which can conflict with char $ac_func(); below.  */
13708 #include <assert.h>
13709 /* Override any gcc2 internal prototype to avoid an error.  */
13710 /* We use char because int might match the return type of a gcc2
13711     builtin and then its argument prototype would still apply.  */
13712 char $ac_func();
13713
13714 int main() {
13715
13716 /* The GNU C library defines this for functions which it implements
13717     to always fail with ENOSYS.  Some functions are actually named
13718     something starting with __ and the normal name is an alias.  */
13719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13720 choke me
13721 #else
13722 $ac_func();
13723 #endif
13724
13725 ; return 0; }
13726 EOF
13727 if { (eval echo configure:13728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13728   rm -rf conftest*
13729   eval "ac_cv_func_$ac_func=yes"
13730 else
13731   echo "configure: failed program was:" >&5
13732   cat conftest.$ac_ext >&5
13733   rm -rf conftest*
13734   eval "ac_cv_func_$ac_func=no"
13735 fi
13736 rm -f conftest*
13737 fi
13738
13739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13740   echo "$ac_t""yes" 1>&6
13741     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13742   cat >> confdefs.h <<EOF
13743 #define $ac_tr_func 1
13744 EOF
13745  
13746 else
13747   echo "$ac_t""no" 1>&6
13748 fi
13749 done
13750     
13751   else
13752     
13753   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
13754 echo "configure:13755: checking for _sqrtl declaration" >&5
13755   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
13756     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
13757   echo $ac_n "(cached) $ac_c" 1>&6
13758 else
13759   
13760       
13761       ac_ext=C
13762 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13763 ac_cpp='$CXXCPP $CPPFLAGS'
13764 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13765 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13766 cross_compiling=$ac_cv_prog_cxx_cross
13767
13768       cat > conftest.$ac_ext <<EOF
13769 #line 13770 "configure"
13770 #include "confdefs.h"
13771 #include <math.h>
13772                       #ifdef HAVE_IEEEFP_H
13773                       #include <ieeefp.h>
13774                       #endif
13775                      
13776 int main() {
13777  _sqrtl(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__sqrtl_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__sqrtl_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__sqrtl_use" 1>&6
13802
13803     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
13804       for ac_func in _sqrtl
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 sincosl declaration""... $ac_c" 1>&6
13865 echo "configure:13866: checking for sincosl declaration" >&5
13866   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
13867     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_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  sincosl(0, 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_sincosl_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_sincosl_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_sincosl_use" 1>&6
13909
13910   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
13911     for ac_func in sincosl
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 _sincosl declaration""... $ac_c" 1>&6
13969 echo "configure:13970: checking for _sincosl declaration" >&5
13970   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
13971     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_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  _sincosl(0, 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__sincosl_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__sincosl_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__sincosl_use" 1>&6
14013
14014     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
14015       for ac_func in _sincosl
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 finitel declaration""... $ac_c" 1>&6
14076 echo "configure:14077: checking for finitel declaration" >&5
14077   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
14078     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_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  finitel(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_finitel_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_finitel_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_finitel_use" 1>&6
14124
14125   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
14126     for ac_func in finitel
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 _finitel declaration""... $ac_c" 1>&6
14184 echo "configure:14185: checking for _finitel declaration" >&5
14185   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
14186     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_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  _finitel(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__finitel_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__finitel_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__finitel_use" 1>&6
14232
14233     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
14234       for ac_func in _finitel
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     
14295   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
14296 echo "configure:14297: checking for _float trig functions" >&5
14297   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_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 int main() {
14314  `for x in _acosf _asinf _atanf \
14315                                           _cosf _sinf _tanf \
14316                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
14317 ; return 0; }
14318 EOF
14319 if { (eval echo configure:14320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14320   rm -rf conftest*
14321   glibcpp_cv_func__float_trig_use=yes
14322 else
14323   echo "configure: failed program was:" >&5
14324   cat conftest.$ac_ext >&5
14325   rm -rf conftest*
14326   glibcpp_cv_func__float_trig_use=no
14327 fi
14328 rm -f conftest*
14329     ac_ext=c
14330 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14331 ac_cpp='$CPP $CPPFLAGS'
14332 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14333 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14334 cross_compiling=$ac_cv_prog_cc_cross
14335
14336 fi
14337
14338   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
14339   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
14340     for ac_func in _acosf _asinf _atanf \
14341                                           _cosf _sinf _tanf \
14342                                           _coshf _sinhf _tanhf
14343 do
14344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14345 echo "configure:14346: checking for $ac_func" >&5
14346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14347   echo $ac_n "(cached) $ac_c" 1>&6
14348 else
14349   cat > conftest.$ac_ext <<EOF
14350 #line 14351 "configure"
14351 #include "confdefs.h"
14352 /* System header to define __stub macros and hopefully few prototypes,
14353     which can conflict with char $ac_func(); below.  */
14354 #include <assert.h>
14355 /* Override any gcc2 internal prototype to avoid an error.  */
14356 /* We use char because int might match the return type of a gcc2
14357     builtin and then its argument prototype would still apply.  */
14358 char $ac_func();
14359
14360 int main() {
14361
14362 /* The GNU C library defines this for functions which it implements
14363     to always fail with ENOSYS.  Some functions are actually named
14364     something starting with __ and the normal name is an alias.  */
14365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14366 choke me
14367 #else
14368 $ac_func();
14369 #endif
14370
14371 ; return 0; }
14372 EOF
14373 if { (eval echo configure:14374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14374   rm -rf conftest*
14375   eval "ac_cv_func_$ac_func=yes"
14376 else
14377   echo "configure: failed program was:" >&5
14378   cat conftest.$ac_ext >&5
14379   rm -rf conftest*
14380   eval "ac_cv_func_$ac_func=no"
14381 fi
14382 rm -f conftest*
14383 fi
14384
14385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14386   echo "$ac_t""yes" 1>&6
14387     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14388   cat >> confdefs.h <<EOF
14389 #define $ac_tr_func 1
14390 EOF
14391  
14392 else
14393   echo "$ac_t""no" 1>&6
14394 fi
14395 done
14396
14397   fi
14398
14399   
14400   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
14401 echo "configure:14402: checking for _float round functions" >&5
14402   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
14403   echo $ac_n "(cached) $ac_c" 1>&6
14404 else
14405   
14406     
14407     ac_ext=C
14408 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14409 ac_cpp='$CXXCPP $CPPFLAGS'
14410 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14411 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14412 cross_compiling=$ac_cv_prog_cxx_cross
14413
14414     cat > conftest.$ac_ext <<EOF
14415 #line 14416 "configure"
14416 #include "confdefs.h"
14417 #include <math.h>
14418 int main() {
14419  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
14420 ; return 0; }
14421 EOF
14422 if { (eval echo configure:14423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14423   rm -rf conftest*
14424   glibcpp_cv_func__float_round_use=yes
14425 else
14426   echo "configure: failed program was:" >&5
14427   cat conftest.$ac_ext >&5
14428   rm -rf conftest*
14429   glibcpp_cv_func__float_round_use=no
14430 fi
14431 rm -f conftest*
14432     ac_ext=c
14433 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14434 ac_cpp='$CPP $CPPFLAGS'
14435 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14436 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14437 cross_compiling=$ac_cv_prog_cc_cross
14438
14439 fi
14440
14441   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
14442   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
14443     for ac_func in _ceilf _floorf
14444 do
14445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14446 echo "configure:14447: checking for $ac_func" >&5
14447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14448   echo $ac_n "(cached) $ac_c" 1>&6
14449 else
14450   cat > conftest.$ac_ext <<EOF
14451 #line 14452 "configure"
14452 #include "confdefs.h"
14453 /* System header to define __stub macros and hopefully few prototypes,
14454     which can conflict with char $ac_func(); below.  */
14455 #include <assert.h>
14456 /* Override any gcc2 internal prototype to avoid an error.  */
14457 /* We use char because int might match the return type of a gcc2
14458     builtin and then its argument prototype would still apply.  */
14459 char $ac_func();
14460
14461 int main() {
14462
14463 /* The GNU C library defines this for functions which it implements
14464     to always fail with ENOSYS.  Some functions are actually named
14465     something starting with __ and the normal name is an alias.  */
14466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14467 choke me
14468 #else
14469 $ac_func();
14470 #endif
14471
14472 ; return 0; }
14473 EOF
14474 if { (eval echo configure:14475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14475   rm -rf conftest*
14476   eval "ac_cv_func_$ac_func=yes"
14477 else
14478   echo "configure: failed program was:" >&5
14479   cat conftest.$ac_ext >&5
14480   rm -rf conftest*
14481   eval "ac_cv_func_$ac_func=no"
14482 fi
14483 rm -f conftest*
14484 fi
14485
14486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14487   echo "$ac_t""yes" 1>&6
14488     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14489   cat >> confdefs.h <<EOF
14490 #define $ac_tr_func 1
14491 EOF
14492  
14493 else
14494   echo "$ac_t""no" 1>&6
14495 fi
14496 done
14497
14498   fi
14499
14500
14501     
14502   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
14503 echo "configure:14504: checking for _long double trig functions" >&5
14504   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
14505   echo $ac_n "(cached) $ac_c" 1>&6
14506 else
14507   
14508     
14509     ac_ext=C
14510 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14511 ac_cpp='$CXXCPP $CPPFLAGS'
14512 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14513 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14514 cross_compiling=$ac_cv_prog_cxx_cross
14515
14516     cat > conftest.$ac_ext <<EOF
14517 #line 14518 "configure"
14518 #include "confdefs.h"
14519 #include <math.h>
14520 int main() {
14521  `for x in _acosl _asinl _atanl \
14522                                           _cosl _sinl _tanl \
14523                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
14524 ; return 0; }
14525 EOF
14526 if { (eval echo configure:14527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14527   rm -rf conftest*
14528   glibcpp_cv_func__long_double_trig_use=yes
14529 else
14530   echo "configure: failed program was:" >&5
14531   cat conftest.$ac_ext >&5
14532   rm -rf conftest*
14533   glibcpp_cv_func__long_double_trig_use=no
14534 fi
14535 rm -f conftest*
14536     ac_ext=c
14537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14538 ac_cpp='$CPP $CPPFLAGS'
14539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14541 cross_compiling=$ac_cv_prog_cc_cross
14542
14543 fi
14544
14545   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
14546   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
14547     for ac_func in _acosl _asinl _atanl \
14548                                           _cosl _sinl _tanl \
14549                                           _coshl _sinhl _tanhl
14550 do
14551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14552 echo "configure:14553: checking for $ac_func" >&5
14553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14554   echo $ac_n "(cached) $ac_c" 1>&6
14555 else
14556   cat > conftest.$ac_ext <<EOF
14557 #line 14558 "configure"
14558 #include "confdefs.h"
14559 /* System header to define __stub macros and hopefully few prototypes,
14560     which can conflict with char $ac_func(); below.  */
14561 #include <assert.h>
14562 /* Override any gcc2 internal prototype to avoid an error.  */
14563 /* We use char because int might match the return type of a gcc2
14564     builtin and then its argument prototype would still apply.  */
14565 char $ac_func();
14566
14567 int main() {
14568
14569 /* The GNU C library defines this for functions which it implements
14570     to always fail with ENOSYS.  Some functions are actually named
14571     something starting with __ and the normal name is an alias.  */
14572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14573 choke me
14574 #else
14575 $ac_func();
14576 #endif
14577
14578 ; return 0; }
14579 EOF
14580 if { (eval echo configure:14581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14581   rm -rf conftest*
14582   eval "ac_cv_func_$ac_func=yes"
14583 else
14584   echo "configure: failed program was:" >&5
14585   cat conftest.$ac_ext >&5
14586   rm -rf conftest*
14587   eval "ac_cv_func_$ac_func=no"
14588 fi
14589 rm -f conftest*
14590 fi
14591
14592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14593   echo "$ac_t""yes" 1>&6
14594     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14595   cat >> confdefs.h <<EOF
14596 #define $ac_tr_func 1
14597 EOF
14598  
14599 else
14600   echo "$ac_t""no" 1>&6
14601 fi
14602 done
14603
14604   fi
14605
14606   
14607   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
14608 echo "configure:14609: checking for _long double round functions" >&5
14609   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
14610   echo $ac_n "(cached) $ac_c" 1>&6
14611 else
14612   
14613     
14614     ac_ext=C
14615 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14616 ac_cpp='$CXXCPP $CPPFLAGS'
14617 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14618 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14619 cross_compiling=$ac_cv_prog_cxx_cross
14620
14621     cat > conftest.$ac_ext <<EOF
14622 #line 14623 "configure"
14623 #include "confdefs.h"
14624 #include <math.h>
14625 int main() {
14626  `for x in _ceill _floorl; do echo "$x (0);"; done` 
14627 ; return 0; }
14628 EOF
14629 if { (eval echo configure:14630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14630   rm -rf conftest*
14631   glibcpp_cv_func__long_double_round_use=yes
14632 else
14633   echo "configure: failed program was:" >&5
14634   cat conftest.$ac_ext >&5
14635   rm -rf conftest*
14636   glibcpp_cv_func__long_double_round_use=no
14637 fi
14638 rm -f conftest*
14639     ac_ext=c
14640 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14641 ac_cpp='$CPP $CPPFLAGS'
14642 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14643 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14644 cross_compiling=$ac_cv_prog_cc_cross
14645
14646 fi
14647
14648   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
14649   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
14650     for ac_func in _ceill _floorl
14651 do
14652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14653 echo "configure:14654: checking for $ac_func" >&5
14654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14655   echo $ac_n "(cached) $ac_c" 1>&6
14656 else
14657   cat > conftest.$ac_ext <<EOF
14658 #line 14659 "configure"
14659 #include "confdefs.h"
14660 /* System header to define __stub macros and hopefully few prototypes,
14661     which can conflict with char $ac_func(); below.  */
14662 #include <assert.h>
14663 /* Override any gcc2 internal prototype to avoid an error.  */
14664 /* We use char because int might match the return type of a gcc2
14665     builtin and then its argument prototype would still apply.  */
14666 char $ac_func();
14667
14668 int main() {
14669
14670 /* The GNU C library defines this for functions which it implements
14671     to always fail with ENOSYS.  Some functions are actually named
14672     something starting with __ and the normal name is an alias.  */
14673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14674 choke me
14675 #else
14676 $ac_func();
14677 #endif
14678
14679 ; return 0; }
14680 EOF
14681 if { (eval echo configure:14682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14682   rm -rf conftest*
14683   eval "ac_cv_func_$ac_func=yes"
14684 else
14685   echo "configure: failed program was:" >&5
14686   cat conftest.$ac_ext >&5
14687   rm -rf conftest*
14688   eval "ac_cv_func_$ac_func=no"
14689 fi
14690 rm -f conftest*
14691 fi
14692
14693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14694   echo "$ac_t""yes" 1>&6
14695     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14696   cat >> confdefs.h <<EOF
14697 #define $ac_tr_func 1
14698 EOF
14699  
14700 else
14701   echo "$ac_t""no" 1>&6
14702 fi
14703 done
14704
14705   fi
14706
14707
14708   LIBS="$ac_save_LIBS"
14709   CXXFLAGS="$ac_save_CXXFLAGS"
14710
14711   
14712     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
14713 echo "configure:14714: checking for main in -lm" >&5
14714 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
14715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14716   echo $ac_n "(cached) $ac_c" 1>&6
14717 else
14718   ac_save_LIBS="$LIBS"
14719 LIBS="-lm  $LIBS"
14720 cat > conftest.$ac_ext <<EOF
14721 #line 14722 "configure"
14722 #include "confdefs.h"
14723
14724 int main() {
14725 main()
14726 ; return 0; }
14727 EOF
14728 if { (eval echo configure:14729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14729   rm -rf conftest*
14730   eval "ac_cv_lib_$ac_lib_var=yes"
14731 else
14732   echo "configure: failed program was:" >&5
14733   cat conftest.$ac_ext >&5
14734   rm -rf conftest*
14735   eval "ac_cv_lib_$ac_lib_var=no"
14736 fi
14737 rm -f conftest*
14738 LIBS="$ac_save_LIBS"
14739
14740 fi
14741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14742   echo "$ac_t""yes" 1>&6
14743     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14744     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14745   cat >> confdefs.h <<EOF
14746 #define $ac_tr_lib 1
14747 EOF
14748
14749   LIBS="-lm $LIBS"
14750
14751 else
14752   echo "$ac_t""no" 1>&6
14753 fi
14754
14755   for ac_func in nan hypot hypotf atan2f expf copysignf
14756 do
14757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14758 echo "configure:14759: checking for $ac_func" >&5
14759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14760   echo $ac_n "(cached) $ac_c" 1>&6
14761 else
14762   cat > conftest.$ac_ext <<EOF
14763 #line 14764 "configure"
14764 #include "confdefs.h"
14765 /* System header to define __stub macros and hopefully few prototypes,
14766     which can conflict with char $ac_func(); below.  */
14767 #include <assert.h>
14768 /* Override any gcc2 internal prototype to avoid an error.  */
14769 /* We use char because int might match the return type of a gcc2
14770     builtin and then its argument prototype would still apply.  */
14771 char $ac_func();
14772
14773 int main() {
14774
14775 /* The GNU C library defines this for functions which it implements
14776     to always fail with ENOSYS.  Some functions are actually named
14777     something starting with __ and the normal name is an alias.  */
14778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14779 choke me
14780 #else
14781 $ac_func();
14782 #endif
14783
14784 ; return 0; }
14785 EOF
14786 if { (eval echo configure:14787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14787   rm -rf conftest*
14788   eval "ac_cv_func_$ac_func=yes"
14789 else
14790   echo "configure: failed program was:" >&5
14791   cat conftest.$ac_ext >&5
14792   rm -rf conftest*
14793   eval "ac_cv_func_$ac_func=no"
14794 fi
14795 rm -f conftest*
14796 fi
14797
14798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14799   echo "$ac_t""yes" 1>&6
14800     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14801   cat >> confdefs.h <<EOF
14802 #define $ac_tr_func 1
14803 EOF
14804  
14805 else
14806   echo "$ac_t""no" 1>&6
14807 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
14808 fi
14809 done
14810
14811
14812
14813           USE_COMPLEX_LONG_DOUBLE=no
14814   if test x$ac_cv_func_atan2l = x"yes" \
14815      && test x$ac_cv_func_copysignl = x"yes"; then
14816     USE_COMPLEX_LONG_DOUBLE=yes
14817     for ac_func in hypotl signbitl
14818 do
14819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14820 echo "configure:14821: checking for $ac_func" >&5
14821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14822   echo $ac_n "(cached) $ac_c" 1>&6
14823 else
14824   cat > conftest.$ac_ext <<EOF
14825 #line 14826 "configure"
14826 #include "confdefs.h"
14827 /* System header to define __stub macros and hopefully few prototypes,
14828     which can conflict with char $ac_func(); below.  */
14829 #include <assert.h>
14830 /* Override any gcc2 internal prototype to avoid an error.  */
14831 /* We use char because int might match the return type of a gcc2
14832     builtin and then its argument prototype would still apply.  */
14833 char $ac_func();
14834
14835 int main() {
14836
14837 /* The GNU C library defines this for functions which it implements
14838     to always fail with ENOSYS.  Some functions are actually named
14839     something starting with __ and the normal name is an alias.  */
14840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14841 choke me
14842 #else
14843 $ac_func();
14844 #endif
14845
14846 ; return 0; }
14847 EOF
14848 if { (eval echo configure:14849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14849   rm -rf conftest*
14850   eval "ac_cv_func_$ac_func=yes"
14851 else
14852   echo "configure: failed program was:" >&5
14853   cat conftest.$ac_ext >&5
14854   rm -rf conftest*
14855   eval "ac_cv_func_$ac_func=no"
14856 fi
14857 rm -f conftest*
14858 fi
14859
14860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14861   echo "$ac_t""yes" 1>&6
14862     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14863   cat >> confdefs.h <<EOF
14864 #define $ac_tr_func 1
14865 EOF
14866  
14867 else
14868   echo "$ac_t""no" 1>&6
14869 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
14870 fi
14871 done
14872
14873
14874   fi
14875
14876   
14877
14878   
14879   
14880
14881   echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
14882 echo "configure:14883: checking for GNU C++ __complex__ support" >&5
14883   if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
14884   echo $ac_n "(cached) $ac_c" 1>&6
14885 else
14886   
14887     
14888     ac_ext=C
14889 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14890 ac_cpp='$CXXCPP $CPPFLAGS'
14891 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14892 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14893 cross_compiling=$ac_cv_prog_cxx_cross
14894
14895     cat > conftest.$ac_ext <<EOF
14896 #line 14897 "configure"
14897 #include "confdefs.h"
14898 struct dcomplex { __complex__ double x; }; \
14899                     dcomplex f(const dcomplex& x) { return dcomplex(x); }
14900 int main() {
14901 \
14902                      dcomplex x; f(x); 
14903 ; return 0; }
14904 EOF
14905 if { (eval echo configure:14906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14906   rm -rf conftest*
14907   glibcpp_cv_complex=ok
14908 else
14909   echo "configure: failed program was:" >&5
14910   cat conftest.$ac_ext >&5
14911   rm -rf conftest*
14912   glibcpp_cv_complex=buggy
14913     
14914 fi
14915 rm -f conftest*
14916     ac_ext=c
14917 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14918 ac_cpp='$CPP $CPPFLAGS'
14919 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14920 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14921 cross_compiling=$ac_cv_prog_cc_cross
14922
14923   
14924 fi
14925
14926   echo "$ac_t""$glibcpp_cv_complex" 1>&6
14927   if test $glibcpp_cv_complex = buggy; then
14928     cat >> confdefs.h <<\EOF
14929 #define _GLIBCPP_BUGGY_COMPLEX 1
14930 EOF
14931
14932   fi
14933
14934   echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
14935 echo "configure:14936: checking for GNU C++ __complex__ float support" >&5
14936   if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
14937   echo $ac_n "(cached) $ac_c" 1>&6
14938 else
14939   
14940     
14941     ac_ext=C
14942 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14943 ac_cpp='$CXXCPP $CPPFLAGS'
14944 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14945 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14946 cross_compiling=$ac_cv_prog_cxx_cross
14947
14948     rm -f conftest.h
14949     cat > conftest.h <<EOB
14950       //
14951       // Check for buggy __complex__ that causes ICE in most versions of egcs
14952       // and gcc-2.95.x on certain platforms (eg., x86-win32).
14953       //
14954       // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
14955       // more info on the bug itself.
14956       //
14957       struct
14958       float_complex
14959       {
14960        __complex__ float m_value;
14961        float_complex (float = 0.0f, float = 0.0f);
14962        float_complex (__complex__ float val) : m_value (val) {}
14963        float_complex foo (const float_complex &val)
14964          { return float_complex (~val.m_value); }
14965       };
14966 EOB
14967     cat > conftest.$ac_ext <<EOF
14968 #line 14969 "configure"
14969 #include "confdefs.h"
14970 #include "conftest.h"
14971 int main() {
14972
14973 ; return 0; }
14974 EOF
14975 if { (eval echo configure:14976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14976   rm -rf conftest*
14977   glibcpp_cv_float_complex=ok
14978 else
14979   echo "configure: failed program was:" >&5
14980   cat conftest.$ac_ext >&5
14981   rm -rf conftest*
14982   glibcpp_cv_float_complex=buggy
14983     
14984 fi
14985 rm -f conftest*
14986     ac_ext=c
14987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14988 ac_cpp='$CPP $CPPFLAGS'
14989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14991 cross_compiling=$ac_cv_prog_cc_cross
14992
14993   
14994 fi
14995
14996   echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
14997   if test $glibcpp_cv_float_complex = buggy; then
14998     cat >> confdefs.h <<\EOF
14999 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
15000 EOF
15001
15002   fi
15003
15004   
15005
15006       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
15007 echo "configure:15008: checking for mbstate_t" >&5
15008   cat > conftest.$ac_ext <<EOF
15009 #line 15010 "configure"
15010 #include "confdefs.h"
15011 #include <wchar.h>
15012 int main() {
15013 mbstate_t teststate;
15014 ; return 0; }
15015 EOF
15016 if { (eval echo configure:15017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15017   rm -rf conftest*
15018   have_mbstate_t=yes
15019 else
15020   echo "configure: failed program was:" >&5
15021   cat conftest.$ac_ext >&5
15022   rm -rf conftest*
15023   have_mbstate_t=no
15024 fi
15025 rm -f conftest*
15026   echo "$ac_t""$have_mbstate_t" 1>&6
15027   if test x"$have_mbstate_t" = xyes; then
15028     cat >> confdefs.h <<\EOF
15029 #define HAVE_MBSTATE_T 1
15030 EOF
15031
15032   fi
15033
15034     for ac_hdr in wchar.h
15035 do
15036 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15037 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15038 echo "configure:15039: checking for $ac_hdr" >&5
15039 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15040   echo $ac_n "(cached) $ac_c" 1>&6
15041 else
15042   cat > conftest.$ac_ext <<EOF
15043 #line 15044 "configure"
15044 #include "confdefs.h"
15045 #include <$ac_hdr>
15046 EOF
15047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15048 { (eval echo configure:15049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15050 if test -z "$ac_err"; then
15051   rm -rf conftest*
15052   eval "ac_cv_header_$ac_safe=yes"
15053 else
15054   echo "$ac_err" >&5
15055   echo "configure: failed program was:" >&5
15056   cat conftest.$ac_ext >&5
15057   rm -rf conftest*
15058   eval "ac_cv_header_$ac_safe=no"
15059 fi
15060 rm -f conftest*
15061 fi
15062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15063   echo "$ac_t""yes" 1>&6
15064     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15065   cat >> confdefs.h <<EOF
15066 #define $ac_tr_hdr 1
15067 EOF
15068  ac_has_wchar_h=yes
15069 else
15070   echo "$ac_t""no" 1>&6
15071 ac_has_wchar_h=no
15072 fi
15073 done
15074
15075   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
15076 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
15077 echo "configure:15078: checking for wctype.h" >&5
15078 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15079   echo $ac_n "(cached) $ac_c" 1>&6
15080 else
15081   cat > conftest.$ac_ext <<EOF
15082 #line 15083 "configure"
15083 #include "confdefs.h"
15084 #include <wctype.h>
15085 EOF
15086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15087 { (eval echo configure:15088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15089 if test -z "$ac_err"; then
15090   rm -rf conftest*
15091   eval "ac_cv_header_$ac_safe=yes"
15092 else
15093   echo "$ac_err" >&5
15094   echo "configure: failed program was:" >&5
15095   cat conftest.$ac_ext >&5
15096   rm -rf conftest*
15097   eval "ac_cv_header_$ac_safe=no"
15098 fi
15099 rm -f conftest*
15100 fi
15101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15102   echo "$ac_t""yes" 1>&6
15103   ac_has_wctype_h=yes
15104 else
15105   echo "$ac_t""no" 1>&6
15106 ac_has_wctype_h=no
15107 fi
15108
15109   
15110     if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
15111      && test x"$enable_c_mbchar" != xno; then
15112       
15113             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
15114 echo "configure:15115: checking for WCHAR_MIN and WCHAR_MAX" >&5
15115     cat > conftest.$ac_ext <<EOF
15116 #line 15117 "configure"
15117 #include "confdefs.h"
15118 #include <wchar.h>
15119 int main() {
15120 int i = WCHAR_MIN; int j = WCHAR_MAX;
15121 ; return 0; }
15122 EOF
15123 if { (eval echo configure:15124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15124   rm -rf conftest*
15125   has_wchar_minmax=yes
15126 else
15127   echo "configure: failed program was:" >&5
15128   cat conftest.$ac_ext >&5
15129   rm -rf conftest*
15130   has_wchar_minmax=no
15131 fi
15132 rm -f conftest*
15133     echo "$ac_t""$has_wchar_minmax" 1>&6
15134     
15135             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
15136 echo "configure:15137: checking for WEOF" >&5
15137     cat > conftest.$ac_ext <<EOF
15138 #line 15139 "configure"
15139 #include "confdefs.h"
15140
15141       #include <wchar.h>
15142       #include <stddef.h>
15143 int main() {
15144 wint_t i = WEOF;
15145 ; return 0; }
15146 EOF
15147 if { (eval echo configure:15148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15148   rm -rf conftest*
15149   has_weof=yes
15150 else
15151   echo "configure: failed program was:" >&5
15152   cat conftest.$ac_ext >&5
15153   rm -rf conftest*
15154   has_weof=no
15155 fi
15156 rm -f conftest*
15157     echo "$ac_t""$has_weof" 1>&6
15158   
15159         for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
15160     wcsrtombs mbsrtowcs
15161 do
15162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15163 echo "configure:15164: checking for $ac_func" >&5
15164 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15165   echo $ac_n "(cached) $ac_c" 1>&6
15166 else
15167   cat > conftest.$ac_ext <<EOF
15168 #line 15169 "configure"
15169 #include "confdefs.h"
15170 /* System header to define __stub macros and hopefully few prototypes,
15171     which can conflict with char $ac_func(); below.  */
15172 #include <assert.h>
15173 /* Override any gcc2 internal prototype to avoid an error.  */
15174 /* We use char because int might match the return type of a gcc2
15175     builtin and then its argument prototype would still apply.  */
15176 char $ac_func();
15177
15178 int main() {
15179
15180 /* The GNU C library defines this for functions which it implements
15181     to always fail with ENOSYS.  Some functions are actually named
15182     something starting with __ and the normal name is an alias.  */
15183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15184 choke me
15185 #else
15186 $ac_func();
15187 #endif
15188
15189 ; return 0; }
15190 EOF
15191 if { (eval echo configure:15192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15192   rm -rf conftest*
15193   eval "ac_cv_func_$ac_func=yes"
15194 else
15195   echo "configure: failed program was:" >&5
15196   cat conftest.$ac_ext >&5
15197   rm -rf conftest*
15198   eval "ac_cv_func_$ac_func=no"
15199 fi
15200 rm -f conftest*
15201 fi
15202
15203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15204   echo "$ac_t""yes" 1>&6
15205     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15206   cat >> confdefs.h <<EOF
15207 #define $ac_tr_func 1
15208 EOF
15209  ac_wfuncs=yes
15210 else
15211   echo "$ac_t""no" 1>&6
15212 ac_wfuncs=no
15213 fi
15214 done
15215
15216   
15217     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
15218 echo "configure:15219: checking for ISO C99 wchar_t support" >&5
15219     if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
15220        && test x"$ac_wfuncs" = xyes; then
15221       ac_isoC99_wchar_t=yes
15222     else
15223       ac_isoC99_wchar_t=no
15224     fi
15225     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
15226   
15227             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
15228 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
15229 echo "configure:15230: checking for iconv.h" >&5
15230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15231   echo $ac_n "(cached) $ac_c" 1>&6
15232 else
15233   cat > conftest.$ac_ext <<EOF
15234 #line 15235 "configure"
15235 #include "confdefs.h"
15236 #include <iconv.h>
15237 EOF
15238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15239 { (eval echo configure:15240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15241 if test -z "$ac_err"; then
15242   rm -rf conftest*
15243   eval "ac_cv_header_$ac_safe=yes"
15244 else
15245   echo "$ac_err" >&5
15246   echo "configure: failed program was:" >&5
15247   cat conftest.$ac_ext >&5
15248   rm -rf conftest*
15249   eval "ac_cv_header_$ac_safe=no"
15250 fi
15251 rm -f conftest*
15252 fi
15253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15254   echo "$ac_t""yes" 1>&6
15255   ac_has_iconv_h=yes
15256 else
15257   echo "$ac_t""no" 1>&6
15258 ac_has_iconv_h=no
15259 fi
15260
15261     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
15262 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
15263 echo "configure:15264: checking for langinfo.h" >&5
15264 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15265   echo $ac_n "(cached) $ac_c" 1>&6
15266 else
15267   cat > conftest.$ac_ext <<EOF
15268 #line 15269 "configure"
15269 #include "confdefs.h"
15270 #include <langinfo.h>
15271 EOF
15272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15273 { (eval echo configure:15274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15275 if test -z "$ac_err"; then
15276   rm -rf conftest*
15277   eval "ac_cv_header_$ac_safe=yes"
15278 else
15279   echo "$ac_err" >&5
15280   echo "configure: failed program was:" >&5
15281   cat conftest.$ac_ext >&5
15282   rm -rf conftest*
15283   eval "ac_cv_header_$ac_safe=no"
15284 fi
15285 rm -f conftest*
15286 fi
15287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15288   echo "$ac_t""yes" 1>&6
15289   ac_has_langinfo_h=yes
15290 else
15291   echo "$ac_t""no" 1>&6
15292 ac_has_langinfo_h=no
15293 fi
15294
15295
15296         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
15297 echo "configure:15298: checking for iconv in -liconv" >&5
15298 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
15299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15300   echo $ac_n "(cached) $ac_c" 1>&6
15301 else
15302   ac_save_LIBS="$LIBS"
15303 LIBS="-liconv  $LIBS"
15304 cat > conftest.$ac_ext <<EOF
15305 #line 15306 "configure"
15306 #include "confdefs.h"
15307 /* Override any gcc2 internal prototype to avoid an error.  */
15308 /* We use char because int might match the return type of a gcc2
15309     builtin and then its argument prototype would still apply.  */
15310 char iconv();
15311
15312 int main() {
15313 iconv()
15314 ; return 0; }
15315 EOF
15316 if { (eval echo configure:15317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15317   rm -rf conftest*
15318   eval "ac_cv_lib_$ac_lib_var=yes"
15319 else
15320   echo "configure: failed program was:" >&5
15321   cat conftest.$ac_ext >&5
15322   rm -rf conftest*
15323   eval "ac_cv_lib_$ac_lib_var=no"
15324 fi
15325 rm -f conftest*
15326 LIBS="$ac_save_LIBS"
15327
15328 fi
15329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15330   echo "$ac_t""yes" 1>&6
15331   libiconv="-liconv"
15332 else
15333   echo "$ac_t""no" 1>&6
15334 fi
15335
15336     ac_save_LIBS="$LIBS"
15337     LIBS="$LIBS $libiconv"
15338
15339     for ac_func in iconv_open iconv_close iconv nl_langinfo
15340 do
15341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15342 echo "configure:15343: checking for $ac_func" >&5
15343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15344   echo $ac_n "(cached) $ac_c" 1>&6
15345 else
15346   cat > conftest.$ac_ext <<EOF
15347 #line 15348 "configure"
15348 #include "confdefs.h"
15349 /* System header to define __stub macros and hopefully few prototypes,
15350     which can conflict with char $ac_func(); below.  */
15351 #include <assert.h>
15352 /* Override any gcc2 internal prototype to avoid an error.  */
15353 /* We use char because int might match the return type of a gcc2
15354     builtin and then its argument prototype would still apply.  */
15355 char $ac_func();
15356
15357 int main() {
15358
15359 /* The GNU C library defines this for functions which it implements
15360     to always fail with ENOSYS.  Some functions are actually named
15361     something starting with __ and the normal name is an alias.  */
15362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15363 choke me
15364 #else
15365 $ac_func();
15366 #endif
15367
15368 ; return 0; }
15369 EOF
15370 if { (eval echo configure:15371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15371   rm -rf conftest*
15372   eval "ac_cv_func_$ac_func=yes"
15373 else
15374   echo "configure: failed program was:" >&5
15375   cat conftest.$ac_ext >&5
15376   rm -rf conftest*
15377   eval "ac_cv_func_$ac_func=no"
15378 fi
15379 rm -f conftest*
15380 fi
15381
15382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15383   echo "$ac_t""yes" 1>&6
15384     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15385   cat >> confdefs.h <<EOF
15386 #define $ac_tr_func 1
15387 EOF
15388  \
15389     ac_XPG2funcs=yes
15390 else
15391   echo "$ac_t""no" 1>&6
15392 ac_XPG2funcs=no
15393 fi
15394 done
15395
15396   
15397     LIBS="$ac_save_LIBS"
15398
15399     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
15400 echo "configure:15401: checking for XPG2 wchar_t support" >&5
15401     if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
15402        && test x"$ac_XPG2funcs" = xyes; then
15403       ac_XPG2_wchar_t=yes
15404     else
15405       ac_XPG2_wchar_t=no
15406     fi
15407     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
15408   
15409             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
15410 echo "configure:15411: checking for enabled wchar_t specializations" >&5
15411     if test x"$ac_isoC99_wchar_t" = xyes \
15412        && test x"$ac_XPG2_wchar_t" = xyes; then
15413       cat >> confdefs.h <<\EOF
15414 #define _GLIBCPP_USE_WCHAR_T 1
15415 EOF
15416
15417       echo "$ac_t"""yes"" 1>&6
15418     else
15419       echo "$ac_t"""no"" 1>&6
15420     fi
15421   else
15422         echo "configure: warning: wchar_t support disabled." 1>&2
15423   fi
15424
15425   
15426   ac_test_CXXFLAGS="${CXXFLAGS+set}"
15427   ac_save_CXXFLAGS="$CXXFLAGS"
15428   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
15429
15430   for ac_func in strtof
15431 do
15432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15433 echo "configure:15434: checking for $ac_func" >&5
15434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15435   echo $ac_n "(cached) $ac_c" 1>&6
15436 else
15437   cat > conftest.$ac_ext <<EOF
15438 #line 15439 "configure"
15439 #include "confdefs.h"
15440 /* System header to define __stub macros and hopefully few prototypes,
15441     which can conflict with char $ac_func(); below.  */
15442 #include <assert.h>
15443 /* Override any gcc2 internal prototype to avoid an error.  */
15444 /* We use char because int might match the return type of a gcc2
15445     builtin and then its argument prototype would still apply.  */
15446 char $ac_func();
15447
15448 int main() {
15449
15450 /* The GNU C library defines this for functions which it implements
15451     to always fail with ENOSYS.  Some functions are actually named
15452     something starting with __ and the normal name is an alias.  */
15453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15454 choke me
15455 #else
15456 $ac_func();
15457 #endif
15458
15459 ; return 0; }
15460 EOF
15461 if { (eval echo configure:15462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15462   rm -rf conftest*
15463   eval "ac_cv_func_$ac_func=yes"
15464 else
15465   echo "configure: failed program was:" >&5
15466   cat conftest.$ac_ext >&5
15467   rm -rf conftest*
15468   eval "ac_cv_func_$ac_func=no"
15469 fi
15470 rm -f conftest*
15471 fi
15472
15473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15474   echo "$ac_t""yes" 1>&6
15475     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15476   cat >> confdefs.h <<EOF
15477 #define $ac_tr_func 1
15478 EOF
15479  
15480 else
15481   echo "$ac_t""no" 1>&6
15482 fi
15483 done
15484
15485   
15486   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
15487 echo "configure:15488: checking for strtold declaration" >&5
15488   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
15489     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
15490   echo $ac_n "(cached) $ac_c" 1>&6
15491 else
15492   
15493       
15494       ac_ext=C
15495 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15496 ac_cpp='$CXXCPP $CPPFLAGS'
15497 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15498 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15499 cross_compiling=$ac_cv_prog_cxx_cross
15500
15501       cat > conftest.$ac_ext <<EOF
15502 #line 15503 "configure"
15503 #include "confdefs.h"
15504 #include <stdlib.h>
15505 int main() {
15506  strtold(0, 0);
15507 ; return 0; }
15508 EOF
15509 if { (eval echo configure:15510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15510   rm -rf conftest*
15511   glibcpp_cv_func_strtold_use=yes
15512 else
15513   echo "configure: failed program was:" >&5
15514   cat conftest.$ac_ext >&5
15515   rm -rf conftest*
15516   glibcpp_cv_func_strtold_use=no
15517 fi
15518 rm -f conftest*
15519       ac_ext=c
15520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15521 ac_cpp='$CPP $CPPFLAGS'
15522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15524 cross_compiling=$ac_cv_prog_cc_cross
15525
15526     
15527 fi
15528
15529   fi
15530   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
15531   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
15532     for ac_func in strtold
15533 do
15534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15535 echo "configure:15536: checking for $ac_func" >&5
15536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15537   echo $ac_n "(cached) $ac_c" 1>&6
15538 else
15539   cat > conftest.$ac_ext <<EOF
15540 #line 15541 "configure"
15541 #include "confdefs.h"
15542 /* System header to define __stub macros and hopefully few prototypes,
15543     which can conflict with char $ac_func(); below.  */
15544 #include <assert.h>
15545 /* Override any gcc2 internal prototype to avoid an error.  */
15546 /* We use char because int might match the return type of a gcc2
15547     builtin and then its argument prototype would still apply.  */
15548 char $ac_func();
15549
15550 int main() {
15551
15552 /* The GNU C library defines this for functions which it implements
15553     to always fail with ENOSYS.  Some functions are actually named
15554     something starting with __ and the normal name is an alias.  */
15555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15556 choke me
15557 #else
15558 $ac_func();
15559 #endif
15560
15561 ; return 0; }
15562 EOF
15563 if { (eval echo configure:15564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15564   rm -rf conftest*
15565   eval "ac_cv_func_$ac_func=yes"
15566 else
15567   echo "configure: failed program was:" >&5
15568   cat conftest.$ac_ext >&5
15569   rm -rf conftest*
15570   eval "ac_cv_func_$ac_func=no"
15571 fi
15572 rm -f conftest*
15573 fi
15574
15575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15576   echo "$ac_t""yes" 1>&6
15577     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15578   cat >> confdefs.h <<EOF
15579 #define $ac_tr_func 1
15580 EOF
15581  
15582 else
15583   echo "$ac_t""no" 1>&6
15584 fi
15585 done
15586     
15587   fi
15588
15589
15590   CXXFLAGS="$ac_save_CXXFLAGS"
15591
15592
15593   cat > conftest.$ac_ext <<EOF
15594 #line 15595 "configure"
15595 #include "confdefs.h"
15596
15597 #include <setjmp.h>
15598
15599 int main() {
15600 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
15601 ; return 0; }
15602 EOF
15603 if { (eval echo configure:15604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15604   rm -rf conftest*
15605   cat >> confdefs.h <<\EOF
15606 #define HAVE_SIGSETJMP 1
15607 EOF
15608
15609 else
15610   echo "configure: failed program was:" >&5
15611   cat conftest.$ac_ext >&5
15612 fi
15613 rm -f conftest*
15614
15615   for ac_hdr in unistd.h
15616 do
15617 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15618 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15619 echo "configure:15620: checking for $ac_hdr" >&5
15620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15621   echo $ac_n "(cached) $ac_c" 1>&6
15622 else
15623   cat > conftest.$ac_ext <<EOF
15624 #line 15625 "configure"
15625 #include "confdefs.h"
15626 #include <$ac_hdr>
15627 EOF
15628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15629 { (eval echo configure:15630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15631 if test -z "$ac_err"; then
15632   rm -rf conftest*
15633   eval "ac_cv_header_$ac_safe=yes"
15634 else
15635   echo "$ac_err" >&5
15636   echo "configure: failed program was:" >&5
15637   cat conftest.$ac_ext >&5
15638   rm -rf conftest*
15639   eval "ac_cv_header_$ac_safe=no"
15640 fi
15641 rm -f conftest*
15642 fi
15643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15644   echo "$ac_t""yes" 1>&6
15645     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15646   cat >> confdefs.h <<EOF
15647 #define $ac_tr_hdr 1
15648 EOF
15649  
15650 else
15651   echo "$ac_t""no" 1>&6
15652 fi
15653 done
15654
15655 for ac_func in getpagesize
15656 do
15657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15658 echo "configure:15659: checking for $ac_func" >&5
15659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15660   echo $ac_n "(cached) $ac_c" 1>&6
15661 else
15662   cat > conftest.$ac_ext <<EOF
15663 #line 15664 "configure"
15664 #include "confdefs.h"
15665 /* System header to define __stub macros and hopefully few prototypes,
15666     which can conflict with char $ac_func(); below.  */
15667 #include <assert.h>
15668 /* Override any gcc2 internal prototype to avoid an error.  */
15669 /* We use char because int might match the return type of a gcc2
15670     builtin and then its argument prototype would still apply.  */
15671 char $ac_func();
15672
15673 int main() {
15674
15675 /* The GNU C library defines this for functions which it implements
15676     to always fail with ENOSYS.  Some functions are actually named
15677     something starting with __ and the normal name is an alias.  */
15678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15679 choke me
15680 #else
15681 $ac_func();
15682 #endif
15683
15684 ; return 0; }
15685 EOF
15686 if { (eval echo configure:15687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15687   rm -rf conftest*
15688   eval "ac_cv_func_$ac_func=yes"
15689 else
15690   echo "configure: failed program was:" >&5
15691   cat conftest.$ac_ext >&5
15692   rm -rf conftest*
15693   eval "ac_cv_func_$ac_func=no"
15694 fi
15695 rm -f conftest*
15696 fi
15697
15698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15699   echo "$ac_t""yes" 1>&6
15700     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15701   cat >> confdefs.h <<EOF
15702 #define $ac_tr_func 1
15703 EOF
15704  
15705 else
15706   echo "$ac_t""no" 1>&6
15707 fi
15708 done
15709
15710 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
15711 echo "configure:15712: checking for working mmap" >&5
15712 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
15713   echo $ac_n "(cached) $ac_c" 1>&6
15714 else
15715   if test "$cross_compiling" = yes; then
15716   ac_cv_func_mmap_fixed_mapped=no
15717 else
15718   cat > conftest.$ac_ext <<EOF
15719 #line 15720 "configure"
15720 #include "confdefs.h"
15721
15722 /* Thanks to Mike Haertel and Jim Avera for this test.
15723    Here is a matrix of mmap possibilities:
15724         mmap private not fixed
15725         mmap private fixed at somewhere currently unmapped
15726         mmap private fixed at somewhere already mapped
15727         mmap shared not fixed
15728         mmap shared fixed at somewhere currently unmapped
15729         mmap shared fixed at somewhere already mapped
15730    For private mappings, we should verify that changes cannot be read()
15731    back from the file, nor mmap's back from the file at a different
15732    address.  (There have been systems where private was not correctly
15733    implemented like the infamous i386 svr4.0, and systems where the
15734    VM page cache was not coherent with the filesystem buffer cache
15735    like early versions of FreeBSD and possibly contemporary NetBSD.)
15736    For shared mappings, we should conversely verify that changes get
15737    propogated back to all the places they're supposed to be.
15738
15739    Grep wants private fixed already mapped.
15740    The main things grep needs to know about mmap are:
15741    * does it exist and is it safe to write into the mmap'd area
15742    * how to use it (BSD variants)  */
15743 #include <sys/types.h>
15744 #include <fcntl.h>
15745 #include <sys/mman.h>
15746
15747 /* This mess was copied from the GNU getpagesize.h.  */
15748 #ifndef HAVE_GETPAGESIZE
15749 # ifdef HAVE_UNISTD_H
15750 #  include <unistd.h>
15751 # endif
15752
15753 /* Assume that all systems that can run configure have sys/param.h.  */
15754 # ifndef HAVE_SYS_PARAM_H
15755 #  define HAVE_SYS_PARAM_H 1
15756 # endif
15757
15758 # ifdef _SC_PAGESIZE
15759 #  define getpagesize() sysconf(_SC_PAGESIZE)
15760 # else /* no _SC_PAGESIZE */
15761 #  ifdef HAVE_SYS_PARAM_H
15762 #   include <sys/param.h>
15763 #   ifdef EXEC_PAGESIZE
15764 #    define getpagesize() EXEC_PAGESIZE
15765 #   else /* no EXEC_PAGESIZE */
15766 #    ifdef NBPG
15767 #     define getpagesize() NBPG * CLSIZE
15768 #     ifndef CLSIZE
15769 #      define CLSIZE 1
15770 #     endif /* no CLSIZE */
15771 #    else /* no NBPG */
15772 #     ifdef NBPC
15773 #      define getpagesize() NBPC
15774 #     else /* no NBPC */
15775 #      ifdef PAGESIZE
15776 #       define getpagesize() PAGESIZE
15777 #      endif /* PAGESIZE */
15778 #     endif /* no NBPC */
15779 #    endif /* no NBPG */
15780 #   endif /* no EXEC_PAGESIZE */
15781 #  else /* no HAVE_SYS_PARAM_H */
15782 #   define getpagesize() 8192   /* punt totally */
15783 #  endif /* no HAVE_SYS_PARAM_H */
15784 # endif /* no _SC_PAGESIZE */
15785
15786 #endif /* no HAVE_GETPAGESIZE */
15787
15788 #ifdef __cplusplus
15789 extern "C" { void *malloc(unsigned); }
15790 #else
15791 char *malloc();
15792 #endif
15793
15794 int
15795 main()
15796 {
15797         char *data, *data2, *data3;
15798         int i, pagesize;
15799         int fd;
15800
15801         pagesize = getpagesize();
15802
15803         /*
15804          * First, make a file with some known garbage in it.
15805          */
15806         data = malloc(pagesize);
15807         if (!data)
15808                 exit(1);
15809         for (i = 0; i < pagesize; ++i)
15810                 *(data + i) = rand();
15811         umask(0);
15812         fd = creat("conftestmmap", 0600);
15813         if (fd < 0)
15814                 exit(1);
15815         if (write(fd, data, pagesize) != pagesize)
15816                 exit(1);
15817         close(fd);
15818
15819         /*
15820          * Next, try to mmap the file at a fixed address which
15821          * already has something else allocated at it.  If we can,
15822          * also make sure that we see the same garbage.
15823          */
15824         fd = open("conftestmmap", O_RDWR);
15825         if (fd < 0)
15826                 exit(1);
15827         data2 = malloc(2 * pagesize);
15828         if (!data2)
15829                 exit(1);
15830         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
15831         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
15832             MAP_PRIVATE | MAP_FIXED, fd, 0L))
15833                 exit(1);
15834         for (i = 0; i < pagesize; ++i)
15835                 if (*(data + i) != *(data2 + i))
15836                         exit(1);
15837
15838         /*
15839          * Finally, make sure that changes to the mapped area
15840          * do not percolate back to the file as seen by read().
15841          * (This is a bug on some variants of i386 svr4.0.)
15842          */
15843         for (i = 0; i < pagesize; ++i)
15844                 *(data2 + i) = *(data2 + i) + 1;
15845         data3 = malloc(pagesize);
15846         if (!data3)
15847                 exit(1);
15848         if (read(fd, data3, pagesize) != pagesize)
15849                 exit(1);
15850         for (i = 0; i < pagesize; ++i)
15851                 if (*(data + i) != *(data3 + i))
15852                         exit(1);
15853         close(fd);
15854         unlink("conftestmmap");
15855         exit(0);
15856 }
15857
15858 EOF
15859 if { (eval echo configure:15860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15860 then
15861   ac_cv_func_mmap_fixed_mapped=yes
15862 else
15863   echo "configure: failed program was:" >&5
15864   cat conftest.$ac_ext >&5
15865   rm -fr conftest*
15866   ac_cv_func_mmap_fixed_mapped=no
15867 fi
15868 rm -fr conftest*
15869 fi
15870
15871 fi
15872
15873 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
15874 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15875   cat >> confdefs.h <<\EOF
15876 #define HAVE_MMAP 1
15877 EOF
15878
15879 fi
15880
15881 fi
15882
15883 # Now that ctype is determined for all possible targets, we can do this...
15884
15885
15886
15887
15888
15889
15890
15891 if test "$NULL_TARGET" = yes; then
15892   NULL_TARGET_TRUE=
15893   NULL_TARGET_FALSE='#'
15894 else
15895   NULL_TARGET_TRUE='#'
15896   NULL_TARGET_FALSE=
15897 fi
15898
15899
15900 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
15901   NATIVE_TRUE=
15902   NATIVE_FALSE='#'
15903 else
15904   NATIVE_TRUE='#'
15905   NATIVE_FALSE=
15906 fi
15907
15908
15909 if test "$CANADIAN" = yes; then
15910   CANADIAN_TRUE=
15911   CANADIAN_FALSE='#'
15912 else
15913   CANADIAN_TRUE='#'
15914   CANADIAN_FALSE=
15915 fi
15916  
15917 cat > confcache <<\EOF
15918 # This file is a shell script that caches the results of configure
15919 # tests run on this system so they can be shared between configure
15920 # scripts and configure runs.  It is not useful on other systems.
15921 # If it contains results you don't want to keep, you may remove or edit it.
15922 #
15923 # By default, configure uses ./config.cache as the cache file,
15924 # creating it if it does not exist already.  You can give configure
15925 # the --cache-file=FILE option to use a different cache file; that is
15926 # what configure does when it calls configure scripts in
15927 # subdirectories, so they share the cache.
15928 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15929 # config.status only pays attention to the cache file if you give it the
15930 # --recheck option to rerun configure.
15931 #
15932 EOF
15933 # The following way of writing the cache mishandles newlines in values,
15934 # but we know of no workaround that is simple, portable, and efficient.
15935 # So, don't put newlines in cache variables' values.
15936 # Ultrix sh set writes to stderr and can't be redirected directly,
15937 # and sets the high bit in the cache file unless we assign to the vars.
15938 (set) 2>&1 |
15939   case `(ac_space=' '; set | grep ac_space) 2>&1` in
15940   *ac_space=\ *)
15941     # `set' does not quote correctly, so add quotes (double-quote substitution
15942     # turns \\\\ into \\, and sed turns \\ into \).
15943     sed -n \
15944       -e "s/'/'\\\\''/g" \
15945       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15946     ;;
15947   *)
15948     # `set' quotes correctly as required by POSIX, so do not add quotes.
15949     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15950     ;;
15951   esac >> confcache
15952 if cmp -s $cache_file confcache; then
15953   :
15954 else
15955   if test -w $cache_file; then
15956     echo "updating cache $cache_file"
15957     cat confcache > $cache_file
15958   else
15959     echo "not updating unwritable cache $cache_file"
15960   fi
15961 fi
15962 rm -f confcache
15963
15964
15965   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
15966 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
15967 echo "configure:15968: checking for locale.h" >&5
15968 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15969   echo $ac_n "(cached) $ac_c" 1>&6
15970 else
15971   cat > conftest.$ac_ext <<EOF
15972 #line 15973 "configure"
15973 #include "confdefs.h"
15974 #include <locale.h>
15975 EOF
15976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15977 { (eval echo configure:15978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15979 if test -z "$ac_err"; then
15980   rm -rf conftest*
15981   eval "ac_cv_header_$ac_safe=yes"
15982 else
15983   echo "$ac_err" >&5
15984   echo "configure: failed program was:" >&5
15985   cat conftest.$ac_ext >&5
15986   rm -rf conftest*
15987   eval "ac_cv_header_$ac_safe=no"
15988 fi
15989 rm -f conftest*
15990 fi
15991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15992   echo "$ac_t""yes" 1>&6
15993   
15994     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
15995 echo "configure:15996: checking for LC_MESSAGES" >&5
15996 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
15997   echo $ac_n "(cached) $ac_c" 1>&6
15998 else
15999   cat > conftest.$ac_ext <<EOF
16000 #line 16001 "configure"
16001 #include "confdefs.h"
16002 #include <locale.h>
16003 int main() {
16004 return LC_MESSAGES
16005 ; return 0; }
16006 EOF
16007 if { (eval echo configure:16008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16008   rm -rf conftest*
16009   ac_cv_val_LC_MESSAGES=yes
16010 else
16011   echo "configure: failed program was:" >&5
16012   cat conftest.$ac_ext >&5
16013   rm -rf conftest*
16014   ac_cv_val_LC_MESSAGES=no
16015 fi
16016 rm -f conftest*
16017 fi
16018
16019 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16020     if test $ac_cv_val_LC_MESSAGES = yes; then
16021       cat >> confdefs.h <<\EOF
16022 #define HAVE_LC_MESSAGES 1
16023 EOF
16024
16025     fi
16026   
16027 else
16028   echo "$ac_t""no" 1>&6
16029 fi
16030
16031
16032
16033 if test "${multilib}" = "yes"; then
16034   multilib_arg="--enable-multilib"
16035 else
16036   multilib_arg=
16037 fi
16038
16039
16040 # Generate the various Makefiles, include files, and scripts.
16041
16042 # Needed so that g++ can find the correct include subdir automatically.
16043 INTERFACE=v3
16044
16045 # Export all the install information
16046
16047
16048 glibcpp_toolexecdir=no
16049 glibcpp_toolexeclibdir=no
16050
16051 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
16052 echo "configure:16053: checking for interface version number" >&5
16053 libstdcxx_interface=$INTERFACE
16054 echo "$ac_t""$libstdcxx_interface" 1>&6
16055
16056 # Process the option --with-gxx-include-dir=<path to include-files directory>
16057 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
16058 echo "configure:16059: checking for --with-gxx-include-dir" >&5
16059 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
16060 if test "${with_gxx_include_dir+set}" = set; then
16061   withval="$with_gxx_include_dir"
16062   case "${withval}" in
16063   yes)
16064     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
16065     gxx_include_dir=no
16066     ;;
16067   no)
16068     gxx_include_dir=no
16069     ;;
16070   *)
16071     gxx_include_dir=${withval}
16072     ;;
16073 esac
16074 else
16075   gxx_include_dir=no
16076 fi
16077
16078 echo "$ac_t""$gxx_include_dir" 1>&6
16079
16080 # Process the option "--enable-version-specific-runtime-libs"
16081 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
16082 echo "configure:16083: checking for --enable-version-specific-runtime-libs" >&5
16083 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16084 if test "${enable_version_specific_runtime_libs+set}" = set; then
16085   enableval="$enable_version_specific_runtime_libs"
16086     version_specific_libs=yes
16087 # Need the gcc compiler version to know where to install libraries
16088 # and header files if --enable-version-specific-runtime-libs option
16089 # is selected.
16090 gcc_version_trigger=${srcdir}/../gcc/version.c
16091 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
16092 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
16093 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
16094 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16095 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}
16096
16097 else
16098   version_specific_libs=no
16099 fi
16100
16101 echo "$ac_t""$version_specific_libs" 1>&6
16102
16103 # Default case for install directory for include files.
16104 if test x"$version_specific_libs" = x"no" \
16105    && test x"$gxx_include_dir" = x"no"; then
16106   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
16107 fi
16108
16109 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
16110 # Install a library built with a cross compiler in tooldir, not libdir.
16111 if test x"$glibcpp_toolexecdir" = x"no"; then 
16112   if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
16113     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
16114     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
16115   else
16116     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16117     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
16118   fi
16119 fi
16120
16121 echo $ac_n "checking for install location""... $ac_c" 1>&6
16122 echo "configure:16123: checking for install location" >&5
16123 echo "$ac_t""$gxx_include_dir" 1>&6
16124
16125
16126
16127
16128
16129
16130 # Export all the include and flag information to makefiles.
16131
16132   # Root level of the include sources.
16133   GLIBCPP_INCLUDE_DIR='$(top_srcdir)/include'
16134
16135   # Can either use include/c or include/c_std to grab "C" headers. This
16136   # variable is set to the include directory currently in use.
16137   # set with C_INCLUDE_DIR in GLIBCPP_ENABLE_CHEADERS
16138    
16139   # Passed down for canadian crosses.
16140   if  test x"$CANADIAN" = xyes; then
16141     TOPLEVEL_INCLUDES='-I$(includedir)'
16142   fi
16143
16144   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
16145
16146   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
16147
16148   #if GLIBCPP_NEED_LIBIO
16149   LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
16150   #else
16151   #LIBIO_INCLUDES='-I$(top_srcdir)/libio'
16152   #endif
16153
16154   #if GLIBCPP_USE_CSHADOW
16155   #  CSHADOW_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR) \
16156   #                   -I$(top_blddir)/cshadow'
16157   #else
16158   CSTD_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR)'
16159   #endif
16160
16161   # Now, export this to all the little Makefiles....
16162   
16163   
16164   
16165   
16166   
16167   
16168
16169
16170   # Optimization flags that are probably a good idea for thrill-seekers. Just
16171   # uncomment the lines below and make, everything else is ready to go... 
16172   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
16173   OPTIMIZE_CXXFLAGS=
16174   
16175
16176   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
16177   
16178
16179
16180 # This should be done by mkincludedir, but hack around it now.
16181 blddir=`pwd`
16182 echo "checking for $blddir/include"
16183
16184 if test ! -d "$blddir/include"; then
16185   mkdir "$blddir/include"
16186 fi
16187
16188 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
16189 # and libsupc++/Makefile.am so that multilib installs will end up
16190 # installed in the correct place. To work around this not being passed
16191 # down from config-ml.in -> top_srcdir/Makefile.am ->
16192 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
16193 trap '' 1 2 15
16194 cat > confcache <<\EOF
16195 # This file is a shell script that caches the results of configure
16196 # tests run on this system so they can be shared between configure
16197 # scripts and configure runs.  It is not useful on other systems.
16198 # If it contains results you don't want to keep, you may remove or edit it.
16199 #
16200 # By default, configure uses ./config.cache as the cache file,
16201 # creating it if it does not exist already.  You can give configure
16202 # the --cache-file=FILE option to use a different cache file; that is
16203 # what configure does when it calls configure scripts in
16204 # subdirectories, so they share the cache.
16205 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16206 # config.status only pays attention to the cache file if you give it the
16207 # --recheck option to rerun configure.
16208 #
16209 EOF
16210 # The following way of writing the cache mishandles newlines in values,
16211 # but we know of no workaround that is simple, portable, and efficient.
16212 # So, don't put newlines in cache variables' values.
16213 # Ultrix sh set writes to stderr and can't be redirected directly,
16214 # and sets the high bit in the cache file unless we assign to the vars.
16215 (set) 2>&1 |
16216   case `(ac_space=' '; set | grep ac_space) 2>&1` in
16217   *ac_space=\ *)
16218     # `set' does not quote correctly, so add quotes (double-quote substitution
16219     # turns \\\\ into \\, and sed turns \\ into \).
16220     sed -n \
16221       -e "s/'/'\\\\''/g" \
16222       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16223     ;;
16224   *)
16225     # `set' quotes correctly as required by POSIX, so do not add quotes.
16226     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16227     ;;
16228   esac >> confcache
16229 if cmp -s $cache_file confcache; then
16230   :
16231 else
16232   if test -w $cache_file; then
16233     echo "updating cache $cache_file"
16234     cat confcache > $cache_file
16235   else
16236     echo "not updating unwritable cache $cache_file"
16237   fi
16238 fi
16239 rm -f confcache
16240
16241 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16242
16243 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16244 # Let make expand exec_prefix.
16245 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16246
16247 # Any assignment to VPATH causes Sun make to only execute
16248 # the first set of double-colon rules, so remove it if not needed.
16249 # If there is a colon in the path, we need to keep it.
16250 if test "x$srcdir" = x.; then
16251   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
16252 fi
16253
16254 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16255
16256 DEFS=-DHAVE_CONFIG_H
16257
16258 # Without the "./", some shells look in PATH for config.status.
16259 : ${CONFIG_STATUS=./config.status}
16260
16261 echo creating $CONFIG_STATUS
16262 rm -f $CONFIG_STATUS
16263 cat > $CONFIG_STATUS <<EOF
16264 #! /bin/sh
16265 # Generated automatically by configure.
16266 # Run this file to recreate the current configuration.
16267 # This directory was configured as follows,
16268 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16269 #
16270 # $0 $ac_configure_args
16271 #
16272 # Compiler output produced by configure, useful for debugging
16273 # configure, is in ./config.log if it exists.
16274
16275 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16276 for ac_option
16277 do
16278   case "\$ac_option" in
16279   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16280     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16281     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16282   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16283     echo "$CONFIG_STATUS generated by autoconf version 2.13"
16284     exit 0 ;;
16285   -help | --help | --hel | --he | --h)
16286     echo "\$ac_cs_usage"; exit 0 ;;
16287   *) echo "\$ac_cs_usage"; exit 1 ;;
16288   esac
16289 done
16290
16291 ac_given_srcdir=$srcdir
16292 ac_given_INSTALL="$INSTALL"
16293
16294 trap 'rm -fr `echo "tests_flags mkcheck Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16295 EOF
16296 cat >> $CONFIG_STATUS <<EOF
16297
16298 # Protect against being on the right side of a sed subst in config.status.
16299 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16300  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16301 $ac_vpsub
16302 $extrasub
16303 s%@SHELL@%$SHELL%g
16304 s%@CFLAGS@%$CFLAGS%g
16305 s%@CPPFLAGS@%$CPPFLAGS%g
16306 s%@CXXFLAGS@%$CXXFLAGS%g
16307 s%@FFLAGS@%$FFLAGS%g
16308 s%@DEFS@%$DEFS%g
16309 s%@LDFLAGS@%$LDFLAGS%g
16310 s%@LIBS@%$LIBS%g
16311 s%@exec_prefix@%$exec_prefix%g
16312 s%@prefix@%$prefix%g
16313 s%@program_transform_name@%$program_transform_name%g
16314 s%@bindir@%$bindir%g
16315 s%@sbindir@%$sbindir%g
16316 s%@libexecdir@%$libexecdir%g
16317 s%@datadir@%$datadir%g
16318 s%@sysconfdir@%$sysconfdir%g
16319 s%@sharedstatedir@%$sharedstatedir%g
16320 s%@localstatedir@%$localstatedir%g
16321 s%@libdir@%$libdir%g
16322 s%@includedir@%$includedir%g
16323 s%@oldincludedir@%$oldincludedir%g
16324 s%@infodir@%$infodir%g
16325 s%@mandir@%$mandir%g
16326 s%@toplevel_srcdir@%$toplevel_srcdir%g
16327 s%@host@%$host%g
16328 s%@host_alias@%$host_alias%g
16329 s%@host_cpu@%$host_cpu%g
16330 s%@host_vendor@%$host_vendor%g
16331 s%@host_os@%$host_os%g
16332 s%@target@%$target%g
16333 s%@target_alias@%$target_alias%g
16334 s%@target_cpu@%$target_cpu%g
16335 s%@target_vendor@%$target_vendor%g
16336 s%@target_os@%$target_os%g
16337 s%@build@%$build%g
16338 s%@build_alias@%$build_alias%g
16339 s%@build_cpu@%$build_cpu%g
16340 s%@build_vendor@%$build_vendor%g
16341 s%@build_os@%$build_os%g
16342 s%@glibcpp_basedir@%$glibcpp_basedir%g
16343 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16344 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16345 s%@INSTALL_DATA@%$INSTALL_DATA%g
16346 s%@PACKAGE@%$PACKAGE%g
16347 s%@VERSION@%$VERSION%g
16348 s%@ACLOCAL@%$ACLOCAL%g
16349 s%@AUTOCONF@%$AUTOCONF%g
16350 s%@AUTOMAKE@%$AUTOMAKE%g
16351 s%@AUTOHEADER@%$AUTOHEADER%g
16352 s%@MAKEINFO@%$MAKEINFO%g
16353 s%@SET_MAKE@%$SET_MAKE%g
16354 s%@CC@%$CC%g
16355 s%@glibcpp_CXX@%$glibcpp_CXX%g
16356 s%@AS@%$AS%g
16357 s%@AR@%$AR%g
16358 s%@RANLIB@%$RANLIB%g
16359 s%@glibcpp_expect@%$glibcpp_expect%g
16360 s%@glibcpp_runtest@%$glibcpp_runtest%g
16361 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16362 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16363 s%@MAINT@%$MAINT%g
16364 s%@EXEEXT@%$EXEEXT%g
16365 s%@LN_S@%$LN_S%g
16366 s%@OBJEXT@%$OBJEXT%g
16367 s%@STRIP@%$STRIP%g
16368 s%@LIBTOOL@%$LIBTOOL%g
16369 s%@CXXCPP@%$CXXCPP%g
16370 s%@enable_shared@%$enable_shared%g
16371 s%@enable_static@%$enable_static%g
16372 s%@ifGNUmake@%$ifGNUmake%g
16373 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
16374 s%@CPP@%$CPP%g
16375 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
16376 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
16377 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
16378 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
16379 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
16380 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
16381 s%@libio_la@%$libio_la%g
16382 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
16383 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
16384 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
16385 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
16386 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
16387 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
16388 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
16389 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
16390 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
16391 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
16392 s%@WERROR@%$WERROR%g
16393 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
16394 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
16395 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
16396 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
16397 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
16398 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
16399 s%@gxx_include_dir@%$gxx_include_dir%g
16400 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
16401 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
16402 s%@GLIBCPP_INCLUDE_DIR@%$GLIBCPP_INCLUDE_DIR%g
16403 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
16404 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
16405 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
16406 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
16407 s%@CSTD_INCLUDES@%$CSTD_INCLUDES%g
16408 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
16409 s%@WARN_FLAGS@%$WARN_FLAGS%g
16410
16411 CEOF
16412 EOF
16413
16414 cat >> $CONFIG_STATUS <<\EOF
16415
16416 # Split the substitutions into bite-sized pieces for seds with
16417 # small command number limits, like on Digital OSF/1 and HP-UX.
16418 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16419 ac_file=1 # Number of current file.
16420 ac_beg=1 # First line for current file.
16421 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16422 ac_more_lines=:
16423 ac_sed_cmds=""
16424 while $ac_more_lines; do
16425   if test $ac_beg -gt 1; then
16426     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16427   else
16428     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16429   fi
16430   if test ! -s conftest.s$ac_file; then
16431     ac_more_lines=false
16432     rm -f conftest.s$ac_file
16433   else
16434     if test -z "$ac_sed_cmds"; then
16435       ac_sed_cmds="sed -f conftest.s$ac_file"
16436     else
16437       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16438     fi
16439     ac_file=`expr $ac_file + 1`
16440     ac_beg=$ac_end
16441     ac_end=`expr $ac_end + $ac_max_sed_cmds`
16442   fi
16443 done
16444 if test -z "$ac_sed_cmds"; then
16445   ac_sed_cmds=cat
16446 fi
16447 EOF
16448
16449 cat >> $CONFIG_STATUS <<EOF
16450
16451 CONFIG_FILES=\${CONFIG_FILES-"tests_flags mkcheck Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile"}
16452 EOF
16453 cat >> $CONFIG_STATUS <<\EOF
16454 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16455   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16456   case "$ac_file" in
16457   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16458        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16459   *) ac_file_in="${ac_file}.in" ;;
16460   esac
16461
16462   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16463
16464   # Remove last slash and all that follows it.  Not all systems have dirname.
16465   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16466   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16467     # The file is in a subdirectory.
16468     test ! -d "$ac_dir" && mkdir "$ac_dir"
16469     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16470     # A "../" for each directory in $ac_dir_suffix.
16471     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16472   else
16473     ac_dir_suffix= ac_dots=
16474   fi
16475
16476   case "$ac_given_srcdir" in
16477   .)  srcdir=.
16478       if test -z "$ac_dots"; then top_srcdir=.
16479       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16480   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16481   *) # Relative path.
16482     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16483     top_srcdir="$ac_dots$ac_given_srcdir" ;;
16484   esac
16485
16486   case "$ac_given_INSTALL" in
16487   [/$]*) INSTALL="$ac_given_INSTALL" ;;
16488   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16489   esac
16490
16491   echo creating "$ac_file"
16492   rm -f "$ac_file"
16493   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16494   case "$ac_file" in
16495   *Makefile*) ac_comsub="1i\\
16496 # $configure_input" ;;
16497   *) ac_comsub= ;;
16498   esac
16499
16500   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16501   sed -e "$ac_comsub
16502 s%@configure_input@%$configure_input%g
16503 s%@srcdir@%$srcdir%g
16504 s%@top_srcdir@%$top_srcdir%g
16505 s%@INSTALL@%$INSTALL%g
16506 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16507 fi; done
16508 rm -f conftest.s*
16509
16510 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16511 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16512 #
16513 # ac_d sets the value in "#define NAME VALUE" lines.
16514 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16515 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
16516 ac_dC='\3'
16517 ac_dD='%g'
16518 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16519 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16520 ac_uB='\([      ]\)%\1#\2define\3'
16521 ac_uC=' '
16522 ac_uD='\4%g'
16523 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16524 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16525 ac_eB='$%\1#\2define\3'
16526 ac_eC=' '
16527 ac_eD='%g'
16528
16529 if test "${CONFIG_HEADERS+set}" != set; then
16530 EOF
16531 cat >> $CONFIG_STATUS <<EOF
16532   CONFIG_HEADERS="config.h"
16533 EOF
16534 cat >> $CONFIG_STATUS <<\EOF
16535 fi
16536 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16537   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16538   case "$ac_file" in
16539   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16540        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16541   *) ac_file_in="${ac_file}.in" ;;
16542   esac
16543
16544   echo creating $ac_file
16545
16546   rm -f conftest.frag conftest.in conftest.out
16547   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16548   cat $ac_file_inputs > conftest.in
16549
16550 EOF
16551
16552 # Transform confdefs.h into a sed script conftest.vals that substitutes
16553 # the proper values into config.h.in to produce config.h.  And first:
16554 # Protect against being on the right side of a sed subst in config.status.
16555 # Protect against being in an unquoted here document in config.status.
16556 rm -f conftest.vals
16557 cat > conftest.hdr <<\EOF
16558 s/[\\&%]/\\&/g
16559 s%[\\$`]%\\&%g
16560 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16561 s%ac_d%ac_u%gp
16562 s%ac_u%ac_e%gp
16563 EOF
16564 sed -n -f conftest.hdr confdefs.h > conftest.vals
16565 rm -f conftest.hdr
16566
16567 # This sed command replaces #undef with comments.  This is necessary, for
16568 # example, in the case of _POSIX_SOURCE, which is predefined and required
16569 # on some systems where configure will not decide to define it.
16570 cat >> conftest.vals <<\EOF
16571 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16572 EOF
16573
16574 # Break up conftest.vals because some shells have a limit on
16575 # the size of here documents, and old seds have small limits too.
16576
16577 rm -f conftest.tail
16578 while :
16579 do
16580   ac_lines=`grep -c . conftest.vals`
16581   # grep -c gives empty output for an empty file on some AIX systems.
16582   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16583   # Write a limited-size here document to conftest.frag.
16584   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16585   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16586   echo 'CEOF
16587   sed -f conftest.frag conftest.in > conftest.out
16588   rm -f conftest.in
16589   mv conftest.out conftest.in
16590 ' >> $CONFIG_STATUS
16591   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16592   rm -f conftest.vals
16593   mv conftest.tail conftest.vals
16594 done
16595 rm -f conftest.vals
16596
16597 cat >> $CONFIG_STATUS <<\EOF
16598   rm -f conftest.frag conftest.h
16599   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
16600   cat conftest.in >> conftest.h
16601   rm -f conftest.in
16602   if cmp -s $ac_file conftest.h 2>/dev/null; then
16603     echo "$ac_file is unchanged"
16604     rm -f conftest.h
16605   else
16606     # Remove last slash and all that follows it.  Not all systems have dirname.
16607       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16608       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16609       # The file is in a subdirectory.
16610       test ! -d "$ac_dir" && mkdir "$ac_dir"
16611     fi
16612     rm -f $ac_file
16613     mv conftest.h $ac_file
16614   fi
16615 fi; done
16616
16617 EOF
16618
16619 cat >> $CONFIG_STATUS <<EOF
16620 ac_sources="$os_include_dir/bits/os_defines.h $CSTDIO_H $BASIC_FILE_H $BASIC_FILE_CC $CCODECVT_C $CLOCALE_H $CLOCALE_CC config/$THREADH $os_include_dir/bits/ctype_base.h $os_include_dir/bits/ctype_inline.h $os_include_dir/bits/ctype_noninline.h $ATOMICITYH/bits/atomicity.h"
16621 ac_dests="include/bits/os_defines.h include/bits/c++io.h include/bits/basic_file_model.h src/basic_file.cc libio/c_codecvt.c include/bits/c++locale.h src/c++locale.cc include/bits/c++threads.h \
16622 include/bits/ctype_base.h \
16623 include/bits/ctype_inline.h \
16624 include/bits/ctype_noninline.h include/bits/atomicity.h"
16625 EOF
16626
16627 cat >> $CONFIG_STATUS <<\EOF
16628 srcdir=$ac_given_srcdir
16629 while test -n "$ac_sources"; do
16630   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16631   set $ac_sources; ac_source=$1; shift; ac_sources=$*
16632
16633   echo "linking $srcdir/$ac_source to $ac_dest"
16634
16635   if test ! -r $srcdir/$ac_source; then
16636     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
16637   fi
16638   rm -f $ac_dest
16639
16640   # Make relative symlinks.
16641   # Remove last slash and all that follows it.  Not all systems have dirname.
16642   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
16643   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
16644     # The dest file is in a subdirectory.
16645     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
16646     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
16647     # A "../" for each directory in $ac_dest_dir_suffix.
16648     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
16649   else
16650     ac_dest_dir_suffix= ac_dots=
16651   fi
16652
16653   case "$srcdir" in
16654   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
16655   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
16656   esac
16657
16658   # Make a symlink if possible; otherwise try a hard link.
16659   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16660     ln $srcdir/$ac_source $ac_dest; then :
16661   else
16662     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
16663   fi
16664 done
16665 EOF
16666 cat >> $CONFIG_STATUS <<EOF
16667
16668 srcdir=${srcdir}
16669 host=${host}
16670 target=${target}
16671 with_multisubdir=${with_multisubdir}
16672 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16673 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16674 glibcpp_basedir=${glibcpp_basedir}
16675 CC="${CC}"
16676 CXX="${CXX}"
16677
16678 EOF
16679 cat >> $CONFIG_STATUS <<\EOF
16680 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
16681 if test -n "$CONFIG_FILES"; then
16682   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
16683   grep '^MULTISUBDIR =' Makefile >> src/Makefile
16684   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
16685 fi
16686 chmod +x tests_flags
16687 chmod +x mkcheck
16688
16689 exit 0
16690 EOF
16691 chmod +x $CONFIG_STATUS
16692 rm -fr confdefs* $ac_clean_files
16693 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16694
16695
16696
16697 # Generate bits/c++config.h
16698 # NB: This must be the first generated file as others include it. . .
16699 $srcdir/mkc++config $blddir $srcdir
16700
16701 # Generate bits/std_limits.h and src/limitsMEMBERS.cc
16702 if test ! -f stamp-limits; then
16703   $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
16704   if test ! -f include/bits/std_limits.h; then
16705     echo "mknumeric_limits failed to execute properly: exiting"
16706     exit 1
16707   else
16708     touch stamp-limits 
16709   fi
16710 fi
16711
16712
16713 # Sanity checking & User-visible messages.
16714 # Checks down here, otherwise they get scrolled off before
16715 # the user will notice.
16716
16717 # Trying to get more people to read documentation.  Possibly remove
16718 # check and warn all the time. There is no "informational" AC_MSG_
16719 # macro, so these are going to be printed even when --quiet/--silent
16720 # is given.
16721 if test ! -f stamp-sanity-warned; then
16722   touch stamp-sanity-warned
16723   echo ""
16724   echo "Please make certain that you read the installation information here:"
16725   echo "  faster => ${srcdir}/docs/install.html"
16726   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
16727   echo ""
16728   echo "and the configuration information here:"
16729   echo "  faster => ${srcdir}/docs/configopts.html"
16730   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
16731   echo ""
16732   echo "before proceeding with ${_cv_gnu_make_command}."
16733   echo ""
16734 fi