OSDN Git Service

cbd02b480b86ed547d035c8cef2dfc9d416cfbaa
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib       build hella library versions (default)"
16 ac_help="$ac_help
17   --with-target-subdir=SUBDIR
18                            configuring in a subdirectory"
19 ac_help="$ac_help
20   --with-cross-host=HOST  configuring with a cross compiler"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package. 
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package. 
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49   --enable-c99      turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51   --enable-long-long      turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
54 ac_help="$ac_help
55   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
56                                 [default=none]"
57 ac_help="$ac_help
58   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60   --with-gxx-include-dir  the installation directory for include files"
61 ac_help="$ac_help
62   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
63
64 # Initialize some variables set by options.
65 # The variables have the same names as the options, with
66 # dashes changed to underlines.
67 build=NONE
68 cache_file=./config.cache
69 exec_prefix=NONE
70 host=NONE
71 no_create=
72 nonopt=NONE
73 no_recursion=
74 prefix=NONE
75 program_prefix=NONE
76 program_suffix=NONE
77 program_transform_name=s,x,x,
78 silent=
79 site=
80 srcdir=
81 target=NONE
82 verbose=
83 x_includes=NONE
84 x_libraries=NONE
85 bindir='${exec_prefix}/bin'
86 sbindir='${exec_prefix}/sbin'
87 libexecdir='${exec_prefix}/libexec'
88 datadir='${prefix}/share'
89 sysconfdir='${prefix}/etc'
90 sharedstatedir='${prefix}/com'
91 localstatedir='${prefix}/var'
92 libdir='${exec_prefix}/lib'
93 includedir='${prefix}/include'
94 oldincludedir='/usr/include'
95 infodir='${prefix}/info'
96 mandir='${prefix}/man'
97
98 # Initialize some other variables.
99 subdirs=
100 MFLAGS= MAKEFLAGS=
101 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 ac_max_here_lines=12
104
105 ac_prev=
106 for ac_option
107 do
108
109   # If the previous option needs an argument, assign it.
110   if test -n "$ac_prev"; then
111     eval "$ac_prev=\$ac_option"
112     ac_prev=
113     continue
114   fi
115
116   case "$ac_option" in
117   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
118   *) ac_optarg= ;;
119   esac
120
121   # Accept the important Cygnus configure options, so we can diagnose typos.
122
123   case "$ac_option" in
124
125   -bindir | --bindir | --bindi | --bind | --bin | --bi)
126     ac_prev=bindir ;;
127   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
128     bindir="$ac_optarg" ;;
129
130   -build | --build | --buil | --bui | --bu)
131     ac_prev=build ;;
132   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
133     build="$ac_optarg" ;;
134
135   -cache-file | --cache-file | --cache-fil | --cache-fi \
136   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
137     ac_prev=cache_file ;;
138   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
139   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
140     cache_file="$ac_optarg" ;;
141
142   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
143     ac_prev=datadir ;;
144   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
145   | --da=*)
146     datadir="$ac_optarg" ;;
147
148   -disable-* | --disable-*)
149     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
150     # Reject names that are not valid shell variable names.
151     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
152       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153     fi
154     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155     eval "enable_${ac_feature}=no" ;;
156
157   -enable-* | --enable-*)
158     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
159     # Reject names that are not valid shell variable names.
160     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
161       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162     fi
163     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164     case "$ac_option" in
165       *=*) ;;
166       *) ac_optarg=yes ;;
167     esac
168     eval "enable_${ac_feature}='$ac_optarg'" ;;
169
170   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
171   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
172   | --exec | --exe | --ex)
173     ac_prev=exec_prefix ;;
174   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
175   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
176   | --exec=* | --exe=* | --ex=*)
177     exec_prefix="$ac_optarg" ;;
178
179   -gas | --gas | --ga | --g)
180     # Obsolete; use --with-gas.
181     with_gas=yes ;;
182
183   -help | --help | --hel | --he)
184     # Omit some internal or obsolete options to make the list less imposing.
185     # This message is too long to be a string in the A/UX 3.1 sh.
186     cat << EOF
187 Usage: configure [options] [host]
188 Options: [defaults in brackets after descriptions]
189 Configuration:
190   --cache-file=FILE       cache test results in FILE
191   --help                  print this message
192   --no-create             do not create output files
193   --quiet, --silent       do not print \`checking...' messages
194   --version               print the version of autoconf that created configure
195 Directory and file names:
196   --prefix=PREFIX         install architecture-independent files in PREFIX
197                           [$ac_default_prefix]
198   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
199                           [same as prefix]
200   --bindir=DIR            user executables in DIR [EPREFIX/bin]
201   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
202   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
203   --datadir=DIR           read-only architecture-independent data in DIR
204                           [PREFIX/share]
205   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
206   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
207                           [PREFIX/com]
208   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
209   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
210   --includedir=DIR        C header files in DIR [PREFIX/include]
211   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
212   --infodir=DIR           info documentation in DIR [PREFIX/info]
213   --mandir=DIR            man documentation in DIR [PREFIX/man]
214   --srcdir=DIR            find the sources in DIR [configure dir or ..]
215   --program-prefix=PREFIX prepend PREFIX to installed program names
216   --program-suffix=SUFFIX append SUFFIX to installed program names
217   --program-transform-name=PROGRAM
218                           run sed PROGRAM on installed program names
219 EOF
220     cat << EOF
221 Host type:
222   --build=BUILD           configure for building on BUILD [BUILD=HOST]
223   --host=HOST             configure for HOST [guessed]
224   --target=TARGET         configure for TARGET [TARGET=HOST]
225 Features and packages:
226   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
227   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
228   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
229   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
230   --x-includes=DIR        X include files are in DIR
231   --x-libraries=DIR       X library files are in DIR
232 EOF
233     if test -n "$ac_help"; then
234       echo "--enable and --with options recognized:$ac_help"
235     fi
236     exit 0 ;;
237
238   -host | --host | --hos | --ho)
239     ac_prev=host ;;
240   -host=* | --host=* | --hos=* | --ho=*)
241     host="$ac_optarg" ;;
242
243   -includedir | --includedir | --includedi | --included | --include \
244   | --includ | --inclu | --incl | --inc)
245     ac_prev=includedir ;;
246   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247   | --includ=* | --inclu=* | --incl=* | --inc=*)
248     includedir="$ac_optarg" ;;
249
250   -infodir | --infodir | --infodi | --infod | --info | --inf)
251     ac_prev=infodir ;;
252   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253     infodir="$ac_optarg" ;;
254
255   -libdir | --libdir | --libdi | --libd)
256     ac_prev=libdir ;;
257   -libdir=* | --libdir=* | --libdi=* | --libd=*)
258     libdir="$ac_optarg" ;;
259
260   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261   | --libexe | --libex | --libe)
262     ac_prev=libexecdir ;;
263   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264   | --libexe=* | --libex=* | --libe=*)
265     libexecdir="$ac_optarg" ;;
266
267   -localstatedir | --localstatedir | --localstatedi | --localstated \
268   | --localstate | --localstat | --localsta | --localst \
269   | --locals | --local | --loca | --loc | --lo)
270     ac_prev=localstatedir ;;
271   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274     localstatedir="$ac_optarg" ;;
275
276   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277     ac_prev=mandir ;;
278   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279     mandir="$ac_optarg" ;;
280
281   -nfp | --nfp | --nf)
282     # Obsolete; use --without-fp.
283     with_fp=no ;;
284
285   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286   | --no-cr | --no-c)
287     no_create=yes ;;
288
289   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291     no_recursion=yes ;;
292
293   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295   | --oldin | --oldi | --old | --ol | --o)
296     ac_prev=oldincludedir ;;
297   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300     oldincludedir="$ac_optarg" ;;
301
302   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303     ac_prev=prefix ;;
304   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305     prefix="$ac_optarg" ;;
306
307   -program-prefix | --program-prefix | --program-prefi | --program-pref \
308   | --program-pre | --program-pr | --program-p)
309     ac_prev=program_prefix ;;
310   -program-prefix=* | --program-prefix=* | --program-prefi=* \
311   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312     program_prefix="$ac_optarg" ;;
313
314   -program-suffix | --program-suffix | --program-suffi | --program-suff \
315   | --program-suf | --program-su | --program-s)
316     ac_prev=program_suffix ;;
317   -program-suffix=* | --program-suffix=* | --program-suffi=* \
318   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319     program_suffix="$ac_optarg" ;;
320
321   -program-transform-name | --program-transform-name \
322   | --program-transform-nam | --program-transform-na \
323   | --program-transform-n | --program-transform- \
324   | --program-transform | --program-transfor \
325   | --program-transfo | --program-transf \
326   | --program-trans | --program-tran \
327   | --progr-tra | --program-tr | --program-t)
328     ac_prev=program_transform_name ;;
329   -program-transform-name=* | --program-transform-name=* \
330   | --program-transform-nam=* | --program-transform-na=* \
331   | --program-transform-n=* | --program-transform-=* \
332   | --program-transform=* | --program-transfor=* \
333   | --program-transfo=* | --program-transf=* \
334   | --program-trans=* | --program-tran=* \
335   | --progr-tra=* | --program-tr=* | --program-t=*)
336     program_transform_name="$ac_optarg" ;;
337
338   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339   | -silent | --silent | --silen | --sile | --sil)
340     silent=yes ;;
341
342   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343     ac_prev=sbindir ;;
344   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345   | --sbi=* | --sb=*)
346     sbindir="$ac_optarg" ;;
347
348   -sharedstatedir | --sharedstatedir | --sharedstatedi \
349   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350   | --sharedst | --shareds | --shared | --share | --shar \
351   | --sha | --sh)
352     ac_prev=sharedstatedir ;;
353   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356   | --sha=* | --sh=*)
357     sharedstatedir="$ac_optarg" ;;
358
359   -site | --site | --sit)
360     ac_prev=site ;;
361   -site=* | --site=* | --sit=*)
362     site="$ac_optarg" ;;
363
364   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365     ac_prev=srcdir ;;
366   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367     srcdir="$ac_optarg" ;;
368
369   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370   | --syscon | --sysco | --sysc | --sys | --sy)
371     ac_prev=sysconfdir ;;
372   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374     sysconfdir="$ac_optarg" ;;
375
376   -target | --target | --targe | --targ | --tar | --ta | --t)
377     ac_prev=target ;;
378   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379     target="$ac_optarg" ;;
380
381   -v | -verbose | --verbose | --verbos | --verbo | --verb)
382     verbose=yes ;;
383
384   -version | --version | --versio | --versi | --vers)
385     echo "configure generated by autoconf version 2.13"
386     exit 0 ;;
387
388   -with-* | --with-*)
389     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
390     # Reject names that are not valid shell variable names.
391     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
392       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393     fi
394     ac_package=`echo $ac_package| sed 's/-/_/g'`
395     case "$ac_option" in
396       *=*) ;;
397       *) ac_optarg=yes ;;
398     esac
399     eval "with_${ac_package}='$ac_optarg'" ;;
400
401   -without-* | --without-*)
402     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
403     # Reject names that are not valid shell variable names.
404     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
405       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406     fi
407     ac_package=`echo $ac_package| sed 's/-/_/g'`
408     eval "with_${ac_package}=no" ;;
409
410   --x)
411     # Obsolete; use --with-x.
412     with_x=yes ;;
413
414   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415   | --x-incl | --x-inc | --x-in | --x-i)
416     ac_prev=x_includes ;;
417   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419     x_includes="$ac_optarg" ;;
420
421   -x-libraries | --x-libraries | --x-librarie | --x-librari \
422   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423     ac_prev=x_libraries ;;
424   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426     x_libraries="$ac_optarg" ;;
427
428   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
429     ;;
430
431   *)
432     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
433       echo "configure: warning: $ac_option: invalid host type" 1>&2
434     fi
435     if test "x$nonopt" != xNONE; then
436       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
437     fi
438     nonopt="$ac_option"
439     ;;
440
441   esac
442 done
443
444 if test -n "$ac_prev"; then
445   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
446 fi
447
448 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
449
450 # File descriptor usage:
451 # 0 standard input
452 # 1 file creation
453 # 2 errors and warnings
454 # 3 some systems may open it to /dev/tty
455 # 4 used on the Kubota Titan
456 # 6 checking for... messages and results
457 # 5 compiler messages saved in config.log
458 if test "$silent" = yes; then
459   exec 6>/dev/null
460 else
461   exec 6>&1
462 fi
463 exec 5>./config.log
464
465 echo "\
466 This file contains any messages produced by compilers while
467 running configure, to aid debugging if configure makes a mistake.
468 " 1>&5
469
470 # Strip out --no-create and --no-recursion so they do not pile up.
471 # Also quote any args containing shell metacharacters.
472 ac_configure_args=
473 for ac_arg
474 do
475   case "$ac_arg" in
476   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
477   | --no-cr | --no-c) ;;
478   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
480   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
481   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
482   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
483   esac
484 done
485
486 # NLS nuisances.
487 # Only set these to C if already set.  These must not be set unconditionally
488 # because not all systems understand e.g. LANG=C (notably SCO).
489 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
490 # Non-C LC_CTYPE values break the ctype check.
491 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
492 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
493 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
494 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
495
496 # confdefs.h avoids OS command line length limits that DEFS can exceed.
497 rm -rf conftest* confdefs.h
498 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
499 echo > confdefs.h
500
501 # A filename unique to this package, relative to the directory that
502 # configure is in, which we can look for to find out if srcdir is correct.
503 ac_unique_file=src/ios.cc
504
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507   ac_srcdir_defaulted=yes
508   # Try the directory containing this script, then its parent.
509   ac_prog=$0
510   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
511   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512   srcdir=$ac_confdir
513   if test ! -r $srcdir/$ac_unique_file; then
514     srcdir=..
515   fi
516 else
517   ac_srcdir_defaulted=no
518 fi
519 if test ! -r $srcdir/$ac_unique_file; then
520   if test "$ac_srcdir_defaulted" = yes; then
521     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
522   else
523     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
524   fi
525 fi
526 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
527
528 # Prefer explicitly selected file to automatically selected ones.
529 if test -z "$CONFIG_SITE"; then
530   if test "x$prefix" != xNONE; then
531     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
532   else
533     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
534   fi
535 fi
536 for ac_site_file in $CONFIG_SITE; do
537   if test -r "$ac_site_file"; then
538     echo "loading site script $ac_site_file"
539     . "$ac_site_file"
540   fi
541 done
542
543 if test -r "$cache_file"; then
544   echo "loading cache $cache_file"
545   . $cache_file
546 else
547   echo "creating cache $cache_file"
548   > $cache_file
549 fi
550
551 ac_ext=c
552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
553 ac_cpp='$CPP $CPPFLAGS'
554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
556 cross_compiling=$ac_cv_prog_cc_cross
557
558 ac_exeext=
559 ac_objext=o
560 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
561   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
562   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
563     ac_n= ac_c='
564 ' ac_t='        '
565   else
566     ac_n=-n ac_c= ac_t=
567   fi
568 else
569   ac_n= ac_c='\c' ac_t=
570 fi
571
572
573
574 PACKAGE=libstdc++
575
576 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
577 release_VERSION=3.1.0
578
579 # For libtool versioning info, format is CURRENT:REVISION:AGE
580 libtool_VERSION=4:0:0
581
582
583 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
584 # AC 2.50 sets target_alias iff the user specified --target, but we use it
585 # everywhere, so we set it here just to be sure.
586 ac_aux_dir=
587 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
588   if test -f $ac_dir/install-sh; then
589     ac_aux_dir=$ac_dir
590     ac_install_sh="$ac_aux_dir/install-sh -c"
591     break
592   elif test -f $ac_dir/install.sh; then
593     ac_aux_dir=$ac_dir
594     ac_install_sh="$ac_aux_dir/install.sh -c"
595     break
596   fi
597 done
598 if test -z "$ac_aux_dir"; then
599   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
600 fi
601 ac_config_guess=$ac_aux_dir/config.guess
602 ac_config_sub=$ac_aux_dir/config.sub
603 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
604
605
606 # Do some error checking and defaulting for the host and target type.
607 # The inputs are:
608 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
609 #
610 # The rules are:
611 # 1. You are not allowed to specify --host, --target, and nonopt at the
612 #    same time.
613 # 2. Host defaults to nonopt.
614 # 3. If nonopt is not specified, then host defaults to the current host,
615 #    as determined by config.guess.
616 # 4. Target and build default to nonopt.
617 # 5. If nonopt is not specified, then target and build default to host.
618
619 # The aliases save the names the user supplied, while $host etc.
620 # will get canonicalized.
621 case $host---$target---$nonopt in
622 NONE---*---* | *---NONE---* | *---*---NONE) ;;
623 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
624 esac
625
626
627 # Make sure we can run config.sub.
628 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
629 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
630 fi
631
632 echo $ac_n "checking host system type""... $ac_c" 1>&6
633 echo "configure:634: checking host system type" >&5
634
635 host_alias=$host
636 case "$host_alias" in
637 NONE)
638   case $nonopt in
639   NONE)
640     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
641     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
642     fi ;;
643   *) host_alias=$nonopt ;;
644   esac ;;
645 esac
646
647 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
648 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
649 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
650 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
651 echo "$ac_t""$host" 1>&6
652
653 echo $ac_n "checking target system type""... $ac_c" 1>&6
654 echo "configure:655: checking target system type" >&5
655
656 target_alias=$target
657 case "$target_alias" in
658 NONE)
659   case $nonopt in
660   NONE) target_alias=$host_alias ;;
661   *) target_alias=$nonopt ;;
662   esac ;;
663 esac
664
665 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
666 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
667 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
668 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
669 echo "$ac_t""$target" 1>&6
670
671 echo $ac_n "checking build system type""... $ac_c" 1>&6
672 echo "configure:673: checking build system type" >&5
673
674 build_alias=$build
675 case "$build_alias" in
676 NONE)
677   case $nonopt in
678   NONE) build_alias=$host_alias ;;
679   *) build_alias=$nonopt ;;
680   esac ;;
681 esac
682
683 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
684 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
685 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
686 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
687 echo "$ac_t""$build" 1>&6
688
689 test "$host_alias" != "$target_alias" &&
690   test "$program_prefix$program_suffix$program_transform_name" = \
691     NONENONEs,x,x, &&
692   program_prefix=${target_alias}-
693
694 target_alias=${target_alias-$target}
695
696
697 # Find a good install program.  We prefer a C program (faster),
698 # so one script is as good as another.  But avoid the broken or
699 # incompatible versions:
700 # SysV /etc/install, /usr/sbin/install
701 # SunOS /usr/etc/install
702 # IRIX /sbin/install
703 # AIX /bin/install
704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
707 # ./install, which can be erroneously created by make from ./install.sh.
708 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
709 echo "configure:710: checking for a BSD compatible install" >&5
710 if test -z "$INSTALL"; then
711 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
712   echo $ac_n "(cached) $ac_c" 1>&6
713 else
714     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
715   for ac_dir in $PATH; do
716     # Account for people who put trailing slashes in PATH elements.
717     case "$ac_dir/" in
718     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
719     *)
720       # OSF1 and SCO ODT 3.0 have their own names for install.
721       # Don't use installbsd from OSF since it installs stuff as root
722       # by default.
723       for ac_prog in ginstall scoinst install; do
724         if test -f $ac_dir/$ac_prog; then
725           if test $ac_prog = install &&
726             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
727             # AIX install.  It has an incompatible calling convention.
728             :
729           else
730             ac_cv_path_install="$ac_dir/$ac_prog -c"
731             break 2
732           fi
733         fi
734       done
735       ;;
736     esac
737   done
738   IFS="$ac_save_IFS"
739
740 fi
741   if test "${ac_cv_path_install+set}" = set; then
742     INSTALL="$ac_cv_path_install"
743   else
744     # As a last resort, use the slow shell script.  We don't cache a
745     # path for INSTALL within a source directory, because that will
746     # break other packages using the cache if that directory is
747     # removed, or if the path is relative.
748     INSTALL="$ac_install_sh"
749   fi
750 fi
751 echo "$ac_t""$INSTALL" 1>&6
752
753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
754 # It thinks the first close brace ends the variable substitution.
755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
756
757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
758
759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
760
761 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
762 echo "configure:763: checking whether build environment is sane" >&5
763 # Just in case
764 sleep 1
765 echo timestamp > conftestfile
766 # Do `set' in a subshell so we don't clobber the current shell's
767 # arguments.  Must try -L first in case configure is actually a
768 # symlink; some systems play weird games with the mod time of symlinks
769 # (eg FreeBSD returns the mod time of the symlink's containing
770 # directory).
771 if (
772    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
773    if test "$*" = "X"; then
774       # -L didn't work.
775       set X `ls -t $srcdir/configure conftestfile`
776    fi
777    if test "$*" != "X $srcdir/configure conftestfile" \
778       && test "$*" != "X conftestfile $srcdir/configure"; then
779
780       # If neither matched, then we have a broken ls.  This can happen
781       # if, for instance, CONFIG_SHELL is bash and it inherits a
782       # broken ls alias from the environment.  This has actually
783       # happened.  Such a system could not be considered "sane".
784       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
785 alias in your environment" 1>&2; exit 1; }
786    fi
787
788    test "$2" = conftestfile
789    )
790 then
791    # Ok.
792    :
793 else
794    { echo "configure: error: newly created file is older than distributed files!
795 Check your system clock" 1>&2; exit 1; }
796 fi
797 rm -f conftest*
798 echo "$ac_t""yes" 1>&6
799 if test "$program_transform_name" = s,x,x,; then
800   program_transform_name=
801 else
802   # Double any \ or $.  echo might interpret backslashes.
803   cat <<\EOF_SED > conftestsed
804 s,\\,\\\\,g; s,\$,$$,g
805 EOF_SED
806   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
807   rm -f conftestsed
808 fi
809 test "$program_prefix" != NONE &&
810   program_transform_name="s,^,${program_prefix},; $program_transform_name"
811 # Use a double $ so make ignores it.
812 test "$program_suffix" != NONE &&
813   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
814
815 # sed with no file args requires a program.
816 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
817
818 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
819 echo "configure:820: checking whether ${MAKE-make} sets \${MAKE}" >&5
820 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
821 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
822   echo $ac_n "(cached) $ac_c" 1>&6
823 else
824   cat > conftestmake <<\EOF
825 all:
826         @echo 'ac_maketemp="${MAKE}"'
827 EOF
828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
829 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
830 if test -n "$ac_maketemp"; then
831   eval ac_cv_prog_make_${ac_make}_set=yes
832 else
833   eval ac_cv_prog_make_${ac_make}_set=no
834 fi
835 rm -f conftestmake
836 fi
837 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
838   echo "$ac_t""yes" 1>&6
839   SET_MAKE=
840 else
841   echo "$ac_t""no" 1>&6
842   SET_MAKE="MAKE=${MAKE-make}"
843 fi
844
845
846 PACKAGE=$PACKAGE
847
848 VERSION=$release_VERSION
849
850 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
851   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
852 fi
853 cat >> confdefs.h <<EOF
854 #define PACKAGE "$PACKAGE"
855 EOF
856
857 cat >> confdefs.h <<EOF
858 #define VERSION "$VERSION"
859 EOF
860
861
862
863 missing_dir=`cd $ac_aux_dir && pwd`
864 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
865 echo "configure:866: checking for working aclocal" >&5
866 # Run test in a subshell; some versions of sh will print an error if
867 # an executable is not found, even if stderr is redirected.
868 # Redirect stdin to placate older versions of autoconf.  Sigh.
869 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
870    ACLOCAL=aclocal
871    echo "$ac_t""found" 1>&6
872 else
873    ACLOCAL="$missing_dir/missing aclocal"
874    echo "$ac_t""missing" 1>&6
875 fi
876
877 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
878 echo "configure:879: checking for working autoconf" >&5
879 # Run test in a subshell; some versions of sh will print an error if
880 # an executable is not found, even if stderr is redirected.
881 # Redirect stdin to placate older versions of autoconf.  Sigh.
882 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
883    AUTOCONF=autoconf
884    echo "$ac_t""found" 1>&6
885 else
886    AUTOCONF="$missing_dir/missing autoconf"
887    echo "$ac_t""missing" 1>&6
888 fi
889
890 echo $ac_n "checking for working automake""... $ac_c" 1>&6
891 echo "configure:892: checking for working automake" >&5
892 # Run test in a subshell; some versions of sh will print an error if
893 # an executable is not found, even if stderr is redirected.
894 # Redirect stdin to placate older versions of autoconf.  Sigh.
895 if (automake --version) < /dev/null > /dev/null 2>&1; then
896    AUTOMAKE=automake
897    echo "$ac_t""found" 1>&6
898 else
899    AUTOMAKE="$missing_dir/missing automake"
900    echo "$ac_t""missing" 1>&6
901 fi
902
903 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
904 echo "configure:905: checking for working autoheader" >&5
905 # Run test in a subshell; some versions of sh will print an error if
906 # an executable is not found, even if stderr is redirected.
907 # Redirect stdin to placate older versions of autoconf.  Sigh.
908 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
909    AUTOHEADER=autoheader
910    echo "$ac_t""found" 1>&6
911 else
912    AUTOHEADER="$missing_dir/missing autoheader"
913    echo "$ac_t""missing" 1>&6
914 fi
915
916 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
917 echo "configure:918: checking for working makeinfo" >&5
918 # Run test in a subshell; some versions of sh will print an error if
919 # an executable is not found, even if stderr is redirected.
920 # Redirect stdin to placate older versions of autoconf.  Sigh.
921 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
922    MAKEINFO=makeinfo
923    echo "$ac_t""found" 1>&6
924 else
925    MAKEINFO="$missing_dir/missing makeinfo"
926    echo "$ac_t""missing" 1>&6
927 fi
928
929
930
931
932
933
934 # Runs configure.host and configure.target, as well as finds CC, CXX
935 # and assorted other critical bits. Have to run this before the
936 # GLIBCPP_ENABLE_* macros below.
937 if test $host != $build; then
938   ac_tool_prefix=${host_alias}-
939 else
940   ac_tool_prefix=
941 fi
942
943 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
944 echo "configure:945: checking for Cygwin environment" >&5
945 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
946   echo $ac_n "(cached) $ac_c" 1>&6
947 else
948   cat > conftest.$ac_ext <<EOF
949 #line 950 "configure"
950 #include "confdefs.h"
951
952 int main() {
953
954 #ifndef __CYGWIN__
955 #define __CYGWIN__ __CYGWIN32__
956 #endif
957 return __CYGWIN__;
958 ; return 0; }
959 EOF
960 if { (eval echo configure:961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
961   rm -rf conftest*
962   ac_cv_cygwin=yes
963 else
964   echo "configure: failed program was:" >&5
965   cat conftest.$ac_ext >&5
966   rm -rf conftest*
967   ac_cv_cygwin=no
968 fi
969 rm -f conftest*
970 rm -f conftest*
971 fi
972
973 echo "$ac_t""$ac_cv_cygwin" 1>&6
974 CYGWIN=
975 test "$ac_cv_cygwin" = yes && CYGWIN=yes
976 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
977 echo "configure:978: checking for mingw32 environment" >&5
978 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
979   echo $ac_n "(cached) $ac_c" 1>&6
980 else
981   cat > conftest.$ac_ext <<EOF
982 #line 983 "configure"
983 #include "confdefs.h"
984
985 int main() {
986 return __MINGW32__;
987 ; return 0; }
988 EOF
989 if { (eval echo configure:990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
990   rm -rf conftest*
991   ac_cv_mingw32=yes
992 else
993   echo "configure: failed program was:" >&5
994   cat conftest.$ac_ext >&5
995   rm -rf conftest*
996   ac_cv_mingw32=no
997 fi
998 rm -f conftest*
999 rm -f conftest*
1000 fi
1001
1002 echo "$ac_t""$ac_cv_mingw32" 1>&6
1003 MINGW32=
1004 test "$ac_cv_mingw32" = yes && MINGW32=yes
1005
1006     # Check whether --enable-multilib or --disable-multilib was given.
1007 if test "${enable_multilib+set}" = set; then
1008   enableval="$enable_multilib"
1009   case "${enableval}" in
1010     yes) multilib=yes ;;
1011     no)  multilib=no ;;
1012     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1013    esac
1014 else
1015   multilib=yes
1016 fi
1017
1018 # When building with srcdir == objdir, links to the source files will
1019 # be created in directories within the target_subdir.  We have to
1020 # adjust toplevel_srcdir accordingly, so that configure finds
1021 # install-sh and other auxiliary files that live in the top-level
1022 # source directory.
1023 if test "${srcdir}" = "."; then
1024   if test -z "${with_target_subdir}"; then
1025     toprel=".."
1026   else
1027     if test "${with_target_subdir}" != "."; then
1028       toprel="${with_multisrctop}../.."
1029     else
1030       toprel="${with_multisrctop}.."
1031     fi
1032   fi
1033 else
1034   toprel=".."
1035 fi
1036 ac_aux_dir=
1037 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1038   if test -f $ac_dir/install-sh; then
1039     ac_aux_dir=$ac_dir
1040     ac_install_sh="$ac_aux_dir/install-sh -c"
1041     break
1042   elif test -f $ac_dir/install.sh; then
1043     ac_aux_dir=$ac_dir
1044     ac_install_sh="$ac_aux_dir/install.sh -c"
1045     break
1046   fi
1047 done
1048 if test -z "$ac_aux_dir"; then
1049   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1050 fi
1051 ac_config_guess=$ac_aux_dir/config.guess
1052 ac_config_sub=$ac_aux_dir/config.sub
1053 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1054
1055 toplevel_srcdir=\${top_srcdir}/$toprel
1056
1057
1058 # Export build and source directories.
1059 # These need to be absolute paths, yet at the same time need to
1060 # canonicalize only relative paths, because then amd will not unmount
1061 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1062 glibcpp_builddir=`pwd`
1063 case $srcdir in
1064 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1065 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1066 esac
1067
1068
1069
1070
1071
1072 # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.50+, can also
1073 # be 'cp -p' if linking isn't available.
1074 #ac_cv_prog_LN_S='cp -p'
1075 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1076 echo "configure:1077: checking whether ln -s works" >&5
1077 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1078   echo $ac_n "(cached) $ac_c" 1>&6
1079 else
1080   rm -f conftestdata
1081 if ln -s X conftestdata 2>/dev/null
1082 then
1083   rm -f conftestdata
1084   ac_cv_prog_LN_S="ln -s"
1085 else
1086   ac_cv_prog_LN_S=ln
1087 fi
1088 fi
1089 LN_S="$ac_cv_prog_LN_S"
1090 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1091   echo "$ac_t""yes" 1>&6
1092 else
1093   echo "$ac_t""no" 1>&6
1094 fi
1095
1096
1097 # We use these options to decide which functions to include.
1098 # Check whether --with-target-subdir or --without-target-subdir was given.
1099 if test "${with_target_subdir+set}" = set; then
1100   withval="$with_target_subdir"
1101   :
1102 fi
1103
1104 # Check whether --with-cross-host or --without-cross-host was given.
1105 if test "${with_cross_host+set}" = set; then
1106   withval="$with_cross_host"
1107   :
1108 fi
1109
1110
1111   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1112   
1113
1114   # Never versions of autoconf add an underscore to these functions.
1115   # Prevent future problems ...
1116   
1117   
1118   
1119   
1120
1121 #  AC_PROG_CC
1122
1123 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1124 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1125 # are probably using a cross compiler, which will not be able to fully
1126 # link an executable.  This should really be fixed in autoconf
1127 # itself.
1128
1129
1130
1131
1132 # Extract the first word of "gcc", so it can be a program name with args.
1133 set dummy gcc; ac_word=$2
1134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1135 echo "configure:1136: checking for $ac_word" >&5
1136 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1137   echo $ac_n "(cached) $ac_c" 1>&6
1138 else
1139   if test -n "$CC"; then
1140   ac_cv_prog_CC="$CC" # Let the user override the test.
1141 else
1142   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1143   ac_dummy="$PATH"
1144   for ac_dir in $ac_dummy; do
1145     test -z "$ac_dir" && ac_dir=.
1146     if test -f $ac_dir/$ac_word; then
1147       ac_cv_prog_CC="gcc"
1148       break
1149     fi
1150   done
1151   IFS="$ac_save_ifs"
1152 fi
1153 fi
1154 CC="$ac_cv_prog_CC"
1155 if test -n "$CC"; then
1156   echo "$ac_t""$CC" 1>&6
1157 else
1158   echo "$ac_t""no" 1>&6
1159 fi
1160
1161 if test -z "$CC"; then
1162   # Extract the first word of "cc", so it can be a program name with args.
1163 set dummy cc; ac_word=$2
1164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1165 echo "configure:1166: checking for $ac_word" >&5
1166 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1167   echo $ac_n "(cached) $ac_c" 1>&6
1168 else
1169   if test -n "$CC"; then
1170   ac_cv_prog_CC="$CC" # Let the user override the test.
1171 else
1172   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1173   ac_prog_rejected=no
1174   ac_dummy="$PATH"
1175   for ac_dir in $ac_dummy; do
1176     test -z "$ac_dir" && ac_dir=.
1177     if test -f $ac_dir/$ac_word; then
1178       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1179         ac_prog_rejected=yes
1180         continue
1181       fi
1182       ac_cv_prog_CC="cc"
1183       break
1184     fi
1185   done
1186   IFS="$ac_save_ifs"
1187 if test $ac_prog_rejected = yes; then
1188   # We found a bogon in the path, so make sure we never use it.
1189   set dummy $ac_cv_prog_CC
1190   shift
1191   if test $# -gt 0; then
1192     # We chose a different compiler from the bogus one.
1193     # However, it has the same basename, so the bogon will be chosen
1194     # first if we set CC to just the basename; use the full file name.
1195     shift
1196     set dummy "$ac_dir/$ac_word" "$@"
1197     shift
1198     ac_cv_prog_CC="$@"
1199   fi
1200 fi
1201 fi
1202 fi
1203 CC="$ac_cv_prog_CC"
1204 if test -n "$CC"; then
1205   echo "$ac_t""$CC" 1>&6
1206 else
1207   echo "$ac_t""no" 1>&6
1208 fi
1209
1210   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1211 fi
1212
1213 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1214 echo "configure:1215: checking whether we are using GNU C" >&5
1215 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1216   echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218   cat > conftest.c <<EOF
1219 #ifdef __GNUC__
1220   yes;
1221 #endif
1222 EOF
1223 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1224   ac_cv_prog_gcc=yes
1225 else
1226   ac_cv_prog_gcc=no
1227 fi
1228 fi
1229
1230 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1231
1232 if test $ac_cv_prog_gcc = yes; then
1233   GCC=yes
1234   ac_test_CFLAGS="${CFLAGS+set}"
1235   ac_save_CFLAGS="$CFLAGS"
1236   CFLAGS=
1237   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1238 echo "configure:1239: checking whether ${CC-cc} accepts -g" >&5
1239 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1240   echo $ac_n "(cached) $ac_c" 1>&6
1241 else
1242   echo 'void f(){}' > conftest.c
1243 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1244   ac_cv_prog_cc_g=yes
1245 else
1246   ac_cv_prog_cc_g=no
1247 fi
1248 rm -f conftest*
1249
1250 fi
1251
1252 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1253   if test "$ac_test_CFLAGS" = set; then
1254     CFLAGS="$ac_save_CFLAGS"
1255   elif test $ac_cv_prog_cc_g = yes; then
1256     CFLAGS="-g -O2"
1257   else
1258     CFLAGS="-O2"
1259   fi
1260 else
1261   GCC=
1262   test "${CFLAGS+set}" = set || CFLAGS="-g"
1263 fi
1264
1265
1266 # Can't just call these here as g++ requires libstc++ to be built....
1267 #  AC_PROG_CXX
1268
1269 # Likewise for AC_PROG_CXX.
1270
1271
1272
1273 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1274 # flags that come in CXX while configuring libstdc++.  They're different
1275 # from those used for all other target libraries.  If CXX is set in
1276 # the environment, respect that here.
1277 glibcpp_CXX=$CXX
1278 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1279 do
1280 # Extract the first word of "$ac_prog", so it can be a program name with args.
1281 set dummy $ac_prog; ac_word=$2
1282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1283 echo "configure:1284: checking for $ac_word" >&5
1284 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1285   echo $ac_n "(cached) $ac_c" 1>&6
1286 else
1287   if test -n "$glibcpp_CXX"; then
1288   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1289 else
1290   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1291   ac_dummy="$PATH"
1292   for ac_dir in $ac_dummy; do
1293     test -z "$ac_dir" && ac_dir=.
1294     if test -f $ac_dir/$ac_word; then
1295       ac_cv_prog_glibcpp_CXX="$ac_prog"
1296       break
1297     fi
1298   done
1299   IFS="$ac_save_ifs"
1300 fi
1301 fi
1302 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1303 if test -n "$glibcpp_CXX"; then
1304   echo "$ac_t""$glibcpp_CXX" 1>&6
1305 else
1306   echo "$ac_t""no" 1>&6
1307 fi
1308
1309 test -n "$glibcpp_CXX" && break
1310 done
1311 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1312
1313
1314 CXX=$glibcpp_CXX
1315 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1316
1317 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1318 echo "configure:1319: checking whether we are using GNU C++" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1320   echo $ac_n "(cached) $ac_c" 1>&6
1321 else
1322   cat > conftest.C <<EOF
1323 #ifdef __GNUC__
1324   yes;
1325 #endif
1326 EOF
1327 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1328   ac_cv_prog_gxx=yes
1329 else
1330   ac_cv_prog_gxx=no
1331 fi
1332 fi
1333
1334 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1335
1336 if test $ac_cv_prog_gxx = yes; then
1337   GXX=yes
1338   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1339   ac_save_CXXFLAGS="$CXXFLAGS"
1340   CXXFLAGS=
1341   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1342 echo "configure:1343: checking whether ${CXX-g++} accepts -g" >&5
1343 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1344   echo $ac_n "(cached) $ac_c" 1>&6
1345 else
1346   echo 'void f(){}' > conftest.cc
1347 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1348   ac_cv_prog_cxx_g=yes
1349 else
1350   ac_cv_prog_cxx_g=no
1351 fi
1352 rm -f conftest*
1353
1354 fi
1355
1356 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1357   if test "$ac_test_CXXFLAGS" = set; then
1358     CXXFLAGS="$ac_save_CXXFLAGS"
1359   elif test $ac_cv_prog_cxx_g = yes; then
1360     CXXFLAGS="-g -O2"
1361   else
1362     CXXFLAGS="-O2"
1363   fi
1364 else
1365   GXX=
1366   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1367 fi
1368
1369
1370    # For some reason, gettext needs this.
1371    echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1372 echo "configure:1373: checking for POSIXized ISC" >&5
1373 if test -d /etc/conf/kconfig.d &&
1374   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1375 then
1376   echo "$ac_t""yes" 1>&6
1377   ISC=yes # If later tests want to check for ISC.
1378   cat >> confdefs.h <<\EOF
1379 #define _POSIX_SOURCE 1
1380 EOF
1381
1382   if test "$GCC" = yes; then
1383     CC="$CC -posix"
1384   else
1385     CC="$CC -Xp"
1386   fi
1387 else
1388   echo "$ac_t""no" 1>&6
1389   ISC=
1390 fi
1391
1392
1393   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1394 set dummy ${ac_tool_prefix}as; ac_word=$2
1395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1396 echo "configure:1397: checking for $ac_word" >&5
1397 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1398   echo $ac_n "(cached) $ac_c" 1>&6
1399 else
1400   if test -n "$AS"; then
1401   ac_cv_prog_AS="$AS" # Let the user override the test.
1402 else
1403   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1404   ac_dummy="$PATH"
1405   for ac_dir in $ac_dummy; do
1406     test -z "$ac_dir" && ac_dir=.
1407     if test -f $ac_dir/$ac_word; then
1408       ac_cv_prog_AS="${ac_tool_prefix}as"
1409       break
1410     fi
1411   done
1412   IFS="$ac_save_ifs"
1413   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1414 fi
1415 fi
1416 AS="$ac_cv_prog_AS"
1417 if test -n "$AS"; then
1418   echo "$ac_t""$AS" 1>&6
1419 else
1420   echo "$ac_t""no" 1>&6
1421 fi
1422
1423
1424
1425   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1426 set dummy ${ac_tool_prefix}ar; ac_word=$2
1427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1428 echo "configure:1429: checking for $ac_word" >&5
1429 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1430   echo $ac_n "(cached) $ac_c" 1>&6
1431 else
1432   if test -n "$AR"; then
1433   ac_cv_prog_AR="$AR" # Let the user override the test.
1434 else
1435   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1436   ac_dummy="$PATH"
1437   for ac_dir in $ac_dummy; do
1438     test -z "$ac_dir" && ac_dir=.
1439     if test -f $ac_dir/$ac_word; then
1440       ac_cv_prog_AR="${ac_tool_prefix}ar"
1441       break
1442     fi
1443   done
1444   IFS="$ac_save_ifs"
1445   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1446 fi
1447 fi
1448 AR="$ac_cv_prog_AR"
1449 if test -n "$AR"; then
1450   echo "$ac_t""$AR" 1>&6
1451 else
1452   echo "$ac_t""no" 1>&6
1453 fi
1454
1455
1456
1457   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1458 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1460 echo "configure:1461: checking for $ac_word" >&5
1461 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1462   echo $ac_n "(cached) $ac_c" 1>&6
1463 else
1464   if test -n "$RANLIB"; then
1465   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1466 else
1467   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1468   ac_dummy="$PATH"
1469   for ac_dir in $ac_dummy; do
1470     test -z "$ac_dir" && ac_dir=.
1471     if test -f $ac_dir/$ac_word; then
1472       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1473       break
1474     fi
1475   done
1476   IFS="$ac_save_ifs"
1477 fi
1478 fi
1479 RANLIB="$ac_cv_prog_RANLIB"
1480 if test -n "$RANLIB"; then
1481   echo "$ac_t""$RANLIB" 1>&6
1482 else
1483   echo "$ac_t""no" 1>&6
1484 fi
1485
1486
1487 if test -z "$ac_cv_prog_RANLIB"; then
1488 if test -n "$ac_tool_prefix"; then
1489   # Extract the first word of "ranlib", so it can be a program name with args.
1490 set dummy ranlib; ac_word=$2
1491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1492 echo "configure:1493: checking for $ac_word" >&5
1493 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1494   echo $ac_n "(cached) $ac_c" 1>&6
1495 else
1496   if test -n "$RANLIB"; then
1497   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1498 else
1499   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1500   ac_dummy="$PATH"
1501   for ac_dir in $ac_dummy; do
1502     test -z "$ac_dir" && ac_dir=.
1503     if test -f $ac_dir/$ac_word; then
1504       ac_cv_prog_RANLIB="ranlib"
1505       break
1506     fi
1507   done
1508   IFS="$ac_save_ifs"
1509   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1510 fi
1511 fi
1512 RANLIB="$ac_cv_prog_RANLIB"
1513 if test -n "$RANLIB"; then
1514   echo "$ac_t""$RANLIB" 1>&6
1515 else
1516   echo "$ac_t""no" 1>&6
1517 fi
1518
1519 else
1520   RANLIB="ranlib-not-found-in-path-error"
1521 fi
1522 fi
1523
1524   # Find a good install program.  We prefer a C program (faster),
1525 # so one script is as good as another.  But avoid the broken or
1526 # incompatible versions:
1527 # SysV /etc/install, /usr/sbin/install
1528 # SunOS /usr/etc/install
1529 # IRIX /sbin/install
1530 # AIX /bin/install
1531 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1532 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1533 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1534 # ./install, which can be erroneously created by make from ./install.sh.
1535 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1536 echo "configure:1537: checking for a BSD compatible install" >&5
1537 if test -z "$INSTALL"; then
1538 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1539   echo $ac_n "(cached) $ac_c" 1>&6
1540 else
1541     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1542   for ac_dir in $PATH; do
1543     # Account for people who put trailing slashes in PATH elements.
1544     case "$ac_dir/" in
1545     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1546     *)
1547       # OSF1 and SCO ODT 3.0 have their own names for install.
1548       # Don't use installbsd from OSF since it installs stuff as root
1549       # by default.
1550       for ac_prog in ginstall scoinst install; do
1551         if test -f $ac_dir/$ac_prog; then
1552           if test $ac_prog = install &&
1553             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1554             # AIX install.  It has an incompatible calling convention.
1555             :
1556           else
1557             ac_cv_path_install="$ac_dir/$ac_prog -c"
1558             break 2
1559           fi
1560         fi
1561       done
1562       ;;
1563     esac
1564   done
1565   IFS="$ac_save_IFS"
1566
1567 fi
1568   if test "${ac_cv_path_install+set}" = set; then
1569     INSTALL="$ac_cv_path_install"
1570   else
1571     # As a last resort, use the slow shell script.  We don't cache a
1572     # path for INSTALL within a source directory, because that will
1573     # break other packages using the cache if that directory is
1574     # removed, or if the path is relative.
1575     INSTALL="$ac_install_sh"
1576   fi
1577 fi
1578 echo "$ac_t""$INSTALL" 1>&6
1579
1580 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1581 # It thinks the first close brace ends the variable substitution.
1582 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1583
1584 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1585
1586 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1587
1588
1589   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1590 echo "configure:1591: checking whether to enable maintainer-specific portions of Makefiles" >&5
1591     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1592 if test "${enable_maintainer_mode+set}" = set; then
1593   enableval="$enable_maintainer_mode"
1594   USE_MAINTAINER_MODE=$enableval
1595 else
1596   USE_MAINTAINER_MODE=no
1597 fi
1598
1599   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1600   
1601
1602 if test $USE_MAINTAINER_MODE = yes; then
1603   MAINTAINER_MODE_TRUE=
1604   MAINTAINER_MODE_FALSE='#'
1605 else
1606   MAINTAINER_MODE_TRUE='#'
1607   MAINTAINER_MODE_FALSE=
1608 fi
1609   MAINT=$MAINTAINER_MODE_TRUE
1610   
1611
1612
1613   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1614   # at least currently, we never actually build a program, so we never
1615   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1616   # fails, because we are probably configuring with a cross compiler
1617   # which cant create executables.  So we include AC_EXEEXT to keep
1618   # automake happy, but we dont execute it, since we dont care about
1619   # the result.
1620   if false; then
1621     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1622     # to nothing, so nothing would remain between `then' and `fi' if it
1623     # were not for the `:' below.
1624     :
1625     
1626
1627 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1628 echo "configure:1629: checking for executable suffix" >&5
1629 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1630   echo $ac_n "(cached) $ac_c" 1>&6
1631 else
1632   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1633   ac_cv_exeext=.exe
1634 else
1635   rm -f conftest*
1636   echo 'int main () { return 0; }' > conftest.$ac_ext
1637   ac_cv_exeext=
1638   if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1639     for file in conftest.*; do
1640       case $file in
1641       *.c | *.o | *.obj) ;;
1642       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1643       esac
1644     done
1645   else
1646     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1647   fi
1648   rm -f conftest*
1649   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1650 fi
1651 fi
1652
1653 EXEEXT=""
1654 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1655 echo "$ac_t""${ac_cv_exeext}" 1>&6
1656 ac_exeext=$EXEEXT
1657
1658   fi
1659
1660   . ${glibcpp_basedir}/configure.host
1661
1662   case ${glibcpp_basedir} in
1663     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1664     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1665   esac
1666
1667   # This does for the target what configure.host does for the host.  In
1668   # addition to possibly modifying the same flags, it also sets up symlinks.
1669   
1670     . ${glibcpp_basedir}/configure.target
1671     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1672     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1673
1674
1675   # 
1676
1677
1678
1679 # Check whether --enable-shared or --disable-shared was given.
1680 if test "${enable_shared+set}" = set; then
1681   enableval="$enable_shared"
1682   p=${PACKAGE-default}
1683 case $enableval in
1684 yes) enable_shared=yes ;;
1685 no) enable_shared=no ;;
1686 *)
1687   enable_shared=no
1688   # Look at the argument we got.  We use all the common list separators.
1689   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1690   for pkg in $enableval; do
1691     if test "X$pkg" = "X$p"; then
1692       enable_shared=yes
1693     fi
1694   done
1695   IFS="$ac_save_ifs"
1696   ;;
1697 esac
1698 else
1699   enable_shared=yes
1700 fi
1701
1702 # Check whether --enable-static or --disable-static was given.
1703 if test "${enable_static+set}" = set; then
1704   enableval="$enable_static"
1705   p=${PACKAGE-default}
1706 case $enableval in
1707 yes) enable_static=yes ;;
1708 no) enable_static=no ;;
1709 *)
1710   enable_static=no
1711   # Look at the argument we got.  We use all the common list separators.
1712   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1713   for pkg in $enableval; do
1714     if test "X$pkg" = "X$p"; then
1715       enable_static=yes
1716     fi
1717   done
1718   IFS="$ac_save_ifs"
1719   ;;
1720 esac
1721 else
1722   enable_static=yes
1723 fi
1724
1725 # Check whether --enable-fast-install or --disable-fast-install was given.
1726 if test "${enable_fast_install+set}" = set; then
1727   enableval="$enable_fast_install"
1728   p=${PACKAGE-default}
1729 case $enableval in
1730 yes) enable_fast_install=yes ;;
1731 no) enable_fast_install=no ;;
1732 *)
1733   enable_fast_install=no
1734   # Look at the argument we got.  We use all the common list separators.
1735   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1736   for pkg in $enableval; do
1737     if test "X$pkg" = "X$p"; then
1738       enable_fast_install=yes
1739     fi
1740   done
1741   IFS="$ac_save_ifs"
1742   ;;
1743 esac
1744 else
1745   enable_fast_install=yes
1746 fi
1747
1748 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1749 if test "${with_gnu_ld+set}" = set; then
1750   withval="$with_gnu_ld"
1751   test "$withval" = no || with_gnu_ld=yes
1752 else
1753   with_gnu_ld=no
1754 fi
1755
1756 ac_prog=ld
1757 if test "$GCC" = yes; then
1758   # Check if gcc -print-prog-name=ld gives a path.
1759   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1760 echo "configure:1761: checking for ld used by GCC" >&5
1761   case $host in
1762   *-*-mingw*)
1763     # gcc leaves a trailing carriage return which upsets mingw
1764     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1765   *)
1766     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1767   esac
1768   case $ac_prog in
1769     # Accept absolute paths.
1770     [\\/]* | [A-Za-z]:[\\/]*)
1771       re_direlt='/[^/][^/]*/\.\./'
1772       # Canonicalize the path of ld
1773       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1774       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1775         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1776       done
1777       test -z "$LD" && LD="$ac_prog"
1778       ;;
1779   "")
1780     # If it fails, then pretend we aren't using GCC.
1781     ac_prog=ld
1782     ;;
1783   *)
1784     # If it is relative, then search for the first ld in PATH.
1785     with_gnu_ld=unknown
1786     ;;
1787   esac
1788 elif test "$with_gnu_ld" = yes; then
1789   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1790 echo "configure:1791: checking for GNU ld" >&5
1791 else
1792   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1793 echo "configure:1794: checking for non-GNU ld" >&5
1794 fi
1795 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1796   echo $ac_n "(cached) $ac_c" 1>&6
1797 else
1798   if test -z "$LD"; then
1799   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1800   for ac_dir in $PATH; do
1801     test -z "$ac_dir" && ac_dir=.
1802     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1803       lt_cv_path_LD="$ac_dir/$ac_prog"
1804       # Check to see if the program is GNU ld.  I'd rather use --version,
1805       # but apparently some GNU ld's only accept -v.
1806       # Break only if it was the GNU/non-GNU ld that we prefer.
1807       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1808         test "$with_gnu_ld" != no && break
1809       else
1810         test "$with_gnu_ld" != yes && break
1811       fi
1812     fi
1813   done
1814   IFS="$ac_save_ifs"
1815 else
1816   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1817 fi
1818 fi
1819
1820 LD="$lt_cv_path_LD"
1821 if test -n "$LD"; then
1822   echo "$ac_t""$LD" 1>&6
1823 else
1824   echo "$ac_t""no" 1>&6
1825 fi
1826 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1827 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1828 echo "configure:1829: checking if the linker ($LD) is GNU ld" >&5
1829 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1830   echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1833 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1834   lt_cv_prog_gnu_ld=yes
1835 else
1836   lt_cv_prog_gnu_ld=no
1837 fi
1838 fi
1839
1840 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1841 with_gnu_ld=$lt_cv_prog_gnu_ld
1842
1843
1844 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $LD option to reload object files" >&5
1846 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1847   echo $ac_n "(cached) $ac_c" 1>&6
1848 else
1849   lt_cv_ld_reload_flag='-r'
1850 fi
1851
1852 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1853 reload_flag=$lt_cv_ld_reload_flag
1854 test -n "$reload_flag" && reload_flag=" $reload_flag"
1855
1856 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1857 echo "configure:1858: checking for BSD-compatible nm" >&5
1858 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1859   echo $ac_n "(cached) $ac_c" 1>&6
1860 else
1861   if test -n "$NM"; then
1862   # Let the user override the test.
1863   lt_cv_path_NM="$NM"
1864 else
1865   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1866   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1867     test -z "$ac_dir" && ac_dir=.
1868     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1869     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1870       # Check to see if the nm accepts a BSD-compat flag.
1871       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1872       #   nm: unknown option "B" ignored
1873       # Tru64's nm complains that /dev/null is an invalid object file
1874       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1875         lt_cv_path_NM="$tmp_nm -B"
1876         break
1877       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1878         lt_cv_path_NM="$tmp_nm -p"
1879         break
1880       else
1881         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1882         continue # so that we can try to find one that supports BSD flags
1883       fi
1884     fi
1885   done
1886   IFS="$ac_save_ifs"
1887   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1888 fi
1889 fi
1890
1891 NM="$lt_cv_path_NM"
1892 echo "$ac_t""$NM" 1>&6
1893
1894 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1895 echo "configure:1896: checking how to recognise dependant libraries" >&5
1896 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1897   echo $ac_n "(cached) $ac_c" 1>&6
1898 else
1899   lt_cv_file_magic_cmd='$MAGIC_CMD'
1900 lt_cv_file_magic_test_file=
1901 lt_cv_deplibs_check_method='unknown'
1902 # Need to set the preceding variable on all platforms that support
1903 # interlibrary dependencies.
1904 # 'none' -- dependencies not supported.
1905 # `unknown' -- same as none, but documents that we really don't know.
1906 # 'pass_all' -- all dependencies passed with no checks.
1907 # 'test_compile' -- check by making test program.
1908 # 'file_magic [regex]' -- check by looking for files in library path
1909 # which responds to the $file_magic_cmd with a given egrep regex.
1910 # If you have `file' or equivalent on your system and you're not sure
1911 # whether `pass_all' will *always* work, you probably want this one.
1912
1913 case $host_os in
1914 aix*)
1915   lt_cv_deplibs_check_method=pass_all
1916   ;;
1917
1918 beos*)
1919   lt_cv_deplibs_check_method=pass_all
1920   ;;
1921
1922 bsdi4*)
1923   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1924   lt_cv_file_magic_cmd='/usr/bin/file -L'
1925   lt_cv_file_magic_test_file=/shlib/libc.so
1926   ;;
1927
1928 cygwin* | mingw* |pw32*)
1929   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1930   lt_cv_file_magic_cmd='$OBJDUMP -f'
1931   ;;
1932
1933 darwin* | rhapsody*)
1934   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1935   lt_cv_file_magic_cmd='/usr/bin/file -L'
1936   case "$host_os" in
1937   rhapsody* | darwin1.012)
1938     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1939     ;;
1940   *) # Darwin 1.3 on
1941     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1942     ;;
1943   esac
1944   ;;
1945
1946 freebsd* )
1947   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1948     case $host_cpu in
1949     i*86 )
1950       # Not sure whether the presence of OpenBSD here was a mistake.
1951       # Let's accept both of them until this is cleared up.
1952       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1953       lt_cv_file_magic_cmd=/usr/bin/file
1954       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1955       ;;
1956     esac
1957   else
1958     lt_cv_deplibs_check_method=pass_all
1959   fi
1960   ;;
1961
1962 gnu*)
1963   lt_cv_deplibs_check_method=pass_all
1964   ;;
1965
1966 hpux10.20*|hpux11*)
1967   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1968   lt_cv_file_magic_cmd=/usr/bin/file
1969   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1970   ;;
1971
1972 irix5* | irix6*)
1973   case $host_os in
1974   irix5*)
1975     # this will be overridden with pass_all, but let us keep it just in case
1976     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1977     ;;
1978   *)
1979     case $LD in
1980     *-32|*"-32 ") libmagic=32-bit;;
1981     *-n32|*"-n32 ") libmagic=N32;;
1982     *-64|*"-64 ") libmagic=64-bit;;
1983     *) libmagic=never-match;;
1984     esac
1985     # this will be overridden with pass_all, but let us keep it just in case
1986     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1987     ;;
1988   esac
1989   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1990   lt_cv_deplibs_check_method=pass_all
1991   ;;
1992
1993 # This must be Linux ELF.
1994 linux-gnu*)
1995   case $host_cpu in
1996   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1997     lt_cv_deplibs_check_method=pass_all ;;
1998   *)
1999     # glibc up to 2.1.1 does not perform some relocations on ARM
2000     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2001   esac
2002   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2003   ;;
2004
2005 netbsd*)
2006   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2007     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2008   else
2009     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2010   fi
2011   ;;
2012
2013 newsos6)
2014   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2015   lt_cv_file_magic_cmd=/usr/bin/file
2016   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2017   ;;
2018
2019 osf3* | osf4* | osf5*)
2020   # this will be overridden with pass_all, but let us keep it just in case
2021   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2022   lt_cv_file_magic_test_file=/shlib/libc.so
2023   lt_cv_deplibs_check_method=pass_all
2024   ;;
2025
2026 sco3.2v5*)
2027   lt_cv_deplibs_check_method=pass_all
2028   ;;
2029
2030 solaris*)
2031   lt_cv_deplibs_check_method=pass_all
2032   lt_cv_file_magic_test_file=/lib/libc.so
2033   ;;
2034
2035 sysv5uw[78]* | sysv4*uw2*)
2036   lt_cv_deplibs_check_method=pass_all
2037   ;;
2038
2039 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2040   case $host_vendor in
2041   ncr)
2042     lt_cv_deplibs_check_method=pass_all
2043     ;;
2044   motorola)
2045     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]'
2046     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2047     ;;
2048   esac
2049   ;;
2050 esac
2051
2052 fi
2053
2054 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2055 file_magic_cmd=$lt_cv_file_magic_cmd
2056 deplibs_check_method=$lt_cv_deplibs_check_method
2057
2058 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2059 echo "configure:2060: checking for object suffix" >&5
2060 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2061   echo $ac_n "(cached) $ac_c" 1>&6
2062 else
2063   rm -f conftest*
2064 echo 'int i = 1;' > conftest.$ac_ext
2065 if { (eval echo configure:2066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2066   for ac_file in conftest.*; do
2067     case $ac_file in
2068     *.c) ;;
2069     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2070     esac
2071   done
2072 else
2073   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2074 fi
2075 rm -f conftest*
2076 fi
2077
2078 echo "$ac_t""$ac_cv_objext" 1>&6
2079 OBJEXT=$ac_cv_objext
2080 ac_objext=$ac_cv_objext
2081
2082 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2083
2084 # Only perform the check for file, if the check method requires it
2085 case $deplibs_check_method in
2086 file_magic*)
2087   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2088     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2089 echo "configure:2090: checking for ${ac_tool_prefix}file" >&5
2090 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2091   echo $ac_n "(cached) $ac_c" 1>&6
2092 else
2093   case $MAGIC_CMD in
2094   /*)
2095   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2096   ;;
2097   ?:/*)
2098   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2099   ;;
2100   *)
2101   ac_save_MAGIC_CMD="$MAGIC_CMD"
2102   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2103   ac_dummy="/usr/bin:$PATH"
2104   for ac_dir in $ac_dummy; do
2105     test -z "$ac_dir" && ac_dir=.
2106     if test -f $ac_dir/${ac_tool_prefix}file; then
2107       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2108       if test -n "$file_magic_test_file"; then
2109         case $deplibs_check_method in
2110         "file_magic "*)
2111           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2112           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2113           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2114             egrep "$file_magic_regex" > /dev/null; then
2115             :
2116           else
2117             cat <<EOF 1>&2
2118
2119 *** Warning: the command libtool uses to detect shared libraries,
2120 *** $file_magic_cmd, produces output that libtool cannot recognize.
2121 *** The result is that libtool may fail to recognize shared libraries
2122 *** as such.  This will affect the creation of libtool libraries that
2123 *** depend on shared libraries, but programs linked with such libtool
2124 *** libraries will work regardless of this problem.  Nevertheless, you
2125 *** may want to report the problem to your system manager and/or to
2126 *** bug-libtool@gnu.org
2127
2128 EOF
2129           fi ;;
2130         esac
2131       fi
2132       break
2133     fi
2134   done
2135   IFS="$ac_save_ifs"
2136   MAGIC_CMD="$ac_save_MAGIC_CMD"
2137   ;;
2138 esac
2139 fi
2140
2141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2142 if test -n "$MAGIC_CMD"; then
2143   echo "$ac_t""$MAGIC_CMD" 1>&6
2144 else
2145   echo "$ac_t""no" 1>&6
2146 fi
2147
2148 if test -z "$lt_cv_path_MAGIC_CMD"; then
2149   if test -n "$ac_tool_prefix"; then
2150     echo $ac_n "checking for file""... $ac_c" 1>&6
2151 echo "configure:2152: checking for file" >&5
2152 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2153   echo $ac_n "(cached) $ac_c" 1>&6
2154 else
2155   case $MAGIC_CMD in
2156   /*)
2157   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2158   ;;
2159   ?:/*)
2160   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2161   ;;
2162   *)
2163   ac_save_MAGIC_CMD="$MAGIC_CMD"
2164   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2165   ac_dummy="/usr/bin:$PATH"
2166   for ac_dir in $ac_dummy; do
2167     test -z "$ac_dir" && ac_dir=.
2168     if test -f $ac_dir/file; then
2169       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2170       if test -n "$file_magic_test_file"; then
2171         case $deplibs_check_method in
2172         "file_magic "*)
2173           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2174           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2175           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2176             egrep "$file_magic_regex" > /dev/null; then
2177             :
2178           else
2179             cat <<EOF 1>&2
2180
2181 *** Warning: the command libtool uses to detect shared libraries,
2182 *** $file_magic_cmd, produces output that libtool cannot recognize.
2183 *** The result is that libtool may fail to recognize shared libraries
2184 *** as such.  This will affect the creation of libtool libraries that
2185 *** depend on shared libraries, but programs linked with such libtool
2186 *** libraries will work regardless of this problem.  Nevertheless, you
2187 *** may want to report the problem to your system manager and/or to
2188 *** bug-libtool@gnu.org
2189
2190 EOF
2191           fi ;;
2192         esac
2193       fi
2194       break
2195     fi
2196   done
2197   IFS="$ac_save_ifs"
2198   MAGIC_CMD="$ac_save_MAGIC_CMD"
2199   ;;
2200 esac
2201 fi
2202
2203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2204 if test -n "$MAGIC_CMD"; then
2205   echo "$ac_t""$MAGIC_CMD" 1>&6
2206 else
2207   echo "$ac_t""no" 1>&6
2208 fi
2209
2210   else
2211     MAGIC_CMD=:
2212   fi
2213 fi
2214
2215   fi
2216   ;;
2217 esac
2218
2219 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2220 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_word" >&5
2223 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2224   echo $ac_n "(cached) $ac_c" 1>&6
2225 else
2226   if test -n "$RANLIB"; then
2227   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2228 else
2229   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2230   ac_dummy="$PATH"
2231   for ac_dir in $ac_dummy; do
2232     test -z "$ac_dir" && ac_dir=.
2233     if test -f $ac_dir/$ac_word; then
2234       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2235       break
2236     fi
2237   done
2238   IFS="$ac_save_ifs"
2239 fi
2240 fi
2241 RANLIB="$ac_cv_prog_RANLIB"
2242 if test -n "$RANLIB"; then
2243   echo "$ac_t""$RANLIB" 1>&6
2244 else
2245   echo "$ac_t""no" 1>&6
2246 fi
2247
2248
2249 if test -z "$ac_cv_prog_RANLIB"; then
2250 if test -n "$ac_tool_prefix"; then
2251   # Extract the first word of "ranlib", so it can be a program name with args.
2252 set dummy ranlib; ac_word=$2
2253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2254 echo "configure:2255: checking for $ac_word" >&5
2255 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2256   echo $ac_n "(cached) $ac_c" 1>&6
2257 else
2258   if test -n "$RANLIB"; then
2259   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2260 else
2261   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2262   ac_dummy="$PATH"
2263   for ac_dir in $ac_dummy; do
2264     test -z "$ac_dir" && ac_dir=.
2265     if test -f $ac_dir/$ac_word; then
2266       ac_cv_prog_RANLIB="ranlib"
2267       break
2268     fi
2269   done
2270   IFS="$ac_save_ifs"
2271   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2272 fi
2273 fi
2274 RANLIB="$ac_cv_prog_RANLIB"
2275 if test -n "$RANLIB"; then
2276   echo "$ac_t""$RANLIB" 1>&6
2277 else
2278   echo "$ac_t""no" 1>&6
2279 fi
2280
2281 else
2282   RANLIB=":"
2283 fi
2284 fi
2285
2286 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2287 set dummy ${ac_tool_prefix}strip; ac_word=$2
2288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2289 echo "configure:2290: checking for $ac_word" >&5
2290 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2291   echo $ac_n "(cached) $ac_c" 1>&6
2292 else
2293   if test -n "$STRIP"; then
2294   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2295 else
2296   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2297   ac_dummy="$PATH"
2298   for ac_dir in $ac_dummy; do
2299     test -z "$ac_dir" && ac_dir=.
2300     if test -f $ac_dir/$ac_word; then
2301       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2302       break
2303     fi
2304   done
2305   IFS="$ac_save_ifs"
2306 fi
2307 fi
2308 STRIP="$ac_cv_prog_STRIP"
2309 if test -n "$STRIP"; then
2310   echo "$ac_t""$STRIP" 1>&6
2311 else
2312   echo "$ac_t""no" 1>&6
2313 fi
2314
2315
2316 if test -z "$ac_cv_prog_STRIP"; then
2317 if test -n "$ac_tool_prefix"; then
2318   # Extract the first word of "strip", so it can be a program name with args.
2319 set dummy strip; ac_word=$2
2320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2321 echo "configure:2322: checking for $ac_word" >&5
2322 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2323   echo $ac_n "(cached) $ac_c" 1>&6
2324 else
2325   if test -n "$STRIP"; then
2326   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2327 else
2328   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2329   ac_dummy="$PATH"
2330   for ac_dir in $ac_dummy; do
2331     test -z "$ac_dir" && ac_dir=.
2332     if test -f $ac_dir/$ac_word; then
2333       ac_cv_prog_STRIP="strip"
2334       break
2335     fi
2336   done
2337   IFS="$ac_save_ifs"
2338   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2339 fi
2340 fi
2341 STRIP="$ac_cv_prog_STRIP"
2342 if test -n "$STRIP"; then
2343   echo "$ac_t""$STRIP" 1>&6
2344 else
2345   echo "$ac_t""no" 1>&6
2346 fi
2347
2348 else
2349   STRIP=":"
2350 fi
2351 fi
2352
2353
2354 # Check for any special flags to pass to ltconfig.
2355 libtool_flags="--cache-file=$cache_file"
2356 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2357 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2358 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2359 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2360 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2361 libtool_flags="$libtool_flags --enable-dlopen"
2362
2363 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2364 if test "${enable_libtool_lock+set}" = set; then
2365   enableval="$enable_libtool_lock"
2366   :
2367 fi
2368
2369 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2370 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2371
2372 # Check whether --with-pic or --without-pic was given.
2373 if test "${with_pic+set}" = set; then
2374   withval="$with_pic"
2375   pic_mode="$withval"
2376 else
2377   pic_mode=default
2378 fi
2379
2380 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2381 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2382
2383 # Some flags need to be propagated to the compiler or linker for good
2384 # libtool support.
2385 case $host in
2386 *-*-irix6*)
2387   # Find out which ABI we are using.
2388   echo '#line 2389 "configure"' > conftest.$ac_ext
2389   if { (eval echo configure:2390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2390     case `/usr/bin/file conftest.$ac_objext` in
2391     *32-bit*)
2392       LD="${LD-ld} -32"
2393       ;;
2394     *N32*)
2395       LD="${LD-ld} -n32"
2396       ;;
2397     *64-bit*)
2398       LD="${LD-ld} -64"
2399       ;;
2400     esac
2401   fi
2402   rm -rf conftest*
2403   ;;
2404
2405 *-*-sco3.2v5*)
2406   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2407   SAVE_CFLAGS="$CFLAGS"
2408   CFLAGS="$CFLAGS -belf"
2409   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2410 echo "configure:2411: checking whether the C compiler needs -belf" >&5
2411 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2412   echo $ac_n "(cached) $ac_c" 1>&6
2413 else
2414   
2415      ac_ext=c
2416 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2417 ac_cpp='$CPP $CPPFLAGS'
2418 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2419 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2420 cross_compiling=$ac_cv_prog_cc_cross
2421
2422      cat > conftest.$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2425
2426 int main() {
2427
2428 ; return 0; }
2429 EOF
2430 if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2431   rm -rf conftest*
2432   lt_cv_cc_needs_belf=yes
2433 else
2434   echo "configure: failed program was:" >&5
2435   cat conftest.$ac_ext >&5
2436   rm -rf conftest*
2437   lt_cv_cc_needs_belf=no
2438 fi
2439 rm -f conftest*
2440      ac_ext=c
2441 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2442 ac_cpp='$CPP $CPPFLAGS'
2443 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2444 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2445 cross_compiling=$ac_cv_prog_cc_cross
2446
2447 fi
2448
2449 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2450   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2451     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2452     CFLAGS="$SAVE_CFLAGS"
2453   fi
2454   ;;
2455
2456
2457 esac
2458
2459 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2460 echo "configure:2461: checking how to run the C++ preprocessor" >&5
2461 if test -z "$CXXCPP"; then
2462 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2463   echo $ac_n "(cached) $ac_c" 1>&6
2464 else
2465   ac_ext=C
2466 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2467 ac_cpp='$CXXCPP $CPPFLAGS'
2468 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2469 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2470 cross_compiling=$ac_cv_prog_cxx_cross
2471   CXXCPP="${CXX-g++} -E"
2472   cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 #include <stdlib.h>
2476 EOF
2477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2478 { (eval echo configure:2479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2480 if test -z "$ac_err"; then
2481   :
2482 else
2483   echo "$ac_err" >&5
2484   echo "configure: failed program was:" >&5
2485   cat conftest.$ac_ext >&5
2486   rm -rf conftest*
2487   CXXCPP=/lib/cpp
2488 fi
2489 rm -f conftest*
2490   ac_cv_prog_CXXCPP="$CXXCPP"
2491 ac_ext=c
2492 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2493 ac_cpp='$CPP $CPPFLAGS'
2494 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2495 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2496 cross_compiling=$ac_cv_prog_cc_cross
2497 fi
2498 fi
2499 CXXCPP="$ac_cv_prog_CXXCPP"
2500 echo "$ac_t""$CXXCPP" 1>&6
2501
2502
2503 # Save cache, so that ltconfig can load it
2504 cat > confcache <<\EOF
2505 # This file is a shell script that caches the results of configure
2506 # tests run on this system so they can be shared between configure
2507 # scripts and configure runs.  It is not useful on other systems.
2508 # If it contains results you don't want to keep, you may remove or edit it.
2509 #
2510 # By default, configure uses ./config.cache as the cache file,
2511 # creating it if it does not exist already.  You can give configure
2512 # the --cache-file=FILE option to use a different cache file; that is
2513 # what configure does when it calls configure scripts in
2514 # subdirectories, so they share the cache.
2515 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2516 # config.status only pays attention to the cache file if you give it the
2517 # --recheck option to rerun configure.
2518 #
2519 EOF
2520 # The following way of writing the cache mishandles newlines in values,
2521 # but we know of no workaround that is simple, portable, and efficient.
2522 # So, don't put newlines in cache variables' values.
2523 # Ultrix sh set writes to stderr and can't be redirected directly,
2524 # and sets the high bit in the cache file unless we assign to the vars.
2525 (set) 2>&1 |
2526   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2527   *ac_space=\ *)
2528     # `set' does not quote correctly, so add quotes (double-quote substitution
2529     # turns \\\\ into \\, and sed turns \\ into \).
2530     sed -n \
2531       -e "s/'/'\\\\''/g" \
2532       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2533     ;;
2534   *)
2535     # `set' quotes correctly as required by POSIX, so do not add quotes.
2536     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2537     ;;
2538   esac >> confcache
2539 if cmp -s $cache_file confcache; then
2540   :
2541 else
2542   if test -w $cache_file; then
2543     echo "updating cache $cache_file"
2544     cat confcache > $cache_file
2545   else
2546     echo "not updating unwritable cache $cache_file"
2547   fi
2548 fi
2549 rm -f confcache
2550
2551
2552 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2553 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2554 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2555 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2556 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2557 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2558 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2559 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2560 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2561 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2562
2563 # Reload cache, that may have been modified by ltconfig
2564 if test -r "$cache_file"; then
2565   echo "loading cache $cache_file"
2566   . $cache_file
2567 else
2568   echo "creating cache $cache_file"
2569   > $cache_file
2570 fi
2571
2572
2573 # This can be used to rebuild libtool when needed
2574 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2575
2576 # Always use our own libtool.
2577 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2578
2579 # Redirect the config.log output again, so that the ltconfig log is not
2580 # clobbered by the next message.
2581 exec 5>>./config.log
2582
2583
2584
2585 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2586 lt_save_CC="$CC"
2587 lt_save_CFLAGS="$CFLAGS"
2588 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2589 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2590 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2591 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2592 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2593 deplibs_check_method="$deplibs_check_method" \
2594 file_magic_cmd="$file_magic_cmd" \
2595 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2596 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2597 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2598 CC="$lt_save_CC"
2599 CFLAGS="$lt_save_CFLAGS"
2600
2601 # Redirect the config.log output again, so that the ltconfig log is not
2602 # clobbered by the next message.
2603 exec 5>>./config.log
2604
2605   
2606
2607   
2608          
2609          
2610
2611
2612
2613 # Check for c++ or library specific bits that don't require linking.
2614 #GLIBCPP_CHECK_COMPILER_VERSION
2615 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2616 echo "configure:2617: checking for GNU make" >&5
2617 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2618   echo $ac_n "(cached) $ac_c" 1>&6
2619 else
2620   _cv_gnu_make_command='' ;
2621           for a in "${MAKE-make}" make gmake gnumake ; do
2622                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2623                   then
2624                           _cv_gnu_make_command=$a ;
2625                           break;
2626                   fi
2627           done ;
2628   
2629 fi
2630
2631 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2632   if test  "x$_cv_gnu_make_command" != "x"  ; then
2633           ifGNUmake='' ;
2634   else
2635           ifGNUmake='#' ;
2636   fi
2637   
2638
2639
2640 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2641 # Check whether --enable-debug or --disable-debug was given.
2642 if test "${enable_debug+set}" = set; then
2643   enableval="$enable_debug"
2644   case "${enableval}" in
2645  yes) enable_debug=yes ;;
2646  no)  enable_debug=no ;;
2647  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2648  esac
2649 else
2650   enable_debug=no
2651 fi
2652
2653 case "${enable_debug}" in
2654     yes) 
2655         DEBUG_FLAGS='-O0 -ggdb3'                        
2656         ;; 
2657     no)   
2658         DEBUG_FLAGS='-g'
2659         ;;
2660 esac
2661
2662
2663 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2664 echo "configure:2665: checking how to run the C preprocessor" >&5
2665 # On Suns, sometimes $CPP names a directory.
2666 if test -n "$CPP" && test -d "$CPP"; then
2667   CPP=
2668 fi
2669 if test -z "$CPP"; then
2670 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2671   echo $ac_n "(cached) $ac_c" 1>&6
2672 else
2673     # This must be in double quotes, not single quotes, because CPP may get
2674   # substituted into the Makefile and "${CC-cc}" will confuse make.
2675   CPP="${CC-cc} -E"
2676   # On the NeXT, cc -E runs the code through the compiler's parser,
2677   # not just through cpp.
2678   cat > conftest.$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2681 #include <assert.h>
2682 Syntax Error
2683 EOF
2684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2685 { (eval echo configure:2686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2687 if test -z "$ac_err"; then
2688   :
2689 else
2690   echo "$ac_err" >&5
2691   echo "configure: failed program was:" >&5
2692   cat conftest.$ac_ext >&5
2693   rm -rf conftest*
2694   CPP="${CC-cc} -E -traditional-cpp"
2695   cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 #include <assert.h>
2699 Syntax Error
2700 EOF
2701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2702 { (eval echo configure:2703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2704 if test -z "$ac_err"; then
2705   :
2706 else
2707   echo "$ac_err" >&5
2708   echo "configure: failed program was:" >&5
2709   cat conftest.$ac_ext >&5
2710   rm -rf conftest*
2711   CPP="${CC-cc} -nologo -E"
2712   cat > conftest.$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2715 #include <assert.h>
2716 Syntax Error
2717 EOF
2718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2719 { (eval echo configure:2720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2721 if test -z "$ac_err"; then
2722   :
2723 else
2724   echo "$ac_err" >&5
2725   echo "configure: failed program was:" >&5
2726   cat conftest.$ac_ext >&5
2727   rm -rf conftest*
2728   CPP=/lib/cpp
2729 fi
2730 rm -f conftest*
2731 fi
2732 rm -f conftest*
2733 fi
2734 rm -f conftest*
2735   ac_cv_prog_CPP="$CPP"
2736 fi
2737   CPP="$ac_cv_prog_CPP"
2738 else
2739   ac_cv_prog_CPP="$CPP"
2740 fi
2741 echo "$ac_t""$CPP" 1>&6
2742
2743
2744   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2745 echo "configure:2746: checking for cstdio to use" >&5
2746   # Check whether --enable-cstdio or --disable-cstdio was given.
2747 if test "${enable_cstdio+set}" = set; then
2748   enableval="$enable_cstdio"
2749   if test x$enable_cstdio = xno; then
2750      enable_cstdio=stdio
2751   fi
2752 else
2753   enable_cstdio=stdio
2754 fi
2755
2756
2757   enable_cstdio_flag=$enable_cstdio
2758
2759     case x${enable_cstdio_flag} in
2760     xlibio)
2761       CSTDIO_H=config/io/c_io_libio.h
2762       BASIC_FILE_H=config/io/basic_file_libio.h
2763       BASIC_FILE_CC=config/io/basic_file_libio.cc
2764       echo "$ac_t""libio" 1>&6
2765
2766       # see if we are on a system with libio native (ie, linux)
2767       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2768 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2769 echo "configure:2770: checking for libio.h" >&5
2770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2771   echo $ac_n "(cached) $ac_c" 1>&6
2772 else
2773   cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 #include <libio.h>
2777 EOF
2778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2779 { (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2781 if test -z "$ac_err"; then
2782   rm -rf conftest*
2783   eval "ac_cv_header_$ac_safe=yes"
2784 else
2785   echo "$ac_err" >&5
2786   echo "configure: failed program was:" >&5
2787   cat conftest.$ac_ext >&5
2788   rm -rf conftest*
2789   eval "ac_cv_header_$ac_safe=no"
2790 fi
2791 rm -f conftest*
2792 fi
2793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2794   echo "$ac_t""yes" 1>&6
2795   has_libio=yes
2796 else
2797   echo "$ac_t""no" 1>&6
2798 has_libio=no
2799 fi
2800
2801
2802       # Need to check and see what version of glibc is being used. If
2803       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2804       # compile most of libio for linux systems.
2805       if test x$has_libio = x"yes"; then
2806         case "$target" in
2807           *-*-linux*)
2808               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2809 echo "configure:2810: checking for glibc version >= 2.2" >&5
2810               cat > conftest.$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2813
2814             #include <features.h>
2815               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2816                     ok
2817               #endif
2818               
2819 EOF
2820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2821   egrep "ok" >/dev/null 2>&1; then
2822   rm -rf conftest*
2823   glibc_satisfactory=yes
2824 else
2825   rm -rf conftest*
2826   glibc_satisfactory=no
2827 fi
2828 rm -f conftest*
2829
2830               echo "$ac_t""$glibc_satisfactory" 1>&6
2831             ;;
2832         esac
2833
2834         # XXX at the moment, admit defeat and force the recompilation
2835         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2836         glibc_satisfactory=no        
2837
2838         if test x$glibc_satisfactory = x"yes"; then
2839            need_libio=no
2840            need_wlibio=no        
2841         else
2842            need_libio=yes
2843            # bkoz XXX need to add checks to enable this
2844            # pme XXX here's a first pass at such a check
2845            if test x$enable_c_mbchar != xno; then
2846               need_wlibio=yes
2847            else
2848               need_wlibio=no
2849            fi
2850         fi
2851
2852       else
2853          # Using libio, but <libio.h> doesn't exist on the target system. . .
2854          need_libio=yes
2855          # bkoz XXX need to add checks to enable this
2856          # pme XXX here's a first pass at such a check
2857          if test x$enable_c_mbchar != xno; then
2858              need_wlibio=yes
2859          else
2860              need_wlibio=no
2861          fi
2862       fi
2863       ;;
2864     xstdio | x | xno | xnone | xyes)
2865       # default
2866       CSTDIO_H=config/io/c_io_stdio.h
2867       BASIC_FILE_H=config/io/basic_file_stdio.h
2868       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2869       echo "$ac_t""stdio" 1>&6
2870
2871       # We're not using stdio.
2872       need_libio=no
2873       need_wlibio=no
2874       ;;
2875     *)
2876       echo "$enable_cstdio is an unknown io package" 1>&2
2877       exit 1
2878       ;;
2879   esac
2880   
2881   
2882   
2883
2884   # 2000-08-04 bkoz hack
2885   CCODECVT_C=config/io/c_io_libio_codecvt.c
2886   
2887   # 2000-08-04 bkoz hack
2888
2889   
2890
2891 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2892   GLIBCPP_BUILD_LIBIO_TRUE=
2893   GLIBCPP_BUILD_LIBIO_FALSE='#'
2894 else
2895   GLIBCPP_BUILD_LIBIO_TRUE='#'
2896   GLIBCPP_BUILD_LIBIO_FALSE=
2897 fi
2898   
2899
2900 if test "$need_libio" = yes; then
2901   GLIBCPP_NEED_LIBIO_TRUE=
2902   GLIBCPP_NEED_LIBIO_FALSE='#'
2903 else
2904   GLIBCPP_NEED_LIBIO_TRUE='#'
2905   GLIBCPP_NEED_LIBIO_FALSE=
2906 fi
2907   
2908
2909 if test "$need_wlibio" = yes; then
2910   GLIBCPP_NEED_WLIBIO_TRUE=
2911   GLIBCPP_NEED_WLIBIO_FALSE='#'
2912 else
2913   GLIBCPP_NEED_WLIBIO_TRUE='#'
2914   GLIBCPP_NEED_WLIBIO_FALSE=
2915 fi
2916   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2917     libio_la=../libio/libio.la
2918   else
2919     libio_la=
2920   fi
2921   
2922
2923
2924   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2925 echo "configure:2926: checking for clocale to use" >&5
2926   # Check whether --enable-clocale or --disable-clocale was given.
2927 if test "${enable_clocale+set}" = set; then
2928   enableval="$enable_clocale"
2929   if test x$enable_clocale = xno; then
2930      enable_clocale=generic
2931   fi
2932 else
2933   enable_clocale=generic
2934 fi
2935
2936
2937   enable_clocale_flag=$enable_clocale
2938
2939     case x${enable_clocale_flag} in
2940     xgeneric)
2941       echo "$ac_t""generic" 1>&6
2942
2943       # Don't use gettext.
2944       USE_NLS=no
2945
2946       CLOCALE_H=config/locale/c_locale_generic.h
2947       CLOCALE_CC=config/locale/c_locale_generic.cc
2948       CCODECVT_H=config/locale/codecvt_specializations_generic.h
2949       CMESSAGES_H=config/locale/messages_members_generic.h
2950       CMESSAGES_CC=config/locale/messages_members_generic.cc
2951       CCOLLATE_CC=config/locale/collate_specializations_generic.cc
2952       ;;
2953     xgnu)
2954       echo "$ac_t""gnu" 1>&6
2955
2956       # Declare intention to use gettext, and add support for specific
2957       # languages.
2958       # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
2959       ALL_LINGUAS="de fr"
2960       # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
2961       # Need to deal with MSGFMT, USE_NLS, and glibcpp_[P,M]OFILES
2962       USE_NLS=yes
2963
2964       # Export the build objects.
2965       for ling in $ALL_LINGUAS; do \
2966         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
2967         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
2968       done
2969       
2970       
2971
2972       CLOCALE_H=config/locale/c_locale_gnu.h
2973       CLOCALE_CC=config/locale/c_locale_gnu.cc
2974       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
2975       CMESSAGES_H=config/locale/messages_members_gnu.h
2976       CMESSAGES_CC=config/locale/messages_members_gnu.cc
2977       CCOLLATE_CC=config/locale/collate_specializations_gnu.cc
2978       ;;
2979     xieee_1003.1)
2980       echo "$ac_t""generic" 1>&6
2981
2982       # Don't use gettext.
2983       USE_NLS=no
2984
2985       CLOCALE_H=config/locale/c_locale_ieee_1003.1-200x.h
2986       CLOCALE_CC=config/locale/c_locale_ieee_1003.1-200x.cc
2987       CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
2988       CMESSAGES_H=config/locale/messages_members_ieee_1003.1-200x.h
2989       CMESSAGES_CC=config/locale/messages_members_ieee_1003.1-200x.cc
2990       CCOLLATE_CC=config/locale/collate_specializations_generic.cc
2991       ;;
2992     *)
2993       echo "$enable_clocale is an unknown locale package" 1>&2
2994       exit 1
2995       ;;
2996   esac
2997
2998   # This is where the testsuite looks for locale catalogs, using the
2999   # -DLOCALEDIR define during testsuite compilation.
3000   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3001   
3002
3003   
3004   
3005   
3006   
3007   
3008   
3009   
3010
3011 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3012 if test "${enable_c_mbchar+set}" = set; then
3013   enableval="$enable_c_mbchar"
3014   case "$enableval" in
3015  yes) enable_c_mbchar=yes ;;
3016  no)  enable_c_mbchar=no ;;
3017  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3018  esac
3019 else
3020   enable_c_mbchar=yes
3021 fi
3022
3023   
3024   # Check whether --enable-c99 or --disable-c99 was given.
3025 if test "${enable_c99+set}" = set; then
3026   enableval="$enable_c99"
3027     case "$enableval" in
3028    yes) enable_c99=yes ;;
3029    no)  enable_c99=no ;;
3030    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3031    esac
3032 else
3033   enable_c99=yes
3034 fi
3035  
3036   
3037   ac_ext=C
3038 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3039 ac_cpp='$CXXCPP $CPPFLAGS'
3040 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3041 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3042 cross_compiling=$ac_cv_prog_cxx_cross
3043
3044
3045   # Check for the existence of <math.h> functions used if C99 is enabled.
3046   ac_c99_math=yes;
3047   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3048 echo "configure:3049: checking for ISO C99 support in <math.h>" >&5
3049   cat > conftest.$ac_ext <<EOF
3050 #line 3051 "configure"
3051 #include "confdefs.h"
3052 #include <math.h>
3053 int main() {
3054 fpclassify(0.0);
3055 ; return 0; }
3056 EOF
3057 if { (eval echo configure:3058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3058   :
3059 else
3060   echo "configure: failed program was:" >&5
3061   cat conftest.$ac_ext >&5
3062   rm -rf conftest*
3063   ac_c99_math=no
3064 fi
3065 rm -f conftest*
3066   cat > conftest.$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3069 #include <math.h>
3070 int main() {
3071 isfinite(0.0);
3072 ; return 0; }
3073 EOF
3074 if { (eval echo configure:3075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3075   :
3076 else
3077   echo "configure: failed program was:" >&5
3078   cat conftest.$ac_ext >&5
3079   rm -rf conftest*
3080   ac_c99_math=no
3081 fi
3082 rm -f conftest*
3083   cat > conftest.$ac_ext <<EOF
3084 #line 3085 "configure"
3085 #include "confdefs.h"
3086 #include <math.h>
3087 int main() {
3088 isinf(0.0);
3089 ; return 0; }
3090 EOF
3091 if { (eval echo configure:3092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3092   :
3093 else
3094   echo "configure: failed program was:" >&5
3095   cat conftest.$ac_ext >&5
3096   rm -rf conftest*
3097   ac_c99_math=no
3098 fi
3099 rm -f conftest*
3100   cat > conftest.$ac_ext <<EOF
3101 #line 3102 "configure"
3102 #include "confdefs.h"
3103 #include <math.h>
3104 int main() {
3105 isnan(0.0);
3106 ; return 0; }
3107 EOF
3108 if { (eval echo configure:3109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3109   :
3110 else
3111   echo "configure: failed program was:" >&5
3112   cat conftest.$ac_ext >&5
3113   rm -rf conftest*
3114   ac_c99_math=no
3115 fi
3116 rm -f conftest*
3117   cat > conftest.$ac_ext <<EOF
3118 #line 3119 "configure"
3119 #include "confdefs.h"
3120 #include <math.h>
3121 int main() {
3122 isnormal(0.0);
3123 ; return 0; }
3124 EOF
3125 if { (eval echo configure:3126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3126   :
3127 else
3128   echo "configure: failed program was:" >&5
3129   cat conftest.$ac_ext >&5
3130   rm -rf conftest*
3131   ac_c99_math=no
3132 fi
3133 rm -f conftest*
3134   cat > conftest.$ac_ext <<EOF
3135 #line 3136 "configure"
3136 #include "confdefs.h"
3137 #include <math.h>
3138 int main() {
3139 signbit(0.0);
3140 ; return 0; }
3141 EOF
3142 if { (eval echo configure:3143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3143   :
3144 else
3145   echo "configure: failed program was:" >&5
3146   cat conftest.$ac_ext >&5
3147   rm -rf conftest*
3148   ac_c99_math=no
3149 fi
3150 rm -f conftest*
3151   cat > conftest.$ac_ext <<EOF
3152 #line 3153 "configure"
3153 #include "confdefs.h"
3154 #include <math.h>
3155 int main() {
3156 isgreater(0.0,0.0);
3157 ; return 0; }
3158 EOF
3159 if { (eval echo configure:3160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3160   :
3161 else
3162   echo "configure: failed program was:" >&5
3163   cat conftest.$ac_ext >&5
3164   rm -rf conftest*
3165   ac_c99_math=no
3166 fi
3167 rm -f conftest*
3168   cat > conftest.$ac_ext <<EOF
3169 #line 3170 "configure"
3170 #include "confdefs.h"
3171 #include <math.h>
3172 int main() {
3173 isgreaterequal(0.0,0.0);
3174 ; return 0; }
3175 EOF
3176 if { (eval echo configure:3177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3177   :
3178 else
3179   echo "configure: failed program was:" >&5
3180   cat conftest.$ac_ext >&5
3181   rm -rf conftest*
3182   ac_c99_math=no
3183 fi
3184 rm -f conftest*
3185   cat > conftest.$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3188 #include <math.h>
3189 int main() {
3190 isless(0.0,0.0);
3191 ; return 0; }
3192 EOF
3193 if { (eval echo configure:3194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3194   :
3195 else
3196   echo "configure: failed program was:" >&5
3197   cat conftest.$ac_ext >&5
3198   rm -rf conftest*
3199   ac_c99_math=no
3200 fi
3201 rm -f conftest*
3202   cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3205 #include <math.h>
3206 int main() {
3207 islessequal(0.0,0.0);
3208 ; return 0; }
3209 EOF
3210 if { (eval echo configure:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3211   :
3212 else
3213   echo "configure: failed program was:" >&5
3214   cat conftest.$ac_ext >&5
3215   rm -rf conftest*
3216   ac_c99_math=no
3217 fi
3218 rm -f conftest*
3219   cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3222 #include <math.h>
3223 int main() {
3224 islessgreater(0.0,0.0);
3225 ; return 0; }
3226 EOF
3227 if { (eval echo configure:3228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3228   :
3229 else
3230   echo "configure: failed program was:" >&5
3231   cat conftest.$ac_ext >&5
3232   rm -rf conftest*
3233   ac_c99_math=no
3234 fi
3235 rm -f conftest*
3236   cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 #include <math.h>
3240 int main() {
3241 isunordered(0.0,0.0);
3242 ; return 0; }
3243 EOF
3244 if { (eval echo configure:3245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3245   :
3246 else
3247   echo "configure: failed program was:" >&5
3248   cat conftest.$ac_ext >&5
3249   rm -rf conftest*
3250   ac_c99_math=no
3251 fi
3252 rm -f conftest*
3253   echo "$ac_t""$ac_c99_math" 1>&6
3254
3255   # Check for the existence in <stdio.h> of vscanf, et. al.
3256   ac_c99_stdio=yes;
3257   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3258 echo "configure:3259: checking for ISO C99 support in <stdio.h>" >&5
3259   cat > conftest.$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3262 #include <stdio.h>
3263 int main() {
3264 snprintf("12", 0, "%i");
3265 ; return 0; }
3266 EOF
3267 if { (eval echo configure:3268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3268   :
3269 else
3270   echo "configure: failed program was:" >&5
3271   cat conftest.$ac_ext >&5
3272   rm -rf conftest*
3273   ac_c99_stdio=no
3274 fi
3275 rm -f conftest*
3276   cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3279 #include <stdio.h>
3280                   #include <stdarg.h>
3281                   void foo(char* fmt, ...)
3282                   {va_list args; va_start(args, fmt);
3283                   vfscanf(stderr, "%i", args);}
3284 int main() {
3285
3286 ; return 0; }
3287 EOF
3288 if { (eval echo configure:3289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3289   :
3290 else
3291   echo "configure: failed program was:" >&5
3292   cat conftest.$ac_ext >&5
3293   rm -rf conftest*
3294   ac_c99_stdio=no
3295 fi
3296 rm -f conftest*
3297   cat > conftest.$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3300 #include <stdio.h>
3301                   #include <stdarg.h>
3302                   void foo(char* fmt, ...)
3303                   {va_list args; va_start(args, fmt);
3304                   vscanf("%i", args);}
3305 int main() {
3306
3307 ; return 0; }
3308 EOF
3309 if { (eval echo configure:3310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3310   :
3311 else
3312   echo "configure: failed program was:" >&5
3313   cat conftest.$ac_ext >&5
3314   rm -rf conftest*
3315   ac_c99_stdio=no
3316 fi
3317 rm -f conftest*
3318   cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 #include <stdio.h>
3322                   #include <stdarg.h>
3323                   void foo(char* fmt, ...)
3324                   {va_list args; va_start(args, fmt);
3325                   vsnprintf(fmt, 0, "%i", args);}
3326 int main() {
3327
3328 ; return 0; }
3329 EOF
3330 if { (eval echo configure:3331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3331   :
3332 else
3333   echo "configure: failed program was:" >&5
3334   cat conftest.$ac_ext >&5
3335   rm -rf conftest*
3336   ac_c99_stdio=no
3337 fi
3338 rm -f conftest*
3339   cat > conftest.$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3342 #include <stdio.h>
3343                   #include <stdarg.h>
3344                   void foo(char* fmt, ...)
3345                   {va_list args; va_start(args, fmt);
3346                   vsscanf(fmt, "%i", args);}
3347 int main() {
3348
3349 ; return 0; }
3350 EOF
3351 if { (eval echo configure:3352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3352   :
3353 else
3354   echo "configure: failed program was:" >&5
3355   cat conftest.$ac_ext >&5
3356   rm -rf conftest*
3357   ac_c99_stdio=no
3358 fi
3359 rm -f conftest*
3360   echo "$ac_t""$ac_c99_stdio" 1>&6
3361
3362   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3363   ac_c99_stdlib=yes;
3364   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3365 echo "configure:3366: checking for lldiv_t declaration" >&5
3366   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3367   echo $ac_n "(cached) $ac_c" 1>&6
3368 else
3369   
3370   cat > conftest.$ac_ext <<EOF
3371 #line 3372 "configure"
3372 #include "confdefs.h"
3373 #include <stdlib.h>
3374 int main() {
3375  lldiv_t mydivt;
3376 ; return 0; }
3377 EOF
3378 if { (eval echo configure:3379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3379   rm -rf conftest*
3380   ac_c99_lldiv_t=yes
3381 else
3382   echo "configure: failed program was:" >&5
3383   cat conftest.$ac_ext >&5
3384   rm -rf conftest*
3385   ac_c99_lldiv_t=no
3386 fi
3387 rm -f conftest*
3388   
3389 fi
3390
3391   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3392
3393   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3394 echo "configure:3395: checking for ISO C99 support in <stdlib.h>" >&5
3395   cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3398 #include <stdlib.h>
3399 int main() {
3400 char* tmp; strtof("gnu", &tmp);
3401 ; return 0; }
3402 EOF
3403 if { (eval echo configure:3404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3404   :
3405 else
3406   echo "configure: failed program was:" >&5
3407   cat conftest.$ac_ext >&5
3408   rm -rf conftest*
3409   ac_c99_stdlib=no
3410 fi
3411 rm -f conftest*
3412   cat > conftest.$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 #include <stdlib.h>
3416 int main() {
3417 char* tmp; strtold("gnu", &tmp);
3418 ; return 0; }
3419 EOF
3420 if { (eval echo configure:3421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3421   :
3422 else
3423   echo "configure: failed program was:" >&5
3424   cat conftest.$ac_ext >&5
3425   rm -rf conftest*
3426   ac_c99_stdlib=no
3427 fi
3428 rm -f conftest*
3429   cat > conftest.$ac_ext <<EOF
3430 #line 3431 "configure"
3431 #include "confdefs.h"
3432 #include <stdlib.h>
3433 int main() {
3434 char* tmp; strtoll("gnu", &tmp, 10);
3435 ; return 0; }
3436 EOF
3437 if { (eval echo configure:3438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3438   :
3439 else
3440   echo "configure: failed program was:" >&5
3441   cat conftest.$ac_ext >&5
3442   rm -rf conftest*
3443   ac_c99_stdlib=no
3444 fi
3445 rm -f conftest*
3446   cat > conftest.$ac_ext <<EOF
3447 #line 3448 "configure"
3448 #include "confdefs.h"
3449 #include <stdlib.h>
3450 int main() {
3451 char* tmp; strtoull("gnu", &tmp, 10);
3452 ; return 0; }
3453 EOF
3454 if { (eval echo configure:3455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3455   :
3456 else
3457   echo "configure: failed program was:" >&5
3458   cat conftest.$ac_ext >&5
3459   rm -rf conftest*
3460   ac_c99_stdlib=no
3461 fi
3462 rm -f conftest*
3463   cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3466 #include <stdlib.h>
3467 int main() {
3468 llabs(10);
3469 ; return 0; }
3470 EOF
3471 if { (eval echo configure:3472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3472   :
3473 else
3474   echo "configure: failed program was:" >&5
3475   cat conftest.$ac_ext >&5
3476   rm -rf conftest*
3477   ac_c99_stdlib=no
3478 fi
3479 rm -f conftest*
3480   cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3483 #include <stdlib.h>
3484 int main() {
3485 lldiv(10,1);
3486 ; return 0; }
3487 EOF
3488 if { (eval echo configure:3489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3489   :
3490 else
3491   echo "configure: failed program was:" >&5
3492   cat conftest.$ac_ext >&5
3493   rm -rf conftest*
3494   ac_c99_stdlib=no
3495 fi
3496 rm -f conftest*
3497   cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 #include <stdlib.h>
3501 int main() {
3502 atoll("10");
3503 ; return 0; }
3504 EOF
3505 if { (eval echo configure:3506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3506   :
3507 else
3508   echo "configure: failed program was:" >&5
3509   cat conftest.$ac_ext >&5
3510   rm -rf conftest*
3511   ac_c99_stdlib=no
3512 fi
3513 rm -f conftest*
3514   cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3517 #include <stdlib.h>
3518 int main() {
3519 _Exit(0);
3520 ; return 0; }
3521 EOF
3522 if { (eval echo configure:3523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3523   :
3524 else
3525   echo "configure: failed program was:" >&5
3526   cat conftest.$ac_ext >&5
3527   rm -rf conftest*
3528   ac_c99_stdlib=no
3529 fi
3530 rm -f conftest*
3531   if test x"$ac_c99_lldiv_t" = x"no"; then
3532     ac_c99_stdlib=no; 
3533   fi; 
3534   echo "$ac_t""$ac_c99_stdlib" 1>&6
3535
3536   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3537   # XXX the wchar.h checks should be rolled into the general C99 bits.
3538   ac_c99_wchar=yes;
3539   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3540 echo "configure:3541: checking for additional ISO C99 support in <wchar.h>" >&5
3541   cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3544 #include <wchar.h>
3545 int main() {
3546 wcstold(L"10.0", NULL);
3547 ; return 0; }
3548 EOF
3549 if { (eval echo configure:3550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3550   :
3551 else
3552   echo "configure: failed program was:" >&5
3553   cat conftest.$ac_ext >&5
3554   rm -rf conftest*
3555   ac_c99_wchar=no
3556 fi
3557 rm -f conftest*
3558   cat > conftest.$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 #include <wchar.h>
3562 int main() {
3563 wcstoll(L"10", NULL, 10);
3564 ; return 0; }
3565 EOF
3566 if { (eval echo configure:3567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3567   :
3568 else
3569   echo "configure: failed program was:" >&5
3570   cat conftest.$ac_ext >&5
3571   rm -rf conftest*
3572   ac_c99_wchar=no
3573 fi
3574 rm -f conftest*
3575   cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 #include <wchar.h>
3579 int main() {
3580 wcstoull(L"10", NULL, 10);
3581 ; return 0; }
3582 EOF
3583 if { (eval echo configure:3584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3584   :
3585 else
3586   echo "configure: failed program was:" >&5
3587   cat conftest.$ac_ext >&5
3588   rm -rf conftest*
3589   ac_c99_wchar=no
3590 fi
3591 rm -f conftest*
3592   echo "$ac_t""$ac_c99_wchar" 1>&6
3593
3594   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3595 echo "configure:3596: checking for enabled ISO C99 support" >&5
3596   if test x"$ac_c99_math" = x"no" ||
3597      test x"$ac_c99_stdio" = x"no" ||
3598      test x"$ac_c99_stdlib" = x"no" ||
3599      test x"$ac_c99_wchar" = x"no"; then
3600     enable_c99=no; 
3601   fi; 
3602   echo "$ac_t""$enable_c99" 1>&6
3603
3604   # Option parsed, now set things appropriately
3605   if test x"$enable_c99" = x"yes"; then
3606     cat >> confdefs.h <<\EOF
3607 #define _GLIBCPP_USE_C99 1
3608 EOF
3609
3610   fi
3611
3612   ac_ext=c
3613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3617 cross_compiling=$ac_cv_prog_cc_cross
3618
3619
3620   
3621   # Check whether --enable-long-long or --disable-long-long was given.
3622 if test "${enable_long_long+set}" = set; then
3623   enableval="$enable_long_long"
3624     case "$enableval" in
3625    yes) enable_long_long=yes ;;
3626    no)  enable_long_long=no ;;
3627    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3628    esac
3629 else
3630   enable_long_long=yes
3631 fi
3632
3633   # iostreams require strtoll, strtoull to compile. If the
3634   # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3635   # go ahead and allow long long to be used.
3636   if test x"$enable_c99" = x"no"; then
3637     enable_long_long=no; 
3638   fi
3639
3640   # Option parsed, now set things appropriately
3641   echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3642 echo "configure:3643: checking for enabled long long support" >&5
3643   if test x"$enable_long_long" = xyes; then
3644     cat >> confdefs.h <<\EOF
3645 #define _GLIBCPP_USE_LONG_LONG 1
3646 EOF
3647
3648   fi
3649   echo "$ac_t""$enable_long_long" 1>&6
3650
3651 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3652 echo "configure:3653: checking for c header strategy to use" >&5
3653 # Check whether --enable-cheaders or --disable-cheaders was given.
3654 if test "${enable_cheaders+set}" = set; then
3655   enableval="$enable_cheaders"
3656   
3657   case "$enableval" in
3658    c) 
3659         enable_cheaders=c 
3660         ;;
3661    c_std)  
3662         enable_cheaders=c_std 
3663         ;;
3664    c_shadow)  
3665         enable_cheaders=c_shadow 
3666         ;;
3667    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3668         ;;
3669   esac
3670 else
3671   enable_cheaders=c_std
3672 fi
3673
3674   echo "$ac_t""$enable_cheaders" 1>&6
3675
3676     case "$enable_cheaders" in
3677     c_shadow) 
3678         CSHADOW_FLAGS="-fno-builtin"
3679         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3680         cat >> confdefs.h <<\EOF
3681 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3682 EOF
3683
3684         ;;
3685     c_std)   
3686         CSHADOW_FLAGS=""
3687         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3688         ;;
3689     c)   
3690         CSHADOW_FLAGS=""
3691         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3692         ;;
3693   esac
3694
3695   
3696   
3697   
3698
3699 if test "$enable_cheaders" = c_shadow; then
3700   GLIBCPP_USE_CSHADOW_TRUE=
3701   GLIBCPP_USE_CSHADOW_FALSE='#'
3702 else
3703   GLIBCPP_USE_CSHADOW_TRUE='#'
3704   GLIBCPP_USE_CSHADOW_FALSE=
3705 fi
3706
3707
3708   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3709 echo "configure:3710: checking for thread model used by GCC" >&5
3710   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3711   echo "$ac_t""$target_thread_file" 1>&6
3712
3713   if test $target_thread_file != single; then
3714     cat >> confdefs.h <<\EOF
3715 #define HAVE_GTHR_DEFAULT 1
3716 EOF
3717
3718     cat >> confdefs.h <<\EOF
3719 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3720 EOF
3721
3722   fi
3723
3724   glibcpp_thread_h=gthr-$target_thread_file.h
3725   
3726
3727 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3728 if test "${enable_cxx_flags+set}" = set; then
3729   enableval="$enable_cxx_flags"
3730   case "x$enableval" in
3731  xyes)   
3732         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3733  xno|x)  
3734         enable_cxx_flags='' ;;
3735  *)      
3736         enable_cxx_flags="$enableval" ;;
3737  esac
3738 else
3739   enable_cxx_flags='none'
3740 fi
3741
3742
3743 if test "$enable_cxx_flags" = "none"; then 
3744   enable_cxx_flags=''; 
3745 fi
3746
3747 if test -n "$enable_cxx_flags"; then
3748     for f in $enable_cxx_flags; do
3749         case "$f" in
3750             -fhonor-std)  ;;
3751             -*)  ;;
3752             *)   # and we're trying to pass /what/ exactly?
3753                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3754         esac
3755     done
3756 fi
3757 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3758
3759
3760
3761   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3762 echo "configure:3763: checking for exception model to use" >&5
3763   
3764   ac_ext=C
3765 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3766 ac_cpp='$CXXCPP $CPPFLAGS'
3767 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3768 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3769 cross_compiling=$ac_cv_prog_cxx_cross
3770
3771   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3772 if test "${enable_sjlj_exceptions+set}" = set; then
3773   enableval="$enable_sjlj_exceptions"
3774   :
3775 else
3776                        cat > conftest.$ac_ext << EOF
3777 #line 3778 "configure"
3778 struct S { ~S(); };
3779 void bar();
3780 void foo()
3781 {
3782   S s;
3783   bar();
3784 }
3785 EOF
3786    old_CXXFLAGS="$CXXFLAGS"  
3787    CXXFLAGS=-S
3788    if { (eval echo configure:3789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3789      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3790        enable_sjlj_exceptions=yes
3791      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3792        enable_sjlj_exceptions=no
3793      fi
3794    fi
3795    CXXFLAGS="$old_CXXFLAGS"
3796    rm -f conftest*
3797 fi
3798
3799    if test x$enable_sjlj_exceptions = xyes; then
3800      cat >> confdefs.h <<\EOF
3801 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3802 EOF
3803
3804      ac_exception_model_name=sjlj
3805    elif test x$enable_sjlj_exceptions = xno; then
3806      ac_exception_model_name="call frame"
3807    else
3808      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3809    fi
3810    ac_ext=c
3811 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3814 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3815 cross_compiling=$ac_cv_prog_cc_cross
3816
3817    echo "$ac_t""$ac_exception_model_name" 1>&6
3818
3819
3820
3821 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3822
3823   # We are being configured with some form of cross compiler.
3824   # mknumeric_limits may not work correctly, either because the
3825   # compiler may not run on this machine, may not be able to link
3826   # executables, or may produce executables we can't run on this
3827   # machine. Thus, just use the pre-generated include/bits/limits_generic.h
3828   GLIBCPP_IS_CROSS_COMPILING=1
3829
3830   # If Canadian cross, then don't pick up tools from the build
3831   # directory.
3832   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
3833     CANADIAN=yes
3834   else
3835     CANADIAN=no
3836   fi
3837
3838   case "$target_alias" in
3839     *-linux*)
3840         # Construct linux crosses by hand, eliminating bits that need ld...
3841         # Check for available headers.
3842         for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3843         machine/endian.h machine/param.h sys/machine.h sys/types.h \
3844         fp.h locale.h float.h inttypes.h
3845 do
3846 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3847 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3848 echo "configure:3849: checking for $ac_hdr" >&5
3849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3850   echo $ac_n "(cached) $ac_c" 1>&6
3851 else
3852   cat > conftest.$ac_ext <<EOF
3853 #line 3854 "configure"
3854 #include "confdefs.h"
3855 #include <$ac_hdr>
3856 EOF
3857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3858 { (eval echo configure:3859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3860 if test -z "$ac_err"; then
3861   rm -rf conftest*
3862   eval "ac_cv_header_$ac_safe=yes"
3863 else
3864   echo "$ac_err" >&5
3865   echo "configure: failed program was:" >&5
3866   cat conftest.$ac_ext >&5
3867   rm -rf conftest*
3868   eval "ac_cv_header_$ac_safe=no"
3869 fi
3870 rm -f conftest*
3871 fi
3872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3873   echo "$ac_t""yes" 1>&6
3874     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3875   cat >> confdefs.h <<EOF
3876 #define $ac_tr_hdr 1
3877 EOF
3878  
3879 else
3880   echo "$ac_t""no" 1>&6
3881 fi
3882 done
3883
3884
3885         # GLIBCPP_CHECK_COMPILER_FEATURES
3886         SECTION_FLAGS='-ffunction-sections -fdata-sections'
3887         
3888         
3889   # If we're not using GNU ld, then there's no point in even trying these
3890   # tests.  Check for that first.  We should have already tested for gld
3891   # by now (in libtool), but require it now just to be safe...
3892   SECTION_LDFLAGS=''
3893   OPT_LDFLAGS=''
3894   
3895
3896   # Set --gc-sections.
3897   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3898     # GNU ld it is!  Joy and bunny rabbits!
3899
3900     # All these tests are for C++; save the language and the compiler flags.
3901     # Need to do this so that g++ won't try to link in libstdc++
3902     ac_test_CFLAGS="${CFLAGS+set}"
3903     ac_save_CFLAGS="$CFLAGS"
3904     CFLAGS='-x c++  -Wl,--gc-sections'
3905
3906     # Check for -Wl,--gc-sections
3907     # XXX This test is broken at the moment, as symbols required for
3908     # linking are now in libsupc++ (not built yet.....). In addition, 
3909     # this test has cored on solaris in the past. In addition,
3910     # --gc-sections doesn't really work at the moment (keeps on discarding
3911     # used sections, first .eh_frame and now some of the glibc sections for
3912     # iconv). Bzzzzt. Thanks for playing, maybe next time.
3913     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3914 echo "configure:3915: checking for ld that supports -Wl,--gc-sections" >&5
3915     if test "$cross_compiling" = yes; then
3916   ac_sectionLDflags=yes
3917 else
3918   cat > conftest.$ac_ext <<EOF
3919 #line 3920 "configure"
3920 #include "confdefs.h"
3921
3922      int main(void) 
3923      {
3924        try { throw 1; }
3925        catch (...) { };
3926        return 0;
3927      }
3928     
3929 EOF
3930 if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3931 then
3932   ac_sectionLDflags=yes
3933 else
3934   echo "configure: failed program was:" >&5
3935   cat conftest.$ac_ext >&5
3936   rm -fr conftest*
3937   ac_sectionLFflags=no
3938 fi
3939 rm -fr conftest*
3940 fi
3941
3942     if test "$ac_test_CFLAGS" = set; then
3943       CFLAGS="$ac_save_CFLAGS"
3944     else
3945       # this is the suspicious part
3946       CFLAGS=''
3947     fi
3948     if test "$ac_sectionLDflags" = "yes"; then
3949       SECTION_LDFLAGS='-Wl,--gc-sections'
3950     fi
3951     echo "$ac_t""$ac_sectionLDflags" 1>&6
3952   fi
3953
3954   # Set linker optimization flags.
3955   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
3956      test x"$enable_debug" = x"no"; then
3957     OPT_LDFLAGS='-Wl,-O1'
3958   fi
3959
3960   
3961   
3962
3963         # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3964         # GLIBCPP_CHECK_MATH_SUPPORT
3965         cat >> confdefs.h <<\EOF
3966 #define HAVE_ACOSF 1
3967 EOF
3968
3969         cat >> confdefs.h <<\EOF
3970 #define HAVE_ASINF 1
3971 EOF
3972
3973         cat >> confdefs.h <<\EOF
3974 #define HAVE_ATAN2F 1
3975 EOF
3976
3977         cat >> confdefs.h <<\EOF
3978 #define HAVE_ATANF 1
3979 EOF
3980
3981         cat >> confdefs.h <<\EOF
3982 #define HAVE_CEILF 1
3983 EOF
3984
3985         cat >> confdefs.h <<\EOF
3986 #define HAVE_COPYSIGN 1
3987 EOF
3988
3989         cat >> confdefs.h <<\EOF
3990 #define HAVE_COPYSIGNF 1
3991 EOF
3992
3993         cat >> confdefs.h <<\EOF
3994 #define HAVE_COSF 1
3995 EOF
3996
3997         cat >> confdefs.h <<\EOF
3998 #define HAVE_COSHF 1
3999 EOF
4000
4001         cat >> confdefs.h <<\EOF
4002 #define HAVE_EXPF 1
4003 EOF
4004
4005         cat >> confdefs.h <<\EOF
4006 #define HAVE_FABSF 1
4007 EOF
4008
4009         cat >> confdefs.h <<\EOF
4010 #define HAVE_FINITE 1
4011 EOF
4012
4013         cat >> confdefs.h <<\EOF
4014 #define HAVE_FINITEF 1
4015 EOF
4016
4017         cat >> confdefs.h <<\EOF
4018 #define HAVE_FLOORF 1
4019 EOF
4020
4021         cat >> confdefs.h <<\EOF
4022 #define HAVE_FMODF 1
4023 EOF
4024
4025         cat >> confdefs.h <<\EOF
4026 #define HAVE_FREXPF 1
4027 EOF
4028
4029         cat >> confdefs.h <<\EOF
4030 #define HAVE_ISINF 1
4031 EOF
4032
4033         cat >> confdefs.h <<\EOF
4034 #define HAVE_ISINFF 1
4035 EOF
4036
4037         cat >> confdefs.h <<\EOF
4038 #define HAVE_ISNAN 1
4039 EOF
4040
4041         cat >> confdefs.h <<\EOF
4042 #define HAVE_ISNANF 1
4043 EOF
4044
4045         cat >> confdefs.h <<\EOF
4046 #define HAVE_LDEXPF 1
4047 EOF
4048
4049         cat >> confdefs.h <<\EOF
4050 #define HAVE_LOG10F 1
4051 EOF
4052
4053         cat >> confdefs.h <<\EOF
4054 #define HAVE_LOGF 1
4055 EOF
4056
4057         cat >> confdefs.h <<\EOF
4058 #define HAVE_MODFF 1
4059 EOF
4060
4061         cat >> confdefs.h <<\EOF
4062 #define HAVE_POWF 1
4063 EOF
4064
4065         cat >> confdefs.h <<\EOF
4066 #define HAVE_SINCOS 1
4067 EOF
4068
4069         cat >> confdefs.h <<\EOF
4070 #define HAVE_SINCOSF 1
4071 EOF
4072
4073         cat >> confdefs.h <<\EOF
4074 #define HAVE_SINF 1
4075 EOF
4076
4077         cat >> confdefs.h <<\EOF
4078 #define HAVE_SINHF 1
4079 EOF
4080
4081         cat >> confdefs.h <<\EOF
4082 #define HAVE_SQRTF 1
4083 EOF
4084
4085         cat >> confdefs.h <<\EOF
4086 #define HAVE_TANF 1
4087 EOF
4088
4089         cat >> confdefs.h <<\EOF
4090 #define HAVE_TANHF 1
4091 EOF
4092
4093
4094         # At some point, we should differentiate between architectures
4095         # like x86, which have long double versions, and alpha/powerpc/etc.,
4096         # which don't. For the time being, punt.
4097         if test x"long_double_math_on_this_cpu" = x"yes"; then
4098           cat >> confdefs.h <<\EOF
4099 #define HAVE_ACOSL 1
4100 EOF
4101
4102           cat >> confdefs.h <<\EOF
4103 #define HAVE_ASINL 1
4104 EOF
4105
4106           cat >> confdefs.h <<\EOF
4107 #define HAVE_ATAN2L 1
4108 EOF
4109
4110           cat >> confdefs.h <<\EOF
4111 #define HAVE_ATANL 1
4112 EOF
4113
4114           cat >> confdefs.h <<\EOF
4115 #define HAVE_CEILL 1
4116 EOF
4117
4118           cat >> confdefs.h <<\EOF
4119 #define HAVE_COPYSIGNL 1
4120 EOF
4121
4122           cat >> confdefs.h <<\EOF
4123 #define HAVE_COSL 1
4124 EOF
4125
4126           cat >> confdefs.h <<\EOF
4127 #define HAVE_COSHL 1
4128 EOF
4129
4130           cat >> confdefs.h <<\EOF
4131 #define HAVE_EXPL 1
4132 EOF
4133
4134           cat >> confdefs.h <<\EOF
4135 #define HAVE_FABSL 1
4136 EOF
4137
4138           cat >> confdefs.h <<\EOF
4139 #define HAVE_FINITEL 1
4140 EOF
4141
4142           cat >> confdefs.h <<\EOF
4143 #define HAVE_FLOORL 1
4144 EOF
4145
4146           cat >> confdefs.h <<\EOF
4147 #define HAVE_FMODL 1
4148 EOF
4149
4150           cat >> confdefs.h <<\EOF
4151 #define HAVE_FREXPL 1
4152 EOF
4153
4154           cat >> confdefs.h <<\EOF
4155 #define HAVE_ISINFL 1
4156 EOF
4157
4158           cat >> confdefs.h <<\EOF
4159 #define HAVE_ISNANL 1
4160 EOF
4161
4162           cat >> confdefs.h <<\EOF
4163 #define HAVE_LDEXPL 1
4164 EOF
4165
4166           cat >> confdefs.h <<\EOF
4167 #define HAVE_LOG10L 1
4168 EOF
4169
4170           cat >> confdefs.h <<\EOF
4171 #define HAVE_LOGL 1
4172 EOF
4173
4174           cat >> confdefs.h <<\EOF
4175 #define HAVE_MODFL 1
4176 EOF
4177
4178           cat >> confdefs.h <<\EOF
4179 #define HAVE_POWL 1
4180 EOF
4181
4182           cat >> confdefs.h <<\EOF
4183 #define HAVE_SINCOSL 1
4184 EOF
4185
4186           cat >> confdefs.h <<\EOF
4187 #define HAVE_SINL 1
4188 EOF
4189
4190           cat >> confdefs.h <<\EOF
4191 #define HAVE_SINHL 1
4192 EOF
4193
4194           cat >> confdefs.h <<\EOF
4195 #define HAVE_SQRTL 1
4196 EOF
4197
4198           cat >> confdefs.h <<\EOF
4199 #define HAVE_TANL 1
4200 EOF
4201
4202           cat >> confdefs.h <<\EOF
4203 #define HAVE_TANHL 1
4204 EOF
4205
4206         fi
4207         
4208     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4209 echo "configure:4210: checking for main in -lm" >&5
4210 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4212   echo $ac_n "(cached) $ac_c" 1>&6
4213 else
4214   ac_save_LIBS="$LIBS"
4215 LIBS="-lm  $LIBS"
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4219
4220 int main() {
4221 main()
4222 ; return 0; }
4223 EOF
4224 if { (eval echo configure:4225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4225   rm -rf conftest*
4226   eval "ac_cv_lib_$ac_lib_var=yes"
4227 else
4228   echo "configure: failed program was:" >&5
4229   cat conftest.$ac_ext >&5
4230   rm -rf conftest*
4231   eval "ac_cv_lib_$ac_lib_var=no"
4232 fi
4233 rm -f conftest*
4234 LIBS="$ac_save_LIBS"
4235
4236 fi
4237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4238   echo "$ac_t""yes" 1>&6
4239     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4240     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4241   cat >> confdefs.h <<EOF
4242 #define $ac_tr_lib 1
4243 EOF
4244
4245   LIBS="-lm $LIBS"
4246
4247 else
4248   echo "$ac_t""no" 1>&6
4249 fi
4250
4251   for ac_func in nan copysignf
4252 do
4253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4254 echo "configure:4255: checking for $ac_func" >&5
4255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4256   echo $ac_n "(cached) $ac_c" 1>&6
4257 else
4258   cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4261 /* System header to define __stub macros and hopefully few prototypes,
4262     which can conflict with char $ac_func(); below.  */
4263 #include <assert.h>
4264 /* Override any gcc2 internal prototype to avoid an error.  */
4265 /* We use char because int might match the return type of a gcc2
4266     builtin and then its argument prototype would still apply.  */
4267 char $ac_func();
4268
4269 int main() {
4270
4271 /* The GNU C library defines this for functions which it implements
4272     to always fail with ENOSYS.  Some functions are actually named
4273     something starting with __ and the normal name is an alias.  */
4274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4275 choke me
4276 #else
4277 $ac_func();
4278 #endif
4279
4280 ; return 0; }
4281 EOF
4282 if { (eval echo configure:4283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4283   rm -rf conftest*
4284   eval "ac_cv_func_$ac_func=yes"
4285 else
4286   echo "configure: failed program was:" >&5
4287   cat conftest.$ac_ext >&5
4288   rm -rf conftest*
4289   eval "ac_cv_func_$ac_func=no"
4290 fi
4291 rm -f conftest*
4292 fi
4293
4294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4295   echo "$ac_t""yes" 1>&6
4296     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4297   cat >> confdefs.h <<EOF
4298 #define $ac_tr_func 1
4299 EOF
4300  
4301 else
4302   echo "$ac_t""no" 1>&6
4303 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4304 fi
4305 done
4306
4307
4308
4309           USE_COMPLEX_LONG_DOUBLE=no
4310   if test x$ac_cv_func_copysignl = x"yes"; then
4311     USE_COMPLEX_LONG_DOUBLE=yes
4312     for ac_func in signbitl
4313 do
4314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4315 echo "configure:4316: checking for $ac_func" >&5
4316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4317   echo $ac_n "(cached) $ac_c" 1>&6
4318 else
4319   cat > conftest.$ac_ext <<EOF
4320 #line 4321 "configure"
4321 #include "confdefs.h"
4322 /* System header to define __stub macros and hopefully few prototypes,
4323     which can conflict with char $ac_func(); below.  */
4324 #include <assert.h>
4325 /* Override any gcc2 internal prototype to avoid an error.  */
4326 /* We use char because int might match the return type of a gcc2
4327     builtin and then its argument prototype would still apply.  */
4328 char $ac_func();
4329
4330 int main() {
4331
4332 /* The GNU C library defines this for functions which it implements
4333     to always fail with ENOSYS.  Some functions are actually named
4334     something starting with __ and the normal name is an alias.  */
4335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4336 choke me
4337 #else
4338 $ac_func();
4339 #endif
4340
4341 ; return 0; }
4342 EOF
4343 if { (eval echo configure:4344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4344   rm -rf conftest*
4345   eval "ac_cv_func_$ac_func=yes"
4346 else
4347   echo "configure: failed program was:" >&5
4348   cat conftest.$ac_ext >&5
4349   rm -rf conftest*
4350   eval "ac_cv_func_$ac_func=no"
4351 fi
4352 rm -f conftest*
4353 fi
4354
4355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4356   echo "$ac_t""yes" 1>&6
4357     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4358   cat >> confdefs.h <<EOF
4359 #define $ac_tr_func 1
4360 EOF
4361  
4362 else
4363   echo "$ac_t""no" 1>&6
4364 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4365 fi
4366 done
4367
4368
4369   fi
4370
4371   
4372
4373         
4374
4375       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4376 echo "configure:4377: checking for mbstate_t" >&5
4377   cat > conftest.$ac_ext <<EOF
4378 #line 4379 "configure"
4379 #include "confdefs.h"
4380 #include <wchar.h>
4381 int main() {
4382 mbstate_t teststate;
4383 ; return 0; }
4384 EOF
4385 if { (eval echo configure:4386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4386   rm -rf conftest*
4387   have_mbstate_t=yes
4388 else
4389   echo "configure: failed program was:" >&5
4390   cat conftest.$ac_ext >&5
4391   rm -rf conftest*
4392   have_mbstate_t=no
4393 fi
4394 rm -f conftest*
4395   echo "$ac_t""$have_mbstate_t" 1>&6
4396   if test x"$have_mbstate_t" = xyes; then
4397     cat >> confdefs.h <<\EOF
4398 #define HAVE_MBSTATE_T 1
4399 EOF
4400
4401   fi
4402
4403     for ac_hdr in wchar.h
4404 do
4405 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4406 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4407 echo "configure:4408: checking for $ac_hdr" >&5
4408 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4409   echo $ac_n "(cached) $ac_c" 1>&6
4410 else
4411   cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4414 #include <$ac_hdr>
4415 EOF
4416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4417 { (eval echo configure:4418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4419 if test -z "$ac_err"; then
4420   rm -rf conftest*
4421   eval "ac_cv_header_$ac_safe=yes"
4422 else
4423   echo "$ac_err" >&5
4424   echo "configure: failed program was:" >&5
4425   cat conftest.$ac_ext >&5
4426   rm -rf conftest*
4427   eval "ac_cv_header_$ac_safe=no"
4428 fi
4429 rm -f conftest*
4430 fi
4431 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4432   echo "$ac_t""yes" 1>&6
4433     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4434   cat >> confdefs.h <<EOF
4435 #define $ac_tr_hdr 1
4436 EOF
4437  ac_has_wchar_h=yes
4438 else
4439   echo "$ac_t""no" 1>&6
4440 ac_has_wchar_h=no
4441 fi
4442 done
4443
4444   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4445 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4446 echo "configure:4447: checking for wctype.h" >&5
4447 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4448   echo $ac_n "(cached) $ac_c" 1>&6
4449 else
4450   cat > conftest.$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4453 #include <wctype.h>
4454 EOF
4455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4456 { (eval echo configure:4457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4458 if test -z "$ac_err"; then
4459   rm -rf conftest*
4460   eval "ac_cv_header_$ac_safe=yes"
4461 else
4462   echo "$ac_err" >&5
4463   echo "configure: failed program was:" >&5
4464   cat conftest.$ac_ext >&5
4465   rm -rf conftest*
4466   eval "ac_cv_header_$ac_safe=no"
4467 fi
4468 rm -f conftest*
4469 fi
4470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4471   echo "$ac_t""yes" 1>&6
4472   ac_has_wctype_h=yes
4473 else
4474   echo "$ac_t""no" 1>&6
4475 ac_has_wctype_h=no
4476 fi
4477
4478   
4479     if test x"$ac_has_wchar_h" = xyes &&
4480      test x"$ac_has_wctype_h" = xyes &&
4481      test x"$enable_c_mbchar" != xno; then
4482       
4483             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4484 echo "configure:4485: checking for WCHAR_MIN and WCHAR_MAX" >&5
4485     cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4488 #include <wchar.h>
4489 int main() {
4490 int i = WCHAR_MIN; int j = WCHAR_MAX;
4491 ; return 0; }
4492 EOF
4493 if { (eval echo configure:4494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4494   rm -rf conftest*
4495   has_wchar_minmax=yes
4496 else
4497   echo "configure: failed program was:" >&5
4498   cat conftest.$ac_ext >&5
4499   rm -rf conftest*
4500   has_wchar_minmax=no
4501 fi
4502 rm -f conftest*
4503     echo "$ac_t""$has_wchar_minmax" 1>&6
4504     
4505             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4506 echo "configure:4507: checking for WEOF" >&5
4507     cat > conftest.$ac_ext <<EOF
4508 #line 4509 "configure"
4509 #include "confdefs.h"
4510
4511       #include <wchar.h>
4512       #include <stddef.h>
4513 int main() {
4514 wint_t i = WEOF;
4515 ; return 0; }
4516 EOF
4517 if { (eval echo configure:4518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4518   rm -rf conftest*
4519   has_weof=yes
4520 else
4521   echo "configure: failed program was:" >&5
4522   cat conftest.$ac_ext >&5
4523   rm -rf conftest*
4524   has_weof=no
4525 fi
4526 rm -f conftest*
4527     echo "$ac_t""$has_weof" 1>&6
4528   
4529         ac_wfuncs=yes
4530     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4531 do
4532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4533 echo "configure:4534: checking for $ac_func" >&5
4534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4535   echo $ac_n "(cached) $ac_c" 1>&6
4536 else
4537   cat > conftest.$ac_ext <<EOF
4538 #line 4539 "configure"
4539 #include "confdefs.h"
4540 /* System header to define __stub macros and hopefully few prototypes,
4541     which can conflict with char $ac_func(); below.  */
4542 #include <assert.h>
4543 /* Override any gcc2 internal prototype to avoid an error.  */
4544 /* We use char because int might match the return type of a gcc2
4545     builtin and then its argument prototype would still apply.  */
4546 char $ac_func();
4547
4548 int main() {
4549
4550 /* The GNU C library defines this for functions which it implements
4551     to always fail with ENOSYS.  Some functions are actually named
4552     something starting with __ and the normal name is an alias.  */
4553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4554 choke me
4555 #else
4556 $ac_func();
4557 #endif
4558
4559 ; return 0; }
4560 EOF
4561 if { (eval echo configure:4562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4562   rm -rf conftest*
4563   eval "ac_cv_func_$ac_func=yes"
4564 else
4565   echo "configure: failed program was:" >&5
4566   cat conftest.$ac_ext >&5
4567   rm -rf conftest*
4568   eval "ac_cv_func_$ac_func=no"
4569 fi
4570 rm -f conftest*
4571 fi
4572
4573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4574   echo "$ac_t""yes" 1>&6
4575     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4576   cat >> confdefs.h <<EOF
4577 #define $ac_tr_func 1
4578 EOF
4579  
4580 else
4581   echo "$ac_t""no" 1>&6
4582 \
4583     ac_wfuncs=no
4584 fi
4585 done
4586
4587   
4588         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4589     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4590     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4591     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4592     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4593     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4594 do
4595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4596 echo "configure:4597: checking for $ac_func" >&5
4597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4598   echo $ac_n "(cached) $ac_c" 1>&6
4599 else
4600   cat > conftest.$ac_ext <<EOF
4601 #line 4602 "configure"
4602 #include "confdefs.h"
4603 /* System header to define __stub macros and hopefully few prototypes,
4604     which can conflict with char $ac_func(); below.  */
4605 #include <assert.h>
4606 /* Override any gcc2 internal prototype to avoid an error.  */
4607 /* We use char because int might match the return type of a gcc2
4608     builtin and then its argument prototype would still apply.  */
4609 char $ac_func();
4610
4611 int main() {
4612
4613 /* The GNU C library defines this for functions which it implements
4614     to always fail with ENOSYS.  Some functions are actually named
4615     something starting with __ and the normal name is an alias.  */
4616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4617 choke me
4618 #else
4619 $ac_func();
4620 #endif
4621
4622 ; return 0; }
4623 EOF
4624 if { (eval echo configure:4625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4625   rm -rf conftest*
4626   eval "ac_cv_func_$ac_func=yes"
4627 else
4628   echo "configure: failed program was:" >&5
4629   cat conftest.$ac_ext >&5
4630   rm -rf conftest*
4631   eval "ac_cv_func_$ac_func=no"
4632 fi
4633 rm -f conftest*
4634 fi
4635
4636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4637   echo "$ac_t""yes" 1>&6
4638     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4639   cat >> confdefs.h <<EOF
4640 #define $ac_tr_func 1
4641 EOF
4642  
4643 else
4644   echo "$ac_t""no" 1>&6
4645 \
4646     ac_wfuncs=no
4647 fi
4648 done
4649
4650
4651     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4652 echo "configure:4653: checking for ISO C99 wchar_t support" >&5
4653     if test x"$has_weof" = xyes &&
4654        test x"$has_wchar_minmax" = xyes &&
4655        test x"$ac_wfuncs" = xyes; then
4656       ac_isoC99_wchar_t=yes
4657     else
4658       ac_isoC99_wchar_t=no
4659     fi
4660     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4661   
4662             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4663 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4664 echo "configure:4665: checking for iconv.h" >&5
4665 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4666   echo $ac_n "(cached) $ac_c" 1>&6
4667 else
4668   cat > conftest.$ac_ext <<EOF
4669 #line 4670 "configure"
4670 #include "confdefs.h"
4671 #include <iconv.h>
4672 EOF
4673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4674 { (eval echo configure:4675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4676 if test -z "$ac_err"; then
4677   rm -rf conftest*
4678   eval "ac_cv_header_$ac_safe=yes"
4679 else
4680   echo "$ac_err" >&5
4681   echo "configure: failed program was:" >&5
4682   cat conftest.$ac_ext >&5
4683   rm -rf conftest*
4684   eval "ac_cv_header_$ac_safe=no"
4685 fi
4686 rm -f conftest*
4687 fi
4688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4689   echo "$ac_t""yes" 1>&6
4690   ac_has_iconv_h=yes
4691 else
4692   echo "$ac_t""no" 1>&6
4693 ac_has_iconv_h=no
4694 fi
4695
4696     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4697 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4698 echo "configure:4699: checking for langinfo.h" >&5
4699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4700   echo $ac_n "(cached) $ac_c" 1>&6
4701 else
4702   cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 #include <langinfo.h>
4706 EOF
4707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4708 { (eval echo configure:4709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4710 if test -z "$ac_err"; then
4711   rm -rf conftest*
4712   eval "ac_cv_header_$ac_safe=yes"
4713 else
4714   echo "$ac_err" >&5
4715   echo "configure: failed program was:" >&5
4716   cat conftest.$ac_ext >&5
4717   rm -rf conftest*
4718   eval "ac_cv_header_$ac_safe=no"
4719 fi
4720 rm -f conftest*
4721 fi
4722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4723   echo "$ac_t""yes" 1>&6
4724   ac_has_langinfo_h=yes
4725 else
4726   echo "$ac_t""no" 1>&6
4727 ac_has_langinfo_h=no
4728 fi
4729
4730
4731         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4732 echo "configure:4733: checking for iconv in -liconv" >&5
4733 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4735   echo $ac_n "(cached) $ac_c" 1>&6
4736 else
4737   ac_save_LIBS="$LIBS"
4738 LIBS="-liconv  $LIBS"
4739 cat > conftest.$ac_ext <<EOF
4740 #line 4741 "configure"
4741 #include "confdefs.h"
4742 /* Override any gcc2 internal prototype to avoid an error.  */
4743 /* We use char because int might match the return type of a gcc2
4744     builtin and then its argument prototype would still apply.  */
4745 char iconv();
4746
4747 int main() {
4748 iconv()
4749 ; return 0; }
4750 EOF
4751 if { (eval echo configure:4752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4752   rm -rf conftest*
4753   eval "ac_cv_lib_$ac_lib_var=yes"
4754 else
4755   echo "configure: failed program was:" >&5
4756   cat conftest.$ac_ext >&5
4757   rm -rf conftest*
4758   eval "ac_cv_lib_$ac_lib_var=no"
4759 fi
4760 rm -f conftest*
4761 LIBS="$ac_save_LIBS"
4762
4763 fi
4764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4765   echo "$ac_t""yes" 1>&6
4766   libiconv="-liconv"
4767 else
4768   echo "$ac_t""no" 1>&6
4769 fi
4770
4771     ac_save_LIBS="$LIBS"
4772     LIBS="$LIBS $libiconv"
4773
4774     for ac_func in iconv_open iconv_close iconv nl_langinfo
4775 do
4776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4777 echo "configure:4778: checking for $ac_func" >&5
4778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4779   echo $ac_n "(cached) $ac_c" 1>&6
4780 else
4781   cat > conftest.$ac_ext <<EOF
4782 #line 4783 "configure"
4783 #include "confdefs.h"
4784 /* System header to define __stub macros and hopefully few prototypes,
4785     which can conflict with char $ac_func(); below.  */
4786 #include <assert.h>
4787 /* Override any gcc2 internal prototype to avoid an error.  */
4788 /* We use char because int might match the return type of a gcc2
4789     builtin and then its argument prototype would still apply.  */
4790 char $ac_func();
4791
4792 int main() {
4793
4794 /* The GNU C library defines this for functions which it implements
4795     to always fail with ENOSYS.  Some functions are actually named
4796     something starting with __ and the normal name is an alias.  */
4797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4798 choke me
4799 #else
4800 $ac_func();
4801 #endif
4802
4803 ; return 0; }
4804 EOF
4805 if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4806   rm -rf conftest*
4807   eval "ac_cv_func_$ac_func=yes"
4808 else
4809   echo "configure: failed program was:" >&5
4810   cat conftest.$ac_ext >&5
4811   rm -rf conftest*
4812   eval "ac_cv_func_$ac_func=no"
4813 fi
4814 rm -f conftest*
4815 fi
4816
4817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4818   echo "$ac_t""yes" 1>&6
4819     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4820   cat >> confdefs.h <<EOF
4821 #define $ac_tr_func 1
4822 EOF
4823  \
4824     ac_XPG2funcs=yes
4825 else
4826   echo "$ac_t""no" 1>&6
4827 ac_XPG2funcs=no
4828 fi
4829 done
4830
4831   
4832     LIBS="$ac_save_LIBS"
4833
4834     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4835 echo "configure:4836: checking for XPG2 wchar_t support" >&5
4836     if test x"$ac_has_iconv_h" = xyes &&
4837        test x"$ac_has_langinfo_h" = xyes &&
4838        test x"$ac_XPG2funcs" = xyes; then
4839       ac_XPG2_wchar_t=yes
4840     else
4841       ac_XPG2_wchar_t=no
4842     fi
4843     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4844   
4845             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4846 echo "configure:4847: checking for enabled wchar_t specializations" >&5
4847     if test x"$ac_isoC99_wchar_t" = xyes &&
4848        test x"$ac_XPG2_wchar_t" = xyes; then
4849       cat >> confdefs.h <<\EOF
4850 #define _GLIBCPP_USE_WCHAR_T 1
4851 EOF
4852
4853       echo "$ac_t"""yes"" 1>&6
4854     else
4855       echo "$ac_t"""no"" 1>&6
4856     fi
4857   else
4858         echo "configure: warning: wchar_t support disabled." 1>&2
4859   fi
4860
4861         os_include_dir="config/os/gnu-linux"
4862         # GLIBCPP_CHECK_STDLIB_SUPPORT
4863         cat >> confdefs.h <<\EOF
4864 #define HAVE_STRTOF 1
4865 EOF
4866         
4867         cat >> confdefs.h <<\EOF
4868 #define HAVE_STRTOLD 1
4869 EOF
4870         
4871         # AC_FUNC_MMAP
4872         cat >> confdefs.h <<\EOF
4873 #define HAVE_MMAP 1
4874 EOF
4875
4876         ;;
4877     *)
4878         # We assume newlib.  This lets us hard-code the functions we know
4879         # we'll have.
4880         cat >> confdefs.h <<\EOF
4881 #define HAVE_FINITE 1
4882 EOF
4883
4884         cat >> confdefs.h <<\EOF
4885 #define HAVE_ISNAN 1
4886 EOF
4887
4888         cat >> confdefs.h <<\EOF
4889 #define HAVE_ISNANF 1
4890 EOF
4891
4892         cat >> confdefs.h <<\EOF
4893 #define HAVE_ISINF 1
4894 EOF
4895
4896         cat >> confdefs.h <<\EOF
4897 #define HAVE_ISINFF 1
4898 EOF
4899
4900
4901         os_include_dir="config/os/newlib"
4902
4903         # need to check for faster f versions of math functions, ie sinf?
4904         ;;
4905   esac
4906 else
4907
4908   # We are being configured natively. We can do more elaborate tests
4909   # that include AC_TRY_COMPILE now, as the linker is assumed to be
4910   # working.
4911   GLIBCPP_IS_CROSS_COMPILING=0
4912   CANADIAN=no
4913
4914   # Check for available headers.
4915   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
4916   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
4917 do
4918 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4919 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4920 echo "configure:4921: checking for $ac_hdr" >&5
4921 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4922   echo $ac_n "(cached) $ac_c" 1>&6
4923 else
4924   cat > conftest.$ac_ext <<EOF
4925 #line 4926 "configure"
4926 #include "confdefs.h"
4927 #include <$ac_hdr>
4928 EOF
4929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4930 { (eval echo configure:4931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4932 if test -z "$ac_err"; then
4933   rm -rf conftest*
4934   eval "ac_cv_header_$ac_safe=yes"
4935 else
4936   echo "$ac_err" >&5
4937   echo "configure: failed program was:" >&5
4938   cat conftest.$ac_ext >&5
4939   rm -rf conftest*
4940   eval "ac_cv_header_$ac_safe=no"
4941 fi
4942 rm -f conftest*
4943 fi
4944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4945   echo "$ac_t""yes" 1>&6
4946     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4947   cat >> confdefs.h <<EOF
4948 #define $ac_tr_hdr 1
4949 EOF
4950  
4951 else
4952   echo "$ac_t""no" 1>&6
4953 fi
4954 done
4955
4956
4957   
4958   # All these tests are for C++; save the language and the compiler flags.
4959   # The CXXFLAGS thing is suspicious, but based on similar bits previously
4960   # found in GLIBCPP_CONFIGURE.
4961   
4962   ac_ext=C
4963 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4964 ac_cpp='$CXXCPP $CPPFLAGS'
4965 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4966 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4967 cross_compiling=$ac_cv_prog_cxx_cross
4968
4969   ac_test_CXXFLAGS="${CXXFLAGS+set}"
4970   ac_save_CXXFLAGS="$CXXFLAGS"
4971
4972   # Check for maintainer-mode bits.
4973   if test x"$USE_MAINTAINER_MODE" = xno; then
4974     WERROR=''
4975   else
4976     WERROR='-Werror'
4977   fi
4978
4979   # Check for -ffunction-sections -fdata-sections
4980   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
4981 echo "configure:4982: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
4982   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
4983   cat > conftest.$ac_ext <<EOF
4984 #line 4985 "configure"
4985 #include "confdefs.h"
4986
4987 int main() {
4988 int foo;
4989   
4990 ; return 0; }
4991 EOF
4992 if { (eval echo configure:4993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4993   rm -rf conftest*
4994   ac_fdsections=yes
4995 else
4996   echo "configure: failed program was:" >&5
4997   cat conftest.$ac_ext >&5
4998   rm -rf conftest*
4999   ac_fdsections=no
5000 fi
5001 rm -f conftest*
5002   if test "$ac_test_CXXFLAGS" = set; then
5003     CXXFLAGS="$ac_save_CXXFLAGS"
5004   else
5005     # this is the suspicious part
5006     CXXFLAGS=''
5007   fi
5008   if test x"$ac_fdsections" = x"yes" &&
5009      test x"$enable_debug" = x"no"; then
5010     SECTION_FLAGS='-ffunction-sections -fdata-sections'
5011   fi
5012   echo "$ac_t""$ac_fdsections" 1>&6
5013
5014   ac_ext=c
5015 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5016 ac_cpp='$CPP $CPPFLAGS'
5017 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5018 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5019 cross_compiling=$ac_cv_prog_cc_cross
5020
5021   
5022   
5023
5024   
5025   # If we're not using GNU ld, then there's no point in even trying these
5026   # tests.  Check for that first.  We should have already tested for gld
5027   # by now (in libtool), but require it now just to be safe...
5028   SECTION_LDFLAGS=''
5029   OPT_LDFLAGS=''
5030   
5031
5032   # Set --gc-sections.
5033   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5034     # GNU ld it is!  Joy and bunny rabbits!
5035
5036     # All these tests are for C++; save the language and the compiler flags.
5037     # Need to do this so that g++ won't try to link in libstdc++
5038     ac_test_CFLAGS="${CFLAGS+set}"
5039     ac_save_CFLAGS="$CFLAGS"
5040     CFLAGS='-x c++  -Wl,--gc-sections'
5041
5042     # Check for -Wl,--gc-sections
5043     # XXX This test is broken at the moment, as symbols required for
5044     # linking are now in libsupc++ (not built yet.....). In addition, 
5045     # this test has cored on solaris in the past. In addition,
5046     # --gc-sections doesn't really work at the moment (keeps on discarding
5047     # used sections, first .eh_frame and now some of the glibc sections for
5048     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5049     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5050 echo "configure:5051: checking for ld that supports -Wl,--gc-sections" >&5
5051     if test "$cross_compiling" = yes; then
5052   ac_sectionLDflags=yes
5053 else
5054   cat > conftest.$ac_ext <<EOF
5055 #line 5056 "configure"
5056 #include "confdefs.h"
5057
5058      int main(void) 
5059      {
5060        try { throw 1; }
5061        catch (...) { };
5062        return 0;
5063      }
5064     
5065 EOF
5066 if { (eval echo configure:5067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5067 then
5068   ac_sectionLDflags=yes
5069 else
5070   echo "configure: failed program was:" >&5
5071   cat conftest.$ac_ext >&5
5072   rm -fr conftest*
5073   ac_sectionLFflags=no
5074 fi
5075 rm -fr conftest*
5076 fi
5077
5078     if test "$ac_test_CFLAGS" = set; then
5079       CFLAGS="$ac_save_CFLAGS"
5080     else
5081       # this is the suspicious part
5082       CFLAGS=''
5083     fi
5084     if test "$ac_sectionLDflags" = "yes"; then
5085       SECTION_LDFLAGS='-Wl,--gc-sections'
5086     fi
5087     echo "$ac_t""$ac_sectionLDflags" 1>&6
5088   fi
5089
5090   # Set linker optimization flags.
5091   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5092      test x"$enable_debug" = x"no"; then
5093     OPT_LDFLAGS='-Wl,-O1'
5094   fi
5095
5096   
5097   
5098
5099   
5100       
5101   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5102 echo "configure:5103: checking for __builtin_abs declaration" >&5
5103   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5104     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5105   echo $ac_n "(cached) $ac_c" 1>&6
5106 else
5107   
5108       
5109       ac_ext=C
5110 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5111 ac_cpp='$CXXCPP $CPPFLAGS'
5112 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5113 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5114 cross_compiling=$ac_cv_prog_cxx_cross
5115
5116       cat > conftest.$ac_ext <<EOF
5117 #line 5118 "configure"
5118 #include "confdefs.h"
5119 #include <math.h>
5120 int main() {
5121  __builtin_abs(0);
5122 ; return 0; }
5123 EOF
5124 if { (eval echo configure:5125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5125   rm -rf conftest*
5126   glibcpp_cv_func___builtin_abs_use=yes
5127 else
5128   echo "configure: failed program was:" >&5
5129   cat conftest.$ac_ext >&5
5130   rm -rf conftest*
5131   glibcpp_cv_func___builtin_abs_use=no
5132 fi
5133 rm -f conftest*
5134       ac_ext=c
5135 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5136 ac_cpp='$CPP $CPPFLAGS'
5137 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5138 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5139 cross_compiling=$ac_cv_prog_cc_cross
5140
5141     
5142 fi
5143
5144   fi
5145   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5146   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5147     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5148 echo "configure:5149: checking for __builtin_abs linkage" >&5
5149     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5150       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5151   echo $ac_n "(cached) $ac_c" 1>&6
5152 else
5153   
5154         cat > conftest.$ac_ext <<EOF
5155 #line 5156 "configure"
5156 #include "confdefs.h"
5157 #include <math.h>
5158 int main() {
5159  __builtin_abs(0);
5160 ; return 0; }
5161 EOF
5162 if { (eval echo configure:5163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5163   rm -rf conftest*
5164   glibcpp_cv_func___builtin_abs_link=yes
5165 else
5166   echo "configure: failed program was:" >&5
5167   cat conftest.$ac_ext >&5
5168   rm -rf conftest*
5169   glibcpp_cv_func___builtin_abs_link=no
5170 fi
5171 rm -f conftest*
5172       
5173 fi
5174
5175     fi
5176     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5177     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5178       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5179       cat >> confdefs.h <<EOF
5180 #define ${ac_tr_func} 1
5181 EOF
5182
5183     fi
5184   fi
5185
5186   
5187   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5188 echo "configure:5189: checking for __builtin_fabsf declaration" >&5
5189   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5190     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5191   echo $ac_n "(cached) $ac_c" 1>&6
5192 else
5193   
5194       
5195       ac_ext=C
5196 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5197 ac_cpp='$CXXCPP $CPPFLAGS'
5198 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5199 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5200 cross_compiling=$ac_cv_prog_cxx_cross
5201
5202       cat > conftest.$ac_ext <<EOF
5203 #line 5204 "configure"
5204 #include "confdefs.h"
5205 #include <math.h>
5206 int main() {
5207  __builtin_fabsf(0);
5208 ; return 0; }
5209 EOF
5210 if { (eval echo configure:5211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5211   rm -rf conftest*
5212   glibcpp_cv_func___builtin_fabsf_use=yes
5213 else
5214   echo "configure: failed program was:" >&5
5215   cat conftest.$ac_ext >&5
5216   rm -rf conftest*
5217   glibcpp_cv_func___builtin_fabsf_use=no
5218 fi
5219 rm -f conftest*
5220       ac_ext=c
5221 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5222 ac_cpp='$CPP $CPPFLAGS'
5223 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5224 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5225 cross_compiling=$ac_cv_prog_cc_cross
5226
5227     
5228 fi
5229
5230   fi
5231   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5232   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5233     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5234 echo "configure:5235: checking for __builtin_fabsf linkage" >&5
5235     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5236       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5237   echo $ac_n "(cached) $ac_c" 1>&6
5238 else
5239   
5240         cat > conftest.$ac_ext <<EOF
5241 #line 5242 "configure"
5242 #include "confdefs.h"
5243 #include <math.h>
5244 int main() {
5245  __builtin_fabsf(0);
5246 ; return 0; }
5247 EOF
5248 if { (eval echo configure:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5249   rm -rf conftest*
5250   glibcpp_cv_func___builtin_fabsf_link=yes
5251 else
5252   echo "configure: failed program was:" >&5
5253   cat conftest.$ac_ext >&5
5254   rm -rf conftest*
5255   glibcpp_cv_func___builtin_fabsf_link=no
5256 fi
5257 rm -f conftest*
5258       
5259 fi
5260
5261     fi
5262     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5263     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5264       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5265       cat >> confdefs.h <<EOF
5266 #define ${ac_tr_func} 1
5267 EOF
5268
5269     fi
5270   fi
5271
5272   
5273   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5274 echo "configure:5275: checking for __builtin_fabs declaration" >&5
5275   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5276     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5277   echo $ac_n "(cached) $ac_c" 1>&6
5278 else
5279   
5280       
5281       ac_ext=C
5282 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5283 ac_cpp='$CXXCPP $CPPFLAGS'
5284 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5285 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5286 cross_compiling=$ac_cv_prog_cxx_cross
5287
5288       cat > conftest.$ac_ext <<EOF
5289 #line 5290 "configure"
5290 #include "confdefs.h"
5291 #include <math.h>
5292 int main() {
5293  __builtin_fabs(0);
5294 ; return 0; }
5295 EOF
5296 if { (eval echo configure:5297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5297   rm -rf conftest*
5298   glibcpp_cv_func___builtin_fabs_use=yes
5299 else
5300   echo "configure: failed program was:" >&5
5301   cat conftest.$ac_ext >&5
5302   rm -rf conftest*
5303   glibcpp_cv_func___builtin_fabs_use=no
5304 fi
5305 rm -f conftest*
5306       ac_ext=c
5307 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5308 ac_cpp='$CPP $CPPFLAGS'
5309 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5310 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5311 cross_compiling=$ac_cv_prog_cc_cross
5312
5313     
5314 fi
5315
5316   fi
5317   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5318   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5319     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5320 echo "configure:5321: checking for __builtin_fabs linkage" >&5
5321     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5322       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5323   echo $ac_n "(cached) $ac_c" 1>&6
5324 else
5325   
5326         cat > conftest.$ac_ext <<EOF
5327 #line 5328 "configure"
5328 #include "confdefs.h"
5329 #include <math.h>
5330 int main() {
5331  __builtin_fabs(0);
5332 ; return 0; }
5333 EOF
5334 if { (eval echo configure:5335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5335   rm -rf conftest*
5336   glibcpp_cv_func___builtin_fabs_link=yes
5337 else
5338   echo "configure: failed program was:" >&5
5339   cat conftest.$ac_ext >&5
5340   rm -rf conftest*
5341   glibcpp_cv_func___builtin_fabs_link=no
5342 fi
5343 rm -f conftest*
5344       
5345 fi
5346
5347     fi
5348     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5349     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5350       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5351       cat >> confdefs.h <<EOF
5352 #define ${ac_tr_func} 1
5353 EOF
5354
5355     fi
5356   fi
5357
5358   
5359   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5360 echo "configure:5361: checking for __builtin_fabsl declaration" >&5
5361   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5362     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5363   echo $ac_n "(cached) $ac_c" 1>&6
5364 else
5365   
5366       
5367       ac_ext=C
5368 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5369 ac_cpp='$CXXCPP $CPPFLAGS'
5370 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5371 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5372 cross_compiling=$ac_cv_prog_cxx_cross
5373
5374       cat > conftest.$ac_ext <<EOF
5375 #line 5376 "configure"
5376 #include "confdefs.h"
5377 #include <math.h>
5378 int main() {
5379  __builtin_fabsl(0);
5380 ; return 0; }
5381 EOF
5382 if { (eval echo configure:5383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5383   rm -rf conftest*
5384   glibcpp_cv_func___builtin_fabsl_use=yes
5385 else
5386   echo "configure: failed program was:" >&5
5387   cat conftest.$ac_ext >&5
5388   rm -rf conftest*
5389   glibcpp_cv_func___builtin_fabsl_use=no
5390 fi
5391 rm -f conftest*
5392       ac_ext=c
5393 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5394 ac_cpp='$CPP $CPPFLAGS'
5395 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5396 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5397 cross_compiling=$ac_cv_prog_cc_cross
5398
5399     
5400 fi
5401
5402   fi
5403   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5404   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5405     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5406 echo "configure:5407: checking for __builtin_fabsl linkage" >&5
5407     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5408       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5409   echo $ac_n "(cached) $ac_c" 1>&6
5410 else
5411   
5412         cat > conftest.$ac_ext <<EOF
5413 #line 5414 "configure"
5414 #include "confdefs.h"
5415 #include <math.h>
5416 int main() {
5417  __builtin_fabsl(0);
5418 ; return 0; }
5419 EOF
5420 if { (eval echo configure:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5421   rm -rf conftest*
5422   glibcpp_cv_func___builtin_fabsl_link=yes
5423 else
5424   echo "configure: failed program was:" >&5
5425   cat conftest.$ac_ext >&5
5426   rm -rf conftest*
5427   glibcpp_cv_func___builtin_fabsl_link=no
5428 fi
5429 rm -f conftest*
5430       
5431 fi
5432
5433     fi
5434     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5435     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5436       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5437       cat >> confdefs.h <<EOF
5438 #define ${ac_tr_func} 1
5439 EOF
5440
5441     fi
5442   fi
5443
5444   
5445   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5446 echo "configure:5447: checking for __builtin_labs declaration" >&5
5447   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5448     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5449   echo $ac_n "(cached) $ac_c" 1>&6
5450 else
5451   
5452       
5453       ac_ext=C
5454 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5455 ac_cpp='$CXXCPP $CPPFLAGS'
5456 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5457 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5458 cross_compiling=$ac_cv_prog_cxx_cross
5459
5460       cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5463 #include <math.h>
5464 int main() {
5465  __builtin_labs(0);
5466 ; return 0; }
5467 EOF
5468 if { (eval echo configure:5469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5469   rm -rf conftest*
5470   glibcpp_cv_func___builtin_labs_use=yes
5471 else
5472   echo "configure: failed program was:" >&5
5473   cat conftest.$ac_ext >&5
5474   rm -rf conftest*
5475   glibcpp_cv_func___builtin_labs_use=no
5476 fi
5477 rm -f conftest*
5478       ac_ext=c
5479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5480 ac_cpp='$CPP $CPPFLAGS'
5481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5483 cross_compiling=$ac_cv_prog_cc_cross
5484
5485     
5486 fi
5487
5488   fi
5489   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5490   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5491     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5492 echo "configure:5493: checking for __builtin_labs linkage" >&5
5493     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5494       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5495   echo $ac_n "(cached) $ac_c" 1>&6
5496 else
5497   
5498         cat > conftest.$ac_ext <<EOF
5499 #line 5500 "configure"
5500 #include "confdefs.h"
5501 #include <math.h>
5502 int main() {
5503  __builtin_labs(0);
5504 ; return 0; }
5505 EOF
5506 if { (eval echo configure:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5507   rm -rf conftest*
5508   glibcpp_cv_func___builtin_labs_link=yes
5509 else
5510   echo "configure: failed program was:" >&5
5511   cat conftest.$ac_ext >&5
5512   rm -rf conftest*
5513   glibcpp_cv_func___builtin_labs_link=no
5514 fi
5515 rm -f conftest*
5516       
5517 fi
5518
5519     fi
5520     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5521     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5522       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5523       cat >> confdefs.h <<EOF
5524 #define ${ac_tr_func} 1
5525 EOF
5526
5527     fi
5528   fi
5529
5530
5531   
5532   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5533 echo "configure:5534: checking for __builtin_sqrtf declaration" >&5
5534   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5535     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5536   echo $ac_n "(cached) $ac_c" 1>&6
5537 else
5538   
5539       
5540       ac_ext=C
5541 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5542 ac_cpp='$CXXCPP $CPPFLAGS'
5543 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5544 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5545 cross_compiling=$ac_cv_prog_cxx_cross
5546
5547       cat > conftest.$ac_ext <<EOF
5548 #line 5549 "configure"
5549 #include "confdefs.h"
5550 #include <math.h>
5551 int main() {
5552  __builtin_sqrtf(0);
5553 ; return 0; }
5554 EOF
5555 if { (eval echo configure:5556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5556   rm -rf conftest*
5557   glibcpp_cv_func___builtin_sqrtf_use=yes
5558 else
5559   echo "configure: failed program was:" >&5
5560   cat conftest.$ac_ext >&5
5561   rm -rf conftest*
5562   glibcpp_cv_func___builtin_sqrtf_use=no
5563 fi
5564 rm -f conftest*
5565       ac_ext=c
5566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5567 ac_cpp='$CPP $CPPFLAGS'
5568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5570 cross_compiling=$ac_cv_prog_cc_cross
5571
5572     
5573 fi
5574
5575   fi
5576   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5577   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5578     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5579 echo "configure:5580: checking for __builtin_sqrtf linkage" >&5
5580     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5581       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5582   echo $ac_n "(cached) $ac_c" 1>&6
5583 else
5584   
5585         cat > conftest.$ac_ext <<EOF
5586 #line 5587 "configure"
5587 #include "confdefs.h"
5588 #include <math.h>
5589 int main() {
5590  __builtin_sqrtf(0);
5591 ; return 0; }
5592 EOF
5593 if { (eval echo configure:5594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5594   rm -rf conftest*
5595   glibcpp_cv_func___builtin_sqrtf_link=yes
5596 else
5597   echo "configure: failed program was:" >&5
5598   cat conftest.$ac_ext >&5
5599   rm -rf conftest*
5600   glibcpp_cv_func___builtin_sqrtf_link=no
5601 fi
5602 rm -f conftest*
5603       
5604 fi
5605
5606     fi
5607     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5608     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5609       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5610       cat >> confdefs.h <<EOF
5611 #define ${ac_tr_func} 1
5612 EOF
5613
5614     fi
5615   fi
5616
5617   
5618   echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5619 echo "configure:5620: checking for __builtin_fsqrt declaration" >&5
5620   if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5621     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5622   echo $ac_n "(cached) $ac_c" 1>&6
5623 else
5624   
5625       
5626       ac_ext=C
5627 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5628 ac_cpp='$CXXCPP $CPPFLAGS'
5629 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5630 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5631 cross_compiling=$ac_cv_prog_cxx_cross
5632
5633       cat > conftest.$ac_ext <<EOF
5634 #line 5635 "configure"
5635 #include "confdefs.h"
5636 #include <math.h>
5637 int main() {
5638  __builtin_fsqrt(0);
5639 ; return 0; }
5640 EOF
5641 if { (eval echo configure:5642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5642   rm -rf conftest*
5643   glibcpp_cv_func___builtin_fsqrt_use=yes
5644 else
5645   echo "configure: failed program was:" >&5
5646   cat conftest.$ac_ext >&5
5647   rm -rf conftest*
5648   glibcpp_cv_func___builtin_fsqrt_use=no
5649 fi
5650 rm -f conftest*
5651       ac_ext=c
5652 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5653 ac_cpp='$CPP $CPPFLAGS'
5654 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5655 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5656 cross_compiling=$ac_cv_prog_cc_cross
5657
5658     
5659 fi
5660
5661   fi
5662   echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5663   if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5664     echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5665 echo "configure:5666: checking for __builtin_fsqrt linkage" >&5
5666     if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5667       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5668   echo $ac_n "(cached) $ac_c" 1>&6
5669 else
5670   
5671         cat > conftest.$ac_ext <<EOF
5672 #line 5673 "configure"
5673 #include "confdefs.h"
5674 #include <math.h>
5675 int main() {
5676  __builtin_fsqrt(0);
5677 ; return 0; }
5678 EOF
5679 if { (eval echo configure:5680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5680   rm -rf conftest*
5681   glibcpp_cv_func___builtin_fsqrt_link=yes
5682 else
5683   echo "configure: failed program was:" >&5
5684   cat conftest.$ac_ext >&5
5685   rm -rf conftest*
5686   glibcpp_cv_func___builtin_fsqrt_link=no
5687 fi
5688 rm -f conftest*
5689       
5690 fi
5691
5692     fi
5693     echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5694     if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5695       ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5696       cat >> confdefs.h <<EOF
5697 #define ${ac_tr_func} 1
5698 EOF
5699
5700     fi
5701   fi
5702
5703   
5704   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5705 echo "configure:5706: checking for __builtin_sqrtl declaration" >&5
5706   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5707     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5708   echo $ac_n "(cached) $ac_c" 1>&6
5709 else
5710   
5711       
5712       ac_ext=C
5713 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5714 ac_cpp='$CXXCPP $CPPFLAGS'
5715 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5716 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5717 cross_compiling=$ac_cv_prog_cxx_cross
5718
5719       cat > conftest.$ac_ext <<EOF
5720 #line 5721 "configure"
5721 #include "confdefs.h"
5722 #include <math.h>
5723 int main() {
5724  __builtin_sqrtl(0);
5725 ; return 0; }
5726 EOF
5727 if { (eval echo configure:5728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5728   rm -rf conftest*
5729   glibcpp_cv_func___builtin_sqrtl_use=yes
5730 else
5731   echo "configure: failed program was:" >&5
5732   cat conftest.$ac_ext >&5
5733   rm -rf conftest*
5734   glibcpp_cv_func___builtin_sqrtl_use=no
5735 fi
5736 rm -f conftest*
5737       ac_ext=c
5738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5739 ac_cpp='$CPP $CPPFLAGS'
5740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5742 cross_compiling=$ac_cv_prog_cc_cross
5743
5744     
5745 fi
5746
5747   fi
5748   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5749   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5750     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5751 echo "configure:5752: checking for __builtin_sqrtl linkage" >&5
5752     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5753       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5754   echo $ac_n "(cached) $ac_c" 1>&6
5755 else
5756   
5757         cat > conftest.$ac_ext <<EOF
5758 #line 5759 "configure"
5759 #include "confdefs.h"
5760 #include <math.h>
5761 int main() {
5762  __builtin_sqrtl(0);
5763 ; return 0; }
5764 EOF
5765 if { (eval echo configure:5766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5766   rm -rf conftest*
5767   glibcpp_cv_func___builtin_sqrtl_link=yes
5768 else
5769   echo "configure: failed program was:" >&5
5770   cat conftest.$ac_ext >&5
5771   rm -rf conftest*
5772   glibcpp_cv_func___builtin_sqrtl_link=no
5773 fi
5774 rm -f conftest*
5775       
5776 fi
5777
5778     fi
5779     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5780     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5781       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5782       cat >> confdefs.h <<EOF
5783 #define ${ac_tr_func} 1
5784 EOF
5785
5786     fi
5787   fi
5788
5789
5790   
5791   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5792 echo "configure:5793: checking for __builtin_sinf declaration" >&5
5793   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5794     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5795   echo $ac_n "(cached) $ac_c" 1>&6
5796 else
5797   
5798       
5799       ac_ext=C
5800 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5801 ac_cpp='$CXXCPP $CPPFLAGS'
5802 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5803 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5804 cross_compiling=$ac_cv_prog_cxx_cross
5805
5806       cat > conftest.$ac_ext <<EOF
5807 #line 5808 "configure"
5808 #include "confdefs.h"
5809 #include <math.h>
5810 int main() {
5811  __builtin_sinf(0);
5812 ; return 0; }
5813 EOF
5814 if { (eval echo configure:5815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5815   rm -rf conftest*
5816   glibcpp_cv_func___builtin_sinf_use=yes
5817 else
5818   echo "configure: failed program was:" >&5
5819   cat conftest.$ac_ext >&5
5820   rm -rf conftest*
5821   glibcpp_cv_func___builtin_sinf_use=no
5822 fi
5823 rm -f conftest*
5824       ac_ext=c
5825 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5826 ac_cpp='$CPP $CPPFLAGS'
5827 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5828 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5829 cross_compiling=$ac_cv_prog_cc_cross
5830
5831     
5832 fi
5833
5834   fi
5835   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5836   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5837     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5838 echo "configure:5839: checking for __builtin_sinf linkage" >&5
5839     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5840       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5841   echo $ac_n "(cached) $ac_c" 1>&6
5842 else
5843   
5844         cat > conftest.$ac_ext <<EOF
5845 #line 5846 "configure"
5846 #include "confdefs.h"
5847 #include <math.h>
5848 int main() {
5849  __builtin_sinf(0);
5850 ; return 0; }
5851 EOF
5852 if { (eval echo configure:5853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5853   rm -rf conftest*
5854   glibcpp_cv_func___builtin_sinf_link=yes
5855 else
5856   echo "configure: failed program was:" >&5
5857   cat conftest.$ac_ext >&5
5858   rm -rf conftest*
5859   glibcpp_cv_func___builtin_sinf_link=no
5860 fi
5861 rm -f conftest*
5862       
5863 fi
5864
5865     fi
5866     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5867     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5868       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5869       cat >> confdefs.h <<EOF
5870 #define ${ac_tr_func} 1
5871 EOF
5872
5873     fi
5874   fi
5875
5876   
5877   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5878 echo "configure:5879: checking for __builtin_sin declaration" >&5
5879   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5880     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5881   echo $ac_n "(cached) $ac_c" 1>&6
5882 else
5883   
5884       
5885       ac_ext=C
5886 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5887 ac_cpp='$CXXCPP $CPPFLAGS'
5888 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5889 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5890 cross_compiling=$ac_cv_prog_cxx_cross
5891
5892       cat > conftest.$ac_ext <<EOF
5893 #line 5894 "configure"
5894 #include "confdefs.h"
5895 #include <math.h>
5896 int main() {
5897  __builtin_sin(0);
5898 ; return 0; }
5899 EOF
5900 if { (eval echo configure:5901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5901   rm -rf conftest*
5902   glibcpp_cv_func___builtin_sin_use=yes
5903 else
5904   echo "configure: failed program was:" >&5
5905   cat conftest.$ac_ext >&5
5906   rm -rf conftest*
5907   glibcpp_cv_func___builtin_sin_use=no
5908 fi
5909 rm -f conftest*
5910       ac_ext=c
5911 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5912 ac_cpp='$CPP $CPPFLAGS'
5913 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5914 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5915 cross_compiling=$ac_cv_prog_cc_cross
5916
5917     
5918 fi
5919
5920   fi
5921   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
5922   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
5923     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
5924 echo "configure:5925: checking for __builtin_sin linkage" >&5
5925     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
5926       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
5927   echo $ac_n "(cached) $ac_c" 1>&6
5928 else
5929   
5930         cat > conftest.$ac_ext <<EOF
5931 #line 5932 "configure"
5932 #include "confdefs.h"
5933 #include <math.h>
5934 int main() {
5935  __builtin_sin(0);
5936 ; return 0; }
5937 EOF
5938 if { (eval echo configure:5939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5939   rm -rf conftest*
5940   glibcpp_cv_func___builtin_sin_link=yes
5941 else
5942   echo "configure: failed program was:" >&5
5943   cat conftest.$ac_ext >&5
5944   rm -rf conftest*
5945   glibcpp_cv_func___builtin_sin_link=no
5946 fi
5947 rm -f conftest*
5948       
5949 fi
5950
5951     fi
5952     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
5953     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
5954       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5955       cat >> confdefs.h <<EOF
5956 #define ${ac_tr_func} 1
5957 EOF
5958
5959     fi
5960   fi
5961
5962   
5963   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
5964 echo "configure:5965: checking for __builtin_sinl declaration" >&5
5965   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
5966     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
5967   echo $ac_n "(cached) $ac_c" 1>&6
5968 else
5969   
5970       
5971       ac_ext=C
5972 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5973 ac_cpp='$CXXCPP $CPPFLAGS'
5974 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5975 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5976 cross_compiling=$ac_cv_prog_cxx_cross
5977
5978       cat > conftest.$ac_ext <<EOF
5979 #line 5980 "configure"
5980 #include "confdefs.h"
5981 #include <math.h>
5982 int main() {
5983  __builtin_sinl(0);
5984 ; return 0; }
5985 EOF
5986 if { (eval echo configure:5987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5987   rm -rf conftest*
5988   glibcpp_cv_func___builtin_sinl_use=yes
5989 else
5990   echo "configure: failed program was:" >&5
5991   cat conftest.$ac_ext >&5
5992   rm -rf conftest*
5993   glibcpp_cv_func___builtin_sinl_use=no
5994 fi
5995 rm -f conftest*
5996       ac_ext=c
5997 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5998 ac_cpp='$CPP $CPPFLAGS'
5999 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6000 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6001 cross_compiling=$ac_cv_prog_cc_cross
6002
6003     
6004 fi
6005
6006   fi
6007   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
6008   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
6009     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
6010 echo "configure:6011: checking for __builtin_sinl linkage" >&5
6011     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
6012       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
6013   echo $ac_n "(cached) $ac_c" 1>&6
6014 else
6015   
6016         cat > conftest.$ac_ext <<EOF
6017 #line 6018 "configure"
6018 #include "confdefs.h"
6019 #include <math.h>
6020 int main() {
6021  __builtin_sinl(0);
6022 ; return 0; }
6023 EOF
6024 if { (eval echo configure:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6025   rm -rf conftest*
6026   glibcpp_cv_func___builtin_sinl_link=yes
6027 else
6028   echo "configure: failed program was:" >&5
6029   cat conftest.$ac_ext >&5
6030   rm -rf conftest*
6031   glibcpp_cv_func___builtin_sinl_link=no
6032 fi
6033 rm -f conftest*
6034       
6035 fi
6036
6037     fi
6038     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
6039     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
6040       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6041       cat >> confdefs.h <<EOF
6042 #define ${ac_tr_func} 1
6043 EOF
6044
6045     fi
6046   fi
6047
6048
6049   
6050   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
6051 echo "configure:6052: checking for __builtin_cosf declaration" >&5
6052   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
6053     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
6054   echo $ac_n "(cached) $ac_c" 1>&6
6055 else
6056   
6057       
6058       ac_ext=C
6059 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6060 ac_cpp='$CXXCPP $CPPFLAGS'
6061 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6062 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6063 cross_compiling=$ac_cv_prog_cxx_cross
6064
6065       cat > conftest.$ac_ext <<EOF
6066 #line 6067 "configure"
6067 #include "confdefs.h"
6068 #include <math.h>
6069 int main() {
6070  __builtin_cosf(0);
6071 ; return 0; }
6072 EOF
6073 if { (eval echo configure:6074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6074   rm -rf conftest*
6075   glibcpp_cv_func___builtin_cosf_use=yes
6076 else
6077   echo "configure: failed program was:" >&5
6078   cat conftest.$ac_ext >&5
6079   rm -rf conftest*
6080   glibcpp_cv_func___builtin_cosf_use=no
6081 fi
6082 rm -f conftest*
6083       ac_ext=c
6084 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6085 ac_cpp='$CPP $CPPFLAGS'
6086 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6087 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6088 cross_compiling=$ac_cv_prog_cc_cross
6089
6090     
6091 fi
6092
6093   fi
6094   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6095   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6096     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6097 echo "configure:6098: checking for __builtin_cosf linkage" >&5
6098     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6099       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6100   echo $ac_n "(cached) $ac_c" 1>&6
6101 else
6102   
6103         cat > conftest.$ac_ext <<EOF
6104 #line 6105 "configure"
6105 #include "confdefs.h"
6106 #include <math.h>
6107 int main() {
6108  __builtin_cosf(0);
6109 ; return 0; }
6110 EOF
6111 if { (eval echo configure:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6112   rm -rf conftest*
6113   glibcpp_cv_func___builtin_cosf_link=yes
6114 else
6115   echo "configure: failed program was:" >&5
6116   cat conftest.$ac_ext >&5
6117   rm -rf conftest*
6118   glibcpp_cv_func___builtin_cosf_link=no
6119 fi
6120 rm -f conftest*
6121       
6122 fi
6123
6124     fi
6125     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6126     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6127       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6128       cat >> confdefs.h <<EOF
6129 #define ${ac_tr_func} 1
6130 EOF
6131
6132     fi
6133   fi
6134
6135   
6136   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6137 echo "configure:6138: checking for __builtin_cos declaration" >&5
6138   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6139     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6140   echo $ac_n "(cached) $ac_c" 1>&6
6141 else
6142   
6143       
6144       ac_ext=C
6145 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6146 ac_cpp='$CXXCPP $CPPFLAGS'
6147 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6148 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6149 cross_compiling=$ac_cv_prog_cxx_cross
6150
6151       cat > conftest.$ac_ext <<EOF
6152 #line 6153 "configure"
6153 #include "confdefs.h"
6154 #include <math.h>
6155 int main() {
6156  __builtin_cos(0);
6157 ; return 0; }
6158 EOF
6159 if { (eval echo configure:6160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6160   rm -rf conftest*
6161   glibcpp_cv_func___builtin_cos_use=yes
6162 else
6163   echo "configure: failed program was:" >&5
6164   cat conftest.$ac_ext >&5
6165   rm -rf conftest*
6166   glibcpp_cv_func___builtin_cos_use=no
6167 fi
6168 rm -f conftest*
6169       ac_ext=c
6170 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6171 ac_cpp='$CPP $CPPFLAGS'
6172 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6173 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6174 cross_compiling=$ac_cv_prog_cc_cross
6175
6176     
6177 fi
6178
6179   fi
6180   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6181   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6182     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6183 echo "configure:6184: checking for __builtin_cos linkage" >&5
6184     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6185       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6186   echo $ac_n "(cached) $ac_c" 1>&6
6187 else
6188   
6189         cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6192 #include <math.h>
6193 int main() {
6194  __builtin_cos(0);
6195 ; return 0; }
6196 EOF
6197 if { (eval echo configure:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6198   rm -rf conftest*
6199   glibcpp_cv_func___builtin_cos_link=yes
6200 else
6201   echo "configure: failed program was:" >&5
6202   cat conftest.$ac_ext >&5
6203   rm -rf conftest*
6204   glibcpp_cv_func___builtin_cos_link=no
6205 fi
6206 rm -f conftest*
6207       
6208 fi
6209
6210     fi
6211     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6212     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6213       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6214       cat >> confdefs.h <<EOF
6215 #define ${ac_tr_func} 1
6216 EOF
6217
6218     fi
6219   fi
6220
6221   
6222   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6223 echo "configure:6224: checking for __builtin_cosl declaration" >&5
6224   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6225     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6226   echo $ac_n "(cached) $ac_c" 1>&6
6227 else
6228   
6229       
6230       ac_ext=C
6231 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6232 ac_cpp='$CXXCPP $CPPFLAGS'
6233 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6234 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6235 cross_compiling=$ac_cv_prog_cxx_cross
6236
6237       cat > conftest.$ac_ext <<EOF
6238 #line 6239 "configure"
6239 #include "confdefs.h"
6240 #include <math.h>
6241 int main() {
6242  __builtin_cosl(0);
6243 ; return 0; }
6244 EOF
6245 if { (eval echo configure:6246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6246   rm -rf conftest*
6247   glibcpp_cv_func___builtin_cosl_use=yes
6248 else
6249   echo "configure: failed program was:" >&5
6250   cat conftest.$ac_ext >&5
6251   rm -rf conftest*
6252   glibcpp_cv_func___builtin_cosl_use=no
6253 fi
6254 rm -f conftest*
6255       ac_ext=c
6256 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6257 ac_cpp='$CPP $CPPFLAGS'
6258 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6259 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6260 cross_compiling=$ac_cv_prog_cc_cross
6261
6262     
6263 fi
6264
6265   fi
6266   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6267   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6268     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6269 echo "configure:6270: checking for __builtin_cosl linkage" >&5
6270     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6271       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6272   echo $ac_n "(cached) $ac_c" 1>&6
6273 else
6274   
6275         cat > conftest.$ac_ext <<EOF
6276 #line 6277 "configure"
6277 #include "confdefs.h"
6278 #include <math.h>
6279 int main() {
6280  __builtin_cosl(0);
6281 ; return 0; }
6282 EOF
6283 if { (eval echo configure:6284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6284   rm -rf conftest*
6285   glibcpp_cv_func___builtin_cosl_link=yes
6286 else
6287   echo "configure: failed program was:" >&5
6288   cat conftest.$ac_ext >&5
6289   rm -rf conftest*
6290   glibcpp_cv_func___builtin_cosl_link=no
6291 fi
6292 rm -f conftest*
6293       
6294 fi
6295
6296     fi
6297     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6298     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6299       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6300       cat >> confdefs.h <<EOF
6301 #define ${ac_tr_func} 1
6302 EOF
6303
6304     fi
6305   fi
6306
6307
6308               dummyvar=no
6309   if test x$dummyvar = x"yes"; then
6310     cat >> confdefs.h <<\EOF
6311 #define HAVE___BUILTIN_ABS 1
6312 EOF
6313
6314     cat >> confdefs.h <<\EOF
6315 #define HAVE___BUILTIN_LABS 1
6316 EOF
6317
6318     cat >> confdefs.h <<\EOF
6319 #define HAVE___BUILTIN_COS 1
6320 EOF
6321
6322     cat >> confdefs.h <<\EOF
6323 #define HAVE___BUILTIN_COSF 1
6324 EOF
6325
6326     cat >> confdefs.h <<\EOF
6327 #define HAVE___BUILTIN_COSL 1
6328 EOF
6329
6330     cat >> confdefs.h <<\EOF
6331 #define HAVE___BUILTIN_FABS 1
6332 EOF
6333
6334     cat >> confdefs.h <<\EOF
6335 #define HAVE___BUILTIN_FABSF 1
6336 EOF
6337
6338     cat >> confdefs.h <<\EOF
6339 #define HAVE___BUILTIN_FABSL 1
6340 EOF
6341
6342     cat >> confdefs.h <<\EOF
6343 #define HAVE___BUILTIN_SIN 1
6344 EOF
6345
6346     cat >> confdefs.h <<\EOF
6347 #define HAVE___BUILTIN_SINF 1
6348 EOF
6349
6350     cat >> confdefs.h <<\EOF
6351 #define HAVE___BUILTIN_SINL 1
6352 EOF
6353
6354     cat >> confdefs.h <<\EOF
6355 #define HAVE___BUILTIN_FSQRT 1
6356 EOF
6357
6358     cat >> confdefs.h <<\EOF
6359 #define HAVE___BUILTIN_SQRTF 1
6360 EOF
6361
6362     cat >> confdefs.h <<\EOF
6363 #define HAVE___BUILTIN_SQRTL 1
6364 EOF
6365
6366   fi
6367
6368   
6369   ac_test_CXXFLAGS="${CXXFLAGS+set}"
6370   ac_save_CXXFLAGS="$CXXFLAGS"
6371   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6372
6373     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6374 echo "configure:6375: checking for sin in -lm" >&5
6375 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6377   echo $ac_n "(cached) $ac_c" 1>&6
6378 else
6379   ac_save_LIBS="$LIBS"
6380 LIBS="-lm  $LIBS"
6381 cat > conftest.$ac_ext <<EOF
6382 #line 6383 "configure"
6383 #include "confdefs.h"
6384 /* Override any gcc2 internal prototype to avoid an error.  */
6385 /* We use char because int might match the return type of a gcc2
6386     builtin and then its argument prototype would still apply.  */
6387 char sin();
6388
6389 int main() {
6390 sin()
6391 ; return 0; }
6392 EOF
6393 if { (eval echo configure:6394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6394   rm -rf conftest*
6395   eval "ac_cv_lib_$ac_lib_var=yes"
6396 else
6397   echo "configure: failed program was:" >&5
6398   cat conftest.$ac_ext >&5
6399   rm -rf conftest*
6400   eval "ac_cv_lib_$ac_lib_var=no"
6401 fi
6402 rm -f conftest*
6403 LIBS="$ac_save_LIBS"
6404
6405 fi
6406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6407   echo "$ac_t""yes" 1>&6
6408   libm="-lm"
6409 else
6410   echo "$ac_t""no" 1>&6
6411 fi
6412
6413   ac_save_LIBS="$LIBS"
6414   LIBS="$LIBS $libm"
6415
6416     
6417   
6418   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6419 echo "configure:6420: checking for isinf declaration" >&5
6420   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6421     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6422   echo $ac_n "(cached) $ac_c" 1>&6
6423 else
6424   
6425       
6426       ac_ext=C
6427 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6428 ac_cpp='$CXXCPP $CPPFLAGS'
6429 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6430 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6431 cross_compiling=$ac_cv_prog_cxx_cross
6432
6433       cat > conftest.$ac_ext <<EOF
6434 #line 6435 "configure"
6435 #include "confdefs.h"
6436 #include <math.h>
6437                       #ifdef HAVE_IEEEFP_H
6438                       #include <ieeefp.h>
6439                       #endif
6440                      
6441 int main() {
6442  isinf(0);
6443 ; return 0; }
6444 EOF
6445 if { (eval echo configure:6446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6446   rm -rf conftest*
6447   glibcpp_cv_func_isinf_use=yes
6448 else
6449   echo "configure: failed program was:" >&5
6450   cat conftest.$ac_ext >&5
6451   rm -rf conftest*
6452   glibcpp_cv_func_isinf_use=no
6453 fi
6454 rm -f conftest*
6455       ac_ext=c
6456 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6457 ac_cpp='$CPP $CPPFLAGS'
6458 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6459 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6460 cross_compiling=$ac_cv_prog_cc_cross
6461
6462     
6463 fi
6464
6465   fi
6466   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6467
6468   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6469     for ac_func in isinf
6470 do
6471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6472 echo "configure:6473: checking for $ac_func" >&5
6473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6474   echo $ac_n "(cached) $ac_c" 1>&6
6475 else
6476   cat > conftest.$ac_ext <<EOF
6477 #line 6478 "configure"
6478 #include "confdefs.h"
6479 /* System header to define __stub macros and hopefully few prototypes,
6480     which can conflict with char $ac_func(); below.  */
6481 #include <assert.h>
6482 /* Override any gcc2 internal prototype to avoid an error.  */
6483 /* We use char because int might match the return type of a gcc2
6484     builtin and then its argument prototype would still apply.  */
6485 char $ac_func();
6486
6487 int main() {
6488
6489 /* The GNU C library defines this for functions which it implements
6490     to always fail with ENOSYS.  Some functions are actually named
6491     something starting with __ and the normal name is an alias.  */
6492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6493 choke me
6494 #else
6495 $ac_func();
6496 #endif
6497
6498 ; return 0; }
6499 EOF
6500 if { (eval echo configure:6501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6501   rm -rf conftest*
6502   eval "ac_cv_func_$ac_func=yes"
6503 else
6504   echo "configure: failed program was:" >&5
6505   cat conftest.$ac_ext >&5
6506   rm -rf conftest*
6507   eval "ac_cv_func_$ac_func=no"
6508 fi
6509 rm -f conftest*
6510 fi
6511
6512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6513   echo "$ac_t""yes" 1>&6
6514     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6515   cat >> confdefs.h <<EOF
6516 #define $ac_tr_func 1
6517 EOF
6518  
6519 else
6520   echo "$ac_t""no" 1>&6
6521 fi
6522 done
6523     
6524   else
6525     
6526   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6527 echo "configure:6528: checking for _isinf declaration" >&5
6528   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6529     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6530   echo $ac_n "(cached) $ac_c" 1>&6
6531 else
6532   
6533       
6534       ac_ext=C
6535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6536 ac_cpp='$CXXCPP $CPPFLAGS'
6537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6539 cross_compiling=$ac_cv_prog_cxx_cross
6540
6541       cat > conftest.$ac_ext <<EOF
6542 #line 6543 "configure"
6543 #include "confdefs.h"
6544 #include <math.h>
6545                       #ifdef HAVE_IEEEFP_H
6546                       #include <ieeefp.h>
6547                       #endif
6548                      
6549 int main() {
6550  _isinf(0);
6551 ; return 0; }
6552 EOF
6553 if { (eval echo configure:6554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6554   rm -rf conftest*
6555   glibcpp_cv_func__isinf_use=yes
6556 else
6557   echo "configure: failed program was:" >&5
6558   cat conftest.$ac_ext >&5
6559   rm -rf conftest*
6560   glibcpp_cv_func__isinf_use=no
6561 fi
6562 rm -f conftest*
6563       ac_ext=c
6564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6565 ac_cpp='$CPP $CPPFLAGS'
6566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6568 cross_compiling=$ac_cv_prog_cc_cross
6569
6570     
6571 fi
6572
6573   fi
6574   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6575
6576     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6577       for ac_func in _isinf
6578 do
6579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6580 echo "configure:6581: checking for $ac_func" >&5
6581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6582   echo $ac_n "(cached) $ac_c" 1>&6
6583 else
6584   cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6587 /* System header to define __stub macros and hopefully few prototypes,
6588     which can conflict with char $ac_func(); below.  */
6589 #include <assert.h>
6590 /* Override any gcc2 internal prototype to avoid an error.  */
6591 /* We use char because int might match the return type of a gcc2
6592     builtin and then its argument prototype would still apply.  */
6593 char $ac_func();
6594
6595 int main() {
6596
6597 /* The GNU C library defines this for functions which it implements
6598     to always fail with ENOSYS.  Some functions are actually named
6599     something starting with __ and the normal name is an alias.  */
6600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6601 choke me
6602 #else
6603 $ac_func();
6604 #endif
6605
6606 ; return 0; }
6607 EOF
6608 if { (eval echo configure:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6609   rm -rf conftest*
6610   eval "ac_cv_func_$ac_func=yes"
6611 else
6612   echo "configure: failed program was:" >&5
6613   cat conftest.$ac_ext >&5
6614   rm -rf conftest*
6615   eval "ac_cv_func_$ac_func=no"
6616 fi
6617 rm -f conftest*
6618 fi
6619
6620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6621   echo "$ac_t""yes" 1>&6
6622     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6623   cat >> confdefs.h <<EOF
6624 #define $ac_tr_func 1
6625 EOF
6626  
6627 else
6628   echo "$ac_t""no" 1>&6
6629 fi
6630 done
6631     
6632     fi
6633   fi
6634
6635   
6636   
6637   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6638 echo "configure:6639: checking for isnan declaration" >&5
6639   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6640     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6641   echo $ac_n "(cached) $ac_c" 1>&6
6642 else
6643   
6644       
6645       ac_ext=C
6646 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6647 ac_cpp='$CXXCPP $CPPFLAGS'
6648 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6649 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6650 cross_compiling=$ac_cv_prog_cxx_cross
6651
6652       cat > conftest.$ac_ext <<EOF
6653 #line 6654 "configure"
6654 #include "confdefs.h"
6655 #include <math.h>
6656                       #ifdef HAVE_IEEEFP_H
6657                       #include <ieeefp.h>
6658                       #endif
6659                      
6660 int main() {
6661  isnan(0);
6662 ; return 0; }
6663 EOF
6664 if { (eval echo configure:6665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6665   rm -rf conftest*
6666   glibcpp_cv_func_isnan_use=yes
6667 else
6668   echo "configure: failed program was:" >&5
6669   cat conftest.$ac_ext >&5
6670   rm -rf conftest*
6671   glibcpp_cv_func_isnan_use=no
6672 fi
6673 rm -f conftest*
6674       ac_ext=c
6675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6676 ac_cpp='$CPP $CPPFLAGS'
6677 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6678 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6679 cross_compiling=$ac_cv_prog_cc_cross
6680
6681     
6682 fi
6683
6684   fi
6685   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6686
6687   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6688     for ac_func in isnan
6689 do
6690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6691 echo "configure:6692: checking for $ac_func" >&5
6692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6693   echo $ac_n "(cached) $ac_c" 1>&6
6694 else
6695   cat > conftest.$ac_ext <<EOF
6696 #line 6697 "configure"
6697 #include "confdefs.h"
6698 /* System header to define __stub macros and hopefully few prototypes,
6699     which can conflict with char $ac_func(); below.  */
6700 #include <assert.h>
6701 /* Override any gcc2 internal prototype to avoid an error.  */
6702 /* We use char because int might match the return type of a gcc2
6703     builtin and then its argument prototype would still apply.  */
6704 char $ac_func();
6705
6706 int main() {
6707
6708 /* The GNU C library defines this for functions which it implements
6709     to always fail with ENOSYS.  Some functions are actually named
6710     something starting with __ and the normal name is an alias.  */
6711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6712 choke me
6713 #else
6714 $ac_func();
6715 #endif
6716
6717 ; return 0; }
6718 EOF
6719 if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6720   rm -rf conftest*
6721   eval "ac_cv_func_$ac_func=yes"
6722 else
6723   echo "configure: failed program was:" >&5
6724   cat conftest.$ac_ext >&5
6725   rm -rf conftest*
6726   eval "ac_cv_func_$ac_func=no"
6727 fi
6728 rm -f conftest*
6729 fi
6730
6731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6732   echo "$ac_t""yes" 1>&6
6733     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6734   cat >> confdefs.h <<EOF
6735 #define $ac_tr_func 1
6736 EOF
6737  
6738 else
6739   echo "$ac_t""no" 1>&6
6740 fi
6741 done
6742     
6743   else
6744     
6745   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6746 echo "configure:6747: checking for _isnan declaration" >&5
6747   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6748     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6749   echo $ac_n "(cached) $ac_c" 1>&6
6750 else
6751   
6752       
6753       ac_ext=C
6754 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6755 ac_cpp='$CXXCPP $CPPFLAGS'
6756 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6757 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6758 cross_compiling=$ac_cv_prog_cxx_cross
6759
6760       cat > conftest.$ac_ext <<EOF
6761 #line 6762 "configure"
6762 #include "confdefs.h"
6763 #include <math.h>
6764                       #ifdef HAVE_IEEEFP_H
6765                       #include <ieeefp.h>
6766                       #endif
6767                      
6768 int main() {
6769  _isnan(0);
6770 ; return 0; }
6771 EOF
6772 if { (eval echo configure:6773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6773   rm -rf conftest*
6774   glibcpp_cv_func__isnan_use=yes
6775 else
6776   echo "configure: failed program was:" >&5
6777   cat conftest.$ac_ext >&5
6778   rm -rf conftest*
6779   glibcpp_cv_func__isnan_use=no
6780 fi
6781 rm -f conftest*
6782       ac_ext=c
6783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6784 ac_cpp='$CPP $CPPFLAGS'
6785 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6786 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6787 cross_compiling=$ac_cv_prog_cc_cross
6788
6789     
6790 fi
6791
6792   fi
6793   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6794
6795     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6796       for ac_func in _isnan
6797 do
6798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6799 echo "configure:6800: checking for $ac_func" >&5
6800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6801   echo $ac_n "(cached) $ac_c" 1>&6
6802 else
6803   cat > conftest.$ac_ext <<EOF
6804 #line 6805 "configure"
6805 #include "confdefs.h"
6806 /* System header to define __stub macros and hopefully few prototypes,
6807     which can conflict with char $ac_func(); below.  */
6808 #include <assert.h>
6809 /* Override any gcc2 internal prototype to avoid an error.  */
6810 /* We use char because int might match the return type of a gcc2
6811     builtin and then its argument prototype would still apply.  */
6812 char $ac_func();
6813
6814 int main() {
6815
6816 /* The GNU C library defines this for functions which it implements
6817     to always fail with ENOSYS.  Some functions are actually named
6818     something starting with __ and the normal name is an alias.  */
6819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6820 choke me
6821 #else
6822 $ac_func();
6823 #endif
6824
6825 ; return 0; }
6826 EOF
6827 if { (eval echo configure:6828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6828   rm -rf conftest*
6829   eval "ac_cv_func_$ac_func=yes"
6830 else
6831   echo "configure: failed program was:" >&5
6832   cat conftest.$ac_ext >&5
6833   rm -rf conftest*
6834   eval "ac_cv_func_$ac_func=no"
6835 fi
6836 rm -f conftest*
6837 fi
6838
6839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6840   echo "$ac_t""yes" 1>&6
6841     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6842   cat >> confdefs.h <<EOF
6843 #define $ac_tr_func 1
6844 EOF
6845  
6846 else
6847   echo "$ac_t""no" 1>&6
6848 fi
6849 done
6850     
6851     fi
6852   fi
6853
6854   
6855   
6856   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6857 echo "configure:6858: checking for finite declaration" >&5
6858   if test x${glibcpp_cv_func_finite_use+set} != xset; then
6859     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6860   echo $ac_n "(cached) $ac_c" 1>&6
6861 else
6862   
6863       
6864       ac_ext=C
6865 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6866 ac_cpp='$CXXCPP $CPPFLAGS'
6867 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6868 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6869 cross_compiling=$ac_cv_prog_cxx_cross
6870
6871       cat > conftest.$ac_ext <<EOF
6872 #line 6873 "configure"
6873 #include "confdefs.h"
6874 #include <math.h>
6875                       #ifdef HAVE_IEEEFP_H
6876                       #include <ieeefp.h>
6877                       #endif
6878                      
6879 int main() {
6880  finite(0);
6881 ; return 0; }
6882 EOF
6883 if { (eval echo configure:6884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6884   rm -rf conftest*
6885   glibcpp_cv_func_finite_use=yes
6886 else
6887   echo "configure: failed program was:" >&5
6888   cat conftest.$ac_ext >&5
6889   rm -rf conftest*
6890   glibcpp_cv_func_finite_use=no
6891 fi
6892 rm -f conftest*
6893       ac_ext=c
6894 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6895 ac_cpp='$CPP $CPPFLAGS'
6896 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6897 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6898 cross_compiling=$ac_cv_prog_cc_cross
6899
6900     
6901 fi
6902
6903   fi
6904   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
6905
6906   if test x$glibcpp_cv_func_finite_use = x"yes"; then
6907     for ac_func in finite
6908 do
6909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6910 echo "configure:6911: checking for $ac_func" >&5
6911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6912   echo $ac_n "(cached) $ac_c" 1>&6
6913 else
6914   cat > conftest.$ac_ext <<EOF
6915 #line 6916 "configure"
6916 #include "confdefs.h"
6917 /* System header to define __stub macros and hopefully few prototypes,
6918     which can conflict with char $ac_func(); below.  */
6919 #include <assert.h>
6920 /* Override any gcc2 internal prototype to avoid an error.  */
6921 /* We use char because int might match the return type of a gcc2
6922     builtin and then its argument prototype would still apply.  */
6923 char $ac_func();
6924
6925 int main() {
6926
6927 /* The GNU C library defines this for functions which it implements
6928     to always fail with ENOSYS.  Some functions are actually named
6929     something starting with __ and the normal name is an alias.  */
6930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6931 choke me
6932 #else
6933 $ac_func();
6934 #endif
6935
6936 ; return 0; }
6937 EOF
6938 if { (eval echo configure:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6939   rm -rf conftest*
6940   eval "ac_cv_func_$ac_func=yes"
6941 else
6942   echo "configure: failed program was:" >&5
6943   cat conftest.$ac_ext >&5
6944   rm -rf conftest*
6945   eval "ac_cv_func_$ac_func=no"
6946 fi
6947 rm -f conftest*
6948 fi
6949
6950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6951   echo "$ac_t""yes" 1>&6
6952     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6953   cat >> confdefs.h <<EOF
6954 #define $ac_tr_func 1
6955 EOF
6956  
6957 else
6958   echo "$ac_t""no" 1>&6
6959 fi
6960 done
6961     
6962   else
6963     
6964   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
6965 echo "configure:6966: checking for _finite declaration" >&5
6966   if test x${glibcpp_cv_func__finite_use+set} != xset; then
6967     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
6968   echo $ac_n "(cached) $ac_c" 1>&6
6969 else
6970   
6971       
6972       ac_ext=C
6973 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6974 ac_cpp='$CXXCPP $CPPFLAGS'
6975 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6976 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6977 cross_compiling=$ac_cv_prog_cxx_cross
6978
6979       cat > conftest.$ac_ext <<EOF
6980 #line 6981 "configure"
6981 #include "confdefs.h"
6982 #include <math.h>
6983                       #ifdef HAVE_IEEEFP_H
6984                       #include <ieeefp.h>
6985                       #endif
6986                      
6987 int main() {
6988  _finite(0);
6989 ; return 0; }
6990 EOF
6991 if { (eval echo configure:6992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6992   rm -rf conftest*
6993   glibcpp_cv_func__finite_use=yes
6994 else
6995   echo "configure: failed program was:" >&5
6996   cat conftest.$ac_ext >&5
6997   rm -rf conftest*
6998   glibcpp_cv_func__finite_use=no
6999 fi
7000 rm -f conftest*
7001       ac_ext=c
7002 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7003 ac_cpp='$CPP $CPPFLAGS'
7004 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7005 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7006 cross_compiling=$ac_cv_prog_cc_cross
7007
7008     
7009 fi
7010
7011   fi
7012   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
7013
7014     if test x$glibcpp_cv_func__finite_use = x"yes"; then
7015       for ac_func in _finite
7016 do
7017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7018 echo "configure:7019: checking for $ac_func" >&5
7019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7020   echo $ac_n "(cached) $ac_c" 1>&6
7021 else
7022   cat > conftest.$ac_ext <<EOF
7023 #line 7024 "configure"
7024 #include "confdefs.h"
7025 /* System header to define __stub macros and hopefully few prototypes,
7026     which can conflict with char $ac_func(); below.  */
7027 #include <assert.h>
7028 /* Override any gcc2 internal prototype to avoid an error.  */
7029 /* We use char because int might match the return type of a gcc2
7030     builtin and then its argument prototype would still apply.  */
7031 char $ac_func();
7032
7033 int main() {
7034
7035 /* The GNU C library defines this for functions which it implements
7036     to always fail with ENOSYS.  Some functions are actually named
7037     something starting with __ and the normal name is an alias.  */
7038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7039 choke me
7040 #else
7041 $ac_func();
7042 #endif
7043
7044 ; return 0; }
7045 EOF
7046 if { (eval echo configure:7047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7047   rm -rf conftest*
7048   eval "ac_cv_func_$ac_func=yes"
7049 else
7050   echo "configure: failed program was:" >&5
7051   cat conftest.$ac_ext >&5
7052   rm -rf conftest*
7053   eval "ac_cv_func_$ac_func=no"
7054 fi
7055 rm -f conftest*
7056 fi
7057
7058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7059   echo "$ac_t""yes" 1>&6
7060     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7061   cat >> confdefs.h <<EOF
7062 #define $ac_tr_func 1
7063 EOF
7064  
7065 else
7066   echo "$ac_t""no" 1>&6
7067 fi
7068 done
7069     
7070     fi
7071   fi
7072
7073   
7074   
7075   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7076 echo "configure:7077: checking for copysign declaration" >&5
7077   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7078     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7079   echo $ac_n "(cached) $ac_c" 1>&6
7080 else
7081   
7082       
7083       ac_ext=C
7084 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7085 ac_cpp='$CXXCPP $CPPFLAGS'
7086 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7087 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7088 cross_compiling=$ac_cv_prog_cxx_cross
7089
7090       cat > conftest.$ac_ext <<EOF
7091 #line 7092 "configure"
7092 #include "confdefs.h"
7093 #include <math.h>
7094 int main() {
7095  copysign(0, 0);
7096 ; return 0; }
7097 EOF
7098 if { (eval echo configure:7099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7099   rm -rf conftest*
7100   glibcpp_cv_func_copysign_use=yes
7101 else
7102   echo "configure: failed program was:" >&5
7103   cat conftest.$ac_ext >&5
7104   rm -rf conftest*
7105   glibcpp_cv_func_copysign_use=no
7106 fi
7107 rm -f conftest*
7108       ac_ext=c
7109 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7110 ac_cpp='$CPP $CPPFLAGS'
7111 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7112 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7113 cross_compiling=$ac_cv_prog_cc_cross
7114
7115     
7116 fi
7117
7118   fi
7119   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7120
7121   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7122     for ac_func in copysign
7123 do
7124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7125 echo "configure:7126: checking for $ac_func" >&5
7126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7127   echo $ac_n "(cached) $ac_c" 1>&6
7128 else
7129   cat > conftest.$ac_ext <<EOF
7130 #line 7131 "configure"
7131 #include "confdefs.h"
7132 /* System header to define __stub macros and hopefully few prototypes,
7133     which can conflict with char $ac_func(); below.  */
7134 #include <assert.h>
7135 /* Override any gcc2 internal prototype to avoid an error.  */
7136 /* We use char because int might match the return type of a gcc2
7137     builtin and then its argument prototype would still apply.  */
7138 char $ac_func();
7139
7140 int main() {
7141
7142 /* The GNU C library defines this for functions which it implements
7143     to always fail with ENOSYS.  Some functions are actually named
7144     something starting with __ and the normal name is an alias.  */
7145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7146 choke me
7147 #else
7148 $ac_func();
7149 #endif
7150
7151 ; return 0; }
7152 EOF
7153 if { (eval echo configure:7154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7154   rm -rf conftest*
7155   eval "ac_cv_func_$ac_func=yes"
7156 else
7157   echo "configure: failed program was:" >&5
7158   cat conftest.$ac_ext >&5
7159   rm -rf conftest*
7160   eval "ac_cv_func_$ac_func=no"
7161 fi
7162 rm -f conftest*
7163 fi
7164
7165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7166   echo "$ac_t""yes" 1>&6
7167     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7168   cat >> confdefs.h <<EOF
7169 #define $ac_tr_func 1
7170 EOF
7171  
7172 else
7173   echo "$ac_t""no" 1>&6
7174 fi
7175 done
7176     
7177   else
7178     
7179   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7180 echo "configure:7181: checking for _copysign declaration" >&5
7181   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7182     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7183   echo $ac_n "(cached) $ac_c" 1>&6
7184 else
7185   
7186       
7187       ac_ext=C
7188 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7189 ac_cpp='$CXXCPP $CPPFLAGS'
7190 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7191 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7192 cross_compiling=$ac_cv_prog_cxx_cross
7193
7194       cat > conftest.$ac_ext <<EOF
7195 #line 7196 "configure"
7196 #include "confdefs.h"
7197 #include <math.h>
7198 int main() {
7199  _copysign(0, 0);
7200 ; return 0; }
7201 EOF
7202 if { (eval echo configure:7203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7203   rm -rf conftest*
7204   glibcpp_cv_func__copysign_use=yes
7205 else
7206   echo "configure: failed program was:" >&5
7207   cat conftest.$ac_ext >&5
7208   rm -rf conftest*
7209   glibcpp_cv_func__copysign_use=no
7210 fi
7211 rm -f conftest*
7212       ac_ext=c
7213 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7214 ac_cpp='$CPP $CPPFLAGS'
7215 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7216 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7217 cross_compiling=$ac_cv_prog_cc_cross
7218
7219     
7220 fi
7221
7222   fi
7223   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7224
7225     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7226       for ac_func in _copysign
7227 do
7228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7229 echo "configure:7230: checking for $ac_func" >&5
7230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7231   echo $ac_n "(cached) $ac_c" 1>&6
7232 else
7233   cat > conftest.$ac_ext <<EOF
7234 #line 7235 "configure"
7235 #include "confdefs.h"
7236 /* System header to define __stub macros and hopefully few prototypes,
7237     which can conflict with char $ac_func(); below.  */
7238 #include <assert.h>
7239 /* Override any gcc2 internal prototype to avoid an error.  */
7240 /* We use char because int might match the return type of a gcc2
7241     builtin and then its argument prototype would still apply.  */
7242 char $ac_func();
7243
7244 int main() {
7245
7246 /* The GNU C library defines this for functions which it implements
7247     to always fail with ENOSYS.  Some functions are actually named
7248     something starting with __ and the normal name is an alias.  */
7249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7250 choke me
7251 #else
7252 $ac_func();
7253 #endif
7254
7255 ; return 0; }
7256 EOF
7257 if { (eval echo configure:7258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7258   rm -rf conftest*
7259   eval "ac_cv_func_$ac_func=yes"
7260 else
7261   echo "configure: failed program was:" >&5
7262   cat conftest.$ac_ext >&5
7263   rm -rf conftest*
7264   eval "ac_cv_func_$ac_func=no"
7265 fi
7266 rm -f conftest*
7267 fi
7268
7269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7270   echo "$ac_t""yes" 1>&6
7271     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7272   cat >> confdefs.h <<EOF
7273 #define $ac_tr_func 1
7274 EOF
7275  
7276 else
7277   echo "$ac_t""no" 1>&6
7278 fi
7279 done
7280     
7281     fi
7282   fi
7283
7284   
7285   
7286   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7287 echo "configure:7288: checking for sincos declaration" >&5
7288   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7289     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7290   echo $ac_n "(cached) $ac_c" 1>&6
7291 else
7292   
7293       
7294       ac_ext=C
7295 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7296 ac_cpp='$CXXCPP $CPPFLAGS'
7297 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7298 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7299 cross_compiling=$ac_cv_prog_cxx_cross
7300
7301       cat > conftest.$ac_ext <<EOF
7302 #line 7303 "configure"
7303 #include "confdefs.h"
7304 #include <math.h>
7305 int main() {
7306  sincos(0, 0, 0);
7307 ; return 0; }
7308 EOF
7309 if { (eval echo configure:7310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7310   rm -rf conftest*
7311   glibcpp_cv_func_sincos_use=yes
7312 else
7313   echo "configure: failed program was:" >&5
7314   cat conftest.$ac_ext >&5
7315   rm -rf conftest*
7316   glibcpp_cv_func_sincos_use=no
7317 fi
7318 rm -f conftest*
7319       ac_ext=c
7320 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7321 ac_cpp='$CPP $CPPFLAGS'
7322 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7323 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7324 cross_compiling=$ac_cv_prog_cc_cross
7325
7326     
7327 fi
7328
7329   fi
7330   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7331
7332   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7333     for ac_func in sincos
7334 do
7335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7336 echo "configure:7337: checking for $ac_func" >&5
7337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7338   echo $ac_n "(cached) $ac_c" 1>&6
7339 else
7340   cat > conftest.$ac_ext <<EOF
7341 #line 7342 "configure"
7342 #include "confdefs.h"
7343 /* System header to define __stub macros and hopefully few prototypes,
7344     which can conflict with char $ac_func(); below.  */
7345 #include <assert.h>
7346 /* Override any gcc2 internal prototype to avoid an error.  */
7347 /* We use char because int might match the return type of a gcc2
7348     builtin and then its argument prototype would still apply.  */
7349 char $ac_func();
7350
7351 int main() {
7352
7353 /* The GNU C library defines this for functions which it implements
7354     to always fail with ENOSYS.  Some functions are actually named
7355     something starting with __ and the normal name is an alias.  */
7356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7357 choke me
7358 #else
7359 $ac_func();
7360 #endif
7361
7362 ; return 0; }
7363 EOF
7364 if { (eval echo configure:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7365   rm -rf conftest*
7366   eval "ac_cv_func_$ac_func=yes"
7367 else
7368   echo "configure: failed program was:" >&5
7369   cat conftest.$ac_ext >&5
7370   rm -rf conftest*
7371   eval "ac_cv_func_$ac_func=no"
7372 fi
7373 rm -f conftest*
7374 fi
7375
7376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7377   echo "$ac_t""yes" 1>&6
7378     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7379   cat >> confdefs.h <<EOF
7380 #define $ac_tr_func 1
7381 EOF
7382  
7383 else
7384   echo "$ac_t""no" 1>&6
7385 fi
7386 done
7387     
7388   else
7389     
7390   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7391 echo "configure:7392: checking for _sincos declaration" >&5
7392   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7393     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7394   echo $ac_n "(cached) $ac_c" 1>&6
7395 else
7396   
7397       
7398       ac_ext=C
7399 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7400 ac_cpp='$CXXCPP $CPPFLAGS'
7401 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7402 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7403 cross_compiling=$ac_cv_prog_cxx_cross
7404
7405       cat > conftest.$ac_ext <<EOF
7406 #line 7407 "configure"
7407 #include "confdefs.h"
7408 #include <math.h>
7409 int main() {
7410  _sincos(0, 0, 0);
7411 ; return 0; }
7412 EOF
7413 if { (eval echo configure:7414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7414   rm -rf conftest*
7415   glibcpp_cv_func__sincos_use=yes
7416 else
7417   echo "configure: failed program was:" >&5
7418   cat conftest.$ac_ext >&5
7419   rm -rf conftest*
7420   glibcpp_cv_func__sincos_use=no
7421 fi
7422 rm -f conftest*
7423       ac_ext=c
7424 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7425 ac_cpp='$CPP $CPPFLAGS'
7426 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7427 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7428 cross_compiling=$ac_cv_prog_cc_cross
7429
7430     
7431 fi
7432
7433   fi
7434   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7435
7436     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7437       for ac_func in _sincos
7438 do
7439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7440 echo "configure:7441: checking for $ac_func" >&5
7441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7442   echo $ac_n "(cached) $ac_c" 1>&6
7443 else
7444   cat > conftest.$ac_ext <<EOF
7445 #line 7446 "configure"
7446 #include "confdefs.h"
7447 /* System header to define __stub macros and hopefully few prototypes,
7448     which can conflict with char $ac_func(); below.  */
7449 #include <assert.h>
7450 /* Override any gcc2 internal prototype to avoid an error.  */
7451 /* We use char because int might match the return type of a gcc2
7452     builtin and then its argument prototype would still apply.  */
7453 char $ac_func();
7454
7455 int main() {
7456
7457 /* The GNU C library defines this for functions which it implements
7458     to always fail with ENOSYS.  Some functions are actually named
7459     something starting with __ and the normal name is an alias.  */
7460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7461 choke me
7462 #else
7463 $ac_func();
7464 #endif
7465
7466 ; return 0; }
7467 EOF
7468 if { (eval echo configure:7469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7469   rm -rf conftest*
7470   eval "ac_cv_func_$ac_func=yes"
7471 else
7472   echo "configure: failed program was:" >&5
7473   cat conftest.$ac_ext >&5
7474   rm -rf conftest*
7475   eval "ac_cv_func_$ac_func=no"
7476 fi
7477 rm -f conftest*
7478 fi
7479
7480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7481   echo "$ac_t""yes" 1>&6
7482     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7483   cat >> confdefs.h <<EOF
7484 #define $ac_tr_func 1
7485 EOF
7486  
7487 else
7488   echo "$ac_t""no" 1>&6
7489 fi
7490 done
7491     
7492     fi
7493   fi
7494
7495   
7496   
7497   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7498 echo "configure:7499: checking for fpclass declaration" >&5
7499   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7500     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7501   echo $ac_n "(cached) $ac_c" 1>&6
7502 else
7503   
7504       
7505       ac_ext=C
7506 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7507 ac_cpp='$CXXCPP $CPPFLAGS'
7508 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7509 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7510 cross_compiling=$ac_cv_prog_cxx_cross
7511
7512       cat > conftest.$ac_ext <<EOF
7513 #line 7514 "configure"
7514 #include "confdefs.h"
7515 #include <math.h>
7516                       #ifdef HAVE_IEEEFP_H
7517                       #include <ieeefp.h>
7518                       #endif
7519                      
7520 int main() {
7521  fpclass(0);
7522 ; return 0; }
7523 EOF
7524 if { (eval echo configure:7525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7525   rm -rf conftest*
7526   glibcpp_cv_func_fpclass_use=yes
7527 else
7528   echo "configure: failed program was:" >&5
7529   cat conftest.$ac_ext >&5
7530   rm -rf conftest*
7531   glibcpp_cv_func_fpclass_use=no
7532 fi
7533 rm -f conftest*
7534       ac_ext=c
7535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7536 ac_cpp='$CPP $CPPFLAGS'
7537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7539 cross_compiling=$ac_cv_prog_cc_cross
7540
7541     
7542 fi
7543
7544   fi
7545   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7546
7547   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7548     for ac_func in fpclass
7549 do
7550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7551 echo "configure:7552: checking for $ac_func" >&5
7552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7553   echo $ac_n "(cached) $ac_c" 1>&6
7554 else
7555   cat > conftest.$ac_ext <<EOF
7556 #line 7557 "configure"
7557 #include "confdefs.h"
7558 /* System header to define __stub macros and hopefully few prototypes,
7559     which can conflict with char $ac_func(); below.  */
7560 #include <assert.h>
7561 /* Override any gcc2 internal prototype to avoid an error.  */
7562 /* We use char because int might match the return type of a gcc2
7563     builtin and then its argument prototype would still apply.  */
7564 char $ac_func();
7565
7566 int main() {
7567
7568 /* The GNU C library defines this for functions which it implements
7569     to always fail with ENOSYS.  Some functions are actually named
7570     something starting with __ and the normal name is an alias.  */
7571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7572 choke me
7573 #else
7574 $ac_func();
7575 #endif
7576
7577 ; return 0; }
7578 EOF
7579 if { (eval echo configure:7580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7580   rm -rf conftest*
7581   eval "ac_cv_func_$ac_func=yes"
7582 else
7583   echo "configure: failed program was:" >&5
7584   cat conftest.$ac_ext >&5
7585   rm -rf conftest*
7586   eval "ac_cv_func_$ac_func=no"
7587 fi
7588 rm -f conftest*
7589 fi
7590
7591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7592   echo "$ac_t""yes" 1>&6
7593     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7594   cat >> confdefs.h <<EOF
7595 #define $ac_tr_func 1
7596 EOF
7597  
7598 else
7599   echo "$ac_t""no" 1>&6
7600 fi
7601 done
7602     
7603   else
7604     
7605   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7606 echo "configure:7607: checking for _fpclass declaration" >&5
7607   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7608     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7609   echo $ac_n "(cached) $ac_c" 1>&6
7610 else
7611   
7612       
7613       ac_ext=C
7614 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7615 ac_cpp='$CXXCPP $CPPFLAGS'
7616 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7617 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7618 cross_compiling=$ac_cv_prog_cxx_cross
7619
7620       cat > conftest.$ac_ext <<EOF
7621 #line 7622 "configure"
7622 #include "confdefs.h"
7623 #include <math.h>
7624                       #ifdef HAVE_IEEEFP_H
7625                       #include <ieeefp.h>
7626                       #endif
7627                      
7628 int main() {
7629  _fpclass(0);
7630 ; return 0; }
7631 EOF
7632 if { (eval echo configure:7633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7633   rm -rf conftest*
7634   glibcpp_cv_func__fpclass_use=yes
7635 else
7636   echo "configure: failed program was:" >&5
7637   cat conftest.$ac_ext >&5
7638   rm -rf conftest*
7639   glibcpp_cv_func__fpclass_use=no
7640 fi
7641 rm -f conftest*
7642       ac_ext=c
7643 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7644 ac_cpp='$CPP $CPPFLAGS'
7645 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7646 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7647 cross_compiling=$ac_cv_prog_cc_cross
7648
7649     
7650 fi
7651
7652   fi
7653   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7654
7655     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7656       for ac_func in _fpclass
7657 do
7658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7659 echo "configure:7660: checking for $ac_func" >&5
7660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7661   echo $ac_n "(cached) $ac_c" 1>&6
7662 else
7663   cat > conftest.$ac_ext <<EOF
7664 #line 7665 "configure"
7665 #include "confdefs.h"
7666 /* System header to define __stub macros and hopefully few prototypes,
7667     which can conflict with char $ac_func(); below.  */
7668 #include <assert.h>
7669 /* Override any gcc2 internal prototype to avoid an error.  */
7670 /* We use char because int might match the return type of a gcc2
7671     builtin and then its argument prototype would still apply.  */
7672 char $ac_func();
7673
7674 int main() {
7675
7676 /* The GNU C library defines this for functions which it implements
7677     to always fail with ENOSYS.  Some functions are actually named
7678     something starting with __ and the normal name is an alias.  */
7679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7680 choke me
7681 #else
7682 $ac_func();
7683 #endif
7684
7685 ; return 0; }
7686 EOF
7687 if { (eval echo configure:7688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7688   rm -rf conftest*
7689   eval "ac_cv_func_$ac_func=yes"
7690 else
7691   echo "configure: failed program was:" >&5
7692   cat conftest.$ac_ext >&5
7693   rm -rf conftest*
7694   eval "ac_cv_func_$ac_func=no"
7695 fi
7696 rm -f conftest*
7697 fi
7698
7699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7700   echo "$ac_t""yes" 1>&6
7701     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7702   cat >> confdefs.h <<EOF
7703 #define $ac_tr_func 1
7704 EOF
7705  
7706 else
7707   echo "$ac_t""no" 1>&6
7708 fi
7709 done
7710     
7711     fi
7712   fi
7713
7714   
7715   
7716   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7717 echo "configure:7718: checking for qfpclass declaration" >&5
7718   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7719     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7720   echo $ac_n "(cached) $ac_c" 1>&6
7721 else
7722   
7723       
7724       ac_ext=C
7725 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7726 ac_cpp='$CXXCPP $CPPFLAGS'
7727 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7728 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7729 cross_compiling=$ac_cv_prog_cxx_cross
7730
7731       cat > conftest.$ac_ext <<EOF
7732 #line 7733 "configure"
7733 #include "confdefs.h"
7734 #include <math.h>
7735                       #ifdef HAVE_IEEEFP_H
7736                       #include <ieeefp.h>
7737                       #endif
7738                      
7739 int main() {
7740  qfpclass(0);
7741 ; return 0; }
7742 EOF
7743 if { (eval echo configure:7744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7744   rm -rf conftest*
7745   glibcpp_cv_func_qfpclass_use=yes
7746 else
7747   echo "configure: failed program was:" >&5
7748   cat conftest.$ac_ext >&5
7749   rm -rf conftest*
7750   glibcpp_cv_func_qfpclass_use=no
7751 fi
7752 rm -f conftest*
7753       ac_ext=c
7754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7755 ac_cpp='$CPP $CPPFLAGS'
7756 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7757 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7758 cross_compiling=$ac_cv_prog_cc_cross
7759
7760     
7761 fi
7762
7763   fi
7764   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7765
7766   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7767     for ac_func in qfpclass
7768 do
7769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7770 echo "configure:7771: checking for $ac_func" >&5
7771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7772   echo $ac_n "(cached) $ac_c" 1>&6
7773 else
7774   cat > conftest.$ac_ext <<EOF
7775 #line 7776 "configure"
7776 #include "confdefs.h"
7777 /* System header to define __stub macros and hopefully few prototypes,
7778     which can conflict with char $ac_func(); below.  */
7779 #include <assert.h>
7780 /* Override any gcc2 internal prototype to avoid an error.  */
7781 /* We use char because int might match the return type of a gcc2
7782     builtin and then its argument prototype would still apply.  */
7783 char $ac_func();
7784
7785 int main() {
7786
7787 /* The GNU C library defines this for functions which it implements
7788     to always fail with ENOSYS.  Some functions are actually named
7789     something starting with __ and the normal name is an alias.  */
7790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7791 choke me
7792 #else
7793 $ac_func();
7794 #endif
7795
7796 ; return 0; }
7797 EOF
7798 if { (eval echo configure:7799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7799   rm -rf conftest*
7800   eval "ac_cv_func_$ac_func=yes"
7801 else
7802   echo "configure: failed program was:" >&5
7803   cat conftest.$ac_ext >&5
7804   rm -rf conftest*
7805   eval "ac_cv_func_$ac_func=no"
7806 fi
7807 rm -f conftest*
7808 fi
7809
7810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7811   echo "$ac_t""yes" 1>&6
7812     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7813   cat >> confdefs.h <<EOF
7814 #define $ac_tr_func 1
7815 EOF
7816  
7817 else
7818   echo "$ac_t""no" 1>&6
7819 fi
7820 done
7821     
7822   else
7823     
7824   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7825 echo "configure:7826: checking for _qfpclass declaration" >&5
7826   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7827     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7828   echo $ac_n "(cached) $ac_c" 1>&6
7829 else
7830   
7831       
7832       ac_ext=C
7833 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7834 ac_cpp='$CXXCPP $CPPFLAGS'
7835 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7836 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7837 cross_compiling=$ac_cv_prog_cxx_cross
7838
7839       cat > conftest.$ac_ext <<EOF
7840 #line 7841 "configure"
7841 #include "confdefs.h"
7842 #include <math.h>
7843                       #ifdef HAVE_IEEEFP_H
7844                       #include <ieeefp.h>
7845                       #endif
7846                      
7847 int main() {
7848  _qfpclass(0);
7849 ; return 0; }
7850 EOF
7851 if { (eval echo configure:7852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7852   rm -rf conftest*
7853   glibcpp_cv_func__qfpclass_use=yes
7854 else
7855   echo "configure: failed program was:" >&5
7856   cat conftest.$ac_ext >&5
7857   rm -rf conftest*
7858   glibcpp_cv_func__qfpclass_use=no
7859 fi
7860 rm -f conftest*
7861       ac_ext=c
7862 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7863 ac_cpp='$CPP $CPPFLAGS'
7864 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7865 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7866 cross_compiling=$ac_cv_prog_cc_cross
7867
7868     
7869 fi
7870
7871   fi
7872   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7873
7874     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7875       for ac_func in _qfpclass
7876 do
7877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7878 echo "configure:7879: checking for $ac_func" >&5
7879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7880   echo $ac_n "(cached) $ac_c" 1>&6
7881 else
7882   cat > conftest.$ac_ext <<EOF
7883 #line 7884 "configure"
7884 #include "confdefs.h"
7885 /* System header to define __stub macros and hopefully few prototypes,
7886     which can conflict with char $ac_func(); below.  */
7887 #include <assert.h>
7888 /* Override any gcc2 internal prototype to avoid an error.  */
7889 /* We use char because int might match the return type of a gcc2
7890     builtin and then its argument prototype would still apply.  */
7891 char $ac_func();
7892
7893 int main() {
7894
7895 /* The GNU C library defines this for functions which it implements
7896     to always fail with ENOSYS.  Some functions are actually named
7897     something starting with __ and the normal name is an alias.  */
7898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7899 choke me
7900 #else
7901 $ac_func();
7902 #endif
7903
7904 ; return 0; }
7905 EOF
7906 if { (eval echo configure:7907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7907   rm -rf conftest*
7908   eval "ac_cv_func_$ac_func=yes"
7909 else
7910   echo "configure: failed program was:" >&5
7911   cat conftest.$ac_ext >&5
7912   rm -rf conftest*
7913   eval "ac_cv_func_$ac_func=no"
7914 fi
7915 rm -f conftest*
7916 fi
7917
7918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7919   echo "$ac_t""yes" 1>&6
7920     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7921   cat >> confdefs.h <<EOF
7922 #define $ac_tr_func 1
7923 EOF
7924  
7925 else
7926   echo "$ac_t""no" 1>&6
7927 fi
7928 done
7929     
7930     fi
7931   fi
7932
7933   
7934   
7935   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
7936 echo "configure:7937: checking for hypot declaration" >&5
7937   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
7938     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
7939   echo $ac_n "(cached) $ac_c" 1>&6
7940 else
7941   
7942       
7943       ac_ext=C
7944 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7945 ac_cpp='$CXXCPP $CPPFLAGS'
7946 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7947 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7948 cross_compiling=$ac_cv_prog_cxx_cross
7949
7950       cat > conftest.$ac_ext <<EOF
7951 #line 7952 "configure"
7952 #include "confdefs.h"
7953 #include <math.h>
7954 int main() {
7955  hypot(0, 0);
7956 ; return 0; }
7957 EOF
7958 if { (eval echo configure:7959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7959   rm -rf conftest*
7960   glibcpp_cv_func_hypot_use=yes
7961 else
7962   echo "configure: failed program was:" >&5
7963   cat conftest.$ac_ext >&5
7964   rm -rf conftest*
7965   glibcpp_cv_func_hypot_use=no
7966 fi
7967 rm -f conftest*
7968       ac_ext=c
7969 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7970 ac_cpp='$CPP $CPPFLAGS'
7971 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7972 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7973 cross_compiling=$ac_cv_prog_cc_cross
7974
7975     
7976 fi
7977
7978   fi
7979   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
7980
7981   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
7982     for ac_func in hypot
7983 do
7984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7985 echo "configure:7986: checking for $ac_func" >&5
7986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7987   echo $ac_n "(cached) $ac_c" 1>&6
7988 else
7989   cat > conftest.$ac_ext <<EOF
7990 #line 7991 "configure"
7991 #include "confdefs.h"
7992 /* System header to define __stub macros and hopefully few prototypes,
7993     which can conflict with char $ac_func(); below.  */
7994 #include <assert.h>
7995 /* Override any gcc2 internal prototype to avoid an error.  */
7996 /* We use char because int might match the return type of a gcc2
7997     builtin and then its argument prototype would still apply.  */
7998 char $ac_func();
7999
8000 int main() {
8001
8002 /* The GNU C library defines this for functions which it implements
8003     to always fail with ENOSYS.  Some functions are actually named
8004     something starting with __ and the normal name is an alias.  */
8005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8006 choke me
8007 #else
8008 $ac_func();
8009 #endif
8010
8011 ; return 0; }
8012 EOF
8013 if { (eval echo configure:8014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8014   rm -rf conftest*
8015   eval "ac_cv_func_$ac_func=yes"
8016 else
8017   echo "configure: failed program was:" >&5
8018   cat conftest.$ac_ext >&5
8019   rm -rf conftest*
8020   eval "ac_cv_func_$ac_func=no"
8021 fi
8022 rm -f conftest*
8023 fi
8024
8025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8026   echo "$ac_t""yes" 1>&6
8027     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8028   cat >> confdefs.h <<EOF
8029 #define $ac_tr_func 1
8030 EOF
8031  
8032 else
8033   echo "$ac_t""no" 1>&6
8034 fi
8035 done
8036     
8037   else
8038     
8039   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
8040 echo "configure:8041: checking for _hypot declaration" >&5
8041   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
8042     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
8043   echo $ac_n "(cached) $ac_c" 1>&6
8044 else
8045   
8046       
8047       ac_ext=C
8048 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8049 ac_cpp='$CXXCPP $CPPFLAGS'
8050 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8051 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8052 cross_compiling=$ac_cv_prog_cxx_cross
8053
8054       cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 #include <math.h>
8058 int main() {
8059  _hypot(0, 0);
8060 ; return 0; }
8061 EOF
8062 if { (eval echo configure:8063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8063   rm -rf conftest*
8064   glibcpp_cv_func__hypot_use=yes
8065 else
8066   echo "configure: failed program was:" >&5
8067   cat conftest.$ac_ext >&5
8068   rm -rf conftest*
8069   glibcpp_cv_func__hypot_use=no
8070 fi
8071 rm -f conftest*
8072       ac_ext=c
8073 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8074 ac_cpp='$CPP $CPPFLAGS'
8075 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8076 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8077 cross_compiling=$ac_cv_prog_cc_cross
8078
8079     
8080 fi
8081
8082   fi
8083   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
8084
8085     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
8086       for ac_func in _hypot
8087 do
8088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8089 echo "configure:8090: checking for $ac_func" >&5
8090 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8091   echo $ac_n "(cached) $ac_c" 1>&6
8092 else
8093   cat > conftest.$ac_ext <<EOF
8094 #line 8095 "configure"
8095 #include "confdefs.h"
8096 /* System header to define __stub macros and hopefully few prototypes,
8097     which can conflict with char $ac_func(); below.  */
8098 #include <assert.h>
8099 /* Override any gcc2 internal prototype to avoid an error.  */
8100 /* We use char because int might match the return type of a gcc2
8101     builtin and then its argument prototype would still apply.  */
8102 char $ac_func();
8103
8104 int main() {
8105
8106 /* The GNU C library defines this for functions which it implements
8107     to always fail with ENOSYS.  Some functions are actually named
8108     something starting with __ and the normal name is an alias.  */
8109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8110 choke me
8111 #else
8112 $ac_func();
8113 #endif
8114
8115 ; return 0; }
8116 EOF
8117 if { (eval echo configure:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8118   rm -rf conftest*
8119   eval "ac_cv_func_$ac_func=yes"
8120 else
8121   echo "configure: failed program was:" >&5
8122   cat conftest.$ac_ext >&5
8123   rm -rf conftest*
8124   eval "ac_cv_func_$ac_func=no"
8125 fi
8126 rm -f conftest*
8127 fi
8128
8129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8130   echo "$ac_t""yes" 1>&6
8131     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8132   cat >> confdefs.h <<EOF
8133 #define $ac_tr_func 1
8134 EOF
8135  
8136 else
8137   echo "$ac_t""no" 1>&6
8138 fi
8139 done
8140     
8141     fi
8142   fi
8143
8144
8145     
8146   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
8147 echo "configure:8148: checking for float trig functions" >&5
8148   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
8149   echo $ac_n "(cached) $ac_c" 1>&6
8150 else
8151   
8152     
8153     ac_ext=C
8154 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8155 ac_cpp='$CXXCPP $CPPFLAGS'
8156 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8157 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8158 cross_compiling=$ac_cv_prog_cxx_cross
8159
8160     cat > conftest.$ac_ext <<EOF
8161 #line 8162 "configure"
8162 #include "confdefs.h"
8163 #include <math.h>
8164 int main() {
8165  `for x in acosf asinf atanf \
8166                                           cosf sinf tanf \
8167                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
8168 ; return 0; }
8169 EOF
8170 if { (eval echo configure:8171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8171   rm -rf conftest*
8172   glibcpp_cv_func_float_trig_use=yes
8173 else
8174   echo "configure: failed program was:" >&5
8175   cat conftest.$ac_ext >&5
8176   rm -rf conftest*
8177   glibcpp_cv_func_float_trig_use=no
8178 fi
8179 rm -f conftest*
8180     ac_ext=c
8181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8182 ac_cpp='$CPP $CPPFLAGS'
8183 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8184 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8185 cross_compiling=$ac_cv_prog_cc_cross
8186
8187 fi
8188
8189   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
8190   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
8191     for ac_func in acosf asinf atanf \
8192                                           cosf sinf tanf \
8193                                           coshf sinhf tanhf
8194 do
8195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8196 echo "configure:8197: checking for $ac_func" >&5
8197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8198   echo $ac_n "(cached) $ac_c" 1>&6
8199 else
8200   cat > conftest.$ac_ext <<EOF
8201 #line 8202 "configure"
8202 #include "confdefs.h"
8203 /* System header to define __stub macros and hopefully few prototypes,
8204     which can conflict with char $ac_func(); below.  */
8205 #include <assert.h>
8206 /* Override any gcc2 internal prototype to avoid an error.  */
8207 /* We use char because int might match the return type of a gcc2
8208     builtin and then its argument prototype would still apply.  */
8209 char $ac_func();
8210
8211 int main() {
8212
8213 /* The GNU C library defines this for functions which it implements
8214     to always fail with ENOSYS.  Some functions are actually named
8215     something starting with __ and the normal name is an alias.  */
8216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8217 choke me
8218 #else
8219 $ac_func();
8220 #endif
8221
8222 ; return 0; }
8223 EOF
8224 if { (eval echo configure:8225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8225   rm -rf conftest*
8226   eval "ac_cv_func_$ac_func=yes"
8227 else
8228   echo "configure: failed program was:" >&5
8229   cat conftest.$ac_ext >&5
8230   rm -rf conftest*
8231   eval "ac_cv_func_$ac_func=no"
8232 fi
8233 rm -f conftest*
8234 fi
8235
8236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8237   echo "$ac_t""yes" 1>&6
8238     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8239   cat >> confdefs.h <<EOF
8240 #define $ac_tr_func 1
8241 EOF
8242  
8243 else
8244   echo "$ac_t""no" 1>&6
8245 fi
8246 done
8247
8248   fi
8249
8250   
8251   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
8252 echo "configure:8253: checking for float round functions" >&5
8253   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
8254   echo $ac_n "(cached) $ac_c" 1>&6
8255 else
8256   
8257     
8258     ac_ext=C
8259 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8260 ac_cpp='$CXXCPP $CPPFLAGS'
8261 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8262 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8263 cross_compiling=$ac_cv_prog_cxx_cross
8264
8265     cat > conftest.$ac_ext <<EOF
8266 #line 8267 "configure"
8267 #include "confdefs.h"
8268 #include <math.h>
8269 int main() {
8270  `for x in ceilf floorf; do echo "$x (0);"; done` 
8271 ; return 0; }
8272 EOF
8273 if { (eval echo configure:8274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8274   rm -rf conftest*
8275   glibcpp_cv_func_float_round_use=yes
8276 else
8277   echo "configure: failed program was:" >&5
8278   cat conftest.$ac_ext >&5
8279   rm -rf conftest*
8280   glibcpp_cv_func_float_round_use=no
8281 fi
8282 rm -f conftest*
8283     ac_ext=c
8284 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8285 ac_cpp='$CPP $CPPFLAGS'
8286 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8287 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8288 cross_compiling=$ac_cv_prog_cc_cross
8289
8290 fi
8291
8292   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8293   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8294     for ac_func in ceilf floorf
8295 do
8296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8297 echo "configure:8298: checking for $ac_func" >&5
8298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8299   echo $ac_n "(cached) $ac_c" 1>&6
8300 else
8301   cat > conftest.$ac_ext <<EOF
8302 #line 8303 "configure"
8303 #include "confdefs.h"
8304 /* System header to define __stub macros and hopefully few prototypes,
8305     which can conflict with char $ac_func(); below.  */
8306 #include <assert.h>
8307 /* Override any gcc2 internal prototype to avoid an error.  */
8308 /* We use char because int might match the return type of a gcc2
8309     builtin and then its argument prototype would still apply.  */
8310 char $ac_func();
8311
8312 int main() {
8313
8314 /* The GNU C library defines this for functions which it implements
8315     to always fail with ENOSYS.  Some functions are actually named
8316     something starting with __ and the normal name is an alias.  */
8317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8318 choke me
8319 #else
8320 $ac_func();
8321 #endif
8322
8323 ; return 0; }
8324 EOF
8325 if { (eval echo configure:8326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8326   rm -rf conftest*
8327   eval "ac_cv_func_$ac_func=yes"
8328 else
8329   echo "configure: failed program was:" >&5
8330   cat conftest.$ac_ext >&5
8331   rm -rf conftest*
8332   eval "ac_cv_func_$ac_func=no"
8333 fi
8334 rm -f conftest*
8335 fi
8336
8337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8338   echo "$ac_t""yes" 1>&6
8339     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8340   cat >> confdefs.h <<EOF
8341 #define $ac_tr_func 1
8342 EOF
8343  
8344 else
8345   echo "$ac_t""no" 1>&6
8346 fi
8347 done
8348
8349   fi
8350
8351   
8352   
8353   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8354 echo "configure:8355: checking for isnanf declaration" >&5
8355   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8356     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8357   echo $ac_n "(cached) $ac_c" 1>&6
8358 else
8359   
8360       
8361       ac_ext=C
8362 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8363 ac_cpp='$CXXCPP $CPPFLAGS'
8364 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8365 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8366 cross_compiling=$ac_cv_prog_cxx_cross
8367
8368       cat > conftest.$ac_ext <<EOF
8369 #line 8370 "configure"
8370 #include "confdefs.h"
8371 #include <math.h>
8372                       #ifdef HAVE_IEEEFP_H
8373                       #include <ieeefp.h>
8374                       #endif
8375                      
8376 int main() {
8377  isnanf(0);
8378 ; return 0; }
8379 EOF
8380 if { (eval echo configure:8381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8381   rm -rf conftest*
8382   glibcpp_cv_func_isnanf_use=yes
8383 else
8384   echo "configure: failed program was:" >&5
8385   cat conftest.$ac_ext >&5
8386   rm -rf conftest*
8387   glibcpp_cv_func_isnanf_use=no
8388 fi
8389 rm -f conftest*
8390       ac_ext=c
8391 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8392 ac_cpp='$CPP $CPPFLAGS'
8393 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8394 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8395 cross_compiling=$ac_cv_prog_cc_cross
8396
8397     
8398 fi
8399
8400   fi
8401   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8402
8403   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8404     for ac_func in isnanf
8405 do
8406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8407 echo "configure:8408: checking for $ac_func" >&5
8408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8409   echo $ac_n "(cached) $ac_c" 1>&6
8410 else
8411   cat > conftest.$ac_ext <<EOF
8412 #line 8413 "configure"
8413 #include "confdefs.h"
8414 /* System header to define __stub macros and hopefully few prototypes,
8415     which can conflict with char $ac_func(); below.  */
8416 #include <assert.h>
8417 /* Override any gcc2 internal prototype to avoid an error.  */
8418 /* We use char because int might match the return type of a gcc2
8419     builtin and then its argument prototype would still apply.  */
8420 char $ac_func();
8421
8422 int main() {
8423
8424 /* The GNU C library defines this for functions which it implements
8425     to always fail with ENOSYS.  Some functions are actually named
8426     something starting with __ and the normal name is an alias.  */
8427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8428 choke me
8429 #else
8430 $ac_func();
8431 #endif
8432
8433 ; return 0; }
8434 EOF
8435 if { (eval echo configure:8436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8436   rm -rf conftest*
8437   eval "ac_cv_func_$ac_func=yes"
8438 else
8439   echo "configure: failed program was:" >&5
8440   cat conftest.$ac_ext >&5
8441   rm -rf conftest*
8442   eval "ac_cv_func_$ac_func=no"
8443 fi
8444 rm -f conftest*
8445 fi
8446
8447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8448   echo "$ac_t""yes" 1>&6
8449     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8450   cat >> confdefs.h <<EOF
8451 #define $ac_tr_func 1
8452 EOF
8453  
8454 else
8455   echo "$ac_t""no" 1>&6
8456 fi
8457 done
8458     
8459   else
8460     
8461   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8462 echo "configure:8463: checking for _isnanf declaration" >&5
8463   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8464     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8465   echo $ac_n "(cached) $ac_c" 1>&6
8466 else
8467   
8468       
8469       ac_ext=C
8470 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8471 ac_cpp='$CXXCPP $CPPFLAGS'
8472 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8473 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8474 cross_compiling=$ac_cv_prog_cxx_cross
8475
8476       cat > conftest.$ac_ext <<EOF
8477 #line 8478 "configure"
8478 #include "confdefs.h"
8479 #include <math.h>
8480                       #ifdef HAVE_IEEEFP_H
8481                       #include <ieeefp.h>
8482                       #endif
8483                      
8484 int main() {
8485  _isnanf(0);
8486 ; return 0; }
8487 EOF
8488 if { (eval echo configure:8489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8489   rm -rf conftest*
8490   glibcpp_cv_func__isnanf_use=yes
8491 else
8492   echo "configure: failed program was:" >&5
8493   cat conftest.$ac_ext >&5
8494   rm -rf conftest*
8495   glibcpp_cv_func__isnanf_use=no
8496 fi
8497 rm -f conftest*
8498       ac_ext=c
8499 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8500 ac_cpp='$CPP $CPPFLAGS'
8501 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8502 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8503 cross_compiling=$ac_cv_prog_cc_cross
8504
8505     
8506 fi
8507
8508   fi
8509   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8510
8511     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8512       for ac_func in _isnanf
8513 do
8514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8515 echo "configure:8516: checking for $ac_func" >&5
8516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8517   echo $ac_n "(cached) $ac_c" 1>&6
8518 else
8519   cat > conftest.$ac_ext <<EOF
8520 #line 8521 "configure"
8521 #include "confdefs.h"
8522 /* System header to define __stub macros and hopefully few prototypes,
8523     which can conflict with char $ac_func(); below.  */
8524 #include <assert.h>
8525 /* Override any gcc2 internal prototype to avoid an error.  */
8526 /* We use char because int might match the return type of a gcc2
8527     builtin and then its argument prototype would still apply.  */
8528 char $ac_func();
8529
8530 int main() {
8531
8532 /* The GNU C library defines this for functions which it implements
8533     to always fail with ENOSYS.  Some functions are actually named
8534     something starting with __ and the normal name is an alias.  */
8535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8536 choke me
8537 #else
8538 $ac_func();
8539 #endif
8540
8541 ; return 0; }
8542 EOF
8543 if { (eval echo configure:8544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8544   rm -rf conftest*
8545   eval "ac_cv_func_$ac_func=yes"
8546 else
8547   echo "configure: failed program was:" >&5
8548   cat conftest.$ac_ext >&5
8549   rm -rf conftest*
8550   eval "ac_cv_func_$ac_func=no"
8551 fi
8552 rm -f conftest*
8553 fi
8554
8555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8556   echo "$ac_t""yes" 1>&6
8557     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8558   cat >> confdefs.h <<EOF
8559 #define $ac_tr_func 1
8560 EOF
8561  
8562 else
8563   echo "$ac_t""no" 1>&6
8564 fi
8565 done
8566     
8567     fi
8568   fi
8569
8570   
8571   
8572   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8573 echo "configure:8574: checking for isinff declaration" >&5
8574   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8575     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8576   echo $ac_n "(cached) $ac_c" 1>&6
8577 else
8578   
8579       
8580       ac_ext=C
8581 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8582 ac_cpp='$CXXCPP $CPPFLAGS'
8583 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8584 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8585 cross_compiling=$ac_cv_prog_cxx_cross
8586
8587       cat > conftest.$ac_ext <<EOF
8588 #line 8589 "configure"
8589 #include "confdefs.h"
8590 #include <math.h>
8591                       #ifdef HAVE_IEEEFP_H
8592                       #include <ieeefp.h>
8593                       #endif
8594                      
8595 int main() {
8596  isinff(0);
8597 ; return 0; }
8598 EOF
8599 if { (eval echo configure:8600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8600   rm -rf conftest*
8601   glibcpp_cv_func_isinff_use=yes
8602 else
8603   echo "configure: failed program was:" >&5
8604   cat conftest.$ac_ext >&5
8605   rm -rf conftest*
8606   glibcpp_cv_func_isinff_use=no
8607 fi
8608 rm -f conftest*
8609       ac_ext=c
8610 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8611 ac_cpp='$CPP $CPPFLAGS'
8612 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8613 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8614 cross_compiling=$ac_cv_prog_cc_cross
8615
8616     
8617 fi
8618
8619   fi
8620   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8621
8622   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8623     for ac_func in isinff
8624 do
8625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8626 echo "configure:8627: checking for $ac_func" >&5
8627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8628   echo $ac_n "(cached) $ac_c" 1>&6
8629 else
8630   cat > conftest.$ac_ext <<EOF
8631 #line 8632 "configure"
8632 #include "confdefs.h"
8633 /* System header to define __stub macros and hopefully few prototypes,
8634     which can conflict with char $ac_func(); below.  */
8635 #include <assert.h>
8636 /* Override any gcc2 internal prototype to avoid an error.  */
8637 /* We use char because int might match the return type of a gcc2
8638     builtin and then its argument prototype would still apply.  */
8639 char $ac_func();
8640
8641 int main() {
8642
8643 /* The GNU C library defines this for functions which it implements
8644     to always fail with ENOSYS.  Some functions are actually named
8645     something starting with __ and the normal name is an alias.  */
8646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8647 choke me
8648 #else
8649 $ac_func();
8650 #endif
8651
8652 ; return 0; }
8653 EOF
8654 if { (eval echo configure:8655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8655   rm -rf conftest*
8656   eval "ac_cv_func_$ac_func=yes"
8657 else
8658   echo "configure: failed program was:" >&5
8659   cat conftest.$ac_ext >&5
8660   rm -rf conftest*
8661   eval "ac_cv_func_$ac_func=no"
8662 fi
8663 rm -f conftest*
8664 fi
8665
8666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8667   echo "$ac_t""yes" 1>&6
8668     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8669   cat >> confdefs.h <<EOF
8670 #define $ac_tr_func 1
8671 EOF
8672  
8673 else
8674   echo "$ac_t""no" 1>&6
8675 fi
8676 done
8677     
8678   else
8679     
8680   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8681 echo "configure:8682: checking for _isinff declaration" >&5
8682   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8683     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8684   echo $ac_n "(cached) $ac_c" 1>&6
8685 else
8686   
8687       
8688       ac_ext=C
8689 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8690 ac_cpp='$CXXCPP $CPPFLAGS'
8691 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8692 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8693 cross_compiling=$ac_cv_prog_cxx_cross
8694
8695       cat > conftest.$ac_ext <<EOF
8696 #line 8697 "configure"
8697 #include "confdefs.h"
8698 #include <math.h>
8699                       #ifdef HAVE_IEEEFP_H
8700                       #include <ieeefp.h>
8701                       #endif
8702                      
8703 int main() {
8704  _isinff(0);
8705 ; return 0; }
8706 EOF
8707 if { (eval echo configure:8708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8708   rm -rf conftest*
8709   glibcpp_cv_func__isinff_use=yes
8710 else
8711   echo "configure: failed program was:" >&5
8712   cat conftest.$ac_ext >&5
8713   rm -rf conftest*
8714   glibcpp_cv_func__isinff_use=no
8715 fi
8716 rm -f conftest*
8717       ac_ext=c
8718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8719 ac_cpp='$CPP $CPPFLAGS'
8720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8722 cross_compiling=$ac_cv_prog_cc_cross
8723
8724     
8725 fi
8726
8727   fi
8728   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8729
8730     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8731       for ac_func in _isinff
8732 do
8733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8734 echo "configure:8735: checking for $ac_func" >&5
8735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8736   echo $ac_n "(cached) $ac_c" 1>&6
8737 else
8738   cat > conftest.$ac_ext <<EOF
8739 #line 8740 "configure"
8740 #include "confdefs.h"
8741 /* System header to define __stub macros and hopefully few prototypes,
8742     which can conflict with char $ac_func(); below.  */
8743 #include <assert.h>
8744 /* Override any gcc2 internal prototype to avoid an error.  */
8745 /* We use char because int might match the return type of a gcc2
8746     builtin and then its argument prototype would still apply.  */
8747 char $ac_func();
8748
8749 int main() {
8750
8751 /* The GNU C library defines this for functions which it implements
8752     to always fail with ENOSYS.  Some functions are actually named
8753     something starting with __ and the normal name is an alias.  */
8754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8755 choke me
8756 #else
8757 $ac_func();
8758 #endif
8759
8760 ; return 0; }
8761 EOF
8762 if { (eval echo configure:8763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8763   rm -rf conftest*
8764   eval "ac_cv_func_$ac_func=yes"
8765 else
8766   echo "configure: failed program was:" >&5
8767   cat conftest.$ac_ext >&5
8768   rm -rf conftest*
8769   eval "ac_cv_func_$ac_func=no"
8770 fi
8771 rm -f conftest*
8772 fi
8773
8774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8775   echo "$ac_t""yes" 1>&6
8776     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8777   cat >> confdefs.h <<EOF
8778 #define $ac_tr_func 1
8779 EOF
8780  
8781 else
8782   echo "$ac_t""no" 1>&6
8783 fi
8784 done
8785     
8786     fi
8787   fi
8788
8789   
8790   
8791   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
8792 echo "configure:8793: checking for atan2f declaration" >&5
8793   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
8794     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
8795   echo $ac_n "(cached) $ac_c" 1>&6
8796 else
8797   
8798       
8799       ac_ext=C
8800 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8801 ac_cpp='$CXXCPP $CPPFLAGS'
8802 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8803 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8804 cross_compiling=$ac_cv_prog_cxx_cross
8805
8806       cat > conftest.$ac_ext <<EOF
8807 #line 8808 "configure"
8808 #include "confdefs.h"
8809 #include <math.h>
8810 int main() {
8811  atan2f(0, 0);
8812 ; return 0; }
8813 EOF
8814 if { (eval echo configure:8815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8815   rm -rf conftest*
8816   glibcpp_cv_func_atan2f_use=yes
8817 else
8818   echo "configure: failed program was:" >&5
8819   cat conftest.$ac_ext >&5
8820   rm -rf conftest*
8821   glibcpp_cv_func_atan2f_use=no
8822 fi
8823 rm -f conftest*
8824       ac_ext=c
8825 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8826 ac_cpp='$CPP $CPPFLAGS'
8827 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8828 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8829 cross_compiling=$ac_cv_prog_cc_cross
8830
8831     
8832 fi
8833
8834   fi
8835   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
8836
8837   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
8838     for ac_func in atan2f
8839 do
8840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8841 echo "configure:8842: checking for $ac_func" >&5
8842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8843   echo $ac_n "(cached) $ac_c" 1>&6
8844 else
8845   cat > conftest.$ac_ext <<EOF
8846 #line 8847 "configure"
8847 #include "confdefs.h"
8848 /* System header to define __stub macros and hopefully few prototypes,
8849     which can conflict with char $ac_func(); below.  */
8850 #include <assert.h>
8851 /* Override any gcc2 internal prototype to avoid an error.  */
8852 /* We use char because int might match the return type of a gcc2
8853     builtin and then its argument prototype would still apply.  */
8854 char $ac_func();
8855
8856 int main() {
8857
8858 /* The GNU C library defines this for functions which it implements
8859     to always fail with ENOSYS.  Some functions are actually named
8860     something starting with __ and the normal name is an alias.  */
8861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8862 choke me
8863 #else
8864 $ac_func();
8865 #endif
8866
8867 ; return 0; }
8868 EOF
8869 if { (eval echo configure:8870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8870   rm -rf conftest*
8871   eval "ac_cv_func_$ac_func=yes"
8872 else
8873   echo "configure: failed program was:" >&5
8874   cat conftest.$ac_ext >&5
8875   rm -rf conftest*
8876   eval "ac_cv_func_$ac_func=no"
8877 fi
8878 rm -f conftest*
8879 fi
8880
8881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8882   echo "$ac_t""yes" 1>&6
8883     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8884   cat >> confdefs.h <<EOF
8885 #define $ac_tr_func 1
8886 EOF
8887  
8888 else
8889   echo "$ac_t""no" 1>&6
8890 fi
8891 done
8892     
8893   else
8894     
8895   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
8896 echo "configure:8897: checking for _atan2f declaration" >&5
8897   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
8898     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
8899   echo $ac_n "(cached) $ac_c" 1>&6
8900 else
8901   
8902       
8903       ac_ext=C
8904 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8905 ac_cpp='$CXXCPP $CPPFLAGS'
8906 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8907 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8908 cross_compiling=$ac_cv_prog_cxx_cross
8909
8910       cat > conftest.$ac_ext <<EOF
8911 #line 8912 "configure"
8912 #include "confdefs.h"
8913 #include <math.h>
8914 int main() {
8915  _atan2f(0, 0);
8916 ; return 0; }
8917 EOF
8918 if { (eval echo configure:8919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8919   rm -rf conftest*
8920   glibcpp_cv_func__atan2f_use=yes
8921 else
8922   echo "configure: failed program was:" >&5
8923   cat conftest.$ac_ext >&5
8924   rm -rf conftest*
8925   glibcpp_cv_func__atan2f_use=no
8926 fi
8927 rm -f conftest*
8928       ac_ext=c
8929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8930 ac_cpp='$CPP $CPPFLAGS'
8931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8932 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8933 cross_compiling=$ac_cv_prog_cc_cross
8934
8935     
8936 fi
8937
8938   fi
8939   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
8940
8941     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
8942       for ac_func in _atan2f
8943 do
8944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8945 echo "configure:8946: checking for $ac_func" >&5
8946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8947   echo $ac_n "(cached) $ac_c" 1>&6
8948 else
8949   cat > conftest.$ac_ext <<EOF
8950 #line 8951 "configure"
8951 #include "confdefs.h"
8952 /* System header to define __stub macros and hopefully few prototypes,
8953     which can conflict with char $ac_func(); below.  */
8954 #include <assert.h>
8955 /* Override any gcc2 internal prototype to avoid an error.  */
8956 /* We use char because int might match the return type of a gcc2
8957     builtin and then its argument prototype would still apply.  */
8958 char $ac_func();
8959
8960 int main() {
8961
8962 /* The GNU C library defines this for functions which it implements
8963     to always fail with ENOSYS.  Some functions are actually named
8964     something starting with __ and the normal name is an alias.  */
8965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8966 choke me
8967 #else
8968 $ac_func();
8969 #endif
8970
8971 ; return 0; }
8972 EOF
8973 if { (eval echo configure:8974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8974   rm -rf conftest*
8975   eval "ac_cv_func_$ac_func=yes"
8976 else
8977   echo "configure: failed program was:" >&5
8978   cat conftest.$ac_ext >&5
8979   rm -rf conftest*
8980   eval "ac_cv_func_$ac_func=no"
8981 fi
8982 rm -f conftest*
8983 fi
8984
8985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8986   echo "$ac_t""yes" 1>&6
8987     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8988   cat >> confdefs.h <<EOF
8989 #define $ac_tr_func 1
8990 EOF
8991  
8992 else
8993   echo "$ac_t""no" 1>&6
8994 fi
8995 done
8996     
8997     fi
8998   fi
8999
9000   
9001   
9002   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
9003 echo "configure:9004: checking for fabsf declaration" >&5
9004   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
9005     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
9006   echo $ac_n "(cached) $ac_c" 1>&6
9007 else
9008   
9009       
9010       ac_ext=C
9011 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9012 ac_cpp='$CXXCPP $CPPFLAGS'
9013 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9014 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9015 cross_compiling=$ac_cv_prog_cxx_cross
9016
9017       cat > conftest.$ac_ext <<EOF
9018 #line 9019 "configure"
9019 #include "confdefs.h"
9020 #include <math.h>
9021                       #ifdef HAVE_IEEEFP_H
9022                       #include <ieeefp.h>
9023                       #endif
9024                      
9025 int main() {
9026  fabsf(0);
9027 ; return 0; }
9028 EOF
9029 if { (eval echo configure:9030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9030   rm -rf conftest*
9031   glibcpp_cv_func_fabsf_use=yes
9032 else
9033   echo "configure: failed program was:" >&5
9034   cat conftest.$ac_ext >&5
9035   rm -rf conftest*
9036   glibcpp_cv_func_fabsf_use=no
9037 fi
9038 rm -f conftest*
9039       ac_ext=c
9040 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9041 ac_cpp='$CPP $CPPFLAGS'
9042 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9043 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9044 cross_compiling=$ac_cv_prog_cc_cross
9045
9046     
9047 fi
9048
9049   fi
9050   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
9051
9052   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
9053     for ac_func in fabsf
9054 do
9055 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9056 echo "configure:9057: checking for $ac_func" >&5
9057 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9058   echo $ac_n "(cached) $ac_c" 1>&6
9059 else
9060   cat > conftest.$ac_ext <<EOF
9061 #line 9062 "configure"
9062 #include "confdefs.h"
9063 /* System header to define __stub macros and hopefully few prototypes,
9064     which can conflict with char $ac_func(); below.  */
9065 #include <assert.h>
9066 /* Override any gcc2 internal prototype to avoid an error.  */
9067 /* We use char because int might match the return type of a gcc2
9068     builtin and then its argument prototype would still apply.  */
9069 char $ac_func();
9070
9071 int main() {
9072
9073 /* The GNU C library defines this for functions which it implements
9074     to always fail with ENOSYS.  Some functions are actually named
9075     something starting with __ and the normal name is an alias.  */
9076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9077 choke me
9078 #else
9079 $ac_func();
9080 #endif
9081
9082 ; return 0; }
9083 EOF
9084 if { (eval echo configure:9085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9085   rm -rf conftest*
9086   eval "ac_cv_func_$ac_func=yes"
9087 else
9088   echo "configure: failed program was:" >&5
9089   cat conftest.$ac_ext >&5
9090   rm -rf conftest*
9091   eval "ac_cv_func_$ac_func=no"
9092 fi
9093 rm -f conftest*
9094 fi
9095
9096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9097   echo "$ac_t""yes" 1>&6
9098     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9099   cat >> confdefs.h <<EOF
9100 #define $ac_tr_func 1
9101 EOF
9102  
9103 else
9104   echo "$ac_t""no" 1>&6
9105 fi
9106 done
9107     
9108   else
9109     
9110   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
9111 echo "configure:9112: checking for _fabsf declaration" >&5
9112   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
9113     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
9114   echo $ac_n "(cached) $ac_c" 1>&6
9115 else
9116   
9117       
9118       ac_ext=C
9119 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9120 ac_cpp='$CXXCPP $CPPFLAGS'
9121 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9122 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9123 cross_compiling=$ac_cv_prog_cxx_cross
9124
9125       cat > conftest.$ac_ext <<EOF
9126 #line 9127 "configure"
9127 #include "confdefs.h"
9128 #include <math.h>
9129                       #ifdef HAVE_IEEEFP_H
9130                       #include <ieeefp.h>
9131                       #endif
9132                      
9133 int main() {
9134  _fabsf(0);
9135 ; return 0; }
9136 EOF
9137 if { (eval echo configure:9138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9138   rm -rf conftest*
9139   glibcpp_cv_func__fabsf_use=yes
9140 else
9141   echo "configure: failed program was:" >&5
9142   cat conftest.$ac_ext >&5
9143   rm -rf conftest*
9144   glibcpp_cv_func__fabsf_use=no
9145 fi
9146 rm -f conftest*
9147       ac_ext=c
9148 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9149 ac_cpp='$CPP $CPPFLAGS'
9150 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9151 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9152 cross_compiling=$ac_cv_prog_cc_cross
9153
9154     
9155 fi
9156
9157   fi
9158   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
9159
9160     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
9161       for ac_func in _fabsf
9162 do
9163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9164 echo "configure:9165: checking for $ac_func" >&5
9165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9166   echo $ac_n "(cached) $ac_c" 1>&6
9167 else
9168   cat > conftest.$ac_ext <<EOF
9169 #line 9170 "configure"
9170 #include "confdefs.h"
9171 /* System header to define __stub macros and hopefully few prototypes,
9172     which can conflict with char $ac_func(); below.  */
9173 #include <assert.h>
9174 /* Override any gcc2 internal prototype to avoid an error.  */
9175 /* We use char because int might match the return type of a gcc2
9176     builtin and then its argument prototype would still apply.  */
9177 char $ac_func();
9178
9179 int main() {
9180
9181 /* The GNU C library defines this for functions which it implements
9182     to always fail with ENOSYS.  Some functions are actually named
9183     something starting with __ and the normal name is an alias.  */
9184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9185 choke me
9186 #else
9187 $ac_func();
9188 #endif
9189
9190 ; return 0; }
9191 EOF
9192 if { (eval echo configure:9193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9193   rm -rf conftest*
9194   eval "ac_cv_func_$ac_func=yes"
9195 else
9196   echo "configure: failed program was:" >&5
9197   cat conftest.$ac_ext >&5
9198   rm -rf conftest*
9199   eval "ac_cv_func_$ac_func=no"
9200 fi
9201 rm -f conftest*
9202 fi
9203
9204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9205   echo "$ac_t""yes" 1>&6
9206     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9207   cat >> confdefs.h <<EOF
9208 #define $ac_tr_func 1
9209 EOF
9210  
9211 else
9212   echo "$ac_t""no" 1>&6
9213 fi
9214 done
9215     
9216     fi
9217   fi
9218
9219   
9220   
9221   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
9222 echo "configure:9223: checking for fmodf declaration" >&5
9223   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
9224     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
9225   echo $ac_n "(cached) $ac_c" 1>&6
9226 else
9227   
9228       
9229       ac_ext=C
9230 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9231 ac_cpp='$CXXCPP $CPPFLAGS'
9232 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9233 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9234 cross_compiling=$ac_cv_prog_cxx_cross
9235
9236       cat > conftest.$ac_ext <<EOF
9237 #line 9238 "configure"
9238 #include "confdefs.h"
9239 #include <math.h>
9240 int main() {
9241  fmodf(0, 0);
9242 ; return 0; }
9243 EOF
9244 if { (eval echo configure:9245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9245   rm -rf conftest*
9246   glibcpp_cv_func_fmodf_use=yes
9247 else
9248   echo "configure: failed program was:" >&5
9249   cat conftest.$ac_ext >&5
9250   rm -rf conftest*
9251   glibcpp_cv_func_fmodf_use=no
9252 fi
9253 rm -f conftest*
9254       ac_ext=c
9255 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9256 ac_cpp='$CPP $CPPFLAGS'
9257 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9258 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9259 cross_compiling=$ac_cv_prog_cc_cross
9260
9261     
9262 fi
9263
9264   fi
9265   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
9266
9267   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
9268     for ac_func in fmodf
9269 do
9270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9271 echo "configure:9272: checking for $ac_func" >&5
9272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9273   echo $ac_n "(cached) $ac_c" 1>&6
9274 else
9275   cat > conftest.$ac_ext <<EOF
9276 #line 9277 "configure"
9277 #include "confdefs.h"
9278 /* System header to define __stub macros and hopefully few prototypes,
9279     which can conflict with char $ac_func(); below.  */
9280 #include <assert.h>
9281 /* Override any gcc2 internal prototype to avoid an error.  */
9282 /* We use char because int might match the return type of a gcc2
9283     builtin and then its argument prototype would still apply.  */
9284 char $ac_func();
9285
9286 int main() {
9287
9288 /* The GNU C library defines this for functions which it implements
9289     to always fail with ENOSYS.  Some functions are actually named
9290     something starting with __ and the normal name is an alias.  */
9291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9292 choke me
9293 #else
9294 $ac_func();
9295 #endif
9296
9297 ; return 0; }
9298 EOF
9299 if { (eval echo configure:9300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9300   rm -rf conftest*
9301   eval "ac_cv_func_$ac_func=yes"
9302 else
9303   echo "configure: failed program was:" >&5
9304   cat conftest.$ac_ext >&5
9305   rm -rf conftest*
9306   eval "ac_cv_func_$ac_func=no"
9307 fi
9308 rm -f conftest*
9309 fi
9310
9311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9312   echo "$ac_t""yes" 1>&6
9313     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9314   cat >> confdefs.h <<EOF
9315 #define $ac_tr_func 1
9316 EOF
9317  
9318 else
9319   echo "$ac_t""no" 1>&6
9320 fi
9321 done
9322     
9323   else
9324     
9325   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
9326 echo "configure:9327: checking for _fmodf declaration" >&5
9327   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
9328     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
9329   echo $ac_n "(cached) $ac_c" 1>&6
9330 else
9331   
9332       
9333       ac_ext=C
9334 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9335 ac_cpp='$CXXCPP $CPPFLAGS'
9336 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9337 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9338 cross_compiling=$ac_cv_prog_cxx_cross
9339
9340       cat > conftest.$ac_ext <<EOF
9341 #line 9342 "configure"
9342 #include "confdefs.h"
9343 #include <math.h>
9344 int main() {
9345  _fmodf(0, 0);
9346 ; return 0; }
9347 EOF
9348 if { (eval echo configure:9349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9349   rm -rf conftest*
9350   glibcpp_cv_func__fmodf_use=yes
9351 else
9352   echo "configure: failed program was:" >&5
9353   cat conftest.$ac_ext >&5
9354   rm -rf conftest*
9355   glibcpp_cv_func__fmodf_use=no
9356 fi
9357 rm -f conftest*
9358       ac_ext=c
9359 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9360 ac_cpp='$CPP $CPPFLAGS'
9361 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9362 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9363 cross_compiling=$ac_cv_prog_cc_cross
9364
9365     
9366 fi
9367
9368   fi
9369   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
9370
9371     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
9372       for ac_func in _fmodf
9373 do
9374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9375 echo "configure:9376: checking for $ac_func" >&5
9376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9377   echo $ac_n "(cached) $ac_c" 1>&6
9378 else
9379   cat > conftest.$ac_ext <<EOF
9380 #line 9381 "configure"
9381 #include "confdefs.h"
9382 /* System header to define __stub macros and hopefully few prototypes,
9383     which can conflict with char $ac_func(); below.  */
9384 #include <assert.h>
9385 /* Override any gcc2 internal prototype to avoid an error.  */
9386 /* We use char because int might match the return type of a gcc2
9387     builtin and then its argument prototype would still apply.  */
9388 char $ac_func();
9389
9390 int main() {
9391
9392 /* The GNU C library defines this for functions which it implements
9393     to always fail with ENOSYS.  Some functions are actually named
9394     something starting with __ and the normal name is an alias.  */
9395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9396 choke me
9397 #else
9398 $ac_func();
9399 #endif
9400
9401 ; return 0; }
9402 EOF
9403 if { (eval echo configure:9404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9404   rm -rf conftest*
9405   eval "ac_cv_func_$ac_func=yes"
9406 else
9407   echo "configure: failed program was:" >&5
9408   cat conftest.$ac_ext >&5
9409   rm -rf conftest*
9410   eval "ac_cv_func_$ac_func=no"
9411 fi
9412 rm -f conftest*
9413 fi
9414
9415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9416   echo "$ac_t""yes" 1>&6
9417     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9418   cat >> confdefs.h <<EOF
9419 #define $ac_tr_func 1
9420 EOF
9421  
9422 else
9423   echo "$ac_t""no" 1>&6
9424 fi
9425 done
9426     
9427     fi
9428   fi
9429
9430   
9431   
9432   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
9433 echo "configure:9434: checking for frexpf declaration" >&5
9434   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
9435     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
9436   echo $ac_n "(cached) $ac_c" 1>&6
9437 else
9438   
9439       
9440       ac_ext=C
9441 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9442 ac_cpp='$CXXCPP $CPPFLAGS'
9443 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9444 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9445 cross_compiling=$ac_cv_prog_cxx_cross
9446
9447       cat > conftest.$ac_ext <<EOF
9448 #line 9449 "configure"
9449 #include "confdefs.h"
9450 #include <math.h>
9451 int main() {
9452  frexpf(0, 0);
9453 ; return 0; }
9454 EOF
9455 if { (eval echo configure:9456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9456   rm -rf conftest*
9457   glibcpp_cv_func_frexpf_use=yes
9458 else
9459   echo "configure: failed program was:" >&5
9460   cat conftest.$ac_ext >&5
9461   rm -rf conftest*
9462   glibcpp_cv_func_frexpf_use=no
9463 fi
9464 rm -f conftest*
9465       ac_ext=c
9466 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9467 ac_cpp='$CPP $CPPFLAGS'
9468 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9469 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9470 cross_compiling=$ac_cv_prog_cc_cross
9471
9472     
9473 fi
9474
9475   fi
9476   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
9477
9478   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
9479     for ac_func in frexpf
9480 do
9481 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9482 echo "configure:9483: checking for $ac_func" >&5
9483 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9484   echo $ac_n "(cached) $ac_c" 1>&6
9485 else
9486   cat > conftest.$ac_ext <<EOF
9487 #line 9488 "configure"
9488 #include "confdefs.h"
9489 /* System header to define __stub macros and hopefully few prototypes,
9490     which can conflict with char $ac_func(); below.  */
9491 #include <assert.h>
9492 /* Override any gcc2 internal prototype to avoid an error.  */
9493 /* We use char because int might match the return type of a gcc2
9494     builtin and then its argument prototype would still apply.  */
9495 char $ac_func();
9496
9497 int main() {
9498
9499 /* The GNU C library defines this for functions which it implements
9500     to always fail with ENOSYS.  Some functions are actually named
9501     something starting with __ and the normal name is an alias.  */
9502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9503 choke me
9504 #else
9505 $ac_func();
9506 #endif
9507
9508 ; return 0; }
9509 EOF
9510 if { (eval echo configure:9511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9511   rm -rf conftest*
9512   eval "ac_cv_func_$ac_func=yes"
9513 else
9514   echo "configure: failed program was:" >&5
9515   cat conftest.$ac_ext >&5
9516   rm -rf conftest*
9517   eval "ac_cv_func_$ac_func=no"
9518 fi
9519 rm -f conftest*
9520 fi
9521
9522 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9523   echo "$ac_t""yes" 1>&6
9524     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9525   cat >> confdefs.h <<EOF
9526 #define $ac_tr_func 1
9527 EOF
9528  
9529 else
9530   echo "$ac_t""no" 1>&6
9531 fi
9532 done
9533     
9534   else
9535     
9536   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9537 echo "configure:9538: checking for _frexpf declaration" >&5
9538   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9539     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9540   echo $ac_n "(cached) $ac_c" 1>&6
9541 else
9542   
9543       
9544       ac_ext=C
9545 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9546 ac_cpp='$CXXCPP $CPPFLAGS'
9547 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9548 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9549 cross_compiling=$ac_cv_prog_cxx_cross
9550
9551       cat > conftest.$ac_ext <<EOF
9552 #line 9553 "configure"
9553 #include "confdefs.h"
9554 #include <math.h>
9555 int main() {
9556  _frexpf(0, 0);
9557 ; return 0; }
9558 EOF
9559 if { (eval echo configure:9560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9560   rm -rf conftest*
9561   glibcpp_cv_func__frexpf_use=yes
9562 else
9563   echo "configure: failed program was:" >&5
9564   cat conftest.$ac_ext >&5
9565   rm -rf conftest*
9566   glibcpp_cv_func__frexpf_use=no
9567 fi
9568 rm -f conftest*
9569       ac_ext=c
9570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9571 ac_cpp='$CPP $CPPFLAGS'
9572 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9573 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9574 cross_compiling=$ac_cv_prog_cc_cross
9575
9576     
9577 fi
9578
9579   fi
9580   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9581
9582     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9583       for ac_func in _frexpf
9584 do
9585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9586 echo "configure:9587: checking for $ac_func" >&5
9587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9588   echo $ac_n "(cached) $ac_c" 1>&6
9589 else
9590   cat > conftest.$ac_ext <<EOF
9591 #line 9592 "configure"
9592 #include "confdefs.h"
9593 /* System header to define __stub macros and hopefully few prototypes,
9594     which can conflict with char $ac_func(); below.  */
9595 #include <assert.h>
9596 /* Override any gcc2 internal prototype to avoid an error.  */
9597 /* We use char because int might match the return type of a gcc2
9598     builtin and then its argument prototype would still apply.  */
9599 char $ac_func();
9600
9601 int main() {
9602
9603 /* The GNU C library defines this for functions which it implements
9604     to always fail with ENOSYS.  Some functions are actually named
9605     something starting with __ and the normal name is an alias.  */
9606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9607 choke me
9608 #else
9609 $ac_func();
9610 #endif
9611
9612 ; return 0; }
9613 EOF
9614 if { (eval echo configure:9615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9615   rm -rf conftest*
9616   eval "ac_cv_func_$ac_func=yes"
9617 else
9618   echo "configure: failed program was:" >&5
9619   cat conftest.$ac_ext >&5
9620   rm -rf conftest*
9621   eval "ac_cv_func_$ac_func=no"
9622 fi
9623 rm -f conftest*
9624 fi
9625
9626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9627   echo "$ac_t""yes" 1>&6
9628     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9629   cat >> confdefs.h <<EOF
9630 #define $ac_tr_func 1
9631 EOF
9632  
9633 else
9634   echo "$ac_t""no" 1>&6
9635 fi
9636 done
9637     
9638     fi
9639   fi
9640
9641   
9642   
9643   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
9644 echo "configure:9645: checking for hypotf declaration" >&5
9645   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
9646     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
9647   echo $ac_n "(cached) $ac_c" 1>&6
9648 else
9649   
9650       
9651       ac_ext=C
9652 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9653 ac_cpp='$CXXCPP $CPPFLAGS'
9654 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9655 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9656 cross_compiling=$ac_cv_prog_cxx_cross
9657
9658       cat > conftest.$ac_ext <<EOF
9659 #line 9660 "configure"
9660 #include "confdefs.h"
9661 #include <math.h>
9662 int main() {
9663  hypotf(0, 0);
9664 ; return 0; }
9665 EOF
9666 if { (eval echo configure:9667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9667   rm -rf conftest*
9668   glibcpp_cv_func_hypotf_use=yes
9669 else
9670   echo "configure: failed program was:" >&5
9671   cat conftest.$ac_ext >&5
9672   rm -rf conftest*
9673   glibcpp_cv_func_hypotf_use=no
9674 fi
9675 rm -f conftest*
9676       ac_ext=c
9677 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9678 ac_cpp='$CPP $CPPFLAGS'
9679 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9680 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9681 cross_compiling=$ac_cv_prog_cc_cross
9682
9683     
9684 fi
9685
9686   fi
9687   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
9688
9689   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
9690     for ac_func in hypotf
9691 do
9692 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9693 echo "configure:9694: checking for $ac_func" >&5
9694 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9695   echo $ac_n "(cached) $ac_c" 1>&6
9696 else
9697   cat > conftest.$ac_ext <<EOF
9698 #line 9699 "configure"
9699 #include "confdefs.h"
9700 /* System header to define __stub macros and hopefully few prototypes,
9701     which can conflict with char $ac_func(); below.  */
9702 #include <assert.h>
9703 /* Override any gcc2 internal prototype to avoid an error.  */
9704 /* We use char because int might match the return type of a gcc2
9705     builtin and then its argument prototype would still apply.  */
9706 char $ac_func();
9707
9708 int main() {
9709
9710 /* The GNU C library defines this for functions which it implements
9711     to always fail with ENOSYS.  Some functions are actually named
9712     something starting with __ and the normal name is an alias.  */
9713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9714 choke me
9715 #else
9716 $ac_func();
9717 #endif
9718
9719 ; return 0; }
9720 EOF
9721 if { (eval echo configure:9722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9722   rm -rf conftest*
9723   eval "ac_cv_func_$ac_func=yes"
9724 else
9725   echo "configure: failed program was:" >&5
9726   cat conftest.$ac_ext >&5
9727   rm -rf conftest*
9728   eval "ac_cv_func_$ac_func=no"
9729 fi
9730 rm -f conftest*
9731 fi
9732
9733 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9734   echo "$ac_t""yes" 1>&6
9735     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9736   cat >> confdefs.h <<EOF
9737 #define $ac_tr_func 1
9738 EOF
9739  
9740 else
9741   echo "$ac_t""no" 1>&6
9742 fi
9743 done
9744     
9745   else
9746     
9747   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
9748 echo "configure:9749: checking for _hypotf declaration" >&5
9749   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
9750     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
9751   echo $ac_n "(cached) $ac_c" 1>&6
9752 else
9753   
9754       
9755       ac_ext=C
9756 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9757 ac_cpp='$CXXCPP $CPPFLAGS'
9758 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9759 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9760 cross_compiling=$ac_cv_prog_cxx_cross
9761
9762       cat > conftest.$ac_ext <<EOF
9763 #line 9764 "configure"
9764 #include "confdefs.h"
9765 #include <math.h>
9766 int main() {
9767  _hypotf(0, 0);
9768 ; return 0; }
9769 EOF
9770 if { (eval echo configure:9771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9771   rm -rf conftest*
9772   glibcpp_cv_func__hypotf_use=yes
9773 else
9774   echo "configure: failed program was:" >&5
9775   cat conftest.$ac_ext >&5
9776   rm -rf conftest*
9777   glibcpp_cv_func__hypotf_use=no
9778 fi
9779 rm -f conftest*
9780       ac_ext=c
9781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9782 ac_cpp='$CPP $CPPFLAGS'
9783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9785 cross_compiling=$ac_cv_prog_cc_cross
9786
9787     
9788 fi
9789
9790   fi
9791   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
9792
9793     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
9794       for ac_func in _hypotf
9795 do
9796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9797 echo "configure:9798: checking for $ac_func" >&5
9798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9799   echo $ac_n "(cached) $ac_c" 1>&6
9800 else
9801   cat > conftest.$ac_ext <<EOF
9802 #line 9803 "configure"
9803 #include "confdefs.h"
9804 /* System header to define __stub macros and hopefully few prototypes,
9805     which can conflict with char $ac_func(); below.  */
9806 #include <assert.h>
9807 /* Override any gcc2 internal prototype to avoid an error.  */
9808 /* We use char because int might match the return type of a gcc2
9809     builtin and then its argument prototype would still apply.  */
9810 char $ac_func();
9811
9812 int main() {
9813
9814 /* The GNU C library defines this for functions which it implements
9815     to always fail with ENOSYS.  Some functions are actually named
9816     something starting with __ and the normal name is an alias.  */
9817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9818 choke me
9819 #else
9820 $ac_func();
9821 #endif
9822
9823 ; return 0; }
9824 EOF
9825 if { (eval echo configure:9826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9826   rm -rf conftest*
9827   eval "ac_cv_func_$ac_func=yes"
9828 else
9829   echo "configure: failed program was:" >&5
9830   cat conftest.$ac_ext >&5
9831   rm -rf conftest*
9832   eval "ac_cv_func_$ac_func=no"
9833 fi
9834 rm -f conftest*
9835 fi
9836
9837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9838   echo "$ac_t""yes" 1>&6
9839     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9840   cat >> confdefs.h <<EOF
9841 #define $ac_tr_func 1
9842 EOF
9843  
9844 else
9845   echo "$ac_t""no" 1>&6
9846 fi
9847 done
9848     
9849     fi
9850   fi
9851
9852   
9853   
9854   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9855 echo "configure:9856: checking for ldexpf declaration" >&5
9856   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
9857     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
9858   echo $ac_n "(cached) $ac_c" 1>&6
9859 else
9860   
9861       
9862       ac_ext=C
9863 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9864 ac_cpp='$CXXCPP $CPPFLAGS'
9865 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9866 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9867 cross_compiling=$ac_cv_prog_cxx_cross
9868
9869       cat > conftest.$ac_ext <<EOF
9870 #line 9871 "configure"
9871 #include "confdefs.h"
9872 #include <math.h>
9873 int main() {
9874  ldexpf(0, 0);
9875 ; return 0; }
9876 EOF
9877 if { (eval echo configure:9878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9878   rm -rf conftest*
9879   glibcpp_cv_func_ldexpf_use=yes
9880 else
9881   echo "configure: failed program was:" >&5
9882   cat conftest.$ac_ext >&5
9883   rm -rf conftest*
9884   glibcpp_cv_func_ldexpf_use=no
9885 fi
9886 rm -f conftest*
9887       ac_ext=c
9888 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9889 ac_cpp='$CPP $CPPFLAGS'
9890 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9891 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9892 cross_compiling=$ac_cv_prog_cc_cross
9893
9894     
9895 fi
9896
9897   fi
9898   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
9899
9900   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
9901     for ac_func in ldexpf
9902 do
9903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9904 echo "configure:9905: checking for $ac_func" >&5
9905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9906   echo $ac_n "(cached) $ac_c" 1>&6
9907 else
9908   cat > conftest.$ac_ext <<EOF
9909 #line 9910 "configure"
9910 #include "confdefs.h"
9911 /* System header to define __stub macros and hopefully few prototypes,
9912     which can conflict with char $ac_func(); below.  */
9913 #include <assert.h>
9914 /* Override any gcc2 internal prototype to avoid an error.  */
9915 /* We use char because int might match the return type of a gcc2
9916     builtin and then its argument prototype would still apply.  */
9917 char $ac_func();
9918
9919 int main() {
9920
9921 /* The GNU C library defines this for functions which it implements
9922     to always fail with ENOSYS.  Some functions are actually named
9923     something starting with __ and the normal name is an alias.  */
9924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9925 choke me
9926 #else
9927 $ac_func();
9928 #endif
9929
9930 ; return 0; }
9931 EOF
9932 if { (eval echo configure:9933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9933   rm -rf conftest*
9934   eval "ac_cv_func_$ac_func=yes"
9935 else
9936   echo "configure: failed program was:" >&5
9937   cat conftest.$ac_ext >&5
9938   rm -rf conftest*
9939   eval "ac_cv_func_$ac_func=no"
9940 fi
9941 rm -f conftest*
9942 fi
9943
9944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9945   echo "$ac_t""yes" 1>&6
9946     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9947   cat >> confdefs.h <<EOF
9948 #define $ac_tr_func 1
9949 EOF
9950  
9951 else
9952   echo "$ac_t""no" 1>&6
9953 fi
9954 done
9955     
9956   else
9957     
9958   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
9959 echo "configure:9960: checking for _ldexpf declaration" >&5
9960   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
9961     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
9962   echo $ac_n "(cached) $ac_c" 1>&6
9963 else
9964   
9965       
9966       ac_ext=C
9967 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9968 ac_cpp='$CXXCPP $CPPFLAGS'
9969 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9970 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9971 cross_compiling=$ac_cv_prog_cxx_cross
9972
9973       cat > conftest.$ac_ext <<EOF
9974 #line 9975 "configure"
9975 #include "confdefs.h"
9976 #include <math.h>
9977 int main() {
9978  _ldexpf(0, 0);
9979 ; return 0; }
9980 EOF
9981 if { (eval echo configure:9982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9982   rm -rf conftest*
9983   glibcpp_cv_func__ldexpf_use=yes
9984 else
9985   echo "configure: failed program was:" >&5
9986   cat conftest.$ac_ext >&5
9987   rm -rf conftest*
9988   glibcpp_cv_func__ldexpf_use=no
9989 fi
9990 rm -f conftest*
9991       ac_ext=c
9992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9993 ac_cpp='$CPP $CPPFLAGS'
9994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9996 cross_compiling=$ac_cv_prog_cc_cross
9997
9998     
9999 fi
10000
10001   fi
10002   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
10003
10004     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
10005       for ac_func in _ldexpf
10006 do
10007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10008 echo "configure:10009: checking for $ac_func" >&5
10009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10010   echo $ac_n "(cached) $ac_c" 1>&6
10011 else
10012   cat > conftest.$ac_ext <<EOF
10013 #line 10014 "configure"
10014 #include "confdefs.h"
10015 /* System header to define __stub macros and hopefully few prototypes,
10016     which can conflict with char $ac_func(); below.  */
10017 #include <assert.h>
10018 /* Override any gcc2 internal prototype to avoid an error.  */
10019 /* We use char because int might match the return type of a gcc2
10020     builtin and then its argument prototype would still apply.  */
10021 char $ac_func();
10022
10023 int main() {
10024
10025 /* The GNU C library defines this for functions which it implements
10026     to always fail with ENOSYS.  Some functions are actually named
10027     something starting with __ and the normal name is an alias.  */
10028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10029 choke me
10030 #else
10031 $ac_func();
10032 #endif
10033
10034 ; return 0; }
10035 EOF
10036 if { (eval echo configure:10037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10037   rm -rf conftest*
10038   eval "ac_cv_func_$ac_func=yes"
10039 else
10040   echo "configure: failed program was:" >&5
10041   cat conftest.$ac_ext >&5
10042   rm -rf conftest*
10043   eval "ac_cv_func_$ac_func=no"
10044 fi
10045 rm -f conftest*
10046 fi
10047
10048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10049   echo "$ac_t""yes" 1>&6
10050     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10051   cat >> confdefs.h <<EOF
10052 #define $ac_tr_func 1
10053 EOF
10054  
10055 else
10056   echo "$ac_t""no" 1>&6
10057 fi
10058 done
10059     
10060     fi
10061   fi
10062
10063   
10064   
10065   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
10066 echo "configure:10067: checking for logf declaration" >&5
10067   if test x${glibcpp_cv_func_logf_use+set} != xset; then
10068     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
10069   echo $ac_n "(cached) $ac_c" 1>&6
10070 else
10071   
10072       
10073       ac_ext=C
10074 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10075 ac_cpp='$CXXCPP $CPPFLAGS'
10076 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10077 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10078 cross_compiling=$ac_cv_prog_cxx_cross
10079
10080       cat > conftest.$ac_ext <<EOF
10081 #line 10082 "configure"
10082 #include "confdefs.h"
10083 #include <math.h>
10084                       #ifdef HAVE_IEEEFP_H
10085                       #include <ieeefp.h>
10086                       #endif
10087                      
10088 int main() {
10089  logf(0);
10090 ; return 0; }
10091 EOF
10092 if { (eval echo configure:10093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10093   rm -rf conftest*
10094   glibcpp_cv_func_logf_use=yes
10095 else
10096   echo "configure: failed program was:" >&5
10097   cat conftest.$ac_ext >&5
10098   rm -rf conftest*
10099   glibcpp_cv_func_logf_use=no
10100 fi
10101 rm -f conftest*
10102       ac_ext=c
10103 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10104 ac_cpp='$CPP $CPPFLAGS'
10105 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10106 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10107 cross_compiling=$ac_cv_prog_cc_cross
10108
10109     
10110 fi
10111
10112   fi
10113   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
10114
10115   if test x$glibcpp_cv_func_logf_use = x"yes"; then
10116     for ac_func in logf
10117 do
10118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10119 echo "configure:10120: checking for $ac_func" >&5
10120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10121   echo $ac_n "(cached) $ac_c" 1>&6
10122 else
10123   cat > conftest.$ac_ext <<EOF
10124 #line 10125 "configure"
10125 #include "confdefs.h"
10126 /* System header to define __stub macros and hopefully few prototypes,
10127     which can conflict with char $ac_func(); below.  */
10128 #include <assert.h>
10129 /* Override any gcc2 internal prototype to avoid an error.  */
10130 /* We use char because int might match the return type of a gcc2
10131     builtin and then its argument prototype would still apply.  */
10132 char $ac_func();
10133
10134 int main() {
10135
10136 /* The GNU C library defines this for functions which it implements
10137     to always fail with ENOSYS.  Some functions are actually named
10138     something starting with __ and the normal name is an alias.  */
10139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10140 choke me
10141 #else
10142 $ac_func();
10143 #endif
10144
10145 ; return 0; }
10146 EOF
10147 if { (eval echo configure:10148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10148   rm -rf conftest*
10149   eval "ac_cv_func_$ac_func=yes"
10150 else
10151   echo "configure: failed program was:" >&5
10152   cat conftest.$ac_ext >&5
10153   rm -rf conftest*
10154   eval "ac_cv_func_$ac_func=no"
10155 fi
10156 rm -f conftest*
10157 fi
10158
10159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10160   echo "$ac_t""yes" 1>&6
10161     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10162   cat >> confdefs.h <<EOF
10163 #define $ac_tr_func 1
10164 EOF
10165  
10166 else
10167   echo "$ac_t""no" 1>&6
10168 fi
10169 done
10170     
10171   else
10172     
10173   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
10174 echo "configure:10175: checking for _logf declaration" >&5
10175   if test x${glibcpp_cv_func__logf_use+set} != xset; then
10176     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
10177   echo $ac_n "(cached) $ac_c" 1>&6
10178 else
10179   
10180       
10181       ac_ext=C
10182 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10183 ac_cpp='$CXXCPP $CPPFLAGS'
10184 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10185 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10186 cross_compiling=$ac_cv_prog_cxx_cross
10187
10188       cat > conftest.$ac_ext <<EOF
10189 #line 10190 "configure"
10190 #include "confdefs.h"
10191 #include <math.h>
10192                       #ifdef HAVE_IEEEFP_H
10193                       #include <ieeefp.h>
10194                       #endif
10195                      
10196 int main() {
10197  _logf(0);
10198 ; return 0; }
10199 EOF
10200 if { (eval echo configure:10201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10201   rm -rf conftest*
10202   glibcpp_cv_func__logf_use=yes
10203 else
10204   echo "configure: failed program was:" >&5
10205   cat conftest.$ac_ext >&5
10206   rm -rf conftest*
10207   glibcpp_cv_func__logf_use=no
10208 fi
10209 rm -f conftest*
10210       ac_ext=c
10211 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10212 ac_cpp='$CPP $CPPFLAGS'
10213 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10214 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10215 cross_compiling=$ac_cv_prog_cc_cross
10216
10217     
10218 fi
10219
10220   fi
10221   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
10222
10223     if test x$glibcpp_cv_func__logf_use = x"yes"; then
10224       for ac_func in _logf
10225 do
10226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10227 echo "configure:10228: checking for $ac_func" >&5
10228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10229   echo $ac_n "(cached) $ac_c" 1>&6
10230 else
10231   cat > conftest.$ac_ext <<EOF
10232 #line 10233 "configure"
10233 #include "confdefs.h"
10234 /* System header to define __stub macros and hopefully few prototypes,
10235     which can conflict with char $ac_func(); below.  */
10236 #include <assert.h>
10237 /* Override any gcc2 internal prototype to avoid an error.  */
10238 /* We use char because int might match the return type of a gcc2
10239     builtin and then its argument prototype would still apply.  */
10240 char $ac_func();
10241
10242 int main() {
10243
10244 /* The GNU C library defines this for functions which it implements
10245     to always fail with ENOSYS.  Some functions are actually named
10246     something starting with __ and the normal name is an alias.  */
10247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10248 choke me
10249 #else
10250 $ac_func();
10251 #endif
10252
10253 ; return 0; }
10254 EOF
10255 if { (eval echo configure:10256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10256   rm -rf conftest*
10257   eval "ac_cv_func_$ac_func=yes"
10258 else
10259   echo "configure: failed program was:" >&5
10260   cat conftest.$ac_ext >&5
10261   rm -rf conftest*
10262   eval "ac_cv_func_$ac_func=no"
10263 fi
10264 rm -f conftest*
10265 fi
10266
10267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10268   echo "$ac_t""yes" 1>&6
10269     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10270   cat >> confdefs.h <<EOF
10271 #define $ac_tr_func 1
10272 EOF
10273  
10274 else
10275   echo "$ac_t""no" 1>&6
10276 fi
10277 done
10278     
10279     fi
10280   fi
10281
10282   
10283   
10284   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
10285 echo "configure:10286: checking for log10f declaration" >&5
10286   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
10287     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
10288   echo $ac_n "(cached) $ac_c" 1>&6
10289 else
10290   
10291       
10292       ac_ext=C
10293 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10294 ac_cpp='$CXXCPP $CPPFLAGS'
10295 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10296 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10297 cross_compiling=$ac_cv_prog_cxx_cross
10298
10299       cat > conftest.$ac_ext <<EOF
10300 #line 10301 "configure"
10301 #include "confdefs.h"
10302 #include <math.h>
10303                       #ifdef HAVE_IEEEFP_H
10304                       #include <ieeefp.h>
10305                       #endif
10306                      
10307 int main() {
10308  log10f(0);
10309 ; return 0; }
10310 EOF
10311 if { (eval echo configure:10312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10312   rm -rf conftest*
10313   glibcpp_cv_func_log10f_use=yes
10314 else
10315   echo "configure: failed program was:" >&5
10316   cat conftest.$ac_ext >&5
10317   rm -rf conftest*
10318   glibcpp_cv_func_log10f_use=no
10319 fi
10320 rm -f conftest*
10321       ac_ext=c
10322 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10323 ac_cpp='$CPP $CPPFLAGS'
10324 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10325 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10326 cross_compiling=$ac_cv_prog_cc_cross
10327
10328     
10329 fi
10330
10331   fi
10332   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
10333
10334   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
10335     for ac_func in log10f
10336 do
10337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10338 echo "configure:10339: checking for $ac_func" >&5
10339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10340   echo $ac_n "(cached) $ac_c" 1>&6
10341 else
10342   cat > conftest.$ac_ext <<EOF
10343 #line 10344 "configure"
10344 #include "confdefs.h"
10345 /* System header to define __stub macros and hopefully few prototypes,
10346     which can conflict with char $ac_func(); below.  */
10347 #include <assert.h>
10348 /* Override any gcc2 internal prototype to avoid an error.  */
10349 /* We use char because int might match the return type of a gcc2
10350     builtin and then its argument prototype would still apply.  */
10351 char $ac_func();
10352
10353 int main() {
10354
10355 /* The GNU C library defines this for functions which it implements
10356     to always fail with ENOSYS.  Some functions are actually named
10357     something starting with __ and the normal name is an alias.  */
10358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10359 choke me
10360 #else
10361 $ac_func();
10362 #endif
10363
10364 ; return 0; }
10365 EOF
10366 if { (eval echo configure:10367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10367   rm -rf conftest*
10368   eval "ac_cv_func_$ac_func=yes"
10369 else
10370   echo "configure: failed program was:" >&5
10371   cat conftest.$ac_ext >&5
10372   rm -rf conftest*
10373   eval "ac_cv_func_$ac_func=no"
10374 fi
10375 rm -f conftest*
10376 fi
10377
10378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10379   echo "$ac_t""yes" 1>&6
10380     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10381   cat >> confdefs.h <<EOF
10382 #define $ac_tr_func 1
10383 EOF
10384  
10385 else
10386   echo "$ac_t""no" 1>&6
10387 fi
10388 done
10389     
10390   else
10391     
10392   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
10393 echo "configure:10394: checking for _log10f declaration" >&5
10394   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
10395     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
10396   echo $ac_n "(cached) $ac_c" 1>&6
10397 else
10398   
10399       
10400       ac_ext=C
10401 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10402 ac_cpp='$CXXCPP $CPPFLAGS'
10403 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10404 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10405 cross_compiling=$ac_cv_prog_cxx_cross
10406
10407       cat > conftest.$ac_ext <<EOF
10408 #line 10409 "configure"
10409 #include "confdefs.h"
10410 #include <math.h>
10411                       #ifdef HAVE_IEEEFP_H
10412                       #include <ieeefp.h>
10413                       #endif
10414                      
10415 int main() {
10416  _log10f(0);
10417 ; return 0; }
10418 EOF
10419 if { (eval echo configure:10420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10420   rm -rf conftest*
10421   glibcpp_cv_func__log10f_use=yes
10422 else
10423   echo "configure: failed program was:" >&5
10424   cat conftest.$ac_ext >&5
10425   rm -rf conftest*
10426   glibcpp_cv_func__log10f_use=no
10427 fi
10428 rm -f conftest*
10429       ac_ext=c
10430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10431 ac_cpp='$CPP $CPPFLAGS'
10432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10434 cross_compiling=$ac_cv_prog_cc_cross
10435
10436     
10437 fi
10438
10439   fi
10440   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
10441
10442     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
10443       for ac_func in _log10f
10444 do
10445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10446 echo "configure:10447: checking for $ac_func" >&5
10447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10448   echo $ac_n "(cached) $ac_c" 1>&6
10449 else
10450   cat > conftest.$ac_ext <<EOF
10451 #line 10452 "configure"
10452 #include "confdefs.h"
10453 /* System header to define __stub macros and hopefully few prototypes,
10454     which can conflict with char $ac_func(); below.  */
10455 #include <assert.h>
10456 /* Override any gcc2 internal prototype to avoid an error.  */
10457 /* We use char because int might match the return type of a gcc2
10458     builtin and then its argument prototype would still apply.  */
10459 char $ac_func();
10460
10461 int main() {
10462
10463 /* The GNU C library defines this for functions which it implements
10464     to always fail with ENOSYS.  Some functions are actually named
10465     something starting with __ and the normal name is an alias.  */
10466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10467 choke me
10468 #else
10469 $ac_func();
10470 #endif
10471
10472 ; return 0; }
10473 EOF
10474 if { (eval echo configure:10475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10475   rm -rf conftest*
10476   eval "ac_cv_func_$ac_func=yes"
10477 else
10478   echo "configure: failed program was:" >&5
10479   cat conftest.$ac_ext >&5
10480   rm -rf conftest*
10481   eval "ac_cv_func_$ac_func=no"
10482 fi
10483 rm -f conftest*
10484 fi
10485
10486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10487   echo "$ac_t""yes" 1>&6
10488     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10489   cat >> confdefs.h <<EOF
10490 #define $ac_tr_func 1
10491 EOF
10492  
10493 else
10494   echo "$ac_t""no" 1>&6
10495 fi
10496 done
10497     
10498     fi
10499   fi
10500
10501   
10502   
10503   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
10504 echo "configure:10505: checking for modff declaration" >&5
10505   if test x${glibcpp_cv_func_modff_use+set} != xset; then
10506     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
10507   echo $ac_n "(cached) $ac_c" 1>&6
10508 else
10509   
10510       
10511       ac_ext=C
10512 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10513 ac_cpp='$CXXCPP $CPPFLAGS'
10514 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10515 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10516 cross_compiling=$ac_cv_prog_cxx_cross
10517
10518       cat > conftest.$ac_ext <<EOF
10519 #line 10520 "configure"
10520 #include "confdefs.h"
10521 #include <math.h>
10522 int main() {
10523  modff(0, 0);
10524 ; return 0; }
10525 EOF
10526 if { (eval echo configure:10527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10527   rm -rf conftest*
10528   glibcpp_cv_func_modff_use=yes
10529 else
10530   echo "configure: failed program was:" >&5
10531   cat conftest.$ac_ext >&5
10532   rm -rf conftest*
10533   glibcpp_cv_func_modff_use=no
10534 fi
10535 rm -f conftest*
10536       ac_ext=c
10537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10538 ac_cpp='$CPP $CPPFLAGS'
10539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10541 cross_compiling=$ac_cv_prog_cc_cross
10542
10543     
10544 fi
10545
10546   fi
10547   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
10548
10549   if test x$glibcpp_cv_func_modff_use = x"yes"; then
10550     for ac_func in modff
10551 do
10552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10553 echo "configure:10554: checking for $ac_func" >&5
10554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10555   echo $ac_n "(cached) $ac_c" 1>&6
10556 else
10557   cat > conftest.$ac_ext <<EOF
10558 #line 10559 "configure"
10559 #include "confdefs.h"
10560 /* System header to define __stub macros and hopefully few prototypes,
10561     which can conflict with char $ac_func(); below.  */
10562 #include <assert.h>
10563 /* Override any gcc2 internal prototype to avoid an error.  */
10564 /* We use char because int might match the return type of a gcc2
10565     builtin and then its argument prototype would still apply.  */
10566 char $ac_func();
10567
10568 int main() {
10569
10570 /* The GNU C library defines this for functions which it implements
10571     to always fail with ENOSYS.  Some functions are actually named
10572     something starting with __ and the normal name is an alias.  */
10573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10574 choke me
10575 #else
10576 $ac_func();
10577 #endif
10578
10579 ; return 0; }
10580 EOF
10581 if { (eval echo configure:10582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10582   rm -rf conftest*
10583   eval "ac_cv_func_$ac_func=yes"
10584 else
10585   echo "configure: failed program was:" >&5
10586   cat conftest.$ac_ext >&5
10587   rm -rf conftest*
10588   eval "ac_cv_func_$ac_func=no"
10589 fi
10590 rm -f conftest*
10591 fi
10592
10593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10594   echo "$ac_t""yes" 1>&6
10595     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10596   cat >> confdefs.h <<EOF
10597 #define $ac_tr_func 1
10598 EOF
10599  
10600 else
10601   echo "$ac_t""no" 1>&6
10602 fi
10603 done
10604     
10605   else
10606     
10607   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
10608 echo "configure:10609: checking for _modff declaration" >&5
10609   if test x${glibcpp_cv_func__modff_use+set} != xset; then
10610     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
10611   echo $ac_n "(cached) $ac_c" 1>&6
10612 else
10613   
10614       
10615       ac_ext=C
10616 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10617 ac_cpp='$CXXCPP $CPPFLAGS'
10618 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10619 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10620 cross_compiling=$ac_cv_prog_cxx_cross
10621
10622       cat > conftest.$ac_ext <<EOF
10623 #line 10624 "configure"
10624 #include "confdefs.h"
10625 #include <math.h>
10626 int main() {
10627  _modff(0, 0);
10628 ; return 0; }
10629 EOF
10630 if { (eval echo configure:10631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10631   rm -rf conftest*
10632   glibcpp_cv_func__modff_use=yes
10633 else
10634   echo "configure: failed program was:" >&5
10635   cat conftest.$ac_ext >&5
10636   rm -rf conftest*
10637   glibcpp_cv_func__modff_use=no
10638 fi
10639 rm -f conftest*
10640       ac_ext=c
10641 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10642 ac_cpp='$CPP $CPPFLAGS'
10643 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10644 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10645 cross_compiling=$ac_cv_prog_cc_cross
10646
10647     
10648 fi
10649
10650   fi
10651   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
10652
10653     if test x$glibcpp_cv_func__modff_use = x"yes"; then
10654       for ac_func in _modff
10655 do
10656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10657 echo "configure:10658: checking for $ac_func" >&5
10658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10659   echo $ac_n "(cached) $ac_c" 1>&6
10660 else
10661   cat > conftest.$ac_ext <<EOF
10662 #line 10663 "configure"
10663 #include "confdefs.h"
10664 /* System header to define __stub macros and hopefully few prototypes,
10665     which can conflict with char $ac_func(); below.  */
10666 #include <assert.h>
10667 /* Override any gcc2 internal prototype to avoid an error.  */
10668 /* We use char because int might match the return type of a gcc2
10669     builtin and then its argument prototype would still apply.  */
10670 char $ac_func();
10671
10672 int main() {
10673
10674 /* The GNU C library defines this for functions which it implements
10675     to always fail with ENOSYS.  Some functions are actually named
10676     something starting with __ and the normal name is an alias.  */
10677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10678 choke me
10679 #else
10680 $ac_func();
10681 #endif
10682
10683 ; return 0; }
10684 EOF
10685 if { (eval echo configure:10686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10686   rm -rf conftest*
10687   eval "ac_cv_func_$ac_func=yes"
10688 else
10689   echo "configure: failed program was:" >&5
10690   cat conftest.$ac_ext >&5
10691   rm -rf conftest*
10692   eval "ac_cv_func_$ac_func=no"
10693 fi
10694 rm -f conftest*
10695 fi
10696
10697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10698   echo "$ac_t""yes" 1>&6
10699     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10700   cat >> confdefs.h <<EOF
10701 #define $ac_tr_func 1
10702 EOF
10703  
10704 else
10705   echo "$ac_t""no" 1>&6
10706 fi
10707 done
10708     
10709     fi
10710   fi
10711
10712   
10713   
10714   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10715 echo "configure:10716: checking for powf declaration" >&5
10716   if test x${glibcpp_cv_func_powf_use+set} != xset; then
10717     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10718   echo $ac_n "(cached) $ac_c" 1>&6
10719 else
10720   
10721       
10722       ac_ext=C
10723 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10724 ac_cpp='$CXXCPP $CPPFLAGS'
10725 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10726 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10727 cross_compiling=$ac_cv_prog_cxx_cross
10728
10729       cat > conftest.$ac_ext <<EOF
10730 #line 10731 "configure"
10731 #include "confdefs.h"
10732 #include <math.h>
10733 int main() {
10734  powf(0, 0);
10735 ; return 0; }
10736 EOF
10737 if { (eval echo configure:10738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10738   rm -rf conftest*
10739   glibcpp_cv_func_powf_use=yes
10740 else
10741   echo "configure: failed program was:" >&5
10742   cat conftest.$ac_ext >&5
10743   rm -rf conftest*
10744   glibcpp_cv_func_powf_use=no
10745 fi
10746 rm -f conftest*
10747       ac_ext=c
10748 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10749 ac_cpp='$CPP $CPPFLAGS'
10750 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10751 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10752 cross_compiling=$ac_cv_prog_cc_cross
10753
10754     
10755 fi
10756
10757   fi
10758   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10759
10760   if test x$glibcpp_cv_func_powf_use = x"yes"; then
10761     for ac_func in powf
10762 do
10763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10764 echo "configure:10765: checking for $ac_func" >&5
10765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10766   echo $ac_n "(cached) $ac_c" 1>&6
10767 else
10768   cat > conftest.$ac_ext <<EOF
10769 #line 10770 "configure"
10770 #include "confdefs.h"
10771 /* System header to define __stub macros and hopefully few prototypes,
10772     which can conflict with char $ac_func(); below.  */
10773 #include <assert.h>
10774 /* Override any gcc2 internal prototype to avoid an error.  */
10775 /* We use char because int might match the return type of a gcc2
10776     builtin and then its argument prototype would still apply.  */
10777 char $ac_func();
10778
10779 int main() {
10780
10781 /* The GNU C library defines this for functions which it implements
10782     to always fail with ENOSYS.  Some functions are actually named
10783     something starting with __ and the normal name is an alias.  */
10784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10785 choke me
10786 #else
10787 $ac_func();
10788 #endif
10789
10790 ; return 0; }
10791 EOF
10792 if { (eval echo configure:10793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10793   rm -rf conftest*
10794   eval "ac_cv_func_$ac_func=yes"
10795 else
10796   echo "configure: failed program was:" >&5
10797   cat conftest.$ac_ext >&5
10798   rm -rf conftest*
10799   eval "ac_cv_func_$ac_func=no"
10800 fi
10801 rm -f conftest*
10802 fi
10803
10804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10805   echo "$ac_t""yes" 1>&6
10806     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10807   cat >> confdefs.h <<EOF
10808 #define $ac_tr_func 1
10809 EOF
10810  
10811 else
10812   echo "$ac_t""no" 1>&6
10813 fi
10814 done
10815     
10816   else
10817     
10818   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10819 echo "configure:10820: checking for _powf declaration" >&5
10820   if test x${glibcpp_cv_func__powf_use+set} != xset; then
10821     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10822   echo $ac_n "(cached) $ac_c" 1>&6
10823 else
10824   
10825       
10826       ac_ext=C
10827 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10828 ac_cpp='$CXXCPP $CPPFLAGS'
10829 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10830 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10831 cross_compiling=$ac_cv_prog_cxx_cross
10832
10833       cat > conftest.$ac_ext <<EOF
10834 #line 10835 "configure"
10835 #include "confdefs.h"
10836 #include <math.h>
10837 int main() {
10838  _powf(0, 0);
10839 ; return 0; }
10840 EOF
10841 if { (eval echo configure:10842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10842   rm -rf conftest*
10843   glibcpp_cv_func__powf_use=yes
10844 else
10845   echo "configure: failed program was:" >&5
10846   cat conftest.$ac_ext >&5
10847   rm -rf conftest*
10848   glibcpp_cv_func__powf_use=no
10849 fi
10850 rm -f conftest*
10851       ac_ext=c
10852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10853 ac_cpp='$CPP $CPPFLAGS'
10854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10856 cross_compiling=$ac_cv_prog_cc_cross
10857
10858     
10859 fi
10860
10861   fi
10862   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
10863
10864     if test x$glibcpp_cv_func__powf_use = x"yes"; then
10865       for ac_func in _powf
10866 do
10867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10868 echo "configure:10869: checking for $ac_func" >&5
10869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10870   echo $ac_n "(cached) $ac_c" 1>&6
10871 else
10872   cat > conftest.$ac_ext <<EOF
10873 #line 10874 "configure"
10874 #include "confdefs.h"
10875 /* System header to define __stub macros and hopefully few prototypes,
10876     which can conflict with char $ac_func(); below.  */
10877 #include <assert.h>
10878 /* Override any gcc2 internal prototype to avoid an error.  */
10879 /* We use char because int might match the return type of a gcc2
10880     builtin and then its argument prototype would still apply.  */
10881 char $ac_func();
10882
10883 int main() {
10884
10885 /* The GNU C library defines this for functions which it implements
10886     to always fail with ENOSYS.  Some functions are actually named
10887     something starting with __ and the normal name is an alias.  */
10888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10889 choke me
10890 #else
10891 $ac_func();
10892 #endif
10893
10894 ; return 0; }
10895 EOF
10896 if { (eval echo configure:10897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10897   rm -rf conftest*
10898   eval "ac_cv_func_$ac_func=yes"
10899 else
10900   echo "configure: failed program was:" >&5
10901   cat conftest.$ac_ext >&5
10902   rm -rf conftest*
10903   eval "ac_cv_func_$ac_func=no"
10904 fi
10905 rm -f conftest*
10906 fi
10907
10908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10909   echo "$ac_t""yes" 1>&6
10910     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10911   cat >> confdefs.h <<EOF
10912 #define $ac_tr_func 1
10913 EOF
10914  
10915 else
10916   echo "$ac_t""no" 1>&6
10917 fi
10918 done
10919     
10920     fi
10921   fi
10922
10923   
10924   
10925   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
10926 echo "configure:10927: checking for sqrtf declaration" >&5
10927   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
10928     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
10929   echo $ac_n "(cached) $ac_c" 1>&6
10930 else
10931   
10932       
10933       ac_ext=C
10934 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10935 ac_cpp='$CXXCPP $CPPFLAGS'
10936 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10937 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10938 cross_compiling=$ac_cv_prog_cxx_cross
10939
10940       cat > conftest.$ac_ext <<EOF
10941 #line 10942 "configure"
10942 #include "confdefs.h"
10943 #include <math.h>
10944                       #ifdef HAVE_IEEEFP_H
10945                       #include <ieeefp.h>
10946                       #endif
10947                      
10948 int main() {
10949  sqrtf(0);
10950 ; return 0; }
10951 EOF
10952 if { (eval echo configure:10953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10953   rm -rf conftest*
10954   glibcpp_cv_func_sqrtf_use=yes
10955 else
10956   echo "configure: failed program was:" >&5
10957   cat conftest.$ac_ext >&5
10958   rm -rf conftest*
10959   glibcpp_cv_func_sqrtf_use=no
10960 fi
10961 rm -f conftest*
10962       ac_ext=c
10963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10964 ac_cpp='$CPP $CPPFLAGS'
10965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10967 cross_compiling=$ac_cv_prog_cc_cross
10968
10969     
10970 fi
10971
10972   fi
10973   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
10974
10975   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
10976     for ac_func in sqrtf
10977 do
10978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10979 echo "configure:10980: checking for $ac_func" >&5
10980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10981   echo $ac_n "(cached) $ac_c" 1>&6
10982 else
10983   cat > conftest.$ac_ext <<EOF
10984 #line 10985 "configure"
10985 #include "confdefs.h"
10986 /* System header to define __stub macros and hopefully few prototypes,
10987     which can conflict with char $ac_func(); below.  */
10988 #include <assert.h>
10989 /* Override any gcc2 internal prototype to avoid an error.  */
10990 /* We use char because int might match the return type of a gcc2
10991     builtin and then its argument prototype would still apply.  */
10992 char $ac_func();
10993
10994 int main() {
10995
10996 /* The GNU C library defines this for functions which it implements
10997     to always fail with ENOSYS.  Some functions are actually named
10998     something starting with __ and the normal name is an alias.  */
10999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11000 choke me
11001 #else
11002 $ac_func();
11003 #endif
11004
11005 ; return 0; }
11006 EOF
11007 if { (eval echo configure:11008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11008   rm -rf conftest*
11009   eval "ac_cv_func_$ac_func=yes"
11010 else
11011   echo "configure: failed program was:" >&5
11012   cat conftest.$ac_ext >&5
11013   rm -rf conftest*
11014   eval "ac_cv_func_$ac_func=no"
11015 fi
11016 rm -f conftest*
11017 fi
11018
11019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11020   echo "$ac_t""yes" 1>&6
11021     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11022   cat >> confdefs.h <<EOF
11023 #define $ac_tr_func 1
11024 EOF
11025  
11026 else
11027   echo "$ac_t""no" 1>&6
11028 fi
11029 done
11030     
11031   else
11032     
11033   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
11034 echo "configure:11035: checking for _sqrtf declaration" >&5
11035   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
11036     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
11037   echo $ac_n "(cached) $ac_c" 1>&6
11038 else
11039   
11040       
11041       ac_ext=C
11042 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11043 ac_cpp='$CXXCPP $CPPFLAGS'
11044 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11045 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11046 cross_compiling=$ac_cv_prog_cxx_cross
11047
11048       cat > conftest.$ac_ext <<EOF
11049 #line 11050 "configure"
11050 #include "confdefs.h"
11051 #include <math.h>
11052                       #ifdef HAVE_IEEEFP_H
11053                       #include <ieeefp.h>
11054                       #endif
11055                      
11056 int main() {
11057  _sqrtf(0);
11058 ; return 0; }
11059 EOF
11060 if { (eval echo configure:11061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11061   rm -rf conftest*
11062   glibcpp_cv_func__sqrtf_use=yes
11063 else
11064   echo "configure: failed program was:" >&5
11065   cat conftest.$ac_ext >&5
11066   rm -rf conftest*
11067   glibcpp_cv_func__sqrtf_use=no
11068 fi
11069 rm -f conftest*
11070       ac_ext=c
11071 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11072 ac_cpp='$CPP $CPPFLAGS'
11073 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11074 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11075 cross_compiling=$ac_cv_prog_cc_cross
11076
11077     
11078 fi
11079
11080   fi
11081   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
11082
11083     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
11084       for ac_func in _sqrtf
11085 do
11086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11087 echo "configure:11088: checking for $ac_func" >&5
11088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11089   echo $ac_n "(cached) $ac_c" 1>&6
11090 else
11091   cat > conftest.$ac_ext <<EOF
11092 #line 11093 "configure"
11093 #include "confdefs.h"
11094 /* System header to define __stub macros and hopefully few prototypes,
11095     which can conflict with char $ac_func(); below.  */
11096 #include <assert.h>
11097 /* Override any gcc2 internal prototype to avoid an error.  */
11098 /* We use char because int might match the return type of a gcc2
11099     builtin and then its argument prototype would still apply.  */
11100 char $ac_func();
11101
11102 int main() {
11103
11104 /* The GNU C library defines this for functions which it implements
11105     to always fail with ENOSYS.  Some functions are actually named
11106     something starting with __ and the normal name is an alias.  */
11107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11108 choke me
11109 #else
11110 $ac_func();
11111 #endif
11112
11113 ; return 0; }
11114 EOF
11115 if { (eval echo configure:11116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11116   rm -rf conftest*
11117   eval "ac_cv_func_$ac_func=yes"
11118 else
11119   echo "configure: failed program was:" >&5
11120   cat conftest.$ac_ext >&5
11121   rm -rf conftest*
11122   eval "ac_cv_func_$ac_func=no"
11123 fi
11124 rm -f conftest*
11125 fi
11126
11127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11128   echo "$ac_t""yes" 1>&6
11129     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11130   cat >> confdefs.h <<EOF
11131 #define $ac_tr_func 1
11132 EOF
11133  
11134 else
11135   echo "$ac_t""no" 1>&6
11136 fi
11137 done
11138     
11139     fi
11140   fi
11141
11142   
11143   
11144   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
11145 echo "configure:11146: checking for sincosf declaration" >&5
11146   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
11147     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
11148   echo $ac_n "(cached) $ac_c" 1>&6
11149 else
11150   
11151       
11152       ac_ext=C
11153 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11154 ac_cpp='$CXXCPP $CPPFLAGS'
11155 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11156 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11157 cross_compiling=$ac_cv_prog_cxx_cross
11158
11159       cat > conftest.$ac_ext <<EOF
11160 #line 11161 "configure"
11161 #include "confdefs.h"
11162 #include <math.h>
11163 int main() {
11164  sincosf(0, 0, 0);
11165 ; return 0; }
11166 EOF
11167 if { (eval echo configure:11168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11168   rm -rf conftest*
11169   glibcpp_cv_func_sincosf_use=yes
11170 else
11171   echo "configure: failed program was:" >&5
11172   cat conftest.$ac_ext >&5
11173   rm -rf conftest*
11174   glibcpp_cv_func_sincosf_use=no
11175 fi
11176 rm -f conftest*
11177       ac_ext=c
11178 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11179 ac_cpp='$CPP $CPPFLAGS'
11180 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11181 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11182 cross_compiling=$ac_cv_prog_cc_cross
11183
11184     
11185 fi
11186
11187   fi
11188   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
11189
11190   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
11191     for ac_func in sincosf
11192 do
11193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11194 echo "configure:11195: checking for $ac_func" >&5
11195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11196   echo $ac_n "(cached) $ac_c" 1>&6
11197 else
11198   cat > conftest.$ac_ext <<EOF
11199 #line 11200 "configure"
11200 #include "confdefs.h"
11201 /* System header to define __stub macros and hopefully few prototypes,
11202     which can conflict with char $ac_func(); below.  */
11203 #include <assert.h>
11204 /* Override any gcc2 internal prototype to avoid an error.  */
11205 /* We use char because int might match the return type of a gcc2
11206     builtin and then its argument prototype would still apply.  */
11207 char $ac_func();
11208
11209 int main() {
11210
11211 /* The GNU C library defines this for functions which it implements
11212     to always fail with ENOSYS.  Some functions are actually named
11213     something starting with __ and the normal name is an alias.  */
11214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11215 choke me
11216 #else
11217 $ac_func();
11218 #endif
11219
11220 ; return 0; }
11221 EOF
11222 if { (eval echo configure:11223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11223   rm -rf conftest*
11224   eval "ac_cv_func_$ac_func=yes"
11225 else
11226   echo "configure: failed program was:" >&5
11227   cat conftest.$ac_ext >&5
11228   rm -rf conftest*
11229   eval "ac_cv_func_$ac_func=no"
11230 fi
11231 rm -f conftest*
11232 fi
11233
11234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11235   echo "$ac_t""yes" 1>&6
11236     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11237   cat >> confdefs.h <<EOF
11238 #define $ac_tr_func 1
11239 EOF
11240  
11241 else
11242   echo "$ac_t""no" 1>&6
11243 fi
11244 done
11245     
11246   else
11247     
11248   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
11249 echo "configure:11250: checking for _sincosf declaration" >&5
11250   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
11251     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
11252   echo $ac_n "(cached) $ac_c" 1>&6
11253 else
11254   
11255       
11256       ac_ext=C
11257 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11258 ac_cpp='$CXXCPP $CPPFLAGS'
11259 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11260 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11261 cross_compiling=$ac_cv_prog_cxx_cross
11262
11263       cat > conftest.$ac_ext <<EOF
11264 #line 11265 "configure"
11265 #include "confdefs.h"
11266 #include <math.h>
11267 int main() {
11268  _sincosf(0, 0, 0);
11269 ; return 0; }
11270 EOF
11271 if { (eval echo configure:11272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11272   rm -rf conftest*
11273   glibcpp_cv_func__sincosf_use=yes
11274 else
11275   echo "configure: failed program was:" >&5
11276   cat conftest.$ac_ext >&5
11277   rm -rf conftest*
11278   glibcpp_cv_func__sincosf_use=no
11279 fi
11280 rm -f conftest*
11281       ac_ext=c
11282 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11283 ac_cpp='$CPP $CPPFLAGS'
11284 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11285 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11286 cross_compiling=$ac_cv_prog_cc_cross
11287
11288     
11289 fi
11290
11291   fi
11292   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
11293
11294     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
11295       for ac_func in _sincosf
11296 do
11297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11298 echo "configure:11299: checking for $ac_func" >&5
11299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11300   echo $ac_n "(cached) $ac_c" 1>&6
11301 else
11302   cat > conftest.$ac_ext <<EOF
11303 #line 11304 "configure"
11304 #include "confdefs.h"
11305 /* System header to define __stub macros and hopefully few prototypes,
11306     which can conflict with char $ac_func(); below.  */
11307 #include <assert.h>
11308 /* Override any gcc2 internal prototype to avoid an error.  */
11309 /* We use char because int might match the return type of a gcc2
11310     builtin and then its argument prototype would still apply.  */
11311 char $ac_func();
11312
11313 int main() {
11314
11315 /* The GNU C library defines this for functions which it implements
11316     to always fail with ENOSYS.  Some functions are actually named
11317     something starting with __ and the normal name is an alias.  */
11318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11319 choke me
11320 #else
11321 $ac_func();
11322 #endif
11323
11324 ; return 0; }
11325 EOF
11326 if { (eval echo configure:11327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11327   rm -rf conftest*
11328   eval "ac_cv_func_$ac_func=yes"
11329 else
11330   echo "configure: failed program was:" >&5
11331   cat conftest.$ac_ext >&5
11332   rm -rf conftest*
11333   eval "ac_cv_func_$ac_func=no"
11334 fi
11335 rm -f conftest*
11336 fi
11337
11338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11339   echo "$ac_t""yes" 1>&6
11340     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11341   cat >> confdefs.h <<EOF
11342 #define $ac_tr_func 1
11343 EOF
11344  
11345 else
11346   echo "$ac_t""no" 1>&6
11347 fi
11348 done
11349     
11350     fi
11351   fi
11352
11353   
11354   
11355   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
11356 echo "configure:11357: checking for finitef declaration" >&5
11357   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
11358     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
11359   echo $ac_n "(cached) $ac_c" 1>&6
11360 else
11361   
11362       
11363       ac_ext=C
11364 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11365 ac_cpp='$CXXCPP $CPPFLAGS'
11366 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11367 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11368 cross_compiling=$ac_cv_prog_cxx_cross
11369
11370       cat > conftest.$ac_ext <<EOF
11371 #line 11372 "configure"
11372 #include "confdefs.h"
11373 #include <math.h>
11374                       #ifdef HAVE_IEEEFP_H
11375                       #include <ieeefp.h>
11376                       #endif
11377                      
11378 int main() {
11379  finitef(0);
11380 ; return 0; }
11381 EOF
11382 if { (eval echo configure:11383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11383   rm -rf conftest*
11384   glibcpp_cv_func_finitef_use=yes
11385 else
11386   echo "configure: failed program was:" >&5
11387   cat conftest.$ac_ext >&5
11388   rm -rf conftest*
11389   glibcpp_cv_func_finitef_use=no
11390 fi
11391 rm -f conftest*
11392       ac_ext=c
11393 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11394 ac_cpp='$CPP $CPPFLAGS'
11395 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11396 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11397 cross_compiling=$ac_cv_prog_cc_cross
11398
11399     
11400 fi
11401
11402   fi
11403   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
11404
11405   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
11406     for ac_func in finitef
11407 do
11408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11409 echo "configure:11410: checking for $ac_func" >&5
11410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11411   echo $ac_n "(cached) $ac_c" 1>&6
11412 else
11413   cat > conftest.$ac_ext <<EOF
11414 #line 11415 "configure"
11415 #include "confdefs.h"
11416 /* System header to define __stub macros and hopefully few prototypes,
11417     which can conflict with char $ac_func(); below.  */
11418 #include <assert.h>
11419 /* Override any gcc2 internal prototype to avoid an error.  */
11420 /* We use char because int might match the return type of a gcc2
11421     builtin and then its argument prototype would still apply.  */
11422 char $ac_func();
11423
11424 int main() {
11425
11426 /* The GNU C library defines this for functions which it implements
11427     to always fail with ENOSYS.  Some functions are actually named
11428     something starting with __ and the normal name is an alias.  */
11429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11430 choke me
11431 #else
11432 $ac_func();
11433 #endif
11434
11435 ; return 0; }
11436 EOF
11437 if { (eval echo configure:11438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11438   rm -rf conftest*
11439   eval "ac_cv_func_$ac_func=yes"
11440 else
11441   echo "configure: failed program was:" >&5
11442   cat conftest.$ac_ext >&5
11443   rm -rf conftest*
11444   eval "ac_cv_func_$ac_func=no"
11445 fi
11446 rm -f conftest*
11447 fi
11448
11449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11450   echo "$ac_t""yes" 1>&6
11451     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11452   cat >> confdefs.h <<EOF
11453 #define $ac_tr_func 1
11454 EOF
11455  
11456 else
11457   echo "$ac_t""no" 1>&6
11458 fi
11459 done
11460     
11461   else
11462     
11463   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
11464 echo "configure:11465: checking for _finitef declaration" >&5
11465   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
11466     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
11467   echo $ac_n "(cached) $ac_c" 1>&6
11468 else
11469   
11470       
11471       ac_ext=C
11472 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11473 ac_cpp='$CXXCPP $CPPFLAGS'
11474 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11475 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11476 cross_compiling=$ac_cv_prog_cxx_cross
11477
11478       cat > conftest.$ac_ext <<EOF
11479 #line 11480 "configure"
11480 #include "confdefs.h"
11481 #include <math.h>
11482                       #ifdef HAVE_IEEEFP_H
11483                       #include <ieeefp.h>
11484                       #endif
11485                      
11486 int main() {
11487  _finitef(0);
11488 ; return 0; }
11489 EOF
11490 if { (eval echo configure:11491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11491   rm -rf conftest*
11492   glibcpp_cv_func__finitef_use=yes
11493 else
11494   echo "configure: failed program was:" >&5
11495   cat conftest.$ac_ext >&5
11496   rm -rf conftest*
11497   glibcpp_cv_func__finitef_use=no
11498 fi
11499 rm -f conftest*
11500       ac_ext=c
11501 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11502 ac_cpp='$CPP $CPPFLAGS'
11503 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11504 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11505 cross_compiling=$ac_cv_prog_cc_cross
11506
11507     
11508 fi
11509
11510   fi
11511   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
11512
11513     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
11514       for ac_func in _finitef
11515 do
11516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11517 echo "configure:11518: checking for $ac_func" >&5
11518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11519   echo $ac_n "(cached) $ac_c" 1>&6
11520 else
11521   cat > conftest.$ac_ext <<EOF
11522 #line 11523 "configure"
11523 #include "confdefs.h"
11524 /* System header to define __stub macros and hopefully few prototypes,
11525     which can conflict with char $ac_func(); below.  */
11526 #include <assert.h>
11527 /* Override any gcc2 internal prototype to avoid an error.  */
11528 /* We use char because int might match the return type of a gcc2
11529     builtin and then its argument prototype would still apply.  */
11530 char $ac_func();
11531
11532 int main() {
11533
11534 /* The GNU C library defines this for functions which it implements
11535     to always fail with ENOSYS.  Some functions are actually named
11536     something starting with __ and the normal name is an alias.  */
11537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11538 choke me
11539 #else
11540 $ac_func();
11541 #endif
11542
11543 ; return 0; }
11544 EOF
11545 if { (eval echo configure:11546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11546   rm -rf conftest*
11547   eval "ac_cv_func_$ac_func=yes"
11548 else
11549   echo "configure: failed program was:" >&5
11550   cat conftest.$ac_ext >&5
11551   rm -rf conftest*
11552   eval "ac_cv_func_$ac_func=no"
11553 fi
11554 rm -f conftest*
11555 fi
11556
11557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11558   echo "$ac_t""yes" 1>&6
11559     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11560   cat >> confdefs.h <<EOF
11561 #define $ac_tr_func 1
11562 EOF
11563  
11564 else
11565   echo "$ac_t""no" 1>&6
11566 fi
11567 done
11568     
11569     fi
11570   fi
11571
11572
11573     
11574   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
11575 echo "configure:11576: checking for long double trig functions" >&5
11576   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
11577   echo $ac_n "(cached) $ac_c" 1>&6
11578 else
11579   
11580     
11581     ac_ext=C
11582 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11583 ac_cpp='$CXXCPP $CPPFLAGS'
11584 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11585 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11586 cross_compiling=$ac_cv_prog_cxx_cross
11587
11588     cat > conftest.$ac_ext <<EOF
11589 #line 11590 "configure"
11590 #include "confdefs.h"
11591 #include <math.h>
11592 int main() {
11593  `for x in acosl asinl atanl \
11594                                           cosl sinl tanl \
11595                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
11596 ; return 0; }
11597 EOF
11598 if { (eval echo configure:11599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11599   rm -rf conftest*
11600   glibcpp_cv_func_long_double_trig_use=yes
11601 else
11602   echo "configure: failed program was:" >&5
11603   cat conftest.$ac_ext >&5
11604   rm -rf conftest*
11605   glibcpp_cv_func_long_double_trig_use=no
11606 fi
11607 rm -f conftest*
11608     ac_ext=c
11609 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11610 ac_cpp='$CPP $CPPFLAGS'
11611 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11612 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11613 cross_compiling=$ac_cv_prog_cc_cross
11614
11615 fi
11616
11617   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
11618   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
11619     for ac_func in acosl asinl atanl \
11620                                           cosl sinl tanl \
11621                                           coshl sinhl tanhl
11622 do
11623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11624 echo "configure:11625: checking for $ac_func" >&5
11625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11626   echo $ac_n "(cached) $ac_c" 1>&6
11627 else
11628   cat > conftest.$ac_ext <<EOF
11629 #line 11630 "configure"
11630 #include "confdefs.h"
11631 /* System header to define __stub macros and hopefully few prototypes,
11632     which can conflict with char $ac_func(); below.  */
11633 #include <assert.h>
11634 /* Override any gcc2 internal prototype to avoid an error.  */
11635 /* We use char because int might match the return type of a gcc2
11636     builtin and then its argument prototype would still apply.  */
11637 char $ac_func();
11638
11639 int main() {
11640
11641 /* The GNU C library defines this for functions which it implements
11642     to always fail with ENOSYS.  Some functions are actually named
11643     something starting with __ and the normal name is an alias.  */
11644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11645 choke me
11646 #else
11647 $ac_func();
11648 #endif
11649
11650 ; return 0; }
11651 EOF
11652 if { (eval echo configure:11653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11653   rm -rf conftest*
11654   eval "ac_cv_func_$ac_func=yes"
11655 else
11656   echo "configure: failed program was:" >&5
11657   cat conftest.$ac_ext >&5
11658   rm -rf conftest*
11659   eval "ac_cv_func_$ac_func=no"
11660 fi
11661 rm -f conftest*
11662 fi
11663
11664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11665   echo "$ac_t""yes" 1>&6
11666     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11667   cat >> confdefs.h <<EOF
11668 #define $ac_tr_func 1
11669 EOF
11670  
11671 else
11672   echo "$ac_t""no" 1>&6
11673 fi
11674 done
11675
11676   fi
11677
11678   
11679   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
11680 echo "configure:11681: checking for long double round functions" >&5
11681   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
11682   echo $ac_n "(cached) $ac_c" 1>&6
11683 else
11684   
11685     
11686     ac_ext=C
11687 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11688 ac_cpp='$CXXCPP $CPPFLAGS'
11689 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11690 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11691 cross_compiling=$ac_cv_prog_cxx_cross
11692
11693     cat > conftest.$ac_ext <<EOF
11694 #line 11695 "configure"
11695 #include "confdefs.h"
11696 #include <math.h>
11697 int main() {
11698  `for x in ceill floorl; do echo "$x (0);"; done` 
11699 ; return 0; }
11700 EOF
11701 if { (eval echo configure:11702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11702   rm -rf conftest*
11703   glibcpp_cv_func_long_double_round_use=yes
11704 else
11705   echo "configure: failed program was:" >&5
11706   cat conftest.$ac_ext >&5
11707   rm -rf conftest*
11708   glibcpp_cv_func_long_double_round_use=no
11709 fi
11710 rm -f conftest*
11711     ac_ext=c
11712 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11713 ac_cpp='$CPP $CPPFLAGS'
11714 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11715 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11716 cross_compiling=$ac_cv_prog_cc_cross
11717
11718 fi
11719
11720   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11721   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11722     for ac_func in ceill floorl
11723 do
11724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11725 echo "configure:11726: checking for $ac_func" >&5
11726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11727   echo $ac_n "(cached) $ac_c" 1>&6
11728 else
11729   cat > conftest.$ac_ext <<EOF
11730 #line 11731 "configure"
11731 #include "confdefs.h"
11732 /* System header to define __stub macros and hopefully few prototypes,
11733     which can conflict with char $ac_func(); below.  */
11734 #include <assert.h>
11735 /* Override any gcc2 internal prototype to avoid an error.  */
11736 /* We use char because int might match the return type of a gcc2
11737     builtin and then its argument prototype would still apply.  */
11738 char $ac_func();
11739
11740 int main() {
11741
11742 /* The GNU C library defines this for functions which it implements
11743     to always fail with ENOSYS.  Some functions are actually named
11744     something starting with __ and the normal name is an alias.  */
11745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11746 choke me
11747 #else
11748 $ac_func();
11749 #endif
11750
11751 ; return 0; }
11752 EOF
11753 if { (eval echo configure:11754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11754   rm -rf conftest*
11755   eval "ac_cv_func_$ac_func=yes"
11756 else
11757   echo "configure: failed program was:" >&5
11758   cat conftest.$ac_ext >&5
11759   rm -rf conftest*
11760   eval "ac_cv_func_$ac_func=no"
11761 fi
11762 rm -f conftest*
11763 fi
11764
11765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11766   echo "$ac_t""yes" 1>&6
11767     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11768   cat >> confdefs.h <<EOF
11769 #define $ac_tr_func 1
11770 EOF
11771  
11772 else
11773   echo "$ac_t""no" 1>&6
11774 fi
11775 done
11776
11777   fi
11778
11779   
11780   
11781   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11782 echo "configure:11783: checking for isnanl declaration" >&5
11783   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11784     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11785   echo $ac_n "(cached) $ac_c" 1>&6
11786 else
11787   
11788       
11789       ac_ext=C
11790 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11791 ac_cpp='$CXXCPP $CPPFLAGS'
11792 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11793 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11794 cross_compiling=$ac_cv_prog_cxx_cross
11795
11796       cat > conftest.$ac_ext <<EOF
11797 #line 11798 "configure"
11798 #include "confdefs.h"
11799 #include <math.h>
11800                       #ifdef HAVE_IEEEFP_H
11801                       #include <ieeefp.h>
11802                       #endif
11803                      
11804 int main() {
11805  isnanl(0);
11806 ; return 0; }
11807 EOF
11808 if { (eval echo configure:11809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11809   rm -rf conftest*
11810   glibcpp_cv_func_isnanl_use=yes
11811 else
11812   echo "configure: failed program was:" >&5
11813   cat conftest.$ac_ext >&5
11814   rm -rf conftest*
11815   glibcpp_cv_func_isnanl_use=no
11816 fi
11817 rm -f conftest*
11818       ac_ext=c
11819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11820 ac_cpp='$CPP $CPPFLAGS'
11821 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11822 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11823 cross_compiling=$ac_cv_prog_cc_cross
11824
11825     
11826 fi
11827
11828   fi
11829   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11830
11831   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11832     for ac_func in isnanl
11833 do
11834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11835 echo "configure:11836: checking for $ac_func" >&5
11836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11837   echo $ac_n "(cached) $ac_c" 1>&6
11838 else
11839   cat > conftest.$ac_ext <<EOF
11840 #line 11841 "configure"
11841 #include "confdefs.h"
11842 /* System header to define __stub macros and hopefully few prototypes,
11843     which can conflict with char $ac_func(); below.  */
11844 #include <assert.h>
11845 /* Override any gcc2 internal prototype to avoid an error.  */
11846 /* We use char because int might match the return type of a gcc2
11847     builtin and then its argument prototype would still apply.  */
11848 char $ac_func();
11849
11850 int main() {
11851
11852 /* The GNU C library defines this for functions which it implements
11853     to always fail with ENOSYS.  Some functions are actually named
11854     something starting with __ and the normal name is an alias.  */
11855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11856 choke me
11857 #else
11858 $ac_func();
11859 #endif
11860
11861 ; return 0; }
11862 EOF
11863 if { (eval echo configure:11864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11864   rm -rf conftest*
11865   eval "ac_cv_func_$ac_func=yes"
11866 else
11867   echo "configure: failed program was:" >&5
11868   cat conftest.$ac_ext >&5
11869   rm -rf conftest*
11870   eval "ac_cv_func_$ac_func=no"
11871 fi
11872 rm -f conftest*
11873 fi
11874
11875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11876   echo "$ac_t""yes" 1>&6
11877     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11878   cat >> confdefs.h <<EOF
11879 #define $ac_tr_func 1
11880 EOF
11881  
11882 else
11883   echo "$ac_t""no" 1>&6
11884 fi
11885 done
11886     
11887   else
11888     
11889   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
11890 echo "configure:11891: checking for _isnanl declaration" >&5
11891   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
11892     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
11893   echo $ac_n "(cached) $ac_c" 1>&6
11894 else
11895   
11896       
11897       ac_ext=C
11898 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11899 ac_cpp='$CXXCPP $CPPFLAGS'
11900 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11901 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11902 cross_compiling=$ac_cv_prog_cxx_cross
11903
11904       cat > conftest.$ac_ext <<EOF
11905 #line 11906 "configure"
11906 #include "confdefs.h"
11907 #include <math.h>
11908                       #ifdef HAVE_IEEEFP_H
11909                       #include <ieeefp.h>
11910                       #endif
11911                      
11912 int main() {
11913  _isnanl(0);
11914 ; return 0; }
11915 EOF
11916 if { (eval echo configure:11917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11917   rm -rf conftest*
11918   glibcpp_cv_func__isnanl_use=yes
11919 else
11920   echo "configure: failed program was:" >&5
11921   cat conftest.$ac_ext >&5
11922   rm -rf conftest*
11923   glibcpp_cv_func__isnanl_use=no
11924 fi
11925 rm -f conftest*
11926       ac_ext=c
11927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11928 ac_cpp='$CPP $CPPFLAGS'
11929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11931 cross_compiling=$ac_cv_prog_cc_cross
11932
11933     
11934 fi
11935
11936   fi
11937   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
11938
11939     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
11940       for ac_func in _isnanl
11941 do
11942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11943 echo "configure:11944: checking for $ac_func" >&5
11944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11945   echo $ac_n "(cached) $ac_c" 1>&6
11946 else
11947   cat > conftest.$ac_ext <<EOF
11948 #line 11949 "configure"
11949 #include "confdefs.h"
11950 /* System header to define __stub macros and hopefully few prototypes,
11951     which can conflict with char $ac_func(); below.  */
11952 #include <assert.h>
11953 /* Override any gcc2 internal prototype to avoid an error.  */
11954 /* We use char because int might match the return type of a gcc2
11955     builtin and then its argument prototype would still apply.  */
11956 char $ac_func();
11957
11958 int main() {
11959
11960 /* The GNU C library defines this for functions which it implements
11961     to always fail with ENOSYS.  Some functions are actually named
11962     something starting with __ and the normal name is an alias.  */
11963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11964 choke me
11965 #else
11966 $ac_func();
11967 #endif
11968
11969 ; return 0; }
11970 EOF
11971 if { (eval echo configure:11972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11972   rm -rf conftest*
11973   eval "ac_cv_func_$ac_func=yes"
11974 else
11975   echo "configure: failed program was:" >&5
11976   cat conftest.$ac_ext >&5
11977   rm -rf conftest*
11978   eval "ac_cv_func_$ac_func=no"
11979 fi
11980 rm -f conftest*
11981 fi
11982
11983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11984   echo "$ac_t""yes" 1>&6
11985     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11986   cat >> confdefs.h <<EOF
11987 #define $ac_tr_func 1
11988 EOF
11989  
11990 else
11991   echo "$ac_t""no" 1>&6
11992 fi
11993 done
11994     
11995     fi
11996   fi
11997
11998   
11999   
12000   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
12001 echo "configure:12002: checking for isinfl declaration" >&5
12002   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
12003     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
12004   echo $ac_n "(cached) $ac_c" 1>&6
12005 else
12006   
12007       
12008       ac_ext=C
12009 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12010 ac_cpp='$CXXCPP $CPPFLAGS'
12011 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12012 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12013 cross_compiling=$ac_cv_prog_cxx_cross
12014
12015       cat > conftest.$ac_ext <<EOF
12016 #line 12017 "configure"
12017 #include "confdefs.h"
12018 #include <math.h>
12019                       #ifdef HAVE_IEEEFP_H
12020                       #include <ieeefp.h>
12021                       #endif
12022                      
12023 int main() {
12024  isinfl(0);
12025 ; return 0; }
12026 EOF
12027 if { (eval echo configure:12028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12028   rm -rf conftest*
12029   glibcpp_cv_func_isinfl_use=yes
12030 else
12031   echo "configure: failed program was:" >&5
12032   cat conftest.$ac_ext >&5
12033   rm -rf conftest*
12034   glibcpp_cv_func_isinfl_use=no
12035 fi
12036 rm -f conftest*
12037       ac_ext=c
12038 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12039 ac_cpp='$CPP $CPPFLAGS'
12040 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12041 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12042 cross_compiling=$ac_cv_prog_cc_cross
12043
12044     
12045 fi
12046
12047   fi
12048   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
12049
12050   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
12051     for ac_func in isinfl
12052 do
12053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12054 echo "configure:12055: checking for $ac_func" >&5
12055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12056   echo $ac_n "(cached) $ac_c" 1>&6
12057 else
12058   cat > conftest.$ac_ext <<EOF
12059 #line 12060 "configure"
12060 #include "confdefs.h"
12061 /* System header to define __stub macros and hopefully few prototypes,
12062     which can conflict with char $ac_func(); below.  */
12063 #include <assert.h>
12064 /* Override any gcc2 internal prototype to avoid an error.  */
12065 /* We use char because int might match the return type of a gcc2
12066     builtin and then its argument prototype would still apply.  */
12067 char $ac_func();
12068
12069 int main() {
12070
12071 /* The GNU C library defines this for functions which it implements
12072     to always fail with ENOSYS.  Some functions are actually named
12073     something starting with __ and the normal name is an alias.  */
12074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12075 choke me
12076 #else
12077 $ac_func();
12078 #endif
12079
12080 ; return 0; }
12081 EOF
12082 if { (eval echo configure:12083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12083   rm -rf conftest*
12084   eval "ac_cv_func_$ac_func=yes"
12085 else
12086   echo "configure: failed program was:" >&5
12087   cat conftest.$ac_ext >&5
12088   rm -rf conftest*
12089   eval "ac_cv_func_$ac_func=no"
12090 fi
12091 rm -f conftest*
12092 fi
12093
12094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12095   echo "$ac_t""yes" 1>&6
12096     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12097   cat >> confdefs.h <<EOF
12098 #define $ac_tr_func 1
12099 EOF
12100  
12101 else
12102   echo "$ac_t""no" 1>&6
12103 fi
12104 done
12105     
12106   else
12107     
12108   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
12109 echo "configure:12110: checking for _isinfl declaration" >&5
12110   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
12111     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
12112   echo $ac_n "(cached) $ac_c" 1>&6
12113 else
12114   
12115       
12116       ac_ext=C
12117 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12118 ac_cpp='$CXXCPP $CPPFLAGS'
12119 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12120 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12121 cross_compiling=$ac_cv_prog_cxx_cross
12122
12123       cat > conftest.$ac_ext <<EOF
12124 #line 12125 "configure"
12125 #include "confdefs.h"
12126 #include <math.h>
12127                       #ifdef HAVE_IEEEFP_H
12128                       #include <ieeefp.h>
12129                       #endif
12130                      
12131 int main() {
12132  _isinfl(0);
12133 ; return 0; }
12134 EOF
12135 if { (eval echo configure:12136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12136   rm -rf conftest*
12137   glibcpp_cv_func__isinfl_use=yes
12138 else
12139   echo "configure: failed program was:" >&5
12140   cat conftest.$ac_ext >&5
12141   rm -rf conftest*
12142   glibcpp_cv_func__isinfl_use=no
12143 fi
12144 rm -f conftest*
12145       ac_ext=c
12146 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12147 ac_cpp='$CPP $CPPFLAGS'
12148 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12149 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12150 cross_compiling=$ac_cv_prog_cc_cross
12151
12152     
12153 fi
12154
12155   fi
12156   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
12157
12158     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
12159       for ac_func in _isinfl
12160 do
12161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12162 echo "configure:12163: checking for $ac_func" >&5
12163 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12164   echo $ac_n "(cached) $ac_c" 1>&6
12165 else
12166   cat > conftest.$ac_ext <<EOF
12167 #line 12168 "configure"
12168 #include "confdefs.h"
12169 /* System header to define __stub macros and hopefully few prototypes,
12170     which can conflict with char $ac_func(); below.  */
12171 #include <assert.h>
12172 /* Override any gcc2 internal prototype to avoid an error.  */
12173 /* We use char because int might match the return type of a gcc2
12174     builtin and then its argument prototype would still apply.  */
12175 char $ac_func();
12176
12177 int main() {
12178
12179 /* The GNU C library defines this for functions which it implements
12180     to always fail with ENOSYS.  Some functions are actually named
12181     something starting with __ and the normal name is an alias.  */
12182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12183 choke me
12184 #else
12185 $ac_func();
12186 #endif
12187
12188 ; return 0; }
12189 EOF
12190 if { (eval echo configure:12191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12191   rm -rf conftest*
12192   eval "ac_cv_func_$ac_func=yes"
12193 else
12194   echo "configure: failed program was:" >&5
12195   cat conftest.$ac_ext >&5
12196   rm -rf conftest*
12197   eval "ac_cv_func_$ac_func=no"
12198 fi
12199 rm -f conftest*
12200 fi
12201
12202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12203   echo "$ac_t""yes" 1>&6
12204     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12205   cat >> confdefs.h <<EOF
12206 #define $ac_tr_func 1
12207 EOF
12208  
12209 else
12210   echo "$ac_t""no" 1>&6
12211 fi
12212 done
12213     
12214     fi
12215   fi
12216
12217   
12218   
12219   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
12220 echo "configure:12221: checking for copysignl declaration" >&5
12221   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
12222     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
12223   echo $ac_n "(cached) $ac_c" 1>&6
12224 else
12225   
12226       
12227       ac_ext=C
12228 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12229 ac_cpp='$CXXCPP $CPPFLAGS'
12230 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12231 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12232 cross_compiling=$ac_cv_prog_cxx_cross
12233
12234       cat > conftest.$ac_ext <<EOF
12235 #line 12236 "configure"
12236 #include "confdefs.h"
12237 #include <math.h>
12238 int main() {
12239  copysignl(0, 0);
12240 ; return 0; }
12241 EOF
12242 if { (eval echo configure:12243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12243   rm -rf conftest*
12244   glibcpp_cv_func_copysignl_use=yes
12245 else
12246   echo "configure: failed program was:" >&5
12247   cat conftest.$ac_ext >&5
12248   rm -rf conftest*
12249   glibcpp_cv_func_copysignl_use=no
12250 fi
12251 rm -f conftest*
12252       ac_ext=c
12253 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12254 ac_cpp='$CPP $CPPFLAGS'
12255 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12256 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12257 cross_compiling=$ac_cv_prog_cc_cross
12258
12259     
12260 fi
12261
12262   fi
12263   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
12264
12265   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
12266     for ac_func in copysignl
12267 do
12268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12269 echo "configure:12270: checking for $ac_func" >&5
12270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12271   echo $ac_n "(cached) $ac_c" 1>&6
12272 else
12273   cat > conftest.$ac_ext <<EOF
12274 #line 12275 "configure"
12275 #include "confdefs.h"
12276 /* System header to define __stub macros and hopefully few prototypes,
12277     which can conflict with char $ac_func(); below.  */
12278 #include <assert.h>
12279 /* Override any gcc2 internal prototype to avoid an error.  */
12280 /* We use char because int might match the return type of a gcc2
12281     builtin and then its argument prototype would still apply.  */
12282 char $ac_func();
12283
12284 int main() {
12285
12286 /* The GNU C library defines this for functions which it implements
12287     to always fail with ENOSYS.  Some functions are actually named
12288     something starting with __ and the normal name is an alias.  */
12289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12290 choke me
12291 #else
12292 $ac_func();
12293 #endif
12294
12295 ; return 0; }
12296 EOF
12297 if { (eval echo configure:12298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12298   rm -rf conftest*
12299   eval "ac_cv_func_$ac_func=yes"
12300 else
12301   echo "configure: failed program was:" >&5
12302   cat conftest.$ac_ext >&5
12303   rm -rf conftest*
12304   eval "ac_cv_func_$ac_func=no"
12305 fi
12306 rm -f conftest*
12307 fi
12308
12309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12310   echo "$ac_t""yes" 1>&6
12311     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12312   cat >> confdefs.h <<EOF
12313 #define $ac_tr_func 1
12314 EOF
12315  
12316 else
12317   echo "$ac_t""no" 1>&6
12318 fi
12319 done
12320     
12321   else
12322     
12323   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
12324 echo "configure:12325: checking for _copysignl declaration" >&5
12325   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
12326     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
12327   echo $ac_n "(cached) $ac_c" 1>&6
12328 else
12329   
12330       
12331       ac_ext=C
12332 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12333 ac_cpp='$CXXCPP $CPPFLAGS'
12334 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12335 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12336 cross_compiling=$ac_cv_prog_cxx_cross
12337
12338       cat > conftest.$ac_ext <<EOF
12339 #line 12340 "configure"
12340 #include "confdefs.h"
12341 #include <math.h>
12342 int main() {
12343  _copysignl(0, 0);
12344 ; return 0; }
12345 EOF
12346 if { (eval echo configure:12347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12347   rm -rf conftest*
12348   glibcpp_cv_func__copysignl_use=yes
12349 else
12350   echo "configure: failed program was:" >&5
12351   cat conftest.$ac_ext >&5
12352   rm -rf conftest*
12353   glibcpp_cv_func__copysignl_use=no
12354 fi
12355 rm -f conftest*
12356       ac_ext=c
12357 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12358 ac_cpp='$CPP $CPPFLAGS'
12359 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12360 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12361 cross_compiling=$ac_cv_prog_cc_cross
12362
12363     
12364 fi
12365
12366   fi
12367   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
12368
12369     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
12370       for ac_func in _copysignl
12371 do
12372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12373 echo "configure:12374: checking for $ac_func" >&5
12374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12375   echo $ac_n "(cached) $ac_c" 1>&6
12376 else
12377   cat > conftest.$ac_ext <<EOF
12378 #line 12379 "configure"
12379 #include "confdefs.h"
12380 /* System header to define __stub macros and hopefully few prototypes,
12381     which can conflict with char $ac_func(); below.  */
12382 #include <assert.h>
12383 /* Override any gcc2 internal prototype to avoid an error.  */
12384 /* We use char because int might match the return type of a gcc2
12385     builtin and then its argument prototype would still apply.  */
12386 char $ac_func();
12387
12388 int main() {
12389
12390 /* The GNU C library defines this for functions which it implements
12391     to always fail with ENOSYS.  Some functions are actually named
12392     something starting with __ and the normal name is an alias.  */
12393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12394 choke me
12395 #else
12396 $ac_func();
12397 #endif
12398
12399 ; return 0; }
12400 EOF
12401 if { (eval echo configure:12402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12402   rm -rf conftest*
12403   eval "ac_cv_func_$ac_func=yes"
12404 else
12405   echo "configure: failed program was:" >&5
12406   cat conftest.$ac_ext >&5
12407   rm -rf conftest*
12408   eval "ac_cv_func_$ac_func=no"
12409 fi
12410 rm -f conftest*
12411 fi
12412
12413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12414   echo "$ac_t""yes" 1>&6
12415     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12416   cat >> confdefs.h <<EOF
12417 #define $ac_tr_func 1
12418 EOF
12419  
12420 else
12421   echo "$ac_t""no" 1>&6
12422 fi
12423 done
12424     
12425     fi
12426   fi
12427
12428   
12429   
12430   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
12431 echo "configure:12432: checking for atan2l declaration" >&5
12432   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
12433     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
12434   echo $ac_n "(cached) $ac_c" 1>&6
12435 else
12436   
12437       
12438       ac_ext=C
12439 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12440 ac_cpp='$CXXCPP $CPPFLAGS'
12441 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12442 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12443 cross_compiling=$ac_cv_prog_cxx_cross
12444
12445       cat > conftest.$ac_ext <<EOF
12446 #line 12447 "configure"
12447 #include "confdefs.h"
12448 #include <math.h>
12449 int main() {
12450  atan2l(0, 0);
12451 ; return 0; }
12452 EOF
12453 if { (eval echo configure:12454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12454   rm -rf conftest*
12455   glibcpp_cv_func_atan2l_use=yes
12456 else
12457   echo "configure: failed program was:" >&5
12458   cat conftest.$ac_ext >&5
12459   rm -rf conftest*
12460   glibcpp_cv_func_atan2l_use=no
12461 fi
12462 rm -f conftest*
12463       ac_ext=c
12464 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12465 ac_cpp='$CPP $CPPFLAGS'
12466 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12467 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12468 cross_compiling=$ac_cv_prog_cc_cross
12469
12470     
12471 fi
12472
12473   fi
12474   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
12475
12476   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
12477     for ac_func in atan2l
12478 do
12479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12480 echo "configure:12481: checking for $ac_func" >&5
12481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12482   echo $ac_n "(cached) $ac_c" 1>&6
12483 else
12484   cat > conftest.$ac_ext <<EOF
12485 #line 12486 "configure"
12486 #include "confdefs.h"
12487 /* System header to define __stub macros and hopefully few prototypes,
12488     which can conflict with char $ac_func(); below.  */
12489 #include <assert.h>
12490 /* Override any gcc2 internal prototype to avoid an error.  */
12491 /* We use char because int might match the return type of a gcc2
12492     builtin and then its argument prototype would still apply.  */
12493 char $ac_func();
12494
12495 int main() {
12496
12497 /* The GNU C library defines this for functions which it implements
12498     to always fail with ENOSYS.  Some functions are actually named
12499     something starting with __ and the normal name is an alias.  */
12500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12501 choke me
12502 #else
12503 $ac_func();
12504 #endif
12505
12506 ; return 0; }
12507 EOF
12508 if { (eval echo configure:12509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12509   rm -rf conftest*
12510   eval "ac_cv_func_$ac_func=yes"
12511 else
12512   echo "configure: failed program was:" >&5
12513   cat conftest.$ac_ext >&5
12514   rm -rf conftest*
12515   eval "ac_cv_func_$ac_func=no"
12516 fi
12517 rm -f conftest*
12518 fi
12519
12520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12521   echo "$ac_t""yes" 1>&6
12522     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12523   cat >> confdefs.h <<EOF
12524 #define $ac_tr_func 1
12525 EOF
12526  
12527 else
12528   echo "$ac_t""no" 1>&6
12529 fi
12530 done
12531     
12532   else
12533     
12534   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
12535 echo "configure:12536: checking for _atan2l declaration" >&5
12536   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
12537     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
12538   echo $ac_n "(cached) $ac_c" 1>&6
12539 else
12540   
12541       
12542       ac_ext=C
12543 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12544 ac_cpp='$CXXCPP $CPPFLAGS'
12545 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12546 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12547 cross_compiling=$ac_cv_prog_cxx_cross
12548
12549       cat > conftest.$ac_ext <<EOF
12550 #line 12551 "configure"
12551 #include "confdefs.h"
12552 #include <math.h>
12553 int main() {
12554  _atan2l(0, 0);
12555 ; return 0; }
12556 EOF
12557 if { (eval echo configure:12558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12558   rm -rf conftest*
12559   glibcpp_cv_func__atan2l_use=yes
12560 else
12561   echo "configure: failed program was:" >&5
12562   cat conftest.$ac_ext >&5
12563   rm -rf conftest*
12564   glibcpp_cv_func__atan2l_use=no
12565 fi
12566 rm -f conftest*
12567       ac_ext=c
12568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12569 ac_cpp='$CPP $CPPFLAGS'
12570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12572 cross_compiling=$ac_cv_prog_cc_cross
12573
12574     
12575 fi
12576
12577   fi
12578   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
12579
12580     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
12581       for ac_func in _atan2l
12582 do
12583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12584 echo "configure:12585: checking for $ac_func" >&5
12585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12586   echo $ac_n "(cached) $ac_c" 1>&6
12587 else
12588   cat > conftest.$ac_ext <<EOF
12589 #line 12590 "configure"
12590 #include "confdefs.h"
12591 /* System header to define __stub macros and hopefully few prototypes,
12592     which can conflict with char $ac_func(); below.  */
12593 #include <assert.h>
12594 /* Override any gcc2 internal prototype to avoid an error.  */
12595 /* We use char because int might match the return type of a gcc2
12596     builtin and then its argument prototype would still apply.  */
12597 char $ac_func();
12598
12599 int main() {
12600
12601 /* The GNU C library defines this for functions which it implements
12602     to always fail with ENOSYS.  Some functions are actually named
12603     something starting with __ and the normal name is an alias.  */
12604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12605 choke me
12606 #else
12607 $ac_func();
12608 #endif
12609
12610 ; return 0; }
12611 EOF
12612 if { (eval echo configure:12613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12613   rm -rf conftest*
12614   eval "ac_cv_func_$ac_func=yes"
12615 else
12616   echo "configure: failed program was:" >&5
12617   cat conftest.$ac_ext >&5
12618   rm -rf conftest*
12619   eval "ac_cv_func_$ac_func=no"
12620 fi
12621 rm -f conftest*
12622 fi
12623
12624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12625   echo "$ac_t""yes" 1>&6
12626     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12627   cat >> confdefs.h <<EOF
12628 #define $ac_tr_func 1
12629 EOF
12630  
12631 else
12632   echo "$ac_t""no" 1>&6
12633 fi
12634 done
12635     
12636     fi
12637   fi
12638
12639   
12640   
12641   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
12642 echo "configure:12643: checking for expl declaration" >&5
12643   if test x${glibcpp_cv_func_expl_use+set} != xset; then
12644     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
12645   echo $ac_n "(cached) $ac_c" 1>&6
12646 else
12647   
12648       
12649       ac_ext=C
12650 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12651 ac_cpp='$CXXCPP $CPPFLAGS'
12652 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12653 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12654 cross_compiling=$ac_cv_prog_cxx_cross
12655
12656       cat > conftest.$ac_ext <<EOF
12657 #line 12658 "configure"
12658 #include "confdefs.h"
12659 #include <math.h>
12660                       #ifdef HAVE_IEEEFP_H
12661                       #include <ieeefp.h>
12662                       #endif
12663                      
12664 int main() {
12665  expl(0);
12666 ; return 0; }
12667 EOF
12668 if { (eval echo configure:12669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12669   rm -rf conftest*
12670   glibcpp_cv_func_expl_use=yes
12671 else
12672   echo "configure: failed program was:" >&5
12673   cat conftest.$ac_ext >&5
12674   rm -rf conftest*
12675   glibcpp_cv_func_expl_use=no
12676 fi
12677 rm -f conftest*
12678       ac_ext=c
12679 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12680 ac_cpp='$CPP $CPPFLAGS'
12681 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12682 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12683 cross_compiling=$ac_cv_prog_cc_cross
12684
12685     
12686 fi
12687
12688   fi
12689   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
12690
12691   if test x$glibcpp_cv_func_expl_use = x"yes"; then
12692     for ac_func in expl
12693 do
12694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12695 echo "configure:12696: checking for $ac_func" >&5
12696 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12697   echo $ac_n "(cached) $ac_c" 1>&6
12698 else
12699   cat > conftest.$ac_ext <<EOF
12700 #line 12701 "configure"
12701 #include "confdefs.h"
12702 /* System header to define __stub macros and hopefully few prototypes,
12703     which can conflict with char $ac_func(); below.  */
12704 #include <assert.h>
12705 /* Override any gcc2 internal prototype to avoid an error.  */
12706 /* We use char because int might match the return type of a gcc2
12707     builtin and then its argument prototype would still apply.  */
12708 char $ac_func();
12709
12710 int main() {
12711
12712 /* The GNU C library defines this for functions which it implements
12713     to always fail with ENOSYS.  Some functions are actually named
12714     something starting with __ and the normal name is an alias.  */
12715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12716 choke me
12717 #else
12718 $ac_func();
12719 #endif
12720
12721 ; return 0; }
12722 EOF
12723 if { (eval echo configure:12724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12724   rm -rf conftest*
12725   eval "ac_cv_func_$ac_func=yes"
12726 else
12727   echo "configure: failed program was:" >&5
12728   cat conftest.$ac_ext >&5
12729   rm -rf conftest*
12730   eval "ac_cv_func_$ac_func=no"
12731 fi
12732 rm -f conftest*
12733 fi
12734
12735 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12736   echo "$ac_t""yes" 1>&6
12737     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12738   cat >> confdefs.h <<EOF
12739 #define $ac_tr_func 1
12740 EOF
12741  
12742 else
12743   echo "$ac_t""no" 1>&6
12744 fi
12745 done
12746     
12747   else
12748     
12749   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12750 echo "configure:12751: checking for _expl declaration" >&5
12751   if test x${glibcpp_cv_func__expl_use+set} != xset; then
12752     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12753   echo $ac_n "(cached) $ac_c" 1>&6
12754 else
12755   
12756       
12757       ac_ext=C
12758 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12759 ac_cpp='$CXXCPP $CPPFLAGS'
12760 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12761 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12762 cross_compiling=$ac_cv_prog_cxx_cross
12763
12764       cat > conftest.$ac_ext <<EOF
12765 #line 12766 "configure"
12766 #include "confdefs.h"
12767 #include <math.h>
12768                       #ifdef HAVE_IEEEFP_H
12769                       #include <ieeefp.h>
12770                       #endif
12771                      
12772 int main() {
12773  _expl(0);
12774 ; return 0; }
12775 EOF
12776 if { (eval echo configure:12777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12777   rm -rf conftest*
12778   glibcpp_cv_func__expl_use=yes
12779 else
12780   echo "configure: failed program was:" >&5
12781   cat conftest.$ac_ext >&5
12782   rm -rf conftest*
12783   glibcpp_cv_func__expl_use=no
12784 fi
12785 rm -f conftest*
12786       ac_ext=c
12787 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12788 ac_cpp='$CPP $CPPFLAGS'
12789 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12790 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12791 cross_compiling=$ac_cv_prog_cc_cross
12792
12793     
12794 fi
12795
12796   fi
12797   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12798
12799     if test x$glibcpp_cv_func__expl_use = x"yes"; then
12800       for ac_func in _expl
12801 do
12802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12803 echo "configure:12804: checking for $ac_func" >&5
12804 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12805   echo $ac_n "(cached) $ac_c" 1>&6
12806 else
12807   cat > conftest.$ac_ext <<EOF
12808 #line 12809 "configure"
12809 #include "confdefs.h"
12810 /* System header to define __stub macros and hopefully few prototypes,
12811     which can conflict with char $ac_func(); below.  */
12812 #include <assert.h>
12813 /* Override any gcc2 internal prototype to avoid an error.  */
12814 /* We use char because int might match the return type of a gcc2
12815     builtin and then its argument prototype would still apply.  */
12816 char $ac_func();
12817
12818 int main() {
12819
12820 /* The GNU C library defines this for functions which it implements
12821     to always fail with ENOSYS.  Some functions are actually named
12822     something starting with __ and the normal name is an alias.  */
12823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12824 choke me
12825 #else
12826 $ac_func();
12827 #endif
12828
12829 ; return 0; }
12830 EOF
12831 if { (eval echo configure:12832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12832   rm -rf conftest*
12833   eval "ac_cv_func_$ac_func=yes"
12834 else
12835   echo "configure: failed program was:" >&5
12836   cat conftest.$ac_ext >&5
12837   rm -rf conftest*
12838   eval "ac_cv_func_$ac_func=no"
12839 fi
12840 rm -f conftest*
12841 fi
12842
12843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12844   echo "$ac_t""yes" 1>&6
12845     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12846   cat >> confdefs.h <<EOF
12847 #define $ac_tr_func 1
12848 EOF
12849  
12850 else
12851   echo "$ac_t""no" 1>&6
12852 fi
12853 done
12854     
12855     fi
12856   fi
12857
12858   
12859   
12860   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
12861 echo "configure:12862: checking for fabsl declaration" >&5
12862   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
12863     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
12864   echo $ac_n "(cached) $ac_c" 1>&6
12865 else
12866   
12867       
12868       ac_ext=C
12869 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12870 ac_cpp='$CXXCPP $CPPFLAGS'
12871 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12872 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12873 cross_compiling=$ac_cv_prog_cxx_cross
12874
12875       cat > conftest.$ac_ext <<EOF
12876 #line 12877 "configure"
12877 #include "confdefs.h"
12878 #include <math.h>
12879                       #ifdef HAVE_IEEEFP_H
12880                       #include <ieeefp.h>
12881                       #endif
12882                      
12883 int main() {
12884  fabsl(0);
12885 ; return 0; }
12886 EOF
12887 if { (eval echo configure:12888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12888   rm -rf conftest*
12889   glibcpp_cv_func_fabsl_use=yes
12890 else
12891   echo "configure: failed program was:" >&5
12892   cat conftest.$ac_ext >&5
12893   rm -rf conftest*
12894   glibcpp_cv_func_fabsl_use=no
12895 fi
12896 rm -f conftest*
12897       ac_ext=c
12898 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12899 ac_cpp='$CPP $CPPFLAGS'
12900 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12901 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12902 cross_compiling=$ac_cv_prog_cc_cross
12903
12904     
12905 fi
12906
12907   fi
12908   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
12909
12910   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
12911     for ac_func in fabsl
12912 do
12913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12914 echo "configure:12915: checking for $ac_func" >&5
12915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12916   echo $ac_n "(cached) $ac_c" 1>&6
12917 else
12918   cat > conftest.$ac_ext <<EOF
12919 #line 12920 "configure"
12920 #include "confdefs.h"
12921 /* System header to define __stub macros and hopefully few prototypes,
12922     which can conflict with char $ac_func(); below.  */
12923 #include <assert.h>
12924 /* Override any gcc2 internal prototype to avoid an error.  */
12925 /* We use char because int might match the return type of a gcc2
12926     builtin and then its argument prototype would still apply.  */
12927 char $ac_func();
12928
12929 int main() {
12930
12931 /* The GNU C library defines this for functions which it implements
12932     to always fail with ENOSYS.  Some functions are actually named
12933     something starting with __ and the normal name is an alias.  */
12934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12935 choke me
12936 #else
12937 $ac_func();
12938 #endif
12939
12940 ; return 0; }
12941 EOF
12942 if { (eval echo configure:12943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12943   rm -rf conftest*
12944   eval "ac_cv_func_$ac_func=yes"
12945 else
12946   echo "configure: failed program was:" >&5
12947   cat conftest.$ac_ext >&5
12948   rm -rf conftest*
12949   eval "ac_cv_func_$ac_func=no"
12950 fi
12951 rm -f conftest*
12952 fi
12953
12954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12955   echo "$ac_t""yes" 1>&6
12956     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12957   cat >> confdefs.h <<EOF
12958 #define $ac_tr_func 1
12959 EOF
12960  
12961 else
12962   echo "$ac_t""no" 1>&6
12963 fi
12964 done
12965     
12966   else
12967     
12968   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
12969 echo "configure:12970: checking for _fabsl declaration" >&5
12970   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
12971     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
12972   echo $ac_n "(cached) $ac_c" 1>&6
12973 else
12974   
12975       
12976       ac_ext=C
12977 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12978 ac_cpp='$CXXCPP $CPPFLAGS'
12979 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12980 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12981 cross_compiling=$ac_cv_prog_cxx_cross
12982
12983       cat > conftest.$ac_ext <<EOF
12984 #line 12985 "configure"
12985 #include "confdefs.h"
12986 #include <math.h>
12987                       #ifdef HAVE_IEEEFP_H
12988                       #include <ieeefp.h>
12989                       #endif
12990                      
12991 int main() {
12992  _fabsl(0);
12993 ; return 0; }
12994 EOF
12995 if { (eval echo configure:12996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12996   rm -rf conftest*
12997   glibcpp_cv_func__fabsl_use=yes
12998 else
12999   echo "configure: failed program was:" >&5
13000   cat conftest.$ac_ext >&5
13001   rm -rf conftest*
13002   glibcpp_cv_func__fabsl_use=no
13003 fi
13004 rm -f conftest*
13005       ac_ext=c
13006 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13007 ac_cpp='$CPP $CPPFLAGS'
13008 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13009 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13010 cross_compiling=$ac_cv_prog_cc_cross
13011
13012     
13013 fi
13014
13015   fi
13016   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
13017
13018     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
13019       for ac_func in _fabsl
13020 do
13021 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13022 echo "configure:13023: checking for $ac_func" >&5
13023 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13024   echo $ac_n "(cached) $ac_c" 1>&6
13025 else
13026   cat > conftest.$ac_ext <<EOF
13027 #line 13028 "configure"
13028 #include "confdefs.h"
13029 /* System header to define __stub macros and hopefully few prototypes,
13030     which can conflict with char $ac_func(); below.  */
13031 #include <assert.h>
13032 /* Override any gcc2 internal prototype to avoid an error.  */
13033 /* We use char because int might match the return type of a gcc2
13034     builtin and then its argument prototype would still apply.  */
13035 char $ac_func();
13036
13037 int main() {
13038
13039 /* The GNU C library defines this for functions which it implements
13040     to always fail with ENOSYS.  Some functions are actually named
13041     something starting with __ and the normal name is an alias.  */
13042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13043 choke me
13044 #else
13045 $ac_func();
13046 #endif
13047
13048 ; return 0; }
13049 EOF
13050 if { (eval echo configure:13051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13051   rm -rf conftest*
13052   eval "ac_cv_func_$ac_func=yes"
13053 else
13054   echo "configure: failed program was:" >&5
13055   cat conftest.$ac_ext >&5
13056   rm -rf conftest*
13057   eval "ac_cv_func_$ac_func=no"
13058 fi
13059 rm -f conftest*
13060 fi
13061
13062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13063   echo "$ac_t""yes" 1>&6
13064     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13065   cat >> confdefs.h <<EOF
13066 #define $ac_tr_func 1
13067 EOF
13068  
13069 else
13070   echo "$ac_t""no" 1>&6
13071 fi
13072 done
13073     
13074     fi
13075   fi
13076
13077   
13078   
13079   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
13080 echo "configure:13081: checking for fmodl declaration" >&5
13081   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
13082     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
13083   echo $ac_n "(cached) $ac_c" 1>&6
13084 else
13085   
13086       
13087       ac_ext=C
13088 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13089 ac_cpp='$CXXCPP $CPPFLAGS'
13090 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13091 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13092 cross_compiling=$ac_cv_prog_cxx_cross
13093
13094       cat > conftest.$ac_ext <<EOF
13095 #line 13096 "configure"
13096 #include "confdefs.h"
13097 #include <math.h>
13098 int main() {
13099  fmodl(0, 0);
13100 ; return 0; }
13101 EOF
13102 if { (eval echo configure:13103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13103   rm -rf conftest*
13104   glibcpp_cv_func_fmodl_use=yes
13105 else
13106   echo "configure: failed program was:" >&5
13107   cat conftest.$ac_ext >&5
13108   rm -rf conftest*
13109   glibcpp_cv_func_fmodl_use=no
13110 fi
13111 rm -f conftest*
13112       ac_ext=c
13113 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13114 ac_cpp='$CPP $CPPFLAGS'
13115 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13116 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13117 cross_compiling=$ac_cv_prog_cc_cross
13118
13119     
13120 fi
13121
13122   fi
13123   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
13124
13125   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
13126     for ac_func in fmodl
13127 do
13128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13129 echo "configure:13130: checking for $ac_func" >&5
13130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13131   echo $ac_n "(cached) $ac_c" 1>&6
13132 else
13133   cat > conftest.$ac_ext <<EOF
13134 #line 13135 "configure"
13135 #include "confdefs.h"
13136 /* System header to define __stub macros and hopefully few prototypes,
13137     which can conflict with char $ac_func(); below.  */
13138 #include <assert.h>
13139 /* Override any gcc2 internal prototype to avoid an error.  */
13140 /* We use char because int might match the return type of a gcc2
13141     builtin and then its argument prototype would still apply.  */
13142 char $ac_func();
13143
13144 int main() {
13145
13146 /* The GNU C library defines this for functions which it implements
13147     to always fail with ENOSYS.  Some functions are actually named
13148     something starting with __ and the normal name is an alias.  */
13149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13150 choke me
13151 #else
13152 $ac_func();
13153 #endif
13154
13155 ; return 0; }
13156 EOF
13157 if { (eval echo configure:13158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13158   rm -rf conftest*
13159   eval "ac_cv_func_$ac_func=yes"
13160 else
13161   echo "configure: failed program was:" >&5
13162   cat conftest.$ac_ext >&5
13163   rm -rf conftest*
13164   eval "ac_cv_func_$ac_func=no"
13165 fi
13166 rm -f conftest*
13167 fi
13168
13169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13170   echo "$ac_t""yes" 1>&6
13171     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13172   cat >> confdefs.h <<EOF
13173 #define $ac_tr_func 1
13174 EOF
13175  
13176 else
13177   echo "$ac_t""no" 1>&6
13178 fi
13179 done
13180     
13181   else
13182     
13183   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
13184 echo "configure:13185: checking for _fmodl declaration" >&5
13185   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
13186     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
13187   echo $ac_n "(cached) $ac_c" 1>&6
13188 else
13189   
13190       
13191       ac_ext=C
13192 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13193 ac_cpp='$CXXCPP $CPPFLAGS'
13194 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13195 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13196 cross_compiling=$ac_cv_prog_cxx_cross
13197
13198       cat > conftest.$ac_ext <<EOF
13199 #line 13200 "configure"
13200 #include "confdefs.h"
13201 #include <math.h>
13202 int main() {
13203  _fmodl(0, 0);
13204 ; return 0; }
13205 EOF
13206 if { (eval echo configure:13207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13207   rm -rf conftest*
13208   glibcpp_cv_func__fmodl_use=yes
13209 else
13210   echo "configure: failed program was:" >&5
13211   cat conftest.$ac_ext >&5
13212   rm -rf conftest*
13213   glibcpp_cv_func__fmodl_use=no
13214 fi
13215 rm -f conftest*
13216       ac_ext=c
13217 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13218 ac_cpp='$CPP $CPPFLAGS'
13219 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13220 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13221 cross_compiling=$ac_cv_prog_cc_cross
13222
13223     
13224 fi
13225
13226   fi
13227   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
13228
13229     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
13230       for ac_func in _fmodl
13231 do
13232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13233 echo "configure:13234: checking for $ac_func" >&5
13234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13235   echo $ac_n "(cached) $ac_c" 1>&6
13236 else
13237   cat > conftest.$ac_ext <<EOF
13238 #line 13239 "configure"
13239 #include "confdefs.h"
13240 /* System header to define __stub macros and hopefully few prototypes,
13241     which can conflict with char $ac_func(); below.  */
13242 #include <assert.h>
13243 /* Override any gcc2 internal prototype to avoid an error.  */
13244 /* We use char because int might match the return type of a gcc2
13245     builtin and then its argument prototype would still apply.  */
13246 char $ac_func();
13247
13248 int main() {
13249
13250 /* The GNU C library defines this for functions which it implements
13251     to always fail with ENOSYS.  Some functions are actually named
13252     something starting with __ and the normal name is an alias.  */
13253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13254 choke me
13255 #else
13256 $ac_func();
13257 #endif
13258
13259 ; return 0; }
13260 EOF
13261 if { (eval echo configure:13262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13262   rm -rf conftest*
13263   eval "ac_cv_func_$ac_func=yes"
13264 else
13265   echo "configure: failed program was:" >&5
13266   cat conftest.$ac_ext >&5
13267   rm -rf conftest*
13268   eval "ac_cv_func_$ac_func=no"
13269 fi
13270 rm -f conftest*
13271 fi
13272
13273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13274   echo "$ac_t""yes" 1>&6
13275     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13276   cat >> confdefs.h <<EOF
13277 #define $ac_tr_func 1
13278 EOF
13279  
13280 else
13281   echo "$ac_t""no" 1>&6
13282 fi
13283 done
13284     
13285     fi
13286   fi
13287
13288   
13289   
13290   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
13291 echo "configure:13292: checking for frexpl declaration" >&5
13292   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
13293     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
13294   echo $ac_n "(cached) $ac_c" 1>&6
13295 else
13296   
13297       
13298       ac_ext=C
13299 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13300 ac_cpp='$CXXCPP $CPPFLAGS'
13301 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13302 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13303 cross_compiling=$ac_cv_prog_cxx_cross
13304
13305       cat > conftest.$ac_ext <<EOF
13306 #line 13307 "configure"
13307 #include "confdefs.h"
13308 #include <math.h>
13309 int main() {
13310  frexpl(0, 0);
13311 ; return 0; }
13312 EOF
13313 if { (eval echo configure:13314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13314   rm -rf conftest*
13315   glibcpp_cv_func_frexpl_use=yes
13316 else
13317   echo "configure: failed program was:" >&5
13318   cat conftest.$ac_ext >&5
13319   rm -rf conftest*
13320   glibcpp_cv_func_frexpl_use=no
13321 fi
13322 rm -f conftest*
13323       ac_ext=c
13324 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13325 ac_cpp='$CPP $CPPFLAGS'
13326 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13327 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13328 cross_compiling=$ac_cv_prog_cc_cross
13329
13330     
13331 fi
13332
13333   fi
13334   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
13335
13336   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
13337     for ac_func in frexpl
13338 do
13339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13340 echo "configure:13341: checking for $ac_func" >&5
13341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13342   echo $ac_n "(cached) $ac_c" 1>&6
13343 else
13344   cat > conftest.$ac_ext <<EOF
13345 #line 13346 "configure"
13346 #include "confdefs.h"
13347 /* System header to define __stub macros and hopefully few prototypes,
13348     which can conflict with char $ac_func(); below.  */
13349 #include <assert.h>
13350 /* Override any gcc2 internal prototype to avoid an error.  */
13351 /* We use char because int might match the return type of a gcc2
13352     builtin and then its argument prototype would still apply.  */
13353 char $ac_func();
13354
13355 int main() {
13356
13357 /* The GNU C library defines this for functions which it implements
13358     to always fail with ENOSYS.  Some functions are actually named
13359     something starting with __ and the normal name is an alias.  */
13360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13361 choke me
13362 #else
13363 $ac_func();
13364 #endif
13365
13366 ; return 0; }
13367 EOF
13368 if { (eval echo configure:13369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13369   rm -rf conftest*
13370   eval "ac_cv_func_$ac_func=yes"
13371 else
13372   echo "configure: failed program was:" >&5
13373   cat conftest.$ac_ext >&5
13374   rm -rf conftest*
13375   eval "ac_cv_func_$ac_func=no"
13376 fi
13377 rm -f conftest*
13378 fi
13379
13380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13381   echo "$ac_t""yes" 1>&6
13382     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13383   cat >> confdefs.h <<EOF
13384 #define $ac_tr_func 1
13385 EOF
13386  
13387 else
13388   echo "$ac_t""no" 1>&6
13389 fi
13390 done
13391     
13392   else
13393     
13394   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
13395 echo "configure:13396: checking for _frexpl declaration" >&5
13396   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
13397     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
13398   echo $ac_n "(cached) $ac_c" 1>&6
13399 else
13400   
13401       
13402       ac_ext=C
13403 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13404 ac_cpp='$CXXCPP $CPPFLAGS'
13405 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13406 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13407 cross_compiling=$ac_cv_prog_cxx_cross
13408
13409       cat > conftest.$ac_ext <<EOF
13410 #line 13411 "configure"
13411 #include "confdefs.h"
13412 #include <math.h>
13413 int main() {
13414  _frexpl(0, 0);
13415 ; return 0; }
13416 EOF
13417 if { (eval echo configure:13418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13418   rm -rf conftest*
13419   glibcpp_cv_func__frexpl_use=yes
13420 else
13421   echo "configure: failed program was:" >&5
13422   cat conftest.$ac_ext >&5
13423   rm -rf conftest*
13424   glibcpp_cv_func__frexpl_use=no
13425 fi
13426 rm -f conftest*
13427       ac_ext=c
13428 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13429 ac_cpp='$CPP $CPPFLAGS'
13430 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13431 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13432 cross_compiling=$ac_cv_prog_cc_cross
13433
13434     
13435 fi
13436
13437   fi
13438   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
13439
13440     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
13441       for ac_func in _frexpl
13442 do
13443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13444 echo "configure:13445: checking for $ac_func" >&5
13445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13446   echo $ac_n "(cached) $ac_c" 1>&6
13447 else
13448   cat > conftest.$ac_ext <<EOF
13449 #line 13450 "configure"
13450 #include "confdefs.h"
13451 /* System header to define __stub macros and hopefully few prototypes,
13452     which can conflict with char $ac_func(); below.  */
13453 #include <assert.h>
13454 /* Override any gcc2 internal prototype to avoid an error.  */
13455 /* We use char because int might match the return type of a gcc2
13456     builtin and then its argument prototype would still apply.  */
13457 char $ac_func();
13458
13459 int main() {
13460
13461 /* The GNU C library defines this for functions which it implements
13462     to always fail with ENOSYS.  Some functions are actually named
13463     something starting with __ and the normal name is an alias.  */
13464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13465 choke me
13466 #else
13467 $ac_func();
13468 #endif
13469
13470 ; return 0; }
13471 EOF
13472 if { (eval echo configure:13473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13473   rm -rf conftest*
13474   eval "ac_cv_func_$ac_func=yes"
13475 else
13476   echo "configure: failed program was:" >&5
13477   cat conftest.$ac_ext >&5
13478   rm -rf conftest*
13479   eval "ac_cv_func_$ac_func=no"
13480 fi
13481 rm -f conftest*
13482 fi
13483
13484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13485   echo "$ac_t""yes" 1>&6
13486     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13487   cat >> confdefs.h <<EOF
13488 #define $ac_tr_func 1
13489 EOF
13490  
13491 else
13492   echo "$ac_t""no" 1>&6
13493 fi
13494 done
13495     
13496     fi
13497   fi
13498
13499   
13500   
13501   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
13502 echo "configure:13503: checking for hypotl declaration" >&5
13503   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
13504     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
13505   echo $ac_n "(cached) $ac_c" 1>&6
13506 else
13507   
13508       
13509       ac_ext=C
13510 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13511 ac_cpp='$CXXCPP $CPPFLAGS'
13512 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13513 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13514 cross_compiling=$ac_cv_prog_cxx_cross
13515
13516       cat > conftest.$ac_ext <<EOF
13517 #line 13518 "configure"
13518 #include "confdefs.h"
13519 #include <math.h>
13520 int main() {
13521  hypotl(0, 0);
13522 ; return 0; }
13523 EOF
13524 if { (eval echo configure:13525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13525   rm -rf conftest*
13526   glibcpp_cv_func_hypotl_use=yes
13527 else
13528   echo "configure: failed program was:" >&5
13529   cat conftest.$ac_ext >&5
13530   rm -rf conftest*
13531   glibcpp_cv_func_hypotl_use=no
13532 fi
13533 rm -f conftest*
13534       ac_ext=c
13535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13536 ac_cpp='$CPP $CPPFLAGS'
13537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13539 cross_compiling=$ac_cv_prog_cc_cross
13540
13541     
13542 fi
13543
13544   fi
13545   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
13546
13547   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
13548     for ac_func in hypotl
13549 do
13550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13551 echo "configure:13552: checking for $ac_func" >&5
13552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13553   echo $ac_n "(cached) $ac_c" 1>&6
13554 else
13555   cat > conftest.$ac_ext <<EOF
13556 #line 13557 "configure"
13557 #include "confdefs.h"
13558 /* System header to define __stub macros and hopefully few prototypes,
13559     which can conflict with char $ac_func(); below.  */
13560 #include <assert.h>
13561 /* Override any gcc2 internal prototype to avoid an error.  */
13562 /* We use char because int might match the return type of a gcc2
13563     builtin and then its argument prototype would still apply.  */
13564 char $ac_func();
13565
13566 int main() {
13567
13568 /* The GNU C library defines this for functions which it implements
13569     to always fail with ENOSYS.  Some functions are actually named
13570     something starting with __ and the normal name is an alias.  */
13571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13572 choke me
13573 #else
13574 $ac_func();
13575 #endif
13576
13577 ; return 0; }
13578 EOF
13579 if { (eval echo configure:13580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13580   rm -rf conftest*
13581   eval "ac_cv_func_$ac_func=yes"
13582 else
13583   echo "configure: failed program was:" >&5
13584   cat conftest.$ac_ext >&5
13585   rm -rf conftest*
13586   eval "ac_cv_func_$ac_func=no"
13587 fi
13588 rm -f conftest*
13589 fi
13590
13591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13592   echo "$ac_t""yes" 1>&6
13593     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13594   cat >> confdefs.h <<EOF
13595 #define $ac_tr_func 1
13596 EOF
13597  
13598 else
13599   echo "$ac_t""no" 1>&6
13600 fi
13601 done
13602     
13603   else
13604     
13605   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
13606 echo "configure:13607: checking for _hypotl declaration" >&5
13607   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
13608     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
13609   echo $ac_n "(cached) $ac_c" 1>&6
13610 else
13611   
13612       
13613       ac_ext=C
13614 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13615 ac_cpp='$CXXCPP $CPPFLAGS'
13616 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13617 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13618 cross_compiling=$ac_cv_prog_cxx_cross
13619
13620       cat > conftest.$ac_ext <<EOF
13621 #line 13622 "configure"
13622 #include "confdefs.h"
13623 #include <math.h>
13624 int main() {
13625  _hypotl(0, 0);
13626 ; return 0; }
13627 EOF
13628 if { (eval echo configure:13629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13629   rm -rf conftest*
13630   glibcpp_cv_func__hypotl_use=yes
13631 else
13632   echo "configure: failed program was:" >&5
13633   cat conftest.$ac_ext >&5
13634   rm -rf conftest*
13635   glibcpp_cv_func__hypotl_use=no
13636 fi
13637 rm -f conftest*
13638       ac_ext=c
13639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13640 ac_cpp='$CPP $CPPFLAGS'
13641 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13642 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13643 cross_compiling=$ac_cv_prog_cc_cross
13644
13645     
13646 fi
13647
13648   fi
13649   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
13650
13651     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
13652       for ac_func in _hypotl
13653 do
13654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13655 echo "configure:13656: checking for $ac_func" >&5
13656 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13657   echo $ac_n "(cached) $ac_c" 1>&6
13658 else
13659   cat > conftest.$ac_ext <<EOF
13660 #line 13661 "configure"
13661 #include "confdefs.h"
13662 /* System header to define __stub macros and hopefully few prototypes,
13663     which can conflict with char $ac_func(); below.  */
13664 #include <assert.h>
13665 /* Override any gcc2 internal prototype to avoid an error.  */
13666 /* We use char because int might match the return type of a gcc2
13667     builtin and then its argument prototype would still apply.  */
13668 char $ac_func();
13669
13670 int main() {
13671
13672 /* The GNU C library defines this for functions which it implements
13673     to always fail with ENOSYS.  Some functions are actually named
13674     something starting with __ and the normal name is an alias.  */
13675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13676 choke me
13677 #else
13678 $ac_func();
13679 #endif
13680
13681 ; return 0; }
13682 EOF
13683 if { (eval echo configure:13684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13684   rm -rf conftest*
13685   eval "ac_cv_func_$ac_func=yes"
13686 else
13687   echo "configure: failed program was:" >&5
13688   cat conftest.$ac_ext >&5
13689   rm -rf conftest*
13690   eval "ac_cv_func_$ac_func=no"
13691 fi
13692 rm -f conftest*
13693 fi
13694
13695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13696   echo "$ac_t""yes" 1>&6
13697     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13698   cat >> confdefs.h <<EOF
13699 #define $ac_tr_func 1
13700 EOF
13701  
13702 else
13703   echo "$ac_t""no" 1>&6
13704 fi
13705 done
13706     
13707     fi
13708   fi
13709
13710   
13711   
13712   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
13713 echo "configure:13714: checking for ldexpl declaration" >&5
13714   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
13715     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
13716   echo $ac_n "(cached) $ac_c" 1>&6
13717 else
13718   
13719       
13720       ac_ext=C
13721 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13722 ac_cpp='$CXXCPP $CPPFLAGS'
13723 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13724 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13725 cross_compiling=$ac_cv_prog_cxx_cross
13726
13727       cat > conftest.$ac_ext <<EOF
13728 #line 13729 "configure"
13729 #include "confdefs.h"
13730 #include <math.h>
13731 int main() {
13732  ldexpl(0, 0);
13733 ; return 0; }
13734 EOF
13735 if { (eval echo configure:13736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13736   rm -rf conftest*
13737   glibcpp_cv_func_ldexpl_use=yes
13738 else
13739   echo "configure: failed program was:" >&5
13740   cat conftest.$ac_ext >&5
13741   rm -rf conftest*
13742   glibcpp_cv_func_ldexpl_use=no
13743 fi
13744 rm -f conftest*
13745       ac_ext=c
13746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13747 ac_cpp='$CPP $CPPFLAGS'
13748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13750 cross_compiling=$ac_cv_prog_cc_cross
13751
13752     
13753 fi
13754
13755   fi
13756   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
13757
13758   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
13759     for ac_func in ldexpl
13760 do
13761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13762 echo "configure:13763: checking for $ac_func" >&5
13763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13764   echo $ac_n "(cached) $ac_c" 1>&6
13765 else
13766   cat > conftest.$ac_ext <<EOF
13767 #line 13768 "configure"
13768 #include "confdefs.h"
13769 /* System header to define __stub macros and hopefully few prototypes,
13770     which can conflict with char $ac_func(); below.  */
13771 #include <assert.h>
13772 /* Override any gcc2 internal prototype to avoid an error.  */
13773 /* We use char because int might match the return type of a gcc2
13774     builtin and then its argument prototype would still apply.  */
13775 char $ac_func();
13776
13777 int main() {
13778
13779 /* The GNU C library defines this for functions which it implements
13780     to always fail with ENOSYS.  Some functions are actually named
13781     something starting with __ and the normal name is an alias.  */
13782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13783 choke me
13784 #else
13785 $ac_func();
13786 #endif
13787
13788 ; return 0; }
13789 EOF
13790 if { (eval echo configure:13791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13791   rm -rf conftest*
13792   eval "ac_cv_func_$ac_func=yes"
13793 else
13794   echo "configure: failed program was:" >&5
13795   cat conftest.$ac_ext >&5
13796   rm -rf conftest*
13797   eval "ac_cv_func_$ac_func=no"
13798 fi
13799 rm -f conftest*
13800 fi
13801
13802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13803   echo "$ac_t""yes" 1>&6
13804     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13805   cat >> confdefs.h <<EOF
13806 #define $ac_tr_func 1
13807 EOF
13808  
13809 else
13810   echo "$ac_t""no" 1>&6
13811 fi
13812 done
13813     
13814   else
13815     
13816   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
13817 echo "configure:13818: checking for _ldexpl declaration" >&5
13818   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
13819     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
13820   echo $ac_n "(cached) $ac_c" 1>&6
13821 else
13822   
13823       
13824       ac_ext=C
13825 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13826 ac_cpp='$CXXCPP $CPPFLAGS'
13827 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13828 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13829 cross_compiling=$ac_cv_prog_cxx_cross
13830
13831       cat > conftest.$ac_ext <<EOF
13832 #line 13833 "configure"
13833 #include "confdefs.h"
13834 #include <math.h>
13835 int main() {
13836  _ldexpl(0, 0);
13837 ; return 0; }
13838 EOF
13839 if { (eval echo configure:13840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13840   rm -rf conftest*
13841   glibcpp_cv_func__ldexpl_use=yes
13842 else
13843   echo "configure: failed program was:" >&5
13844   cat conftest.$ac_ext >&5
13845   rm -rf conftest*
13846   glibcpp_cv_func__ldexpl_use=no
13847 fi
13848 rm -f conftest*
13849       ac_ext=c
13850 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13851 ac_cpp='$CPP $CPPFLAGS'
13852 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13853 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13854 cross_compiling=$ac_cv_prog_cc_cross
13855
13856     
13857 fi
13858
13859   fi
13860   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
13861
13862     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
13863       for ac_func in _ldexpl
13864 do
13865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13866 echo "configure:13867: checking for $ac_func" >&5
13867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13868   echo $ac_n "(cached) $ac_c" 1>&6
13869 else
13870   cat > conftest.$ac_ext <<EOF
13871 #line 13872 "configure"
13872 #include "confdefs.h"
13873 /* System header to define __stub macros and hopefully few prototypes,
13874     which can conflict with char $ac_func(); below.  */
13875 #include <assert.h>
13876 /* Override any gcc2 internal prototype to avoid an error.  */
13877 /* We use char because int might match the return type of a gcc2
13878     builtin and then its argument prototype would still apply.  */
13879 char $ac_func();
13880
13881 int main() {
13882
13883 /* The GNU C library defines this for functions which it implements
13884     to always fail with ENOSYS.  Some functions are actually named
13885     something starting with __ and the normal name is an alias.  */
13886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13887 choke me
13888 #else
13889 $ac_func();
13890 #endif
13891
13892 ; return 0; }
13893 EOF
13894 if { (eval echo configure:13895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13895   rm -rf conftest*
13896   eval "ac_cv_func_$ac_func=yes"
13897 else
13898   echo "configure: failed program was:" >&5
13899   cat conftest.$ac_ext >&5
13900   rm -rf conftest*
13901   eval "ac_cv_func_$ac_func=no"
13902 fi
13903 rm -f conftest*
13904 fi
13905
13906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13907   echo "$ac_t""yes" 1>&6
13908     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13909   cat >> confdefs.h <<EOF
13910 #define $ac_tr_func 1
13911 EOF
13912  
13913 else
13914   echo "$ac_t""no" 1>&6
13915 fi
13916 done
13917     
13918     fi
13919   fi
13920
13921   
13922   
13923   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
13924 echo "configure:13925: checking for logl declaration" >&5
13925   if test x${glibcpp_cv_func_logl_use+set} != xset; then
13926     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
13927   echo $ac_n "(cached) $ac_c" 1>&6
13928 else
13929   
13930       
13931       ac_ext=C
13932 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13933 ac_cpp='$CXXCPP $CPPFLAGS'
13934 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13935 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13936 cross_compiling=$ac_cv_prog_cxx_cross
13937
13938       cat > conftest.$ac_ext <<EOF
13939 #line 13940 "configure"
13940 #include "confdefs.h"
13941 #include <math.h>
13942                       #ifdef HAVE_IEEEFP_H
13943                       #include <ieeefp.h>
13944                       #endif
13945                      
13946 int main() {
13947  logl(0);
13948 ; return 0; }
13949 EOF
13950 if { (eval echo configure:13951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13951   rm -rf conftest*
13952   glibcpp_cv_func_logl_use=yes
13953 else
13954   echo "configure: failed program was:" >&5
13955   cat conftest.$ac_ext >&5
13956   rm -rf conftest*
13957   glibcpp_cv_func_logl_use=no
13958 fi
13959 rm -f conftest*
13960       ac_ext=c
13961 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13962 ac_cpp='$CPP $CPPFLAGS'
13963 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13964 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13965 cross_compiling=$ac_cv_prog_cc_cross
13966
13967     
13968 fi
13969
13970   fi
13971   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
13972
13973   if test x$glibcpp_cv_func_logl_use = x"yes"; then
13974     for ac_func in logl
13975 do
13976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13977 echo "configure:13978: checking for $ac_func" >&5
13978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13979   echo $ac_n "(cached) $ac_c" 1>&6
13980 else
13981   cat > conftest.$ac_ext <<EOF
13982 #line 13983 "configure"
13983 #include "confdefs.h"
13984 /* System header to define __stub macros and hopefully few prototypes,
13985     which can conflict with char $ac_func(); below.  */
13986 #include <assert.h>
13987 /* Override any gcc2 internal prototype to avoid an error.  */
13988 /* We use char because int might match the return type of a gcc2
13989     builtin and then its argument prototype would still apply.  */
13990 char $ac_func();
13991
13992 int main() {
13993
13994 /* The GNU C library defines this for functions which it implements
13995     to always fail with ENOSYS.  Some functions are actually named
13996     something starting with __ and the normal name is an alias.  */
13997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13998 choke me
13999 #else
14000 $ac_func();
14001 #endif
14002
14003 ; return 0; }
14004 EOF
14005 if { (eval echo configure:14006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14006   rm -rf conftest*
14007   eval "ac_cv_func_$ac_func=yes"
14008 else
14009   echo "configure: failed program was:" >&5
14010   cat conftest.$ac_ext >&5
14011   rm -rf conftest*
14012   eval "ac_cv_func_$ac_func=no"
14013 fi
14014 rm -f conftest*
14015 fi
14016
14017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14018   echo "$ac_t""yes" 1>&6
14019     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14020   cat >> confdefs.h <<EOF
14021 #define $ac_tr_func 1
14022 EOF
14023  
14024 else
14025   echo "$ac_t""no" 1>&6
14026 fi
14027 done
14028     
14029   else
14030     
14031   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
14032 echo "configure:14033: checking for _logl declaration" >&5
14033   if test x${glibcpp_cv_func__logl_use+set} != xset; then
14034     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
14035   echo $ac_n "(cached) $ac_c" 1>&6
14036 else
14037   
14038       
14039       ac_ext=C
14040 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14041 ac_cpp='$CXXCPP $CPPFLAGS'
14042 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14043 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14044 cross_compiling=$ac_cv_prog_cxx_cross
14045
14046       cat > conftest.$ac_ext <<EOF
14047 #line 14048 "configure"
14048 #include "confdefs.h"
14049 #include <math.h>
14050                       #ifdef HAVE_IEEEFP_H
14051                       #include <ieeefp.h>
14052                       #endif
14053                      
14054 int main() {
14055  _logl(0);
14056 ; return 0; }
14057 EOF
14058 if { (eval echo configure:14059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14059   rm -rf conftest*
14060   glibcpp_cv_func__logl_use=yes
14061 else
14062   echo "configure: failed program was:" >&5
14063   cat conftest.$ac_ext >&5
14064   rm -rf conftest*
14065   glibcpp_cv_func__logl_use=no
14066 fi
14067 rm -f conftest*
14068       ac_ext=c
14069 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14070 ac_cpp='$CPP $CPPFLAGS'
14071 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14072 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14073 cross_compiling=$ac_cv_prog_cc_cross
14074
14075     
14076 fi
14077
14078   fi
14079   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
14080
14081     if test x$glibcpp_cv_func__logl_use = x"yes"; then
14082       for ac_func in _logl
14083 do
14084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14085 echo "configure:14086: checking for $ac_func" >&5
14086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14087   echo $ac_n "(cached) $ac_c" 1>&6
14088 else
14089   cat > conftest.$ac_ext <<EOF
14090 #line 14091 "configure"
14091 #include "confdefs.h"
14092 /* System header to define __stub macros and hopefully few prototypes,
14093     which can conflict with char $ac_func(); below.  */
14094 #include <assert.h>
14095 /* Override any gcc2 internal prototype to avoid an error.  */
14096 /* We use char because int might match the return type of a gcc2
14097     builtin and then its argument prototype would still apply.  */
14098 char $ac_func();
14099
14100 int main() {
14101
14102 /* The GNU C library defines this for functions which it implements
14103     to always fail with ENOSYS.  Some functions are actually named
14104     something starting with __ and the normal name is an alias.  */
14105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14106 choke me
14107 #else
14108 $ac_func();
14109 #endif
14110
14111 ; return 0; }
14112 EOF
14113 if { (eval echo configure:14114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14114   rm -rf conftest*
14115   eval "ac_cv_func_$ac_func=yes"
14116 else
14117   echo "configure: failed program was:" >&5
14118   cat conftest.$ac_ext >&5
14119   rm -rf conftest*
14120   eval "ac_cv_func_$ac_func=no"
14121 fi
14122 rm -f conftest*
14123 fi
14124
14125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14126   echo "$ac_t""yes" 1>&6
14127     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14128   cat >> confdefs.h <<EOF
14129 #define $ac_tr_func 1
14130 EOF
14131  
14132 else
14133   echo "$ac_t""no" 1>&6
14134 fi
14135 done
14136     
14137     fi
14138   fi
14139
14140   
14141   
14142   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
14143 echo "configure:14144: checking for log10l declaration" >&5
14144   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
14145     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
14146   echo $ac_n "(cached) $ac_c" 1>&6
14147 else
14148   
14149       
14150       ac_ext=C
14151 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14152 ac_cpp='$CXXCPP $CPPFLAGS'
14153 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14154 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14155 cross_compiling=$ac_cv_prog_cxx_cross
14156
14157       cat > conftest.$ac_ext <<EOF
14158 #line 14159 "configure"
14159 #include "confdefs.h"
14160 #include <math.h>
14161                       #ifdef HAVE_IEEEFP_H
14162                       #include <ieeefp.h>
14163                       #endif
14164                      
14165 int main() {
14166  log10l(0);
14167 ; return 0; }
14168 EOF
14169 if { (eval echo configure:14170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14170   rm -rf conftest*
14171   glibcpp_cv_func_log10l_use=yes
14172 else
14173   echo "configure: failed program was:" >&5
14174   cat conftest.$ac_ext >&5
14175   rm -rf conftest*
14176   glibcpp_cv_func_log10l_use=no
14177 fi
14178 rm -f conftest*
14179       ac_ext=c
14180 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14181 ac_cpp='$CPP $CPPFLAGS'
14182 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14183 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14184 cross_compiling=$ac_cv_prog_cc_cross
14185
14186     
14187 fi
14188
14189   fi
14190   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
14191
14192   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
14193     for ac_func in log10l
14194 do
14195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14196 echo "configure:14197: checking for $ac_func" >&5
14197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14198   echo $ac_n "(cached) $ac_c" 1>&6
14199 else
14200   cat > conftest.$ac_ext <<EOF
14201 #line 14202 "configure"
14202 #include "confdefs.h"
14203 /* System header to define __stub macros and hopefully few prototypes,
14204     which can conflict with char $ac_func(); below.  */
14205 #include <assert.h>
14206 /* Override any gcc2 internal prototype to avoid an error.  */
14207 /* We use char because int might match the return type of a gcc2
14208     builtin and then its argument prototype would still apply.  */
14209 char $ac_func();
14210
14211 int main() {
14212
14213 /* The GNU C library defines this for functions which it implements
14214     to always fail with ENOSYS.  Some functions are actually named
14215     something starting with __ and the normal name is an alias.  */
14216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14217 choke me
14218 #else
14219 $ac_func();
14220 #endif
14221
14222 ; return 0; }
14223 EOF
14224 if { (eval echo configure:14225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14225   rm -rf conftest*
14226   eval "ac_cv_func_$ac_func=yes"
14227 else
14228   echo "configure: failed program was:" >&5
14229   cat conftest.$ac_ext >&5
14230   rm -rf conftest*
14231   eval "ac_cv_func_$ac_func=no"
14232 fi
14233 rm -f conftest*
14234 fi
14235
14236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14237   echo "$ac_t""yes" 1>&6
14238     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14239   cat >> confdefs.h <<EOF
14240 #define $ac_tr_func 1
14241 EOF
14242  
14243 else
14244   echo "$ac_t""no" 1>&6
14245 fi
14246 done
14247     
14248   else
14249     
14250   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
14251 echo "configure:14252: checking for _log10l declaration" >&5
14252   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
14253     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
14254   echo $ac_n "(cached) $ac_c" 1>&6
14255 else
14256   
14257       
14258       ac_ext=C
14259 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14260 ac_cpp='$CXXCPP $CPPFLAGS'
14261 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14262 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14263 cross_compiling=$ac_cv_prog_cxx_cross
14264
14265       cat > conftest.$ac_ext <<EOF
14266 #line 14267 "configure"
14267 #include "confdefs.h"
14268 #include <math.h>
14269                       #ifdef HAVE_IEEEFP_H
14270                       #include <ieeefp.h>
14271                       #endif
14272                      
14273 int main() {
14274  _log10l(0);
14275 ; return 0; }
14276 EOF
14277 if { (eval echo configure:14278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14278   rm -rf conftest*
14279   glibcpp_cv_func__log10l_use=yes
14280 else
14281   echo "configure: failed program was:" >&5
14282   cat conftest.$ac_ext >&5
14283   rm -rf conftest*
14284   glibcpp_cv_func__log10l_use=no
14285 fi
14286 rm -f conftest*
14287       ac_ext=c
14288 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14289 ac_cpp='$CPP $CPPFLAGS'
14290 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14291 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14292 cross_compiling=$ac_cv_prog_cc_cross
14293
14294     
14295 fi
14296
14297   fi
14298   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
14299
14300     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
14301       for ac_func in _log10l
14302 do
14303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14304 echo "configure:14305: checking for $ac_func" >&5
14305 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14306   echo $ac_n "(cached) $ac_c" 1>&6
14307 else
14308   cat > conftest.$ac_ext <<EOF
14309 #line 14310 "configure"
14310 #include "confdefs.h"
14311 /* System header to define __stub macros and hopefully few prototypes,
14312     which can conflict with char $ac_func(); below.  */
14313 #include <assert.h>
14314 /* Override any gcc2 internal prototype to avoid an error.  */
14315 /* We use char because int might match the return type of a gcc2
14316     builtin and then its argument prototype would still apply.  */
14317 char $ac_func();
14318
14319 int main() {
14320
14321 /* The GNU C library defines this for functions which it implements
14322     to always fail with ENOSYS.  Some functions are actually named
14323     something starting with __ and the normal name is an alias.  */
14324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14325 choke me
14326 #else
14327 $ac_func();
14328 #endif
14329
14330 ; return 0; }
14331 EOF
14332 if { (eval echo configure:14333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14333   rm -rf conftest*
14334   eval "ac_cv_func_$ac_func=yes"
14335 else
14336   echo "configure: failed program was:" >&5
14337   cat conftest.$ac_ext >&5
14338   rm -rf conftest*
14339   eval "ac_cv_func_$ac_func=no"
14340 fi
14341 rm -f conftest*
14342 fi
14343
14344 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14345   echo "$ac_t""yes" 1>&6
14346     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14347   cat >> confdefs.h <<EOF
14348 #define $ac_tr_func 1
14349 EOF
14350  
14351 else
14352   echo "$ac_t""no" 1>&6
14353 fi
14354 done
14355     
14356     fi
14357   fi
14358
14359   
14360   
14361   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
14362 echo "configure:14363: checking for modfl declaration" >&5
14363   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
14364     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
14365   echo $ac_n "(cached) $ac_c" 1>&6
14366 else
14367   
14368       
14369       ac_ext=C
14370 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14371 ac_cpp='$CXXCPP $CPPFLAGS'
14372 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14373 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14374 cross_compiling=$ac_cv_prog_cxx_cross
14375
14376       cat > conftest.$ac_ext <<EOF
14377 #line 14378 "configure"
14378 #include "confdefs.h"
14379 #include <math.h>
14380 int main() {
14381  modfl(0, 0);
14382 ; return 0; }
14383 EOF
14384 if { (eval echo configure:14385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14385   rm -rf conftest*
14386   glibcpp_cv_func_modfl_use=yes
14387 else
14388   echo "configure: failed program was:" >&5
14389   cat conftest.$ac_ext >&5
14390   rm -rf conftest*
14391   glibcpp_cv_func_modfl_use=no
14392 fi
14393 rm -f conftest*
14394       ac_ext=c
14395 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14396 ac_cpp='$CPP $CPPFLAGS'
14397 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14398 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14399 cross_compiling=$ac_cv_prog_cc_cross
14400
14401     
14402 fi
14403
14404   fi
14405   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
14406
14407   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
14408     for ac_func in modfl
14409 do
14410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14411 echo "configure:14412: checking for $ac_func" >&5
14412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14413   echo $ac_n "(cached) $ac_c" 1>&6
14414 else
14415   cat > conftest.$ac_ext <<EOF
14416 #line 14417 "configure"
14417 #include "confdefs.h"
14418 /* System header to define __stub macros and hopefully few prototypes,
14419     which can conflict with char $ac_func(); below.  */
14420 #include <assert.h>
14421 /* Override any gcc2 internal prototype to avoid an error.  */
14422 /* We use char because int might match the return type of a gcc2
14423     builtin and then its argument prototype would still apply.  */
14424 char $ac_func();
14425
14426 int main() {
14427
14428 /* The GNU C library defines this for functions which it implements
14429     to always fail with ENOSYS.  Some functions are actually named
14430     something starting with __ and the normal name is an alias.  */
14431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14432 choke me
14433 #else
14434 $ac_func();
14435 #endif
14436
14437 ; return 0; }
14438 EOF
14439 if { (eval echo configure:14440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14440   rm -rf conftest*
14441   eval "ac_cv_func_$ac_func=yes"
14442 else
14443   echo "configure: failed program was:" >&5
14444   cat conftest.$ac_ext >&5
14445   rm -rf conftest*
14446   eval "ac_cv_func_$ac_func=no"
14447 fi
14448 rm -f conftest*
14449 fi
14450
14451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14452   echo "$ac_t""yes" 1>&6
14453     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14454   cat >> confdefs.h <<EOF
14455 #define $ac_tr_func 1
14456 EOF
14457  
14458 else
14459   echo "$ac_t""no" 1>&6
14460 fi
14461 done
14462     
14463   else
14464     
14465   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
14466 echo "configure:14467: checking for _modfl declaration" >&5
14467   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
14468     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
14469   echo $ac_n "(cached) $ac_c" 1>&6
14470 else
14471   
14472       
14473       ac_ext=C
14474 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14475 ac_cpp='$CXXCPP $CPPFLAGS'
14476 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14477 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14478 cross_compiling=$ac_cv_prog_cxx_cross
14479
14480       cat > conftest.$ac_ext <<EOF
14481 #line 14482 "configure"
14482 #include "confdefs.h"
14483 #include <math.h>
14484 int main() {
14485  _modfl(0, 0);
14486 ; return 0; }
14487 EOF
14488 if { (eval echo configure:14489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14489   rm -rf conftest*
14490   glibcpp_cv_func__modfl_use=yes
14491 else
14492   echo "configure: failed program was:" >&5
14493   cat conftest.$ac_ext >&5
14494   rm -rf conftest*
14495   glibcpp_cv_func__modfl_use=no
14496 fi
14497 rm -f conftest*
14498       ac_ext=c
14499 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14500 ac_cpp='$CPP $CPPFLAGS'
14501 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14502 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14503 cross_compiling=$ac_cv_prog_cc_cross
14504
14505     
14506 fi
14507
14508   fi
14509   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
14510
14511     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
14512       for ac_func in _modfl
14513 do
14514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14515 echo "configure:14516: checking for $ac_func" >&5
14516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14517   echo $ac_n "(cached) $ac_c" 1>&6
14518 else
14519   cat > conftest.$ac_ext <<EOF
14520 #line 14521 "configure"
14521 #include "confdefs.h"
14522 /* System header to define __stub macros and hopefully few prototypes,
14523     which can conflict with char $ac_func(); below.  */
14524 #include <assert.h>
14525 /* Override any gcc2 internal prototype to avoid an error.  */
14526 /* We use char because int might match the return type of a gcc2
14527     builtin and then its argument prototype would still apply.  */
14528 char $ac_func();
14529
14530 int main() {
14531
14532 /* The GNU C library defines this for functions which it implements
14533     to always fail with ENOSYS.  Some functions are actually named
14534     something starting with __ and the normal name is an alias.  */
14535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14536 choke me
14537 #else
14538 $ac_func();
14539 #endif
14540
14541 ; return 0; }
14542 EOF
14543 if { (eval echo configure:14544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14544   rm -rf conftest*
14545   eval "ac_cv_func_$ac_func=yes"
14546 else
14547   echo "configure: failed program was:" >&5
14548   cat conftest.$ac_ext >&5
14549   rm -rf conftest*
14550   eval "ac_cv_func_$ac_func=no"
14551 fi
14552 rm -f conftest*
14553 fi
14554
14555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14556   echo "$ac_t""yes" 1>&6
14557     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14558   cat >> confdefs.h <<EOF
14559 #define $ac_tr_func 1
14560 EOF
14561  
14562 else
14563   echo "$ac_t""no" 1>&6
14564 fi
14565 done
14566     
14567     fi
14568   fi
14569
14570   
14571   
14572   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
14573 echo "configure:14574: checking for powl declaration" >&5
14574   if test x${glibcpp_cv_func_powl_use+set} != xset; then
14575     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
14576   echo $ac_n "(cached) $ac_c" 1>&6
14577 else
14578   
14579       
14580       ac_ext=C
14581 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14582 ac_cpp='$CXXCPP $CPPFLAGS'
14583 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14584 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14585 cross_compiling=$ac_cv_prog_cxx_cross
14586
14587       cat > conftest.$ac_ext <<EOF
14588 #line 14589 "configure"
14589 #include "confdefs.h"
14590 #include <math.h>
14591 int main() {
14592  powl(0, 0);
14593 ; return 0; }
14594 EOF
14595 if { (eval echo configure:14596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14596   rm -rf conftest*
14597   glibcpp_cv_func_powl_use=yes
14598 else
14599   echo "configure: failed program was:" >&5
14600   cat conftest.$ac_ext >&5
14601   rm -rf conftest*
14602   glibcpp_cv_func_powl_use=no
14603 fi
14604 rm -f conftest*
14605       ac_ext=c
14606 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14607 ac_cpp='$CPP $CPPFLAGS'
14608 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14609 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14610 cross_compiling=$ac_cv_prog_cc_cross
14611
14612     
14613 fi
14614
14615   fi
14616   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
14617
14618   if test x$glibcpp_cv_func_powl_use = x"yes"; then
14619     for ac_func in powl
14620 do
14621 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14622 echo "configure:14623: checking for $ac_func" >&5
14623 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14624   echo $ac_n "(cached) $ac_c" 1>&6
14625 else
14626   cat > conftest.$ac_ext <<EOF
14627 #line 14628 "configure"
14628 #include "confdefs.h"
14629 /* System header to define __stub macros and hopefully few prototypes,
14630     which can conflict with char $ac_func(); below.  */
14631 #include <assert.h>
14632 /* Override any gcc2 internal prototype to avoid an error.  */
14633 /* We use char because int might match the return type of a gcc2
14634     builtin and then its argument prototype would still apply.  */
14635 char $ac_func();
14636
14637 int main() {
14638
14639 /* The GNU C library defines this for functions which it implements
14640     to always fail with ENOSYS.  Some functions are actually named
14641     something starting with __ and the normal name is an alias.  */
14642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14643 choke me
14644 #else
14645 $ac_func();
14646 #endif
14647
14648 ; return 0; }
14649 EOF
14650 if { (eval echo configure:14651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14651   rm -rf conftest*
14652   eval "ac_cv_func_$ac_func=yes"
14653 else
14654   echo "configure: failed program was:" >&5
14655   cat conftest.$ac_ext >&5
14656   rm -rf conftest*
14657   eval "ac_cv_func_$ac_func=no"
14658 fi
14659 rm -f conftest*
14660 fi
14661
14662 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14663   echo "$ac_t""yes" 1>&6
14664     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14665   cat >> confdefs.h <<EOF
14666 #define $ac_tr_func 1
14667 EOF
14668  
14669 else
14670   echo "$ac_t""no" 1>&6
14671 fi
14672 done
14673     
14674   else
14675     
14676   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
14677 echo "configure:14678: checking for _powl declaration" >&5
14678   if test x${glibcpp_cv_func__powl_use+set} != xset; then
14679     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
14680   echo $ac_n "(cached) $ac_c" 1>&6
14681 else
14682   
14683       
14684       ac_ext=C
14685 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14686 ac_cpp='$CXXCPP $CPPFLAGS'
14687 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14688 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14689 cross_compiling=$ac_cv_prog_cxx_cross
14690
14691       cat > conftest.$ac_ext <<EOF
14692 #line 14693 "configure"
14693 #include "confdefs.h"
14694 #include <math.h>
14695 int main() {
14696  _powl(0, 0);
14697 ; return 0; }
14698 EOF
14699 if { (eval echo configure:14700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14700   rm -rf conftest*
14701   glibcpp_cv_func__powl_use=yes
14702 else
14703   echo "configure: failed program was:" >&5
14704   cat conftest.$ac_ext >&5
14705   rm -rf conftest*
14706   glibcpp_cv_func__powl_use=no
14707 fi
14708 rm -f conftest*
14709       ac_ext=c
14710 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14711 ac_cpp='$CPP $CPPFLAGS'
14712 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14713 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14714 cross_compiling=$ac_cv_prog_cc_cross
14715
14716     
14717 fi
14718
14719   fi
14720   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
14721
14722     if test x$glibcpp_cv_func__powl_use = x"yes"; then
14723       for ac_func in _powl
14724 do
14725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14726 echo "configure:14727: checking for $ac_func" >&5
14727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14728   echo $ac_n "(cached) $ac_c" 1>&6
14729 else
14730   cat > conftest.$ac_ext <<EOF
14731 #line 14732 "configure"
14732 #include "confdefs.h"
14733 /* System header to define __stub macros and hopefully few prototypes,
14734     which can conflict with char $ac_func(); below.  */
14735 #include <assert.h>
14736 /* Override any gcc2 internal prototype to avoid an error.  */
14737 /* We use char because int might match the return type of a gcc2
14738     builtin and then its argument prototype would still apply.  */
14739 char $ac_func();
14740
14741 int main() {
14742
14743 /* The GNU C library defines this for functions which it implements
14744     to always fail with ENOSYS.  Some functions are actually named
14745     something starting with __ and the normal name is an alias.  */
14746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14747 choke me
14748 #else
14749 $ac_func();
14750 #endif
14751
14752 ; return 0; }
14753 EOF
14754 if { (eval echo configure:14755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14755   rm -rf conftest*
14756   eval "ac_cv_func_$ac_func=yes"
14757 else
14758   echo "configure: failed program was:" >&5
14759   cat conftest.$ac_ext >&5
14760   rm -rf conftest*
14761   eval "ac_cv_func_$ac_func=no"
14762 fi
14763 rm -f conftest*
14764 fi
14765
14766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14767   echo "$ac_t""yes" 1>&6
14768     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14769   cat >> confdefs.h <<EOF
14770 #define $ac_tr_func 1
14771 EOF
14772  
14773 else
14774   echo "$ac_t""no" 1>&6
14775 fi
14776 done
14777     
14778     fi
14779   fi
14780
14781   
14782   
14783   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
14784 echo "configure:14785: checking for sqrtl declaration" >&5
14785   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
14786     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
14787   echo $ac_n "(cached) $ac_c" 1>&6
14788 else
14789   
14790       
14791       ac_ext=C
14792 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14793 ac_cpp='$CXXCPP $CPPFLAGS'
14794 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14795 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14796 cross_compiling=$ac_cv_prog_cxx_cross
14797
14798       cat > conftest.$ac_ext <<EOF
14799 #line 14800 "configure"
14800 #include "confdefs.h"
14801 #include <math.h>
14802                       #ifdef HAVE_IEEEFP_H
14803                       #include <ieeefp.h>
14804                       #endif
14805                      
14806 int main() {
14807  sqrtl(0);
14808 ; return 0; }
14809 EOF
14810 if { (eval echo configure:14811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14811   rm -rf conftest*
14812   glibcpp_cv_func_sqrtl_use=yes
14813 else
14814   echo "configure: failed program was:" >&5
14815   cat conftest.$ac_ext >&5
14816   rm -rf conftest*
14817   glibcpp_cv_func_sqrtl_use=no
14818 fi
14819 rm -f conftest*
14820       ac_ext=c
14821 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14822 ac_cpp='$CPP $CPPFLAGS'
14823 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14824 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14825 cross_compiling=$ac_cv_prog_cc_cross
14826
14827     
14828 fi
14829
14830   fi
14831   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
14832
14833   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
14834     for ac_func in sqrtl
14835 do
14836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14837 echo "configure:14838: checking for $ac_func" >&5
14838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14839   echo $ac_n "(cached) $ac_c" 1>&6
14840 else
14841   cat > conftest.$ac_ext <<EOF
14842 #line 14843 "configure"
14843 #include "confdefs.h"
14844 /* System header to define __stub macros and hopefully few prototypes,
14845     which can conflict with char $ac_func(); below.  */
14846 #include <assert.h>
14847 /* Override any gcc2 internal prototype to avoid an error.  */
14848 /* We use char because int might match the return type of a gcc2
14849     builtin and then its argument prototype would still apply.  */
14850 char $ac_func();
14851
14852 int main() {
14853
14854 /* The GNU C library defines this for functions which it implements
14855     to always fail with ENOSYS.  Some functions are actually named
14856     something starting with __ and the normal name is an alias.  */
14857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14858 choke me
14859 #else
14860 $ac_func();
14861 #endif
14862
14863 ; return 0; }
14864 EOF
14865 if { (eval echo configure:14866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14866   rm -rf conftest*
14867   eval "ac_cv_func_$ac_func=yes"
14868 else
14869   echo "configure: failed program was:" >&5
14870   cat conftest.$ac_ext >&5
14871   rm -rf conftest*
14872   eval "ac_cv_func_$ac_func=no"
14873 fi
14874 rm -f conftest*
14875 fi
14876
14877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14878   echo "$ac_t""yes" 1>&6
14879     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14880   cat >> confdefs.h <<EOF
14881 #define $ac_tr_func 1
14882 EOF
14883  
14884 else
14885   echo "$ac_t""no" 1>&6
14886 fi
14887 done
14888     
14889   else
14890     
14891   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
14892 echo "configure:14893: checking for _sqrtl declaration" >&5
14893   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
14894     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
14895   echo $ac_n "(cached) $ac_c" 1>&6
14896 else
14897   
14898       
14899       ac_ext=C
14900 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14901 ac_cpp='$CXXCPP $CPPFLAGS'
14902 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14903 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14904 cross_compiling=$ac_cv_prog_cxx_cross
14905
14906       cat > conftest.$ac_ext <<EOF
14907 #line 14908 "configure"
14908 #include "confdefs.h"
14909 #include <math.h>
14910                       #ifdef HAVE_IEEEFP_H
14911                       #include <ieeefp.h>
14912                       #endif
14913                      
14914 int main() {
14915  _sqrtl(0);
14916 ; return 0; }
14917 EOF
14918 if { (eval echo configure:14919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14919   rm -rf conftest*
14920   glibcpp_cv_func__sqrtl_use=yes
14921 else
14922   echo "configure: failed program was:" >&5
14923   cat conftest.$ac_ext >&5
14924   rm -rf conftest*
14925   glibcpp_cv_func__sqrtl_use=no
14926 fi
14927 rm -f conftest*
14928       ac_ext=c
14929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14930 ac_cpp='$CPP $CPPFLAGS'
14931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14932 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14933 cross_compiling=$ac_cv_prog_cc_cross
14934
14935     
14936 fi
14937
14938   fi
14939   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
14940
14941     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
14942       for ac_func in _sqrtl
14943 do
14944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14945 echo "configure:14946: checking for $ac_func" >&5
14946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14947   echo $ac_n "(cached) $ac_c" 1>&6
14948 else
14949   cat > conftest.$ac_ext <<EOF
14950 #line 14951 "configure"
14951 #include "confdefs.h"
14952 /* System header to define __stub macros and hopefully few prototypes,
14953     which can conflict with char $ac_func(); below.  */
14954 #include <assert.h>
14955 /* Override any gcc2 internal prototype to avoid an error.  */
14956 /* We use char because int might match the return type of a gcc2
14957     builtin and then its argument prototype would still apply.  */
14958 char $ac_func();
14959
14960 int main() {
14961
14962 /* The GNU C library defines this for functions which it implements
14963     to always fail with ENOSYS.  Some functions are actually named
14964     something starting with __ and the normal name is an alias.  */
14965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14966 choke me
14967 #else
14968 $ac_func();
14969 #endif
14970
14971 ; return 0; }
14972 EOF
14973 if { (eval echo configure:14974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14974   rm -rf conftest*
14975   eval "ac_cv_func_$ac_func=yes"
14976 else
14977   echo "configure: failed program was:" >&5
14978   cat conftest.$ac_ext >&5
14979   rm -rf conftest*
14980   eval "ac_cv_func_$ac_func=no"
14981 fi
14982 rm -f conftest*
14983 fi
14984
14985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14986   echo "$ac_t""yes" 1>&6
14987     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14988   cat >> confdefs.h <<EOF
14989 #define $ac_tr_func 1
14990 EOF
14991  
14992 else
14993   echo "$ac_t""no" 1>&6
14994 fi
14995 done
14996     
14997     fi
14998   fi
14999
15000   
15001   
15002   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
15003 echo "configure:15004: checking for sincosl declaration" >&5
15004   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
15005     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
15006   echo $ac_n "(cached) $ac_c" 1>&6
15007 else
15008   
15009       
15010       ac_ext=C
15011 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15012 ac_cpp='$CXXCPP $CPPFLAGS'
15013 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15014 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15015 cross_compiling=$ac_cv_prog_cxx_cross
15016
15017       cat > conftest.$ac_ext <<EOF
15018 #line 15019 "configure"
15019 #include "confdefs.h"
15020 #include <math.h>
15021 int main() {
15022  sincosl(0, 0, 0);
15023 ; return 0; }
15024 EOF
15025 if { (eval echo configure:15026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15026   rm -rf conftest*
15027   glibcpp_cv_func_sincosl_use=yes
15028 else
15029   echo "configure: failed program was:" >&5
15030   cat conftest.$ac_ext >&5
15031   rm -rf conftest*
15032   glibcpp_cv_func_sincosl_use=no
15033 fi
15034 rm -f conftest*
15035       ac_ext=c
15036 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15037 ac_cpp='$CPP $CPPFLAGS'
15038 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15039 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15040 cross_compiling=$ac_cv_prog_cc_cross
15041
15042     
15043 fi
15044
15045   fi
15046   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
15047
15048   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
15049     for ac_func in sincosl
15050 do
15051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15052 echo "configure:15053: checking for $ac_func" >&5
15053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15054   echo $ac_n "(cached) $ac_c" 1>&6
15055 else
15056   cat > conftest.$ac_ext <<EOF
15057 #line 15058 "configure"
15058 #include "confdefs.h"
15059 /* System header to define __stub macros and hopefully few prototypes,
15060     which can conflict with char $ac_func(); below.  */
15061 #include <assert.h>
15062 /* Override any gcc2 internal prototype to avoid an error.  */
15063 /* We use char because int might match the return type of a gcc2
15064     builtin and then its argument prototype would still apply.  */
15065 char $ac_func();
15066
15067 int main() {
15068
15069 /* The GNU C library defines this for functions which it implements
15070     to always fail with ENOSYS.  Some functions are actually named
15071     something starting with __ and the normal name is an alias.  */
15072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15073 choke me
15074 #else
15075 $ac_func();
15076 #endif
15077
15078 ; return 0; }
15079 EOF
15080 if { (eval echo configure:15081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15081   rm -rf conftest*
15082   eval "ac_cv_func_$ac_func=yes"
15083 else
15084   echo "configure: failed program was:" >&5
15085   cat conftest.$ac_ext >&5
15086   rm -rf conftest*
15087   eval "ac_cv_func_$ac_func=no"
15088 fi
15089 rm -f conftest*
15090 fi
15091
15092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15093   echo "$ac_t""yes" 1>&6
15094     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15095   cat >> confdefs.h <<EOF
15096 #define $ac_tr_func 1
15097 EOF
15098  
15099 else
15100   echo "$ac_t""no" 1>&6
15101 fi
15102 done
15103     
15104   else
15105     
15106   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
15107 echo "configure:15108: checking for _sincosl declaration" >&5
15108   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
15109     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
15110   echo $ac_n "(cached) $ac_c" 1>&6
15111 else
15112   
15113       
15114       ac_ext=C
15115 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15116 ac_cpp='$CXXCPP $CPPFLAGS'
15117 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15118 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15119 cross_compiling=$ac_cv_prog_cxx_cross
15120
15121       cat > conftest.$ac_ext <<EOF
15122 #line 15123 "configure"
15123 #include "confdefs.h"
15124 #include <math.h>
15125 int main() {
15126  _sincosl(0, 0, 0);
15127 ; return 0; }
15128 EOF
15129 if { (eval echo configure:15130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15130   rm -rf conftest*
15131   glibcpp_cv_func__sincosl_use=yes
15132 else
15133   echo "configure: failed program was:" >&5
15134   cat conftest.$ac_ext >&5
15135   rm -rf conftest*
15136   glibcpp_cv_func__sincosl_use=no
15137 fi
15138 rm -f conftest*
15139       ac_ext=c
15140 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15141 ac_cpp='$CPP $CPPFLAGS'
15142 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15143 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15144 cross_compiling=$ac_cv_prog_cc_cross
15145
15146     
15147 fi
15148
15149   fi
15150   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
15151
15152     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
15153       for ac_func in _sincosl
15154 do
15155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15156 echo "configure:15157: checking for $ac_func" >&5
15157 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15158   echo $ac_n "(cached) $ac_c" 1>&6
15159 else
15160   cat > conftest.$ac_ext <<EOF
15161 #line 15162 "configure"
15162 #include "confdefs.h"
15163 /* System header to define __stub macros and hopefully few prototypes,
15164     which can conflict with char $ac_func(); below.  */
15165 #include <assert.h>
15166 /* Override any gcc2 internal prototype to avoid an error.  */
15167 /* We use char because int might match the return type of a gcc2
15168     builtin and then its argument prototype would still apply.  */
15169 char $ac_func();
15170
15171 int main() {
15172
15173 /* The GNU C library defines this for functions which it implements
15174     to always fail with ENOSYS.  Some functions are actually named
15175     something starting with __ and the normal name is an alias.  */
15176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15177 choke me
15178 #else
15179 $ac_func();
15180 #endif
15181
15182 ; return 0; }
15183 EOF
15184 if { (eval echo configure:15185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15185   rm -rf conftest*
15186   eval "ac_cv_func_$ac_func=yes"
15187 else
15188   echo "configure: failed program was:" >&5
15189   cat conftest.$ac_ext >&5
15190   rm -rf conftest*
15191   eval "ac_cv_func_$ac_func=no"
15192 fi
15193 rm -f conftest*
15194 fi
15195
15196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15197   echo "$ac_t""yes" 1>&6
15198     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15199   cat >> confdefs.h <<EOF
15200 #define $ac_tr_func 1
15201 EOF
15202  
15203 else
15204   echo "$ac_t""no" 1>&6
15205 fi
15206 done
15207     
15208     fi
15209   fi
15210
15211   
15212   
15213   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
15214 echo "configure:15215: checking for finitel declaration" >&5
15215   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
15216     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
15217   echo $ac_n "(cached) $ac_c" 1>&6
15218 else
15219   
15220       
15221       ac_ext=C
15222 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15223 ac_cpp='$CXXCPP $CPPFLAGS'
15224 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15225 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15226 cross_compiling=$ac_cv_prog_cxx_cross
15227
15228       cat > conftest.$ac_ext <<EOF
15229 #line 15230 "configure"
15230 #include "confdefs.h"
15231 #include <math.h>
15232                       #ifdef HAVE_IEEEFP_H
15233                       #include <ieeefp.h>
15234                       #endif
15235                      
15236 int main() {
15237  finitel(0);
15238 ; return 0; }
15239 EOF
15240 if { (eval echo configure:15241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15241   rm -rf conftest*
15242   glibcpp_cv_func_finitel_use=yes
15243 else
15244   echo "configure: failed program was:" >&5
15245   cat conftest.$ac_ext >&5
15246   rm -rf conftest*
15247   glibcpp_cv_func_finitel_use=no
15248 fi
15249 rm -f conftest*
15250       ac_ext=c
15251 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15252 ac_cpp='$CPP $CPPFLAGS'
15253 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15254 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15255 cross_compiling=$ac_cv_prog_cc_cross
15256
15257     
15258 fi
15259
15260   fi
15261   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
15262
15263   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
15264     for ac_func in finitel
15265 do
15266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15267 echo "configure:15268: checking for $ac_func" >&5
15268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15269   echo $ac_n "(cached) $ac_c" 1>&6
15270 else
15271   cat > conftest.$ac_ext <<EOF
15272 #line 15273 "configure"
15273 #include "confdefs.h"
15274 /* System header to define __stub macros and hopefully few prototypes,
15275     which can conflict with char $ac_func(); below.  */
15276 #include <assert.h>
15277 /* Override any gcc2 internal prototype to avoid an error.  */
15278 /* We use char because int might match the return type of a gcc2
15279     builtin and then its argument prototype would still apply.  */
15280 char $ac_func();
15281
15282 int main() {
15283
15284 /* The GNU C library defines this for functions which it implements
15285     to always fail with ENOSYS.  Some functions are actually named
15286     something starting with __ and the normal name is an alias.  */
15287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15288 choke me
15289 #else
15290 $ac_func();
15291 #endif
15292
15293 ; return 0; }
15294 EOF
15295 if { (eval echo configure:15296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15296   rm -rf conftest*
15297   eval "ac_cv_func_$ac_func=yes"
15298 else
15299   echo "configure: failed program was:" >&5
15300   cat conftest.$ac_ext >&5
15301   rm -rf conftest*
15302   eval "ac_cv_func_$ac_func=no"
15303 fi
15304 rm -f conftest*
15305 fi
15306
15307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15308   echo "$ac_t""yes" 1>&6
15309     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15310   cat >> confdefs.h <<EOF
15311 #define $ac_tr_func 1
15312 EOF
15313  
15314 else
15315   echo "$ac_t""no" 1>&6
15316 fi
15317 done
15318     
15319   else
15320     
15321   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
15322 echo "configure:15323: checking for _finitel declaration" >&5
15323   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
15324     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
15325   echo $ac_n "(cached) $ac_c" 1>&6
15326 else
15327   
15328       
15329       ac_ext=C
15330 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15331 ac_cpp='$CXXCPP $CPPFLAGS'
15332 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15333 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15334 cross_compiling=$ac_cv_prog_cxx_cross
15335
15336       cat > conftest.$ac_ext <<EOF
15337 #line 15338 "configure"
15338 #include "confdefs.h"
15339 #include <math.h>
15340                       #ifdef HAVE_IEEEFP_H
15341                       #include <ieeefp.h>
15342                       #endif
15343                      
15344 int main() {
15345  _finitel(0);
15346 ; return 0; }
15347 EOF
15348 if { (eval echo configure:15349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15349   rm -rf conftest*
15350   glibcpp_cv_func__finitel_use=yes
15351 else
15352   echo "configure: failed program was:" >&5
15353   cat conftest.$ac_ext >&5
15354   rm -rf conftest*
15355   glibcpp_cv_func__finitel_use=no
15356 fi
15357 rm -f conftest*
15358       ac_ext=c
15359 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15360 ac_cpp='$CPP $CPPFLAGS'
15361 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15362 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15363 cross_compiling=$ac_cv_prog_cc_cross
15364
15365     
15366 fi
15367
15368   fi
15369   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
15370
15371     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
15372       for ac_func in _finitel
15373 do
15374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15375 echo "configure:15376: checking for $ac_func" >&5
15376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15377   echo $ac_n "(cached) $ac_c" 1>&6
15378 else
15379   cat > conftest.$ac_ext <<EOF
15380 #line 15381 "configure"
15381 #include "confdefs.h"
15382 /* System header to define __stub macros and hopefully few prototypes,
15383     which can conflict with char $ac_func(); below.  */
15384 #include <assert.h>
15385 /* Override any gcc2 internal prototype to avoid an error.  */
15386 /* We use char because int might match the return type of a gcc2
15387     builtin and then its argument prototype would still apply.  */
15388 char $ac_func();
15389
15390 int main() {
15391
15392 /* The GNU C library defines this for functions which it implements
15393     to always fail with ENOSYS.  Some functions are actually named
15394     something starting with __ and the normal name is an alias.  */
15395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15396 choke me
15397 #else
15398 $ac_func();
15399 #endif
15400
15401 ; return 0; }
15402 EOF
15403 if { (eval echo configure:15404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15404   rm -rf conftest*
15405   eval "ac_cv_func_$ac_func=yes"
15406 else
15407   echo "configure: failed program was:" >&5
15408   cat conftest.$ac_ext >&5
15409   rm -rf conftest*
15410   eval "ac_cv_func_$ac_func=no"
15411 fi
15412 rm -f conftest*
15413 fi
15414
15415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15416   echo "$ac_t""yes" 1>&6
15417     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15418   cat >> confdefs.h <<EOF
15419 #define $ac_tr_func 1
15420 EOF
15421  
15422 else
15423   echo "$ac_t""no" 1>&6
15424 fi
15425 done
15426     
15427     fi
15428   fi
15429
15430
15431         
15432     
15433   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
15434 echo "configure:15435: checking for _float trig functions" >&5
15435   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
15436   echo $ac_n "(cached) $ac_c" 1>&6
15437 else
15438   
15439     
15440     ac_ext=C
15441 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15442 ac_cpp='$CXXCPP $CPPFLAGS'
15443 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15444 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15445 cross_compiling=$ac_cv_prog_cxx_cross
15446
15447     cat > conftest.$ac_ext <<EOF
15448 #line 15449 "configure"
15449 #include "confdefs.h"
15450 #include <math.h>
15451 int main() {
15452  `for x in _acosf _asinf _atanf \
15453                                           _cosf _sinf _tanf \
15454                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
15455 ; return 0; }
15456 EOF
15457 if { (eval echo configure:15458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15458   rm -rf conftest*
15459   glibcpp_cv_func__float_trig_use=yes
15460 else
15461   echo "configure: failed program was:" >&5
15462   cat conftest.$ac_ext >&5
15463   rm -rf conftest*
15464   glibcpp_cv_func__float_trig_use=no
15465 fi
15466 rm -f conftest*
15467     ac_ext=c
15468 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15469 ac_cpp='$CPP $CPPFLAGS'
15470 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15471 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15472 cross_compiling=$ac_cv_prog_cc_cross
15473
15474 fi
15475
15476   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
15477   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
15478     for ac_func in _acosf _asinf _atanf \
15479                                           _cosf _sinf _tanf \
15480                                           _coshf _sinhf _tanhf
15481 do
15482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15483 echo "configure:15484: checking for $ac_func" >&5
15484 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15485   echo $ac_n "(cached) $ac_c" 1>&6
15486 else
15487   cat > conftest.$ac_ext <<EOF
15488 #line 15489 "configure"
15489 #include "confdefs.h"
15490 /* System header to define __stub macros and hopefully few prototypes,
15491     which can conflict with char $ac_func(); below.  */
15492 #include <assert.h>
15493 /* Override any gcc2 internal prototype to avoid an error.  */
15494 /* We use char because int might match the return type of a gcc2
15495     builtin and then its argument prototype would still apply.  */
15496 char $ac_func();
15497
15498 int main() {
15499
15500 /* The GNU C library defines this for functions which it implements
15501     to always fail with ENOSYS.  Some functions are actually named
15502     something starting with __ and the normal name is an alias.  */
15503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15504 choke me
15505 #else
15506 $ac_func();
15507 #endif
15508
15509 ; return 0; }
15510 EOF
15511 if { (eval echo configure:15512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15512   rm -rf conftest*
15513   eval "ac_cv_func_$ac_func=yes"
15514 else
15515   echo "configure: failed program was:" >&5
15516   cat conftest.$ac_ext >&5
15517   rm -rf conftest*
15518   eval "ac_cv_func_$ac_func=no"
15519 fi
15520 rm -f conftest*
15521 fi
15522
15523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15524   echo "$ac_t""yes" 1>&6
15525     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15526   cat >> confdefs.h <<EOF
15527 #define $ac_tr_func 1
15528 EOF
15529  
15530 else
15531   echo "$ac_t""no" 1>&6
15532 fi
15533 done
15534
15535   fi
15536
15537   
15538   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
15539 echo "configure:15540: checking for _float round functions" >&5
15540   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
15541   echo $ac_n "(cached) $ac_c" 1>&6
15542 else
15543   
15544     
15545     ac_ext=C
15546 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15547 ac_cpp='$CXXCPP $CPPFLAGS'
15548 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15549 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15550 cross_compiling=$ac_cv_prog_cxx_cross
15551
15552     cat > conftest.$ac_ext <<EOF
15553 #line 15554 "configure"
15554 #include "confdefs.h"
15555 #include <math.h>
15556 int main() {
15557  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
15558 ; return 0; }
15559 EOF
15560 if { (eval echo configure:15561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15561   rm -rf conftest*
15562   glibcpp_cv_func__float_round_use=yes
15563 else
15564   echo "configure: failed program was:" >&5
15565   cat conftest.$ac_ext >&5
15566   rm -rf conftest*
15567   glibcpp_cv_func__float_round_use=no
15568 fi
15569 rm -f conftest*
15570     ac_ext=c
15571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15572 ac_cpp='$CPP $CPPFLAGS'
15573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15575 cross_compiling=$ac_cv_prog_cc_cross
15576
15577 fi
15578
15579   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
15580   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
15581     for ac_func in _ceilf _floorf
15582 do
15583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15584 echo "configure:15585: checking for $ac_func" >&5
15585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15586   echo $ac_n "(cached) $ac_c" 1>&6
15587 else
15588   cat > conftest.$ac_ext <<EOF
15589 #line 15590 "configure"
15590 #include "confdefs.h"
15591 /* System header to define __stub macros and hopefully few prototypes,
15592     which can conflict with char $ac_func(); below.  */
15593 #include <assert.h>
15594 /* Override any gcc2 internal prototype to avoid an error.  */
15595 /* We use char because int might match the return type of a gcc2
15596     builtin and then its argument prototype would still apply.  */
15597 char $ac_func();
15598
15599 int main() {
15600
15601 /* The GNU C library defines this for functions which it implements
15602     to always fail with ENOSYS.  Some functions are actually named
15603     something starting with __ and the normal name is an alias.  */
15604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15605 choke me
15606 #else
15607 $ac_func();
15608 #endif
15609
15610 ; return 0; }
15611 EOF
15612 if { (eval echo configure:15613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15613   rm -rf conftest*
15614   eval "ac_cv_func_$ac_func=yes"
15615 else
15616   echo "configure: failed program was:" >&5
15617   cat conftest.$ac_ext >&5
15618   rm -rf conftest*
15619   eval "ac_cv_func_$ac_func=no"
15620 fi
15621 rm -f conftest*
15622 fi
15623
15624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15625   echo "$ac_t""yes" 1>&6
15626     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15627   cat >> confdefs.h <<EOF
15628 #define $ac_tr_func 1
15629 EOF
15630  
15631 else
15632   echo "$ac_t""no" 1>&6
15633 fi
15634 done
15635
15636   fi
15637
15638
15639     
15640   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
15641 echo "configure:15642: checking for _long double trig functions" >&5
15642   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
15643   echo $ac_n "(cached) $ac_c" 1>&6
15644 else
15645   
15646     
15647     ac_ext=C
15648 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15649 ac_cpp='$CXXCPP $CPPFLAGS'
15650 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15651 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15652 cross_compiling=$ac_cv_prog_cxx_cross
15653
15654     cat > conftest.$ac_ext <<EOF
15655 #line 15656 "configure"
15656 #include "confdefs.h"
15657 #include <math.h>
15658 int main() {
15659  `for x in _acosl _asinl _atanl \
15660                                           _cosl _sinl _tanl \
15661                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
15662 ; return 0; }
15663 EOF
15664 if { (eval echo configure:15665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15665   rm -rf conftest*
15666   glibcpp_cv_func__long_double_trig_use=yes
15667 else
15668   echo "configure: failed program was:" >&5
15669   cat conftest.$ac_ext >&5
15670   rm -rf conftest*
15671   glibcpp_cv_func__long_double_trig_use=no
15672 fi
15673 rm -f conftest*
15674     ac_ext=c
15675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15676 ac_cpp='$CPP $CPPFLAGS'
15677 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15678 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15679 cross_compiling=$ac_cv_prog_cc_cross
15680
15681 fi
15682
15683   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
15684   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
15685     for ac_func in _acosl _asinl _atanl \
15686                                           _cosl _sinl _tanl \
15687                                           _coshl _sinhl _tanhl
15688 do
15689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15690 echo "configure:15691: checking for $ac_func" >&5
15691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15692   echo $ac_n "(cached) $ac_c" 1>&6
15693 else
15694   cat > conftest.$ac_ext <<EOF
15695 #line 15696 "configure"
15696 #include "confdefs.h"
15697 /* System header to define __stub macros and hopefully few prototypes,
15698     which can conflict with char $ac_func(); below.  */
15699 #include <assert.h>
15700 /* Override any gcc2 internal prototype to avoid an error.  */
15701 /* We use char because int might match the return type of a gcc2
15702     builtin and then its argument prototype would still apply.  */
15703 char $ac_func();
15704
15705 int main() {
15706
15707 /* The GNU C library defines this for functions which it implements
15708     to always fail with ENOSYS.  Some functions are actually named
15709     something starting with __ and the normal name is an alias.  */
15710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15711 choke me
15712 #else
15713 $ac_func();
15714 #endif
15715
15716 ; return 0; }
15717 EOF
15718 if { (eval echo configure:15719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15719   rm -rf conftest*
15720   eval "ac_cv_func_$ac_func=yes"
15721 else
15722   echo "configure: failed program was:" >&5
15723   cat conftest.$ac_ext >&5
15724   rm -rf conftest*
15725   eval "ac_cv_func_$ac_func=no"
15726 fi
15727 rm -f conftest*
15728 fi
15729
15730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15731   echo "$ac_t""yes" 1>&6
15732     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15733   cat >> confdefs.h <<EOF
15734 #define $ac_tr_func 1
15735 EOF
15736  
15737 else
15738   echo "$ac_t""no" 1>&6
15739 fi
15740 done
15741
15742   fi
15743
15744   
15745   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
15746 echo "configure:15747: checking for _long double round functions" >&5
15747   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
15748   echo $ac_n "(cached) $ac_c" 1>&6
15749 else
15750   
15751     
15752     ac_ext=C
15753 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15754 ac_cpp='$CXXCPP $CPPFLAGS'
15755 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15756 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15757 cross_compiling=$ac_cv_prog_cxx_cross
15758
15759     cat > conftest.$ac_ext <<EOF
15760 #line 15761 "configure"
15761 #include "confdefs.h"
15762 #include <math.h>
15763 int main() {
15764  `for x in _ceill _floorl; do echo "$x (0);"; done` 
15765 ; return 0; }
15766 EOF
15767 if { (eval echo configure:15768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15768   rm -rf conftest*
15769   glibcpp_cv_func__long_double_round_use=yes
15770 else
15771   echo "configure: failed program was:" >&5
15772   cat conftest.$ac_ext >&5
15773   rm -rf conftest*
15774   glibcpp_cv_func__long_double_round_use=no
15775 fi
15776 rm -f conftest*
15777     ac_ext=c
15778 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15779 ac_cpp='$CPP $CPPFLAGS'
15780 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15781 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15782 cross_compiling=$ac_cv_prog_cc_cross
15783
15784 fi
15785
15786   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
15787   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
15788     for ac_func in _ceill _floorl
15789 do
15790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15791 echo "configure:15792: checking for $ac_func" >&5
15792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15793   echo $ac_n "(cached) $ac_c" 1>&6
15794 else
15795   cat > conftest.$ac_ext <<EOF
15796 #line 15797 "configure"
15797 #include "confdefs.h"
15798 /* System header to define __stub macros and hopefully few prototypes,
15799     which can conflict with char $ac_func(); below.  */
15800 #include <assert.h>
15801 /* Override any gcc2 internal prototype to avoid an error.  */
15802 /* We use char because int might match the return type of a gcc2
15803     builtin and then its argument prototype would still apply.  */
15804 char $ac_func();
15805
15806 int main() {
15807
15808 /* The GNU C library defines this for functions which it implements
15809     to always fail with ENOSYS.  Some functions are actually named
15810     something starting with __ and the normal name is an alias.  */
15811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15812 choke me
15813 #else
15814 $ac_func();
15815 #endif
15816
15817 ; return 0; }
15818 EOF
15819 if { (eval echo configure:15820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15820   rm -rf conftest*
15821   eval "ac_cv_func_$ac_func=yes"
15822 else
15823   echo "configure: failed program was:" >&5
15824   cat conftest.$ac_ext >&5
15825   rm -rf conftest*
15826   eval "ac_cv_func_$ac_func=no"
15827 fi
15828 rm -f conftest*
15829 fi
15830
15831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15832   echo "$ac_t""yes" 1>&6
15833     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15834   cat >> confdefs.h <<EOF
15835 #define $ac_tr_func 1
15836 EOF
15837  
15838 else
15839   echo "$ac_t""no" 1>&6
15840 fi
15841 done
15842
15843   fi
15844
15845
15846   LIBS="$ac_save_LIBS"
15847   CXXFLAGS="$ac_save_CXXFLAGS"
15848
15849   
15850     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
15851 echo "configure:15852: checking for main in -lm" >&5
15852 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
15853 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15854   echo $ac_n "(cached) $ac_c" 1>&6
15855 else
15856   ac_save_LIBS="$LIBS"
15857 LIBS="-lm  $LIBS"
15858 cat > conftest.$ac_ext <<EOF
15859 #line 15860 "configure"
15860 #include "confdefs.h"
15861
15862 int main() {
15863 main()
15864 ; return 0; }
15865 EOF
15866 if { (eval echo configure:15867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15867   rm -rf conftest*
15868   eval "ac_cv_lib_$ac_lib_var=yes"
15869 else
15870   echo "configure: failed program was:" >&5
15871   cat conftest.$ac_ext >&5
15872   rm -rf conftest*
15873   eval "ac_cv_lib_$ac_lib_var=no"
15874 fi
15875 rm -f conftest*
15876 LIBS="$ac_save_LIBS"
15877
15878 fi
15879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15880   echo "$ac_t""yes" 1>&6
15881     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15882     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15883   cat >> confdefs.h <<EOF
15884 #define $ac_tr_lib 1
15885 EOF
15886
15887   LIBS="-lm $LIBS"
15888
15889 else
15890   echo "$ac_t""no" 1>&6
15891 fi
15892
15893   for ac_func in nan copysignf
15894 do
15895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15896 echo "configure:15897: checking for $ac_func" >&5
15897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15898   echo $ac_n "(cached) $ac_c" 1>&6
15899 else
15900   cat > conftest.$ac_ext <<EOF
15901 #line 15902 "configure"
15902 #include "confdefs.h"
15903 /* System header to define __stub macros and hopefully few prototypes,
15904     which can conflict with char $ac_func(); below.  */
15905 #include <assert.h>
15906 /* Override any gcc2 internal prototype to avoid an error.  */
15907 /* We use char because int might match the return type of a gcc2
15908     builtin and then its argument prototype would still apply.  */
15909 char $ac_func();
15910
15911 int main() {
15912
15913 /* The GNU C library defines this for functions which it implements
15914     to always fail with ENOSYS.  Some functions are actually named
15915     something starting with __ and the normal name is an alias.  */
15916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15917 choke me
15918 #else
15919 $ac_func();
15920 #endif
15921
15922 ; return 0; }
15923 EOF
15924 if { (eval echo configure:15925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15925   rm -rf conftest*
15926   eval "ac_cv_func_$ac_func=yes"
15927 else
15928   echo "configure: failed program was:" >&5
15929   cat conftest.$ac_ext >&5
15930   rm -rf conftest*
15931   eval "ac_cv_func_$ac_func=no"
15932 fi
15933 rm -f conftest*
15934 fi
15935
15936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15937   echo "$ac_t""yes" 1>&6
15938     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15939   cat >> confdefs.h <<EOF
15940 #define $ac_tr_func 1
15941 EOF
15942  
15943 else
15944   echo "$ac_t""no" 1>&6
15945 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15946 fi
15947 done
15948
15949
15950
15951           USE_COMPLEX_LONG_DOUBLE=no
15952   if test x$ac_cv_func_copysignl = x"yes"; then
15953     USE_COMPLEX_LONG_DOUBLE=yes
15954     for ac_func in signbitl
15955 do
15956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15957 echo "configure:15958: checking for $ac_func" >&5
15958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15959   echo $ac_n "(cached) $ac_c" 1>&6
15960 else
15961   cat > conftest.$ac_ext <<EOF
15962 #line 15963 "configure"
15963 #include "confdefs.h"
15964 /* System header to define __stub macros and hopefully few prototypes,
15965     which can conflict with char $ac_func(); below.  */
15966 #include <assert.h>
15967 /* Override any gcc2 internal prototype to avoid an error.  */
15968 /* We use char because int might match the return type of a gcc2
15969     builtin and then its argument prototype would still apply.  */
15970 char $ac_func();
15971
15972 int main() {
15973
15974 /* The GNU C library defines this for functions which it implements
15975     to always fail with ENOSYS.  Some functions are actually named
15976     something starting with __ and the normal name is an alias.  */
15977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15978 choke me
15979 #else
15980 $ac_func();
15981 #endif
15982
15983 ; return 0; }
15984 EOF
15985 if { (eval echo configure:15986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15986   rm -rf conftest*
15987   eval "ac_cv_func_$ac_func=yes"
15988 else
15989   echo "configure: failed program was:" >&5
15990   cat conftest.$ac_ext >&5
15991   rm -rf conftest*
15992   eval "ac_cv_func_$ac_func=no"
15993 fi
15994 rm -f conftest*
15995 fi
15996
15997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15998   echo "$ac_t""yes" 1>&6
15999     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16000   cat >> confdefs.h <<EOF
16001 #define $ac_tr_func 1
16002 EOF
16003  
16004 else
16005   echo "$ac_t""no" 1>&6
16006 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16007 fi
16008 done
16009
16010
16011   fi
16012
16013   
16014
16015   
16016
16017       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
16018 echo "configure:16019: checking for mbstate_t" >&5
16019   cat > conftest.$ac_ext <<EOF
16020 #line 16021 "configure"
16021 #include "confdefs.h"
16022 #include <wchar.h>
16023 int main() {
16024 mbstate_t teststate;
16025 ; return 0; }
16026 EOF
16027 if { (eval echo configure:16028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16028   rm -rf conftest*
16029   have_mbstate_t=yes
16030 else
16031   echo "configure: failed program was:" >&5
16032   cat conftest.$ac_ext >&5
16033   rm -rf conftest*
16034   have_mbstate_t=no
16035 fi
16036 rm -f conftest*
16037   echo "$ac_t""$have_mbstate_t" 1>&6
16038   if test x"$have_mbstate_t" = xyes; then
16039     cat >> confdefs.h <<\EOF
16040 #define HAVE_MBSTATE_T 1
16041 EOF
16042
16043   fi
16044
16045     for ac_hdr in wchar.h
16046 do
16047 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16049 echo "configure:16050: checking for $ac_hdr" >&5
16050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16051   echo $ac_n "(cached) $ac_c" 1>&6
16052 else
16053   cat > conftest.$ac_ext <<EOF
16054 #line 16055 "configure"
16055 #include "confdefs.h"
16056 #include <$ac_hdr>
16057 EOF
16058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16059 { (eval echo configure:16060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16061 if test -z "$ac_err"; then
16062   rm -rf conftest*
16063   eval "ac_cv_header_$ac_safe=yes"
16064 else
16065   echo "$ac_err" >&5
16066   echo "configure: failed program was:" >&5
16067   cat conftest.$ac_ext >&5
16068   rm -rf conftest*
16069   eval "ac_cv_header_$ac_safe=no"
16070 fi
16071 rm -f conftest*
16072 fi
16073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16074   echo "$ac_t""yes" 1>&6
16075     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16076   cat >> confdefs.h <<EOF
16077 #define $ac_tr_hdr 1
16078 EOF
16079  ac_has_wchar_h=yes
16080 else
16081   echo "$ac_t""no" 1>&6
16082 ac_has_wchar_h=no
16083 fi
16084 done
16085
16086   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
16087 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
16088 echo "configure:16089: checking for wctype.h" >&5
16089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16090   echo $ac_n "(cached) $ac_c" 1>&6
16091 else
16092   cat > conftest.$ac_ext <<EOF
16093 #line 16094 "configure"
16094 #include "confdefs.h"
16095 #include <wctype.h>
16096 EOF
16097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16098 { (eval echo configure:16099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16100 if test -z "$ac_err"; then
16101   rm -rf conftest*
16102   eval "ac_cv_header_$ac_safe=yes"
16103 else
16104   echo "$ac_err" >&5
16105   echo "configure: failed program was:" >&5
16106   cat conftest.$ac_ext >&5
16107   rm -rf conftest*
16108   eval "ac_cv_header_$ac_safe=no"
16109 fi
16110 rm -f conftest*
16111 fi
16112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16113   echo "$ac_t""yes" 1>&6
16114   ac_has_wctype_h=yes
16115 else
16116   echo "$ac_t""no" 1>&6
16117 ac_has_wctype_h=no
16118 fi
16119
16120   
16121     if test x"$ac_has_wchar_h" = xyes &&
16122      test x"$ac_has_wctype_h" = xyes &&
16123      test x"$enable_c_mbchar" != xno; then
16124       
16125             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
16126 echo "configure:16127: checking for WCHAR_MIN and WCHAR_MAX" >&5
16127     cat > conftest.$ac_ext <<EOF
16128 #line 16129 "configure"
16129 #include "confdefs.h"
16130 #include <wchar.h>
16131 int main() {
16132 int i = WCHAR_MIN; int j = WCHAR_MAX;
16133 ; return 0; }
16134 EOF
16135 if { (eval echo configure:16136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16136   rm -rf conftest*
16137   has_wchar_minmax=yes
16138 else
16139   echo "configure: failed program was:" >&5
16140   cat conftest.$ac_ext >&5
16141   rm -rf conftest*
16142   has_wchar_minmax=no
16143 fi
16144 rm -f conftest*
16145     echo "$ac_t""$has_wchar_minmax" 1>&6
16146     
16147             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
16148 echo "configure:16149: checking for WEOF" >&5
16149     cat > conftest.$ac_ext <<EOF
16150 #line 16151 "configure"
16151 #include "confdefs.h"
16152
16153       #include <wchar.h>
16154       #include <stddef.h>
16155 int main() {
16156 wint_t i = WEOF;
16157 ; return 0; }
16158 EOF
16159 if { (eval echo configure:16160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16160   rm -rf conftest*
16161   has_weof=yes
16162 else
16163   echo "configure: failed program was:" >&5
16164   cat conftest.$ac_ext >&5
16165   rm -rf conftest*
16166   has_weof=no
16167 fi
16168 rm -f conftest*
16169     echo "$ac_t""$has_weof" 1>&6
16170   
16171         ac_wfuncs=yes
16172     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
16173 do
16174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16175 echo "configure:16176: checking for $ac_func" >&5
16176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16177   echo $ac_n "(cached) $ac_c" 1>&6
16178 else
16179   cat > conftest.$ac_ext <<EOF
16180 #line 16181 "configure"
16181 #include "confdefs.h"
16182 /* System header to define __stub macros and hopefully few prototypes,
16183     which can conflict with char $ac_func(); below.  */
16184 #include <assert.h>
16185 /* Override any gcc2 internal prototype to avoid an error.  */
16186 /* We use char because int might match the return type of a gcc2
16187     builtin and then its argument prototype would still apply.  */
16188 char $ac_func();
16189
16190 int main() {
16191
16192 /* The GNU C library defines this for functions which it implements
16193     to always fail with ENOSYS.  Some functions are actually named
16194     something starting with __ and the normal name is an alias.  */
16195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16196 choke me
16197 #else
16198 $ac_func();
16199 #endif
16200
16201 ; return 0; }
16202 EOF
16203 if { (eval echo configure:16204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16204   rm -rf conftest*
16205   eval "ac_cv_func_$ac_func=yes"
16206 else
16207   echo "configure: failed program was:" >&5
16208   cat conftest.$ac_ext >&5
16209   rm -rf conftest*
16210   eval "ac_cv_func_$ac_func=no"
16211 fi
16212 rm -f conftest*
16213 fi
16214
16215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16216   echo "$ac_t""yes" 1>&6
16217     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16218   cat >> confdefs.h <<EOF
16219 #define $ac_tr_func 1
16220 EOF
16221  
16222 else
16223   echo "$ac_t""no" 1>&6
16224 \
16225     ac_wfuncs=no
16226 fi
16227 done
16228
16229   
16230         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
16231     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
16232     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
16233     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
16234     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
16235     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
16236 do
16237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16238 echo "configure:16239: checking for $ac_func" >&5
16239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16240   echo $ac_n "(cached) $ac_c" 1>&6
16241 else
16242   cat > conftest.$ac_ext <<EOF
16243 #line 16244 "configure"
16244 #include "confdefs.h"
16245 /* System header to define __stub macros and hopefully few prototypes,
16246     which can conflict with char $ac_func(); below.  */
16247 #include <assert.h>
16248 /* Override any gcc2 internal prototype to avoid an error.  */
16249 /* We use char because int might match the return type of a gcc2
16250     builtin and then its argument prototype would still apply.  */
16251 char $ac_func();
16252
16253 int main() {
16254
16255 /* The GNU C library defines this for functions which it implements
16256     to always fail with ENOSYS.  Some functions are actually named
16257     something starting with __ and the normal name is an alias.  */
16258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16259 choke me
16260 #else
16261 $ac_func();
16262 #endif
16263
16264 ; return 0; }
16265 EOF
16266 if { (eval echo configure:16267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16267   rm -rf conftest*
16268   eval "ac_cv_func_$ac_func=yes"
16269 else
16270   echo "configure: failed program was:" >&5
16271   cat conftest.$ac_ext >&5
16272   rm -rf conftest*
16273   eval "ac_cv_func_$ac_func=no"
16274 fi
16275 rm -f conftest*
16276 fi
16277
16278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16279   echo "$ac_t""yes" 1>&6
16280     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16281   cat >> confdefs.h <<EOF
16282 #define $ac_tr_func 1
16283 EOF
16284  
16285 else
16286   echo "$ac_t""no" 1>&6
16287 \
16288     ac_wfuncs=no
16289 fi
16290 done
16291
16292
16293     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
16294 echo "configure:16295: checking for ISO C99 wchar_t support" >&5
16295     if test x"$has_weof" = xyes &&
16296        test x"$has_wchar_minmax" = xyes &&
16297        test x"$ac_wfuncs" = xyes; then
16298       ac_isoC99_wchar_t=yes
16299     else
16300       ac_isoC99_wchar_t=no
16301     fi
16302     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
16303   
16304             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
16305 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
16306 echo "configure:16307: checking for iconv.h" >&5
16307 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16308   echo $ac_n "(cached) $ac_c" 1>&6
16309 else
16310   cat > conftest.$ac_ext <<EOF
16311 #line 16312 "configure"
16312 #include "confdefs.h"
16313 #include <iconv.h>
16314 EOF
16315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16316 { (eval echo configure:16317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16318 if test -z "$ac_err"; then
16319   rm -rf conftest*
16320   eval "ac_cv_header_$ac_safe=yes"
16321 else
16322   echo "$ac_err" >&5
16323   echo "configure: failed program was:" >&5
16324   cat conftest.$ac_ext >&5
16325   rm -rf conftest*
16326   eval "ac_cv_header_$ac_safe=no"
16327 fi
16328 rm -f conftest*
16329 fi
16330 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16331   echo "$ac_t""yes" 1>&6
16332   ac_has_iconv_h=yes
16333 else
16334   echo "$ac_t""no" 1>&6
16335 ac_has_iconv_h=no
16336 fi
16337
16338     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
16339 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
16340 echo "configure:16341: checking for langinfo.h" >&5
16341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16342   echo $ac_n "(cached) $ac_c" 1>&6
16343 else
16344   cat > conftest.$ac_ext <<EOF
16345 #line 16346 "configure"
16346 #include "confdefs.h"
16347 #include <langinfo.h>
16348 EOF
16349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16350 { (eval echo configure:16351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16352 if test -z "$ac_err"; then
16353   rm -rf conftest*
16354   eval "ac_cv_header_$ac_safe=yes"
16355 else
16356   echo "$ac_err" >&5
16357   echo "configure: failed program was:" >&5
16358   cat conftest.$ac_ext >&5
16359   rm -rf conftest*
16360   eval "ac_cv_header_$ac_safe=no"
16361 fi
16362 rm -f conftest*
16363 fi
16364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16365   echo "$ac_t""yes" 1>&6
16366   ac_has_langinfo_h=yes
16367 else
16368   echo "$ac_t""no" 1>&6
16369 ac_has_langinfo_h=no
16370 fi
16371
16372
16373         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
16374 echo "configure:16375: checking for iconv in -liconv" >&5
16375 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
16376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16377   echo $ac_n "(cached) $ac_c" 1>&6
16378 else
16379   ac_save_LIBS="$LIBS"
16380 LIBS="-liconv  $LIBS"
16381 cat > conftest.$ac_ext <<EOF
16382 #line 16383 "configure"
16383 #include "confdefs.h"
16384 /* Override any gcc2 internal prototype to avoid an error.  */
16385 /* We use char because int might match the return type of a gcc2
16386     builtin and then its argument prototype would still apply.  */
16387 char iconv();
16388
16389 int main() {
16390 iconv()
16391 ; return 0; }
16392 EOF
16393 if { (eval echo configure:16394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16394   rm -rf conftest*
16395   eval "ac_cv_lib_$ac_lib_var=yes"
16396 else
16397   echo "configure: failed program was:" >&5
16398   cat conftest.$ac_ext >&5
16399   rm -rf conftest*
16400   eval "ac_cv_lib_$ac_lib_var=no"
16401 fi
16402 rm -f conftest*
16403 LIBS="$ac_save_LIBS"
16404
16405 fi
16406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16407   echo "$ac_t""yes" 1>&6
16408   libiconv="-liconv"
16409 else
16410   echo "$ac_t""no" 1>&6
16411 fi
16412
16413     ac_save_LIBS="$LIBS"
16414     LIBS="$LIBS $libiconv"
16415
16416     for ac_func in iconv_open iconv_close iconv nl_langinfo
16417 do
16418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16419 echo "configure:16420: checking for $ac_func" >&5
16420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16421   echo $ac_n "(cached) $ac_c" 1>&6
16422 else
16423   cat > conftest.$ac_ext <<EOF
16424 #line 16425 "configure"
16425 #include "confdefs.h"
16426 /* System header to define __stub macros and hopefully few prototypes,
16427     which can conflict with char $ac_func(); below.  */
16428 #include <assert.h>
16429 /* Override any gcc2 internal prototype to avoid an error.  */
16430 /* We use char because int might match the return type of a gcc2
16431     builtin and then its argument prototype would still apply.  */
16432 char $ac_func();
16433
16434 int main() {
16435
16436 /* The GNU C library defines this for functions which it implements
16437     to always fail with ENOSYS.  Some functions are actually named
16438     something starting with __ and the normal name is an alias.  */
16439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16440 choke me
16441 #else
16442 $ac_func();
16443 #endif
16444
16445 ; return 0; }
16446 EOF
16447 if { (eval echo configure:16448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16448   rm -rf conftest*
16449   eval "ac_cv_func_$ac_func=yes"
16450 else
16451   echo "configure: failed program was:" >&5
16452   cat conftest.$ac_ext >&5
16453   rm -rf conftest*
16454   eval "ac_cv_func_$ac_func=no"
16455 fi
16456 rm -f conftest*
16457 fi
16458
16459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16460   echo "$ac_t""yes" 1>&6
16461     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16462   cat >> confdefs.h <<EOF
16463 #define $ac_tr_func 1
16464 EOF
16465  \
16466     ac_XPG2funcs=yes
16467 else
16468   echo "$ac_t""no" 1>&6
16469 ac_XPG2funcs=no
16470 fi
16471 done
16472
16473   
16474     LIBS="$ac_save_LIBS"
16475
16476     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
16477 echo "configure:16478: checking for XPG2 wchar_t support" >&5
16478     if test x"$ac_has_iconv_h" = xyes &&
16479        test x"$ac_has_langinfo_h" = xyes &&
16480        test x"$ac_XPG2funcs" = xyes; then
16481       ac_XPG2_wchar_t=yes
16482     else
16483       ac_XPG2_wchar_t=no
16484     fi
16485     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
16486   
16487             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
16488 echo "configure:16489: checking for enabled wchar_t specializations" >&5
16489     if test x"$ac_isoC99_wchar_t" = xyes &&
16490        test x"$ac_XPG2_wchar_t" = xyes; then
16491       cat >> confdefs.h <<\EOF
16492 #define _GLIBCPP_USE_WCHAR_T 1
16493 EOF
16494
16495       echo "$ac_t"""yes"" 1>&6
16496     else
16497       echo "$ac_t"""no"" 1>&6
16498     fi
16499   else
16500         echo "configure: warning: wchar_t support disabled." 1>&2
16501   fi
16502
16503   
16504   ac_test_CXXFLAGS="${CXXFLAGS+set}"
16505   ac_save_CXXFLAGS="$CXXFLAGS"
16506   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
16507
16508   
16509   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
16510 echo "configure:16511: checking for strtold declaration" >&5
16511   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
16512     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
16513   echo $ac_n "(cached) $ac_c" 1>&6
16514 else
16515   
16516       
16517       ac_ext=C
16518 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16519 ac_cpp='$CXXCPP $CPPFLAGS'
16520 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16521 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16522 cross_compiling=$ac_cv_prog_cxx_cross
16523
16524       cat > conftest.$ac_ext <<EOF
16525 #line 16526 "configure"
16526 #include "confdefs.h"
16527 #include <stdlib.h>
16528 int main() {
16529  strtold(0, 0);
16530 ; return 0; }
16531 EOF
16532 if { (eval echo configure:16533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16533   rm -rf conftest*
16534   glibcpp_cv_func_strtold_use=yes
16535 else
16536   echo "configure: failed program was:" >&5
16537   cat conftest.$ac_ext >&5
16538   rm -rf conftest*
16539   glibcpp_cv_func_strtold_use=no
16540 fi
16541 rm -f conftest*
16542       ac_ext=c
16543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16544 ac_cpp='$CPP $CPPFLAGS'
16545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16547 cross_compiling=$ac_cv_prog_cc_cross
16548
16549     
16550 fi
16551
16552   fi
16553   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
16554   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
16555     for ac_func in strtold
16556 do
16557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16558 echo "configure:16559: checking for $ac_func" >&5
16559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16560   echo $ac_n "(cached) $ac_c" 1>&6
16561 else
16562   cat > conftest.$ac_ext <<EOF
16563 #line 16564 "configure"
16564 #include "confdefs.h"
16565 /* System header to define __stub macros and hopefully few prototypes,
16566     which can conflict with char $ac_func(); below.  */
16567 #include <assert.h>
16568 /* Override any gcc2 internal prototype to avoid an error.  */
16569 /* We use char because int might match the return type of a gcc2
16570     builtin and then its argument prototype would still apply.  */
16571 char $ac_func();
16572
16573 int main() {
16574
16575 /* The GNU C library defines this for functions which it implements
16576     to always fail with ENOSYS.  Some functions are actually named
16577     something starting with __ and the normal name is an alias.  */
16578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16579 choke me
16580 #else
16581 $ac_func();
16582 #endif
16583
16584 ; return 0; }
16585 EOF
16586 if { (eval echo configure:16587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16587   rm -rf conftest*
16588   eval "ac_cv_func_$ac_func=yes"
16589 else
16590   echo "configure: failed program was:" >&5
16591   cat conftest.$ac_ext >&5
16592   rm -rf conftest*
16593   eval "ac_cv_func_$ac_func=no"
16594 fi
16595 rm -f conftest*
16596 fi
16597
16598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16599   echo "$ac_t""yes" 1>&6
16600     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16601   cat >> confdefs.h <<EOF
16602 #define $ac_tr_func 1
16603 EOF
16604  
16605 else
16606   echo "$ac_t""no" 1>&6
16607 fi
16608 done
16609     
16610   fi
16611
16612   for ac_func in drand48
16613 do
16614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16615 echo "configure:16616: checking for $ac_func" >&5
16616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16617   echo $ac_n "(cached) $ac_c" 1>&6
16618 else
16619   cat > conftest.$ac_ext <<EOF
16620 #line 16621 "configure"
16621 #include "confdefs.h"
16622 /* System header to define __stub macros and hopefully few prototypes,
16623     which can conflict with char $ac_func(); below.  */
16624 #include <assert.h>
16625 /* Override any gcc2 internal prototype to avoid an error.  */
16626 /* We use char because int might match the return type of a gcc2
16627     builtin and then its argument prototype would still apply.  */
16628 char $ac_func();
16629
16630 int main() {
16631
16632 /* The GNU C library defines this for functions which it implements
16633     to always fail with ENOSYS.  Some functions are actually named
16634     something starting with __ and the normal name is an alias.  */
16635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16636 choke me
16637 #else
16638 $ac_func();
16639 #endif
16640
16641 ; return 0; }
16642 EOF
16643 if { (eval echo configure:16644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16644   rm -rf conftest*
16645   eval "ac_cv_func_$ac_func=yes"
16646 else
16647   echo "configure: failed program was:" >&5
16648   cat conftest.$ac_ext >&5
16649   rm -rf conftest*
16650   eval "ac_cv_func_$ac_func=no"
16651 fi
16652 rm -f conftest*
16653 fi
16654
16655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16656   echo "$ac_t""yes" 1>&6
16657     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16658   cat >> confdefs.h <<EOF
16659 #define $ac_tr_func 1
16660 EOF
16661  
16662 else
16663   echo "$ac_t""no" 1>&6
16664 fi
16665 done
16666
16667
16668   CXXFLAGS="$ac_save_CXXFLAGS"
16669
16670   
16671   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16672 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16673 echo "configure:16674: checking for locale.h" >&5
16674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16675   echo $ac_n "(cached) $ac_c" 1>&6
16676 else
16677   cat > conftest.$ac_ext <<EOF
16678 #line 16679 "configure"
16679 #include "confdefs.h"
16680 #include <locale.h>
16681 EOF
16682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16683 { (eval echo configure:16684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16685 if test -z "$ac_err"; then
16686   rm -rf conftest*
16687   eval "ac_cv_header_$ac_safe=yes"
16688 else
16689   echo "$ac_err" >&5
16690   echo "configure: failed program was:" >&5
16691   cat conftest.$ac_ext >&5
16692   rm -rf conftest*
16693   eval "ac_cv_header_$ac_safe=no"
16694 fi
16695 rm -f conftest*
16696 fi
16697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16698   echo "$ac_t""yes" 1>&6
16699   
16700     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16701 echo "configure:16702: checking for LC_MESSAGES" >&5
16702 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16703   echo $ac_n "(cached) $ac_c" 1>&6
16704 else
16705   cat > conftest.$ac_ext <<EOF
16706 #line 16707 "configure"
16707 #include "confdefs.h"
16708 #include <locale.h>
16709 int main() {
16710 return LC_MESSAGES
16711 ; return 0; }
16712 EOF
16713 if { (eval echo configure:16714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16714   rm -rf conftest*
16715   ac_cv_val_LC_MESSAGES=yes
16716 else
16717   echo "configure: failed program was:" >&5
16718   cat conftest.$ac_ext >&5
16719   rm -rf conftest*
16720   ac_cv_val_LC_MESSAGES=no
16721 fi
16722 rm -f conftest*
16723 fi
16724
16725 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16726     if test $ac_cv_val_LC_MESSAGES = yes; then
16727       cat >> confdefs.h <<\EOF
16728 #define HAVE_LC_MESSAGES 1
16729 EOF
16730
16731     fi
16732   
16733 else
16734   echo "$ac_t""no" 1>&6
16735 fi
16736
16737
16738
16739   cat > conftest.$ac_ext <<EOF
16740 #line 16741 "configure"
16741 #include "confdefs.h"
16742
16743 #include <setjmp.h>
16744
16745 int main() {
16746 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16747 ; return 0; }
16748 EOF
16749 if { (eval echo configure:16750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16750   rm -rf conftest*
16751   cat >> confdefs.h <<\EOF
16752 #define HAVE_SIGSETJMP 1
16753 EOF
16754
16755 else
16756   echo "configure: failed program was:" >&5
16757   cat conftest.$ac_ext >&5
16758 fi
16759 rm -f conftest*
16760
16761   for ac_hdr in unistd.h
16762 do
16763 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16764 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16765 echo "configure:16766: checking for $ac_hdr" >&5
16766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16767   echo $ac_n "(cached) $ac_c" 1>&6
16768 else
16769   cat > conftest.$ac_ext <<EOF
16770 #line 16771 "configure"
16771 #include "confdefs.h"
16772 #include <$ac_hdr>
16773 EOF
16774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16775 { (eval echo configure:16776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16777 if test -z "$ac_err"; then
16778   rm -rf conftest*
16779   eval "ac_cv_header_$ac_safe=yes"
16780 else
16781   echo "$ac_err" >&5
16782   echo "configure: failed program was:" >&5
16783   cat conftest.$ac_ext >&5
16784   rm -rf conftest*
16785   eval "ac_cv_header_$ac_safe=no"
16786 fi
16787 rm -f conftest*
16788 fi
16789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16790   echo "$ac_t""yes" 1>&6
16791     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16792   cat >> confdefs.h <<EOF
16793 #define $ac_tr_hdr 1
16794 EOF
16795  
16796 else
16797   echo "$ac_t""no" 1>&6
16798 fi
16799 done
16800
16801 for ac_func in getpagesize
16802 do
16803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16804 echo "configure:16805: checking for $ac_func" >&5
16805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16806   echo $ac_n "(cached) $ac_c" 1>&6
16807 else
16808   cat > conftest.$ac_ext <<EOF
16809 #line 16810 "configure"
16810 #include "confdefs.h"
16811 /* System header to define __stub macros and hopefully few prototypes,
16812     which can conflict with char $ac_func(); below.  */
16813 #include <assert.h>
16814 /* Override any gcc2 internal prototype to avoid an error.  */
16815 /* We use char because int might match the return type of a gcc2
16816     builtin and then its argument prototype would still apply.  */
16817 char $ac_func();
16818
16819 int main() {
16820
16821 /* The GNU C library defines this for functions which it implements
16822     to always fail with ENOSYS.  Some functions are actually named
16823     something starting with __ and the normal name is an alias.  */
16824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16825 choke me
16826 #else
16827 $ac_func();
16828 #endif
16829
16830 ; return 0; }
16831 EOF
16832 if { (eval echo configure:16833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16833   rm -rf conftest*
16834   eval "ac_cv_func_$ac_func=yes"
16835 else
16836   echo "configure: failed program was:" >&5
16837   cat conftest.$ac_ext >&5
16838   rm -rf conftest*
16839   eval "ac_cv_func_$ac_func=no"
16840 fi
16841 rm -f conftest*
16842 fi
16843
16844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16845   echo "$ac_t""yes" 1>&6
16846     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16847   cat >> confdefs.h <<EOF
16848 #define $ac_tr_func 1
16849 EOF
16850  
16851 else
16852   echo "$ac_t""no" 1>&6
16853 fi
16854 done
16855
16856 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
16857 echo "configure:16858: checking for working mmap" >&5
16858 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
16859   echo $ac_n "(cached) $ac_c" 1>&6
16860 else
16861   if test "$cross_compiling" = yes; then
16862   ac_cv_func_mmap_fixed_mapped=no
16863 else
16864   cat > conftest.$ac_ext <<EOF
16865 #line 16866 "configure"
16866 #include "confdefs.h"
16867
16868 /* Thanks to Mike Haertel and Jim Avera for this test.
16869    Here is a matrix of mmap possibilities:
16870         mmap private not fixed
16871         mmap private fixed at somewhere currently unmapped
16872         mmap private fixed at somewhere already mapped
16873         mmap shared not fixed
16874         mmap shared fixed at somewhere currently unmapped
16875         mmap shared fixed at somewhere already mapped
16876    For private mappings, we should verify that changes cannot be read()
16877    back from the file, nor mmap's back from the file at a different
16878    address.  (There have been systems where private was not correctly
16879    implemented like the infamous i386 svr4.0, and systems where the
16880    VM page cache was not coherent with the filesystem buffer cache
16881    like early versions of FreeBSD and possibly contemporary NetBSD.)
16882    For shared mappings, we should conversely verify that changes get
16883    propogated back to all the places they're supposed to be.
16884
16885    Grep wants private fixed already mapped.
16886    The main things grep needs to know about mmap are:
16887    * does it exist and is it safe to write into the mmap'd area
16888    * how to use it (BSD variants)  */
16889 #include <sys/types.h>
16890 #include <fcntl.h>
16891 #include <sys/mman.h>
16892
16893 /* This mess was copied from the GNU getpagesize.h.  */
16894 #ifndef HAVE_GETPAGESIZE
16895 # ifdef HAVE_UNISTD_H
16896 #  include <unistd.h>
16897 # endif
16898
16899 /* Assume that all systems that can run configure have sys/param.h.  */
16900 # ifndef HAVE_SYS_PARAM_H
16901 #  define HAVE_SYS_PARAM_H 1
16902 # endif
16903
16904 # ifdef _SC_PAGESIZE
16905 #  define getpagesize() sysconf(_SC_PAGESIZE)
16906 # else /* no _SC_PAGESIZE */
16907 #  ifdef HAVE_SYS_PARAM_H
16908 #   include <sys/param.h>
16909 #   ifdef EXEC_PAGESIZE
16910 #    define getpagesize() EXEC_PAGESIZE
16911 #   else /* no EXEC_PAGESIZE */
16912 #    ifdef NBPG
16913 #     define getpagesize() NBPG * CLSIZE
16914 #     ifndef CLSIZE
16915 #      define CLSIZE 1
16916 #     endif /* no CLSIZE */
16917 #    else /* no NBPG */
16918 #     ifdef NBPC
16919 #      define getpagesize() NBPC
16920 #     else /* no NBPC */
16921 #      ifdef PAGESIZE
16922 #       define getpagesize() PAGESIZE
16923 #      endif /* PAGESIZE */
16924 #     endif /* no NBPC */
16925 #    endif /* no NBPG */
16926 #   endif /* no EXEC_PAGESIZE */
16927 #  else /* no HAVE_SYS_PARAM_H */
16928 #   define getpagesize() 8192   /* punt totally */
16929 #  endif /* no HAVE_SYS_PARAM_H */
16930 # endif /* no _SC_PAGESIZE */
16931
16932 #endif /* no HAVE_GETPAGESIZE */
16933
16934 #ifdef __cplusplus
16935 extern "C" { void *malloc(unsigned); }
16936 #else
16937 char *malloc();
16938 #endif
16939
16940 int
16941 main()
16942 {
16943         char *data, *data2, *data3;
16944         int i, pagesize;
16945         int fd;
16946
16947         pagesize = getpagesize();
16948
16949         /*
16950          * First, make a file with some known garbage in it.
16951          */
16952         data = malloc(pagesize);
16953         if (!data)
16954                 exit(1);
16955         for (i = 0; i < pagesize; ++i)
16956                 *(data + i) = rand();
16957         umask(0);
16958         fd = creat("conftestmmap", 0600);
16959         if (fd < 0)
16960                 exit(1);
16961         if (write(fd, data, pagesize) != pagesize)
16962                 exit(1);
16963         close(fd);
16964
16965         /*
16966          * Next, try to mmap the file at a fixed address which
16967          * already has something else allocated at it.  If we can,
16968          * also make sure that we see the same garbage.
16969          */
16970         fd = open("conftestmmap", O_RDWR);
16971         if (fd < 0)
16972                 exit(1);
16973         data2 = malloc(2 * pagesize);
16974         if (!data2)
16975                 exit(1);
16976         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16977         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
16978             MAP_PRIVATE | MAP_FIXED, fd, 0L))
16979                 exit(1);
16980         for (i = 0; i < pagesize; ++i)
16981                 if (*(data + i) != *(data2 + i))
16982                         exit(1);
16983
16984         /*
16985          * Finally, make sure that changes to the mapped area
16986          * do not percolate back to the file as seen by read().
16987          * (This is a bug on some variants of i386 svr4.0.)
16988          */
16989         for (i = 0; i < pagesize; ++i)
16990                 *(data2 + i) = *(data2 + i) + 1;
16991         data3 = malloc(pagesize);
16992         if (!data3)
16993                 exit(1);
16994         if (read(fd, data3, pagesize) != pagesize)
16995                 exit(1);
16996         for (i = 0; i < pagesize; ++i)
16997                 if (*(data + i) != *(data3 + i))
16998                         exit(1);
16999         close(fd);
17000         unlink("conftestmmap");
17001         exit(0);
17002 }
17003
17004 EOF
17005 if { (eval echo configure:17006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
17006 then
17007   ac_cv_func_mmap_fixed_mapped=yes
17008 else
17009   echo "configure: failed program was:" >&5
17010   cat conftest.$ac_ext >&5
17011   rm -fr conftest*
17012   ac_cv_func_mmap_fixed_mapped=no
17013 fi
17014 rm -fr conftest*
17015 fi
17016
17017 fi
17018
17019 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
17020 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17021   cat >> confdefs.h <<\EOF
17022 #define HAVE_MMAP 1
17023 EOF
17024
17025 fi
17026
17027
17028   # Establish limits on memory usage during 'make check'
17029   
17030   
17031   setrlimit_have_headers=yes
17032   for ac_hdr in sys/resource.h unistd.h
17033 do
17034 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17035 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17036 echo "configure:17037: checking for $ac_hdr" >&5
17037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17038   echo $ac_n "(cached) $ac_c" 1>&6
17039 else
17040   cat > conftest.$ac_ext <<EOF
17041 #line 17042 "configure"
17042 #include "confdefs.h"
17043 #include <$ac_hdr>
17044 EOF
17045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17046 { (eval echo configure:17047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17048 if test -z "$ac_err"; then
17049   rm -rf conftest*
17050   eval "ac_cv_header_$ac_safe=yes"
17051 else
17052   echo "$ac_err" >&5
17053   echo "configure: failed program was:" >&5
17054   cat conftest.$ac_ext >&5
17055   rm -rf conftest*
17056   eval "ac_cv_header_$ac_safe=no"
17057 fi
17058 rm -f conftest*
17059 fi
17060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17061   echo "$ac_t""yes" 1>&6
17062     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17063   cat >> confdefs.h <<EOF
17064 #define $ac_tr_hdr 1
17065 EOF
17066  
17067 else
17068   echo "$ac_t""no" 1>&6
17069 setrlimit_have_headers=no
17070 fi
17071 done
17072
17073   # If don't have the headers, then we can't run the tests now, and we
17074   # won't be seeing any of these during testsuite compilation.
17075   if test $setrlimit_have_headers = yes; then
17076     # Can't do these in a loop, else the resulting syntax is wrong.
17077     
17078   cat > conftest.$ac_ext <<EOF
17079 #line 17080 "configure"
17080 #include "confdefs.h"
17081 #include <sys/resource.h>
17082                   #include <unistd.h>
17083                  
17084 int main() {
17085  int f = RLIMIT_DATA ; 
17086 ; return 0; }
17087 EOF
17088 if { (eval echo configure:17089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17089   rm -rf conftest*
17090   glibcpp_mresult=1
17091 else
17092   echo "configure: failed program was:" >&5
17093   cat conftest.$ac_ext >&5
17094   rm -rf conftest*
17095   glibcpp_mresult=0
17096 fi
17097 rm -f conftest*
17098   cat >> confdefs.h <<EOF
17099 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
17100 EOF
17101
17102
17103     
17104   cat > conftest.$ac_ext <<EOF
17105 #line 17106 "configure"
17106 #include "confdefs.h"
17107 #include <sys/resource.h>
17108                   #include <unistd.h>
17109                  
17110 int main() {
17111  int f = RLIMIT_RSS ; 
17112 ; return 0; }
17113 EOF
17114 if { (eval echo configure:17115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17115   rm -rf conftest*
17116   glibcpp_mresult=1
17117 else
17118   echo "configure: failed program was:" >&5
17119   cat conftest.$ac_ext >&5
17120   rm -rf conftest*
17121   glibcpp_mresult=0
17122 fi
17123 rm -f conftest*
17124   cat >> confdefs.h <<EOF
17125 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
17126 EOF
17127
17128
17129     
17130   cat > conftest.$ac_ext <<EOF
17131 #line 17132 "configure"
17132 #include "confdefs.h"
17133 #include <sys/resource.h>
17134                   #include <unistd.h>
17135                  
17136 int main() {
17137  int f = RLIMIT_VMEM ; 
17138 ; return 0; }
17139 EOF
17140 if { (eval echo configure:17141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17141   rm -rf conftest*
17142   glibcpp_mresult=1
17143 else
17144   echo "configure: failed program was:" >&5
17145   cat conftest.$ac_ext >&5
17146   rm -rf conftest*
17147   glibcpp_mresult=0
17148 fi
17149 rm -f conftest*
17150   cat >> confdefs.h <<EOF
17151 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
17152 EOF
17153
17154
17155     
17156   cat > conftest.$ac_ext <<EOF
17157 #line 17158 "configure"
17158 #include "confdefs.h"
17159 #include <sys/resource.h>
17160                   #include <unistd.h>
17161                  
17162 int main() {
17163  int f = RLIMIT_AS ; 
17164 ; return 0; }
17165 EOF
17166 if { (eval echo configure:17167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17167   rm -rf conftest*
17168   glibcpp_mresult=1
17169 else
17170   echo "configure: failed program was:" >&5
17171   cat conftest.$ac_ext >&5
17172   rm -rf conftest*
17173   glibcpp_mresult=0
17174 fi
17175 rm -f conftest*
17176   cat >> confdefs.h <<EOF
17177 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
17178 EOF
17179
17180
17181
17182     # Check for rlimit, setrlimit.
17183     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
17184   echo $ac_n "(cached) $ac_c" 1>&6
17185 else
17186   
17187       cat > conftest.$ac_ext <<EOF
17188 #line 17189 "configure"
17189 #include "confdefs.h"
17190 #include <sys/resource.h>
17191                       #include <unistd.h>
17192                      
17193 int main() {
17194  struct rlimit r; setrlimit(0, &r);
17195 ; return 0; }
17196 EOF
17197 if { (eval echo configure:17198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17198   rm -rf conftest*
17199   ac_setrlimit=yes
17200 else
17201   echo "configure: failed program was:" >&5
17202   cat conftest.$ac_ext >&5
17203   rm -rf conftest*
17204   ac_setrlimit=no
17205 fi
17206 rm -f conftest*
17207     
17208 fi
17209
17210   fi
17211
17212   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
17213 echo "configure:17214: checking for testsuite memory limit support" >&5
17214   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
17215     ac_mem_limits=yes
17216     cat >> confdefs.h <<\EOF
17217 #define _GLIBCPP_MEM_LIMITS 1
17218 EOF
17219
17220   else
17221     ac_mem_limits=no
17222   fi
17223   echo "$ac_t""$ac_mem_limits" 1>&6
17224
17225
17226 fi
17227
17228
17229 # Propagate the target-specific source directories through the build chain.
17230 OS_INC_SRCDIR=$os_include_dir/bits
17231 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
17232 LIMITS_INC_SRCDIR=$LIMITSH/bits
17233
17234
17235
17236
17237 # Set up cross-compile flags
17238
17239
17240
17241 if test "$CANADIAN" = yes; then
17242   CANADIAN_TRUE=
17243   CANADIAN_FALSE='#'
17244 else
17245   CANADIAN_TRUE='#'
17246   CANADIAN_FALSE=
17247 fi
17248  
17249 cat > confcache <<\EOF
17250 # This file is a shell script that caches the results of configure
17251 # tests run on this system so they can be shared between configure
17252 # scripts and configure runs.  It is not useful on other systems.
17253 # If it contains results you don't want to keep, you may remove or edit it.
17254 #
17255 # By default, configure uses ./config.cache as the cache file,
17256 # creating it if it does not exist already.  You can give configure
17257 # the --cache-file=FILE option to use a different cache file; that is
17258 # what configure does when it calls configure scripts in
17259 # subdirectories, so they share the cache.
17260 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17261 # config.status only pays attention to the cache file if you give it the
17262 # --recheck option to rerun configure.
17263 #
17264 EOF
17265 # The following way of writing the cache mishandles newlines in values,
17266 # but we know of no workaround that is simple, portable, and efficient.
17267 # So, don't put newlines in cache variables' values.
17268 # Ultrix sh set writes to stderr and can't be redirected directly,
17269 # and sets the high bit in the cache file unless we assign to the vars.
17270 (set) 2>&1 |
17271   case `(ac_space=' '; set | grep ac_space) 2>&1` in
17272   *ac_space=\ *)
17273     # `set' does not quote correctly, so add quotes (double-quote substitution
17274     # turns \\\\ into \\, and sed turns \\ into \).
17275     sed -n \
17276       -e "s/'/'\\\\''/g" \
17277       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17278     ;;
17279   *)
17280     # `set' quotes correctly as required by POSIX, so do not add quotes.
17281     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17282     ;;
17283   esac >> confcache
17284 if cmp -s $cache_file confcache; then
17285   :
17286 else
17287   if test -w $cache_file; then
17288     echo "updating cache $cache_file"
17289     cat confcache > $cache_file
17290   else
17291     echo "not updating unwritable cache $cache_file"
17292   fi
17293 fi
17294 rm -f confcache
17295
17296
17297 if test "${multilib}" = "yes"; then
17298   multilib_arg="--enable-multilib"
17299 else
17300   multilib_arg=
17301 fi
17302
17303 # Needed so that g++ can find the correct include subdir automatically.
17304 INTERFACE=v3
17305
17306 # Export all the install information
17307
17308 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
17309 # exported correctly in GLIBCPP_CONFIGURE.
17310 glibcpp_toolexecdir=no
17311 glibcpp_toolexeclibdir=no
17312 glibcpp_prefixdir=${prefix}
17313
17314 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
17315 echo "configure:17316: checking for interface version number" >&5
17316 libstdcxx_interface=$INTERFACE
17317 echo "$ac_t""$libstdcxx_interface" 1>&6
17318
17319 # Process the option --with-gxx-include-dir=<path to include-files directory>
17320 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
17321 echo "configure:17322: checking for --with-gxx-include-dir" >&5
17322 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
17323 if test "${with_gxx_include_dir+set}" = set; then
17324   withval="$with_gxx_include_dir"
17325   case "${withval}" in
17326   yes)
17327     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
17328     gxx_include_dir=no
17329     ;;
17330   no)
17331     gxx_include_dir=no
17332     ;;
17333   *)
17334     gxx_include_dir=${withval}
17335     ;;
17336 esac
17337 else
17338   gxx_include_dir=no
17339 fi
17340
17341 echo "$ac_t""$gxx_include_dir" 1>&6
17342
17343 # Process the option "--enable-version-specific-runtime-libs"
17344 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
17345 echo "configure:17346: checking for --enable-version-specific-runtime-libs" >&5
17346 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17347 if test "${enable_version_specific_runtime_libs+set}" = set; then
17348   enableval="$enable_version_specific_runtime_libs"
17349     version_specific_libs=yes
17350 # Need the gcc compiler version to know where to install libraries
17351 # and header files if --enable-version-specific-runtime-libs option
17352 # is selected.
17353 gcc_version_trigger=${srcdir}/../gcc/version.c
17354 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
17355 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
17356 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
17357 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
17358 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
17359
17360 else
17361   version_specific_libs=no
17362 fi
17363
17364 echo "$ac_t""$version_specific_libs" 1>&6
17365
17366 # Default case for install directory for include files.
17367 if test x"$version_specific_libs" = x"no" \
17368    && test x"$gxx_include_dir" = x"no"; then
17369   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
17370 fi
17371
17372 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
17373 # Install a library built with a cross compiler in tooldir, not libdir.
17374 if test x"$glibcpp_toolexecdir" = x"no"; then 
17375   if test -n "$with_cross_host" &&
17376      test x"$with_cross_host" != x"no"; then
17377     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
17378     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
17379   else
17380     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
17381     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
17382   fi
17383 fi
17384
17385 echo $ac_n "checking for install location""... $ac_c" 1>&6
17386 echo "configure:17387: checking for install location" >&5
17387 echo "$ac_t""$gxx_include_dir" 1>&6
17388
17389
17390
17391
17392
17393
17394
17395 # Export all the include and flag information to makefiles.
17396
17397   # Root level of the build directory include sources.
17398   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
17399
17400   # Passed down for canadian crosses.
17401   if test x"$CANADIAN" = xyes; then
17402     TOPLEVEL_INCLUDES='-I$(includedir)'
17403   fi
17404
17405   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
17406
17407   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
17408
17409   if test x"$need_libio" = xyes; then
17410     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
17411     
17412   fi
17413
17414   # Now, export this to all the little Makefiles....
17415   
17416   
17417   
17418   
17419
17420
17421   # Optimization flags that are probably a good idea for thrill-seekers. Just
17422   # uncomment the lines below and make, everything else is ready to go... 
17423   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
17424   OPTIMIZE_CXXFLAGS=
17425   
17426
17427   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
17428   
17429
17430
17431 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
17432    grep "enable shared" > /dev/null; then
17433   LIBSUPCXX_PICFLAGS=-prefer-pic
17434 else
17435   LIBSUPCXX_PICFLAGS=
17436 fi
17437
17438
17439 # Generate the various Makefiles, include files, and scripts.
17440 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
17441 # and libsupc++/Makefile.am so that multilib installs will end up
17442 # installed in the correct place. To work around this not being passed
17443 # down from config-ml.in -> top_srcdir/Makefile.am ->
17444 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
17445 trap '' 1 2 15
17446 cat > confcache <<\EOF
17447 # This file is a shell script that caches the results of configure
17448 # tests run on this system so they can be shared between configure
17449 # scripts and configure runs.  It is not useful on other systems.
17450 # If it contains results you don't want to keep, you may remove or edit it.
17451 #
17452 # By default, configure uses ./config.cache as the cache file,
17453 # creating it if it does not exist already.  You can give configure
17454 # the --cache-file=FILE option to use a different cache file; that is
17455 # what configure does when it calls configure scripts in
17456 # subdirectories, so they share the cache.
17457 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17458 # config.status only pays attention to the cache file if you give it the
17459 # --recheck option to rerun configure.
17460 #
17461 EOF
17462 # The following way of writing the cache mishandles newlines in values,
17463 # but we know of no workaround that is simple, portable, and efficient.
17464 # So, don't put newlines in cache variables' values.
17465 # Ultrix sh set writes to stderr and can't be redirected directly,
17466 # and sets the high bit in the cache file unless we assign to the vars.
17467 (set) 2>&1 |
17468   case `(ac_space=' '; set | grep ac_space) 2>&1` in
17469   *ac_space=\ *)
17470     # `set' does not quote correctly, so add quotes (double-quote substitution
17471     # turns \\\\ into \\, and sed turns \\ into \).
17472     sed -n \
17473       -e "s/'/'\\\\''/g" \
17474       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17475     ;;
17476   *)
17477     # `set' quotes correctly as required by POSIX, so do not add quotes.
17478     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17479     ;;
17480   esac >> confcache
17481 if cmp -s $cache_file confcache; then
17482   :
17483 else
17484   if test -w $cache_file; then
17485     echo "updating cache $cache_file"
17486     cat confcache > $cache_file
17487   else
17488     echo "not updating unwritable cache $cache_file"
17489   fi
17490 fi
17491 rm -f confcache
17492
17493 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17494
17495 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17496 # Let make expand exec_prefix.
17497 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17498
17499 # Any assignment to VPATH causes Sun make to only execute
17500 # the first set of double-colon rules, so remove it if not needed.
17501 # If there is a colon in the path, we need to keep it.
17502 if test "x$srcdir" = x.; then
17503   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
17504 fi
17505
17506 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17507
17508 DEFS=-DHAVE_CONFIG_H
17509
17510 # Without the "./", some shells look in PATH for config.status.
17511 : ${CONFIG_STATUS=./config.status}
17512
17513 echo creating $CONFIG_STATUS
17514 rm -f $CONFIG_STATUS
17515 cat > $CONFIG_STATUS <<EOF
17516 #! /bin/sh
17517 # Generated automatically by configure.
17518 # Run this file to recreate the current configuration.
17519 # This directory was configured as follows,
17520 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17521 #
17522 # $0 $ac_configure_args
17523 #
17524 # Compiler output produced by configure, useful for debugging
17525 # configure, is in ./config.log if it exists.
17526
17527 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17528 for ac_option
17529 do
17530   case "\$ac_option" in
17531   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17532     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17533     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17534   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17535     echo "$CONFIG_STATUS generated by autoconf version 2.13"
17536     exit 0 ;;
17537   -help | --help | --hel | --he | --h)
17538     echo "\$ac_cs_usage"; exit 0 ;;
17539   *) echo "\$ac_cs_usage"; exit 1 ;;
17540   esac
17541 done
17542
17543 ac_given_srcdir=$srcdir
17544 ac_given_INSTALL="$INSTALL"
17545
17546 trap 'rm -fr `echo "Makefile \
17547     include/Makefile src/Makefile \
17548     libmath/Makefile libio/Makefile libsupc++/Makefile \
17549     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17550 EOF
17551 cat >> $CONFIG_STATUS <<EOF
17552
17553 # Protect against being on the right side of a sed subst in config.status.
17554 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17555  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17556 $ac_vpsub
17557 $extrasub
17558 s%@SHELL@%$SHELL%g
17559 s%@CFLAGS@%$CFLAGS%g
17560 s%@CPPFLAGS@%$CPPFLAGS%g
17561 s%@CXXFLAGS@%$CXXFLAGS%g
17562 s%@FFLAGS@%$FFLAGS%g
17563 s%@DEFS@%$DEFS%g
17564 s%@LDFLAGS@%$LDFLAGS%g
17565 s%@LIBS@%$LIBS%g
17566 s%@exec_prefix@%$exec_prefix%g
17567 s%@prefix@%$prefix%g
17568 s%@program_transform_name@%$program_transform_name%g
17569 s%@bindir@%$bindir%g
17570 s%@sbindir@%$sbindir%g
17571 s%@libexecdir@%$libexecdir%g
17572 s%@datadir@%$datadir%g
17573 s%@sysconfdir@%$sysconfdir%g
17574 s%@sharedstatedir@%$sharedstatedir%g
17575 s%@localstatedir@%$localstatedir%g
17576 s%@libdir@%$libdir%g
17577 s%@includedir@%$includedir%g
17578 s%@oldincludedir@%$oldincludedir%g
17579 s%@infodir@%$infodir%g
17580 s%@mandir@%$mandir%g
17581 s%@PACKAGE@%$PACKAGE%g
17582 s%@release_VERSION@%$release_VERSION%g
17583 s%@libtool_VERSION@%$libtool_VERSION%g
17584 s%@host@%$host%g
17585 s%@host_alias@%$host_alias%g
17586 s%@host_cpu@%$host_cpu%g
17587 s%@host_vendor@%$host_vendor%g
17588 s%@host_os@%$host_os%g
17589 s%@target@%$target%g
17590 s%@target_alias@%$target_alias%g
17591 s%@target_cpu@%$target_cpu%g
17592 s%@target_vendor@%$target_vendor%g
17593 s%@target_os@%$target_os%g
17594 s%@build@%$build%g
17595 s%@build_alias@%$build_alias%g
17596 s%@build_cpu@%$build_cpu%g
17597 s%@build_vendor@%$build_vendor%g
17598 s%@build_os@%$build_os%g
17599 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17600 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17601 s%@INSTALL_DATA@%$INSTALL_DATA%g
17602 s%@VERSION@%$VERSION%g
17603 s%@ACLOCAL@%$ACLOCAL%g
17604 s%@AUTOCONF@%$AUTOCONF%g
17605 s%@AUTOMAKE@%$AUTOMAKE%g
17606 s%@AUTOHEADER@%$AUTOHEADER%g
17607 s%@MAKEINFO@%$MAKEINFO%g
17608 s%@SET_MAKE@%$SET_MAKE%g
17609 s%@toplevel_srcdir@%$toplevel_srcdir%g
17610 s%@glibcpp_builddir@%$glibcpp_builddir%g
17611 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
17612 s%@LN_S@%$LN_S%g
17613 s%@glibcpp_basedir@%$glibcpp_basedir%g
17614 s%@CC@%$CC%g
17615 s%@glibcpp_CXX@%$glibcpp_CXX%g
17616 s%@AS@%$AS%g
17617 s%@AR@%$AR%g
17618 s%@RANLIB@%$RANLIB%g
17619 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
17620 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
17621 s%@MAINT@%$MAINT%g
17622 s%@EXEEXT@%$EXEEXT%g
17623 s%@OBJEXT@%$OBJEXT%g
17624 s%@STRIP@%$STRIP%g
17625 s%@LIBTOOL@%$LIBTOOL%g
17626 s%@CXXCPP@%$CXXCPP%g
17627 s%@enable_shared@%$enable_shared%g
17628 s%@enable_static@%$enable_static%g
17629 s%@ifGNUmake@%$ifGNUmake%g
17630 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
17631 s%@CPP@%$CPP%g
17632 s%@CSTDIO_H@%$CSTDIO_H%g
17633 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
17634 s%@CCODECVT_C@%$CCODECVT_C%g
17635 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
17636 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
17637 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
17638 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
17639 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
17640 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
17641 s%@libio_la@%$libio_la%g
17642 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
17643 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
17644 s%@glibcpp_localedir@%$glibcpp_localedir%g
17645 s%@USE_NLS@%$USE_NLS%g
17646 s%@CLOCALE_H@%$CLOCALE_H%g
17647 s%@CCODECVT_H@%$CCODECVT_H%g
17648 s%@CMESSAGES_H@%$CMESSAGES_H%g
17649 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
17650 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
17651 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
17652 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
17653 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
17654 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
17655 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
17656 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
17657 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
17658 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
17659 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
17660 s%@WERROR@%$WERROR%g
17661 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
17662 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
17663 s%@LIMITS_INC_SRCDIR@%$LIMITS_INC_SRCDIR%g
17664 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
17665 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
17666 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
17667 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
17668 s%@gxx_include_dir@%$gxx_include_dir%g
17669 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
17670 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
17671 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
17672 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
17673 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
17674 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
17675 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
17676 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
17677 s%@WARN_FLAGS@%$WARN_FLAGS%g
17678 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
17679
17680 CEOF
17681 EOF
17682
17683 cat >> $CONFIG_STATUS <<\EOF
17684
17685 # Split the substitutions into bite-sized pieces for seds with
17686 # small command number limits, like on Digital OSF/1 and HP-UX.
17687 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17688 ac_file=1 # Number of current file.
17689 ac_beg=1 # First line for current file.
17690 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17691 ac_more_lines=:
17692 ac_sed_cmds=""
17693 while $ac_more_lines; do
17694   if test $ac_beg -gt 1; then
17695     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17696   else
17697     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17698   fi
17699   if test ! -s conftest.s$ac_file; then
17700     ac_more_lines=false
17701     rm -f conftest.s$ac_file
17702   else
17703     if test -z "$ac_sed_cmds"; then
17704       ac_sed_cmds="sed -f conftest.s$ac_file"
17705     else
17706       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17707     fi
17708     ac_file=`expr $ac_file + 1`
17709     ac_beg=$ac_end
17710     ac_end=`expr $ac_end + $ac_max_sed_cmds`
17711   fi
17712 done
17713 if test -z "$ac_sed_cmds"; then
17714   ac_sed_cmds=cat
17715 fi
17716 EOF
17717
17718 cat >> $CONFIG_STATUS <<EOF
17719
17720 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
17721     include/Makefile src/Makefile \
17722     libmath/Makefile libio/Makefile libsupc++/Makefile \
17723     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
17724 EOF
17725 cat >> $CONFIG_STATUS <<\EOF
17726 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17727   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17728   case "$ac_file" in
17729   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17730        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17731   *) ac_file_in="${ac_file}.in" ;;
17732   esac
17733
17734   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17735
17736   # Remove last slash and all that follows it.  Not all systems have dirname.
17737   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17738   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17739     # The file is in a subdirectory.
17740     test ! -d "$ac_dir" && mkdir "$ac_dir"
17741     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17742     # A "../" for each directory in $ac_dir_suffix.
17743     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17744   else
17745     ac_dir_suffix= ac_dots=
17746   fi
17747
17748   case "$ac_given_srcdir" in
17749   .)  srcdir=.
17750       if test -z "$ac_dots"; then top_srcdir=.
17751       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17752   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17753   *) # Relative path.
17754     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17755     top_srcdir="$ac_dots$ac_given_srcdir" ;;
17756   esac
17757
17758   case "$ac_given_INSTALL" in
17759   [/$]*) INSTALL="$ac_given_INSTALL" ;;
17760   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17761   esac
17762
17763   echo creating "$ac_file"
17764   rm -f "$ac_file"
17765   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17766   case "$ac_file" in
17767   *Makefile*) ac_comsub="1i\\
17768 # $configure_input" ;;
17769   *) ac_comsub= ;;
17770   esac
17771
17772   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17773   sed -e "$ac_comsub
17774 s%@configure_input@%$configure_input%g
17775 s%@srcdir@%$srcdir%g
17776 s%@top_srcdir@%$top_srcdir%g
17777 s%@INSTALL@%$INSTALL%g
17778 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17779 fi; done
17780 rm -f conftest.s*
17781
17782 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17783 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17784 #
17785 # ac_d sets the value in "#define NAME VALUE" lines.
17786 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17787 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
17788 ac_dC='\3'
17789 ac_dD='%g'
17790 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17791 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17792 ac_uB='\([      ]\)%\1#\2define\3'
17793 ac_uC=' '
17794 ac_uD='\4%g'
17795 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17796 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17797 ac_eB='$%\1#\2define\3'
17798 ac_eC=' '
17799 ac_eD='%g'
17800
17801 if test "${CONFIG_HEADERS+set}" != set; then
17802 EOF
17803 cat >> $CONFIG_STATUS <<EOF
17804   CONFIG_HEADERS="config.h"
17805 EOF
17806 cat >> $CONFIG_STATUS <<\EOF
17807 fi
17808 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17809   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17810   case "$ac_file" in
17811   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17812        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17813   *) ac_file_in="${ac_file}.in" ;;
17814   esac
17815
17816   echo creating $ac_file
17817
17818   rm -f conftest.frag conftest.in conftest.out
17819   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17820   cat $ac_file_inputs > conftest.in
17821
17822 EOF
17823
17824 # Transform confdefs.h into a sed script conftest.vals that substitutes
17825 # the proper values into config.h.in to produce config.h.  And first:
17826 # Protect against being on the right side of a sed subst in config.status.
17827 # Protect against being in an unquoted here document in config.status.
17828 rm -f conftest.vals
17829 cat > conftest.hdr <<\EOF
17830 s/[\\&%]/\\&/g
17831 s%[\\$`]%\\&%g
17832 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17833 s%ac_d%ac_u%gp
17834 s%ac_u%ac_e%gp
17835 EOF
17836 sed -n -f conftest.hdr confdefs.h > conftest.vals
17837 rm -f conftest.hdr
17838
17839 # This sed command replaces #undef with comments.  This is necessary, for
17840 # example, in the case of _POSIX_SOURCE, which is predefined and required
17841 # on some systems where configure will not decide to define it.
17842 cat >> conftest.vals <<\EOF
17843 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17844 EOF
17845
17846 # Break up conftest.vals because some shells have a limit on
17847 # the size of here documents, and old seds have small limits too.
17848
17849 rm -f conftest.tail
17850 while :
17851 do
17852   ac_lines=`grep -c . conftest.vals`
17853   # grep -c gives empty output for an empty file on some AIX systems.
17854   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17855   # Write a limited-size here document to conftest.frag.
17856   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17857   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17858   echo 'CEOF
17859   sed -f conftest.frag conftest.in > conftest.out
17860   rm -f conftest.in
17861   mv conftest.out conftest.in
17862 ' >> $CONFIG_STATUS
17863   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17864   rm -f conftest.vals
17865   mv conftest.tail conftest.vals
17866 done
17867 rm -f conftest.vals
17868
17869 cat >> $CONFIG_STATUS <<\EOF
17870   rm -f conftest.frag conftest.h
17871   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
17872   cat conftest.in >> conftest.h
17873   rm -f conftest.in
17874   if cmp -s $ac_file conftest.h 2>/dev/null; then
17875     echo "$ac_file is unchanged"
17876     rm -f conftest.h
17877   else
17878     # Remove last slash and all that follows it.  Not all systems have dirname.
17879       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17880       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17881       # The file is in a subdirectory.
17882       test ! -d "$ac_dir" && mkdir "$ac_dir"
17883     fi
17884     rm -f $ac_file
17885     mv conftest.h $ac_file
17886   fi
17887 fi; done
17888
17889 EOF
17890
17891 cat >> $CONFIG_STATUS <<EOF
17892 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CMESSAGES_CC $CCOLLATE_CC"
17893 ac_dests="src/basic_file.cc src/c++locale.cc src/messages.cc src/collate.cc"
17894 EOF
17895
17896 cat >> $CONFIG_STATUS <<\EOF
17897 srcdir=$ac_given_srcdir
17898 while test -n "$ac_sources"; do
17899   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17900   set $ac_sources; ac_source=$1; shift; ac_sources=$*
17901
17902   echo "linking $srcdir/$ac_source to $ac_dest"
17903
17904   if test ! -r $srcdir/$ac_source; then
17905     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
17906   fi
17907   rm -f $ac_dest
17908
17909   # Make relative symlinks.
17910   # Remove last slash and all that follows it.  Not all systems have dirname.
17911   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
17912   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
17913     # The dest file is in a subdirectory.
17914     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
17915     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
17916     # A "../" for each directory in $ac_dest_dir_suffix.
17917     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
17918   else
17919     ac_dest_dir_suffix= ac_dots=
17920   fi
17921
17922   case "$srcdir" in
17923   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
17924   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
17925   esac
17926
17927   # Make a symlink if possible; otherwise try a hard link.
17928   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17929     ln $srcdir/$ac_source $ac_dest; then :
17930   else
17931     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
17932   fi
17933 done
17934 EOF
17935 cat >> $CONFIG_STATUS <<EOF
17936
17937 srcdir=${srcdir}
17938 host=${host}
17939 target=${target}
17940 with_multisubdir=${with_multisubdir}
17941 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17942 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17943 glibcpp_basedir=${glibcpp_basedir}
17944 CC="${CC}"
17945 CXX="${CXX}"
17946
17947 EOF
17948 cat >> $CONFIG_STATUS <<\EOF
17949 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
17950 if test -n "$CONFIG_FILES"; then
17951   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
17952   grep '^MULTISUBDIR =' Makefile >> src/Makefile
17953   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
17954 fi
17955 chmod +x mkcheck
17956 chmod +x testsuite_flags
17957
17958 exit 0
17959 EOF
17960 chmod +x $CONFIG_STATUS
17961 rm -fr confdefs* $ac_clean_files
17962 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17963
17964
17965
17966 # Sanity checking & User-visible messages.
17967 # Checks down here, otherwise they get scrolled off before
17968 # the user will notice.
17969
17970 # Trying to get more people to read documentation.  Possibly remove
17971 # check and warn all the time. There is no "informational" AC_MSG_
17972 # macro, so these are going to be printed even when --quiet/--silent
17973 # is given.
17974 if test ! -f stamp-sanity-warned; then
17975   touch stamp-sanity-warned
17976   echo ""
17977   echo "Please make certain that you read the installation information here:"
17978   echo "  faster => ${srcdir}/docs/install.html"
17979   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
17980   echo ""
17981   echo "and the configuration information here:"
17982   echo "  faster => ${srcdir}/docs/configopts.html"
17983   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
17984   echo ""
17985   echo "before proceeding with ${_cv_gnu_make_command}."
17986   echo ""
17987 fi