acinclude.m4: Don't AC_REPLACE_MATHFUNCS expf and atan2f.
[platform/upstream/gcc.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-target-subdir=SUBDIR
16                            configuring in a subdirectory"
17 ac_help="$ac_help
18   --with-cross-host=HOST  configuring with a cross compiler"
19 ac_help="$ac_help
20   --enable-multilib       build hella library versions (default)"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package. 
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package. 
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49   --enable-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 # When building with srcdir == objdir, links to the source files will
575 # be created in directories within the target_subdir.  We have to
576 # adjust toplevel_srcdir accordingly, so that configure finds
577 # install-sh and other auxiliary files that live in the top-level
578 # source directory.
579 if test "${srcdir}" = "."; then
580   if test -z "${with_target_subdir}"; then
581     toprel=".."
582   else
583     if test "${with_target_subdir}" != "."; then
584       toprel="${with_multisrctop}../.."
585     else
586       toprel="${with_multisrctop}.."
587     fi
588   fi
589 else
590   toprel=".."
591 fi
592 ac_aux_dir=
593 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
594   if test -f $ac_dir/install-sh; then
595     ac_aux_dir=$ac_dir
596     ac_install_sh="$ac_aux_dir/install-sh -c"
597     break
598   elif test -f $ac_dir/install.sh; then
599     ac_aux_dir=$ac_dir
600     ac_install_sh="$ac_aux_dir/install.sh -c"
601     break
602   fi
603 done
604 if test -z "$ac_aux_dir"; then
605   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
606 fi
607 ac_config_guess=$ac_aux_dir/config.guess
608 ac_config_sub=$ac_aux_dir/config.sub
609 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
610
611 toplevel_srcdir=\${top_srcdir}/$toprel
612
613
614
615
616 # Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
617 # AC 2.50 sets target_alias iff the user specified --target, but we use it
618 # everywhere, so we set it here just to be sure.
619
620 # Do some error checking and defaulting for the host and target type.
621 # The inputs are:
622 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
623 #
624 # The rules are:
625 # 1. You are not allowed to specify --host, --target, and nonopt at the
626 #    same time.
627 # 2. Host defaults to nonopt.
628 # 3. If nonopt is not specified, then host defaults to the current host,
629 #    as determined by config.guess.
630 # 4. Target and build default to nonopt.
631 # 5. If nonopt is not specified, then target and build default to host.
632
633 # The aliases save the names the user supplied, while $host etc.
634 # will get canonicalized.
635 case $host---$target---$nonopt in
636 NONE---*---* | *---NONE---* | *---*---NONE) ;;
637 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
638 esac
639
640
641 # Make sure we can run config.sub.
642 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
643 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
644 fi
645
646 echo $ac_n "checking host system type""... $ac_c" 1>&6
647 echo "configure:648: checking host system type" >&5
648
649 host_alias=$host
650 case "$host_alias" in
651 NONE)
652   case $nonopt in
653   NONE)
654     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
655     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
656     fi ;;
657   *) host_alias=$nonopt ;;
658   esac ;;
659 esac
660
661 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
662 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
663 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
664 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
665 echo "$ac_t""$host" 1>&6
666
667 echo $ac_n "checking target system type""... $ac_c" 1>&6
668 echo "configure:669: checking target system type" >&5
669
670 target_alias=$target
671 case "$target_alias" in
672 NONE)
673   case $nonopt in
674   NONE) target_alias=$host_alias ;;
675   *) target_alias=$nonopt ;;
676   esac ;;
677 esac
678
679 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
680 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
681 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
682 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683 echo "$ac_t""$target" 1>&6
684
685 echo $ac_n "checking build system type""... $ac_c" 1>&6
686 echo "configure:687: checking build system type" >&5
687
688 build_alias=$build
689 case "$build_alias" in
690 NONE)
691   case $nonopt in
692   NONE) build_alias=$host_alias ;;
693   *) build_alias=$nonopt ;;
694   esac ;;
695 esac
696
697 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
698 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
699 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
700 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
701 echo "$ac_t""$build" 1>&6
702
703 test "$host_alias" != "$target_alias" &&
704   test "$program_prefix$program_suffix$program_transform_name" = \
705     NONENONEs,x,x, &&
706   program_prefix=${target_alias}-
707
708 target_alias=${target_alias-$target}
709
710
711 # We use these options to decide which functions to include.
712 # Check whether --with-target-subdir or --without-target-subdir was given.
713 if test "${with_target_subdir+set}" = set; then
714   withval="$with_target_subdir"
715   :
716 fi
717
718 # Check whether --with-cross-host or --without-cross-host was given.
719 if test "${with_cross_host+set}" = set; then
720   withval="$with_cross_host"
721   :
722 fi
723
724
725 # Runs configure.host and configure.target. Have to run this before
726 # the GLIBCPP_ENABLE_* macros below.
727 # Find a good install program.  We prefer a C program (faster),
728 # so one script is as good as another.  But avoid the broken or
729 # incompatible versions:
730 # SysV /etc/install, /usr/sbin/install
731 # SunOS /usr/etc/install
732 # IRIX /sbin/install
733 # AIX /bin/install
734 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
735 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
736 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
737 # ./install, which can be erroneously created by make from ./install.sh.
738 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
739 echo "configure:740: checking for a BSD compatible install" >&5
740 if test -z "$INSTALL"; then
741 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
742   echo $ac_n "(cached) $ac_c" 1>&6
743 else
744     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
745   for ac_dir in $PATH; do
746     # Account for people who put trailing slashes in PATH elements.
747     case "$ac_dir/" in
748     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
749     *)
750       # OSF1 and SCO ODT 3.0 have their own names for install.
751       # Don't use installbsd from OSF since it installs stuff as root
752       # by default.
753       for ac_prog in ginstall scoinst install; do
754         if test -f $ac_dir/$ac_prog; then
755           if test $ac_prog = install &&
756             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
757             # AIX install.  It has an incompatible calling convention.
758             :
759           else
760             ac_cv_path_install="$ac_dir/$ac_prog -c"
761             break 2
762           fi
763         fi
764       done
765       ;;
766     esac
767   done
768   IFS="$ac_save_IFS"
769
770 fi
771   if test "${ac_cv_path_install+set}" = set; then
772     INSTALL="$ac_cv_path_install"
773   else
774     # As a last resort, use the slow shell script.  We don't cache a
775     # path for INSTALL within a source directory, because that will
776     # break other packages using the cache if that directory is
777     # removed, or if the path is relative.
778     INSTALL="$ac_install_sh"
779   fi
780 fi
781 echo "$ac_t""$INSTALL" 1>&6
782
783 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
784 # It thinks the first close brace ends the variable substitution.
785 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
786
787 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
788
789 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
790
791 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
792 echo "configure:793: checking whether build environment is sane" >&5
793 # Just in case
794 sleep 1
795 echo timestamp > conftestfile
796 # Do `set' in a subshell so we don't clobber the current shell's
797 # arguments.  Must try -L first in case configure is actually a
798 # symlink; some systems play weird games with the mod time of symlinks
799 # (eg FreeBSD returns the mod time of the symlink's containing
800 # directory).
801 if (
802    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
803    if test "$*" = "X"; then
804       # -L didn't work.
805       set X `ls -t $srcdir/configure conftestfile`
806    fi
807    if test "$*" != "X $srcdir/configure conftestfile" \
808       && test "$*" != "X conftestfile $srcdir/configure"; then
809
810       # If neither matched, then we have a broken ls.  This can happen
811       # if, for instance, CONFIG_SHELL is bash and it inherits a
812       # broken ls alias from the environment.  This has actually
813       # happened.  Such a system could not be considered "sane".
814       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
815 alias in your environment" 1>&2; exit 1; }
816    fi
817
818    test "$2" = conftestfile
819    )
820 then
821    # Ok.
822    :
823 else
824    { echo "configure: error: newly created file is older than distributed files!
825 Check your system clock" 1>&2; exit 1; }
826 fi
827 rm -f conftest*
828 echo "$ac_t""yes" 1>&6
829 if test "$program_transform_name" = s,x,x,; then
830   program_transform_name=
831 else
832   # Double any \ or $.  echo might interpret backslashes.
833   cat <<\EOF_SED > conftestsed
834 s,\\,\\\\,g; s,\$,$$,g
835 EOF_SED
836   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
837   rm -f conftestsed
838 fi
839 test "$program_prefix" != NONE &&
840   program_transform_name="s,^,${program_prefix},; $program_transform_name"
841 # Use a double $ so make ignores it.
842 test "$program_suffix" != NONE &&
843   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
844
845 # sed with no file args requires a program.
846 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
847
848 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
849 echo "configure:850: checking whether ${MAKE-make} sets \${MAKE}" >&5
850 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
851 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
852   echo $ac_n "(cached) $ac_c" 1>&6
853 else
854   cat > conftestmake <<\EOF
855 all:
856         @echo 'ac_maketemp="${MAKE}"'
857 EOF
858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
859 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
860 if test -n "$ac_maketemp"; then
861   eval ac_cv_prog_make_${ac_make}_set=yes
862 else
863   eval ac_cv_prog_make_${ac_make}_set=no
864 fi
865 rm -f conftestmake
866 fi
867 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
868   echo "$ac_t""yes" 1>&6
869   SET_MAKE=
870 else
871   echo "$ac_t""no" 1>&6
872   SET_MAKE="MAKE=${MAKE-make}"
873 fi
874
875 if test $host != $build; then
876   ac_tool_prefix=${host_alias}-
877 else
878   ac_tool_prefix=
879 fi
880
881 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
882 echo "configure:883: checking for Cygwin environment" >&5
883 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
884   echo $ac_n "(cached) $ac_c" 1>&6
885 else
886   cat > conftest.$ac_ext <<EOF
887 #line 888 "configure"
888 #include "confdefs.h"
889
890 int main() {
891
892 #ifndef __CYGWIN__
893 #define __CYGWIN__ __CYGWIN32__
894 #endif
895 return __CYGWIN__;
896 ; return 0; }
897 EOF
898 if { (eval echo configure:899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
899   rm -rf conftest*
900   ac_cv_cygwin=yes
901 else
902   echo "configure: failed program was:" >&5
903   cat conftest.$ac_ext >&5
904   rm -rf conftest*
905   ac_cv_cygwin=no
906 fi
907 rm -f conftest*
908 rm -f conftest*
909 fi
910
911 echo "$ac_t""$ac_cv_cygwin" 1>&6
912 CYGWIN=
913 test "$ac_cv_cygwin" = yes && CYGWIN=yes
914 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
915 echo "configure:916: checking for mingw32 environment" >&5
916 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
917   echo $ac_n "(cached) $ac_c" 1>&6
918 else
919   cat > conftest.$ac_ext <<EOF
920 #line 921 "configure"
921 #include "confdefs.h"
922
923 int main() {
924 return __MINGW32__;
925 ; return 0; }
926 EOF
927 if { (eval echo configure:928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
928   rm -rf conftest*
929   ac_cv_mingw32=yes
930 else
931   echo "configure: failed program was:" >&5
932   cat conftest.$ac_ext >&5
933   rm -rf conftest*
934   ac_cv_mingw32=no
935 fi
936 rm -f conftest*
937 rm -f conftest*
938 fi
939
940 echo "$ac_t""$ac_cv_mingw32" 1>&6
941 MINGW32=
942 test "$ac_cv_mingw32" = yes && MINGW32=yes
943
944     # Check whether --enable-multilib or --disable-multilib was given.
945 if test "${enable_multilib+set}" = set; then
946   enableval="$enable_multilib"
947   case "${enableval}" in
948     yes) multilib=yes ;;
949     no)  multilib=no ;;
950     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
951    esac
952 else
953   multilib=yes
954 fi
955
956   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
957   
958
959   
960 PACKAGE=libstdc++
961
962 VERSION=3.0.0
963
964 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
965   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
966 fi
967 cat >> confdefs.h <<EOF
968 #define PACKAGE "$PACKAGE"
969 EOF
970
971 cat >> confdefs.h <<EOF
972 #define VERSION "$VERSION"
973 EOF
974
975
976
977 missing_dir=`cd $ac_aux_dir && pwd`
978 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
979 echo "configure:980: checking for working aclocal" >&5
980 # Run test in a subshell; some versions of sh will print an error if
981 # an executable is not found, even if stderr is redirected.
982 # Redirect stdin to placate older versions of autoconf.  Sigh.
983 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
984    ACLOCAL=aclocal
985    echo "$ac_t""found" 1>&6
986 else
987    ACLOCAL="$missing_dir/missing aclocal"
988    echo "$ac_t""missing" 1>&6
989 fi
990
991 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
992 echo "configure:993: checking for working autoconf" >&5
993 # Run test in a subshell; some versions of sh will print an error if
994 # an executable is not found, even if stderr is redirected.
995 # Redirect stdin to placate older versions of autoconf.  Sigh.
996 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
997    AUTOCONF=autoconf
998    echo "$ac_t""found" 1>&6
999 else
1000    AUTOCONF="$missing_dir/missing autoconf"
1001    echo "$ac_t""missing" 1>&6
1002 fi
1003
1004 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1005 echo "configure:1006: checking for working automake" >&5
1006 # Run test in a subshell; some versions of sh will print an error if
1007 # an executable is not found, even if stderr is redirected.
1008 # Redirect stdin to placate older versions of autoconf.  Sigh.
1009 if (automake --version) < /dev/null > /dev/null 2>&1; then
1010    AUTOMAKE=automake
1011    echo "$ac_t""found" 1>&6
1012 else
1013    AUTOMAKE="$missing_dir/missing automake"
1014    echo "$ac_t""missing" 1>&6
1015 fi
1016
1017 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1018 echo "configure:1019: checking for working autoheader" >&5
1019 # Run test in a subshell; some versions of sh will print an error if
1020 # an executable is not found, even if stderr is redirected.
1021 # Redirect stdin to placate older versions of autoconf.  Sigh.
1022 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1023    AUTOHEADER=autoheader
1024    echo "$ac_t""found" 1>&6
1025 else
1026    AUTOHEADER="$missing_dir/missing autoheader"
1027    echo "$ac_t""missing" 1>&6
1028 fi
1029
1030 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1031 echo "configure:1032: checking for working makeinfo" >&5
1032 # Run test in a subshell; some versions of sh will print an error if
1033 # an executable is not found, even if stderr is redirected.
1034 # Redirect stdin to placate older versions of autoconf.  Sigh.
1035 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1036    MAKEINFO=makeinfo
1037    echo "$ac_t""found" 1>&6
1038 else
1039    MAKEINFO="$missing_dir/missing makeinfo"
1040    echo "$ac_t""missing" 1>&6
1041 fi
1042
1043
1044
1045   # Never versions of autoconf add an underscore to these functions.
1046   # Prevent future problems ...
1047   
1048   
1049   
1050   
1051
1052 #  AC_PROG_CC
1053
1054 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1055 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1056 # are probably using a cross compiler, which will not be able to fully
1057 # link an executable.  This should really be fixed in autoconf
1058 # itself.
1059
1060
1061
1062
1063 # Extract the first word of "gcc", so it can be a program name with args.
1064 set dummy gcc; ac_word=$2
1065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1066 echo "configure:1067: checking for $ac_word" >&5
1067 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1068   echo $ac_n "(cached) $ac_c" 1>&6
1069 else
1070   if test -n "$CC"; then
1071   ac_cv_prog_CC="$CC" # Let the user override the test.
1072 else
1073   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1074   ac_dummy="$PATH"
1075   for ac_dir in $ac_dummy; do
1076     test -z "$ac_dir" && ac_dir=.
1077     if test -f $ac_dir/$ac_word; then
1078       ac_cv_prog_CC="gcc"
1079       break
1080     fi
1081   done
1082   IFS="$ac_save_ifs"
1083 fi
1084 fi
1085 CC="$ac_cv_prog_CC"
1086 if test -n "$CC"; then
1087   echo "$ac_t""$CC" 1>&6
1088 else
1089   echo "$ac_t""no" 1>&6
1090 fi
1091
1092 if test -z "$CC"; then
1093   # Extract the first word of "cc", so it can be a program name with args.
1094 set dummy cc; ac_word=$2
1095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1096 echo "configure:1097: checking for $ac_word" >&5
1097 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1098   echo $ac_n "(cached) $ac_c" 1>&6
1099 else
1100   if test -n "$CC"; then
1101   ac_cv_prog_CC="$CC" # Let the user override the test.
1102 else
1103   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1104   ac_prog_rejected=no
1105   ac_dummy="$PATH"
1106   for ac_dir in $ac_dummy; do
1107     test -z "$ac_dir" && ac_dir=.
1108     if test -f $ac_dir/$ac_word; then
1109       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1110         ac_prog_rejected=yes
1111         continue
1112       fi
1113       ac_cv_prog_CC="cc"
1114       break
1115     fi
1116   done
1117   IFS="$ac_save_ifs"
1118 if test $ac_prog_rejected = yes; then
1119   # We found a bogon in the path, so make sure we never use it.
1120   set dummy $ac_cv_prog_CC
1121   shift
1122   if test $# -gt 0; then
1123     # We chose a different compiler from the bogus one.
1124     # However, it has the same basename, so the bogon will be chosen
1125     # first if we set CC to just the basename; use the full file name.
1126     shift
1127     set dummy "$ac_dir/$ac_word" "$@"
1128     shift
1129     ac_cv_prog_CC="$@"
1130   fi
1131 fi
1132 fi
1133 fi
1134 CC="$ac_cv_prog_CC"
1135 if test -n "$CC"; then
1136   echo "$ac_t""$CC" 1>&6
1137 else
1138   echo "$ac_t""no" 1>&6
1139 fi
1140
1141   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1142 fi
1143
1144 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether we are using GNU C" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1147   echo $ac_n "(cached) $ac_c" 1>&6
1148 else
1149   cat > conftest.c <<EOF
1150 #ifdef __GNUC__
1151   yes;
1152 #endif
1153 EOF
1154 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1155   ac_cv_prog_gcc=yes
1156 else
1157   ac_cv_prog_gcc=no
1158 fi
1159 fi
1160
1161 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1162
1163 if test $ac_cv_prog_gcc = yes; then
1164   GCC=yes
1165   ac_test_CFLAGS="${CFLAGS+set}"
1166   ac_save_CFLAGS="$CFLAGS"
1167   CFLAGS=
1168   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1169 echo "configure:1170: checking whether ${CC-cc} accepts -g" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1171   echo $ac_n "(cached) $ac_c" 1>&6
1172 else
1173   echo 'void f(){}' > conftest.c
1174 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1175   ac_cv_prog_cc_g=yes
1176 else
1177   ac_cv_prog_cc_g=no
1178 fi
1179 rm -f conftest*
1180
1181 fi
1182
1183 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1184   if test "$ac_test_CFLAGS" = set; then
1185     CFLAGS="$ac_save_CFLAGS"
1186   elif test $ac_cv_prog_cc_g = yes; then
1187     CFLAGS="-g -O2"
1188   else
1189     CFLAGS="-O2"
1190   fi
1191 else
1192   GCC=
1193   test "${CFLAGS+set}" = set || CFLAGS="-g"
1194 fi
1195
1196
1197 # Can't just call these here as g++ requires libstc++ to be built....
1198 #  AC_PROG_CXX
1199
1200 # Likewise for AC_PROG_CXX.
1201
1202
1203
1204 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1205 # flags that come in CXX while configuring libstdc++.  They're different
1206 # from those used for all other target libraries.  If CXX is set in
1207 # the environment, respect that here.
1208 glibcpp_CXX=$CXX
1209 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1210 do
1211 # Extract the first word of "$ac_prog", so it can be a program name with args.
1212 set dummy $ac_prog; ac_word=$2
1213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1214 echo "configure:1215: checking for $ac_word" >&5
1215 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1216   echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218   if test -n "$glibcpp_CXX"; then
1219   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1220 else
1221   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1222   ac_dummy="$PATH"
1223   for ac_dir in $ac_dummy; do
1224     test -z "$ac_dir" && ac_dir=.
1225     if test -f $ac_dir/$ac_word; then
1226       ac_cv_prog_glibcpp_CXX="$ac_prog"
1227       break
1228     fi
1229   done
1230   IFS="$ac_save_ifs"
1231 fi
1232 fi
1233 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1234 if test -n "$glibcpp_CXX"; then
1235   echo "$ac_t""$glibcpp_CXX" 1>&6
1236 else
1237   echo "$ac_t""no" 1>&6
1238 fi
1239
1240 test -n "$glibcpp_CXX" && break
1241 done
1242 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1243
1244
1245 CXX=$glibcpp_CXX
1246 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1247
1248 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1249 echo "configure:1250: checking whether we are using GNU C++" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1251   echo $ac_n "(cached) $ac_c" 1>&6
1252 else
1253   cat > conftest.C <<EOF
1254 #ifdef __GNUC__
1255   yes;
1256 #endif
1257 EOF
1258 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1259   ac_cv_prog_gxx=yes
1260 else
1261   ac_cv_prog_gxx=no
1262 fi
1263 fi
1264
1265 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1266
1267 if test $ac_cv_prog_gxx = yes; then
1268   GXX=yes
1269   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1270   ac_save_CXXFLAGS="$CXXFLAGS"
1271   CXXFLAGS=
1272   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1273 echo "configure:1274: checking whether ${CXX-g++} accepts -g" >&5
1274 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1275   echo $ac_n "(cached) $ac_c" 1>&6
1276 else
1277   echo 'void f(){}' > conftest.cc
1278 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1279   ac_cv_prog_cxx_g=yes
1280 else
1281   ac_cv_prog_cxx_g=no
1282 fi
1283 rm -f conftest*
1284
1285 fi
1286
1287 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1288   if test "$ac_test_CXXFLAGS" = set; then
1289     CXXFLAGS="$ac_save_CXXFLAGS"
1290   elif test $ac_cv_prog_cxx_g = yes; then
1291     CXXFLAGS="-g -O2"
1292   else
1293     CXXFLAGS="-O2"
1294   fi
1295 else
1296   GXX=
1297   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1298 fi
1299
1300
1301   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1302 set dummy ${ac_tool_prefix}as; ac_word=$2
1303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1304 echo "configure:1305: checking for $ac_word" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1306   echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308   if test -n "$AS"; then
1309   ac_cv_prog_AS="$AS" # Let the user override the test.
1310 else
1311   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1312   ac_dummy="$PATH"
1313   for ac_dir in $ac_dummy; do
1314     test -z "$ac_dir" && ac_dir=.
1315     if test -f $ac_dir/$ac_word; then
1316       ac_cv_prog_AS="${ac_tool_prefix}as"
1317       break
1318     fi
1319   done
1320   IFS="$ac_save_ifs"
1321   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1322 fi
1323 fi
1324 AS="$ac_cv_prog_AS"
1325 if test -n "$AS"; then
1326   echo "$ac_t""$AS" 1>&6
1327 else
1328   echo "$ac_t""no" 1>&6
1329 fi
1330
1331
1332
1333   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1334 set dummy ${ac_tool_prefix}ar; ac_word=$2
1335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1336 echo "configure:1337: checking for $ac_word" >&5
1337 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1338   echo $ac_n "(cached) $ac_c" 1>&6
1339 else
1340   if test -n "$AR"; then
1341   ac_cv_prog_AR="$AR" # Let the user override the test.
1342 else
1343   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1344   ac_dummy="$PATH"
1345   for ac_dir in $ac_dummy; do
1346     test -z "$ac_dir" && ac_dir=.
1347     if test -f $ac_dir/$ac_word; then
1348       ac_cv_prog_AR="${ac_tool_prefix}ar"
1349       break
1350     fi
1351   done
1352   IFS="$ac_save_ifs"
1353   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1354 fi
1355 fi
1356 AR="$ac_cv_prog_AR"
1357 if test -n "$AR"; then
1358   echo "$ac_t""$AR" 1>&6
1359 else
1360   echo "$ac_t""no" 1>&6
1361 fi
1362
1363
1364
1365   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1368 echo "configure:1369: checking for $ac_word" >&5
1369 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1370   echo $ac_n "(cached) $ac_c" 1>&6
1371 else
1372   if test -n "$RANLIB"; then
1373   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1374 else
1375   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1376   ac_dummy="$PATH"
1377   for ac_dir in $ac_dummy; do
1378     test -z "$ac_dir" && ac_dir=.
1379     if test -f $ac_dir/$ac_word; then
1380       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1381       break
1382     fi
1383   done
1384   IFS="$ac_save_ifs"
1385 fi
1386 fi
1387 RANLIB="$ac_cv_prog_RANLIB"
1388 if test -n "$RANLIB"; then
1389   echo "$ac_t""$RANLIB" 1>&6
1390 else
1391   echo "$ac_t""no" 1>&6
1392 fi
1393
1394
1395 if test -z "$ac_cv_prog_RANLIB"; then
1396 if test -n "$ac_tool_prefix"; then
1397   # Extract the first word of "ranlib", so it can be a program name with args.
1398 set dummy ranlib; ac_word=$2
1399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1400 echo "configure:1401: checking for $ac_word" >&5
1401 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1402   echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404   if test -n "$RANLIB"; then
1405   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1406 else
1407   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1408   ac_dummy="$PATH"
1409   for ac_dir in $ac_dummy; do
1410     test -z "$ac_dir" && ac_dir=.
1411     if test -f $ac_dir/$ac_word; then
1412       ac_cv_prog_RANLIB="ranlib"
1413       break
1414     fi
1415   done
1416   IFS="$ac_save_ifs"
1417   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1418 fi
1419 fi
1420 RANLIB="$ac_cv_prog_RANLIB"
1421 if test -n "$RANLIB"; then
1422   echo "$ac_t""$RANLIB" 1>&6
1423 else
1424   echo "$ac_t""no" 1>&6
1425 fi
1426
1427 else
1428   RANLIB="ranlib-not-found-in-path-error"
1429 fi
1430 fi
1431
1432   # Find a good install program.  We prefer a C program (faster),
1433 # so one script is as good as another.  But avoid the broken or
1434 # incompatible versions:
1435 # SysV /etc/install, /usr/sbin/install
1436 # SunOS /usr/etc/install
1437 # IRIX /sbin/install
1438 # AIX /bin/install
1439 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1442 # ./install, which can be erroneously created by make from ./install.sh.
1443 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1444 echo "configure:1445: checking for a BSD compatible install" >&5
1445 if test -z "$INSTALL"; then
1446 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1447   echo $ac_n "(cached) $ac_c" 1>&6
1448 else
1449     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1450   for ac_dir in $PATH; do
1451     # Account for people who put trailing slashes in PATH elements.
1452     case "$ac_dir/" in
1453     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1454     *)
1455       # OSF1 and SCO ODT 3.0 have their own names for install.
1456       # Don't use installbsd from OSF since it installs stuff as root
1457       # by default.
1458       for ac_prog in ginstall scoinst install; do
1459         if test -f $ac_dir/$ac_prog; then
1460           if test $ac_prog = install &&
1461             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1462             # AIX install.  It has an incompatible calling convention.
1463             :
1464           else
1465             ac_cv_path_install="$ac_dir/$ac_prog -c"
1466             break 2
1467           fi
1468         fi
1469       done
1470       ;;
1471     esac
1472   done
1473   IFS="$ac_save_IFS"
1474
1475 fi
1476   if test "${ac_cv_path_install+set}" = set; then
1477     INSTALL="$ac_cv_path_install"
1478   else
1479     # As a last resort, use the slow shell script.  We don't cache a
1480     # path for INSTALL within a source directory, because that will
1481     # break other packages using the cache if that directory is
1482     # removed, or if the path is relative.
1483     INSTALL="$ac_install_sh"
1484   fi
1485 fi
1486 echo "$ac_t""$INSTALL" 1>&6
1487
1488 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1489 # It thinks the first close brace ends the variable substitution.
1490 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1491
1492 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1493
1494 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1495
1496
1497   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1498 echo "configure:1499: checking whether to enable maintainer-specific portions of Makefiles" >&5
1499     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1500 if test "${enable_maintainer_mode+set}" = set; then
1501   enableval="$enable_maintainer_mode"
1502   USE_MAINTAINER_MODE=$enableval
1503 else
1504   USE_MAINTAINER_MODE=no
1505 fi
1506
1507   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1508   
1509
1510 if test $USE_MAINTAINER_MODE = yes; then
1511   MAINTAINER_MODE_TRUE=
1512   MAINTAINER_MODE_FALSE='#'
1513 else
1514   MAINTAINER_MODE_TRUE='#'
1515   MAINTAINER_MODE_FALSE=
1516 fi
1517   MAINT=$MAINTAINER_MODE_TRUE
1518   
1519
1520
1521   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1522   # at least currently, we never actually build a program, so we never
1523   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1524   # fails, because we are probably configuring with a cross compiler
1525   # which cant create executables.  So we include AC_EXEEXT to keep
1526   # automake happy, but we dont execute it, since we dont care about
1527   # the result.
1528   if false; then
1529     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1530     # to nothing, so nothing would remain between `then' and `fi' if it
1531     # were not for the `:' below.
1532     :
1533     
1534
1535 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1536 echo "configure:1537: checking for executable suffix" >&5
1537 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1538   echo $ac_n "(cached) $ac_c" 1>&6
1539 else
1540   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1541   ac_cv_exeext=.exe
1542 else
1543   rm -f conftest*
1544   echo 'int main () { return 0; }' > conftest.$ac_ext
1545   ac_cv_exeext=
1546   if { (eval echo configure:1547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1547     for file in conftest.*; do
1548       case $file in
1549       *.c | *.o | *.obj) ;;
1550       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1551       esac
1552     done
1553   else
1554     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1555   fi
1556   rm -f conftest*
1557   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1558 fi
1559 fi
1560
1561 EXEEXT=""
1562 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1563 echo "$ac_t""${ac_cv_exeext}" 1>&6
1564 ac_exeext=$EXEEXT
1565
1566   fi
1567
1568   . ${glibcpp_basedir}/configure.host
1569
1570   case ${glibcpp_basedir} in
1571     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1572     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1573   esac
1574
1575   # This does for the target what configure.host does for the host.  In
1576   # addition to possibly modifying the same flags, it also sets up symlinks.
1577   
1578     . ${glibcpp_basedir}/configure.target
1579     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1580     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1581     
1582
1583
1584
1585
1586 # Check whether --enable-shared or --disable-shared was given.
1587 if test "${enable_shared+set}" = set; then
1588   enableval="$enable_shared"
1589   p=${PACKAGE-default}
1590 case $enableval in
1591 yes) enable_shared=yes ;;
1592 no) enable_shared=no ;;
1593 *)
1594   enable_shared=no
1595   # Look at the argument we got.  We use all the common list separators.
1596   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1597   for pkg in $enableval; do
1598     if test "X$pkg" = "X$p"; then
1599       enable_shared=yes
1600     fi
1601   done
1602   IFS="$ac_save_ifs"
1603   ;;
1604 esac
1605 else
1606   enable_shared=yes
1607 fi
1608
1609 # Check whether --enable-static or --disable-static was given.
1610 if test "${enable_static+set}" = set; then
1611   enableval="$enable_static"
1612   p=${PACKAGE-default}
1613 case $enableval in
1614 yes) enable_static=yes ;;
1615 no) enable_static=no ;;
1616 *)
1617   enable_static=no
1618   # Look at the argument we got.  We use all the common list separators.
1619   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1620   for pkg in $enableval; do
1621     if test "X$pkg" = "X$p"; then
1622       enable_static=yes
1623     fi
1624   done
1625   IFS="$ac_save_ifs"
1626   ;;
1627 esac
1628 else
1629   enable_static=yes
1630 fi
1631
1632 # Check whether --enable-fast-install or --disable-fast-install was given.
1633 if test "${enable_fast_install+set}" = set; then
1634   enableval="$enable_fast_install"
1635   p=${PACKAGE-default}
1636 case $enableval in
1637 yes) enable_fast_install=yes ;;
1638 no) enable_fast_install=no ;;
1639 *)
1640   enable_fast_install=no
1641   # Look at the argument we got.  We use all the common list separators.
1642   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1643   for pkg in $enableval; do
1644     if test "X$pkg" = "X$p"; then
1645       enable_fast_install=yes
1646     fi
1647   done
1648   IFS="$ac_save_ifs"
1649   ;;
1650 esac
1651 else
1652   enable_fast_install=yes
1653 fi
1654
1655 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1656 if test "${with_gnu_ld+set}" = set; then
1657   withval="$with_gnu_ld"
1658   test "$withval" = no || with_gnu_ld=yes
1659 else
1660   with_gnu_ld=no
1661 fi
1662
1663 ac_prog=ld
1664 if test "$GCC" = yes; then
1665   # Check if gcc -print-prog-name=ld gives a path.
1666   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1667 echo "configure:1668: checking for ld used by GCC" >&5
1668   case $host in
1669   *-*-mingw*)
1670     # gcc leaves a trailing carriage return which upsets mingw
1671     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1672   *)
1673     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1674   esac
1675   case $ac_prog in
1676     # Accept absolute paths.
1677     [\\/]* | [A-Za-z]:[\\/]*)
1678       re_direlt='/[^/][^/]*/\.\./'
1679       # Canonicalize the path of ld
1680       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1681       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1682         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1683       done
1684       test -z "$LD" && LD="$ac_prog"
1685       ;;
1686   "")
1687     # If it fails, then pretend we aren't using GCC.
1688     ac_prog=ld
1689     ;;
1690   *)
1691     # If it is relative, then search for the first ld in PATH.
1692     with_gnu_ld=unknown
1693     ;;
1694   esac
1695 elif test "$with_gnu_ld" = yes; then
1696   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1697 echo "configure:1698: checking for GNU ld" >&5
1698 else
1699   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1700 echo "configure:1701: checking for non-GNU ld" >&5
1701 fi
1702 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1703   echo $ac_n "(cached) $ac_c" 1>&6
1704 else
1705   if test -z "$LD"; then
1706   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1707   for ac_dir in $PATH; do
1708     test -z "$ac_dir" && ac_dir=.
1709     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1710       lt_cv_path_LD="$ac_dir/$ac_prog"
1711       # Check to see if the program is GNU ld.  I'd rather use --version,
1712       # but apparently some GNU ld's only accept -v.
1713       # Break only if it was the GNU/non-GNU ld that we prefer.
1714       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1715         test "$with_gnu_ld" != no && break
1716       else
1717         test "$with_gnu_ld" != yes && break
1718       fi
1719     fi
1720   done
1721   IFS="$ac_save_ifs"
1722 else
1723   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1724 fi
1725 fi
1726
1727 LD="$lt_cv_path_LD"
1728 if test -n "$LD"; then
1729   echo "$ac_t""$LD" 1>&6
1730 else
1731   echo "$ac_t""no" 1>&6
1732 fi
1733 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1734 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1735 echo "configure:1736: checking if the linker ($LD) is GNU ld" >&5
1736 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1737   echo $ac_n "(cached) $ac_c" 1>&6
1738 else
1739   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1740 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1741   lt_cv_prog_gnu_ld=yes
1742 else
1743   lt_cv_prog_gnu_ld=no
1744 fi
1745 fi
1746
1747 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1748 with_gnu_ld=$lt_cv_prog_gnu_ld
1749
1750
1751 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1752 echo "configure:1753: checking for $LD option to reload object files" >&5
1753 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1754   echo $ac_n "(cached) $ac_c" 1>&6
1755 else
1756   lt_cv_ld_reload_flag='-r'
1757 fi
1758
1759 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1760 reload_flag=$lt_cv_ld_reload_flag
1761 test -n "$reload_flag" && reload_flag=" $reload_flag"
1762
1763 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1764 echo "configure:1765: checking for BSD-compatible nm" >&5
1765 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1766   echo $ac_n "(cached) $ac_c" 1>&6
1767 else
1768   if test -n "$NM"; then
1769   # Let the user override the test.
1770   lt_cv_path_NM="$NM"
1771 else
1772   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1773   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1774     test -z "$ac_dir" && ac_dir=.
1775     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1776     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1777       # Check to see if the nm accepts a BSD-compat flag.
1778       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1779       #   nm: unknown option "B" ignored
1780       # Tru64's nm complains that /dev/null is an invalid object file
1781       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1782         lt_cv_path_NM="$tmp_nm -B"
1783         break
1784       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1785         lt_cv_path_NM="$tmp_nm -p"
1786         break
1787       else
1788         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1789         continue # so that we can try to find one that supports BSD flags
1790       fi
1791     fi
1792   done
1793   IFS="$ac_save_ifs"
1794   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1795 fi
1796 fi
1797
1798 NM="$lt_cv_path_NM"
1799 echo "$ac_t""$NM" 1>&6
1800
1801 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1802 echo "configure:1803: checking whether ln -s works" >&5
1803 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1804   echo $ac_n "(cached) $ac_c" 1>&6
1805 else
1806   rm -f conftestdata
1807 if ln -s X conftestdata 2>/dev/null
1808 then
1809   rm -f conftestdata
1810   ac_cv_prog_LN_S="ln -s"
1811 else
1812   ac_cv_prog_LN_S=ln
1813 fi
1814 fi
1815 LN_S="$ac_cv_prog_LN_S"
1816 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1817   echo "$ac_t""yes" 1>&6
1818 else
1819   echo "$ac_t""no" 1>&6
1820 fi
1821
1822 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1823 echo "configure:1824: checking how to recognise dependant libraries" >&5
1824 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1825   echo $ac_n "(cached) $ac_c" 1>&6
1826 else
1827   lt_cv_file_magic_cmd='$MAGIC_CMD'
1828 lt_cv_file_magic_test_file=
1829 lt_cv_deplibs_check_method='unknown'
1830 # Need to set the preceding variable on all platforms that support
1831 # interlibrary dependencies.
1832 # 'none' -- dependencies not supported.
1833 # `unknown' -- same as none, but documents that we really don't know.
1834 # 'pass_all' -- all dependencies passed with no checks.
1835 # 'test_compile' -- check by making test program.
1836 # 'file_magic [regex]' -- check by looking for files in library path
1837 # which responds to the $file_magic_cmd with a given egrep regex.
1838 # If you have `file' or equivalent on your system and you're not sure
1839 # whether `pass_all' will *always* work, you probably want this one.
1840
1841 case $host_os in
1842 aix*)
1843   lt_cv_deplibs_check_method=pass_all
1844   ;;
1845
1846 beos*)
1847   lt_cv_deplibs_check_method=pass_all
1848   ;;
1849
1850 bsdi4*)
1851   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1852   lt_cv_file_magic_cmd='/usr/bin/file -L'
1853   lt_cv_file_magic_test_file=/shlib/libc.so
1854   ;;
1855
1856 cygwin* | mingw* |pw32*)
1857   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1858   lt_cv_file_magic_cmd='$OBJDUMP -f'
1859   ;;
1860
1861 darwin* | rhapsody*)
1862   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1863   lt_cv_file_magic_cmd='/usr/bin/file -L'
1864   case "$host_os" in
1865   rhapsody* | darwin1.012)
1866     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1867     ;;
1868   *) # Darwin 1.3 on
1869     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1870     ;;
1871   esac
1872   ;;
1873
1874 freebsd* )
1875   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1876     case $host_cpu in
1877     i*86 )
1878       # Not sure whether the presence of OpenBSD here was a mistake.
1879       # Let's accept both of them until this is cleared up.
1880       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1881       lt_cv_file_magic_cmd=/usr/bin/file
1882       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1883       ;;
1884     esac
1885   else
1886     lt_cv_deplibs_check_method=pass_all
1887   fi
1888   ;;
1889
1890 gnu*)
1891   lt_cv_deplibs_check_method=pass_all
1892   ;;
1893
1894 hpux10.20*|hpux11*)
1895   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1896   lt_cv_file_magic_cmd=/usr/bin/file
1897   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1898   ;;
1899
1900 irix5* | irix6*)
1901   case $host_os in
1902   irix5*)
1903     # this will be overridden with pass_all, but let us keep it just in case
1904     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1905     ;;
1906   *)
1907     case $LD in
1908     *-32|*"-32 ") libmagic=32-bit;;
1909     *-n32|*"-n32 ") libmagic=N32;;
1910     *-64|*"-64 ") libmagic=64-bit;;
1911     *) libmagic=never-match;;
1912     esac
1913     # this will be overridden with pass_all, but let us keep it just in case
1914     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1915     ;;
1916   esac
1917   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1918   lt_cv_deplibs_check_method=pass_all
1919   ;;
1920
1921 # This must be Linux ELF.
1922 linux-gnu*)
1923   case $host_cpu in
1924   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1925     lt_cv_deplibs_check_method=pass_all ;;
1926   *)
1927     # glibc up to 2.1.1 does not perform some relocations on ARM
1928     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1929   esac
1930   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1931   ;;
1932
1933 netbsd*)
1934   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1935     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1936   else
1937     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1938   fi
1939   ;;
1940
1941 newsos6)
1942   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1943   lt_cv_file_magic_cmd=/usr/bin/file
1944   lt_cv_file_magic_test_file=/usr/lib/libnls.so
1945   ;;
1946
1947 osf3* | osf4* | osf5*)
1948   # this will be overridden with pass_all, but let us keep it just in case
1949   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1950   lt_cv_file_magic_test_file=/shlib/libc.so
1951   lt_cv_deplibs_check_method=pass_all
1952   ;;
1953
1954 sco3.2v5*)
1955   lt_cv_deplibs_check_method=pass_all
1956   ;;
1957
1958 solaris*)
1959   lt_cv_deplibs_check_method=pass_all
1960   lt_cv_file_magic_test_file=/lib/libc.so
1961   ;;
1962
1963 sysv5uw[78]* | sysv4*uw2*)
1964   lt_cv_deplibs_check_method=pass_all
1965   ;;
1966
1967 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1968   case $host_vendor in
1969   ncr)
1970     lt_cv_deplibs_check_method=pass_all
1971     ;;
1972   motorola)
1973     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]'
1974     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1975     ;;
1976   esac
1977   ;;
1978 esac
1979
1980 fi
1981
1982 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1983 file_magic_cmd=$lt_cv_file_magic_cmd
1984 deplibs_check_method=$lt_cv_deplibs_check_method
1985
1986 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1987 echo "configure:1988: checking for object suffix" >&5
1988 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1989   echo $ac_n "(cached) $ac_c" 1>&6
1990 else
1991   rm -f conftest*
1992 echo 'int i = 1;' > conftest.$ac_ext
1993 if { (eval echo configure:1994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1994   for ac_file in conftest.*; do
1995     case $ac_file in
1996     *.c) ;;
1997     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1998     esac
1999   done
2000 else
2001   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2002 fi
2003 rm -f conftest*
2004 fi
2005
2006 echo "$ac_t""$ac_cv_objext" 1>&6
2007 OBJEXT=$ac_cv_objext
2008 ac_objext=$ac_cv_objext
2009
2010 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2011
2012 # Only perform the check for file, if the check method requires it
2013 case $deplibs_check_method in
2014 file_magic*)
2015   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2016     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2017 echo "configure:2018: checking for ${ac_tool_prefix}file" >&5
2018 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2019   echo $ac_n "(cached) $ac_c" 1>&6
2020 else
2021   case $MAGIC_CMD in
2022   /*)
2023   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2024   ;;
2025   ?:/*)
2026   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2027   ;;
2028   *)
2029   ac_save_MAGIC_CMD="$MAGIC_CMD"
2030   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2031   ac_dummy="/usr/bin:$PATH"
2032   for ac_dir in $ac_dummy; do
2033     test -z "$ac_dir" && ac_dir=.
2034     if test -f $ac_dir/${ac_tool_prefix}file; then
2035       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2036       if test -n "$file_magic_test_file"; then
2037         case $deplibs_check_method in
2038         "file_magic "*)
2039           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2040           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2041           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2042             egrep "$file_magic_regex" > /dev/null; then
2043             :
2044           else
2045             cat <<EOF 1>&2
2046
2047 *** Warning: the command libtool uses to detect shared libraries,
2048 *** $file_magic_cmd, produces output that libtool cannot recognize.
2049 *** The result is that libtool may fail to recognize shared libraries
2050 *** as such.  This will affect the creation of libtool libraries that
2051 *** depend on shared libraries, but programs linked with such libtool
2052 *** libraries will work regardless of this problem.  Nevertheless, you
2053 *** may want to report the problem to your system manager and/or to
2054 *** bug-libtool@gnu.org
2055
2056 EOF
2057           fi ;;
2058         esac
2059       fi
2060       break
2061     fi
2062   done
2063   IFS="$ac_save_ifs"
2064   MAGIC_CMD="$ac_save_MAGIC_CMD"
2065   ;;
2066 esac
2067 fi
2068
2069 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2070 if test -n "$MAGIC_CMD"; then
2071   echo "$ac_t""$MAGIC_CMD" 1>&6
2072 else
2073   echo "$ac_t""no" 1>&6
2074 fi
2075
2076 if test -z "$lt_cv_path_MAGIC_CMD"; then
2077   if test -n "$ac_tool_prefix"; then
2078     echo $ac_n "checking for file""... $ac_c" 1>&6
2079 echo "configure:2080: checking for file" >&5
2080 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2081   echo $ac_n "(cached) $ac_c" 1>&6
2082 else
2083   case $MAGIC_CMD in
2084   /*)
2085   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2086   ;;
2087   ?:/*)
2088   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2089   ;;
2090   *)
2091   ac_save_MAGIC_CMD="$MAGIC_CMD"
2092   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2093   ac_dummy="/usr/bin:$PATH"
2094   for ac_dir in $ac_dummy; do
2095     test -z "$ac_dir" && ac_dir=.
2096     if test -f $ac_dir/file; then
2097       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2098       if test -n "$file_magic_test_file"; then
2099         case $deplibs_check_method in
2100         "file_magic "*)
2101           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2102           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2103           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2104             egrep "$file_magic_regex" > /dev/null; then
2105             :
2106           else
2107             cat <<EOF 1>&2
2108
2109 *** Warning: the command libtool uses to detect shared libraries,
2110 *** $file_magic_cmd, produces output that libtool cannot recognize.
2111 *** The result is that libtool may fail to recognize shared libraries
2112 *** as such.  This will affect the creation of libtool libraries that
2113 *** depend on shared libraries, but programs linked with such libtool
2114 *** libraries will work regardless of this problem.  Nevertheless, you
2115 *** may want to report the problem to your system manager and/or to
2116 *** bug-libtool@gnu.org
2117
2118 EOF
2119           fi ;;
2120         esac
2121       fi
2122       break
2123     fi
2124   done
2125   IFS="$ac_save_ifs"
2126   MAGIC_CMD="$ac_save_MAGIC_CMD"
2127   ;;
2128 esac
2129 fi
2130
2131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2132 if test -n "$MAGIC_CMD"; then
2133   echo "$ac_t""$MAGIC_CMD" 1>&6
2134 else
2135   echo "$ac_t""no" 1>&6
2136 fi
2137
2138   else
2139     MAGIC_CMD=:
2140   fi
2141 fi
2142
2143   fi
2144   ;;
2145 esac
2146
2147 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2148 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2150 echo "configure:2151: checking for $ac_word" >&5
2151 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2152   echo $ac_n "(cached) $ac_c" 1>&6
2153 else
2154   if test -n "$RANLIB"; then
2155   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2156 else
2157   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2158   ac_dummy="$PATH"
2159   for ac_dir in $ac_dummy; do
2160     test -z "$ac_dir" && ac_dir=.
2161     if test -f $ac_dir/$ac_word; then
2162       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2163       break
2164     fi
2165   done
2166   IFS="$ac_save_ifs"
2167 fi
2168 fi
2169 RANLIB="$ac_cv_prog_RANLIB"
2170 if test -n "$RANLIB"; then
2171   echo "$ac_t""$RANLIB" 1>&6
2172 else
2173   echo "$ac_t""no" 1>&6
2174 fi
2175
2176
2177 if test -z "$ac_cv_prog_RANLIB"; then
2178 if test -n "$ac_tool_prefix"; then
2179   # Extract the first word of "ranlib", so it can be a program name with args.
2180 set dummy ranlib; ac_word=$2
2181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2182 echo "configure:2183: checking for $ac_word" >&5
2183 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2184   echo $ac_n "(cached) $ac_c" 1>&6
2185 else
2186   if test -n "$RANLIB"; then
2187   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2188 else
2189   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2190   ac_dummy="$PATH"
2191   for ac_dir in $ac_dummy; do
2192     test -z "$ac_dir" && ac_dir=.
2193     if test -f $ac_dir/$ac_word; then
2194       ac_cv_prog_RANLIB="ranlib"
2195       break
2196     fi
2197   done
2198   IFS="$ac_save_ifs"
2199   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2200 fi
2201 fi
2202 RANLIB="$ac_cv_prog_RANLIB"
2203 if test -n "$RANLIB"; then
2204   echo "$ac_t""$RANLIB" 1>&6
2205 else
2206   echo "$ac_t""no" 1>&6
2207 fi
2208
2209 else
2210   RANLIB=":"
2211 fi
2212 fi
2213
2214 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2215 set dummy ${ac_tool_prefix}strip; ac_word=$2
2216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2217 echo "configure:2218: checking for $ac_word" >&5
2218 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2219   echo $ac_n "(cached) $ac_c" 1>&6
2220 else
2221   if test -n "$STRIP"; then
2222   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2223 else
2224   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2225   ac_dummy="$PATH"
2226   for ac_dir in $ac_dummy; do
2227     test -z "$ac_dir" && ac_dir=.
2228     if test -f $ac_dir/$ac_word; then
2229       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2230       break
2231     fi
2232   done
2233   IFS="$ac_save_ifs"
2234 fi
2235 fi
2236 STRIP="$ac_cv_prog_STRIP"
2237 if test -n "$STRIP"; then
2238   echo "$ac_t""$STRIP" 1>&6
2239 else
2240   echo "$ac_t""no" 1>&6
2241 fi
2242
2243
2244 if test -z "$ac_cv_prog_STRIP"; then
2245 if test -n "$ac_tool_prefix"; then
2246   # Extract the first word of "strip", so it can be a program name with args.
2247 set dummy strip; ac_word=$2
2248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2249 echo "configure:2250: checking for $ac_word" >&5
2250 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2251   echo $ac_n "(cached) $ac_c" 1>&6
2252 else
2253   if test -n "$STRIP"; then
2254   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2255 else
2256   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2257   ac_dummy="$PATH"
2258   for ac_dir in $ac_dummy; do
2259     test -z "$ac_dir" && ac_dir=.
2260     if test -f $ac_dir/$ac_word; then
2261       ac_cv_prog_STRIP="strip"
2262       break
2263     fi
2264   done
2265   IFS="$ac_save_ifs"
2266   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2267 fi
2268 fi
2269 STRIP="$ac_cv_prog_STRIP"
2270 if test -n "$STRIP"; then
2271   echo "$ac_t""$STRIP" 1>&6
2272 else
2273   echo "$ac_t""no" 1>&6
2274 fi
2275
2276 else
2277   STRIP=":"
2278 fi
2279 fi
2280
2281
2282 # Check for any special flags to pass to ltconfig.
2283 libtool_flags="--cache-file=$cache_file"
2284 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2285 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2286 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2287 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2288 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2289 libtool_flags="$libtool_flags --enable-dlopen"
2290
2291 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2292 if test "${enable_libtool_lock+set}" = set; then
2293   enableval="$enable_libtool_lock"
2294   :
2295 fi
2296
2297 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2298 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2299
2300 # Check whether --with-pic or --without-pic was given.
2301 if test "${with_pic+set}" = set; then
2302   withval="$with_pic"
2303   pic_mode="$withval"
2304 else
2305   pic_mode=default
2306 fi
2307
2308 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2309 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2310
2311 # Some flags need to be propagated to the compiler or linker for good
2312 # libtool support.
2313 case $host in
2314 *-*-irix6*)
2315   # Find out which ABI we are using.
2316   echo '#line 2317 "configure"' > conftest.$ac_ext
2317   if { (eval echo configure:2318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2318     case `/usr/bin/file conftest.$ac_objext` in
2319     *32-bit*)
2320       LD="${LD-ld} -32"
2321       ;;
2322     *N32*)
2323       LD="${LD-ld} -n32"
2324       ;;
2325     *64-bit*)
2326       LD="${LD-ld} -64"
2327       ;;
2328     esac
2329   fi
2330   rm -rf conftest*
2331   ;;
2332
2333 *-*-sco3.2v5*)
2334   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2335   SAVE_CFLAGS="$CFLAGS"
2336   CFLAGS="$CFLAGS -belf"
2337   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2338 echo "configure:2339: checking whether the C compiler needs -belf" >&5
2339 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2340   echo $ac_n "(cached) $ac_c" 1>&6
2341 else
2342   
2343      ac_ext=c
2344 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2347 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2348 cross_compiling=$ac_cv_prog_cc_cross
2349
2350      cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2353
2354 int main() {
2355
2356 ; return 0; }
2357 EOF
2358 if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2359   rm -rf conftest*
2360   lt_cv_cc_needs_belf=yes
2361 else
2362   echo "configure: failed program was:" >&5
2363   cat conftest.$ac_ext >&5
2364   rm -rf conftest*
2365   lt_cv_cc_needs_belf=no
2366 fi
2367 rm -f conftest*
2368      ac_ext=c
2369 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2370 ac_cpp='$CPP $CPPFLAGS'
2371 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2372 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2373 cross_compiling=$ac_cv_prog_cc_cross
2374
2375 fi
2376
2377 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2378   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2379     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2380     CFLAGS="$SAVE_CFLAGS"
2381   fi
2382   ;;
2383
2384
2385 esac
2386
2387 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2388 echo "configure:2389: checking how to run the C++ preprocessor" >&5
2389 if test -z "$CXXCPP"; then
2390 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2391   echo $ac_n "(cached) $ac_c" 1>&6
2392 else
2393   ac_ext=C
2394 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2395 ac_cpp='$CXXCPP $CPPFLAGS'
2396 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2397 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2398 cross_compiling=$ac_cv_prog_cxx_cross
2399   CXXCPP="${CXX-g++} -E"
2400   cat > conftest.$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2403 #include <stdlib.h>
2404 EOF
2405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2406 { (eval echo configure:2407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2408 if test -z "$ac_err"; then
2409   :
2410 else
2411   echo "$ac_err" >&5
2412   echo "configure: failed program was:" >&5
2413   cat conftest.$ac_ext >&5
2414   rm -rf conftest*
2415   CXXCPP=/lib/cpp
2416 fi
2417 rm -f conftest*
2418   ac_cv_prog_CXXCPP="$CXXCPP"
2419 ac_ext=c
2420 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2421 ac_cpp='$CPP $CPPFLAGS'
2422 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2423 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2424 cross_compiling=$ac_cv_prog_cc_cross
2425 fi
2426 fi
2427 CXXCPP="$ac_cv_prog_CXXCPP"
2428 echo "$ac_t""$CXXCPP" 1>&6
2429
2430
2431 # Save cache, so that ltconfig can load it
2432 cat > confcache <<\EOF
2433 # This file is a shell script that caches the results of configure
2434 # tests run on this system so they can be shared between configure
2435 # scripts and configure runs.  It is not useful on other systems.
2436 # If it contains results you don't want to keep, you may remove or edit it.
2437 #
2438 # By default, configure uses ./config.cache as the cache file,
2439 # creating it if it does not exist already.  You can give configure
2440 # the --cache-file=FILE option to use a different cache file; that is
2441 # what configure does when it calls configure scripts in
2442 # subdirectories, so they share the cache.
2443 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2444 # config.status only pays attention to the cache file if you give it the
2445 # --recheck option to rerun configure.
2446 #
2447 EOF
2448 # The following way of writing the cache mishandles newlines in values,
2449 # but we know of no workaround that is simple, portable, and efficient.
2450 # So, don't put newlines in cache variables' values.
2451 # Ultrix sh set writes to stderr and can't be redirected directly,
2452 # and sets the high bit in the cache file unless we assign to the vars.
2453 (set) 2>&1 |
2454   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2455   *ac_space=\ *)
2456     # `set' does not quote correctly, so add quotes (double-quote substitution
2457     # turns \\\\ into \\, and sed turns \\ into \).
2458     sed -n \
2459       -e "s/'/'\\\\''/g" \
2460       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2461     ;;
2462   *)
2463     # `set' quotes correctly as required by POSIX, so do not add quotes.
2464     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2465     ;;
2466   esac >> confcache
2467 if cmp -s $cache_file confcache; then
2468   :
2469 else
2470   if test -w $cache_file; then
2471     echo "updating cache $cache_file"
2472     cat confcache > $cache_file
2473   else
2474     echo "not updating unwritable cache $cache_file"
2475   fi
2476 fi
2477 rm -f confcache
2478
2479
2480 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2481 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2482 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2483 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2484 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2485 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2486 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2487 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2488 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2489 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2490
2491 # Reload cache, that may have been modified by ltconfig
2492 if test -r "$cache_file"; then
2493   echo "loading cache $cache_file"
2494   . $cache_file
2495 else
2496   echo "creating cache $cache_file"
2497   > $cache_file
2498 fi
2499
2500
2501 # This can be used to rebuild libtool when needed
2502 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2503
2504 # Always use our own libtool.
2505 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2506
2507 # Redirect the config.log output again, so that the ltconfig log is not
2508 # clobbered by the next message.
2509 exec 5>>./config.log
2510
2511
2512
2513 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2514 lt_save_CC="$CC"
2515 lt_save_CFLAGS="$CFLAGS"
2516 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2517 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2518 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2519 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2520 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2521 deplibs_check_method="$deplibs_check_method" \
2522 file_magic_cmd="$file_magic_cmd" \
2523 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2524 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2525 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2526 CC="$lt_save_CC"
2527 CFLAGS="$lt_save_CFLAGS"
2528
2529 # Redirect the config.log output again, so that the ltconfig log is not
2530 # clobbered by the next message.
2531 exec 5>>./config.log
2532
2533   
2534
2535   
2536          
2537          
2538
2539
2540 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2541 echo "configure:2542: checking for GNU make" >&5
2542 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2543   echo $ac_n "(cached) $ac_c" 1>&6
2544 else
2545   _cv_gnu_make_command='' ;
2546           for a in "${MAKE-make}" make gmake gnumake ; do
2547                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2548                   then
2549                           _cv_gnu_make_command=$a ;
2550                           break;
2551                   fi
2552           done ;
2553   
2554 fi
2555
2556 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2557   if test  "x$_cv_gnu_make_command" != "x"  ; then
2558           ifGNUmake='' ;
2559   else
2560           ifGNUmake='#' ;
2561   fi
2562   
2563
2564
2565
2566
2567
2568
2569
2570
2571 # Check for c++ or library specific bits that don't require linking.
2572
2573 if test ! -f stamp-sanity-compiler; then
2574   echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2575 echo "configure:2576: checking for g++ that will successfully compile libstdc++-v3" >&5
2576   
2577   ac_ext=C
2578 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2579 ac_cpp='$CXXCPP $CPPFLAGS'
2580 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2581 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2582 cross_compiling=$ac_cv_prog_cxx_cross
2583
2584   cat > conftest.$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2587
2588 int main() {
2589
2590   #if __GNUC__ < 3
2591     not_ok
2592   #endif
2593   
2594 ; return 0; }
2595 EOF
2596 if { (eval echo configure:2597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2597   rm -rf conftest*
2598   gpp_satisfactory=yes
2599 else
2600   echo "configure: failed program was:" >&5
2601   cat conftest.$ac_ext >&5
2602   rm -rf conftest*
2603   { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; }
2604 fi
2605 rm -f conftest*
2606   ac_ext=c
2607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2608 ac_cpp='$CPP $CPPFLAGS'
2609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2610 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2611 cross_compiling=$ac_cv_prog_cc_cross
2612
2613   echo "$ac_t""$gpp_satisfactory" 1>&6
2614   touch stamp-sanity-compiler
2615 fi
2616
2617
2618 # Enable all the crazy c++ stuff.  C_MBCHAR must come early.
2619 # Check whether --enable-debug or --disable-debug was given.
2620 if test "${enable_debug+set}" = set; then
2621   enableval="$enable_debug"
2622   case "${enableval}" in
2623  yes) enable_debug=yes ;;
2624  no)  enable_debug=no ;;
2625  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2626  esac
2627 else
2628   enable_debug=no
2629 fi
2630
2631 case "${enable_debug}" in
2632     yes) 
2633         DEBUG_FLAGS='-O0 -ggdb3'                        
2634         ;; 
2635     no)   
2636         DEBUG_FLAGS='-g'
2637         ;;
2638 esac
2639
2640
2641 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2642 echo "configure:2643: checking how to run the C preprocessor" >&5
2643 # On Suns, sometimes $CPP names a directory.
2644 if test -n "$CPP" && test -d "$CPP"; then
2645   CPP=
2646 fi
2647 if test -z "$CPP"; then
2648 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2649   echo $ac_n "(cached) $ac_c" 1>&6
2650 else
2651     # This must be in double quotes, not single quotes, because CPP may get
2652   # substituted into the Makefile and "${CC-cc}" will confuse make.
2653   CPP="${CC-cc} -E"
2654   # On the NeXT, cc -E runs the code through the compiler's parser,
2655   # not just through cpp.
2656   cat > conftest.$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2659 #include <assert.h>
2660 Syntax Error
2661 EOF
2662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2663 { (eval echo configure:2664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2665 if test -z "$ac_err"; then
2666   :
2667 else
2668   echo "$ac_err" >&5
2669   echo "configure: failed program was:" >&5
2670   cat conftest.$ac_ext >&5
2671   rm -rf conftest*
2672   CPP="${CC-cc} -E -traditional-cpp"
2673   cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676 #include <assert.h>
2677 Syntax Error
2678 EOF
2679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2680 { (eval echo configure:2681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2682 if test -z "$ac_err"; then
2683   :
2684 else
2685   echo "$ac_err" >&5
2686   echo "configure: failed program was:" >&5
2687   cat conftest.$ac_ext >&5
2688   rm -rf conftest*
2689   CPP="${CC-cc} -nologo -E"
2690   cat > conftest.$ac_ext <<EOF
2691 #line 2692 "configure"
2692 #include "confdefs.h"
2693 #include <assert.h>
2694 Syntax Error
2695 EOF
2696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2697 { (eval echo configure:2698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2699 if test -z "$ac_err"; then
2700   :
2701 else
2702   echo "$ac_err" >&5
2703   echo "configure: failed program was:" >&5
2704   cat conftest.$ac_ext >&5
2705   rm -rf conftest*
2706   CPP=/lib/cpp
2707 fi
2708 rm -f conftest*
2709 fi
2710 rm -f conftest*
2711 fi
2712 rm -f conftest*
2713   ac_cv_prog_CPP="$CPP"
2714 fi
2715   CPP="$ac_cv_prog_CPP"
2716 else
2717   ac_cv_prog_CPP="$CPP"
2718 fi
2719 echo "$ac_t""$CPP" 1>&6
2720
2721
2722   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2723 echo "configure:2724: checking for cstdio to use" >&5
2724   # Check whether --enable-cstdio or --disable-cstdio was given.
2725 if test "${enable_cstdio+set}" = set; then
2726   enableval="$enable_cstdio"
2727   if test x$enable_cstdio = xno; then
2728      enable_cstdio=stdio
2729   fi
2730 else
2731   enable_cstdio=stdio
2732 fi
2733
2734
2735   enable_cstdio_flag=$enable_cstdio
2736
2737     case x${enable_cstdio_flag} in
2738     xlibio)
2739       CSTDIO_H=config/c_io_libio.h
2740       BASIC_FILE_H=config/basic_file_libio.h
2741       BASIC_FILE_CC=config/basic_file_libio.cc
2742       echo "$ac_t""libio" 1>&6
2743
2744       # see if we are on a system with libio native (ie, linux)
2745       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2746 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2747 echo "configure:2748: checking for libio.h" >&5
2748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2749   echo $ac_n "(cached) $ac_c" 1>&6
2750 else
2751   cat > conftest.$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2754 #include <libio.h>
2755 EOF
2756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2757 { (eval echo configure:2758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2759 if test -z "$ac_err"; then
2760   rm -rf conftest*
2761   eval "ac_cv_header_$ac_safe=yes"
2762 else
2763   echo "$ac_err" >&5
2764   echo "configure: failed program was:" >&5
2765   cat conftest.$ac_ext >&5
2766   rm -rf conftest*
2767   eval "ac_cv_header_$ac_safe=no"
2768 fi
2769 rm -f conftest*
2770 fi
2771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2772   echo "$ac_t""yes" 1>&6
2773   has_libio=yes
2774 else
2775   echo "$ac_t""no" 1>&6
2776 has_libio=no
2777 fi
2778
2779
2780       # Need to check and see what version of glibc is being used. If
2781       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2782       # compile most of libio for linux systems.
2783       if test x$has_libio = x"yes"; then
2784         case "$target" in
2785           *-*-linux*)
2786               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2787 echo "configure:2788: checking for glibc version >= 2.2" >&5
2788               cat > conftest.$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2791
2792             #include <features.h>
2793               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2794                     ok
2795               #endif
2796               
2797 EOF
2798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2799   egrep "ok" >/dev/null 2>&1; then
2800   rm -rf conftest*
2801   glibc_satisfactory=yes
2802 else
2803   rm -rf conftest*
2804   glibc_satisfactory=no
2805 fi
2806 rm -f conftest*
2807
2808               echo "$ac_t""$glibc_satisfactory" 1>&6
2809             ;;
2810         esac
2811
2812         # XXX at the moment, admit defeat and force the recompilation
2813         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2814         glibc_satisfactory=no        
2815
2816         if test x$glibc_satisfactory = x"yes"; then
2817            need_libio=no
2818            need_wlibio=no        
2819         else
2820            need_libio=yes
2821            # bkoz XXX need to add checks to enable this
2822            # pme XXX here's a first pass at such a check
2823            if test x$enable_c_mbchar != xno; then
2824               need_wlibio=yes
2825            else
2826               need_wlibio=no
2827            fi
2828         fi
2829
2830       else
2831          # Using libio, but <libio.h> doesn't exist on the target system. . .
2832          need_libio=yes
2833          # bkoz XXX need to add checks to enable this
2834          # pme XXX here's a first pass at such a check
2835          if test x$enable_c_mbchar != xno; then
2836              need_wlibio=yes
2837          else
2838              need_wlibio=no
2839          fi
2840       fi
2841       ;;
2842     xstdio | x | xno | xnone | xyes)
2843       # default
2844       CSTDIO_H=config/c_io_stdio.h
2845       BASIC_FILE_H=config/basic_file_stdio.h
2846       BASIC_FILE_CC=config/basic_file_stdio.cc
2847       echo "$ac_t""stdio" 1>&6
2848
2849       # We're not using stdio.
2850       need_libio=no
2851       need_wlibio=no
2852       ;;
2853     *)
2854       echo "$enable_cstdio is an unknown io package" 1>&2
2855       exit 1
2856       ;;
2857   esac
2858   
2859   
2860   
2861
2862   # 2000-08-04 bkoz hack
2863   CCODECVT_C=config/c_io_libio_codecvt.c
2864   
2865   # 2000-08-04 bkoz hack
2866
2867   
2868
2869 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2870   GLIBCPP_BUILD_LIBIO_TRUE=
2871   GLIBCPP_BUILD_LIBIO_FALSE='#'
2872 else
2873   GLIBCPP_BUILD_LIBIO_TRUE='#'
2874   GLIBCPP_BUILD_LIBIO_FALSE=
2875 fi
2876   
2877
2878 if test "$need_libio" = yes; then
2879   GLIBCPP_NEED_LIBIO_TRUE=
2880   GLIBCPP_NEED_LIBIO_FALSE='#'
2881 else
2882   GLIBCPP_NEED_LIBIO_TRUE='#'
2883   GLIBCPP_NEED_LIBIO_FALSE=
2884 fi
2885   
2886
2887 if test "$need_wlibio" = yes; then
2888   GLIBCPP_NEED_WLIBIO_TRUE=
2889   GLIBCPP_NEED_WLIBIO_FALSE='#'
2890 else
2891   GLIBCPP_NEED_WLIBIO_TRUE='#'
2892   GLIBCPP_NEED_WLIBIO_FALSE=
2893 fi
2894   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2895     libio_la=../libio/libio.la
2896   else
2897     libio_la=
2898   fi
2899   
2900
2901
2902   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2903 echo "configure:2904: checking for clocale to use" >&5
2904   # Check whether --enable-clocale or --disable-clocale was given.
2905 if test "${enable_clocale+set}" = set; then
2906   enableval="$enable_clocale"
2907   if test x$enable_clocale = xno; then
2908      enable_clocale=generic
2909   fi
2910 else
2911   enable_clocale=generic
2912 fi
2913
2914
2915   enable_clocale_flag=$enable_clocale
2916
2917     case x${enable_clocale_flag} in
2918     xgnu)
2919       CLOCALE_H=config/c_locale_gnu.h
2920       CLOCALE_CC=config/c_locale_gnu.cc
2921       echo "$ac_t""gnu" 1>&6
2922       ;;
2923     xgeneric)
2924       CLOCALE_H=config/c_locale_generic.h
2925       CLOCALE_CC=config/c_locale_generic.cc
2926       echo "$ac_t""generic" 1>&6
2927       ;;
2928     *)
2929       echo "$enable_clocale is an unknown locale package" 1>&2
2930       exit 1
2931       ;;
2932   esac
2933
2934   
2935   
2936
2937 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
2938 if test "${enable_c_mbchar+set}" = set; then
2939   enableval="$enable_c_mbchar"
2940   case "$enableval" in
2941  yes) enable_c_mbchar=yes ;;
2942  no)  enable_c_mbchar=no ;;
2943  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
2944  esac
2945 else
2946   enable_c_mbchar=yes
2947 fi
2948
2949   
2950   # Check whether --enable-c99 or --disable-c99 was given.
2951 if test "${enable_c99+set}" = set; then
2952   enableval="$enable_c99"
2953     case "$enableval" in
2954    yes) enable_c99=yes ;;
2955    no)  enable_c99=no ;;
2956    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
2957    esac
2958 else
2959   enable_c99=yes
2960 fi
2961  
2962   
2963   ac_ext=C
2964 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2965 ac_cpp='$CXXCPP $CPPFLAGS'
2966 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2967 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2968 cross_compiling=$ac_cv_prog_cxx_cross
2969
2970
2971   # Check for the existence of <math.h> functions used if C99 is enabled.
2972   ac_c99_math=yes;
2973   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
2974 echo "configure:2975: checking for ISO C99 support in <math.h>" >&5
2975   cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 #include <math.h>
2979 int main() {
2980 fpclassify(0.0);
2981 ; return 0; }
2982 EOF
2983 if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2984   :
2985 else
2986   echo "configure: failed program was:" >&5
2987   cat conftest.$ac_ext >&5
2988   rm -rf conftest*
2989   ac_c99_math=no
2990 fi
2991 rm -f conftest*
2992   cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2995 #include <math.h>
2996 int main() {
2997 isfinite(0.0);
2998 ; return 0; }
2999 EOF
3000 if { (eval echo configure:3001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3001   :
3002 else
3003   echo "configure: failed program was:" >&5
3004   cat conftest.$ac_ext >&5
3005   rm -rf conftest*
3006   ac_c99_math=no
3007 fi
3008 rm -f conftest*
3009   cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 #include <math.h>
3013 int main() {
3014 isinf(0.0);
3015 ; return 0; }
3016 EOF
3017 if { (eval echo configure:3018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3018   :
3019 else
3020   echo "configure: failed program was:" >&5
3021   cat conftest.$ac_ext >&5
3022   rm -rf conftest*
3023   ac_c99_math=no
3024 fi
3025 rm -f conftest*
3026   cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3029 #include <math.h>
3030 int main() {
3031 isnan(0.0);
3032 ; return 0; }
3033 EOF
3034 if { (eval echo configure:3035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3035   :
3036 else
3037   echo "configure: failed program was:" >&5
3038   cat conftest.$ac_ext >&5
3039   rm -rf conftest*
3040   ac_c99_math=no
3041 fi
3042 rm -f conftest*
3043   cat > conftest.$ac_ext <<EOF
3044 #line 3045 "configure"
3045 #include "confdefs.h"
3046 #include <math.h>
3047 int main() {
3048 isnormal(0.0);
3049 ; return 0; }
3050 EOF
3051 if { (eval echo configure:3052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3052   :
3053 else
3054   echo "configure: failed program was:" >&5
3055   cat conftest.$ac_ext >&5
3056   rm -rf conftest*
3057   ac_c99_math=no
3058 fi
3059 rm -f conftest*
3060   cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 #include <math.h>
3064 int main() {
3065 signbit(0.0);
3066 ; return 0; }
3067 EOF
3068 if { (eval echo configure:3069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3069   :
3070 else
3071   echo "configure: failed program was:" >&5
3072   cat conftest.$ac_ext >&5
3073   rm -rf conftest*
3074   ac_c99_math=no
3075 fi
3076 rm -f conftest*
3077   cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3080 #include <math.h>
3081 int main() {
3082 isgreater(0.0,0.0);
3083 ; return 0; }
3084 EOF
3085 if { (eval echo configure:3086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3086   :
3087 else
3088   echo "configure: failed program was:" >&5
3089   cat conftest.$ac_ext >&5
3090   rm -rf conftest*
3091   ac_c99_math=no
3092 fi
3093 rm -f conftest*
3094   cat > conftest.$ac_ext <<EOF
3095 #line 3096 "configure"
3096 #include "confdefs.h"
3097 #include <math.h>
3098 int main() {
3099 isgreaterequal(0.0,0.0);
3100 ; return 0; }
3101 EOF
3102 if { (eval echo configure:3103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3103   :
3104 else
3105   echo "configure: failed program was:" >&5
3106   cat conftest.$ac_ext >&5
3107   rm -rf conftest*
3108   ac_c99_math=no
3109 fi
3110 rm -f conftest*
3111   cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3114 #include <math.h>
3115 int main() {
3116 isless(0.0,0.0);
3117 ; return 0; }
3118 EOF
3119 if { (eval echo configure:3120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3120   :
3121 else
3122   echo "configure: failed program was:" >&5
3123   cat conftest.$ac_ext >&5
3124   rm -rf conftest*
3125   ac_c99_math=no
3126 fi
3127 rm -f conftest*
3128   cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 #include <math.h>
3132 int main() {
3133 islessequal(0.0,0.0);
3134 ; return 0; }
3135 EOF
3136 if { (eval echo configure:3137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3137   :
3138 else
3139   echo "configure: failed program was:" >&5
3140   cat conftest.$ac_ext >&5
3141   rm -rf conftest*
3142   ac_c99_math=no
3143 fi
3144 rm -f conftest*
3145   cat > conftest.$ac_ext <<EOF
3146 #line 3147 "configure"
3147 #include "confdefs.h"
3148 #include <math.h>
3149 int main() {
3150 islessgreater(0.0,0.0);
3151 ; return 0; }
3152 EOF
3153 if { (eval echo configure:3154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3154   :
3155 else
3156   echo "configure: failed program was:" >&5
3157   cat conftest.$ac_ext >&5
3158   rm -rf conftest*
3159   ac_c99_math=no
3160 fi
3161 rm -f conftest*
3162   cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3165 #include <math.h>
3166 int main() {
3167 isunordered(0.0,0.0);
3168 ; return 0; }
3169 EOF
3170 if { (eval echo configure:3171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3171   :
3172 else
3173   echo "configure: failed program was:" >&5
3174   cat conftest.$ac_ext >&5
3175   rm -rf conftest*
3176   ac_c99_math=no
3177 fi
3178 rm -f conftest*
3179   echo "$ac_t""$ac_c99_math" 1>&6
3180
3181   # Check for the existence in <stdio.h> of vscanf, et. al.
3182   ac_c99_stdio=yes;
3183   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3184 echo "configure:3185: checking for ISO C99 support in <stdio.h>" >&5
3185   cat > conftest.$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3188 #include <stdio.h>
3189 int main() {
3190 snprintf("12", 0, "%i");
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_stdio=no
3200 fi
3201 rm -f conftest*
3202   cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3205 #include <stdio.h>
3206                   #include <stdarg.h>
3207                   void foo(char* fmt, ...)
3208                   {va_list args; va_start(args, fmt);
3209                   vfscanf(stderr, "%i", args);}
3210 int main() {
3211
3212 ; return 0; }
3213 EOF
3214 if { (eval echo configure:3215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3215   :
3216 else
3217   echo "configure: failed program was:" >&5
3218   cat conftest.$ac_ext >&5
3219   rm -rf conftest*
3220   ac_c99_stdio=no
3221 fi
3222 rm -f conftest*
3223   cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 #include <stdio.h>
3227                   #include <stdarg.h>
3228                   void foo(char* fmt, ...)
3229                   {va_list args; va_start(args, fmt);
3230                   vscanf("%i", args);}
3231 int main() {
3232
3233 ; return 0; }
3234 EOF
3235 if { (eval echo configure:3236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3236   :
3237 else
3238   echo "configure: failed program was:" >&5
3239   cat conftest.$ac_ext >&5
3240   rm -rf conftest*
3241   ac_c99_stdio=no
3242 fi
3243 rm -f conftest*
3244   cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 #include <stdio.h>
3248                   #include <stdarg.h>
3249                   void foo(char* fmt, ...)
3250                   {va_list args; va_start(args, fmt);
3251                   vsnprintf(fmt, 0, "%i", args);}
3252 int main() {
3253
3254 ; return 0; }
3255 EOF
3256 if { (eval echo configure:3257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3257   :
3258 else
3259   echo "configure: failed program was:" >&5
3260   cat conftest.$ac_ext >&5
3261   rm -rf conftest*
3262   ac_c99_stdio=no
3263 fi
3264 rm -f conftest*
3265   cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 #include <stdio.h>
3269                   #include <stdarg.h>
3270                   void foo(char* fmt, ...)
3271                   {va_list args; va_start(args, fmt);
3272                   vsscanf(fmt, "%i", args);}
3273 int main() {
3274
3275 ; return 0; }
3276 EOF
3277 if { (eval echo configure:3278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3278   :
3279 else
3280   echo "configure: failed program was:" >&5
3281   cat conftest.$ac_ext >&5
3282   rm -rf conftest*
3283   ac_c99_stdio=no
3284 fi
3285 rm -f conftest*
3286   echo "$ac_t""$ac_c99_stdio" 1>&6
3287
3288   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3289   ac_c99_stdlib=yes;
3290   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3291 echo "configure:3292: checking for lldiv_t declaration" >&5
3292   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3293   echo $ac_n "(cached) $ac_c" 1>&6
3294 else
3295   
3296   cat > conftest.$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3299 #include <stdlib.h>
3300 int main() {
3301  lldiv_t mydivt;
3302 ; return 0; }
3303 EOF
3304 if { (eval echo configure:3305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3305   rm -rf conftest*
3306   ac_c99_lldiv_t=yes
3307 else
3308   echo "configure: failed program was:" >&5
3309   cat conftest.$ac_ext >&5
3310   rm -rf conftest*
3311   ac_c99_lldiv_t=no
3312 fi
3313 rm -f conftest*
3314   
3315 fi
3316
3317   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3318
3319   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3320 echo "configure:3321: checking for ISO C99 support in <stdlib.h>" >&5
3321   cat > conftest.$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3324 #include <stdlib.h>
3325 int main() {
3326 char* tmp; strtof("gnu", &tmp);
3327 ; return 0; }
3328 EOF
3329 if { (eval echo configure:3330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3330   :
3331 else
3332   echo "configure: failed program was:" >&5
3333   cat conftest.$ac_ext >&5
3334   rm -rf conftest*
3335   ac_c99_stdlib=no
3336 fi
3337 rm -f conftest*
3338   cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3341 #include <stdlib.h>
3342 int main() {
3343 char* tmp; strtold("gnu", &tmp);
3344 ; return 0; }
3345 EOF
3346 if { (eval echo configure:3347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3347   :
3348 else
3349   echo "configure: failed program was:" >&5
3350   cat conftest.$ac_ext >&5
3351   rm -rf conftest*
3352   ac_c99_stdlib=no
3353 fi
3354 rm -f conftest*
3355   cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 #include <stdlib.h>
3359 int main() {
3360 char* tmp; strtoll("gnu", &tmp, 10);
3361 ; return 0; }
3362 EOF
3363 if { (eval echo configure:3364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3364   :
3365 else
3366   echo "configure: failed program was:" >&5
3367   cat conftest.$ac_ext >&5
3368   rm -rf conftest*
3369   ac_c99_stdlib=no
3370 fi
3371 rm -f conftest*
3372   cat > conftest.$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3375 #include <stdlib.h>
3376 int main() {
3377 char* tmp; strtoull("gnu", &tmp, 10);
3378 ; return 0; }
3379 EOF
3380 if { (eval echo configure:3381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3381   :
3382 else
3383   echo "configure: failed program was:" >&5
3384   cat conftest.$ac_ext >&5
3385   rm -rf conftest*
3386   ac_c99_stdlib=no
3387 fi
3388 rm -f conftest*
3389   cat > conftest.$ac_ext <<EOF
3390 #line 3391 "configure"
3391 #include "confdefs.h"
3392 #include <stdlib.h>
3393 int main() {
3394 llabs(10);
3395 ; return 0; }
3396 EOF
3397 if { (eval echo configure:3398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3398   :
3399 else
3400   echo "configure: failed program was:" >&5
3401   cat conftest.$ac_ext >&5
3402   rm -rf conftest*
3403   ac_c99_stdlib=no
3404 fi
3405 rm -f conftest*
3406   cat > conftest.$ac_ext <<EOF
3407 #line 3408 "configure"
3408 #include "confdefs.h"
3409 #include <stdlib.h>
3410 int main() {
3411 lldiv(10,1);
3412 ; return 0; }
3413 EOF
3414 if { (eval echo configure:3415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3415   :
3416 else
3417   echo "configure: failed program was:" >&5
3418   cat conftest.$ac_ext >&5
3419   rm -rf conftest*
3420   ac_c99_stdlib=no
3421 fi
3422 rm -f conftest*
3423   cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 #include <stdlib.h>
3427 int main() {
3428 atoll("10");
3429 ; return 0; }
3430 EOF
3431 if { (eval echo configure:3432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3432   :
3433 else
3434   echo "configure: failed program was:" >&5
3435   cat conftest.$ac_ext >&5
3436   rm -rf conftest*
3437   ac_c99_stdlib=no
3438 fi
3439 rm -f conftest*
3440   cat > conftest.$ac_ext <<EOF
3441 #line 3442 "configure"
3442 #include "confdefs.h"
3443 #include <stdlib.h>
3444 int main() {
3445 _Exit(0);
3446 ; return 0; }
3447 EOF
3448 if { (eval echo configure:3449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3449   :
3450 else
3451   echo "configure: failed program was:" >&5
3452   cat conftest.$ac_ext >&5
3453   rm -rf conftest*
3454   ac_c99_stdlib=no
3455 fi
3456 rm -f conftest*
3457   if test x"$ac_c99_lldiv_t" = x"no"; then
3458     ac_c99_stdlib=no; 
3459   fi; 
3460   echo "$ac_t""$ac_c99_stdlib" 1>&6
3461
3462   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3463   # XXX the wchar.h checks should be rolled into the general C99 bits.
3464   ac_c99_wchar=yes;
3465   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3466 echo "configure:3467: checking for additional ISO C99 support in <wchar.h>" >&5
3467   cat > conftest.$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3470 #include <wchar.h>
3471 int main() {
3472 wcstold(L"10.0", NULL);
3473 ; return 0; }
3474 EOF
3475 if { (eval echo configure:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3476   :
3477 else
3478   echo "configure: failed program was:" >&5
3479   cat conftest.$ac_ext >&5
3480   rm -rf conftest*
3481   ac_c99_wchar=no
3482 fi
3483 rm -f conftest*
3484   cat > conftest.$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3487 #include <wchar.h>
3488 int main() {
3489 wcstoll(L"10", NULL, 10);
3490 ; return 0; }
3491 EOF
3492 if { (eval echo configure:3493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3493   :
3494 else
3495   echo "configure: failed program was:" >&5
3496   cat conftest.$ac_ext >&5
3497   rm -rf conftest*
3498   ac_c99_wchar=no
3499 fi
3500 rm -f conftest*
3501   cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 #include <wchar.h>
3505 int main() {
3506 wcstoull(L"10", NULL, 10);
3507 ; return 0; }
3508 EOF
3509 if { (eval echo configure:3510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3510   :
3511 else
3512   echo "configure: failed program was:" >&5
3513   cat conftest.$ac_ext >&5
3514   rm -rf conftest*
3515   ac_c99_wchar=no
3516 fi
3517 rm -f conftest*
3518   echo "$ac_t""$ac_c99_wchar" 1>&6
3519
3520   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3521 echo "configure:3522: checking for enabled ISO C99 support" >&5
3522   if test x"$ac_c99_math" = x"no" ||
3523      test x"$ac_c99_stdio" = x"no" ||
3524      test x"$ac_c99_stdlib" = x"no" ||
3525      test x"$ac_c99_wchar" = x"no"; then
3526     enable_c99=no; 
3527   fi; 
3528   echo "$ac_t""$enable_c99" 1>&6
3529
3530   # Option parsed, now set things appropriately
3531   if test x"$enable_c99" = x"yes"; then
3532     cat >> confdefs.h <<\EOF
3533 #define _GLIBCPP_USE_C99 1
3534 EOF
3535
3536   fi
3537
3538   ac_ext=c
3539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3540 ac_cpp='$CPP $CPPFLAGS'
3541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3543 cross_compiling=$ac_cv_prog_cc_cross
3544
3545
3546   
3547   # Check whether --enable-long-long or --disable-long-long was given.
3548 if test "${enable_long_long+set}" = set; then
3549   enableval="$enable_long_long"
3550     case "$enableval" in
3551    yes) enable_long_long=yes ;;
3552    no)  enable_long_long=no ;;
3553    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3554    esac
3555 else
3556   enable_long_long=yes
3557 fi
3558
3559   # iostreams require strtoll, strtoull to compile. If the
3560   # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3561   # go ahead and allow long long to be used.
3562   if test x"$enable_c99" = x"no"; then
3563     enable_long_long=no; 
3564   fi
3565
3566   # Option parsed, now set things appropriately
3567   echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3568 echo "configure:3569: checking for enabled long long support" >&5
3569   if test x"$enable_long_long" = xyes; then
3570     cat >> confdefs.h <<\EOF
3571 #define _GLIBCPP_USE_LONG_LONG 1
3572 EOF
3573
3574   fi
3575   echo "$ac_t""$enable_long_long" 1>&6
3576
3577 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3578 echo "configure:3579: checking for c header strategy to use" >&5
3579 # Check whether --enable-cheaders or --disable-cheaders was given.
3580 if test "${enable_cheaders+set}" = set; then
3581   enableval="$enable_cheaders"
3582   
3583   case "$enableval" in
3584    c) 
3585         enable_cheaders=c 
3586         ;;
3587    c_std)  
3588         enable_cheaders=c_std 
3589         ;;
3590    c_shadow)  
3591         enable_cheaders=c_shadow 
3592         ;;
3593    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3594         ;;
3595   esac
3596 else
3597   enable_cheaders=c_std
3598 fi
3599
3600   echo "$ac_t""$enable_cheaders" 1>&6
3601
3602     case "$enable_cheaders" in
3603     c_shadow) 
3604         CSHADOW_FLAGS="-fno-builtin"
3605         C_INCLUDE_DIR='${top_srcdir}/include/c_shadow'
3606         cat >> confdefs.h <<\EOF
3607 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3608 EOF
3609
3610         ;;
3611     c_std)   
3612         CSHADOW_FLAGS=""
3613         C_INCLUDE_DIR='${top_srcdir}/include/c_std'
3614         ;;
3615     c)   
3616         CSHADOW_FLAGS=""
3617         C_INCLUDE_DIR='${top_srcdir}/include/c'
3618         ;;
3619   esac
3620
3621   
3622   
3623   
3624
3625 if test "$enable_cheaders" = c_shadow; then
3626   GLIBCPP_USE_CSHADOW_TRUE=
3627   GLIBCPP_USE_CSHADOW_FALSE='#'
3628 else
3629   GLIBCPP_USE_CSHADOW_TRUE='#'
3630   GLIBCPP_USE_CSHADOW_FALSE=
3631 fi
3632
3633
3634   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3635 echo "configure:3636: checking for thread model used by GCC" >&5
3636   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3637   echo "$ac_t""$target_thread_file" 1>&6
3638
3639   
3640   
3641   
3642   if test $target_thread_file != single; then
3643     cat >> confdefs.h <<\EOF
3644 #define HAVE_GTHR_DEFAULT 1
3645 EOF
3646
3647     cat >> confdefs.h <<\EOF
3648 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3649 EOF
3650
3651   fi
3652   
3653
3654 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3655 if test "${enable_cxx_flags+set}" = set; then
3656   enableval="$enable_cxx_flags"
3657   case "x$enableval" in
3658  xyes)   
3659         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3660  xno|x)  
3661         enable_cxx_flags='' ;;
3662  *)      
3663         enable_cxx_flags="$enableval" ;;
3664  esac
3665 else
3666   enable_cxx_flags='none'
3667 fi
3668
3669
3670 if test "$enable_cxx_flags" = "none"; then 
3671   enable_cxx_flags=''; 
3672 fi
3673
3674 if test -n "$enable_cxx_flags"; then
3675     for f in $enable_cxx_flags; do
3676         case "$f" in
3677             -fhonor-std)  ;;
3678             -*)  ;;
3679             *)   # and we're trying to pass /what/ exactly?
3680                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3681         esac
3682     done
3683 fi
3684 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3685
3686
3687
3688   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3689 echo "configure:3690: checking for exception model to use" >&5
3690   
3691   ac_ext=C
3692 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3693 ac_cpp='$CXXCPP $CPPFLAGS'
3694 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3695 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3696 cross_compiling=$ac_cv_prog_cxx_cross
3697
3698   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3699 if test "${enable_sjlj_exceptions+set}" = set; then
3700   enableval="$enable_sjlj_exceptions"
3701   :
3702 else
3703                        cat > conftest.$ac_ext << EOF
3704 #line 3705 "configure"
3705 struct S { ~S(); };
3706 void bar();
3707 void foo()
3708 {
3709   S s;
3710   bar();
3711 }
3712 EOF
3713    old_CXXFLAGS="$CXXFLAGS"  
3714    CXXFLAGS=-S
3715    if { (eval echo configure:3716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3716      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3717        enable_sjlj_exceptions=yes
3718      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3719        enable_sjlj_exceptions=no
3720      fi
3721    fi
3722    CXXFLAGS="$old_CXXFLAGS"
3723    rm -f conftest*
3724 fi
3725
3726    if test x$enable_sjlj_exceptions = xyes; then
3727      cat >> confdefs.h <<\EOF
3728 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3729 EOF
3730
3731      ac_exception_model_name=sjlj
3732    elif test x$enable_sjlj_exceptions = xno; then
3733      ac_exception_model_name="call frame"
3734    else
3735      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3736    fi
3737    ac_ext=c
3738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3742 cross_compiling=$ac_cv_prog_cc_cross
3743
3744    echo "$ac_t""$ac_exception_model_name" 1>&6
3745
3746
3747 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3748
3749   # We are being configured with some form of cross compiler.
3750   # mknumeric_limits may not work correctly, either because the
3751   # compiler may not run on this machine, may not be able to link
3752   # executables, or may produce executables we can't run on this
3753   # machine.
3754   xcompiling=1
3755
3756   # If Canadian cross, then don't pick up tools from the build
3757   # directory.
3758   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
3759     CANADIAN=yes
3760   else
3761     CANADIAN=no
3762   fi
3763
3764   case "$target_alias" in
3765     *-linux*)
3766         # Construct linux crosses by hand, eliminating bits that need ld...
3767         # Check for available headers.
3768         for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3769         machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
3770         float.h inttypes.h
3771 do
3772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3774 echo "configure:3775: checking for $ac_hdr" >&5
3775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3776   echo $ac_n "(cached) $ac_c" 1>&6
3777 else
3778   cat > conftest.$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3781 #include <$ac_hdr>
3782 EOF
3783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3784 { (eval echo configure:3785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3786 if test -z "$ac_err"; then
3787   rm -rf conftest*
3788   eval "ac_cv_header_$ac_safe=yes"
3789 else
3790   echo "$ac_err" >&5
3791   echo "configure: failed program was:" >&5
3792   cat conftest.$ac_ext >&5
3793   rm -rf conftest*
3794   eval "ac_cv_header_$ac_safe=no"
3795 fi
3796 rm -f conftest*
3797 fi
3798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3799   echo "$ac_t""yes" 1>&6
3800     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3801   cat >> confdefs.h <<EOF
3802 #define $ac_tr_hdr 1
3803 EOF
3804  
3805 else
3806   echo "$ac_t""no" 1>&6
3807 fi
3808 done
3809
3810
3811         # GLIBCPP_CHECK_COMPILER_FEATURES
3812         SECTION_FLAGS='-ffunction-sections -fdata-sections'
3813         
3814         
3815   # If we're not using GNU ld, then there's no point in even trying these
3816   # tests.  Check for that first.  We should have already tested for gld
3817   # by now (in libtool), but require it now just to be safe...
3818   SECTION_LDFLAGS=''
3819   OPT_LDFLAGS=''
3820   
3821
3822   # Set --gc-sections.
3823   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3824     # GNU ld it is!  Joy and bunny rabbits!
3825
3826     # All these tests are for C++; save the language and the compiler flags.
3827     # Need to do this so that g++ won't try to link in libstdc++
3828     ac_test_CFLAGS="${CFLAGS+set}"
3829     ac_save_CFLAGS="$CFLAGS"
3830     CFLAGS='-x c++  -Wl,--gc-sections'
3831
3832     # Check for -Wl,--gc-sections
3833     # XXX This test is broken at the moment, as symbols required for
3834     # linking are now in libsupc++ (not built yet.....). In addition, 
3835     # this test has cored on solaris in the past. In addition,
3836     # --gc-sections doesn't really work at the moment (keeps on discarding
3837     # used sections, first .eh_frame and now some of the glibc sections for
3838     # iconv). Bzzzzt. Thanks for playing, maybe next time.
3839     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3840 echo "configure:3841: checking for ld that supports -Wl,--gc-sections" >&5
3841     if test "$cross_compiling" = yes; then
3842   ac_sectionLDflags=yes
3843 else
3844   cat > conftest.$ac_ext <<EOF
3845 #line 3846 "configure"
3846 #include "confdefs.h"
3847
3848      int main(void) 
3849      {
3850        try { throw 1; }
3851        catch (...) { };
3852        return 0;
3853      }
3854     
3855 EOF
3856 if { (eval echo configure:3857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3857 then
3858   ac_sectionLDflags=yes
3859 else
3860   echo "configure: failed program was:" >&5
3861   cat conftest.$ac_ext >&5
3862   rm -fr conftest*
3863   ac_sectionLFflags=no
3864 fi
3865 rm -fr conftest*
3866 fi
3867
3868     if test "$ac_test_CFLAGS" = set; then
3869       CFLAGS="$ac_save_CFLAGS"
3870     else
3871       # this is the suspicious part
3872       CFLAGS=''
3873     fi
3874     if test "$ac_sectionLDflags" = "yes"; then
3875       SECTION_LDFLAGS='-Wl,--gc-sections'
3876     fi
3877     echo "$ac_t""$ac_sectionLDflags" 1>&6
3878   fi
3879
3880   # Set linker optimization flags.
3881   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
3882      test x"$enable_debug" = x"no"; then
3883     OPT_LDFLAGS='-Wl,-O1'
3884   fi
3885
3886   
3887   
3888
3889         # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3890         # GLIBCPP_CHECK_MATH_SUPPORT
3891         cat >> confdefs.h <<\EOF
3892 #define HAVE_ACOSF 1
3893 EOF
3894
3895         cat >> confdefs.h <<\EOF
3896 #define HAVE_ASINF 1
3897 EOF
3898
3899         cat >> confdefs.h <<\EOF
3900 #define HAVE_ATAN2F 1
3901 EOF
3902
3903         cat >> confdefs.h <<\EOF
3904 #define HAVE_ATANF 1
3905 EOF
3906
3907         cat >> confdefs.h <<\EOF
3908 #define HAVE_CEILF 1
3909 EOF
3910
3911         cat >> confdefs.h <<\EOF
3912 #define HAVE_COPYSIGN 1
3913 EOF
3914
3915         cat >> confdefs.h <<\EOF
3916 #define HAVE_COPYSIGNF 1
3917 EOF
3918
3919         cat >> confdefs.h <<\EOF
3920 #define HAVE_COSF 1
3921 EOF
3922
3923         cat >> confdefs.h <<\EOF
3924 #define HAVE_COSHF 1
3925 EOF
3926
3927         cat >> confdefs.h <<\EOF
3928 #define HAVE_EXPF 1
3929 EOF
3930
3931         cat >> confdefs.h <<\EOF
3932 #define HAVE_FABSF 1
3933 EOF
3934
3935         cat >> confdefs.h <<\EOF
3936 #define HAVE_FINITE 1
3937 EOF
3938
3939         cat >> confdefs.h <<\EOF
3940 #define HAVE_FINITEF 1
3941 EOF
3942
3943         cat >> confdefs.h <<\EOF
3944 #define HAVE_FLOORF 1
3945 EOF
3946
3947         cat >> confdefs.h <<\EOF
3948 #define HAVE_FMODF 1
3949 EOF
3950
3951         cat >> confdefs.h <<\EOF
3952 #define HAVE_FREXPF 1
3953 EOF
3954
3955         cat >> confdefs.h <<\EOF
3956 #define HAVE_ISINF 1
3957 EOF
3958
3959         cat >> confdefs.h <<\EOF
3960 #define HAVE_ISINFF 1
3961 EOF
3962
3963         cat >> confdefs.h <<\EOF
3964 #define HAVE_ISNAN 1
3965 EOF
3966
3967         cat >> confdefs.h <<\EOF
3968 #define HAVE_ISNANF 1
3969 EOF
3970
3971         cat >> confdefs.h <<\EOF
3972 #define HAVE_LDEXPF 1
3973 EOF
3974
3975         cat >> confdefs.h <<\EOF
3976 #define HAVE_LOG10F 1
3977 EOF
3978
3979         cat >> confdefs.h <<\EOF
3980 #define HAVE_LOGF 1
3981 EOF
3982
3983         cat >> confdefs.h <<\EOF
3984 #define HAVE_MODFF 1
3985 EOF
3986
3987         cat >> confdefs.h <<\EOF
3988 #define HAVE_POWF 1
3989 EOF
3990
3991         cat >> confdefs.h <<\EOF
3992 #define HAVE_SINCOS 1
3993 EOF
3994
3995         cat >> confdefs.h <<\EOF
3996 #define HAVE_SINCOSF 1
3997 EOF
3998
3999         cat >> confdefs.h <<\EOF
4000 #define HAVE_SINF 1
4001 EOF
4002
4003         cat >> confdefs.h <<\EOF
4004 #define HAVE_SINHF 1
4005 EOF
4006
4007         cat >> confdefs.h <<\EOF
4008 #define HAVE_SQRTF 1
4009 EOF
4010
4011         cat >> confdefs.h <<\EOF
4012 #define HAVE_TANF 1
4013 EOF
4014
4015         cat >> confdefs.h <<\EOF
4016 #define HAVE_TANHF 1
4017 EOF
4018
4019
4020         # At some point, we should differentiate between architectures
4021         # like x86, which have long double versions, and alpha/powerpc/etc.,
4022         # which don't. For the time being, punt.
4023         if test x"long_double_math_on_this_cpu" = x"yes"; then
4024           cat >> confdefs.h <<\EOF
4025 #define HAVE_ACOSL 1
4026 EOF
4027
4028           cat >> confdefs.h <<\EOF
4029 #define HAVE_ASINL 1
4030 EOF
4031
4032           cat >> confdefs.h <<\EOF
4033 #define HAVE_ATAN2L 1
4034 EOF
4035
4036           cat >> confdefs.h <<\EOF
4037 #define HAVE_ATANL 1
4038 EOF
4039
4040           cat >> confdefs.h <<\EOF
4041 #define HAVE_CEILL 1
4042 EOF
4043
4044           cat >> confdefs.h <<\EOF
4045 #define HAVE_COPYSIGNL 1
4046 EOF
4047
4048           cat >> confdefs.h <<\EOF
4049 #define HAVE_COSL 1
4050 EOF
4051
4052           cat >> confdefs.h <<\EOF
4053 #define HAVE_COSHL 1
4054 EOF
4055
4056           cat >> confdefs.h <<\EOF
4057 #define HAVE_EXPL 1
4058 EOF
4059
4060           cat >> confdefs.h <<\EOF
4061 #define HAVE_FABSL 1
4062 EOF
4063
4064           cat >> confdefs.h <<\EOF
4065 #define HAVE_FINITEL 1
4066 EOF
4067
4068           cat >> confdefs.h <<\EOF
4069 #define HAVE_FLOORL 1
4070 EOF
4071
4072           cat >> confdefs.h <<\EOF
4073 #define HAVE_FMODL 1
4074 EOF
4075
4076           cat >> confdefs.h <<\EOF
4077 #define HAVE_FREXPL 1
4078 EOF
4079
4080           cat >> confdefs.h <<\EOF
4081 #define HAVE_ISINFL 1
4082 EOF
4083
4084           cat >> confdefs.h <<\EOF
4085 #define HAVE_ISNANL 1
4086 EOF
4087
4088           cat >> confdefs.h <<\EOF
4089 #define HAVE_LDEXPL 1
4090 EOF
4091
4092           cat >> confdefs.h <<\EOF
4093 #define HAVE_LOG10L 1
4094 EOF
4095
4096           cat >> confdefs.h <<\EOF
4097 #define HAVE_LOGL 1
4098 EOF
4099
4100           cat >> confdefs.h <<\EOF
4101 #define HAVE_MODFL 1
4102 EOF
4103
4104           cat >> confdefs.h <<\EOF
4105 #define HAVE_POWL 1
4106 EOF
4107
4108           cat >> confdefs.h <<\EOF
4109 #define HAVE_SINCOSL 1
4110 EOF
4111
4112           cat >> confdefs.h <<\EOF
4113 #define HAVE_SINL 1
4114 EOF
4115
4116           cat >> confdefs.h <<\EOF
4117 #define HAVE_SINHL 1
4118 EOF
4119
4120           cat >> confdefs.h <<\EOF
4121 #define HAVE_SQRTL 1
4122 EOF
4123
4124           cat >> confdefs.h <<\EOF
4125 #define HAVE_TANL 1
4126 EOF
4127
4128           cat >> confdefs.h <<\EOF
4129 #define HAVE_TANHL 1
4130 EOF
4131
4132         fi
4133         
4134     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4135 echo "configure:4136: checking for main in -lm" >&5
4136 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4138   echo $ac_n "(cached) $ac_c" 1>&6
4139 else
4140   ac_save_LIBS="$LIBS"
4141 LIBS="-lm  $LIBS"
4142 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4145
4146 int main() {
4147 main()
4148 ; return 0; }
4149 EOF
4150 if { (eval echo configure:4151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4151   rm -rf conftest*
4152   eval "ac_cv_lib_$ac_lib_var=yes"
4153 else
4154   echo "configure: failed program was:" >&5
4155   cat conftest.$ac_ext >&5
4156   rm -rf conftest*
4157   eval "ac_cv_lib_$ac_lib_var=no"
4158 fi
4159 rm -f conftest*
4160 LIBS="$ac_save_LIBS"
4161
4162 fi
4163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4164   echo "$ac_t""yes" 1>&6
4165     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4166     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4167   cat >> confdefs.h <<EOF
4168 #define $ac_tr_lib 1
4169 EOF
4170
4171   LIBS="-lm $LIBS"
4172
4173 else
4174   echo "$ac_t""no" 1>&6
4175 fi
4176
4177   for ac_func in nan hypot hypotf copysignf
4178 do
4179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4180 echo "configure:4181: checking for $ac_func" >&5
4181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4182   echo $ac_n "(cached) $ac_c" 1>&6
4183 else
4184   cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 /* System header to define __stub macros and hopefully few prototypes,
4188     which can conflict with char $ac_func(); below.  */
4189 #include <assert.h>
4190 /* Override any gcc2 internal prototype to avoid an error.  */
4191 /* We use char because int might match the return type of a gcc2
4192     builtin and then its argument prototype would still apply.  */
4193 char $ac_func();
4194
4195 int main() {
4196
4197 /* The GNU C library defines this for functions which it implements
4198     to always fail with ENOSYS.  Some functions are actually named
4199     something starting with __ and the normal name is an alias.  */
4200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4201 choke me
4202 #else
4203 $ac_func();
4204 #endif
4205
4206 ; return 0; }
4207 EOF
4208 if { (eval echo configure:4209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4209   rm -rf conftest*
4210   eval "ac_cv_func_$ac_func=yes"
4211 else
4212   echo "configure: failed program was:" >&5
4213   cat conftest.$ac_ext >&5
4214   rm -rf conftest*
4215   eval "ac_cv_func_$ac_func=no"
4216 fi
4217 rm -f conftest*
4218 fi
4219
4220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4221   echo "$ac_t""yes" 1>&6
4222     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4223   cat >> confdefs.h <<EOF
4224 #define $ac_tr_func 1
4225 EOF
4226  
4227 else
4228   echo "$ac_t""no" 1>&6
4229 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4230 fi
4231 done
4232
4233
4234
4235           USE_COMPLEX_LONG_DOUBLE=no
4236   if test x$ac_cv_func_atan2l = x"yes" &&
4237      test x$ac_cv_func_copysignl = x"yes"; then
4238     USE_COMPLEX_LONG_DOUBLE=yes
4239     for ac_func in hypotl signbitl
4240 do
4241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4242 echo "configure:4243: checking for $ac_func" >&5
4243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4244   echo $ac_n "(cached) $ac_c" 1>&6
4245 else
4246   cat > conftest.$ac_ext <<EOF
4247 #line 4248 "configure"
4248 #include "confdefs.h"
4249 /* System header to define __stub macros and hopefully few prototypes,
4250     which can conflict with char $ac_func(); below.  */
4251 #include <assert.h>
4252 /* Override any gcc2 internal prototype to avoid an error.  */
4253 /* We use char because int might match the return type of a gcc2
4254     builtin and then its argument prototype would still apply.  */
4255 char $ac_func();
4256
4257 int main() {
4258
4259 /* The GNU C library defines this for functions which it implements
4260     to always fail with ENOSYS.  Some functions are actually named
4261     something starting with __ and the normal name is an alias.  */
4262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4263 choke me
4264 #else
4265 $ac_func();
4266 #endif
4267
4268 ; return 0; }
4269 EOF
4270 if { (eval echo configure:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4271   rm -rf conftest*
4272   eval "ac_cv_func_$ac_func=yes"
4273 else
4274   echo "configure: failed program was:" >&5
4275   cat conftest.$ac_ext >&5
4276   rm -rf conftest*
4277   eval "ac_cv_func_$ac_func=no"
4278 fi
4279 rm -f conftest*
4280 fi
4281
4282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4283   echo "$ac_t""yes" 1>&6
4284     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4285   cat >> confdefs.h <<EOF
4286 #define $ac_tr_func 1
4287 EOF
4288  
4289 else
4290   echo "$ac_t""no" 1>&6
4291 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4292 fi
4293 done
4294
4295
4296   fi
4297
4298   
4299
4300         
4301
4302       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4303 echo "configure:4304: checking for mbstate_t" >&5
4304   cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4307 #include <wchar.h>
4308 int main() {
4309 mbstate_t teststate;
4310 ; return 0; }
4311 EOF
4312 if { (eval echo configure:4313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4313   rm -rf conftest*
4314   have_mbstate_t=yes
4315 else
4316   echo "configure: failed program was:" >&5
4317   cat conftest.$ac_ext >&5
4318   rm -rf conftest*
4319   have_mbstate_t=no
4320 fi
4321 rm -f conftest*
4322   echo "$ac_t""$have_mbstate_t" 1>&6
4323   if test x"$have_mbstate_t" = xyes; then
4324     cat >> confdefs.h <<\EOF
4325 #define HAVE_MBSTATE_T 1
4326 EOF
4327
4328   fi
4329
4330     for ac_hdr in wchar.h
4331 do
4332 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4334 echo "configure:4335: checking for $ac_hdr" >&5
4335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4336   echo $ac_n "(cached) $ac_c" 1>&6
4337 else
4338   cat > conftest.$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4341 #include <$ac_hdr>
4342 EOF
4343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4344 { (eval echo configure:4345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4346 if test -z "$ac_err"; then
4347   rm -rf conftest*
4348   eval "ac_cv_header_$ac_safe=yes"
4349 else
4350   echo "$ac_err" >&5
4351   echo "configure: failed program was:" >&5
4352   cat conftest.$ac_ext >&5
4353   rm -rf conftest*
4354   eval "ac_cv_header_$ac_safe=no"
4355 fi
4356 rm -f conftest*
4357 fi
4358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4359   echo "$ac_t""yes" 1>&6
4360     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4361   cat >> confdefs.h <<EOF
4362 #define $ac_tr_hdr 1
4363 EOF
4364  ac_has_wchar_h=yes
4365 else
4366   echo "$ac_t""no" 1>&6
4367 ac_has_wchar_h=no
4368 fi
4369 done
4370
4371   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4372 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4373 echo "configure:4374: checking for wctype.h" >&5
4374 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4375   echo $ac_n "(cached) $ac_c" 1>&6
4376 else
4377   cat > conftest.$ac_ext <<EOF
4378 #line 4379 "configure"
4379 #include "confdefs.h"
4380 #include <wctype.h>
4381 EOF
4382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4383 { (eval echo configure:4384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4385 if test -z "$ac_err"; then
4386   rm -rf conftest*
4387   eval "ac_cv_header_$ac_safe=yes"
4388 else
4389   echo "$ac_err" >&5
4390   echo "configure: failed program was:" >&5
4391   cat conftest.$ac_ext >&5
4392   rm -rf conftest*
4393   eval "ac_cv_header_$ac_safe=no"
4394 fi
4395 rm -f conftest*
4396 fi
4397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4398   echo "$ac_t""yes" 1>&6
4399   ac_has_wctype_h=yes
4400 else
4401   echo "$ac_t""no" 1>&6
4402 ac_has_wctype_h=no
4403 fi
4404
4405   
4406     if test x"$ac_has_wchar_h" = xyes &&
4407      test x"$ac_has_wctype_h" = xyes &&
4408      test x"$enable_c_mbchar" != xno; then
4409       
4410             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4411 echo "configure:4412: checking for WCHAR_MIN and WCHAR_MAX" >&5
4412     cat > conftest.$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4415 #include <wchar.h>
4416 int main() {
4417 int i = WCHAR_MIN; int j = WCHAR_MAX;
4418 ; return 0; }
4419 EOF
4420 if { (eval echo configure:4421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4421   rm -rf conftest*
4422   has_wchar_minmax=yes
4423 else
4424   echo "configure: failed program was:" >&5
4425   cat conftest.$ac_ext >&5
4426   rm -rf conftest*
4427   has_wchar_minmax=no
4428 fi
4429 rm -f conftest*
4430     echo "$ac_t""$has_wchar_minmax" 1>&6
4431     
4432             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4433 echo "configure:4434: checking for WEOF" >&5
4434     cat > conftest.$ac_ext <<EOF
4435 #line 4436 "configure"
4436 #include "confdefs.h"
4437
4438       #include <wchar.h>
4439       #include <stddef.h>
4440 int main() {
4441 wint_t i = WEOF;
4442 ; return 0; }
4443 EOF
4444 if { (eval echo configure:4445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4445   rm -rf conftest*
4446   has_weof=yes
4447 else
4448   echo "configure: failed program was:" >&5
4449   cat conftest.$ac_ext >&5
4450   rm -rf conftest*
4451   has_weof=no
4452 fi
4453 rm -f conftest*
4454     echo "$ac_t""$has_weof" 1>&6
4455   
4456         ac_wfuncs=yes
4457     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4458 do
4459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4460 echo "configure:4461: checking for $ac_func" >&5
4461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4462   echo $ac_n "(cached) $ac_c" 1>&6
4463 else
4464   cat > conftest.$ac_ext <<EOF
4465 #line 4466 "configure"
4466 #include "confdefs.h"
4467 /* System header to define __stub macros and hopefully few prototypes,
4468     which can conflict with char $ac_func(); below.  */
4469 #include <assert.h>
4470 /* Override any gcc2 internal prototype to avoid an error.  */
4471 /* We use char because int might match the return type of a gcc2
4472     builtin and then its argument prototype would still apply.  */
4473 char $ac_func();
4474
4475 int main() {
4476
4477 /* The GNU C library defines this for functions which it implements
4478     to always fail with ENOSYS.  Some functions are actually named
4479     something starting with __ and the normal name is an alias.  */
4480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4481 choke me
4482 #else
4483 $ac_func();
4484 #endif
4485
4486 ; return 0; }
4487 EOF
4488 if { (eval echo configure:4489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4489   rm -rf conftest*
4490   eval "ac_cv_func_$ac_func=yes"
4491 else
4492   echo "configure: failed program was:" >&5
4493   cat conftest.$ac_ext >&5
4494   rm -rf conftest*
4495   eval "ac_cv_func_$ac_func=no"
4496 fi
4497 rm -f conftest*
4498 fi
4499
4500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4501   echo "$ac_t""yes" 1>&6
4502     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4503   cat >> confdefs.h <<EOF
4504 #define $ac_tr_func 1
4505 EOF
4506  
4507 else
4508   echo "$ac_t""no" 1>&6
4509 \
4510     ac_wfuncs=no
4511 fi
4512 done
4513
4514   
4515         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4516     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4517     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4518     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4519     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4520     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4521 do
4522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4523 echo "configure:4524: checking for $ac_func" >&5
4524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4525   echo $ac_n "(cached) $ac_c" 1>&6
4526 else
4527   cat > conftest.$ac_ext <<EOF
4528 #line 4529 "configure"
4529 #include "confdefs.h"
4530 /* System header to define __stub macros and hopefully few prototypes,
4531     which can conflict with char $ac_func(); below.  */
4532 #include <assert.h>
4533 /* Override any gcc2 internal prototype to avoid an error.  */
4534 /* We use char because int might match the return type of a gcc2
4535     builtin and then its argument prototype would still apply.  */
4536 char $ac_func();
4537
4538 int main() {
4539
4540 /* The GNU C library defines this for functions which it implements
4541     to always fail with ENOSYS.  Some functions are actually named
4542     something starting with __ and the normal name is an alias.  */
4543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4544 choke me
4545 #else
4546 $ac_func();
4547 #endif
4548
4549 ; return 0; }
4550 EOF
4551 if { (eval echo configure:4552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4552   rm -rf conftest*
4553   eval "ac_cv_func_$ac_func=yes"
4554 else
4555   echo "configure: failed program was:" >&5
4556   cat conftest.$ac_ext >&5
4557   rm -rf conftest*
4558   eval "ac_cv_func_$ac_func=no"
4559 fi
4560 rm -f conftest*
4561 fi
4562
4563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4564   echo "$ac_t""yes" 1>&6
4565     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4566   cat >> confdefs.h <<EOF
4567 #define $ac_tr_func 1
4568 EOF
4569  
4570 else
4571   echo "$ac_t""no" 1>&6
4572 \
4573     ac_wfuncs=no
4574 fi
4575 done
4576
4577
4578     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4579 echo "configure:4580: checking for ISO C99 wchar_t support" >&5
4580     if test x"$has_weof" = xyes &&
4581        test x"$has_wchar_minmax" = xyes &&
4582        test x"$ac_wfuncs" = xyes; then
4583       ac_isoC99_wchar_t=yes
4584     else
4585       ac_isoC99_wchar_t=no
4586     fi
4587     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4588   
4589             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4590 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4591 echo "configure:4592: checking for iconv.h" >&5
4592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4593   echo $ac_n "(cached) $ac_c" 1>&6
4594 else
4595   cat > conftest.$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4598 #include <iconv.h>
4599 EOF
4600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4601 { (eval echo configure:4602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4603 if test -z "$ac_err"; then
4604   rm -rf conftest*
4605   eval "ac_cv_header_$ac_safe=yes"
4606 else
4607   echo "$ac_err" >&5
4608   echo "configure: failed program was:" >&5
4609   cat conftest.$ac_ext >&5
4610   rm -rf conftest*
4611   eval "ac_cv_header_$ac_safe=no"
4612 fi
4613 rm -f conftest*
4614 fi
4615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4616   echo "$ac_t""yes" 1>&6
4617   ac_has_iconv_h=yes
4618 else
4619   echo "$ac_t""no" 1>&6
4620 ac_has_iconv_h=no
4621 fi
4622
4623     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4624 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4625 echo "configure:4626: checking for langinfo.h" >&5
4626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4627   echo $ac_n "(cached) $ac_c" 1>&6
4628 else
4629   cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4632 #include <langinfo.h>
4633 EOF
4634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4635 { (eval echo configure:4636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4637 if test -z "$ac_err"; then
4638   rm -rf conftest*
4639   eval "ac_cv_header_$ac_safe=yes"
4640 else
4641   echo "$ac_err" >&5
4642   echo "configure: failed program was:" >&5
4643   cat conftest.$ac_ext >&5
4644   rm -rf conftest*
4645   eval "ac_cv_header_$ac_safe=no"
4646 fi
4647 rm -f conftest*
4648 fi
4649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4650   echo "$ac_t""yes" 1>&6
4651   ac_has_langinfo_h=yes
4652 else
4653   echo "$ac_t""no" 1>&6
4654 ac_has_langinfo_h=no
4655 fi
4656
4657
4658         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4659 echo "configure:4660: checking for iconv in -liconv" >&5
4660 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4661 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4662   echo $ac_n "(cached) $ac_c" 1>&6
4663 else
4664   ac_save_LIBS="$LIBS"
4665 LIBS="-liconv  $LIBS"
4666 cat > conftest.$ac_ext <<EOF
4667 #line 4668 "configure"
4668 #include "confdefs.h"
4669 /* Override any gcc2 internal prototype to avoid an error.  */
4670 /* We use char because int might match the return type of a gcc2
4671     builtin and then its argument prototype would still apply.  */
4672 char iconv();
4673
4674 int main() {
4675 iconv()
4676 ; return 0; }
4677 EOF
4678 if { (eval echo configure:4679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4679   rm -rf conftest*
4680   eval "ac_cv_lib_$ac_lib_var=yes"
4681 else
4682   echo "configure: failed program was:" >&5
4683   cat conftest.$ac_ext >&5
4684   rm -rf conftest*
4685   eval "ac_cv_lib_$ac_lib_var=no"
4686 fi
4687 rm -f conftest*
4688 LIBS="$ac_save_LIBS"
4689
4690 fi
4691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4692   echo "$ac_t""yes" 1>&6
4693   libiconv="-liconv"
4694 else
4695   echo "$ac_t""no" 1>&6
4696 fi
4697
4698     ac_save_LIBS="$LIBS"
4699     LIBS="$LIBS $libiconv"
4700
4701     for ac_func in iconv_open iconv_close iconv nl_langinfo
4702 do
4703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4704 echo "configure:4705: checking for $ac_func" >&5
4705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4706   echo $ac_n "(cached) $ac_c" 1>&6
4707 else
4708   cat > conftest.$ac_ext <<EOF
4709 #line 4710 "configure"
4710 #include "confdefs.h"
4711 /* System header to define __stub macros and hopefully few prototypes,
4712     which can conflict with char $ac_func(); below.  */
4713 #include <assert.h>
4714 /* Override any gcc2 internal prototype to avoid an error.  */
4715 /* We use char because int might match the return type of a gcc2
4716     builtin and then its argument prototype would still apply.  */
4717 char $ac_func();
4718
4719 int main() {
4720
4721 /* The GNU C library defines this for functions which it implements
4722     to always fail with ENOSYS.  Some functions are actually named
4723     something starting with __ and the normal name is an alias.  */
4724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4725 choke me
4726 #else
4727 $ac_func();
4728 #endif
4729
4730 ; return 0; }
4731 EOF
4732 if { (eval echo configure:4733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4733   rm -rf conftest*
4734   eval "ac_cv_func_$ac_func=yes"
4735 else
4736   echo "configure: failed program was:" >&5
4737   cat conftest.$ac_ext >&5
4738   rm -rf conftest*
4739   eval "ac_cv_func_$ac_func=no"
4740 fi
4741 rm -f conftest*
4742 fi
4743
4744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4745   echo "$ac_t""yes" 1>&6
4746     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4747   cat >> confdefs.h <<EOF
4748 #define $ac_tr_func 1
4749 EOF
4750  \
4751     ac_XPG2funcs=yes
4752 else
4753   echo "$ac_t""no" 1>&6
4754 ac_XPG2funcs=no
4755 fi
4756 done
4757
4758   
4759     LIBS="$ac_save_LIBS"
4760
4761     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4762 echo "configure:4763: checking for XPG2 wchar_t support" >&5
4763     if test x"$ac_has_iconv_h" = xyes &&
4764        test x"$ac_has_langinfo_h" = xyes &&
4765        test x"$ac_XPG2funcs" = xyes; then
4766       ac_XPG2_wchar_t=yes
4767     else
4768       ac_XPG2_wchar_t=no
4769     fi
4770     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4771   
4772             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4773 echo "configure:4774: checking for enabled wchar_t specializations" >&5
4774     if test x"$ac_isoC99_wchar_t" = xyes &&
4775        test x"$ac_XPG2_wchar_t" = xyes; then
4776       cat >> confdefs.h <<\EOF
4777 #define _GLIBCPP_USE_WCHAR_T 1
4778 EOF
4779
4780       echo "$ac_t"""yes"" 1>&6
4781     else
4782       echo "$ac_t"""no"" 1>&6
4783     fi
4784   else
4785         echo "configure: warning: wchar_t support disabled." 1>&2
4786   fi
4787
4788         os_include_dir="config/os/gnu-linux"
4789         # GLIBCPP_CHECK_STDLIB_SUPPORT
4790         cat >> confdefs.h <<\EOF
4791 #define HAVE_STRTOF 1
4792 EOF
4793         
4794         cat >> confdefs.h <<\EOF
4795 #define HAVE_STRTOLD 1
4796 EOF
4797         
4798         # AC_FUNC_MMAP
4799         cat >> confdefs.h <<\EOF
4800 #define HAVE_MMAP 1
4801 EOF
4802
4803         ;;
4804     *)
4805         # We assume newlib.  This lets us hard-code the functions we know
4806         # we'll have.
4807         cat >> confdefs.h <<\EOF
4808 #define HAVE_FINITE 1
4809 EOF
4810
4811         cat >> confdefs.h <<\EOF
4812 #define HAVE_ISNAN 1
4813 EOF
4814
4815         cat >> confdefs.h <<\EOF
4816 #define HAVE_ISNANF 1
4817 EOF
4818
4819         cat >> confdefs.h <<\EOF
4820 #define HAVE_ISINF 1
4821 EOF
4822
4823         cat >> confdefs.h <<\EOF
4824 #define HAVE_ISINFF 1
4825 EOF
4826
4827
4828         os_include_dir="config/os/newlib"
4829
4830         # need to check for faster f versions of math functions, ie sinf?
4831         ;;
4832   esac
4833 else
4834
4835   # We are being configured natively. We can do more elaborate tests
4836   # that include AC_TRY_COMPILE now, as the linker is assumed to be
4837   # working.
4838   xcompiling=0
4839   CANADIAN=no
4840
4841   # Check for available headers.
4842   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
4843   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
4844 do
4845 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4846 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4847 echo "configure:4848: checking for $ac_hdr" >&5
4848 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4849   echo $ac_n "(cached) $ac_c" 1>&6
4850 else
4851   cat > conftest.$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4854 #include <$ac_hdr>
4855 EOF
4856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4857 { (eval echo configure:4858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4859 if test -z "$ac_err"; then
4860   rm -rf conftest*
4861   eval "ac_cv_header_$ac_safe=yes"
4862 else
4863   echo "$ac_err" >&5
4864   echo "configure: failed program was:" >&5
4865   cat conftest.$ac_ext >&5
4866   rm -rf conftest*
4867   eval "ac_cv_header_$ac_safe=no"
4868 fi
4869 rm -f conftest*
4870 fi
4871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4872   echo "$ac_t""yes" 1>&6
4873     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4874   cat >> confdefs.h <<EOF
4875 #define $ac_tr_hdr 1
4876 EOF
4877  
4878 else
4879   echo "$ac_t""no" 1>&6
4880 fi
4881 done
4882
4883
4884   
4885   # All these tests are for C++; save the language and the compiler flags.
4886   # The CXXFLAGS thing is suspicious, but based on similar bits previously
4887   # found in GLIBCPP_CONFIGURE.
4888   
4889   ac_ext=C
4890 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4891 ac_cpp='$CXXCPP $CPPFLAGS'
4892 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4893 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4894 cross_compiling=$ac_cv_prog_cxx_cross
4895
4896   ac_test_CXXFLAGS="${CXXFLAGS+set}"
4897   ac_save_CXXFLAGS="$CXXFLAGS"
4898
4899   # Check for maintainer-mode bits.
4900   if test x"$USE_MAINTAINER_MODE" = xno; then
4901     WERROR=''
4902   else
4903     WERROR='-Werror'
4904   fi
4905
4906   # Check for -ffunction-sections -fdata-sections
4907   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
4908 echo "configure:4909: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
4909   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
4910   cat > conftest.$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4913
4914 int main() {
4915 int foo;
4916   
4917 ; return 0; }
4918 EOF
4919 if { (eval echo configure:4920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4920   rm -rf conftest*
4921   ac_fdsections=yes
4922 else
4923   echo "configure: failed program was:" >&5
4924   cat conftest.$ac_ext >&5
4925   rm -rf conftest*
4926   ac_fdsections=no
4927 fi
4928 rm -f conftest*
4929   if test "$ac_test_CXXFLAGS" = set; then
4930     CXXFLAGS="$ac_save_CXXFLAGS"
4931   else
4932     # this is the suspicious part
4933     CXXFLAGS=''
4934   fi
4935   if test x"$ac_fdsections" = x"yes" &&
4936      test x"$enable_debug" = x"no"; then
4937     SECTION_FLAGS='-ffunction-sections -fdata-sections'
4938   fi
4939   echo "$ac_t""$ac_fdsections" 1>&6
4940
4941   ac_ext=c
4942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4943 ac_cpp='$CPP $CPPFLAGS'
4944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4945 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4946 cross_compiling=$ac_cv_prog_cc_cross
4947
4948   
4949   
4950
4951   
4952   # If we're not using GNU ld, then there's no point in even trying these
4953   # tests.  Check for that first.  We should have already tested for gld
4954   # by now (in libtool), but require it now just to be safe...
4955   SECTION_LDFLAGS=''
4956   OPT_LDFLAGS=''
4957   
4958
4959   # Set --gc-sections.
4960   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4961     # GNU ld it is!  Joy and bunny rabbits!
4962
4963     # All these tests are for C++; save the language and the compiler flags.
4964     # Need to do this so that g++ won't try to link in libstdc++
4965     ac_test_CFLAGS="${CFLAGS+set}"
4966     ac_save_CFLAGS="$CFLAGS"
4967     CFLAGS='-x c++  -Wl,--gc-sections'
4968
4969     # Check for -Wl,--gc-sections
4970     # XXX This test is broken at the moment, as symbols required for
4971     # linking are now in libsupc++ (not built yet.....). In addition, 
4972     # this test has cored on solaris in the past. In addition,
4973     # --gc-sections doesn't really work at the moment (keeps on discarding
4974     # used sections, first .eh_frame and now some of the glibc sections for
4975     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4976     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4977 echo "configure:4978: checking for ld that supports -Wl,--gc-sections" >&5
4978     if test "$cross_compiling" = yes; then
4979   ac_sectionLDflags=yes
4980 else
4981   cat > conftest.$ac_ext <<EOF
4982 #line 4983 "configure"
4983 #include "confdefs.h"
4984
4985      int main(void) 
4986      {
4987        try { throw 1; }
4988        catch (...) { };
4989        return 0;
4990      }
4991     
4992 EOF
4993 if { (eval echo configure:4994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4994 then
4995   ac_sectionLDflags=yes
4996 else
4997   echo "configure: failed program was:" >&5
4998   cat conftest.$ac_ext >&5
4999   rm -fr conftest*
5000   ac_sectionLFflags=no
5001 fi
5002 rm -fr conftest*
5003 fi
5004
5005     if test "$ac_test_CFLAGS" = set; then
5006       CFLAGS="$ac_save_CFLAGS"
5007     else
5008       # this is the suspicious part
5009       CFLAGS=''
5010     fi
5011     if test "$ac_sectionLDflags" = "yes"; then
5012       SECTION_LDFLAGS='-Wl,--gc-sections'
5013     fi
5014     echo "$ac_t""$ac_sectionLDflags" 1>&6
5015   fi
5016
5017   # Set linker optimization flags.
5018   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5019      test x"$enable_debug" = x"no"; then
5020     OPT_LDFLAGS='-Wl,-O1'
5021   fi
5022
5023   
5024   
5025
5026   
5027       
5028   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5029 echo "configure:5030: checking for __builtin_abs declaration" >&5
5030   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5031     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5032   echo $ac_n "(cached) $ac_c" 1>&6
5033 else
5034   
5035       
5036       ac_ext=C
5037 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5038 ac_cpp='$CXXCPP $CPPFLAGS'
5039 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5040 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5041 cross_compiling=$ac_cv_prog_cxx_cross
5042
5043       cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5046 #include <math.h>
5047 int main() {
5048  __builtin_abs(0);
5049 ; return 0; }
5050 EOF
5051 if { (eval echo configure:5052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5052   rm -rf conftest*
5053   glibcpp_cv_func___builtin_abs_use=yes
5054 else
5055   echo "configure: failed program was:" >&5
5056   cat conftest.$ac_ext >&5
5057   rm -rf conftest*
5058   glibcpp_cv_func___builtin_abs_use=no
5059 fi
5060 rm -f conftest*
5061       ac_ext=c
5062 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5063 ac_cpp='$CPP $CPPFLAGS'
5064 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5065 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5066 cross_compiling=$ac_cv_prog_cc_cross
5067
5068     
5069 fi
5070
5071   fi
5072   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5073   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5074     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5075 echo "configure:5076: checking for __builtin_abs linkage" >&5
5076     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5077       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5078   echo $ac_n "(cached) $ac_c" 1>&6
5079 else
5080   
5081         cat > conftest.$ac_ext <<EOF
5082 #line 5083 "configure"
5083 #include "confdefs.h"
5084 #include <math.h>
5085 int main() {
5086  __builtin_abs(0);
5087 ; return 0; }
5088 EOF
5089 if { (eval echo configure:5090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5090   rm -rf conftest*
5091   glibcpp_cv_func___builtin_abs_link=yes
5092 else
5093   echo "configure: failed program was:" >&5
5094   cat conftest.$ac_ext >&5
5095   rm -rf conftest*
5096   glibcpp_cv_func___builtin_abs_link=no
5097 fi
5098 rm -f conftest*
5099       
5100 fi
5101
5102     fi
5103     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5104     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5105       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5106       cat >> confdefs.h <<EOF
5107 #define ${ac_tr_func} 1
5108 EOF
5109
5110     fi
5111   fi
5112
5113   
5114   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5115 echo "configure:5116: checking for __builtin_fabsf declaration" >&5
5116   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5117     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5118   echo $ac_n "(cached) $ac_c" 1>&6
5119 else
5120   
5121       
5122       ac_ext=C
5123 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5124 ac_cpp='$CXXCPP $CPPFLAGS'
5125 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5126 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5127 cross_compiling=$ac_cv_prog_cxx_cross
5128
5129       cat > conftest.$ac_ext <<EOF
5130 #line 5131 "configure"
5131 #include "confdefs.h"
5132 #include <math.h>
5133 int main() {
5134  __builtin_fabsf(0);
5135 ; return 0; }
5136 EOF
5137 if { (eval echo configure:5138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5138   rm -rf conftest*
5139   glibcpp_cv_func___builtin_fabsf_use=yes
5140 else
5141   echo "configure: failed program was:" >&5
5142   cat conftest.$ac_ext >&5
5143   rm -rf conftest*
5144   glibcpp_cv_func___builtin_fabsf_use=no
5145 fi
5146 rm -f conftest*
5147       ac_ext=c
5148 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5149 ac_cpp='$CPP $CPPFLAGS'
5150 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5151 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5152 cross_compiling=$ac_cv_prog_cc_cross
5153
5154     
5155 fi
5156
5157   fi
5158   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5159   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5160     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5161 echo "configure:5162: checking for __builtin_fabsf linkage" >&5
5162     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5163       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5164   echo $ac_n "(cached) $ac_c" 1>&6
5165 else
5166   
5167         cat > conftest.$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5170 #include <math.h>
5171 int main() {
5172  __builtin_fabsf(0);
5173 ; return 0; }
5174 EOF
5175 if { (eval echo configure:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5176   rm -rf conftest*
5177   glibcpp_cv_func___builtin_fabsf_link=yes
5178 else
5179   echo "configure: failed program was:" >&5
5180   cat conftest.$ac_ext >&5
5181   rm -rf conftest*
5182   glibcpp_cv_func___builtin_fabsf_link=no
5183 fi
5184 rm -f conftest*
5185       
5186 fi
5187
5188     fi
5189     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5190     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5191       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5192       cat >> confdefs.h <<EOF
5193 #define ${ac_tr_func} 1
5194 EOF
5195
5196     fi
5197   fi
5198
5199   
5200   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5201 echo "configure:5202: checking for __builtin_fabs declaration" >&5
5202   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5203     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5204   echo $ac_n "(cached) $ac_c" 1>&6
5205 else
5206   
5207       
5208       ac_ext=C
5209 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5210 ac_cpp='$CXXCPP $CPPFLAGS'
5211 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5212 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5213 cross_compiling=$ac_cv_prog_cxx_cross
5214
5215       cat > conftest.$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5218 #include <math.h>
5219 int main() {
5220  __builtin_fabs(0);
5221 ; return 0; }
5222 EOF
5223 if { (eval echo configure:5224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5224   rm -rf conftest*
5225   glibcpp_cv_func___builtin_fabs_use=yes
5226 else
5227   echo "configure: failed program was:" >&5
5228   cat conftest.$ac_ext >&5
5229   rm -rf conftest*
5230   glibcpp_cv_func___builtin_fabs_use=no
5231 fi
5232 rm -f conftest*
5233       ac_ext=c
5234 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5235 ac_cpp='$CPP $CPPFLAGS'
5236 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5237 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5238 cross_compiling=$ac_cv_prog_cc_cross
5239
5240     
5241 fi
5242
5243   fi
5244   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5245   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5246     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5247 echo "configure:5248: checking for __builtin_fabs linkage" >&5
5248     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5249       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5250   echo $ac_n "(cached) $ac_c" 1>&6
5251 else
5252   
5253         cat > conftest.$ac_ext <<EOF
5254 #line 5255 "configure"
5255 #include "confdefs.h"
5256 #include <math.h>
5257 int main() {
5258  __builtin_fabs(0);
5259 ; return 0; }
5260 EOF
5261 if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5262   rm -rf conftest*
5263   glibcpp_cv_func___builtin_fabs_link=yes
5264 else
5265   echo "configure: failed program was:" >&5
5266   cat conftest.$ac_ext >&5
5267   rm -rf conftest*
5268   glibcpp_cv_func___builtin_fabs_link=no
5269 fi
5270 rm -f conftest*
5271       
5272 fi
5273
5274     fi
5275     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5276     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5277       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5278       cat >> confdefs.h <<EOF
5279 #define ${ac_tr_func} 1
5280 EOF
5281
5282     fi
5283   fi
5284
5285   
5286   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5287 echo "configure:5288: checking for __builtin_fabsl declaration" >&5
5288   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5289     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5290   echo $ac_n "(cached) $ac_c" 1>&6
5291 else
5292   
5293       
5294       ac_ext=C
5295 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5296 ac_cpp='$CXXCPP $CPPFLAGS'
5297 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5298 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5299 cross_compiling=$ac_cv_prog_cxx_cross
5300
5301       cat > conftest.$ac_ext <<EOF
5302 #line 5303 "configure"
5303 #include "confdefs.h"
5304 #include <math.h>
5305 int main() {
5306  __builtin_fabsl(0);
5307 ; return 0; }
5308 EOF
5309 if { (eval echo configure:5310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5310   rm -rf conftest*
5311   glibcpp_cv_func___builtin_fabsl_use=yes
5312 else
5313   echo "configure: failed program was:" >&5
5314   cat conftest.$ac_ext >&5
5315   rm -rf conftest*
5316   glibcpp_cv_func___builtin_fabsl_use=no
5317 fi
5318 rm -f conftest*
5319       ac_ext=c
5320 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5321 ac_cpp='$CPP $CPPFLAGS'
5322 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5323 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5324 cross_compiling=$ac_cv_prog_cc_cross
5325
5326     
5327 fi
5328
5329   fi
5330   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5331   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5332     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5333 echo "configure:5334: checking for __builtin_fabsl linkage" >&5
5334     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5335       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5336   echo $ac_n "(cached) $ac_c" 1>&6
5337 else
5338   
5339         cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure"
5341 #include "confdefs.h"
5342 #include <math.h>
5343 int main() {
5344  __builtin_fabsl(0);
5345 ; return 0; }
5346 EOF
5347 if { (eval echo configure:5348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5348   rm -rf conftest*
5349   glibcpp_cv_func___builtin_fabsl_link=yes
5350 else
5351   echo "configure: failed program was:" >&5
5352   cat conftest.$ac_ext >&5
5353   rm -rf conftest*
5354   glibcpp_cv_func___builtin_fabsl_link=no
5355 fi
5356 rm -f conftest*
5357       
5358 fi
5359
5360     fi
5361     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5362     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5363       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5364       cat >> confdefs.h <<EOF
5365 #define ${ac_tr_func} 1
5366 EOF
5367
5368     fi
5369   fi
5370
5371   
5372   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5373 echo "configure:5374: checking for __builtin_labs declaration" >&5
5374   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5375     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5376   echo $ac_n "(cached) $ac_c" 1>&6
5377 else
5378   
5379       
5380       ac_ext=C
5381 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5382 ac_cpp='$CXXCPP $CPPFLAGS'
5383 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5384 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5385 cross_compiling=$ac_cv_prog_cxx_cross
5386
5387       cat > conftest.$ac_ext <<EOF
5388 #line 5389 "configure"
5389 #include "confdefs.h"
5390 #include <math.h>
5391 int main() {
5392  __builtin_labs(0);
5393 ; return 0; }
5394 EOF
5395 if { (eval echo configure:5396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5396   rm -rf conftest*
5397   glibcpp_cv_func___builtin_labs_use=yes
5398 else
5399   echo "configure: failed program was:" >&5
5400   cat conftest.$ac_ext >&5
5401   rm -rf conftest*
5402   glibcpp_cv_func___builtin_labs_use=no
5403 fi
5404 rm -f conftest*
5405       ac_ext=c
5406 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5407 ac_cpp='$CPP $CPPFLAGS'
5408 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5409 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5410 cross_compiling=$ac_cv_prog_cc_cross
5411
5412     
5413 fi
5414
5415   fi
5416   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5417   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5418     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5419 echo "configure:5420: checking for __builtin_labs linkage" >&5
5420     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5421       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5422   echo $ac_n "(cached) $ac_c" 1>&6
5423 else
5424   
5425         cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5428 #include <math.h>
5429 int main() {
5430  __builtin_labs(0);
5431 ; return 0; }
5432 EOF
5433 if { (eval echo configure:5434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5434   rm -rf conftest*
5435   glibcpp_cv_func___builtin_labs_link=yes
5436 else
5437   echo "configure: failed program was:" >&5
5438   cat conftest.$ac_ext >&5
5439   rm -rf conftest*
5440   glibcpp_cv_func___builtin_labs_link=no
5441 fi
5442 rm -f conftest*
5443       
5444 fi
5445
5446     fi
5447     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5448     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5449       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5450       cat >> confdefs.h <<EOF
5451 #define ${ac_tr_func} 1
5452 EOF
5453
5454     fi
5455   fi
5456
5457
5458   
5459   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5460 echo "configure:5461: checking for __builtin_sqrtf declaration" >&5
5461   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5462     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5463   echo $ac_n "(cached) $ac_c" 1>&6
5464 else
5465   
5466       
5467       ac_ext=C
5468 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5469 ac_cpp='$CXXCPP $CPPFLAGS'
5470 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5471 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5472 cross_compiling=$ac_cv_prog_cxx_cross
5473
5474       cat > conftest.$ac_ext <<EOF
5475 #line 5476 "configure"
5476 #include "confdefs.h"
5477 #include <math.h>
5478 int main() {
5479  __builtin_sqrtf(0);
5480 ; return 0; }
5481 EOF
5482 if { (eval echo configure:5483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5483   rm -rf conftest*
5484   glibcpp_cv_func___builtin_sqrtf_use=yes
5485 else
5486   echo "configure: failed program was:" >&5
5487   cat conftest.$ac_ext >&5
5488   rm -rf conftest*
5489   glibcpp_cv_func___builtin_sqrtf_use=no
5490 fi
5491 rm -f conftest*
5492       ac_ext=c
5493 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5494 ac_cpp='$CPP $CPPFLAGS'
5495 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5496 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5497 cross_compiling=$ac_cv_prog_cc_cross
5498
5499     
5500 fi
5501
5502   fi
5503   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5504   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5505     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5506 echo "configure:5507: checking for __builtin_sqrtf linkage" >&5
5507     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5508       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5509   echo $ac_n "(cached) $ac_c" 1>&6
5510 else
5511   
5512         cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5515 #include <math.h>
5516 int main() {
5517  __builtin_sqrtf(0);
5518 ; return 0; }
5519 EOF
5520 if { (eval echo configure:5521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5521   rm -rf conftest*
5522   glibcpp_cv_func___builtin_sqrtf_link=yes
5523 else
5524   echo "configure: failed program was:" >&5
5525   cat conftest.$ac_ext >&5
5526   rm -rf conftest*
5527   glibcpp_cv_func___builtin_sqrtf_link=no
5528 fi
5529 rm -f conftest*
5530       
5531 fi
5532
5533     fi
5534     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5535     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5536       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5537       cat >> confdefs.h <<EOF
5538 #define ${ac_tr_func} 1
5539 EOF
5540
5541     fi
5542   fi
5543
5544   
5545   echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5546 echo "configure:5547: checking for __builtin_fsqrt declaration" >&5
5547   if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5548     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5549   echo $ac_n "(cached) $ac_c" 1>&6
5550 else
5551   
5552       
5553       ac_ext=C
5554 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5555 ac_cpp='$CXXCPP $CPPFLAGS'
5556 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5557 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5558 cross_compiling=$ac_cv_prog_cxx_cross
5559
5560       cat > conftest.$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5563 #include <math.h>
5564 int main() {
5565  __builtin_fsqrt(0);
5566 ; return 0; }
5567 EOF
5568 if { (eval echo configure:5569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5569   rm -rf conftest*
5570   glibcpp_cv_func___builtin_fsqrt_use=yes
5571 else
5572   echo "configure: failed program was:" >&5
5573   cat conftest.$ac_ext >&5
5574   rm -rf conftest*
5575   glibcpp_cv_func___builtin_fsqrt_use=no
5576 fi
5577 rm -f conftest*
5578       ac_ext=c
5579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5580 ac_cpp='$CPP $CPPFLAGS'
5581 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5582 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5583 cross_compiling=$ac_cv_prog_cc_cross
5584
5585     
5586 fi
5587
5588   fi
5589   echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5590   if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5591     echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5592 echo "configure:5593: checking for __builtin_fsqrt linkage" >&5
5593     if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5594       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5595   echo $ac_n "(cached) $ac_c" 1>&6
5596 else
5597   
5598         cat > conftest.$ac_ext <<EOF
5599 #line 5600 "configure"
5600 #include "confdefs.h"
5601 #include <math.h>
5602 int main() {
5603  __builtin_fsqrt(0);
5604 ; return 0; }
5605 EOF
5606 if { (eval echo configure:5607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5607   rm -rf conftest*
5608   glibcpp_cv_func___builtin_fsqrt_link=yes
5609 else
5610   echo "configure: failed program was:" >&5
5611   cat conftest.$ac_ext >&5
5612   rm -rf conftest*
5613   glibcpp_cv_func___builtin_fsqrt_link=no
5614 fi
5615 rm -f conftest*
5616       
5617 fi
5618
5619     fi
5620     echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5621     if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5622       ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5623       cat >> confdefs.h <<EOF
5624 #define ${ac_tr_func} 1
5625 EOF
5626
5627     fi
5628   fi
5629
5630   
5631   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5632 echo "configure:5633: checking for __builtin_sqrtl declaration" >&5
5633   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5634     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5635   echo $ac_n "(cached) $ac_c" 1>&6
5636 else
5637   
5638       
5639       ac_ext=C
5640 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5641 ac_cpp='$CXXCPP $CPPFLAGS'
5642 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5643 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5644 cross_compiling=$ac_cv_prog_cxx_cross
5645
5646       cat > conftest.$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5649 #include <math.h>
5650 int main() {
5651  __builtin_sqrtl(0);
5652 ; return 0; }
5653 EOF
5654 if { (eval echo configure:5655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5655   rm -rf conftest*
5656   glibcpp_cv_func___builtin_sqrtl_use=yes
5657 else
5658   echo "configure: failed program was:" >&5
5659   cat conftest.$ac_ext >&5
5660   rm -rf conftest*
5661   glibcpp_cv_func___builtin_sqrtl_use=no
5662 fi
5663 rm -f conftest*
5664       ac_ext=c
5665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5666 ac_cpp='$CPP $CPPFLAGS'
5667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5669 cross_compiling=$ac_cv_prog_cc_cross
5670
5671     
5672 fi
5673
5674   fi
5675   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5676   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5677     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5678 echo "configure:5679: checking for __builtin_sqrtl linkage" >&5
5679     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5680       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5681   echo $ac_n "(cached) $ac_c" 1>&6
5682 else
5683   
5684         cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5687 #include <math.h>
5688 int main() {
5689  __builtin_sqrtl(0);
5690 ; return 0; }
5691 EOF
5692 if { (eval echo configure:5693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5693   rm -rf conftest*
5694   glibcpp_cv_func___builtin_sqrtl_link=yes
5695 else
5696   echo "configure: failed program was:" >&5
5697   cat conftest.$ac_ext >&5
5698   rm -rf conftest*
5699   glibcpp_cv_func___builtin_sqrtl_link=no
5700 fi
5701 rm -f conftest*
5702       
5703 fi
5704
5705     fi
5706     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5707     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5708       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5709       cat >> confdefs.h <<EOF
5710 #define ${ac_tr_func} 1
5711 EOF
5712
5713     fi
5714   fi
5715
5716
5717   
5718   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5719 echo "configure:5720: checking for __builtin_sinf declaration" >&5
5720   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5721     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5722   echo $ac_n "(cached) $ac_c" 1>&6
5723 else
5724   
5725       
5726       ac_ext=C
5727 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5728 ac_cpp='$CXXCPP $CPPFLAGS'
5729 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5730 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5731 cross_compiling=$ac_cv_prog_cxx_cross
5732
5733       cat > conftest.$ac_ext <<EOF
5734 #line 5735 "configure"
5735 #include "confdefs.h"
5736 #include <math.h>
5737 int main() {
5738  __builtin_sinf(0);
5739 ; return 0; }
5740 EOF
5741 if { (eval echo configure:5742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5742   rm -rf conftest*
5743   glibcpp_cv_func___builtin_sinf_use=yes
5744 else
5745   echo "configure: failed program was:" >&5
5746   cat conftest.$ac_ext >&5
5747   rm -rf conftest*
5748   glibcpp_cv_func___builtin_sinf_use=no
5749 fi
5750 rm -f conftest*
5751       ac_ext=c
5752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5753 ac_cpp='$CPP $CPPFLAGS'
5754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5756 cross_compiling=$ac_cv_prog_cc_cross
5757
5758     
5759 fi
5760
5761   fi
5762   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5763   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5764     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5765 echo "configure:5766: checking for __builtin_sinf linkage" >&5
5766     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5767       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5768   echo $ac_n "(cached) $ac_c" 1>&6
5769 else
5770   
5771         cat > conftest.$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5774 #include <math.h>
5775 int main() {
5776  __builtin_sinf(0);
5777 ; return 0; }
5778 EOF
5779 if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5780   rm -rf conftest*
5781   glibcpp_cv_func___builtin_sinf_link=yes
5782 else
5783   echo "configure: failed program was:" >&5
5784   cat conftest.$ac_ext >&5
5785   rm -rf conftest*
5786   glibcpp_cv_func___builtin_sinf_link=no
5787 fi
5788 rm -f conftest*
5789       
5790 fi
5791
5792     fi
5793     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5794     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5795       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5796       cat >> confdefs.h <<EOF
5797 #define ${ac_tr_func} 1
5798 EOF
5799
5800     fi
5801   fi
5802
5803   
5804   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5805 echo "configure:5806: checking for __builtin_sin declaration" >&5
5806   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5807     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5808   echo $ac_n "(cached) $ac_c" 1>&6
5809 else
5810   
5811       
5812       ac_ext=C
5813 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5814 ac_cpp='$CXXCPP $CPPFLAGS'
5815 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5816 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5817 cross_compiling=$ac_cv_prog_cxx_cross
5818
5819       cat > conftest.$ac_ext <<EOF
5820 #line 5821 "configure"
5821 #include "confdefs.h"
5822 #include <math.h>
5823 int main() {
5824  __builtin_sin(0);
5825 ; return 0; }
5826 EOF
5827 if { (eval echo configure:5828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5828   rm -rf conftest*
5829   glibcpp_cv_func___builtin_sin_use=yes
5830 else
5831   echo "configure: failed program was:" >&5
5832   cat conftest.$ac_ext >&5
5833   rm -rf conftest*
5834   glibcpp_cv_func___builtin_sin_use=no
5835 fi
5836 rm -f conftest*
5837       ac_ext=c
5838 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5839 ac_cpp='$CPP $CPPFLAGS'
5840 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5841 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5842 cross_compiling=$ac_cv_prog_cc_cross
5843
5844     
5845 fi
5846
5847   fi
5848   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
5849   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
5850     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
5851 echo "configure:5852: checking for __builtin_sin linkage" >&5
5852     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
5853       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
5854   echo $ac_n "(cached) $ac_c" 1>&6
5855 else
5856   
5857         cat > conftest.$ac_ext <<EOF
5858 #line 5859 "configure"
5859 #include "confdefs.h"
5860 #include <math.h>
5861 int main() {
5862  __builtin_sin(0);
5863 ; return 0; }
5864 EOF
5865 if { (eval echo configure:5866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5866   rm -rf conftest*
5867   glibcpp_cv_func___builtin_sin_link=yes
5868 else
5869   echo "configure: failed program was:" >&5
5870   cat conftest.$ac_ext >&5
5871   rm -rf conftest*
5872   glibcpp_cv_func___builtin_sin_link=no
5873 fi
5874 rm -f conftest*
5875       
5876 fi
5877
5878     fi
5879     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
5880     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
5881       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5882       cat >> confdefs.h <<EOF
5883 #define ${ac_tr_func} 1
5884 EOF
5885
5886     fi
5887   fi
5888
5889   
5890   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
5891 echo "configure:5892: checking for __builtin_sinl declaration" >&5
5892   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
5893     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
5894   echo $ac_n "(cached) $ac_c" 1>&6
5895 else
5896   
5897       
5898       ac_ext=C
5899 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5900 ac_cpp='$CXXCPP $CPPFLAGS'
5901 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5902 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5903 cross_compiling=$ac_cv_prog_cxx_cross
5904
5905       cat > conftest.$ac_ext <<EOF
5906 #line 5907 "configure"
5907 #include "confdefs.h"
5908 #include <math.h>
5909 int main() {
5910  __builtin_sinl(0);
5911 ; return 0; }
5912 EOF
5913 if { (eval echo configure:5914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5914   rm -rf conftest*
5915   glibcpp_cv_func___builtin_sinl_use=yes
5916 else
5917   echo "configure: failed program was:" >&5
5918   cat conftest.$ac_ext >&5
5919   rm -rf conftest*
5920   glibcpp_cv_func___builtin_sinl_use=no
5921 fi
5922 rm -f conftest*
5923       ac_ext=c
5924 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5925 ac_cpp='$CPP $CPPFLAGS'
5926 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5927 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5928 cross_compiling=$ac_cv_prog_cc_cross
5929
5930     
5931 fi
5932
5933   fi
5934   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
5935   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
5936     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
5937 echo "configure:5938: checking for __builtin_sinl linkage" >&5
5938     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
5939       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
5940   echo $ac_n "(cached) $ac_c" 1>&6
5941 else
5942   
5943         cat > conftest.$ac_ext <<EOF
5944 #line 5945 "configure"
5945 #include "confdefs.h"
5946 #include <math.h>
5947 int main() {
5948  __builtin_sinl(0);
5949 ; return 0; }
5950 EOF
5951 if { (eval echo configure:5952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5952   rm -rf conftest*
5953   glibcpp_cv_func___builtin_sinl_link=yes
5954 else
5955   echo "configure: failed program was:" >&5
5956   cat conftest.$ac_ext >&5
5957   rm -rf conftest*
5958   glibcpp_cv_func___builtin_sinl_link=no
5959 fi
5960 rm -f conftest*
5961       
5962 fi
5963
5964     fi
5965     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
5966     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
5967       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5968       cat >> confdefs.h <<EOF
5969 #define ${ac_tr_func} 1
5970 EOF
5971
5972     fi
5973   fi
5974
5975
5976   
5977   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
5978 echo "configure:5979: checking for __builtin_cosf declaration" >&5
5979   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
5980     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
5981   echo $ac_n "(cached) $ac_c" 1>&6
5982 else
5983   
5984       
5985       ac_ext=C
5986 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5987 ac_cpp='$CXXCPP $CPPFLAGS'
5988 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5989 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5990 cross_compiling=$ac_cv_prog_cxx_cross
5991
5992       cat > conftest.$ac_ext <<EOF
5993 #line 5994 "configure"
5994 #include "confdefs.h"
5995 #include <math.h>
5996 int main() {
5997  __builtin_cosf(0);
5998 ; return 0; }
5999 EOF
6000 if { (eval echo configure:6001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6001   rm -rf conftest*
6002   glibcpp_cv_func___builtin_cosf_use=yes
6003 else
6004   echo "configure: failed program was:" >&5
6005   cat conftest.$ac_ext >&5
6006   rm -rf conftest*
6007   glibcpp_cv_func___builtin_cosf_use=no
6008 fi
6009 rm -f conftest*
6010       ac_ext=c
6011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6012 ac_cpp='$CPP $CPPFLAGS'
6013 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6014 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6015 cross_compiling=$ac_cv_prog_cc_cross
6016
6017     
6018 fi
6019
6020   fi
6021   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6022   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6023     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6024 echo "configure:6025: checking for __builtin_cosf linkage" >&5
6025     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6026       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6027   echo $ac_n "(cached) $ac_c" 1>&6
6028 else
6029   
6030         cat > conftest.$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6033 #include <math.h>
6034 int main() {
6035  __builtin_cosf(0);
6036 ; return 0; }
6037 EOF
6038 if { (eval echo configure:6039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6039   rm -rf conftest*
6040   glibcpp_cv_func___builtin_cosf_link=yes
6041 else
6042   echo "configure: failed program was:" >&5
6043   cat conftest.$ac_ext >&5
6044   rm -rf conftest*
6045   glibcpp_cv_func___builtin_cosf_link=no
6046 fi
6047 rm -f conftest*
6048       
6049 fi
6050
6051     fi
6052     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6053     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6054       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6055       cat >> confdefs.h <<EOF
6056 #define ${ac_tr_func} 1
6057 EOF
6058
6059     fi
6060   fi
6061
6062   
6063   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6064 echo "configure:6065: checking for __builtin_cos declaration" >&5
6065   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6066     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6067   echo $ac_n "(cached) $ac_c" 1>&6
6068 else
6069   
6070       
6071       ac_ext=C
6072 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6073 ac_cpp='$CXXCPP $CPPFLAGS'
6074 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6075 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6076 cross_compiling=$ac_cv_prog_cxx_cross
6077
6078       cat > conftest.$ac_ext <<EOF
6079 #line 6080 "configure"
6080 #include "confdefs.h"
6081 #include <math.h>
6082 int main() {
6083  __builtin_cos(0);
6084 ; return 0; }
6085 EOF
6086 if { (eval echo configure:6087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6087   rm -rf conftest*
6088   glibcpp_cv_func___builtin_cos_use=yes
6089 else
6090   echo "configure: failed program was:" >&5
6091   cat conftest.$ac_ext >&5
6092   rm -rf conftest*
6093   glibcpp_cv_func___builtin_cos_use=no
6094 fi
6095 rm -f conftest*
6096       ac_ext=c
6097 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098 ac_cpp='$CPP $CPPFLAGS'
6099 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6100 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6101 cross_compiling=$ac_cv_prog_cc_cross
6102
6103     
6104 fi
6105
6106   fi
6107   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6108   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6109     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6110 echo "configure:6111: checking for __builtin_cos linkage" >&5
6111     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6112       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6113   echo $ac_n "(cached) $ac_c" 1>&6
6114 else
6115   
6116         cat > conftest.$ac_ext <<EOF
6117 #line 6118 "configure"
6118 #include "confdefs.h"
6119 #include <math.h>
6120 int main() {
6121  __builtin_cos(0);
6122 ; return 0; }
6123 EOF
6124 if { (eval echo configure:6125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6125   rm -rf conftest*
6126   glibcpp_cv_func___builtin_cos_link=yes
6127 else
6128   echo "configure: failed program was:" >&5
6129   cat conftest.$ac_ext >&5
6130   rm -rf conftest*
6131   glibcpp_cv_func___builtin_cos_link=no
6132 fi
6133 rm -f conftest*
6134       
6135 fi
6136
6137     fi
6138     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6139     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6140       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6141       cat >> confdefs.h <<EOF
6142 #define ${ac_tr_func} 1
6143 EOF
6144
6145     fi
6146   fi
6147
6148   
6149   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6150 echo "configure:6151: checking for __builtin_cosl declaration" >&5
6151   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6152     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6153   echo $ac_n "(cached) $ac_c" 1>&6
6154 else
6155   
6156       
6157       ac_ext=C
6158 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6159 ac_cpp='$CXXCPP $CPPFLAGS'
6160 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6161 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6162 cross_compiling=$ac_cv_prog_cxx_cross
6163
6164       cat > conftest.$ac_ext <<EOF
6165 #line 6166 "configure"
6166 #include "confdefs.h"
6167 #include <math.h>
6168 int main() {
6169  __builtin_cosl(0);
6170 ; return 0; }
6171 EOF
6172 if { (eval echo configure:6173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6173   rm -rf conftest*
6174   glibcpp_cv_func___builtin_cosl_use=yes
6175 else
6176   echo "configure: failed program was:" >&5
6177   cat conftest.$ac_ext >&5
6178   rm -rf conftest*
6179   glibcpp_cv_func___builtin_cosl_use=no
6180 fi
6181 rm -f conftest*
6182       ac_ext=c
6183 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6184 ac_cpp='$CPP $CPPFLAGS'
6185 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6186 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6187 cross_compiling=$ac_cv_prog_cc_cross
6188
6189     
6190 fi
6191
6192   fi
6193   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6194   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6195     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6196 echo "configure:6197: checking for __builtin_cosl linkage" >&5
6197     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6198       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6199   echo $ac_n "(cached) $ac_c" 1>&6
6200 else
6201   
6202         cat > conftest.$ac_ext <<EOF
6203 #line 6204 "configure"
6204 #include "confdefs.h"
6205 #include <math.h>
6206 int main() {
6207  __builtin_cosl(0);
6208 ; return 0; }
6209 EOF
6210 if { (eval echo configure:6211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6211   rm -rf conftest*
6212   glibcpp_cv_func___builtin_cosl_link=yes
6213 else
6214   echo "configure: failed program was:" >&5
6215   cat conftest.$ac_ext >&5
6216   rm -rf conftest*
6217   glibcpp_cv_func___builtin_cosl_link=no
6218 fi
6219 rm -f conftest*
6220       
6221 fi
6222
6223     fi
6224     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6225     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6226       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6227       cat >> confdefs.h <<EOF
6228 #define ${ac_tr_func} 1
6229 EOF
6230
6231     fi
6232   fi
6233
6234
6235               dummyvar=no
6236   if test x$dummyvar = x"yes"; then
6237     cat >> confdefs.h <<\EOF
6238 #define HAVE___BUILTIN_ABS 1
6239 EOF
6240
6241     cat >> confdefs.h <<\EOF
6242 #define HAVE___BUILTIN_LABS 1
6243 EOF
6244
6245     cat >> confdefs.h <<\EOF
6246 #define HAVE___BUILTIN_COS 1
6247 EOF
6248
6249     cat >> confdefs.h <<\EOF
6250 #define HAVE___BUILTIN_COSF 1
6251 EOF
6252
6253     cat >> confdefs.h <<\EOF
6254 #define HAVE___BUILTIN_COSL 1
6255 EOF
6256
6257     cat >> confdefs.h <<\EOF
6258 #define HAVE___BUILTIN_FABS 1
6259 EOF
6260
6261     cat >> confdefs.h <<\EOF
6262 #define HAVE___BUILTIN_FABSF 1
6263 EOF
6264
6265     cat >> confdefs.h <<\EOF
6266 #define HAVE___BUILTIN_FABSL 1
6267 EOF
6268
6269     cat >> confdefs.h <<\EOF
6270 #define HAVE___BUILTIN_SIN 1
6271 EOF
6272
6273     cat >> confdefs.h <<\EOF
6274 #define HAVE___BUILTIN_SINF 1
6275 EOF
6276
6277     cat >> confdefs.h <<\EOF
6278 #define HAVE___BUILTIN_SINL 1
6279 EOF
6280
6281     cat >> confdefs.h <<\EOF
6282 #define HAVE___BUILTIN_FSQRT 1
6283 EOF
6284
6285     cat >> confdefs.h <<\EOF
6286 #define HAVE___BUILTIN_SQRTF 1
6287 EOF
6288
6289     cat >> confdefs.h <<\EOF
6290 #define HAVE___BUILTIN_SQRTL 1
6291 EOF
6292
6293   fi
6294
6295   
6296   ac_test_CXXFLAGS="${CXXFLAGS+set}"
6297   ac_save_CXXFLAGS="$CXXFLAGS"
6298   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6299
6300     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6301 echo "configure:6302: checking for sin in -lm" >&5
6302 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6304   echo $ac_n "(cached) $ac_c" 1>&6
6305 else
6306   ac_save_LIBS="$LIBS"
6307 LIBS="-lm  $LIBS"
6308 cat > conftest.$ac_ext <<EOF
6309 #line 6310 "configure"
6310 #include "confdefs.h"
6311 /* Override any gcc2 internal prototype to avoid an error.  */
6312 /* We use char because int might match the return type of a gcc2
6313     builtin and then its argument prototype would still apply.  */
6314 char sin();
6315
6316 int main() {
6317 sin()
6318 ; return 0; }
6319 EOF
6320 if { (eval echo configure:6321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6321   rm -rf conftest*
6322   eval "ac_cv_lib_$ac_lib_var=yes"
6323 else
6324   echo "configure: failed program was:" >&5
6325   cat conftest.$ac_ext >&5
6326   rm -rf conftest*
6327   eval "ac_cv_lib_$ac_lib_var=no"
6328 fi
6329 rm -f conftest*
6330 LIBS="$ac_save_LIBS"
6331
6332 fi
6333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6334   echo "$ac_t""yes" 1>&6
6335   libm="-lm"
6336 else
6337   echo "$ac_t""no" 1>&6
6338 fi
6339
6340   ac_save_LIBS="$LIBS"
6341   LIBS="$LIBS $libm"
6342
6343     
6344   
6345   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6346 echo "configure:6347: checking for isinf declaration" >&5
6347   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6348     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6349   echo $ac_n "(cached) $ac_c" 1>&6
6350 else
6351   
6352       
6353       ac_ext=C
6354 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6355 ac_cpp='$CXXCPP $CPPFLAGS'
6356 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6357 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6358 cross_compiling=$ac_cv_prog_cxx_cross
6359
6360       cat > conftest.$ac_ext <<EOF
6361 #line 6362 "configure"
6362 #include "confdefs.h"
6363 #include <math.h>
6364                       #ifdef HAVE_IEEEFP_H
6365                       #include <ieeefp.h>
6366                       #endif
6367                      
6368 int main() {
6369  isinf(0);
6370 ; return 0; }
6371 EOF
6372 if { (eval echo configure:6373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6373   rm -rf conftest*
6374   glibcpp_cv_func_isinf_use=yes
6375 else
6376   echo "configure: failed program was:" >&5
6377   cat conftest.$ac_ext >&5
6378   rm -rf conftest*
6379   glibcpp_cv_func_isinf_use=no
6380 fi
6381 rm -f conftest*
6382       ac_ext=c
6383 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6384 ac_cpp='$CPP $CPPFLAGS'
6385 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6386 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6387 cross_compiling=$ac_cv_prog_cc_cross
6388
6389     
6390 fi
6391
6392   fi
6393   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6394
6395   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6396     for ac_func in isinf
6397 do
6398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6399 echo "configure:6400: checking for $ac_func" >&5
6400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6401   echo $ac_n "(cached) $ac_c" 1>&6
6402 else
6403   cat > conftest.$ac_ext <<EOF
6404 #line 6405 "configure"
6405 #include "confdefs.h"
6406 /* System header to define __stub macros and hopefully few prototypes,
6407     which can conflict with char $ac_func(); below.  */
6408 #include <assert.h>
6409 /* Override any gcc2 internal prototype to avoid an error.  */
6410 /* We use char because int might match the return type of a gcc2
6411     builtin and then its argument prototype would still apply.  */
6412 char $ac_func();
6413
6414 int main() {
6415
6416 /* The GNU C library defines this for functions which it implements
6417     to always fail with ENOSYS.  Some functions are actually named
6418     something starting with __ and the normal name is an alias.  */
6419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6420 choke me
6421 #else
6422 $ac_func();
6423 #endif
6424
6425 ; return 0; }
6426 EOF
6427 if { (eval echo configure:6428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6428   rm -rf conftest*
6429   eval "ac_cv_func_$ac_func=yes"
6430 else
6431   echo "configure: failed program was:" >&5
6432   cat conftest.$ac_ext >&5
6433   rm -rf conftest*
6434   eval "ac_cv_func_$ac_func=no"
6435 fi
6436 rm -f conftest*
6437 fi
6438
6439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6440   echo "$ac_t""yes" 1>&6
6441     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6442   cat >> confdefs.h <<EOF
6443 #define $ac_tr_func 1
6444 EOF
6445  
6446 else
6447   echo "$ac_t""no" 1>&6
6448 fi
6449 done
6450     
6451   else
6452     
6453   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6454 echo "configure:6455: checking for _isinf declaration" >&5
6455   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6456     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6457   echo $ac_n "(cached) $ac_c" 1>&6
6458 else
6459   
6460       
6461       ac_ext=C
6462 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6463 ac_cpp='$CXXCPP $CPPFLAGS'
6464 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6465 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6466 cross_compiling=$ac_cv_prog_cxx_cross
6467
6468       cat > conftest.$ac_ext <<EOF
6469 #line 6470 "configure"
6470 #include "confdefs.h"
6471 #include <math.h>
6472                       #ifdef HAVE_IEEEFP_H
6473                       #include <ieeefp.h>
6474                       #endif
6475                      
6476 int main() {
6477  _isinf(0);
6478 ; return 0; }
6479 EOF
6480 if { (eval echo configure:6481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6481   rm -rf conftest*
6482   glibcpp_cv_func__isinf_use=yes
6483 else
6484   echo "configure: failed program was:" >&5
6485   cat conftest.$ac_ext >&5
6486   rm -rf conftest*
6487   glibcpp_cv_func__isinf_use=no
6488 fi
6489 rm -f conftest*
6490       ac_ext=c
6491 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6492 ac_cpp='$CPP $CPPFLAGS'
6493 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6494 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6495 cross_compiling=$ac_cv_prog_cc_cross
6496
6497     
6498 fi
6499
6500   fi
6501   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6502
6503     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6504       for ac_func in _isinf
6505 do
6506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6507 echo "configure:6508: checking for $ac_func" >&5
6508 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6509   echo $ac_n "(cached) $ac_c" 1>&6
6510 else
6511   cat > conftest.$ac_ext <<EOF
6512 #line 6513 "configure"
6513 #include "confdefs.h"
6514 /* System header to define __stub macros and hopefully few prototypes,
6515     which can conflict with char $ac_func(); below.  */
6516 #include <assert.h>
6517 /* Override any gcc2 internal prototype to avoid an error.  */
6518 /* We use char because int might match the return type of a gcc2
6519     builtin and then its argument prototype would still apply.  */
6520 char $ac_func();
6521
6522 int main() {
6523
6524 /* The GNU C library defines this for functions which it implements
6525     to always fail with ENOSYS.  Some functions are actually named
6526     something starting with __ and the normal name is an alias.  */
6527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6528 choke me
6529 #else
6530 $ac_func();
6531 #endif
6532
6533 ; return 0; }
6534 EOF
6535 if { (eval echo configure:6536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6536   rm -rf conftest*
6537   eval "ac_cv_func_$ac_func=yes"
6538 else
6539   echo "configure: failed program was:" >&5
6540   cat conftest.$ac_ext >&5
6541   rm -rf conftest*
6542   eval "ac_cv_func_$ac_func=no"
6543 fi
6544 rm -f conftest*
6545 fi
6546
6547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6548   echo "$ac_t""yes" 1>&6
6549     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6550   cat >> confdefs.h <<EOF
6551 #define $ac_tr_func 1
6552 EOF
6553  
6554 else
6555   echo "$ac_t""no" 1>&6
6556 fi
6557 done
6558     
6559     fi
6560   fi
6561
6562   
6563   
6564   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6565 echo "configure:6566: checking for isnan declaration" >&5
6566   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6567     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6568   echo $ac_n "(cached) $ac_c" 1>&6
6569 else
6570   
6571       
6572       ac_ext=C
6573 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6574 ac_cpp='$CXXCPP $CPPFLAGS'
6575 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6576 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6577 cross_compiling=$ac_cv_prog_cxx_cross
6578
6579       cat > conftest.$ac_ext <<EOF
6580 #line 6581 "configure"
6581 #include "confdefs.h"
6582 #include <math.h>
6583                       #ifdef HAVE_IEEEFP_H
6584                       #include <ieeefp.h>
6585                       #endif
6586                      
6587 int main() {
6588  isnan(0);
6589 ; return 0; }
6590 EOF
6591 if { (eval echo configure:6592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6592   rm -rf conftest*
6593   glibcpp_cv_func_isnan_use=yes
6594 else
6595   echo "configure: failed program was:" >&5
6596   cat conftest.$ac_ext >&5
6597   rm -rf conftest*
6598   glibcpp_cv_func_isnan_use=no
6599 fi
6600 rm -f conftest*
6601       ac_ext=c
6602 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6603 ac_cpp='$CPP $CPPFLAGS'
6604 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6605 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6606 cross_compiling=$ac_cv_prog_cc_cross
6607
6608     
6609 fi
6610
6611   fi
6612   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6613
6614   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6615     for ac_func in isnan
6616 do
6617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6618 echo "configure:6619: checking for $ac_func" >&5
6619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6620   echo $ac_n "(cached) $ac_c" 1>&6
6621 else
6622   cat > conftest.$ac_ext <<EOF
6623 #line 6624 "configure"
6624 #include "confdefs.h"
6625 /* System header to define __stub macros and hopefully few prototypes,
6626     which can conflict with char $ac_func(); below.  */
6627 #include <assert.h>
6628 /* Override any gcc2 internal prototype to avoid an error.  */
6629 /* We use char because int might match the return type of a gcc2
6630     builtin and then its argument prototype would still apply.  */
6631 char $ac_func();
6632
6633 int main() {
6634
6635 /* The GNU C library defines this for functions which it implements
6636     to always fail with ENOSYS.  Some functions are actually named
6637     something starting with __ and the normal name is an alias.  */
6638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6639 choke me
6640 #else
6641 $ac_func();
6642 #endif
6643
6644 ; return 0; }
6645 EOF
6646 if { (eval echo configure:6647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6647   rm -rf conftest*
6648   eval "ac_cv_func_$ac_func=yes"
6649 else
6650   echo "configure: failed program was:" >&5
6651   cat conftest.$ac_ext >&5
6652   rm -rf conftest*
6653   eval "ac_cv_func_$ac_func=no"
6654 fi
6655 rm -f conftest*
6656 fi
6657
6658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6659   echo "$ac_t""yes" 1>&6
6660     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6661   cat >> confdefs.h <<EOF
6662 #define $ac_tr_func 1
6663 EOF
6664  
6665 else
6666   echo "$ac_t""no" 1>&6
6667 fi
6668 done
6669     
6670   else
6671     
6672   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6673 echo "configure:6674: checking for _isnan declaration" >&5
6674   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6675     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6676   echo $ac_n "(cached) $ac_c" 1>&6
6677 else
6678   
6679       
6680       ac_ext=C
6681 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6682 ac_cpp='$CXXCPP $CPPFLAGS'
6683 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6684 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6685 cross_compiling=$ac_cv_prog_cxx_cross
6686
6687       cat > conftest.$ac_ext <<EOF
6688 #line 6689 "configure"
6689 #include "confdefs.h"
6690 #include <math.h>
6691                       #ifdef HAVE_IEEEFP_H
6692                       #include <ieeefp.h>
6693                       #endif
6694                      
6695 int main() {
6696  _isnan(0);
6697 ; return 0; }
6698 EOF
6699 if { (eval echo configure:6700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6700   rm -rf conftest*
6701   glibcpp_cv_func__isnan_use=yes
6702 else
6703   echo "configure: failed program was:" >&5
6704   cat conftest.$ac_ext >&5
6705   rm -rf conftest*
6706   glibcpp_cv_func__isnan_use=no
6707 fi
6708 rm -f conftest*
6709       ac_ext=c
6710 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6711 ac_cpp='$CPP $CPPFLAGS'
6712 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6713 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6714 cross_compiling=$ac_cv_prog_cc_cross
6715
6716     
6717 fi
6718
6719   fi
6720   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6721
6722     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6723       for ac_func in _isnan
6724 do
6725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6726 echo "configure:6727: checking for $ac_func" >&5
6727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6728   echo $ac_n "(cached) $ac_c" 1>&6
6729 else
6730   cat > conftest.$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6733 /* System header to define __stub macros and hopefully few prototypes,
6734     which can conflict with char $ac_func(); below.  */
6735 #include <assert.h>
6736 /* Override any gcc2 internal prototype to avoid an error.  */
6737 /* We use char because int might match the return type of a gcc2
6738     builtin and then its argument prototype would still apply.  */
6739 char $ac_func();
6740
6741 int main() {
6742
6743 /* The GNU C library defines this for functions which it implements
6744     to always fail with ENOSYS.  Some functions are actually named
6745     something starting with __ and the normal name is an alias.  */
6746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6747 choke me
6748 #else
6749 $ac_func();
6750 #endif
6751
6752 ; return 0; }
6753 EOF
6754 if { (eval echo configure:6755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6755   rm -rf conftest*
6756   eval "ac_cv_func_$ac_func=yes"
6757 else
6758   echo "configure: failed program was:" >&5
6759   cat conftest.$ac_ext >&5
6760   rm -rf conftest*
6761   eval "ac_cv_func_$ac_func=no"
6762 fi
6763 rm -f conftest*
6764 fi
6765
6766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6767   echo "$ac_t""yes" 1>&6
6768     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6769   cat >> confdefs.h <<EOF
6770 #define $ac_tr_func 1
6771 EOF
6772  
6773 else
6774   echo "$ac_t""no" 1>&6
6775 fi
6776 done
6777     
6778     fi
6779   fi
6780
6781   
6782   
6783   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6784 echo "configure:6785: checking for finite declaration" >&5
6785   if test x${glibcpp_cv_func_finite_use+set} != xset; then
6786     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6787   echo $ac_n "(cached) $ac_c" 1>&6
6788 else
6789   
6790       
6791       ac_ext=C
6792 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6793 ac_cpp='$CXXCPP $CPPFLAGS'
6794 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6795 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6796 cross_compiling=$ac_cv_prog_cxx_cross
6797
6798       cat > conftest.$ac_ext <<EOF
6799 #line 6800 "configure"
6800 #include "confdefs.h"
6801 #include <math.h>
6802                       #ifdef HAVE_IEEEFP_H
6803                       #include <ieeefp.h>
6804                       #endif
6805                      
6806 int main() {
6807  finite(0);
6808 ; return 0; }
6809 EOF
6810 if { (eval echo configure:6811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6811   rm -rf conftest*
6812   glibcpp_cv_func_finite_use=yes
6813 else
6814   echo "configure: failed program was:" >&5
6815   cat conftest.$ac_ext >&5
6816   rm -rf conftest*
6817   glibcpp_cv_func_finite_use=no
6818 fi
6819 rm -f conftest*
6820       ac_ext=c
6821 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6822 ac_cpp='$CPP $CPPFLAGS'
6823 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6824 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6825 cross_compiling=$ac_cv_prog_cc_cross
6826
6827     
6828 fi
6829
6830   fi
6831   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
6832
6833   if test x$glibcpp_cv_func_finite_use = x"yes"; then
6834     for ac_func in finite
6835 do
6836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6837 echo "configure:6838: checking for $ac_func" >&5
6838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6839   echo $ac_n "(cached) $ac_c" 1>&6
6840 else
6841   cat > conftest.$ac_ext <<EOF
6842 #line 6843 "configure"
6843 #include "confdefs.h"
6844 /* System header to define __stub macros and hopefully few prototypes,
6845     which can conflict with char $ac_func(); below.  */
6846 #include <assert.h>
6847 /* Override any gcc2 internal prototype to avoid an error.  */
6848 /* We use char because int might match the return type of a gcc2
6849     builtin and then its argument prototype would still apply.  */
6850 char $ac_func();
6851
6852 int main() {
6853
6854 /* The GNU C library defines this for functions which it implements
6855     to always fail with ENOSYS.  Some functions are actually named
6856     something starting with __ and the normal name is an alias.  */
6857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6858 choke me
6859 #else
6860 $ac_func();
6861 #endif
6862
6863 ; return 0; }
6864 EOF
6865 if { (eval echo configure:6866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6866   rm -rf conftest*
6867   eval "ac_cv_func_$ac_func=yes"
6868 else
6869   echo "configure: failed program was:" >&5
6870   cat conftest.$ac_ext >&5
6871   rm -rf conftest*
6872   eval "ac_cv_func_$ac_func=no"
6873 fi
6874 rm -f conftest*
6875 fi
6876
6877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6878   echo "$ac_t""yes" 1>&6
6879     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6880   cat >> confdefs.h <<EOF
6881 #define $ac_tr_func 1
6882 EOF
6883  
6884 else
6885   echo "$ac_t""no" 1>&6
6886 fi
6887 done
6888     
6889   else
6890     
6891   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
6892 echo "configure:6893: checking for _finite declaration" >&5
6893   if test x${glibcpp_cv_func__finite_use+set} != xset; then
6894     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
6895   echo $ac_n "(cached) $ac_c" 1>&6
6896 else
6897   
6898       
6899       ac_ext=C
6900 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6901 ac_cpp='$CXXCPP $CPPFLAGS'
6902 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6903 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6904 cross_compiling=$ac_cv_prog_cxx_cross
6905
6906       cat > conftest.$ac_ext <<EOF
6907 #line 6908 "configure"
6908 #include "confdefs.h"
6909 #include <math.h>
6910                       #ifdef HAVE_IEEEFP_H
6911                       #include <ieeefp.h>
6912                       #endif
6913                      
6914 int main() {
6915  _finite(0);
6916 ; return 0; }
6917 EOF
6918 if { (eval echo configure:6919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6919   rm -rf conftest*
6920   glibcpp_cv_func__finite_use=yes
6921 else
6922   echo "configure: failed program was:" >&5
6923   cat conftest.$ac_ext >&5
6924   rm -rf conftest*
6925   glibcpp_cv_func__finite_use=no
6926 fi
6927 rm -f conftest*
6928       ac_ext=c
6929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6930 ac_cpp='$CPP $CPPFLAGS'
6931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6932 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6933 cross_compiling=$ac_cv_prog_cc_cross
6934
6935     
6936 fi
6937
6938   fi
6939   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
6940
6941     if test x$glibcpp_cv_func__finite_use = x"yes"; then
6942       for ac_func in _finite
6943 do
6944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6945 echo "configure:6946: checking for $ac_func" >&5
6946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6947   echo $ac_n "(cached) $ac_c" 1>&6
6948 else
6949   cat > conftest.$ac_ext <<EOF
6950 #line 6951 "configure"
6951 #include "confdefs.h"
6952 /* System header to define __stub macros and hopefully few prototypes,
6953     which can conflict with char $ac_func(); below.  */
6954 #include <assert.h>
6955 /* Override any gcc2 internal prototype to avoid an error.  */
6956 /* We use char because int might match the return type of a gcc2
6957     builtin and then its argument prototype would still apply.  */
6958 char $ac_func();
6959
6960 int main() {
6961
6962 /* The GNU C library defines this for functions which it implements
6963     to always fail with ENOSYS.  Some functions are actually named
6964     something starting with __ and the normal name is an alias.  */
6965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6966 choke me
6967 #else
6968 $ac_func();
6969 #endif
6970
6971 ; return 0; }
6972 EOF
6973 if { (eval echo configure:6974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6974   rm -rf conftest*
6975   eval "ac_cv_func_$ac_func=yes"
6976 else
6977   echo "configure: failed program was:" >&5
6978   cat conftest.$ac_ext >&5
6979   rm -rf conftest*
6980   eval "ac_cv_func_$ac_func=no"
6981 fi
6982 rm -f conftest*
6983 fi
6984
6985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6986   echo "$ac_t""yes" 1>&6
6987     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6988   cat >> confdefs.h <<EOF
6989 #define $ac_tr_func 1
6990 EOF
6991  
6992 else
6993   echo "$ac_t""no" 1>&6
6994 fi
6995 done
6996     
6997     fi
6998   fi
6999
7000   
7001   
7002   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7003 echo "configure:7004: checking for copysign declaration" >&5
7004   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7005     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7006   echo $ac_n "(cached) $ac_c" 1>&6
7007 else
7008   
7009       
7010       ac_ext=C
7011 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7012 ac_cpp='$CXXCPP $CPPFLAGS'
7013 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7014 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7015 cross_compiling=$ac_cv_prog_cxx_cross
7016
7017       cat > conftest.$ac_ext <<EOF
7018 #line 7019 "configure"
7019 #include "confdefs.h"
7020 #include <math.h>
7021 int main() {
7022  copysign(0, 0);
7023 ; return 0; }
7024 EOF
7025 if { (eval echo configure:7026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7026   rm -rf conftest*
7027   glibcpp_cv_func_copysign_use=yes
7028 else
7029   echo "configure: failed program was:" >&5
7030   cat conftest.$ac_ext >&5
7031   rm -rf conftest*
7032   glibcpp_cv_func_copysign_use=no
7033 fi
7034 rm -f conftest*
7035       ac_ext=c
7036 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7037 ac_cpp='$CPP $CPPFLAGS'
7038 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7039 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7040 cross_compiling=$ac_cv_prog_cc_cross
7041
7042     
7043 fi
7044
7045   fi
7046   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7047
7048   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7049     for ac_func in copysign
7050 do
7051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7052 echo "configure:7053: checking for $ac_func" >&5
7053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7054   echo $ac_n "(cached) $ac_c" 1>&6
7055 else
7056   cat > conftest.$ac_ext <<EOF
7057 #line 7058 "configure"
7058 #include "confdefs.h"
7059 /* System header to define __stub macros and hopefully few prototypes,
7060     which can conflict with char $ac_func(); below.  */
7061 #include <assert.h>
7062 /* Override any gcc2 internal prototype to avoid an error.  */
7063 /* We use char because int might match the return type of a gcc2
7064     builtin and then its argument prototype would still apply.  */
7065 char $ac_func();
7066
7067 int main() {
7068
7069 /* The GNU C library defines this for functions which it implements
7070     to always fail with ENOSYS.  Some functions are actually named
7071     something starting with __ and the normal name is an alias.  */
7072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7073 choke me
7074 #else
7075 $ac_func();
7076 #endif
7077
7078 ; return 0; }
7079 EOF
7080 if { (eval echo configure:7081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7081   rm -rf conftest*
7082   eval "ac_cv_func_$ac_func=yes"
7083 else
7084   echo "configure: failed program was:" >&5
7085   cat conftest.$ac_ext >&5
7086   rm -rf conftest*
7087   eval "ac_cv_func_$ac_func=no"
7088 fi
7089 rm -f conftest*
7090 fi
7091
7092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7093   echo "$ac_t""yes" 1>&6
7094     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7095   cat >> confdefs.h <<EOF
7096 #define $ac_tr_func 1
7097 EOF
7098  
7099 else
7100   echo "$ac_t""no" 1>&6
7101 fi
7102 done
7103     
7104   else
7105     
7106   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7107 echo "configure:7108: checking for _copysign declaration" >&5
7108   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7109     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7110   echo $ac_n "(cached) $ac_c" 1>&6
7111 else
7112   
7113       
7114       ac_ext=C
7115 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7116 ac_cpp='$CXXCPP $CPPFLAGS'
7117 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7118 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7119 cross_compiling=$ac_cv_prog_cxx_cross
7120
7121       cat > conftest.$ac_ext <<EOF
7122 #line 7123 "configure"
7123 #include "confdefs.h"
7124 #include <math.h>
7125 int main() {
7126  _copysign(0, 0);
7127 ; return 0; }
7128 EOF
7129 if { (eval echo configure:7130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7130   rm -rf conftest*
7131   glibcpp_cv_func__copysign_use=yes
7132 else
7133   echo "configure: failed program was:" >&5
7134   cat conftest.$ac_ext >&5
7135   rm -rf conftest*
7136   glibcpp_cv_func__copysign_use=no
7137 fi
7138 rm -f conftest*
7139       ac_ext=c
7140 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7141 ac_cpp='$CPP $CPPFLAGS'
7142 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7143 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7144 cross_compiling=$ac_cv_prog_cc_cross
7145
7146     
7147 fi
7148
7149   fi
7150   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7151
7152     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7153       for ac_func in _copysign
7154 do
7155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7156 echo "configure:7157: checking for $ac_func" >&5
7157 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7158   echo $ac_n "(cached) $ac_c" 1>&6
7159 else
7160   cat > conftest.$ac_ext <<EOF
7161 #line 7162 "configure"
7162 #include "confdefs.h"
7163 /* System header to define __stub macros and hopefully few prototypes,
7164     which can conflict with char $ac_func(); below.  */
7165 #include <assert.h>
7166 /* Override any gcc2 internal prototype to avoid an error.  */
7167 /* We use char because int might match the return type of a gcc2
7168     builtin and then its argument prototype would still apply.  */
7169 char $ac_func();
7170
7171 int main() {
7172
7173 /* The GNU C library defines this for functions which it implements
7174     to always fail with ENOSYS.  Some functions are actually named
7175     something starting with __ and the normal name is an alias.  */
7176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7177 choke me
7178 #else
7179 $ac_func();
7180 #endif
7181
7182 ; return 0; }
7183 EOF
7184 if { (eval echo configure:7185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7185   rm -rf conftest*
7186   eval "ac_cv_func_$ac_func=yes"
7187 else
7188   echo "configure: failed program was:" >&5
7189   cat conftest.$ac_ext >&5
7190   rm -rf conftest*
7191   eval "ac_cv_func_$ac_func=no"
7192 fi
7193 rm -f conftest*
7194 fi
7195
7196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7197   echo "$ac_t""yes" 1>&6
7198     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7199   cat >> confdefs.h <<EOF
7200 #define $ac_tr_func 1
7201 EOF
7202  
7203 else
7204   echo "$ac_t""no" 1>&6
7205 fi
7206 done
7207     
7208     fi
7209   fi
7210
7211   
7212   
7213   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7214 echo "configure:7215: checking for sincos declaration" >&5
7215   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7216     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7217   echo $ac_n "(cached) $ac_c" 1>&6
7218 else
7219   
7220       
7221       ac_ext=C
7222 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7223 ac_cpp='$CXXCPP $CPPFLAGS'
7224 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7225 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7226 cross_compiling=$ac_cv_prog_cxx_cross
7227
7228       cat > conftest.$ac_ext <<EOF
7229 #line 7230 "configure"
7230 #include "confdefs.h"
7231 #include <math.h>
7232 int main() {
7233  sincos(0, 0, 0);
7234 ; return 0; }
7235 EOF
7236 if { (eval echo configure:7237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7237   rm -rf conftest*
7238   glibcpp_cv_func_sincos_use=yes
7239 else
7240   echo "configure: failed program was:" >&5
7241   cat conftest.$ac_ext >&5
7242   rm -rf conftest*
7243   glibcpp_cv_func_sincos_use=no
7244 fi
7245 rm -f conftest*
7246       ac_ext=c
7247 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7248 ac_cpp='$CPP $CPPFLAGS'
7249 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7250 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7251 cross_compiling=$ac_cv_prog_cc_cross
7252
7253     
7254 fi
7255
7256   fi
7257   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7258
7259   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7260     for ac_func in sincos
7261 do
7262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7263 echo "configure:7264: checking for $ac_func" >&5
7264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7265   echo $ac_n "(cached) $ac_c" 1>&6
7266 else
7267   cat > conftest.$ac_ext <<EOF
7268 #line 7269 "configure"
7269 #include "confdefs.h"
7270 /* System header to define __stub macros and hopefully few prototypes,
7271     which can conflict with char $ac_func(); below.  */
7272 #include <assert.h>
7273 /* Override any gcc2 internal prototype to avoid an error.  */
7274 /* We use char because int might match the return type of a gcc2
7275     builtin and then its argument prototype would still apply.  */
7276 char $ac_func();
7277
7278 int main() {
7279
7280 /* The GNU C library defines this for functions which it implements
7281     to always fail with ENOSYS.  Some functions are actually named
7282     something starting with __ and the normal name is an alias.  */
7283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7284 choke me
7285 #else
7286 $ac_func();
7287 #endif
7288
7289 ; return 0; }
7290 EOF
7291 if { (eval echo configure:7292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7292   rm -rf conftest*
7293   eval "ac_cv_func_$ac_func=yes"
7294 else
7295   echo "configure: failed program was:" >&5
7296   cat conftest.$ac_ext >&5
7297   rm -rf conftest*
7298   eval "ac_cv_func_$ac_func=no"
7299 fi
7300 rm -f conftest*
7301 fi
7302
7303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7304   echo "$ac_t""yes" 1>&6
7305     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7306   cat >> confdefs.h <<EOF
7307 #define $ac_tr_func 1
7308 EOF
7309  
7310 else
7311   echo "$ac_t""no" 1>&6
7312 fi
7313 done
7314     
7315   else
7316     
7317   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7318 echo "configure:7319: checking for _sincos declaration" >&5
7319   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7320     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7321   echo $ac_n "(cached) $ac_c" 1>&6
7322 else
7323   
7324       
7325       ac_ext=C
7326 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7327 ac_cpp='$CXXCPP $CPPFLAGS'
7328 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7329 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7330 cross_compiling=$ac_cv_prog_cxx_cross
7331
7332       cat > conftest.$ac_ext <<EOF
7333 #line 7334 "configure"
7334 #include "confdefs.h"
7335 #include <math.h>
7336 int main() {
7337  _sincos(0, 0, 0);
7338 ; return 0; }
7339 EOF
7340 if { (eval echo configure:7341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7341   rm -rf conftest*
7342   glibcpp_cv_func__sincos_use=yes
7343 else
7344   echo "configure: failed program was:" >&5
7345   cat conftest.$ac_ext >&5
7346   rm -rf conftest*
7347   glibcpp_cv_func__sincos_use=no
7348 fi
7349 rm -f conftest*
7350       ac_ext=c
7351 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7352 ac_cpp='$CPP $CPPFLAGS'
7353 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7354 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7355 cross_compiling=$ac_cv_prog_cc_cross
7356
7357     
7358 fi
7359
7360   fi
7361   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7362
7363     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7364       for ac_func in _sincos
7365 do
7366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7367 echo "configure:7368: checking for $ac_func" >&5
7368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7369   echo $ac_n "(cached) $ac_c" 1>&6
7370 else
7371   cat > conftest.$ac_ext <<EOF
7372 #line 7373 "configure"
7373 #include "confdefs.h"
7374 /* System header to define __stub macros and hopefully few prototypes,
7375     which can conflict with char $ac_func(); below.  */
7376 #include <assert.h>
7377 /* Override any gcc2 internal prototype to avoid an error.  */
7378 /* We use char because int might match the return type of a gcc2
7379     builtin and then its argument prototype would still apply.  */
7380 char $ac_func();
7381
7382 int main() {
7383
7384 /* The GNU C library defines this for functions which it implements
7385     to always fail with ENOSYS.  Some functions are actually named
7386     something starting with __ and the normal name is an alias.  */
7387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7388 choke me
7389 #else
7390 $ac_func();
7391 #endif
7392
7393 ; return 0; }
7394 EOF
7395 if { (eval echo configure:7396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7396   rm -rf conftest*
7397   eval "ac_cv_func_$ac_func=yes"
7398 else
7399   echo "configure: failed program was:" >&5
7400   cat conftest.$ac_ext >&5
7401   rm -rf conftest*
7402   eval "ac_cv_func_$ac_func=no"
7403 fi
7404 rm -f conftest*
7405 fi
7406
7407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7408   echo "$ac_t""yes" 1>&6
7409     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7410   cat >> confdefs.h <<EOF
7411 #define $ac_tr_func 1
7412 EOF
7413  
7414 else
7415   echo "$ac_t""no" 1>&6
7416 fi
7417 done
7418     
7419     fi
7420   fi
7421
7422   
7423   
7424   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7425 echo "configure:7426: checking for fpclass declaration" >&5
7426   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7427     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7428   echo $ac_n "(cached) $ac_c" 1>&6
7429 else
7430   
7431       
7432       ac_ext=C
7433 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7434 ac_cpp='$CXXCPP $CPPFLAGS'
7435 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7436 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7437 cross_compiling=$ac_cv_prog_cxx_cross
7438
7439       cat > conftest.$ac_ext <<EOF
7440 #line 7441 "configure"
7441 #include "confdefs.h"
7442 #include <math.h>
7443                       #ifdef HAVE_IEEEFP_H
7444                       #include <ieeefp.h>
7445                       #endif
7446                      
7447 int main() {
7448  fpclass(0);
7449 ; return 0; }
7450 EOF
7451 if { (eval echo configure:7452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7452   rm -rf conftest*
7453   glibcpp_cv_func_fpclass_use=yes
7454 else
7455   echo "configure: failed program was:" >&5
7456   cat conftest.$ac_ext >&5
7457   rm -rf conftest*
7458   glibcpp_cv_func_fpclass_use=no
7459 fi
7460 rm -f conftest*
7461       ac_ext=c
7462 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7463 ac_cpp='$CPP $CPPFLAGS'
7464 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7465 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7466 cross_compiling=$ac_cv_prog_cc_cross
7467
7468     
7469 fi
7470
7471   fi
7472   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7473
7474   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7475     for ac_func in fpclass
7476 do
7477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7478 echo "configure:7479: checking for $ac_func" >&5
7479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7480   echo $ac_n "(cached) $ac_c" 1>&6
7481 else
7482   cat > conftest.$ac_ext <<EOF
7483 #line 7484 "configure"
7484 #include "confdefs.h"
7485 /* System header to define __stub macros and hopefully few prototypes,
7486     which can conflict with char $ac_func(); below.  */
7487 #include <assert.h>
7488 /* Override any gcc2 internal prototype to avoid an error.  */
7489 /* We use char because int might match the return type of a gcc2
7490     builtin and then its argument prototype would still apply.  */
7491 char $ac_func();
7492
7493 int main() {
7494
7495 /* The GNU C library defines this for functions which it implements
7496     to always fail with ENOSYS.  Some functions are actually named
7497     something starting with __ and the normal name is an alias.  */
7498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7499 choke me
7500 #else
7501 $ac_func();
7502 #endif
7503
7504 ; return 0; }
7505 EOF
7506 if { (eval echo configure:7507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7507   rm -rf conftest*
7508   eval "ac_cv_func_$ac_func=yes"
7509 else
7510   echo "configure: failed program was:" >&5
7511   cat conftest.$ac_ext >&5
7512   rm -rf conftest*
7513   eval "ac_cv_func_$ac_func=no"
7514 fi
7515 rm -f conftest*
7516 fi
7517
7518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7519   echo "$ac_t""yes" 1>&6
7520     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7521   cat >> confdefs.h <<EOF
7522 #define $ac_tr_func 1
7523 EOF
7524  
7525 else
7526   echo "$ac_t""no" 1>&6
7527 fi
7528 done
7529     
7530   else
7531     
7532   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7533 echo "configure:7534: checking for _fpclass declaration" >&5
7534   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7535     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7536   echo $ac_n "(cached) $ac_c" 1>&6
7537 else
7538   
7539       
7540       ac_ext=C
7541 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7542 ac_cpp='$CXXCPP $CPPFLAGS'
7543 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7544 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7545 cross_compiling=$ac_cv_prog_cxx_cross
7546
7547       cat > conftest.$ac_ext <<EOF
7548 #line 7549 "configure"
7549 #include "confdefs.h"
7550 #include <math.h>
7551                       #ifdef HAVE_IEEEFP_H
7552                       #include <ieeefp.h>
7553                       #endif
7554                      
7555 int main() {
7556  _fpclass(0);
7557 ; return 0; }
7558 EOF
7559 if { (eval echo configure:7560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7560   rm -rf conftest*
7561   glibcpp_cv_func__fpclass_use=yes
7562 else
7563   echo "configure: failed program was:" >&5
7564   cat conftest.$ac_ext >&5
7565   rm -rf conftest*
7566   glibcpp_cv_func__fpclass_use=no
7567 fi
7568 rm -f conftest*
7569       ac_ext=c
7570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7571 ac_cpp='$CPP $CPPFLAGS'
7572 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7573 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7574 cross_compiling=$ac_cv_prog_cc_cross
7575
7576     
7577 fi
7578
7579   fi
7580   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7581
7582     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7583       for ac_func in _fpclass
7584 do
7585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7586 echo "configure:7587: checking for $ac_func" >&5
7587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7588   echo $ac_n "(cached) $ac_c" 1>&6
7589 else
7590   cat > conftest.$ac_ext <<EOF
7591 #line 7592 "configure"
7592 #include "confdefs.h"
7593 /* System header to define __stub macros and hopefully few prototypes,
7594     which can conflict with char $ac_func(); below.  */
7595 #include <assert.h>
7596 /* Override any gcc2 internal prototype to avoid an error.  */
7597 /* We use char because int might match the return type of a gcc2
7598     builtin and then its argument prototype would still apply.  */
7599 char $ac_func();
7600
7601 int main() {
7602
7603 /* The GNU C library defines this for functions which it implements
7604     to always fail with ENOSYS.  Some functions are actually named
7605     something starting with __ and the normal name is an alias.  */
7606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7607 choke me
7608 #else
7609 $ac_func();
7610 #endif
7611
7612 ; return 0; }
7613 EOF
7614 if { (eval echo configure:7615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7615   rm -rf conftest*
7616   eval "ac_cv_func_$ac_func=yes"
7617 else
7618   echo "configure: failed program was:" >&5
7619   cat conftest.$ac_ext >&5
7620   rm -rf conftest*
7621   eval "ac_cv_func_$ac_func=no"
7622 fi
7623 rm -f conftest*
7624 fi
7625
7626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7627   echo "$ac_t""yes" 1>&6
7628     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7629   cat >> confdefs.h <<EOF
7630 #define $ac_tr_func 1
7631 EOF
7632  
7633 else
7634   echo "$ac_t""no" 1>&6
7635 fi
7636 done
7637     
7638     fi
7639   fi
7640
7641   
7642   
7643   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7644 echo "configure:7645: checking for qfpclass declaration" >&5
7645   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7646     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7647   echo $ac_n "(cached) $ac_c" 1>&6
7648 else
7649   
7650       
7651       ac_ext=C
7652 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7653 ac_cpp='$CXXCPP $CPPFLAGS'
7654 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7655 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7656 cross_compiling=$ac_cv_prog_cxx_cross
7657
7658       cat > conftest.$ac_ext <<EOF
7659 #line 7660 "configure"
7660 #include "confdefs.h"
7661 #include <math.h>
7662                       #ifdef HAVE_IEEEFP_H
7663                       #include <ieeefp.h>
7664                       #endif
7665                      
7666 int main() {
7667  qfpclass(0);
7668 ; return 0; }
7669 EOF
7670 if { (eval echo configure:7671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7671   rm -rf conftest*
7672   glibcpp_cv_func_qfpclass_use=yes
7673 else
7674   echo "configure: failed program was:" >&5
7675   cat conftest.$ac_ext >&5
7676   rm -rf conftest*
7677   glibcpp_cv_func_qfpclass_use=no
7678 fi
7679 rm -f conftest*
7680       ac_ext=c
7681 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7682 ac_cpp='$CPP $CPPFLAGS'
7683 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7684 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7685 cross_compiling=$ac_cv_prog_cc_cross
7686
7687     
7688 fi
7689
7690   fi
7691   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7692
7693   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7694     for ac_func in qfpclass
7695 do
7696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7697 echo "configure:7698: checking for $ac_func" >&5
7698 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7699   echo $ac_n "(cached) $ac_c" 1>&6
7700 else
7701   cat > conftest.$ac_ext <<EOF
7702 #line 7703 "configure"
7703 #include "confdefs.h"
7704 /* System header to define __stub macros and hopefully few prototypes,
7705     which can conflict with char $ac_func(); below.  */
7706 #include <assert.h>
7707 /* Override any gcc2 internal prototype to avoid an error.  */
7708 /* We use char because int might match the return type of a gcc2
7709     builtin and then its argument prototype would still apply.  */
7710 char $ac_func();
7711
7712 int main() {
7713
7714 /* The GNU C library defines this for functions which it implements
7715     to always fail with ENOSYS.  Some functions are actually named
7716     something starting with __ and the normal name is an alias.  */
7717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7718 choke me
7719 #else
7720 $ac_func();
7721 #endif
7722
7723 ; return 0; }
7724 EOF
7725 if { (eval echo configure:7726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7726   rm -rf conftest*
7727   eval "ac_cv_func_$ac_func=yes"
7728 else
7729   echo "configure: failed program was:" >&5
7730   cat conftest.$ac_ext >&5
7731   rm -rf conftest*
7732   eval "ac_cv_func_$ac_func=no"
7733 fi
7734 rm -f conftest*
7735 fi
7736
7737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7738   echo "$ac_t""yes" 1>&6
7739     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7740   cat >> confdefs.h <<EOF
7741 #define $ac_tr_func 1
7742 EOF
7743  
7744 else
7745   echo "$ac_t""no" 1>&6
7746 fi
7747 done
7748     
7749   else
7750     
7751   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7752 echo "configure:7753: checking for _qfpclass declaration" >&5
7753   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7754     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7755   echo $ac_n "(cached) $ac_c" 1>&6
7756 else
7757   
7758       
7759       ac_ext=C
7760 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7761 ac_cpp='$CXXCPP $CPPFLAGS'
7762 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7763 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7764 cross_compiling=$ac_cv_prog_cxx_cross
7765
7766       cat > conftest.$ac_ext <<EOF
7767 #line 7768 "configure"
7768 #include "confdefs.h"
7769 #include <math.h>
7770                       #ifdef HAVE_IEEEFP_H
7771                       #include <ieeefp.h>
7772                       #endif
7773                      
7774 int main() {
7775  _qfpclass(0);
7776 ; return 0; }
7777 EOF
7778 if { (eval echo configure:7779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7779   rm -rf conftest*
7780   glibcpp_cv_func__qfpclass_use=yes
7781 else
7782   echo "configure: failed program was:" >&5
7783   cat conftest.$ac_ext >&5
7784   rm -rf conftest*
7785   glibcpp_cv_func__qfpclass_use=no
7786 fi
7787 rm -f conftest*
7788       ac_ext=c
7789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7790 ac_cpp='$CPP $CPPFLAGS'
7791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7793 cross_compiling=$ac_cv_prog_cc_cross
7794
7795     
7796 fi
7797
7798   fi
7799   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7800
7801     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7802       for ac_func in _qfpclass
7803 do
7804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7805 echo "configure:7806: checking for $ac_func" >&5
7806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7807   echo $ac_n "(cached) $ac_c" 1>&6
7808 else
7809   cat > conftest.$ac_ext <<EOF
7810 #line 7811 "configure"
7811 #include "confdefs.h"
7812 /* System header to define __stub macros and hopefully few prototypes,
7813     which can conflict with char $ac_func(); below.  */
7814 #include <assert.h>
7815 /* Override any gcc2 internal prototype to avoid an error.  */
7816 /* We use char because int might match the return type of a gcc2
7817     builtin and then its argument prototype would still apply.  */
7818 char $ac_func();
7819
7820 int main() {
7821
7822 /* The GNU C library defines this for functions which it implements
7823     to always fail with ENOSYS.  Some functions are actually named
7824     something starting with __ and the normal name is an alias.  */
7825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7826 choke me
7827 #else
7828 $ac_func();
7829 #endif
7830
7831 ; return 0; }
7832 EOF
7833 if { (eval echo configure:7834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7834   rm -rf conftest*
7835   eval "ac_cv_func_$ac_func=yes"
7836 else
7837   echo "configure: failed program was:" >&5
7838   cat conftest.$ac_ext >&5
7839   rm -rf conftest*
7840   eval "ac_cv_func_$ac_func=no"
7841 fi
7842 rm -f conftest*
7843 fi
7844
7845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7846   echo "$ac_t""yes" 1>&6
7847     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7848   cat >> confdefs.h <<EOF
7849 #define $ac_tr_func 1
7850 EOF
7851  
7852 else
7853   echo "$ac_t""no" 1>&6
7854 fi
7855 done
7856     
7857     fi
7858   fi
7859
7860
7861     
7862   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
7863 echo "configure:7864: checking for float trig functions" >&5
7864   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
7865   echo $ac_n "(cached) $ac_c" 1>&6
7866 else
7867   
7868     
7869     ac_ext=C
7870 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7871 ac_cpp='$CXXCPP $CPPFLAGS'
7872 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7873 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7874 cross_compiling=$ac_cv_prog_cxx_cross
7875
7876     cat > conftest.$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7879 #include <math.h>
7880 int main() {
7881  `for x in acosf asinf atanf \
7882                                           cosf sinf tanf \
7883                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
7884 ; return 0; }
7885 EOF
7886 if { (eval echo configure:7887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7887   rm -rf conftest*
7888   glibcpp_cv_func_float_trig_use=yes
7889 else
7890   echo "configure: failed program was:" >&5
7891   cat conftest.$ac_ext >&5
7892   rm -rf conftest*
7893   glibcpp_cv_func_float_trig_use=no
7894 fi
7895 rm -f conftest*
7896     ac_ext=c
7897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7898 ac_cpp='$CPP $CPPFLAGS'
7899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7901 cross_compiling=$ac_cv_prog_cc_cross
7902
7903 fi
7904
7905   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
7906   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
7907     for ac_func in acosf asinf atanf \
7908                                           cosf sinf tanf \
7909                                           coshf sinhf tanhf
7910 do
7911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7912 echo "configure:7913: checking for $ac_func" >&5
7913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7914   echo $ac_n "(cached) $ac_c" 1>&6
7915 else
7916   cat > conftest.$ac_ext <<EOF
7917 #line 7918 "configure"
7918 #include "confdefs.h"
7919 /* System header to define __stub macros and hopefully few prototypes,
7920     which can conflict with char $ac_func(); below.  */
7921 #include <assert.h>
7922 /* Override any gcc2 internal prototype to avoid an error.  */
7923 /* We use char because int might match the return type of a gcc2
7924     builtin and then its argument prototype would still apply.  */
7925 char $ac_func();
7926
7927 int main() {
7928
7929 /* The GNU C library defines this for functions which it implements
7930     to always fail with ENOSYS.  Some functions are actually named
7931     something starting with __ and the normal name is an alias.  */
7932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7933 choke me
7934 #else
7935 $ac_func();
7936 #endif
7937
7938 ; return 0; }
7939 EOF
7940 if { (eval echo configure:7941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7941   rm -rf conftest*
7942   eval "ac_cv_func_$ac_func=yes"
7943 else
7944   echo "configure: failed program was:" >&5
7945   cat conftest.$ac_ext >&5
7946   rm -rf conftest*
7947   eval "ac_cv_func_$ac_func=no"
7948 fi
7949 rm -f conftest*
7950 fi
7951
7952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7953   echo "$ac_t""yes" 1>&6
7954     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7955   cat >> confdefs.h <<EOF
7956 #define $ac_tr_func 1
7957 EOF
7958  
7959 else
7960   echo "$ac_t""no" 1>&6
7961 fi
7962 done
7963
7964   fi
7965
7966   
7967   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
7968 echo "configure:7969: checking for float round functions" >&5
7969   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
7970   echo $ac_n "(cached) $ac_c" 1>&6
7971 else
7972   
7973     
7974     ac_ext=C
7975 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7976 ac_cpp='$CXXCPP $CPPFLAGS'
7977 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7978 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7979 cross_compiling=$ac_cv_prog_cxx_cross
7980
7981     cat > conftest.$ac_ext <<EOF
7982 #line 7983 "configure"
7983 #include "confdefs.h"
7984 #include <math.h>
7985 int main() {
7986  `for x in ceilf floorf; do echo "$x (0);"; done` 
7987 ; return 0; }
7988 EOF
7989 if { (eval echo configure:7990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7990   rm -rf conftest*
7991   glibcpp_cv_func_float_round_use=yes
7992 else
7993   echo "configure: failed program was:" >&5
7994   cat conftest.$ac_ext >&5
7995   rm -rf conftest*
7996   glibcpp_cv_func_float_round_use=no
7997 fi
7998 rm -f conftest*
7999     ac_ext=c
8000 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8001 ac_cpp='$CPP $CPPFLAGS'
8002 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8003 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8004 cross_compiling=$ac_cv_prog_cc_cross
8005
8006 fi
8007
8008   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8009   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8010     for ac_func in ceilf floorf
8011 do
8012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8013 echo "configure:8014: checking for $ac_func" >&5
8014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8015   echo $ac_n "(cached) $ac_c" 1>&6
8016 else
8017   cat > conftest.$ac_ext <<EOF
8018 #line 8019 "configure"
8019 #include "confdefs.h"
8020 /* System header to define __stub macros and hopefully few prototypes,
8021     which can conflict with char $ac_func(); below.  */
8022 #include <assert.h>
8023 /* Override any gcc2 internal prototype to avoid an error.  */
8024 /* We use char because int might match the return type of a gcc2
8025     builtin and then its argument prototype would still apply.  */
8026 char $ac_func();
8027
8028 int main() {
8029
8030 /* The GNU C library defines this for functions which it implements
8031     to always fail with ENOSYS.  Some functions are actually named
8032     something starting with __ and the normal name is an alias.  */
8033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8034 choke me
8035 #else
8036 $ac_func();
8037 #endif
8038
8039 ; return 0; }
8040 EOF
8041 if { (eval echo configure:8042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8042   rm -rf conftest*
8043   eval "ac_cv_func_$ac_func=yes"
8044 else
8045   echo "configure: failed program was:" >&5
8046   cat conftest.$ac_ext >&5
8047   rm -rf conftest*
8048   eval "ac_cv_func_$ac_func=no"
8049 fi
8050 rm -f conftest*
8051 fi
8052
8053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8054   echo "$ac_t""yes" 1>&6
8055     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8056   cat >> confdefs.h <<EOF
8057 #define $ac_tr_func 1
8058 EOF
8059  
8060 else
8061   echo "$ac_t""no" 1>&6
8062 fi
8063 done
8064
8065   fi
8066
8067   
8068   
8069   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8070 echo "configure:8071: checking for isnanf declaration" >&5
8071   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8072     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8073   echo $ac_n "(cached) $ac_c" 1>&6
8074 else
8075   
8076       
8077       ac_ext=C
8078 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8079 ac_cpp='$CXXCPP $CPPFLAGS'
8080 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8081 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8082 cross_compiling=$ac_cv_prog_cxx_cross
8083
8084       cat > conftest.$ac_ext <<EOF
8085 #line 8086 "configure"
8086 #include "confdefs.h"
8087 #include <math.h>
8088                       #ifdef HAVE_IEEEFP_H
8089                       #include <ieeefp.h>
8090                       #endif
8091                      
8092 int main() {
8093  isnanf(0);
8094 ; return 0; }
8095 EOF
8096 if { (eval echo configure:8097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8097   rm -rf conftest*
8098   glibcpp_cv_func_isnanf_use=yes
8099 else
8100   echo "configure: failed program was:" >&5
8101   cat conftest.$ac_ext >&5
8102   rm -rf conftest*
8103   glibcpp_cv_func_isnanf_use=no
8104 fi
8105 rm -f conftest*
8106       ac_ext=c
8107 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8108 ac_cpp='$CPP $CPPFLAGS'
8109 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8110 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8111 cross_compiling=$ac_cv_prog_cc_cross
8112
8113     
8114 fi
8115
8116   fi
8117   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8118
8119   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8120     for ac_func in isnanf
8121 do
8122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8123 echo "configure:8124: checking for $ac_func" >&5
8124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8125   echo $ac_n "(cached) $ac_c" 1>&6
8126 else
8127   cat > conftest.$ac_ext <<EOF
8128 #line 8129 "configure"
8129 #include "confdefs.h"
8130 /* System header to define __stub macros and hopefully few prototypes,
8131     which can conflict with char $ac_func(); below.  */
8132 #include <assert.h>
8133 /* Override any gcc2 internal prototype to avoid an error.  */
8134 /* We use char because int might match the return type of a gcc2
8135     builtin and then its argument prototype would still apply.  */
8136 char $ac_func();
8137
8138 int main() {
8139
8140 /* The GNU C library defines this for functions which it implements
8141     to always fail with ENOSYS.  Some functions are actually named
8142     something starting with __ and the normal name is an alias.  */
8143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8144 choke me
8145 #else
8146 $ac_func();
8147 #endif
8148
8149 ; return 0; }
8150 EOF
8151 if { (eval echo configure:8152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8152   rm -rf conftest*
8153   eval "ac_cv_func_$ac_func=yes"
8154 else
8155   echo "configure: failed program was:" >&5
8156   cat conftest.$ac_ext >&5
8157   rm -rf conftest*
8158   eval "ac_cv_func_$ac_func=no"
8159 fi
8160 rm -f conftest*
8161 fi
8162
8163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8164   echo "$ac_t""yes" 1>&6
8165     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8166   cat >> confdefs.h <<EOF
8167 #define $ac_tr_func 1
8168 EOF
8169  
8170 else
8171   echo "$ac_t""no" 1>&6
8172 fi
8173 done
8174     
8175   else
8176     
8177   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8178 echo "configure:8179: checking for _isnanf declaration" >&5
8179   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8180     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8181   echo $ac_n "(cached) $ac_c" 1>&6
8182 else
8183   
8184       
8185       ac_ext=C
8186 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8187 ac_cpp='$CXXCPP $CPPFLAGS'
8188 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8189 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8190 cross_compiling=$ac_cv_prog_cxx_cross
8191
8192       cat > conftest.$ac_ext <<EOF
8193 #line 8194 "configure"
8194 #include "confdefs.h"
8195 #include <math.h>
8196                       #ifdef HAVE_IEEEFP_H
8197                       #include <ieeefp.h>
8198                       #endif
8199                      
8200 int main() {
8201  _isnanf(0);
8202 ; return 0; }
8203 EOF
8204 if { (eval echo configure:8205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8205   rm -rf conftest*
8206   glibcpp_cv_func__isnanf_use=yes
8207 else
8208   echo "configure: failed program was:" >&5
8209   cat conftest.$ac_ext >&5
8210   rm -rf conftest*
8211   glibcpp_cv_func__isnanf_use=no
8212 fi
8213 rm -f conftest*
8214       ac_ext=c
8215 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8216 ac_cpp='$CPP $CPPFLAGS'
8217 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8218 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8219 cross_compiling=$ac_cv_prog_cc_cross
8220
8221     
8222 fi
8223
8224   fi
8225   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8226
8227     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8228       for ac_func in _isnanf
8229 do
8230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8231 echo "configure:8232: checking for $ac_func" >&5
8232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8233   echo $ac_n "(cached) $ac_c" 1>&6
8234 else
8235   cat > conftest.$ac_ext <<EOF
8236 #line 8237 "configure"
8237 #include "confdefs.h"
8238 /* System header to define __stub macros and hopefully few prototypes,
8239     which can conflict with char $ac_func(); below.  */
8240 #include <assert.h>
8241 /* Override any gcc2 internal prototype to avoid an error.  */
8242 /* We use char because int might match the return type of a gcc2
8243     builtin and then its argument prototype would still apply.  */
8244 char $ac_func();
8245
8246 int main() {
8247
8248 /* The GNU C library defines this for functions which it implements
8249     to always fail with ENOSYS.  Some functions are actually named
8250     something starting with __ and the normal name is an alias.  */
8251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8252 choke me
8253 #else
8254 $ac_func();
8255 #endif
8256
8257 ; return 0; }
8258 EOF
8259 if { (eval echo configure:8260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8260   rm -rf conftest*
8261   eval "ac_cv_func_$ac_func=yes"
8262 else
8263   echo "configure: failed program was:" >&5
8264   cat conftest.$ac_ext >&5
8265   rm -rf conftest*
8266   eval "ac_cv_func_$ac_func=no"
8267 fi
8268 rm -f conftest*
8269 fi
8270
8271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8272   echo "$ac_t""yes" 1>&6
8273     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8274   cat >> confdefs.h <<EOF
8275 #define $ac_tr_func 1
8276 EOF
8277  
8278 else
8279   echo "$ac_t""no" 1>&6
8280 fi
8281 done
8282     
8283     fi
8284   fi
8285
8286   
8287   
8288   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8289 echo "configure:8290: checking for isinff declaration" >&5
8290   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8291     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8292   echo $ac_n "(cached) $ac_c" 1>&6
8293 else
8294   
8295       
8296       ac_ext=C
8297 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8298 ac_cpp='$CXXCPP $CPPFLAGS'
8299 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8300 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8301 cross_compiling=$ac_cv_prog_cxx_cross
8302
8303       cat > conftest.$ac_ext <<EOF
8304 #line 8305 "configure"
8305 #include "confdefs.h"
8306 #include <math.h>
8307                       #ifdef HAVE_IEEEFP_H
8308                       #include <ieeefp.h>
8309                       #endif
8310                      
8311 int main() {
8312  isinff(0);
8313 ; return 0; }
8314 EOF
8315 if { (eval echo configure:8316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8316   rm -rf conftest*
8317   glibcpp_cv_func_isinff_use=yes
8318 else
8319   echo "configure: failed program was:" >&5
8320   cat conftest.$ac_ext >&5
8321   rm -rf conftest*
8322   glibcpp_cv_func_isinff_use=no
8323 fi
8324 rm -f conftest*
8325       ac_ext=c
8326 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8327 ac_cpp='$CPP $CPPFLAGS'
8328 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8329 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8330 cross_compiling=$ac_cv_prog_cc_cross
8331
8332     
8333 fi
8334
8335   fi
8336   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8337
8338   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8339     for ac_func in isinff
8340 do
8341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8342 echo "configure:8343: checking for $ac_func" >&5
8343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8344   echo $ac_n "(cached) $ac_c" 1>&6
8345 else
8346   cat > conftest.$ac_ext <<EOF
8347 #line 8348 "configure"
8348 #include "confdefs.h"
8349 /* System header to define __stub macros and hopefully few prototypes,
8350     which can conflict with char $ac_func(); below.  */
8351 #include <assert.h>
8352 /* Override any gcc2 internal prototype to avoid an error.  */
8353 /* We use char because int might match the return type of a gcc2
8354     builtin and then its argument prototype would still apply.  */
8355 char $ac_func();
8356
8357 int main() {
8358
8359 /* The GNU C library defines this for functions which it implements
8360     to always fail with ENOSYS.  Some functions are actually named
8361     something starting with __ and the normal name is an alias.  */
8362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8363 choke me
8364 #else
8365 $ac_func();
8366 #endif
8367
8368 ; return 0; }
8369 EOF
8370 if { (eval echo configure:8371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8371   rm -rf conftest*
8372   eval "ac_cv_func_$ac_func=yes"
8373 else
8374   echo "configure: failed program was:" >&5
8375   cat conftest.$ac_ext >&5
8376   rm -rf conftest*
8377   eval "ac_cv_func_$ac_func=no"
8378 fi
8379 rm -f conftest*
8380 fi
8381
8382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8383   echo "$ac_t""yes" 1>&6
8384     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8385   cat >> confdefs.h <<EOF
8386 #define $ac_tr_func 1
8387 EOF
8388  
8389 else
8390   echo "$ac_t""no" 1>&6
8391 fi
8392 done
8393     
8394   else
8395     
8396   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8397 echo "configure:8398: checking for _isinff declaration" >&5
8398   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8399     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8400   echo $ac_n "(cached) $ac_c" 1>&6
8401 else
8402   
8403       
8404       ac_ext=C
8405 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8406 ac_cpp='$CXXCPP $CPPFLAGS'
8407 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8408 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8409 cross_compiling=$ac_cv_prog_cxx_cross
8410
8411       cat > conftest.$ac_ext <<EOF
8412 #line 8413 "configure"
8413 #include "confdefs.h"
8414 #include <math.h>
8415                       #ifdef HAVE_IEEEFP_H
8416                       #include <ieeefp.h>
8417                       #endif
8418                      
8419 int main() {
8420  _isinff(0);
8421 ; return 0; }
8422 EOF
8423 if { (eval echo configure:8424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8424   rm -rf conftest*
8425   glibcpp_cv_func__isinff_use=yes
8426 else
8427   echo "configure: failed program was:" >&5
8428   cat conftest.$ac_ext >&5
8429   rm -rf conftest*
8430   glibcpp_cv_func__isinff_use=no
8431 fi
8432 rm -f conftest*
8433       ac_ext=c
8434 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8435 ac_cpp='$CPP $CPPFLAGS'
8436 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8437 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8438 cross_compiling=$ac_cv_prog_cc_cross
8439
8440     
8441 fi
8442
8443   fi
8444   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8445
8446     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8447       for ac_func in _isinff
8448 do
8449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8450 echo "configure:8451: checking for $ac_func" >&5
8451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8452   echo $ac_n "(cached) $ac_c" 1>&6
8453 else
8454   cat > conftest.$ac_ext <<EOF
8455 #line 8456 "configure"
8456 #include "confdefs.h"
8457 /* System header to define __stub macros and hopefully few prototypes,
8458     which can conflict with char $ac_func(); below.  */
8459 #include <assert.h>
8460 /* Override any gcc2 internal prototype to avoid an error.  */
8461 /* We use char because int might match the return type of a gcc2
8462     builtin and then its argument prototype would still apply.  */
8463 char $ac_func();
8464
8465 int main() {
8466
8467 /* The GNU C library defines this for functions which it implements
8468     to always fail with ENOSYS.  Some functions are actually named
8469     something starting with __ and the normal name is an alias.  */
8470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8471 choke me
8472 #else
8473 $ac_func();
8474 #endif
8475
8476 ; return 0; }
8477 EOF
8478 if { (eval echo configure:8479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8479   rm -rf conftest*
8480   eval "ac_cv_func_$ac_func=yes"
8481 else
8482   echo "configure: failed program was:" >&5
8483   cat conftest.$ac_ext >&5
8484   rm -rf conftest*
8485   eval "ac_cv_func_$ac_func=no"
8486 fi
8487 rm -f conftest*
8488 fi
8489
8490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8491   echo "$ac_t""yes" 1>&6
8492     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8493   cat >> confdefs.h <<EOF
8494 #define $ac_tr_func 1
8495 EOF
8496  
8497 else
8498   echo "$ac_t""no" 1>&6
8499 fi
8500 done
8501     
8502     fi
8503   fi
8504
8505   
8506   
8507   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8508 echo "configure:8509: checking for fabsf declaration" >&5
8509   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8510     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8511   echo $ac_n "(cached) $ac_c" 1>&6
8512 else
8513   
8514       
8515       ac_ext=C
8516 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8517 ac_cpp='$CXXCPP $CPPFLAGS'
8518 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8519 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8520 cross_compiling=$ac_cv_prog_cxx_cross
8521
8522       cat > conftest.$ac_ext <<EOF
8523 #line 8524 "configure"
8524 #include "confdefs.h"
8525 #include <math.h>
8526                       #ifdef HAVE_IEEEFP_H
8527                       #include <ieeefp.h>
8528                       #endif
8529                      
8530 int main() {
8531  fabsf(0);
8532 ; return 0; }
8533 EOF
8534 if { (eval echo configure:8535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8535   rm -rf conftest*
8536   glibcpp_cv_func_fabsf_use=yes
8537 else
8538   echo "configure: failed program was:" >&5
8539   cat conftest.$ac_ext >&5
8540   rm -rf conftest*
8541   glibcpp_cv_func_fabsf_use=no
8542 fi
8543 rm -f conftest*
8544       ac_ext=c
8545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8546 ac_cpp='$CPP $CPPFLAGS'
8547 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8548 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8549 cross_compiling=$ac_cv_prog_cc_cross
8550
8551     
8552 fi
8553
8554   fi
8555   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8556
8557   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8558     for ac_func in fabsf
8559 do
8560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8561 echo "configure:8562: checking for $ac_func" >&5
8562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8563   echo $ac_n "(cached) $ac_c" 1>&6
8564 else
8565   cat > conftest.$ac_ext <<EOF
8566 #line 8567 "configure"
8567 #include "confdefs.h"
8568 /* System header to define __stub macros and hopefully few prototypes,
8569     which can conflict with char $ac_func(); below.  */
8570 #include <assert.h>
8571 /* Override any gcc2 internal prototype to avoid an error.  */
8572 /* We use char because int might match the return type of a gcc2
8573     builtin and then its argument prototype would still apply.  */
8574 char $ac_func();
8575
8576 int main() {
8577
8578 /* The GNU C library defines this for functions which it implements
8579     to always fail with ENOSYS.  Some functions are actually named
8580     something starting with __ and the normal name is an alias.  */
8581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8582 choke me
8583 #else
8584 $ac_func();
8585 #endif
8586
8587 ; return 0; }
8588 EOF
8589 if { (eval echo configure:8590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8590   rm -rf conftest*
8591   eval "ac_cv_func_$ac_func=yes"
8592 else
8593   echo "configure: failed program was:" >&5
8594   cat conftest.$ac_ext >&5
8595   rm -rf conftest*
8596   eval "ac_cv_func_$ac_func=no"
8597 fi
8598 rm -f conftest*
8599 fi
8600
8601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8602   echo "$ac_t""yes" 1>&6
8603     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8604   cat >> confdefs.h <<EOF
8605 #define $ac_tr_func 1
8606 EOF
8607  
8608 else
8609   echo "$ac_t""no" 1>&6
8610 fi
8611 done
8612     
8613   else
8614     
8615   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
8616 echo "configure:8617: checking for _fabsf declaration" >&5
8617   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
8618     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
8619   echo $ac_n "(cached) $ac_c" 1>&6
8620 else
8621   
8622       
8623       ac_ext=C
8624 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8625 ac_cpp='$CXXCPP $CPPFLAGS'
8626 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8627 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8628 cross_compiling=$ac_cv_prog_cxx_cross
8629
8630       cat > conftest.$ac_ext <<EOF
8631 #line 8632 "configure"
8632 #include "confdefs.h"
8633 #include <math.h>
8634                       #ifdef HAVE_IEEEFP_H
8635                       #include <ieeefp.h>
8636                       #endif
8637                      
8638 int main() {
8639  _fabsf(0);
8640 ; return 0; }
8641 EOF
8642 if { (eval echo configure:8643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8643   rm -rf conftest*
8644   glibcpp_cv_func__fabsf_use=yes
8645 else
8646   echo "configure: failed program was:" >&5
8647   cat conftest.$ac_ext >&5
8648   rm -rf conftest*
8649   glibcpp_cv_func__fabsf_use=no
8650 fi
8651 rm -f conftest*
8652       ac_ext=c
8653 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8654 ac_cpp='$CPP $CPPFLAGS'
8655 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8656 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8657 cross_compiling=$ac_cv_prog_cc_cross
8658
8659     
8660 fi
8661
8662   fi
8663   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
8664
8665     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
8666       for ac_func in _fabsf
8667 do
8668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8669 echo "configure:8670: checking for $ac_func" >&5
8670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8671   echo $ac_n "(cached) $ac_c" 1>&6
8672 else
8673   cat > conftest.$ac_ext <<EOF
8674 #line 8675 "configure"
8675 #include "confdefs.h"
8676 /* System header to define __stub macros and hopefully few prototypes,
8677     which can conflict with char $ac_func(); below.  */
8678 #include <assert.h>
8679 /* Override any gcc2 internal prototype to avoid an error.  */
8680 /* We use char because int might match the return type of a gcc2
8681     builtin and then its argument prototype would still apply.  */
8682 char $ac_func();
8683
8684 int main() {
8685
8686 /* The GNU C library defines this for functions which it implements
8687     to always fail with ENOSYS.  Some functions are actually named
8688     something starting with __ and the normal name is an alias.  */
8689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8690 choke me
8691 #else
8692 $ac_func();
8693 #endif
8694
8695 ; return 0; }
8696 EOF
8697 if { (eval echo configure:8698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8698   rm -rf conftest*
8699   eval "ac_cv_func_$ac_func=yes"
8700 else
8701   echo "configure: failed program was:" >&5
8702   cat conftest.$ac_ext >&5
8703   rm -rf conftest*
8704   eval "ac_cv_func_$ac_func=no"
8705 fi
8706 rm -f conftest*
8707 fi
8708
8709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8710   echo "$ac_t""yes" 1>&6
8711     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8712   cat >> confdefs.h <<EOF
8713 #define $ac_tr_func 1
8714 EOF
8715  
8716 else
8717   echo "$ac_t""no" 1>&6
8718 fi
8719 done
8720     
8721     fi
8722   fi
8723
8724   
8725   
8726   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
8727 echo "configure:8728: checking for fmodf declaration" >&5
8728   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
8729     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
8730   echo $ac_n "(cached) $ac_c" 1>&6
8731 else
8732   
8733       
8734       ac_ext=C
8735 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8736 ac_cpp='$CXXCPP $CPPFLAGS'
8737 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8738 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8739 cross_compiling=$ac_cv_prog_cxx_cross
8740
8741       cat > conftest.$ac_ext <<EOF
8742 #line 8743 "configure"
8743 #include "confdefs.h"
8744 #include <math.h>
8745 int main() {
8746  fmodf(0, 0);
8747 ; return 0; }
8748 EOF
8749 if { (eval echo configure:8750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8750   rm -rf conftest*
8751   glibcpp_cv_func_fmodf_use=yes
8752 else
8753   echo "configure: failed program was:" >&5
8754   cat conftest.$ac_ext >&5
8755   rm -rf conftest*
8756   glibcpp_cv_func_fmodf_use=no
8757 fi
8758 rm -f conftest*
8759       ac_ext=c
8760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8761 ac_cpp='$CPP $CPPFLAGS'
8762 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8763 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8764 cross_compiling=$ac_cv_prog_cc_cross
8765
8766     
8767 fi
8768
8769   fi
8770   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
8771
8772   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
8773     for ac_func in fmodf
8774 do
8775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8776 echo "configure:8777: checking for $ac_func" >&5
8777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8778   echo $ac_n "(cached) $ac_c" 1>&6
8779 else
8780   cat > conftest.$ac_ext <<EOF
8781 #line 8782 "configure"
8782 #include "confdefs.h"
8783 /* System header to define __stub macros and hopefully few prototypes,
8784     which can conflict with char $ac_func(); below.  */
8785 #include <assert.h>
8786 /* Override any gcc2 internal prototype to avoid an error.  */
8787 /* We use char because int might match the return type of a gcc2
8788     builtin and then its argument prototype would still apply.  */
8789 char $ac_func();
8790
8791 int main() {
8792
8793 /* The GNU C library defines this for functions which it implements
8794     to always fail with ENOSYS.  Some functions are actually named
8795     something starting with __ and the normal name is an alias.  */
8796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8797 choke me
8798 #else
8799 $ac_func();
8800 #endif
8801
8802 ; return 0; }
8803 EOF
8804 if { (eval echo configure:8805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8805   rm -rf conftest*
8806   eval "ac_cv_func_$ac_func=yes"
8807 else
8808   echo "configure: failed program was:" >&5
8809   cat conftest.$ac_ext >&5
8810   rm -rf conftest*
8811   eval "ac_cv_func_$ac_func=no"
8812 fi
8813 rm -f conftest*
8814 fi
8815
8816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8817   echo "$ac_t""yes" 1>&6
8818     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8819   cat >> confdefs.h <<EOF
8820 #define $ac_tr_func 1
8821 EOF
8822  
8823 else
8824   echo "$ac_t""no" 1>&6
8825 fi
8826 done
8827     
8828   else
8829     
8830   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
8831 echo "configure:8832: checking for _fmodf declaration" >&5
8832   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
8833     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
8834   echo $ac_n "(cached) $ac_c" 1>&6
8835 else
8836   
8837       
8838       ac_ext=C
8839 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8840 ac_cpp='$CXXCPP $CPPFLAGS'
8841 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8842 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8843 cross_compiling=$ac_cv_prog_cxx_cross
8844
8845       cat > conftest.$ac_ext <<EOF
8846 #line 8847 "configure"
8847 #include "confdefs.h"
8848 #include <math.h>
8849 int main() {
8850  _fmodf(0, 0);
8851 ; return 0; }
8852 EOF
8853 if { (eval echo configure:8854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8854   rm -rf conftest*
8855   glibcpp_cv_func__fmodf_use=yes
8856 else
8857   echo "configure: failed program was:" >&5
8858   cat conftest.$ac_ext >&5
8859   rm -rf conftest*
8860   glibcpp_cv_func__fmodf_use=no
8861 fi
8862 rm -f conftest*
8863       ac_ext=c
8864 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8865 ac_cpp='$CPP $CPPFLAGS'
8866 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8867 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8868 cross_compiling=$ac_cv_prog_cc_cross
8869
8870     
8871 fi
8872
8873   fi
8874   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
8875
8876     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
8877       for ac_func in _fmodf
8878 do
8879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8880 echo "configure:8881: checking for $ac_func" >&5
8881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8882   echo $ac_n "(cached) $ac_c" 1>&6
8883 else
8884   cat > conftest.$ac_ext <<EOF
8885 #line 8886 "configure"
8886 #include "confdefs.h"
8887 /* System header to define __stub macros and hopefully few prototypes,
8888     which can conflict with char $ac_func(); below.  */
8889 #include <assert.h>
8890 /* Override any gcc2 internal prototype to avoid an error.  */
8891 /* We use char because int might match the return type of a gcc2
8892     builtin and then its argument prototype would still apply.  */
8893 char $ac_func();
8894
8895 int main() {
8896
8897 /* The GNU C library defines this for functions which it implements
8898     to always fail with ENOSYS.  Some functions are actually named
8899     something starting with __ and the normal name is an alias.  */
8900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8901 choke me
8902 #else
8903 $ac_func();
8904 #endif
8905
8906 ; return 0; }
8907 EOF
8908 if { (eval echo configure:8909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8909   rm -rf conftest*
8910   eval "ac_cv_func_$ac_func=yes"
8911 else
8912   echo "configure: failed program was:" >&5
8913   cat conftest.$ac_ext >&5
8914   rm -rf conftest*
8915   eval "ac_cv_func_$ac_func=no"
8916 fi
8917 rm -f conftest*
8918 fi
8919
8920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8921   echo "$ac_t""yes" 1>&6
8922     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8923   cat >> confdefs.h <<EOF
8924 #define $ac_tr_func 1
8925 EOF
8926  
8927 else
8928   echo "$ac_t""no" 1>&6
8929 fi
8930 done
8931     
8932     fi
8933   fi
8934
8935   
8936   
8937   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
8938 echo "configure:8939: checking for frexpf declaration" >&5
8939   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
8940     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
8941   echo $ac_n "(cached) $ac_c" 1>&6
8942 else
8943   
8944       
8945       ac_ext=C
8946 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8947 ac_cpp='$CXXCPP $CPPFLAGS'
8948 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8949 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8950 cross_compiling=$ac_cv_prog_cxx_cross
8951
8952       cat > conftest.$ac_ext <<EOF
8953 #line 8954 "configure"
8954 #include "confdefs.h"
8955 #include <math.h>
8956 int main() {
8957  frexpf(0, 0);
8958 ; return 0; }
8959 EOF
8960 if { (eval echo configure:8961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8961   rm -rf conftest*
8962   glibcpp_cv_func_frexpf_use=yes
8963 else
8964   echo "configure: failed program was:" >&5
8965   cat conftest.$ac_ext >&5
8966   rm -rf conftest*
8967   glibcpp_cv_func_frexpf_use=no
8968 fi
8969 rm -f conftest*
8970       ac_ext=c
8971 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8972 ac_cpp='$CPP $CPPFLAGS'
8973 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8974 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8975 cross_compiling=$ac_cv_prog_cc_cross
8976
8977     
8978 fi
8979
8980   fi
8981   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
8982
8983   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
8984     for ac_func in frexpf
8985 do
8986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8987 echo "configure:8988: checking for $ac_func" >&5
8988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8989   echo $ac_n "(cached) $ac_c" 1>&6
8990 else
8991   cat > conftest.$ac_ext <<EOF
8992 #line 8993 "configure"
8993 #include "confdefs.h"
8994 /* System header to define __stub macros and hopefully few prototypes,
8995     which can conflict with char $ac_func(); below.  */
8996 #include <assert.h>
8997 /* Override any gcc2 internal prototype to avoid an error.  */
8998 /* We use char because int might match the return type of a gcc2
8999     builtin and then its argument prototype would still apply.  */
9000 char $ac_func();
9001
9002 int main() {
9003
9004 /* The GNU C library defines this for functions which it implements
9005     to always fail with ENOSYS.  Some functions are actually named
9006     something starting with __ and the normal name is an alias.  */
9007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9008 choke me
9009 #else
9010 $ac_func();
9011 #endif
9012
9013 ; return 0; }
9014 EOF
9015 if { (eval echo configure:9016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9016   rm -rf conftest*
9017   eval "ac_cv_func_$ac_func=yes"
9018 else
9019   echo "configure: failed program was:" >&5
9020   cat conftest.$ac_ext >&5
9021   rm -rf conftest*
9022   eval "ac_cv_func_$ac_func=no"
9023 fi
9024 rm -f conftest*
9025 fi
9026
9027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9028   echo "$ac_t""yes" 1>&6
9029     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9030   cat >> confdefs.h <<EOF
9031 #define $ac_tr_func 1
9032 EOF
9033  
9034 else
9035   echo "$ac_t""no" 1>&6
9036 fi
9037 done
9038     
9039   else
9040     
9041   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9042 echo "configure:9043: checking for _frexpf declaration" >&5
9043   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9044     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9045   echo $ac_n "(cached) $ac_c" 1>&6
9046 else
9047   
9048       
9049       ac_ext=C
9050 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9051 ac_cpp='$CXXCPP $CPPFLAGS'
9052 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9053 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9054 cross_compiling=$ac_cv_prog_cxx_cross
9055
9056       cat > conftest.$ac_ext <<EOF
9057 #line 9058 "configure"
9058 #include "confdefs.h"
9059 #include <math.h>
9060 int main() {
9061  _frexpf(0, 0);
9062 ; return 0; }
9063 EOF
9064 if { (eval echo configure:9065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9065   rm -rf conftest*
9066   glibcpp_cv_func__frexpf_use=yes
9067 else
9068   echo "configure: failed program was:" >&5
9069   cat conftest.$ac_ext >&5
9070   rm -rf conftest*
9071   glibcpp_cv_func__frexpf_use=no
9072 fi
9073 rm -f conftest*
9074       ac_ext=c
9075 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9076 ac_cpp='$CPP $CPPFLAGS'
9077 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9078 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9079 cross_compiling=$ac_cv_prog_cc_cross
9080
9081     
9082 fi
9083
9084   fi
9085   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9086
9087     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9088       for ac_func in _frexpf
9089 do
9090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9091 echo "configure:9092: checking for $ac_func" >&5
9092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9093   echo $ac_n "(cached) $ac_c" 1>&6
9094 else
9095   cat > conftest.$ac_ext <<EOF
9096 #line 9097 "configure"
9097 #include "confdefs.h"
9098 /* System header to define __stub macros and hopefully few prototypes,
9099     which can conflict with char $ac_func(); below.  */
9100 #include <assert.h>
9101 /* Override any gcc2 internal prototype to avoid an error.  */
9102 /* We use char because int might match the return type of a gcc2
9103     builtin and then its argument prototype would still apply.  */
9104 char $ac_func();
9105
9106 int main() {
9107
9108 /* The GNU C library defines this for functions which it implements
9109     to always fail with ENOSYS.  Some functions are actually named
9110     something starting with __ and the normal name is an alias.  */
9111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9112 choke me
9113 #else
9114 $ac_func();
9115 #endif
9116
9117 ; return 0; }
9118 EOF
9119 if { (eval echo configure:9120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9120   rm -rf conftest*
9121   eval "ac_cv_func_$ac_func=yes"
9122 else
9123   echo "configure: failed program was:" >&5
9124   cat conftest.$ac_ext >&5
9125   rm -rf conftest*
9126   eval "ac_cv_func_$ac_func=no"
9127 fi
9128 rm -f conftest*
9129 fi
9130
9131 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9132   echo "$ac_t""yes" 1>&6
9133     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9134   cat >> confdefs.h <<EOF
9135 #define $ac_tr_func 1
9136 EOF
9137  
9138 else
9139   echo "$ac_t""no" 1>&6
9140 fi
9141 done
9142     
9143     fi
9144   fi
9145
9146   
9147   
9148   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9149 echo "configure:9150: checking for ldexpf declaration" >&5
9150   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
9151     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
9152   echo $ac_n "(cached) $ac_c" 1>&6
9153 else
9154   
9155       
9156       ac_ext=C
9157 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9158 ac_cpp='$CXXCPP $CPPFLAGS'
9159 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9160 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9161 cross_compiling=$ac_cv_prog_cxx_cross
9162
9163       cat > conftest.$ac_ext <<EOF
9164 #line 9165 "configure"
9165 #include "confdefs.h"
9166 #include <math.h>
9167 int main() {
9168  ldexpf(0, 0);
9169 ; return 0; }
9170 EOF
9171 if { (eval echo configure:9172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9172   rm -rf conftest*
9173   glibcpp_cv_func_ldexpf_use=yes
9174 else
9175   echo "configure: failed program was:" >&5
9176   cat conftest.$ac_ext >&5
9177   rm -rf conftest*
9178   glibcpp_cv_func_ldexpf_use=no
9179 fi
9180 rm -f conftest*
9181       ac_ext=c
9182 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9183 ac_cpp='$CPP $CPPFLAGS'
9184 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9185 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9186 cross_compiling=$ac_cv_prog_cc_cross
9187
9188     
9189 fi
9190
9191   fi
9192   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
9193
9194   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
9195     for ac_func in ldexpf
9196 do
9197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9198 echo "configure:9199: checking for $ac_func" >&5
9199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9200   echo $ac_n "(cached) $ac_c" 1>&6
9201 else
9202   cat > conftest.$ac_ext <<EOF
9203 #line 9204 "configure"
9204 #include "confdefs.h"
9205 /* System header to define __stub macros and hopefully few prototypes,
9206     which can conflict with char $ac_func(); below.  */
9207 #include <assert.h>
9208 /* Override any gcc2 internal prototype to avoid an error.  */
9209 /* We use char because int might match the return type of a gcc2
9210     builtin and then its argument prototype would still apply.  */
9211 char $ac_func();
9212
9213 int main() {
9214
9215 /* The GNU C library defines this for functions which it implements
9216     to always fail with ENOSYS.  Some functions are actually named
9217     something starting with __ and the normal name is an alias.  */
9218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9219 choke me
9220 #else
9221 $ac_func();
9222 #endif
9223
9224 ; return 0; }
9225 EOF
9226 if { (eval echo configure:9227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9227   rm -rf conftest*
9228   eval "ac_cv_func_$ac_func=yes"
9229 else
9230   echo "configure: failed program was:" >&5
9231   cat conftest.$ac_ext >&5
9232   rm -rf conftest*
9233   eval "ac_cv_func_$ac_func=no"
9234 fi
9235 rm -f conftest*
9236 fi
9237
9238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9239   echo "$ac_t""yes" 1>&6
9240     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9241   cat >> confdefs.h <<EOF
9242 #define $ac_tr_func 1
9243 EOF
9244  
9245 else
9246   echo "$ac_t""no" 1>&6
9247 fi
9248 done
9249     
9250   else
9251     
9252   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
9253 echo "configure:9254: checking for _ldexpf declaration" >&5
9254   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
9255     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
9256   echo $ac_n "(cached) $ac_c" 1>&6
9257 else
9258   
9259       
9260       ac_ext=C
9261 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9262 ac_cpp='$CXXCPP $CPPFLAGS'
9263 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9264 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9265 cross_compiling=$ac_cv_prog_cxx_cross
9266
9267       cat > conftest.$ac_ext <<EOF
9268 #line 9269 "configure"
9269 #include "confdefs.h"
9270 #include <math.h>
9271 int main() {
9272  _ldexpf(0, 0);
9273 ; return 0; }
9274 EOF
9275 if { (eval echo configure:9276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9276   rm -rf conftest*
9277   glibcpp_cv_func__ldexpf_use=yes
9278 else
9279   echo "configure: failed program was:" >&5
9280   cat conftest.$ac_ext >&5
9281   rm -rf conftest*
9282   glibcpp_cv_func__ldexpf_use=no
9283 fi
9284 rm -f conftest*
9285       ac_ext=c
9286 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9287 ac_cpp='$CPP $CPPFLAGS'
9288 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9289 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9290 cross_compiling=$ac_cv_prog_cc_cross
9291
9292     
9293 fi
9294
9295   fi
9296   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
9297
9298     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
9299       for ac_func in _ldexpf
9300 do
9301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9302 echo "configure:9303: checking for $ac_func" >&5
9303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9304   echo $ac_n "(cached) $ac_c" 1>&6
9305 else
9306   cat > conftest.$ac_ext <<EOF
9307 #line 9308 "configure"
9308 #include "confdefs.h"
9309 /* System header to define __stub macros and hopefully few prototypes,
9310     which can conflict with char $ac_func(); below.  */
9311 #include <assert.h>
9312 /* Override any gcc2 internal prototype to avoid an error.  */
9313 /* We use char because int might match the return type of a gcc2
9314     builtin and then its argument prototype would still apply.  */
9315 char $ac_func();
9316
9317 int main() {
9318
9319 /* The GNU C library defines this for functions which it implements
9320     to always fail with ENOSYS.  Some functions are actually named
9321     something starting with __ and the normal name is an alias.  */
9322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9323 choke me
9324 #else
9325 $ac_func();
9326 #endif
9327
9328 ; return 0; }
9329 EOF
9330 if { (eval echo configure:9331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9331   rm -rf conftest*
9332   eval "ac_cv_func_$ac_func=yes"
9333 else
9334   echo "configure: failed program was:" >&5
9335   cat conftest.$ac_ext >&5
9336   rm -rf conftest*
9337   eval "ac_cv_func_$ac_func=no"
9338 fi
9339 rm -f conftest*
9340 fi
9341
9342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9343   echo "$ac_t""yes" 1>&6
9344     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9345   cat >> confdefs.h <<EOF
9346 #define $ac_tr_func 1
9347 EOF
9348  
9349 else
9350   echo "$ac_t""no" 1>&6
9351 fi
9352 done
9353     
9354     fi
9355   fi
9356
9357   
9358   
9359   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
9360 echo "configure:9361: checking for logf declaration" >&5
9361   if test x${glibcpp_cv_func_logf_use+set} != xset; then
9362     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
9363   echo $ac_n "(cached) $ac_c" 1>&6
9364 else
9365   
9366       
9367       ac_ext=C
9368 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9369 ac_cpp='$CXXCPP $CPPFLAGS'
9370 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9371 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9372 cross_compiling=$ac_cv_prog_cxx_cross
9373
9374       cat > conftest.$ac_ext <<EOF
9375 #line 9376 "configure"
9376 #include "confdefs.h"
9377 #include <math.h>
9378                       #ifdef HAVE_IEEEFP_H
9379                       #include <ieeefp.h>
9380                       #endif
9381                      
9382 int main() {
9383  logf(0);
9384 ; return 0; }
9385 EOF
9386 if { (eval echo configure:9387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9387   rm -rf conftest*
9388   glibcpp_cv_func_logf_use=yes
9389 else
9390   echo "configure: failed program was:" >&5
9391   cat conftest.$ac_ext >&5
9392   rm -rf conftest*
9393   glibcpp_cv_func_logf_use=no
9394 fi
9395 rm -f conftest*
9396       ac_ext=c
9397 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9398 ac_cpp='$CPP $CPPFLAGS'
9399 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9400 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9401 cross_compiling=$ac_cv_prog_cc_cross
9402
9403     
9404 fi
9405
9406   fi
9407   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
9408
9409   if test x$glibcpp_cv_func_logf_use = x"yes"; then
9410     for ac_func in logf
9411 do
9412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9413 echo "configure:9414: checking for $ac_func" >&5
9414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9415   echo $ac_n "(cached) $ac_c" 1>&6
9416 else
9417   cat > conftest.$ac_ext <<EOF
9418 #line 9419 "configure"
9419 #include "confdefs.h"
9420 /* System header to define __stub macros and hopefully few prototypes,
9421     which can conflict with char $ac_func(); below.  */
9422 #include <assert.h>
9423 /* Override any gcc2 internal prototype to avoid an error.  */
9424 /* We use char because int might match the return type of a gcc2
9425     builtin and then its argument prototype would still apply.  */
9426 char $ac_func();
9427
9428 int main() {
9429
9430 /* The GNU C library defines this for functions which it implements
9431     to always fail with ENOSYS.  Some functions are actually named
9432     something starting with __ and the normal name is an alias.  */
9433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9434 choke me
9435 #else
9436 $ac_func();
9437 #endif
9438
9439 ; return 0; }
9440 EOF
9441 if { (eval echo configure:9442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9442   rm -rf conftest*
9443   eval "ac_cv_func_$ac_func=yes"
9444 else
9445   echo "configure: failed program was:" >&5
9446   cat conftest.$ac_ext >&5
9447   rm -rf conftest*
9448   eval "ac_cv_func_$ac_func=no"
9449 fi
9450 rm -f conftest*
9451 fi
9452
9453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9454   echo "$ac_t""yes" 1>&6
9455     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9456   cat >> confdefs.h <<EOF
9457 #define $ac_tr_func 1
9458 EOF
9459  
9460 else
9461   echo "$ac_t""no" 1>&6
9462 fi
9463 done
9464     
9465   else
9466     
9467   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
9468 echo "configure:9469: checking for _logf declaration" >&5
9469   if test x${glibcpp_cv_func__logf_use+set} != xset; then
9470     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
9471   echo $ac_n "(cached) $ac_c" 1>&6
9472 else
9473   
9474       
9475       ac_ext=C
9476 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9477 ac_cpp='$CXXCPP $CPPFLAGS'
9478 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9479 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9480 cross_compiling=$ac_cv_prog_cxx_cross
9481
9482       cat > conftest.$ac_ext <<EOF
9483 #line 9484 "configure"
9484 #include "confdefs.h"
9485 #include <math.h>
9486                       #ifdef HAVE_IEEEFP_H
9487                       #include <ieeefp.h>
9488                       #endif
9489                      
9490 int main() {
9491  _logf(0);
9492 ; return 0; }
9493 EOF
9494 if { (eval echo configure:9495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9495   rm -rf conftest*
9496   glibcpp_cv_func__logf_use=yes
9497 else
9498   echo "configure: failed program was:" >&5
9499   cat conftest.$ac_ext >&5
9500   rm -rf conftest*
9501   glibcpp_cv_func__logf_use=no
9502 fi
9503 rm -f conftest*
9504       ac_ext=c
9505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9506 ac_cpp='$CPP $CPPFLAGS'
9507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9509 cross_compiling=$ac_cv_prog_cc_cross
9510
9511     
9512 fi
9513
9514   fi
9515   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
9516
9517     if test x$glibcpp_cv_func__logf_use = x"yes"; then
9518       for ac_func in _logf
9519 do
9520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9521 echo "configure:9522: checking for $ac_func" >&5
9522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9523   echo $ac_n "(cached) $ac_c" 1>&6
9524 else
9525   cat > conftest.$ac_ext <<EOF
9526 #line 9527 "configure"
9527 #include "confdefs.h"
9528 /* System header to define __stub macros and hopefully few prototypes,
9529     which can conflict with char $ac_func(); below.  */
9530 #include <assert.h>
9531 /* Override any gcc2 internal prototype to avoid an error.  */
9532 /* We use char because int might match the return type of a gcc2
9533     builtin and then its argument prototype would still apply.  */
9534 char $ac_func();
9535
9536 int main() {
9537
9538 /* The GNU C library defines this for functions which it implements
9539     to always fail with ENOSYS.  Some functions are actually named
9540     something starting with __ and the normal name is an alias.  */
9541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9542 choke me
9543 #else
9544 $ac_func();
9545 #endif
9546
9547 ; return 0; }
9548 EOF
9549 if { (eval echo configure:9550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9550   rm -rf conftest*
9551   eval "ac_cv_func_$ac_func=yes"
9552 else
9553   echo "configure: failed program was:" >&5
9554   cat conftest.$ac_ext >&5
9555   rm -rf conftest*
9556   eval "ac_cv_func_$ac_func=no"
9557 fi
9558 rm -f conftest*
9559 fi
9560
9561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9562   echo "$ac_t""yes" 1>&6
9563     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9564   cat >> confdefs.h <<EOF
9565 #define $ac_tr_func 1
9566 EOF
9567  
9568 else
9569   echo "$ac_t""no" 1>&6
9570 fi
9571 done
9572     
9573     fi
9574   fi
9575
9576   
9577   
9578   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
9579 echo "configure:9580: checking for log10f declaration" >&5
9580   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
9581     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
9582   echo $ac_n "(cached) $ac_c" 1>&6
9583 else
9584   
9585       
9586       ac_ext=C
9587 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9588 ac_cpp='$CXXCPP $CPPFLAGS'
9589 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9590 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9591 cross_compiling=$ac_cv_prog_cxx_cross
9592
9593       cat > conftest.$ac_ext <<EOF
9594 #line 9595 "configure"
9595 #include "confdefs.h"
9596 #include <math.h>
9597                       #ifdef HAVE_IEEEFP_H
9598                       #include <ieeefp.h>
9599                       #endif
9600                      
9601 int main() {
9602  log10f(0);
9603 ; return 0; }
9604 EOF
9605 if { (eval echo configure:9606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9606   rm -rf conftest*
9607   glibcpp_cv_func_log10f_use=yes
9608 else
9609   echo "configure: failed program was:" >&5
9610   cat conftest.$ac_ext >&5
9611   rm -rf conftest*
9612   glibcpp_cv_func_log10f_use=no
9613 fi
9614 rm -f conftest*
9615       ac_ext=c
9616 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9617 ac_cpp='$CPP $CPPFLAGS'
9618 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9619 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9620 cross_compiling=$ac_cv_prog_cc_cross
9621
9622     
9623 fi
9624
9625   fi
9626   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
9627
9628   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
9629     for ac_func in log10f
9630 do
9631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9632 echo "configure:9633: checking for $ac_func" >&5
9633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9634   echo $ac_n "(cached) $ac_c" 1>&6
9635 else
9636   cat > conftest.$ac_ext <<EOF
9637 #line 9638 "configure"
9638 #include "confdefs.h"
9639 /* System header to define __stub macros and hopefully few prototypes,
9640     which can conflict with char $ac_func(); below.  */
9641 #include <assert.h>
9642 /* Override any gcc2 internal prototype to avoid an error.  */
9643 /* We use char because int might match the return type of a gcc2
9644     builtin and then its argument prototype would still apply.  */
9645 char $ac_func();
9646
9647 int main() {
9648
9649 /* The GNU C library defines this for functions which it implements
9650     to always fail with ENOSYS.  Some functions are actually named
9651     something starting with __ and the normal name is an alias.  */
9652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9653 choke me
9654 #else
9655 $ac_func();
9656 #endif
9657
9658 ; return 0; }
9659 EOF
9660 if { (eval echo configure:9661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9661   rm -rf conftest*
9662   eval "ac_cv_func_$ac_func=yes"
9663 else
9664   echo "configure: failed program was:" >&5
9665   cat conftest.$ac_ext >&5
9666   rm -rf conftest*
9667   eval "ac_cv_func_$ac_func=no"
9668 fi
9669 rm -f conftest*
9670 fi
9671
9672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9673   echo "$ac_t""yes" 1>&6
9674     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9675   cat >> confdefs.h <<EOF
9676 #define $ac_tr_func 1
9677 EOF
9678  
9679 else
9680   echo "$ac_t""no" 1>&6
9681 fi
9682 done
9683     
9684   else
9685     
9686   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
9687 echo "configure:9688: checking for _log10f declaration" >&5
9688   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
9689     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
9690   echo $ac_n "(cached) $ac_c" 1>&6
9691 else
9692   
9693       
9694       ac_ext=C
9695 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9696 ac_cpp='$CXXCPP $CPPFLAGS'
9697 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9698 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9699 cross_compiling=$ac_cv_prog_cxx_cross
9700
9701       cat > conftest.$ac_ext <<EOF
9702 #line 9703 "configure"
9703 #include "confdefs.h"
9704 #include <math.h>
9705                       #ifdef HAVE_IEEEFP_H
9706                       #include <ieeefp.h>
9707                       #endif
9708                      
9709 int main() {
9710  _log10f(0);
9711 ; return 0; }
9712 EOF
9713 if { (eval echo configure:9714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9714   rm -rf conftest*
9715   glibcpp_cv_func__log10f_use=yes
9716 else
9717   echo "configure: failed program was:" >&5
9718   cat conftest.$ac_ext >&5
9719   rm -rf conftest*
9720   glibcpp_cv_func__log10f_use=no
9721 fi
9722 rm -f conftest*
9723       ac_ext=c
9724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9725 ac_cpp='$CPP $CPPFLAGS'
9726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9728 cross_compiling=$ac_cv_prog_cc_cross
9729
9730     
9731 fi
9732
9733   fi
9734   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
9735
9736     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
9737       for ac_func in _log10f
9738 do
9739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9740 echo "configure:9741: checking for $ac_func" >&5
9741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9742   echo $ac_n "(cached) $ac_c" 1>&6
9743 else
9744   cat > conftest.$ac_ext <<EOF
9745 #line 9746 "configure"
9746 #include "confdefs.h"
9747 /* System header to define __stub macros and hopefully few prototypes,
9748     which can conflict with char $ac_func(); below.  */
9749 #include <assert.h>
9750 /* Override any gcc2 internal prototype to avoid an error.  */
9751 /* We use char because int might match the return type of a gcc2
9752     builtin and then its argument prototype would still apply.  */
9753 char $ac_func();
9754
9755 int main() {
9756
9757 /* The GNU C library defines this for functions which it implements
9758     to always fail with ENOSYS.  Some functions are actually named
9759     something starting with __ and the normal name is an alias.  */
9760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9761 choke me
9762 #else
9763 $ac_func();
9764 #endif
9765
9766 ; return 0; }
9767 EOF
9768 if { (eval echo configure:9769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9769   rm -rf conftest*
9770   eval "ac_cv_func_$ac_func=yes"
9771 else
9772   echo "configure: failed program was:" >&5
9773   cat conftest.$ac_ext >&5
9774   rm -rf conftest*
9775   eval "ac_cv_func_$ac_func=no"
9776 fi
9777 rm -f conftest*
9778 fi
9779
9780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9781   echo "$ac_t""yes" 1>&6
9782     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9783   cat >> confdefs.h <<EOF
9784 #define $ac_tr_func 1
9785 EOF
9786  
9787 else
9788   echo "$ac_t""no" 1>&6
9789 fi
9790 done
9791     
9792     fi
9793   fi
9794
9795   
9796   
9797   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
9798 echo "configure:9799: checking for modff declaration" >&5
9799   if test x${glibcpp_cv_func_modff_use+set} != xset; then
9800     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
9801   echo $ac_n "(cached) $ac_c" 1>&6
9802 else
9803   
9804       
9805       ac_ext=C
9806 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9807 ac_cpp='$CXXCPP $CPPFLAGS'
9808 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9809 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9810 cross_compiling=$ac_cv_prog_cxx_cross
9811
9812       cat > conftest.$ac_ext <<EOF
9813 #line 9814 "configure"
9814 #include "confdefs.h"
9815 #include <math.h>
9816 int main() {
9817  modff(0, 0);
9818 ; return 0; }
9819 EOF
9820 if { (eval echo configure:9821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9821   rm -rf conftest*
9822   glibcpp_cv_func_modff_use=yes
9823 else
9824   echo "configure: failed program was:" >&5
9825   cat conftest.$ac_ext >&5
9826   rm -rf conftest*
9827   glibcpp_cv_func_modff_use=no
9828 fi
9829 rm -f conftest*
9830       ac_ext=c
9831 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9832 ac_cpp='$CPP $CPPFLAGS'
9833 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9834 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9835 cross_compiling=$ac_cv_prog_cc_cross
9836
9837     
9838 fi
9839
9840   fi
9841   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
9842
9843   if test x$glibcpp_cv_func_modff_use = x"yes"; then
9844     for ac_func in modff
9845 do
9846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9847 echo "configure:9848: checking for $ac_func" >&5
9848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9849   echo $ac_n "(cached) $ac_c" 1>&6
9850 else
9851   cat > conftest.$ac_ext <<EOF
9852 #line 9853 "configure"
9853 #include "confdefs.h"
9854 /* System header to define __stub macros and hopefully few prototypes,
9855     which can conflict with char $ac_func(); below.  */
9856 #include <assert.h>
9857 /* Override any gcc2 internal prototype to avoid an error.  */
9858 /* We use char because int might match the return type of a gcc2
9859     builtin and then its argument prototype would still apply.  */
9860 char $ac_func();
9861
9862 int main() {
9863
9864 /* The GNU C library defines this for functions which it implements
9865     to always fail with ENOSYS.  Some functions are actually named
9866     something starting with __ and the normal name is an alias.  */
9867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9868 choke me
9869 #else
9870 $ac_func();
9871 #endif
9872
9873 ; return 0; }
9874 EOF
9875 if { (eval echo configure:9876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9876   rm -rf conftest*
9877   eval "ac_cv_func_$ac_func=yes"
9878 else
9879   echo "configure: failed program was:" >&5
9880   cat conftest.$ac_ext >&5
9881   rm -rf conftest*
9882   eval "ac_cv_func_$ac_func=no"
9883 fi
9884 rm -f conftest*
9885 fi
9886
9887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9888   echo "$ac_t""yes" 1>&6
9889     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9890   cat >> confdefs.h <<EOF
9891 #define $ac_tr_func 1
9892 EOF
9893  
9894 else
9895   echo "$ac_t""no" 1>&6
9896 fi
9897 done
9898     
9899   else
9900     
9901   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
9902 echo "configure:9903: checking for _modff declaration" >&5
9903   if test x${glibcpp_cv_func__modff_use+set} != xset; then
9904     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
9905   echo $ac_n "(cached) $ac_c" 1>&6
9906 else
9907   
9908       
9909       ac_ext=C
9910 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9911 ac_cpp='$CXXCPP $CPPFLAGS'
9912 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9913 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9914 cross_compiling=$ac_cv_prog_cxx_cross
9915
9916       cat > conftest.$ac_ext <<EOF
9917 #line 9918 "configure"
9918 #include "confdefs.h"
9919 #include <math.h>
9920 int main() {
9921  _modff(0, 0);
9922 ; return 0; }
9923 EOF
9924 if { (eval echo configure:9925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9925   rm -rf conftest*
9926   glibcpp_cv_func__modff_use=yes
9927 else
9928   echo "configure: failed program was:" >&5
9929   cat conftest.$ac_ext >&5
9930   rm -rf conftest*
9931   glibcpp_cv_func__modff_use=no
9932 fi
9933 rm -f conftest*
9934       ac_ext=c
9935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9936 ac_cpp='$CPP $CPPFLAGS'
9937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9939 cross_compiling=$ac_cv_prog_cc_cross
9940
9941     
9942 fi
9943
9944   fi
9945   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
9946
9947     if test x$glibcpp_cv_func__modff_use = x"yes"; then
9948       for ac_func in _modff
9949 do
9950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9951 echo "configure:9952: checking for $ac_func" >&5
9952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9953   echo $ac_n "(cached) $ac_c" 1>&6
9954 else
9955   cat > conftest.$ac_ext <<EOF
9956 #line 9957 "configure"
9957 #include "confdefs.h"
9958 /* System header to define __stub macros and hopefully few prototypes,
9959     which can conflict with char $ac_func(); below.  */
9960 #include <assert.h>
9961 /* Override any gcc2 internal prototype to avoid an error.  */
9962 /* We use char because int might match the return type of a gcc2
9963     builtin and then its argument prototype would still apply.  */
9964 char $ac_func();
9965
9966 int main() {
9967
9968 /* The GNU C library defines this for functions which it implements
9969     to always fail with ENOSYS.  Some functions are actually named
9970     something starting with __ and the normal name is an alias.  */
9971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9972 choke me
9973 #else
9974 $ac_func();
9975 #endif
9976
9977 ; return 0; }
9978 EOF
9979 if { (eval echo configure:9980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9980   rm -rf conftest*
9981   eval "ac_cv_func_$ac_func=yes"
9982 else
9983   echo "configure: failed program was:" >&5
9984   cat conftest.$ac_ext >&5
9985   rm -rf conftest*
9986   eval "ac_cv_func_$ac_func=no"
9987 fi
9988 rm -f conftest*
9989 fi
9990
9991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9992   echo "$ac_t""yes" 1>&6
9993     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9994   cat >> confdefs.h <<EOF
9995 #define $ac_tr_func 1
9996 EOF
9997  
9998 else
9999   echo "$ac_t""no" 1>&6
10000 fi
10001 done
10002     
10003     fi
10004   fi
10005
10006   
10007   
10008   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10009 echo "configure:10010: checking for powf declaration" >&5
10010   if test x${glibcpp_cv_func_powf_use+set} != xset; then
10011     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10012   echo $ac_n "(cached) $ac_c" 1>&6
10013 else
10014   
10015       
10016       ac_ext=C
10017 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10018 ac_cpp='$CXXCPP $CPPFLAGS'
10019 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10020 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10021 cross_compiling=$ac_cv_prog_cxx_cross
10022
10023       cat > conftest.$ac_ext <<EOF
10024 #line 10025 "configure"
10025 #include "confdefs.h"
10026 #include <math.h>
10027 int main() {
10028  powf(0, 0);
10029 ; return 0; }
10030 EOF
10031 if { (eval echo configure:10032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10032   rm -rf conftest*
10033   glibcpp_cv_func_powf_use=yes
10034 else
10035   echo "configure: failed program was:" >&5
10036   cat conftest.$ac_ext >&5
10037   rm -rf conftest*
10038   glibcpp_cv_func_powf_use=no
10039 fi
10040 rm -f conftest*
10041       ac_ext=c
10042 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10043 ac_cpp='$CPP $CPPFLAGS'
10044 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10045 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10046 cross_compiling=$ac_cv_prog_cc_cross
10047
10048     
10049 fi
10050
10051   fi
10052   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10053
10054   if test x$glibcpp_cv_func_powf_use = x"yes"; then
10055     for ac_func in powf
10056 do
10057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10058 echo "configure:10059: checking for $ac_func" >&5
10059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10060   echo $ac_n "(cached) $ac_c" 1>&6
10061 else
10062   cat > conftest.$ac_ext <<EOF
10063 #line 10064 "configure"
10064 #include "confdefs.h"
10065 /* System header to define __stub macros and hopefully few prototypes,
10066     which can conflict with char $ac_func(); below.  */
10067 #include <assert.h>
10068 /* Override any gcc2 internal prototype to avoid an error.  */
10069 /* We use char because int might match the return type of a gcc2
10070     builtin and then its argument prototype would still apply.  */
10071 char $ac_func();
10072
10073 int main() {
10074
10075 /* The GNU C library defines this for functions which it implements
10076     to always fail with ENOSYS.  Some functions are actually named
10077     something starting with __ and the normal name is an alias.  */
10078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10079 choke me
10080 #else
10081 $ac_func();
10082 #endif
10083
10084 ; return 0; }
10085 EOF
10086 if { (eval echo configure:10087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10087   rm -rf conftest*
10088   eval "ac_cv_func_$ac_func=yes"
10089 else
10090   echo "configure: failed program was:" >&5
10091   cat conftest.$ac_ext >&5
10092   rm -rf conftest*
10093   eval "ac_cv_func_$ac_func=no"
10094 fi
10095 rm -f conftest*
10096 fi
10097
10098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10099   echo "$ac_t""yes" 1>&6
10100     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10101   cat >> confdefs.h <<EOF
10102 #define $ac_tr_func 1
10103 EOF
10104  
10105 else
10106   echo "$ac_t""no" 1>&6
10107 fi
10108 done
10109     
10110   else
10111     
10112   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10113 echo "configure:10114: checking for _powf declaration" >&5
10114   if test x${glibcpp_cv_func__powf_use+set} != xset; then
10115     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10116   echo $ac_n "(cached) $ac_c" 1>&6
10117 else
10118   
10119       
10120       ac_ext=C
10121 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10122 ac_cpp='$CXXCPP $CPPFLAGS'
10123 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10124 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10125 cross_compiling=$ac_cv_prog_cxx_cross
10126
10127       cat > conftest.$ac_ext <<EOF
10128 #line 10129 "configure"
10129 #include "confdefs.h"
10130 #include <math.h>
10131 int main() {
10132  _powf(0, 0);
10133 ; return 0; }
10134 EOF
10135 if { (eval echo configure:10136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10136   rm -rf conftest*
10137   glibcpp_cv_func__powf_use=yes
10138 else
10139   echo "configure: failed program was:" >&5
10140   cat conftest.$ac_ext >&5
10141   rm -rf conftest*
10142   glibcpp_cv_func__powf_use=no
10143 fi
10144 rm -f conftest*
10145       ac_ext=c
10146 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10147 ac_cpp='$CPP $CPPFLAGS'
10148 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10149 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10150 cross_compiling=$ac_cv_prog_cc_cross
10151
10152     
10153 fi
10154
10155   fi
10156   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
10157
10158     if test x$glibcpp_cv_func__powf_use = x"yes"; then
10159       for ac_func in _powf
10160 do
10161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10162 echo "configure:10163: checking for $ac_func" >&5
10163 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10164   echo $ac_n "(cached) $ac_c" 1>&6
10165 else
10166   cat > conftest.$ac_ext <<EOF
10167 #line 10168 "configure"
10168 #include "confdefs.h"
10169 /* System header to define __stub macros and hopefully few prototypes,
10170     which can conflict with char $ac_func(); below.  */
10171 #include <assert.h>
10172 /* Override any gcc2 internal prototype to avoid an error.  */
10173 /* We use char because int might match the return type of a gcc2
10174     builtin and then its argument prototype would still apply.  */
10175 char $ac_func();
10176
10177 int main() {
10178
10179 /* The GNU C library defines this for functions which it implements
10180     to always fail with ENOSYS.  Some functions are actually named
10181     something starting with __ and the normal name is an alias.  */
10182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10183 choke me
10184 #else
10185 $ac_func();
10186 #endif
10187
10188 ; return 0; }
10189 EOF
10190 if { (eval echo configure:10191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10191   rm -rf conftest*
10192   eval "ac_cv_func_$ac_func=yes"
10193 else
10194   echo "configure: failed program was:" >&5
10195   cat conftest.$ac_ext >&5
10196   rm -rf conftest*
10197   eval "ac_cv_func_$ac_func=no"
10198 fi
10199 rm -f conftest*
10200 fi
10201
10202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10203   echo "$ac_t""yes" 1>&6
10204     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10205   cat >> confdefs.h <<EOF
10206 #define $ac_tr_func 1
10207 EOF
10208  
10209 else
10210   echo "$ac_t""no" 1>&6
10211 fi
10212 done
10213     
10214     fi
10215   fi
10216
10217   
10218   
10219   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
10220 echo "configure:10221: checking for sqrtf declaration" >&5
10221   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
10222     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
10223   echo $ac_n "(cached) $ac_c" 1>&6
10224 else
10225   
10226       
10227       ac_ext=C
10228 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10229 ac_cpp='$CXXCPP $CPPFLAGS'
10230 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10231 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10232 cross_compiling=$ac_cv_prog_cxx_cross
10233
10234       cat > conftest.$ac_ext <<EOF
10235 #line 10236 "configure"
10236 #include "confdefs.h"
10237 #include <math.h>
10238                       #ifdef HAVE_IEEEFP_H
10239                       #include <ieeefp.h>
10240                       #endif
10241                      
10242 int main() {
10243  sqrtf(0);
10244 ; return 0; }
10245 EOF
10246 if { (eval echo configure:10247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10247   rm -rf conftest*
10248   glibcpp_cv_func_sqrtf_use=yes
10249 else
10250   echo "configure: failed program was:" >&5
10251   cat conftest.$ac_ext >&5
10252   rm -rf conftest*
10253   glibcpp_cv_func_sqrtf_use=no
10254 fi
10255 rm -f conftest*
10256       ac_ext=c
10257 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10258 ac_cpp='$CPP $CPPFLAGS'
10259 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10260 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10261 cross_compiling=$ac_cv_prog_cc_cross
10262
10263     
10264 fi
10265
10266   fi
10267   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
10268
10269   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
10270     for ac_func in sqrtf
10271 do
10272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10273 echo "configure:10274: checking for $ac_func" >&5
10274 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10275   echo $ac_n "(cached) $ac_c" 1>&6
10276 else
10277   cat > conftest.$ac_ext <<EOF
10278 #line 10279 "configure"
10279 #include "confdefs.h"
10280 /* System header to define __stub macros and hopefully few prototypes,
10281     which can conflict with char $ac_func(); below.  */
10282 #include <assert.h>
10283 /* Override any gcc2 internal prototype to avoid an error.  */
10284 /* We use char because int might match the return type of a gcc2
10285     builtin and then its argument prototype would still apply.  */
10286 char $ac_func();
10287
10288 int main() {
10289
10290 /* The GNU C library defines this for functions which it implements
10291     to always fail with ENOSYS.  Some functions are actually named
10292     something starting with __ and the normal name is an alias.  */
10293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10294 choke me
10295 #else
10296 $ac_func();
10297 #endif
10298
10299 ; return 0; }
10300 EOF
10301 if { (eval echo configure:10302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10302   rm -rf conftest*
10303   eval "ac_cv_func_$ac_func=yes"
10304 else
10305   echo "configure: failed program was:" >&5
10306   cat conftest.$ac_ext >&5
10307   rm -rf conftest*
10308   eval "ac_cv_func_$ac_func=no"
10309 fi
10310 rm -f conftest*
10311 fi
10312
10313 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10314   echo "$ac_t""yes" 1>&6
10315     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10316   cat >> confdefs.h <<EOF
10317 #define $ac_tr_func 1
10318 EOF
10319  
10320 else
10321   echo "$ac_t""no" 1>&6
10322 fi
10323 done
10324     
10325   else
10326     
10327   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
10328 echo "configure:10329: checking for _sqrtf declaration" >&5
10329   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
10330     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
10331   echo $ac_n "(cached) $ac_c" 1>&6
10332 else
10333   
10334       
10335       ac_ext=C
10336 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10337 ac_cpp='$CXXCPP $CPPFLAGS'
10338 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10339 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10340 cross_compiling=$ac_cv_prog_cxx_cross
10341
10342       cat > conftest.$ac_ext <<EOF
10343 #line 10344 "configure"
10344 #include "confdefs.h"
10345 #include <math.h>
10346                       #ifdef HAVE_IEEEFP_H
10347                       #include <ieeefp.h>
10348                       #endif
10349                      
10350 int main() {
10351  _sqrtf(0);
10352 ; return 0; }
10353 EOF
10354 if { (eval echo configure:10355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10355   rm -rf conftest*
10356   glibcpp_cv_func__sqrtf_use=yes
10357 else
10358   echo "configure: failed program was:" >&5
10359   cat conftest.$ac_ext >&5
10360   rm -rf conftest*
10361   glibcpp_cv_func__sqrtf_use=no
10362 fi
10363 rm -f conftest*
10364       ac_ext=c
10365 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10366 ac_cpp='$CPP $CPPFLAGS'
10367 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10368 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10369 cross_compiling=$ac_cv_prog_cc_cross
10370
10371     
10372 fi
10373
10374   fi
10375   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
10376
10377     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
10378       for ac_func in _sqrtf
10379 do
10380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10381 echo "configure:10382: checking for $ac_func" >&5
10382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10383   echo $ac_n "(cached) $ac_c" 1>&6
10384 else
10385   cat > conftest.$ac_ext <<EOF
10386 #line 10387 "configure"
10387 #include "confdefs.h"
10388 /* System header to define __stub macros and hopefully few prototypes,
10389     which can conflict with char $ac_func(); below.  */
10390 #include <assert.h>
10391 /* Override any gcc2 internal prototype to avoid an error.  */
10392 /* We use char because int might match the return type of a gcc2
10393     builtin and then its argument prototype would still apply.  */
10394 char $ac_func();
10395
10396 int main() {
10397
10398 /* The GNU C library defines this for functions which it implements
10399     to always fail with ENOSYS.  Some functions are actually named
10400     something starting with __ and the normal name is an alias.  */
10401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10402 choke me
10403 #else
10404 $ac_func();
10405 #endif
10406
10407 ; return 0; }
10408 EOF
10409 if { (eval echo configure:10410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10410   rm -rf conftest*
10411   eval "ac_cv_func_$ac_func=yes"
10412 else
10413   echo "configure: failed program was:" >&5
10414   cat conftest.$ac_ext >&5
10415   rm -rf conftest*
10416   eval "ac_cv_func_$ac_func=no"
10417 fi
10418 rm -f conftest*
10419 fi
10420
10421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10422   echo "$ac_t""yes" 1>&6
10423     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10424   cat >> confdefs.h <<EOF
10425 #define $ac_tr_func 1
10426 EOF
10427  
10428 else
10429   echo "$ac_t""no" 1>&6
10430 fi
10431 done
10432     
10433     fi
10434   fi
10435
10436   
10437   
10438   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
10439 echo "configure:10440: checking for sincosf declaration" >&5
10440   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
10441     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
10442   echo $ac_n "(cached) $ac_c" 1>&6
10443 else
10444   
10445       
10446       ac_ext=C
10447 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10448 ac_cpp='$CXXCPP $CPPFLAGS'
10449 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10450 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10451 cross_compiling=$ac_cv_prog_cxx_cross
10452
10453       cat > conftest.$ac_ext <<EOF
10454 #line 10455 "configure"
10455 #include "confdefs.h"
10456 #include <math.h>
10457 int main() {
10458  sincosf(0, 0, 0);
10459 ; return 0; }
10460 EOF
10461 if { (eval echo configure:10462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10462   rm -rf conftest*
10463   glibcpp_cv_func_sincosf_use=yes
10464 else
10465   echo "configure: failed program was:" >&5
10466   cat conftest.$ac_ext >&5
10467   rm -rf conftest*
10468   glibcpp_cv_func_sincosf_use=no
10469 fi
10470 rm -f conftest*
10471       ac_ext=c
10472 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10473 ac_cpp='$CPP $CPPFLAGS'
10474 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10475 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10476 cross_compiling=$ac_cv_prog_cc_cross
10477
10478     
10479 fi
10480
10481   fi
10482   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
10483
10484   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
10485     for ac_func in sincosf
10486 do
10487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10488 echo "configure:10489: checking for $ac_func" >&5
10489 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10490   echo $ac_n "(cached) $ac_c" 1>&6
10491 else
10492   cat > conftest.$ac_ext <<EOF
10493 #line 10494 "configure"
10494 #include "confdefs.h"
10495 /* System header to define __stub macros and hopefully few prototypes,
10496     which can conflict with char $ac_func(); below.  */
10497 #include <assert.h>
10498 /* Override any gcc2 internal prototype to avoid an error.  */
10499 /* We use char because int might match the return type of a gcc2
10500     builtin and then its argument prototype would still apply.  */
10501 char $ac_func();
10502
10503 int main() {
10504
10505 /* The GNU C library defines this for functions which it implements
10506     to always fail with ENOSYS.  Some functions are actually named
10507     something starting with __ and the normal name is an alias.  */
10508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10509 choke me
10510 #else
10511 $ac_func();
10512 #endif
10513
10514 ; return 0; }
10515 EOF
10516 if { (eval echo configure:10517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10517   rm -rf conftest*
10518   eval "ac_cv_func_$ac_func=yes"
10519 else
10520   echo "configure: failed program was:" >&5
10521   cat conftest.$ac_ext >&5
10522   rm -rf conftest*
10523   eval "ac_cv_func_$ac_func=no"
10524 fi
10525 rm -f conftest*
10526 fi
10527
10528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10529   echo "$ac_t""yes" 1>&6
10530     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10531   cat >> confdefs.h <<EOF
10532 #define $ac_tr_func 1
10533 EOF
10534  
10535 else
10536   echo "$ac_t""no" 1>&6
10537 fi
10538 done
10539     
10540   else
10541     
10542   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
10543 echo "configure:10544: checking for _sincosf declaration" >&5
10544   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
10545     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
10546   echo $ac_n "(cached) $ac_c" 1>&6
10547 else
10548   
10549       
10550       ac_ext=C
10551 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10552 ac_cpp='$CXXCPP $CPPFLAGS'
10553 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10554 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10555 cross_compiling=$ac_cv_prog_cxx_cross
10556
10557       cat > conftest.$ac_ext <<EOF
10558 #line 10559 "configure"
10559 #include "confdefs.h"
10560 #include <math.h>
10561 int main() {
10562  _sincosf(0, 0, 0);
10563 ; return 0; }
10564 EOF
10565 if { (eval echo configure:10566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10566   rm -rf conftest*
10567   glibcpp_cv_func__sincosf_use=yes
10568 else
10569   echo "configure: failed program was:" >&5
10570   cat conftest.$ac_ext >&5
10571   rm -rf conftest*
10572   glibcpp_cv_func__sincosf_use=no
10573 fi
10574 rm -f conftest*
10575       ac_ext=c
10576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10577 ac_cpp='$CPP $CPPFLAGS'
10578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10580 cross_compiling=$ac_cv_prog_cc_cross
10581
10582     
10583 fi
10584
10585   fi
10586   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
10587
10588     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
10589       for ac_func in _sincosf
10590 do
10591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10592 echo "configure:10593: checking for $ac_func" >&5
10593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10594   echo $ac_n "(cached) $ac_c" 1>&6
10595 else
10596   cat > conftest.$ac_ext <<EOF
10597 #line 10598 "configure"
10598 #include "confdefs.h"
10599 /* System header to define __stub macros and hopefully few prototypes,
10600     which can conflict with char $ac_func(); below.  */
10601 #include <assert.h>
10602 /* Override any gcc2 internal prototype to avoid an error.  */
10603 /* We use char because int might match the return type of a gcc2
10604     builtin and then its argument prototype would still apply.  */
10605 char $ac_func();
10606
10607 int main() {
10608
10609 /* The GNU C library defines this for functions which it implements
10610     to always fail with ENOSYS.  Some functions are actually named
10611     something starting with __ and the normal name is an alias.  */
10612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10613 choke me
10614 #else
10615 $ac_func();
10616 #endif
10617
10618 ; return 0; }
10619 EOF
10620 if { (eval echo configure:10621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10621   rm -rf conftest*
10622   eval "ac_cv_func_$ac_func=yes"
10623 else
10624   echo "configure: failed program was:" >&5
10625   cat conftest.$ac_ext >&5
10626   rm -rf conftest*
10627   eval "ac_cv_func_$ac_func=no"
10628 fi
10629 rm -f conftest*
10630 fi
10631
10632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10633   echo "$ac_t""yes" 1>&6
10634     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10635   cat >> confdefs.h <<EOF
10636 #define $ac_tr_func 1
10637 EOF
10638  
10639 else
10640   echo "$ac_t""no" 1>&6
10641 fi
10642 done
10643     
10644     fi
10645   fi
10646
10647   
10648   
10649   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
10650 echo "configure:10651: checking for finitef declaration" >&5
10651   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
10652     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
10653   echo $ac_n "(cached) $ac_c" 1>&6
10654 else
10655   
10656       
10657       ac_ext=C
10658 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10659 ac_cpp='$CXXCPP $CPPFLAGS'
10660 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10661 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10662 cross_compiling=$ac_cv_prog_cxx_cross
10663
10664       cat > conftest.$ac_ext <<EOF
10665 #line 10666 "configure"
10666 #include "confdefs.h"
10667 #include <math.h>
10668                       #ifdef HAVE_IEEEFP_H
10669                       #include <ieeefp.h>
10670                       #endif
10671                      
10672 int main() {
10673  finitef(0);
10674 ; return 0; }
10675 EOF
10676 if { (eval echo configure:10677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10677   rm -rf conftest*
10678   glibcpp_cv_func_finitef_use=yes
10679 else
10680   echo "configure: failed program was:" >&5
10681   cat conftest.$ac_ext >&5
10682   rm -rf conftest*
10683   glibcpp_cv_func_finitef_use=no
10684 fi
10685 rm -f conftest*
10686       ac_ext=c
10687 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10688 ac_cpp='$CPP $CPPFLAGS'
10689 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10690 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10691 cross_compiling=$ac_cv_prog_cc_cross
10692
10693     
10694 fi
10695
10696   fi
10697   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
10698
10699   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
10700     for ac_func in finitef
10701 do
10702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10703 echo "configure:10704: checking for $ac_func" >&5
10704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10705   echo $ac_n "(cached) $ac_c" 1>&6
10706 else
10707   cat > conftest.$ac_ext <<EOF
10708 #line 10709 "configure"
10709 #include "confdefs.h"
10710 /* System header to define __stub macros and hopefully few prototypes,
10711     which can conflict with char $ac_func(); below.  */
10712 #include <assert.h>
10713 /* Override any gcc2 internal prototype to avoid an error.  */
10714 /* We use char because int might match the return type of a gcc2
10715     builtin and then its argument prototype would still apply.  */
10716 char $ac_func();
10717
10718 int main() {
10719
10720 /* The GNU C library defines this for functions which it implements
10721     to always fail with ENOSYS.  Some functions are actually named
10722     something starting with __ and the normal name is an alias.  */
10723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10724 choke me
10725 #else
10726 $ac_func();
10727 #endif
10728
10729 ; return 0; }
10730 EOF
10731 if { (eval echo configure:10732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10732   rm -rf conftest*
10733   eval "ac_cv_func_$ac_func=yes"
10734 else
10735   echo "configure: failed program was:" >&5
10736   cat conftest.$ac_ext >&5
10737   rm -rf conftest*
10738   eval "ac_cv_func_$ac_func=no"
10739 fi
10740 rm -f conftest*
10741 fi
10742
10743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10744   echo "$ac_t""yes" 1>&6
10745     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10746   cat >> confdefs.h <<EOF
10747 #define $ac_tr_func 1
10748 EOF
10749  
10750 else
10751   echo "$ac_t""no" 1>&6
10752 fi
10753 done
10754     
10755   else
10756     
10757   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
10758 echo "configure:10759: checking for _finitef declaration" >&5
10759   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
10760     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
10761   echo $ac_n "(cached) $ac_c" 1>&6
10762 else
10763   
10764       
10765       ac_ext=C
10766 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10767 ac_cpp='$CXXCPP $CPPFLAGS'
10768 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10769 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10770 cross_compiling=$ac_cv_prog_cxx_cross
10771
10772       cat > conftest.$ac_ext <<EOF
10773 #line 10774 "configure"
10774 #include "confdefs.h"
10775 #include <math.h>
10776                       #ifdef HAVE_IEEEFP_H
10777                       #include <ieeefp.h>
10778                       #endif
10779                      
10780 int main() {
10781  _finitef(0);
10782 ; return 0; }
10783 EOF
10784 if { (eval echo configure:10785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10785   rm -rf conftest*
10786   glibcpp_cv_func__finitef_use=yes
10787 else
10788   echo "configure: failed program was:" >&5
10789   cat conftest.$ac_ext >&5
10790   rm -rf conftest*
10791   glibcpp_cv_func__finitef_use=no
10792 fi
10793 rm -f conftest*
10794       ac_ext=c
10795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10796 ac_cpp='$CPP $CPPFLAGS'
10797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10799 cross_compiling=$ac_cv_prog_cc_cross
10800
10801     
10802 fi
10803
10804   fi
10805   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
10806
10807     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
10808       for ac_func in _finitef
10809 do
10810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10811 echo "configure:10812: checking for $ac_func" >&5
10812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10813   echo $ac_n "(cached) $ac_c" 1>&6
10814 else
10815   cat > conftest.$ac_ext <<EOF
10816 #line 10817 "configure"
10817 #include "confdefs.h"
10818 /* System header to define __stub macros and hopefully few prototypes,
10819     which can conflict with char $ac_func(); below.  */
10820 #include <assert.h>
10821 /* Override any gcc2 internal prototype to avoid an error.  */
10822 /* We use char because int might match the return type of a gcc2
10823     builtin and then its argument prototype would still apply.  */
10824 char $ac_func();
10825
10826 int main() {
10827
10828 /* The GNU C library defines this for functions which it implements
10829     to always fail with ENOSYS.  Some functions are actually named
10830     something starting with __ and the normal name is an alias.  */
10831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10832 choke me
10833 #else
10834 $ac_func();
10835 #endif
10836
10837 ; return 0; }
10838 EOF
10839 if { (eval echo configure:10840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10840   rm -rf conftest*
10841   eval "ac_cv_func_$ac_func=yes"
10842 else
10843   echo "configure: failed program was:" >&5
10844   cat conftest.$ac_ext >&5
10845   rm -rf conftest*
10846   eval "ac_cv_func_$ac_func=no"
10847 fi
10848 rm -f conftest*
10849 fi
10850
10851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10852   echo "$ac_t""yes" 1>&6
10853     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10854   cat >> confdefs.h <<EOF
10855 #define $ac_tr_func 1
10856 EOF
10857  
10858 else
10859   echo "$ac_t""no" 1>&6
10860 fi
10861 done
10862     
10863     fi
10864   fi
10865
10866
10867     
10868   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
10869 echo "configure:10870: checking for long double trig functions" >&5
10870   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
10871   echo $ac_n "(cached) $ac_c" 1>&6
10872 else
10873   
10874     
10875     ac_ext=C
10876 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10877 ac_cpp='$CXXCPP $CPPFLAGS'
10878 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10879 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10880 cross_compiling=$ac_cv_prog_cxx_cross
10881
10882     cat > conftest.$ac_ext <<EOF
10883 #line 10884 "configure"
10884 #include "confdefs.h"
10885 #include <math.h>
10886 int main() {
10887  `for x in acosl asinl atanl \
10888                                           cosl sinl tanl \
10889                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
10890 ; return 0; }
10891 EOF
10892 if { (eval echo configure:10893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10893   rm -rf conftest*
10894   glibcpp_cv_func_long_double_trig_use=yes
10895 else
10896   echo "configure: failed program was:" >&5
10897   cat conftest.$ac_ext >&5
10898   rm -rf conftest*
10899   glibcpp_cv_func_long_double_trig_use=no
10900 fi
10901 rm -f conftest*
10902     ac_ext=c
10903 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10904 ac_cpp='$CPP $CPPFLAGS'
10905 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10906 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10907 cross_compiling=$ac_cv_prog_cc_cross
10908
10909 fi
10910
10911   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
10912   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
10913     for ac_func in acosl asinl atanl \
10914                                           cosl sinl tanl \
10915                                           coshl sinhl tanhl
10916 do
10917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10918 echo "configure:10919: checking for $ac_func" >&5
10919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10920   echo $ac_n "(cached) $ac_c" 1>&6
10921 else
10922   cat > conftest.$ac_ext <<EOF
10923 #line 10924 "configure"
10924 #include "confdefs.h"
10925 /* System header to define __stub macros and hopefully few prototypes,
10926     which can conflict with char $ac_func(); below.  */
10927 #include <assert.h>
10928 /* Override any gcc2 internal prototype to avoid an error.  */
10929 /* We use char because int might match the return type of a gcc2
10930     builtin and then its argument prototype would still apply.  */
10931 char $ac_func();
10932
10933 int main() {
10934
10935 /* The GNU C library defines this for functions which it implements
10936     to always fail with ENOSYS.  Some functions are actually named
10937     something starting with __ and the normal name is an alias.  */
10938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10939 choke me
10940 #else
10941 $ac_func();
10942 #endif
10943
10944 ; return 0; }
10945 EOF
10946 if { (eval echo configure:10947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10947   rm -rf conftest*
10948   eval "ac_cv_func_$ac_func=yes"
10949 else
10950   echo "configure: failed program was:" >&5
10951   cat conftest.$ac_ext >&5
10952   rm -rf conftest*
10953   eval "ac_cv_func_$ac_func=no"
10954 fi
10955 rm -f conftest*
10956 fi
10957
10958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10959   echo "$ac_t""yes" 1>&6
10960     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10961   cat >> confdefs.h <<EOF
10962 #define $ac_tr_func 1
10963 EOF
10964  
10965 else
10966   echo "$ac_t""no" 1>&6
10967 fi
10968 done
10969
10970   fi
10971
10972   
10973   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
10974 echo "configure:10975: checking for long double round functions" >&5
10975   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
10976   echo $ac_n "(cached) $ac_c" 1>&6
10977 else
10978   
10979     
10980     ac_ext=C
10981 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10982 ac_cpp='$CXXCPP $CPPFLAGS'
10983 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10984 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10985 cross_compiling=$ac_cv_prog_cxx_cross
10986
10987     cat > conftest.$ac_ext <<EOF
10988 #line 10989 "configure"
10989 #include "confdefs.h"
10990 #include <math.h>
10991 int main() {
10992  `for x in ceill floorl; do echo "$x (0);"; done` 
10993 ; return 0; }
10994 EOF
10995 if { (eval echo configure:10996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10996   rm -rf conftest*
10997   glibcpp_cv_func_long_double_round_use=yes
10998 else
10999   echo "configure: failed program was:" >&5
11000   cat conftest.$ac_ext >&5
11001   rm -rf conftest*
11002   glibcpp_cv_func_long_double_round_use=no
11003 fi
11004 rm -f conftest*
11005     ac_ext=c
11006 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11007 ac_cpp='$CPP $CPPFLAGS'
11008 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11009 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11010 cross_compiling=$ac_cv_prog_cc_cross
11011
11012 fi
11013
11014   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11015   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11016     for ac_func in ceill floorl
11017 do
11018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11019 echo "configure:11020: checking for $ac_func" >&5
11020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11021   echo $ac_n "(cached) $ac_c" 1>&6
11022 else
11023   cat > conftest.$ac_ext <<EOF
11024 #line 11025 "configure"
11025 #include "confdefs.h"
11026 /* System header to define __stub macros and hopefully few prototypes,
11027     which can conflict with char $ac_func(); below.  */
11028 #include <assert.h>
11029 /* Override any gcc2 internal prototype to avoid an error.  */
11030 /* We use char because int might match the return type of a gcc2
11031     builtin and then its argument prototype would still apply.  */
11032 char $ac_func();
11033
11034 int main() {
11035
11036 /* The GNU C library defines this for functions which it implements
11037     to always fail with ENOSYS.  Some functions are actually named
11038     something starting with __ and the normal name is an alias.  */
11039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11040 choke me
11041 #else
11042 $ac_func();
11043 #endif
11044
11045 ; return 0; }
11046 EOF
11047 if { (eval echo configure:11048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11048   rm -rf conftest*
11049   eval "ac_cv_func_$ac_func=yes"
11050 else
11051   echo "configure: failed program was:" >&5
11052   cat conftest.$ac_ext >&5
11053   rm -rf conftest*
11054   eval "ac_cv_func_$ac_func=no"
11055 fi
11056 rm -f conftest*
11057 fi
11058
11059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11060   echo "$ac_t""yes" 1>&6
11061     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11062   cat >> confdefs.h <<EOF
11063 #define $ac_tr_func 1
11064 EOF
11065  
11066 else
11067   echo "$ac_t""no" 1>&6
11068 fi
11069 done
11070
11071   fi
11072
11073   
11074   
11075   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11076 echo "configure:11077: checking for isnanl declaration" >&5
11077   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11078     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11079   echo $ac_n "(cached) $ac_c" 1>&6
11080 else
11081   
11082       
11083       ac_ext=C
11084 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11085 ac_cpp='$CXXCPP $CPPFLAGS'
11086 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11087 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11088 cross_compiling=$ac_cv_prog_cxx_cross
11089
11090       cat > conftest.$ac_ext <<EOF
11091 #line 11092 "configure"
11092 #include "confdefs.h"
11093 #include <math.h>
11094                       #ifdef HAVE_IEEEFP_H
11095                       #include <ieeefp.h>
11096                       #endif
11097                      
11098 int main() {
11099  isnanl(0);
11100 ; return 0; }
11101 EOF
11102 if { (eval echo configure:11103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11103   rm -rf conftest*
11104   glibcpp_cv_func_isnanl_use=yes
11105 else
11106   echo "configure: failed program was:" >&5
11107   cat conftest.$ac_ext >&5
11108   rm -rf conftest*
11109   glibcpp_cv_func_isnanl_use=no
11110 fi
11111 rm -f conftest*
11112       ac_ext=c
11113 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11114 ac_cpp='$CPP $CPPFLAGS'
11115 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11116 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11117 cross_compiling=$ac_cv_prog_cc_cross
11118
11119     
11120 fi
11121
11122   fi
11123   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11124
11125   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11126     for ac_func in isnanl
11127 do
11128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11129 echo "configure:11130: checking for $ac_func" >&5
11130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11131   echo $ac_n "(cached) $ac_c" 1>&6
11132 else
11133   cat > conftest.$ac_ext <<EOF
11134 #line 11135 "configure"
11135 #include "confdefs.h"
11136 /* System header to define __stub macros and hopefully few prototypes,
11137     which can conflict with char $ac_func(); below.  */
11138 #include <assert.h>
11139 /* Override any gcc2 internal prototype to avoid an error.  */
11140 /* We use char because int might match the return type of a gcc2
11141     builtin and then its argument prototype would still apply.  */
11142 char $ac_func();
11143
11144 int main() {
11145
11146 /* The GNU C library defines this for functions which it implements
11147     to always fail with ENOSYS.  Some functions are actually named
11148     something starting with __ and the normal name is an alias.  */
11149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11150 choke me
11151 #else
11152 $ac_func();
11153 #endif
11154
11155 ; return 0; }
11156 EOF
11157 if { (eval echo configure:11158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11158   rm -rf conftest*
11159   eval "ac_cv_func_$ac_func=yes"
11160 else
11161   echo "configure: failed program was:" >&5
11162   cat conftest.$ac_ext >&5
11163   rm -rf conftest*
11164   eval "ac_cv_func_$ac_func=no"
11165 fi
11166 rm -f conftest*
11167 fi
11168
11169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11170   echo "$ac_t""yes" 1>&6
11171     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11172   cat >> confdefs.h <<EOF
11173 #define $ac_tr_func 1
11174 EOF
11175  
11176 else
11177   echo "$ac_t""no" 1>&6
11178 fi
11179 done
11180     
11181   else
11182     
11183   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
11184 echo "configure:11185: checking for _isnanl declaration" >&5
11185   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
11186     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
11187   echo $ac_n "(cached) $ac_c" 1>&6
11188 else
11189   
11190       
11191       ac_ext=C
11192 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11193 ac_cpp='$CXXCPP $CPPFLAGS'
11194 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11195 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11196 cross_compiling=$ac_cv_prog_cxx_cross
11197
11198       cat > conftest.$ac_ext <<EOF
11199 #line 11200 "configure"
11200 #include "confdefs.h"
11201 #include <math.h>
11202                       #ifdef HAVE_IEEEFP_H
11203                       #include <ieeefp.h>
11204                       #endif
11205                      
11206 int main() {
11207  _isnanl(0);
11208 ; return 0; }
11209 EOF
11210 if { (eval echo configure:11211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11211   rm -rf conftest*
11212   glibcpp_cv_func__isnanl_use=yes
11213 else
11214   echo "configure: failed program was:" >&5
11215   cat conftest.$ac_ext >&5
11216   rm -rf conftest*
11217   glibcpp_cv_func__isnanl_use=no
11218 fi
11219 rm -f conftest*
11220       ac_ext=c
11221 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11222 ac_cpp='$CPP $CPPFLAGS'
11223 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11224 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11225 cross_compiling=$ac_cv_prog_cc_cross
11226
11227     
11228 fi
11229
11230   fi
11231   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
11232
11233     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
11234       for ac_func in _isnanl
11235 do
11236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11237 echo "configure:11238: checking for $ac_func" >&5
11238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11239   echo $ac_n "(cached) $ac_c" 1>&6
11240 else
11241   cat > conftest.$ac_ext <<EOF
11242 #line 11243 "configure"
11243 #include "confdefs.h"
11244 /* System header to define __stub macros and hopefully few prototypes,
11245     which can conflict with char $ac_func(); below.  */
11246 #include <assert.h>
11247 /* Override any gcc2 internal prototype to avoid an error.  */
11248 /* We use char because int might match the return type of a gcc2
11249     builtin and then its argument prototype would still apply.  */
11250 char $ac_func();
11251
11252 int main() {
11253
11254 /* The GNU C library defines this for functions which it implements
11255     to always fail with ENOSYS.  Some functions are actually named
11256     something starting with __ and the normal name is an alias.  */
11257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11258 choke me
11259 #else
11260 $ac_func();
11261 #endif
11262
11263 ; return 0; }
11264 EOF
11265 if { (eval echo configure:11266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11266   rm -rf conftest*
11267   eval "ac_cv_func_$ac_func=yes"
11268 else
11269   echo "configure: failed program was:" >&5
11270   cat conftest.$ac_ext >&5
11271   rm -rf conftest*
11272   eval "ac_cv_func_$ac_func=no"
11273 fi
11274 rm -f conftest*
11275 fi
11276
11277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11278   echo "$ac_t""yes" 1>&6
11279     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11280   cat >> confdefs.h <<EOF
11281 #define $ac_tr_func 1
11282 EOF
11283  
11284 else
11285   echo "$ac_t""no" 1>&6
11286 fi
11287 done
11288     
11289     fi
11290   fi
11291
11292   
11293   
11294   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
11295 echo "configure:11296: checking for isinfl declaration" >&5
11296   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
11297     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
11298   echo $ac_n "(cached) $ac_c" 1>&6
11299 else
11300   
11301       
11302       ac_ext=C
11303 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11304 ac_cpp='$CXXCPP $CPPFLAGS'
11305 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11306 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11307 cross_compiling=$ac_cv_prog_cxx_cross
11308
11309       cat > conftest.$ac_ext <<EOF
11310 #line 11311 "configure"
11311 #include "confdefs.h"
11312 #include <math.h>
11313                       #ifdef HAVE_IEEEFP_H
11314                       #include <ieeefp.h>
11315                       #endif
11316                      
11317 int main() {
11318  isinfl(0);
11319 ; return 0; }
11320 EOF
11321 if { (eval echo configure:11322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11322   rm -rf conftest*
11323   glibcpp_cv_func_isinfl_use=yes
11324 else
11325   echo "configure: failed program was:" >&5
11326   cat conftest.$ac_ext >&5
11327   rm -rf conftest*
11328   glibcpp_cv_func_isinfl_use=no
11329 fi
11330 rm -f conftest*
11331       ac_ext=c
11332 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11333 ac_cpp='$CPP $CPPFLAGS'
11334 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11335 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11336 cross_compiling=$ac_cv_prog_cc_cross
11337
11338     
11339 fi
11340
11341   fi
11342   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
11343
11344   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
11345     for ac_func in isinfl
11346 do
11347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11348 echo "configure:11349: checking for $ac_func" >&5
11349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11350   echo $ac_n "(cached) $ac_c" 1>&6
11351 else
11352   cat > conftest.$ac_ext <<EOF
11353 #line 11354 "configure"
11354 #include "confdefs.h"
11355 /* System header to define __stub macros and hopefully few prototypes,
11356     which can conflict with char $ac_func(); below.  */
11357 #include <assert.h>
11358 /* Override any gcc2 internal prototype to avoid an error.  */
11359 /* We use char because int might match the return type of a gcc2
11360     builtin and then its argument prototype would still apply.  */
11361 char $ac_func();
11362
11363 int main() {
11364
11365 /* The GNU C library defines this for functions which it implements
11366     to always fail with ENOSYS.  Some functions are actually named
11367     something starting with __ and the normal name is an alias.  */
11368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11369 choke me
11370 #else
11371 $ac_func();
11372 #endif
11373
11374 ; return 0; }
11375 EOF
11376 if { (eval echo configure:11377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11377   rm -rf conftest*
11378   eval "ac_cv_func_$ac_func=yes"
11379 else
11380   echo "configure: failed program was:" >&5
11381   cat conftest.$ac_ext >&5
11382   rm -rf conftest*
11383   eval "ac_cv_func_$ac_func=no"
11384 fi
11385 rm -f conftest*
11386 fi
11387
11388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11389   echo "$ac_t""yes" 1>&6
11390     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11391   cat >> confdefs.h <<EOF
11392 #define $ac_tr_func 1
11393 EOF
11394  
11395 else
11396   echo "$ac_t""no" 1>&6
11397 fi
11398 done
11399     
11400   else
11401     
11402   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
11403 echo "configure:11404: checking for _isinfl declaration" >&5
11404   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
11405     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
11406   echo $ac_n "(cached) $ac_c" 1>&6
11407 else
11408   
11409       
11410       ac_ext=C
11411 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11412 ac_cpp='$CXXCPP $CPPFLAGS'
11413 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11414 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11415 cross_compiling=$ac_cv_prog_cxx_cross
11416
11417       cat > conftest.$ac_ext <<EOF
11418 #line 11419 "configure"
11419 #include "confdefs.h"
11420 #include <math.h>
11421                       #ifdef HAVE_IEEEFP_H
11422                       #include <ieeefp.h>
11423                       #endif
11424                      
11425 int main() {
11426  _isinfl(0);
11427 ; return 0; }
11428 EOF
11429 if { (eval echo configure:11430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11430   rm -rf conftest*
11431   glibcpp_cv_func__isinfl_use=yes
11432 else
11433   echo "configure: failed program was:" >&5
11434   cat conftest.$ac_ext >&5
11435   rm -rf conftest*
11436   glibcpp_cv_func__isinfl_use=no
11437 fi
11438 rm -f conftest*
11439       ac_ext=c
11440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11441 ac_cpp='$CPP $CPPFLAGS'
11442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11444 cross_compiling=$ac_cv_prog_cc_cross
11445
11446     
11447 fi
11448
11449   fi
11450   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
11451
11452     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
11453       for ac_func in _isinfl
11454 do
11455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11456 echo "configure:11457: checking for $ac_func" >&5
11457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11458   echo $ac_n "(cached) $ac_c" 1>&6
11459 else
11460   cat > conftest.$ac_ext <<EOF
11461 #line 11462 "configure"
11462 #include "confdefs.h"
11463 /* System header to define __stub macros and hopefully few prototypes,
11464     which can conflict with char $ac_func(); below.  */
11465 #include <assert.h>
11466 /* Override any gcc2 internal prototype to avoid an error.  */
11467 /* We use char because int might match the return type of a gcc2
11468     builtin and then its argument prototype would still apply.  */
11469 char $ac_func();
11470
11471 int main() {
11472
11473 /* The GNU C library defines this for functions which it implements
11474     to always fail with ENOSYS.  Some functions are actually named
11475     something starting with __ and the normal name is an alias.  */
11476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11477 choke me
11478 #else
11479 $ac_func();
11480 #endif
11481
11482 ; return 0; }
11483 EOF
11484 if { (eval echo configure:11485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11485   rm -rf conftest*
11486   eval "ac_cv_func_$ac_func=yes"
11487 else
11488   echo "configure: failed program was:" >&5
11489   cat conftest.$ac_ext >&5
11490   rm -rf conftest*
11491   eval "ac_cv_func_$ac_func=no"
11492 fi
11493 rm -f conftest*
11494 fi
11495
11496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11497   echo "$ac_t""yes" 1>&6
11498     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11499   cat >> confdefs.h <<EOF
11500 #define $ac_tr_func 1
11501 EOF
11502  
11503 else
11504   echo "$ac_t""no" 1>&6
11505 fi
11506 done
11507     
11508     fi
11509   fi
11510
11511   
11512   
11513   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
11514 echo "configure:11515: checking for copysignl declaration" >&5
11515   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
11516     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
11517   echo $ac_n "(cached) $ac_c" 1>&6
11518 else
11519   
11520       
11521       ac_ext=C
11522 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11523 ac_cpp='$CXXCPP $CPPFLAGS'
11524 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11525 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11526 cross_compiling=$ac_cv_prog_cxx_cross
11527
11528       cat > conftest.$ac_ext <<EOF
11529 #line 11530 "configure"
11530 #include "confdefs.h"
11531 #include <math.h>
11532 int main() {
11533  copysignl(0, 0);
11534 ; return 0; }
11535 EOF
11536 if { (eval echo configure:11537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11537   rm -rf conftest*
11538   glibcpp_cv_func_copysignl_use=yes
11539 else
11540   echo "configure: failed program was:" >&5
11541   cat conftest.$ac_ext >&5
11542   rm -rf conftest*
11543   glibcpp_cv_func_copysignl_use=no
11544 fi
11545 rm -f conftest*
11546       ac_ext=c
11547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11548 ac_cpp='$CPP $CPPFLAGS'
11549 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11550 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11551 cross_compiling=$ac_cv_prog_cc_cross
11552
11553     
11554 fi
11555
11556   fi
11557   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
11558
11559   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
11560     for ac_func in copysignl
11561 do
11562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11563 echo "configure:11564: checking for $ac_func" >&5
11564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11565   echo $ac_n "(cached) $ac_c" 1>&6
11566 else
11567   cat > conftest.$ac_ext <<EOF
11568 #line 11569 "configure"
11569 #include "confdefs.h"
11570 /* System header to define __stub macros and hopefully few prototypes,
11571     which can conflict with char $ac_func(); below.  */
11572 #include <assert.h>
11573 /* Override any gcc2 internal prototype to avoid an error.  */
11574 /* We use char because int might match the return type of a gcc2
11575     builtin and then its argument prototype would still apply.  */
11576 char $ac_func();
11577
11578 int main() {
11579
11580 /* The GNU C library defines this for functions which it implements
11581     to always fail with ENOSYS.  Some functions are actually named
11582     something starting with __ and the normal name is an alias.  */
11583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11584 choke me
11585 #else
11586 $ac_func();
11587 #endif
11588
11589 ; return 0; }
11590 EOF
11591 if { (eval echo configure:11592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11592   rm -rf conftest*
11593   eval "ac_cv_func_$ac_func=yes"
11594 else
11595   echo "configure: failed program was:" >&5
11596   cat conftest.$ac_ext >&5
11597   rm -rf conftest*
11598   eval "ac_cv_func_$ac_func=no"
11599 fi
11600 rm -f conftest*
11601 fi
11602
11603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11604   echo "$ac_t""yes" 1>&6
11605     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11606   cat >> confdefs.h <<EOF
11607 #define $ac_tr_func 1
11608 EOF
11609  
11610 else
11611   echo "$ac_t""no" 1>&6
11612 fi
11613 done
11614     
11615   else
11616     
11617   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
11618 echo "configure:11619: checking for _copysignl declaration" >&5
11619   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
11620     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
11621   echo $ac_n "(cached) $ac_c" 1>&6
11622 else
11623   
11624       
11625       ac_ext=C
11626 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11627 ac_cpp='$CXXCPP $CPPFLAGS'
11628 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11629 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11630 cross_compiling=$ac_cv_prog_cxx_cross
11631
11632       cat > conftest.$ac_ext <<EOF
11633 #line 11634 "configure"
11634 #include "confdefs.h"
11635 #include <math.h>
11636 int main() {
11637  _copysignl(0, 0);
11638 ; return 0; }
11639 EOF
11640 if { (eval echo configure:11641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11641   rm -rf conftest*
11642   glibcpp_cv_func__copysignl_use=yes
11643 else
11644   echo "configure: failed program was:" >&5
11645   cat conftest.$ac_ext >&5
11646   rm -rf conftest*
11647   glibcpp_cv_func__copysignl_use=no
11648 fi
11649 rm -f conftest*
11650       ac_ext=c
11651 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11652 ac_cpp='$CPP $CPPFLAGS'
11653 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11654 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11655 cross_compiling=$ac_cv_prog_cc_cross
11656
11657     
11658 fi
11659
11660   fi
11661   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
11662
11663     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
11664       for ac_func in _copysignl
11665 do
11666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11667 echo "configure:11668: checking for $ac_func" >&5
11668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11669   echo $ac_n "(cached) $ac_c" 1>&6
11670 else
11671   cat > conftest.$ac_ext <<EOF
11672 #line 11673 "configure"
11673 #include "confdefs.h"
11674 /* System header to define __stub macros and hopefully few prototypes,
11675     which can conflict with char $ac_func(); below.  */
11676 #include <assert.h>
11677 /* Override any gcc2 internal prototype to avoid an error.  */
11678 /* We use char because int might match the return type of a gcc2
11679     builtin and then its argument prototype would still apply.  */
11680 char $ac_func();
11681
11682 int main() {
11683
11684 /* The GNU C library defines this for functions which it implements
11685     to always fail with ENOSYS.  Some functions are actually named
11686     something starting with __ and the normal name is an alias.  */
11687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11688 choke me
11689 #else
11690 $ac_func();
11691 #endif
11692
11693 ; return 0; }
11694 EOF
11695 if { (eval echo configure:11696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11696   rm -rf conftest*
11697   eval "ac_cv_func_$ac_func=yes"
11698 else
11699   echo "configure: failed program was:" >&5
11700   cat conftest.$ac_ext >&5
11701   rm -rf conftest*
11702   eval "ac_cv_func_$ac_func=no"
11703 fi
11704 rm -f conftest*
11705 fi
11706
11707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11708   echo "$ac_t""yes" 1>&6
11709     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11710   cat >> confdefs.h <<EOF
11711 #define $ac_tr_func 1
11712 EOF
11713  
11714 else
11715   echo "$ac_t""no" 1>&6
11716 fi
11717 done
11718     
11719     fi
11720   fi
11721
11722   
11723   
11724   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
11725 echo "configure:11726: checking for atan2l declaration" >&5
11726   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
11727     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
11728   echo $ac_n "(cached) $ac_c" 1>&6
11729 else
11730   
11731       
11732       ac_ext=C
11733 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11734 ac_cpp='$CXXCPP $CPPFLAGS'
11735 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11736 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11737 cross_compiling=$ac_cv_prog_cxx_cross
11738
11739       cat > conftest.$ac_ext <<EOF
11740 #line 11741 "configure"
11741 #include "confdefs.h"
11742 #include <math.h>
11743 int main() {
11744  atan2l(0, 0);
11745 ; return 0; }
11746 EOF
11747 if { (eval echo configure:11748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11748   rm -rf conftest*
11749   glibcpp_cv_func_atan2l_use=yes
11750 else
11751   echo "configure: failed program was:" >&5
11752   cat conftest.$ac_ext >&5
11753   rm -rf conftest*
11754   glibcpp_cv_func_atan2l_use=no
11755 fi
11756 rm -f conftest*
11757       ac_ext=c
11758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11759 ac_cpp='$CPP $CPPFLAGS'
11760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11762 cross_compiling=$ac_cv_prog_cc_cross
11763
11764     
11765 fi
11766
11767   fi
11768   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
11769
11770   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
11771     for ac_func in atan2l
11772 do
11773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11774 echo "configure:11775: checking for $ac_func" >&5
11775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11776   echo $ac_n "(cached) $ac_c" 1>&6
11777 else
11778   cat > conftest.$ac_ext <<EOF
11779 #line 11780 "configure"
11780 #include "confdefs.h"
11781 /* System header to define __stub macros and hopefully few prototypes,
11782     which can conflict with char $ac_func(); below.  */
11783 #include <assert.h>
11784 /* Override any gcc2 internal prototype to avoid an error.  */
11785 /* We use char because int might match the return type of a gcc2
11786     builtin and then its argument prototype would still apply.  */
11787 char $ac_func();
11788
11789 int main() {
11790
11791 /* The GNU C library defines this for functions which it implements
11792     to always fail with ENOSYS.  Some functions are actually named
11793     something starting with __ and the normal name is an alias.  */
11794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11795 choke me
11796 #else
11797 $ac_func();
11798 #endif
11799
11800 ; return 0; }
11801 EOF
11802 if { (eval echo configure:11803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11803   rm -rf conftest*
11804   eval "ac_cv_func_$ac_func=yes"
11805 else
11806   echo "configure: failed program was:" >&5
11807   cat conftest.$ac_ext >&5
11808   rm -rf conftest*
11809   eval "ac_cv_func_$ac_func=no"
11810 fi
11811 rm -f conftest*
11812 fi
11813
11814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11815   echo "$ac_t""yes" 1>&6
11816     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11817   cat >> confdefs.h <<EOF
11818 #define $ac_tr_func 1
11819 EOF
11820  
11821 else
11822   echo "$ac_t""no" 1>&6
11823 fi
11824 done
11825     
11826   else
11827     
11828   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
11829 echo "configure:11830: checking for _atan2l declaration" >&5
11830   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
11831     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
11832   echo $ac_n "(cached) $ac_c" 1>&6
11833 else
11834   
11835       
11836       ac_ext=C
11837 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11838 ac_cpp='$CXXCPP $CPPFLAGS'
11839 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11840 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11841 cross_compiling=$ac_cv_prog_cxx_cross
11842
11843       cat > conftest.$ac_ext <<EOF
11844 #line 11845 "configure"
11845 #include "confdefs.h"
11846 #include <math.h>
11847 int main() {
11848  _atan2l(0, 0);
11849 ; return 0; }
11850 EOF
11851 if { (eval echo configure:11852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11852   rm -rf conftest*
11853   glibcpp_cv_func__atan2l_use=yes
11854 else
11855   echo "configure: failed program was:" >&5
11856   cat conftest.$ac_ext >&5
11857   rm -rf conftest*
11858   glibcpp_cv_func__atan2l_use=no
11859 fi
11860 rm -f conftest*
11861       ac_ext=c
11862 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11863 ac_cpp='$CPP $CPPFLAGS'
11864 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11865 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11866 cross_compiling=$ac_cv_prog_cc_cross
11867
11868     
11869 fi
11870
11871   fi
11872   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
11873
11874     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
11875       for ac_func in _atan2l
11876 do
11877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11878 echo "configure:11879: checking for $ac_func" >&5
11879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11880   echo $ac_n "(cached) $ac_c" 1>&6
11881 else
11882   cat > conftest.$ac_ext <<EOF
11883 #line 11884 "configure"
11884 #include "confdefs.h"
11885 /* System header to define __stub macros and hopefully few prototypes,
11886     which can conflict with char $ac_func(); below.  */
11887 #include <assert.h>
11888 /* Override any gcc2 internal prototype to avoid an error.  */
11889 /* We use char because int might match the return type of a gcc2
11890     builtin and then its argument prototype would still apply.  */
11891 char $ac_func();
11892
11893 int main() {
11894
11895 /* The GNU C library defines this for functions which it implements
11896     to always fail with ENOSYS.  Some functions are actually named
11897     something starting with __ and the normal name is an alias.  */
11898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11899 choke me
11900 #else
11901 $ac_func();
11902 #endif
11903
11904 ; return 0; }
11905 EOF
11906 if { (eval echo configure:11907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11907   rm -rf conftest*
11908   eval "ac_cv_func_$ac_func=yes"
11909 else
11910   echo "configure: failed program was:" >&5
11911   cat conftest.$ac_ext >&5
11912   rm -rf conftest*
11913   eval "ac_cv_func_$ac_func=no"
11914 fi
11915 rm -f conftest*
11916 fi
11917
11918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11919   echo "$ac_t""yes" 1>&6
11920     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11921   cat >> confdefs.h <<EOF
11922 #define $ac_tr_func 1
11923 EOF
11924  
11925 else
11926   echo "$ac_t""no" 1>&6
11927 fi
11928 done
11929     
11930     fi
11931   fi
11932
11933   
11934   
11935   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
11936 echo "configure:11937: checking for expl declaration" >&5
11937   if test x${glibcpp_cv_func_expl_use+set} != xset; then
11938     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
11939   echo $ac_n "(cached) $ac_c" 1>&6
11940 else
11941   
11942       
11943       ac_ext=C
11944 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11945 ac_cpp='$CXXCPP $CPPFLAGS'
11946 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11947 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11948 cross_compiling=$ac_cv_prog_cxx_cross
11949
11950       cat > conftest.$ac_ext <<EOF
11951 #line 11952 "configure"
11952 #include "confdefs.h"
11953 #include <math.h>
11954                       #ifdef HAVE_IEEEFP_H
11955                       #include <ieeefp.h>
11956                       #endif
11957                      
11958 int main() {
11959  expl(0);
11960 ; return 0; }
11961 EOF
11962 if { (eval echo configure:11963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11963   rm -rf conftest*
11964   glibcpp_cv_func_expl_use=yes
11965 else
11966   echo "configure: failed program was:" >&5
11967   cat conftest.$ac_ext >&5
11968   rm -rf conftest*
11969   glibcpp_cv_func_expl_use=no
11970 fi
11971 rm -f conftest*
11972       ac_ext=c
11973 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11974 ac_cpp='$CPP $CPPFLAGS'
11975 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11976 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11977 cross_compiling=$ac_cv_prog_cc_cross
11978
11979     
11980 fi
11981
11982   fi
11983   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
11984
11985   if test x$glibcpp_cv_func_expl_use = x"yes"; then
11986     for ac_func in expl
11987 do
11988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11989 echo "configure:11990: checking for $ac_func" >&5
11990 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11991   echo $ac_n "(cached) $ac_c" 1>&6
11992 else
11993   cat > conftest.$ac_ext <<EOF
11994 #line 11995 "configure"
11995 #include "confdefs.h"
11996 /* System header to define __stub macros and hopefully few prototypes,
11997     which can conflict with char $ac_func(); below.  */
11998 #include <assert.h>
11999 /* Override any gcc2 internal prototype to avoid an error.  */
12000 /* We use char because int might match the return type of a gcc2
12001     builtin and then its argument prototype would still apply.  */
12002 char $ac_func();
12003
12004 int main() {
12005
12006 /* The GNU C library defines this for functions which it implements
12007     to always fail with ENOSYS.  Some functions are actually named
12008     something starting with __ and the normal name is an alias.  */
12009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12010 choke me
12011 #else
12012 $ac_func();
12013 #endif
12014
12015 ; return 0; }
12016 EOF
12017 if { (eval echo configure:12018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12018   rm -rf conftest*
12019   eval "ac_cv_func_$ac_func=yes"
12020 else
12021   echo "configure: failed program was:" >&5
12022   cat conftest.$ac_ext >&5
12023   rm -rf conftest*
12024   eval "ac_cv_func_$ac_func=no"
12025 fi
12026 rm -f conftest*
12027 fi
12028
12029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12030   echo "$ac_t""yes" 1>&6
12031     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12032   cat >> confdefs.h <<EOF
12033 #define $ac_tr_func 1
12034 EOF
12035  
12036 else
12037   echo "$ac_t""no" 1>&6
12038 fi
12039 done
12040     
12041   else
12042     
12043   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12044 echo "configure:12045: checking for _expl declaration" >&5
12045   if test x${glibcpp_cv_func__expl_use+set} != xset; then
12046     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12047   echo $ac_n "(cached) $ac_c" 1>&6
12048 else
12049   
12050       
12051       ac_ext=C
12052 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12053 ac_cpp='$CXXCPP $CPPFLAGS'
12054 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12055 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12056 cross_compiling=$ac_cv_prog_cxx_cross
12057
12058       cat > conftest.$ac_ext <<EOF
12059 #line 12060 "configure"
12060 #include "confdefs.h"
12061 #include <math.h>
12062                       #ifdef HAVE_IEEEFP_H
12063                       #include <ieeefp.h>
12064                       #endif
12065                      
12066 int main() {
12067  _expl(0);
12068 ; return 0; }
12069 EOF
12070 if { (eval echo configure:12071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12071   rm -rf conftest*
12072   glibcpp_cv_func__expl_use=yes
12073 else
12074   echo "configure: failed program was:" >&5
12075   cat conftest.$ac_ext >&5
12076   rm -rf conftest*
12077   glibcpp_cv_func__expl_use=no
12078 fi
12079 rm -f conftest*
12080       ac_ext=c
12081 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12082 ac_cpp='$CPP $CPPFLAGS'
12083 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12084 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12085 cross_compiling=$ac_cv_prog_cc_cross
12086
12087     
12088 fi
12089
12090   fi
12091   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12092
12093     if test x$glibcpp_cv_func__expl_use = x"yes"; then
12094       for ac_func in _expl
12095 do
12096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12097 echo "configure:12098: checking for $ac_func" >&5
12098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12099   echo $ac_n "(cached) $ac_c" 1>&6
12100 else
12101   cat > conftest.$ac_ext <<EOF
12102 #line 12103 "configure"
12103 #include "confdefs.h"
12104 /* System header to define __stub macros and hopefully few prototypes,
12105     which can conflict with char $ac_func(); below.  */
12106 #include <assert.h>
12107 /* Override any gcc2 internal prototype to avoid an error.  */
12108 /* We use char because int might match the return type of a gcc2
12109     builtin and then its argument prototype would still apply.  */
12110 char $ac_func();
12111
12112 int main() {
12113
12114 /* The GNU C library defines this for functions which it implements
12115     to always fail with ENOSYS.  Some functions are actually named
12116     something starting with __ and the normal name is an alias.  */
12117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12118 choke me
12119 #else
12120 $ac_func();
12121 #endif
12122
12123 ; return 0; }
12124 EOF
12125 if { (eval echo configure:12126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12126   rm -rf conftest*
12127   eval "ac_cv_func_$ac_func=yes"
12128 else
12129   echo "configure: failed program was:" >&5
12130   cat conftest.$ac_ext >&5
12131   rm -rf conftest*
12132   eval "ac_cv_func_$ac_func=no"
12133 fi
12134 rm -f conftest*
12135 fi
12136
12137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12138   echo "$ac_t""yes" 1>&6
12139     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12140   cat >> confdefs.h <<EOF
12141 #define $ac_tr_func 1
12142 EOF
12143  
12144 else
12145   echo "$ac_t""no" 1>&6
12146 fi
12147 done
12148     
12149     fi
12150   fi
12151
12152   
12153   
12154   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
12155 echo "configure:12156: checking for fabsl declaration" >&5
12156   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
12157     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
12158   echo $ac_n "(cached) $ac_c" 1>&6
12159 else
12160   
12161       
12162       ac_ext=C
12163 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12164 ac_cpp='$CXXCPP $CPPFLAGS'
12165 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12166 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12167 cross_compiling=$ac_cv_prog_cxx_cross
12168
12169       cat > conftest.$ac_ext <<EOF
12170 #line 12171 "configure"
12171 #include "confdefs.h"
12172 #include <math.h>
12173                       #ifdef HAVE_IEEEFP_H
12174                       #include <ieeefp.h>
12175                       #endif
12176                      
12177 int main() {
12178  fabsl(0);
12179 ; return 0; }
12180 EOF
12181 if { (eval echo configure:12182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12182   rm -rf conftest*
12183   glibcpp_cv_func_fabsl_use=yes
12184 else
12185   echo "configure: failed program was:" >&5
12186   cat conftest.$ac_ext >&5
12187   rm -rf conftest*
12188   glibcpp_cv_func_fabsl_use=no
12189 fi
12190 rm -f conftest*
12191       ac_ext=c
12192 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12193 ac_cpp='$CPP $CPPFLAGS'
12194 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12195 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12196 cross_compiling=$ac_cv_prog_cc_cross
12197
12198     
12199 fi
12200
12201   fi
12202   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
12203
12204   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
12205     for ac_func in fabsl
12206 do
12207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12208 echo "configure:12209: checking for $ac_func" >&5
12209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12210   echo $ac_n "(cached) $ac_c" 1>&6
12211 else
12212   cat > conftest.$ac_ext <<EOF
12213 #line 12214 "configure"
12214 #include "confdefs.h"
12215 /* System header to define __stub macros and hopefully few prototypes,
12216     which can conflict with char $ac_func(); below.  */
12217 #include <assert.h>
12218 /* Override any gcc2 internal prototype to avoid an error.  */
12219 /* We use char because int might match the return type of a gcc2
12220     builtin and then its argument prototype would still apply.  */
12221 char $ac_func();
12222
12223 int main() {
12224
12225 /* The GNU C library defines this for functions which it implements
12226     to always fail with ENOSYS.  Some functions are actually named
12227     something starting with __ and the normal name is an alias.  */
12228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12229 choke me
12230 #else
12231 $ac_func();
12232 #endif
12233
12234 ; return 0; }
12235 EOF
12236 if { (eval echo configure:12237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12237   rm -rf conftest*
12238   eval "ac_cv_func_$ac_func=yes"
12239 else
12240   echo "configure: failed program was:" >&5
12241   cat conftest.$ac_ext >&5
12242   rm -rf conftest*
12243   eval "ac_cv_func_$ac_func=no"
12244 fi
12245 rm -f conftest*
12246 fi
12247
12248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12249   echo "$ac_t""yes" 1>&6
12250     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12251   cat >> confdefs.h <<EOF
12252 #define $ac_tr_func 1
12253 EOF
12254  
12255 else
12256   echo "$ac_t""no" 1>&6
12257 fi
12258 done
12259     
12260   else
12261     
12262   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
12263 echo "configure:12264: checking for _fabsl declaration" >&5
12264   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
12265     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
12266   echo $ac_n "(cached) $ac_c" 1>&6
12267 else
12268   
12269       
12270       ac_ext=C
12271 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12272 ac_cpp='$CXXCPP $CPPFLAGS'
12273 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12274 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12275 cross_compiling=$ac_cv_prog_cxx_cross
12276
12277       cat > conftest.$ac_ext <<EOF
12278 #line 12279 "configure"
12279 #include "confdefs.h"
12280 #include <math.h>
12281                       #ifdef HAVE_IEEEFP_H
12282                       #include <ieeefp.h>
12283                       #endif
12284                      
12285 int main() {
12286  _fabsl(0);
12287 ; return 0; }
12288 EOF
12289 if { (eval echo configure:12290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12290   rm -rf conftest*
12291   glibcpp_cv_func__fabsl_use=yes
12292 else
12293   echo "configure: failed program was:" >&5
12294   cat conftest.$ac_ext >&5
12295   rm -rf conftest*
12296   glibcpp_cv_func__fabsl_use=no
12297 fi
12298 rm -f conftest*
12299       ac_ext=c
12300 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12301 ac_cpp='$CPP $CPPFLAGS'
12302 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12303 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12304 cross_compiling=$ac_cv_prog_cc_cross
12305
12306     
12307 fi
12308
12309   fi
12310   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
12311
12312     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
12313       for ac_func in _fabsl
12314 do
12315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12316 echo "configure:12317: checking for $ac_func" >&5
12317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12318   echo $ac_n "(cached) $ac_c" 1>&6
12319 else
12320   cat > conftest.$ac_ext <<EOF
12321 #line 12322 "configure"
12322 #include "confdefs.h"
12323 /* System header to define __stub macros and hopefully few prototypes,
12324     which can conflict with char $ac_func(); below.  */
12325 #include <assert.h>
12326 /* Override any gcc2 internal prototype to avoid an error.  */
12327 /* We use char because int might match the return type of a gcc2
12328     builtin and then its argument prototype would still apply.  */
12329 char $ac_func();
12330
12331 int main() {
12332
12333 /* The GNU C library defines this for functions which it implements
12334     to always fail with ENOSYS.  Some functions are actually named
12335     something starting with __ and the normal name is an alias.  */
12336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12337 choke me
12338 #else
12339 $ac_func();
12340 #endif
12341
12342 ; return 0; }
12343 EOF
12344 if { (eval echo configure:12345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12345   rm -rf conftest*
12346   eval "ac_cv_func_$ac_func=yes"
12347 else
12348   echo "configure: failed program was:" >&5
12349   cat conftest.$ac_ext >&5
12350   rm -rf conftest*
12351   eval "ac_cv_func_$ac_func=no"
12352 fi
12353 rm -f conftest*
12354 fi
12355
12356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12357   echo "$ac_t""yes" 1>&6
12358     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12359   cat >> confdefs.h <<EOF
12360 #define $ac_tr_func 1
12361 EOF
12362  
12363 else
12364   echo "$ac_t""no" 1>&6
12365 fi
12366 done
12367     
12368     fi
12369   fi
12370
12371   
12372   
12373   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
12374 echo "configure:12375: checking for fmodl declaration" >&5
12375   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
12376     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
12377   echo $ac_n "(cached) $ac_c" 1>&6
12378 else
12379   
12380       
12381       ac_ext=C
12382 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12383 ac_cpp='$CXXCPP $CPPFLAGS'
12384 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12385 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12386 cross_compiling=$ac_cv_prog_cxx_cross
12387
12388       cat > conftest.$ac_ext <<EOF
12389 #line 12390 "configure"
12390 #include "confdefs.h"
12391 #include <math.h>
12392 int main() {
12393  fmodl(0, 0);
12394 ; return 0; }
12395 EOF
12396 if { (eval echo configure:12397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12397   rm -rf conftest*
12398   glibcpp_cv_func_fmodl_use=yes
12399 else
12400   echo "configure: failed program was:" >&5
12401   cat conftest.$ac_ext >&5
12402   rm -rf conftest*
12403   glibcpp_cv_func_fmodl_use=no
12404 fi
12405 rm -f conftest*
12406       ac_ext=c
12407 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12408 ac_cpp='$CPP $CPPFLAGS'
12409 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12410 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12411 cross_compiling=$ac_cv_prog_cc_cross
12412
12413     
12414 fi
12415
12416   fi
12417   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
12418
12419   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
12420     for ac_func in fmodl
12421 do
12422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12423 echo "configure:12424: checking for $ac_func" >&5
12424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12425   echo $ac_n "(cached) $ac_c" 1>&6
12426 else
12427   cat > conftest.$ac_ext <<EOF
12428 #line 12429 "configure"
12429 #include "confdefs.h"
12430 /* System header to define __stub macros and hopefully few prototypes,
12431     which can conflict with char $ac_func(); below.  */
12432 #include <assert.h>
12433 /* Override any gcc2 internal prototype to avoid an error.  */
12434 /* We use char because int might match the return type of a gcc2
12435     builtin and then its argument prototype would still apply.  */
12436 char $ac_func();
12437
12438 int main() {
12439
12440 /* The GNU C library defines this for functions which it implements
12441     to always fail with ENOSYS.  Some functions are actually named
12442     something starting with __ and the normal name is an alias.  */
12443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12444 choke me
12445 #else
12446 $ac_func();
12447 #endif
12448
12449 ; return 0; }
12450 EOF
12451 if { (eval echo configure:12452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12452   rm -rf conftest*
12453   eval "ac_cv_func_$ac_func=yes"
12454 else
12455   echo "configure: failed program was:" >&5
12456   cat conftest.$ac_ext >&5
12457   rm -rf conftest*
12458   eval "ac_cv_func_$ac_func=no"
12459 fi
12460 rm -f conftest*
12461 fi
12462
12463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12464   echo "$ac_t""yes" 1>&6
12465     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12466   cat >> confdefs.h <<EOF
12467 #define $ac_tr_func 1
12468 EOF
12469  
12470 else
12471   echo "$ac_t""no" 1>&6
12472 fi
12473 done
12474     
12475   else
12476     
12477   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
12478 echo "configure:12479: checking for _fmodl declaration" >&5
12479   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
12480     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
12481   echo $ac_n "(cached) $ac_c" 1>&6
12482 else
12483   
12484       
12485       ac_ext=C
12486 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12487 ac_cpp='$CXXCPP $CPPFLAGS'
12488 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12489 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12490 cross_compiling=$ac_cv_prog_cxx_cross
12491
12492       cat > conftest.$ac_ext <<EOF
12493 #line 12494 "configure"
12494 #include "confdefs.h"
12495 #include <math.h>
12496 int main() {
12497  _fmodl(0, 0);
12498 ; return 0; }
12499 EOF
12500 if { (eval echo configure:12501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12501   rm -rf conftest*
12502   glibcpp_cv_func__fmodl_use=yes
12503 else
12504   echo "configure: failed program was:" >&5
12505   cat conftest.$ac_ext >&5
12506   rm -rf conftest*
12507   glibcpp_cv_func__fmodl_use=no
12508 fi
12509 rm -f conftest*
12510       ac_ext=c
12511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12512 ac_cpp='$CPP $CPPFLAGS'
12513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12514 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12515 cross_compiling=$ac_cv_prog_cc_cross
12516
12517     
12518 fi
12519
12520   fi
12521   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
12522
12523     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
12524       for ac_func in _fmodl
12525 do
12526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12527 echo "configure:12528: checking for $ac_func" >&5
12528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12529   echo $ac_n "(cached) $ac_c" 1>&6
12530 else
12531   cat > conftest.$ac_ext <<EOF
12532 #line 12533 "configure"
12533 #include "confdefs.h"
12534 /* System header to define __stub macros and hopefully few prototypes,
12535     which can conflict with char $ac_func(); below.  */
12536 #include <assert.h>
12537 /* Override any gcc2 internal prototype to avoid an error.  */
12538 /* We use char because int might match the return type of a gcc2
12539     builtin and then its argument prototype would still apply.  */
12540 char $ac_func();
12541
12542 int main() {
12543
12544 /* The GNU C library defines this for functions which it implements
12545     to always fail with ENOSYS.  Some functions are actually named
12546     something starting with __ and the normal name is an alias.  */
12547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12548 choke me
12549 #else
12550 $ac_func();
12551 #endif
12552
12553 ; return 0; }
12554 EOF
12555 if { (eval echo configure:12556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12556   rm -rf conftest*
12557   eval "ac_cv_func_$ac_func=yes"
12558 else
12559   echo "configure: failed program was:" >&5
12560   cat conftest.$ac_ext >&5
12561   rm -rf conftest*
12562   eval "ac_cv_func_$ac_func=no"
12563 fi
12564 rm -f conftest*
12565 fi
12566
12567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12568   echo "$ac_t""yes" 1>&6
12569     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12570   cat >> confdefs.h <<EOF
12571 #define $ac_tr_func 1
12572 EOF
12573  
12574 else
12575   echo "$ac_t""no" 1>&6
12576 fi
12577 done
12578     
12579     fi
12580   fi
12581
12582   
12583   
12584   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
12585 echo "configure:12586: checking for frexpl declaration" >&5
12586   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
12587     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
12588   echo $ac_n "(cached) $ac_c" 1>&6
12589 else
12590   
12591       
12592       ac_ext=C
12593 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12594 ac_cpp='$CXXCPP $CPPFLAGS'
12595 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12596 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12597 cross_compiling=$ac_cv_prog_cxx_cross
12598
12599       cat > conftest.$ac_ext <<EOF
12600 #line 12601 "configure"
12601 #include "confdefs.h"
12602 #include <math.h>
12603 int main() {
12604  frexpl(0, 0);
12605 ; return 0; }
12606 EOF
12607 if { (eval echo configure:12608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12608   rm -rf conftest*
12609   glibcpp_cv_func_frexpl_use=yes
12610 else
12611   echo "configure: failed program was:" >&5
12612   cat conftest.$ac_ext >&5
12613   rm -rf conftest*
12614   glibcpp_cv_func_frexpl_use=no
12615 fi
12616 rm -f conftest*
12617       ac_ext=c
12618 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12619 ac_cpp='$CPP $CPPFLAGS'
12620 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12621 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12622 cross_compiling=$ac_cv_prog_cc_cross
12623
12624     
12625 fi
12626
12627   fi
12628   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
12629
12630   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
12631     for ac_func in frexpl
12632 do
12633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12634 echo "configure:12635: checking for $ac_func" >&5
12635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12636   echo $ac_n "(cached) $ac_c" 1>&6
12637 else
12638   cat > conftest.$ac_ext <<EOF
12639 #line 12640 "configure"
12640 #include "confdefs.h"
12641 /* System header to define __stub macros and hopefully few prototypes,
12642     which can conflict with char $ac_func(); below.  */
12643 #include <assert.h>
12644 /* Override any gcc2 internal prototype to avoid an error.  */
12645 /* We use char because int might match the return type of a gcc2
12646     builtin and then its argument prototype would still apply.  */
12647 char $ac_func();
12648
12649 int main() {
12650
12651 /* The GNU C library defines this for functions which it implements
12652     to always fail with ENOSYS.  Some functions are actually named
12653     something starting with __ and the normal name is an alias.  */
12654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12655 choke me
12656 #else
12657 $ac_func();
12658 #endif
12659
12660 ; return 0; }
12661 EOF
12662 if { (eval echo configure:12663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12663   rm -rf conftest*
12664   eval "ac_cv_func_$ac_func=yes"
12665 else
12666   echo "configure: failed program was:" >&5
12667   cat conftest.$ac_ext >&5
12668   rm -rf conftest*
12669   eval "ac_cv_func_$ac_func=no"
12670 fi
12671 rm -f conftest*
12672 fi
12673
12674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12675   echo "$ac_t""yes" 1>&6
12676     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12677   cat >> confdefs.h <<EOF
12678 #define $ac_tr_func 1
12679 EOF
12680  
12681 else
12682   echo "$ac_t""no" 1>&6
12683 fi
12684 done
12685     
12686   else
12687     
12688   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
12689 echo "configure:12690: checking for _frexpl declaration" >&5
12690   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
12691     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
12692   echo $ac_n "(cached) $ac_c" 1>&6
12693 else
12694   
12695       
12696       ac_ext=C
12697 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12698 ac_cpp='$CXXCPP $CPPFLAGS'
12699 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12700 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12701 cross_compiling=$ac_cv_prog_cxx_cross
12702
12703       cat > conftest.$ac_ext <<EOF
12704 #line 12705 "configure"
12705 #include "confdefs.h"
12706 #include <math.h>
12707 int main() {
12708  _frexpl(0, 0);
12709 ; return 0; }
12710 EOF
12711 if { (eval echo configure:12712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12712   rm -rf conftest*
12713   glibcpp_cv_func__frexpl_use=yes
12714 else
12715   echo "configure: failed program was:" >&5
12716   cat conftest.$ac_ext >&5
12717   rm -rf conftest*
12718   glibcpp_cv_func__frexpl_use=no
12719 fi
12720 rm -f conftest*
12721       ac_ext=c
12722 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12723 ac_cpp='$CPP $CPPFLAGS'
12724 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12725 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12726 cross_compiling=$ac_cv_prog_cc_cross
12727
12728     
12729 fi
12730
12731   fi
12732   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
12733
12734     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
12735       for ac_func in _frexpl
12736 do
12737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12738 echo "configure:12739: checking for $ac_func" >&5
12739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12740   echo $ac_n "(cached) $ac_c" 1>&6
12741 else
12742   cat > conftest.$ac_ext <<EOF
12743 #line 12744 "configure"
12744 #include "confdefs.h"
12745 /* System header to define __stub macros and hopefully few prototypes,
12746     which can conflict with char $ac_func(); below.  */
12747 #include <assert.h>
12748 /* Override any gcc2 internal prototype to avoid an error.  */
12749 /* We use char because int might match the return type of a gcc2
12750     builtin and then its argument prototype would still apply.  */
12751 char $ac_func();
12752
12753 int main() {
12754
12755 /* The GNU C library defines this for functions which it implements
12756     to always fail with ENOSYS.  Some functions are actually named
12757     something starting with __ and the normal name is an alias.  */
12758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12759 choke me
12760 #else
12761 $ac_func();
12762 #endif
12763
12764 ; return 0; }
12765 EOF
12766 if { (eval echo configure:12767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12767   rm -rf conftest*
12768   eval "ac_cv_func_$ac_func=yes"
12769 else
12770   echo "configure: failed program was:" >&5
12771   cat conftest.$ac_ext >&5
12772   rm -rf conftest*
12773   eval "ac_cv_func_$ac_func=no"
12774 fi
12775 rm -f conftest*
12776 fi
12777
12778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12779   echo "$ac_t""yes" 1>&6
12780     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12781   cat >> confdefs.h <<EOF
12782 #define $ac_tr_func 1
12783 EOF
12784  
12785 else
12786   echo "$ac_t""no" 1>&6
12787 fi
12788 done
12789     
12790     fi
12791   fi
12792
12793   
12794   
12795   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
12796 echo "configure:12797: checking for ldexpl declaration" >&5
12797   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
12798     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
12799   echo $ac_n "(cached) $ac_c" 1>&6
12800 else
12801   
12802       
12803       ac_ext=C
12804 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12805 ac_cpp='$CXXCPP $CPPFLAGS'
12806 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12807 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12808 cross_compiling=$ac_cv_prog_cxx_cross
12809
12810       cat > conftest.$ac_ext <<EOF
12811 #line 12812 "configure"
12812 #include "confdefs.h"
12813 #include <math.h>
12814 int main() {
12815  ldexpl(0, 0);
12816 ; return 0; }
12817 EOF
12818 if { (eval echo configure:12819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12819   rm -rf conftest*
12820   glibcpp_cv_func_ldexpl_use=yes
12821 else
12822   echo "configure: failed program was:" >&5
12823   cat conftest.$ac_ext >&5
12824   rm -rf conftest*
12825   glibcpp_cv_func_ldexpl_use=no
12826 fi
12827 rm -f conftest*
12828       ac_ext=c
12829 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12830 ac_cpp='$CPP $CPPFLAGS'
12831 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12832 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12833 cross_compiling=$ac_cv_prog_cc_cross
12834
12835     
12836 fi
12837
12838   fi
12839   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
12840
12841   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
12842     for ac_func in ldexpl
12843 do
12844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12845 echo "configure:12846: checking for $ac_func" >&5
12846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12847   echo $ac_n "(cached) $ac_c" 1>&6
12848 else
12849   cat > conftest.$ac_ext <<EOF
12850 #line 12851 "configure"
12851 #include "confdefs.h"
12852 /* System header to define __stub macros and hopefully few prototypes,
12853     which can conflict with char $ac_func(); below.  */
12854 #include <assert.h>
12855 /* Override any gcc2 internal prototype to avoid an error.  */
12856 /* We use char because int might match the return type of a gcc2
12857     builtin and then its argument prototype would still apply.  */
12858 char $ac_func();
12859
12860 int main() {
12861
12862 /* The GNU C library defines this for functions which it implements
12863     to always fail with ENOSYS.  Some functions are actually named
12864     something starting with __ and the normal name is an alias.  */
12865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12866 choke me
12867 #else
12868 $ac_func();
12869 #endif
12870
12871 ; return 0; }
12872 EOF
12873 if { (eval echo configure:12874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12874   rm -rf conftest*
12875   eval "ac_cv_func_$ac_func=yes"
12876 else
12877   echo "configure: failed program was:" >&5
12878   cat conftest.$ac_ext >&5
12879   rm -rf conftest*
12880   eval "ac_cv_func_$ac_func=no"
12881 fi
12882 rm -f conftest*
12883 fi
12884
12885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12886   echo "$ac_t""yes" 1>&6
12887     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12888   cat >> confdefs.h <<EOF
12889 #define $ac_tr_func 1
12890 EOF
12891  
12892 else
12893   echo "$ac_t""no" 1>&6
12894 fi
12895 done
12896     
12897   else
12898     
12899   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
12900 echo "configure:12901: checking for _ldexpl declaration" >&5
12901   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
12902     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
12903   echo $ac_n "(cached) $ac_c" 1>&6
12904 else
12905   
12906       
12907       ac_ext=C
12908 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12909 ac_cpp='$CXXCPP $CPPFLAGS'
12910 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12911 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12912 cross_compiling=$ac_cv_prog_cxx_cross
12913
12914       cat > conftest.$ac_ext <<EOF
12915 #line 12916 "configure"
12916 #include "confdefs.h"
12917 #include <math.h>
12918 int main() {
12919  _ldexpl(0, 0);
12920 ; return 0; }
12921 EOF
12922 if { (eval echo configure:12923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12923   rm -rf conftest*
12924   glibcpp_cv_func__ldexpl_use=yes
12925 else
12926   echo "configure: failed program was:" >&5
12927   cat conftest.$ac_ext >&5
12928   rm -rf conftest*
12929   glibcpp_cv_func__ldexpl_use=no
12930 fi
12931 rm -f conftest*
12932       ac_ext=c
12933 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12934 ac_cpp='$CPP $CPPFLAGS'
12935 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12936 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12937 cross_compiling=$ac_cv_prog_cc_cross
12938
12939     
12940 fi
12941
12942   fi
12943   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
12944
12945     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
12946       for ac_func in _ldexpl
12947 do
12948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12949 echo "configure:12950: checking for $ac_func" >&5
12950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12951   echo $ac_n "(cached) $ac_c" 1>&6
12952 else
12953   cat > conftest.$ac_ext <<EOF
12954 #line 12955 "configure"
12955 #include "confdefs.h"
12956 /* System header to define __stub macros and hopefully few prototypes,
12957     which can conflict with char $ac_func(); below.  */
12958 #include <assert.h>
12959 /* Override any gcc2 internal prototype to avoid an error.  */
12960 /* We use char because int might match the return type of a gcc2
12961     builtin and then its argument prototype would still apply.  */
12962 char $ac_func();
12963
12964 int main() {
12965
12966 /* The GNU C library defines this for functions which it implements
12967     to always fail with ENOSYS.  Some functions are actually named
12968     something starting with __ and the normal name is an alias.  */
12969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12970 choke me
12971 #else
12972 $ac_func();
12973 #endif
12974
12975 ; return 0; }
12976 EOF
12977 if { (eval echo configure:12978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12978   rm -rf conftest*
12979   eval "ac_cv_func_$ac_func=yes"
12980 else
12981   echo "configure: failed program was:" >&5
12982   cat conftest.$ac_ext >&5
12983   rm -rf conftest*
12984   eval "ac_cv_func_$ac_func=no"
12985 fi
12986 rm -f conftest*
12987 fi
12988
12989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12990   echo "$ac_t""yes" 1>&6
12991     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12992   cat >> confdefs.h <<EOF
12993 #define $ac_tr_func 1
12994 EOF
12995  
12996 else
12997   echo "$ac_t""no" 1>&6
12998 fi
12999 done
13000     
13001     fi
13002   fi
13003
13004   
13005   
13006   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
13007 echo "configure:13008: checking for logl declaration" >&5
13008   if test x${glibcpp_cv_func_logl_use+set} != xset; then
13009     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
13010   echo $ac_n "(cached) $ac_c" 1>&6
13011 else
13012   
13013       
13014       ac_ext=C
13015 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13016 ac_cpp='$CXXCPP $CPPFLAGS'
13017 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13018 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13019 cross_compiling=$ac_cv_prog_cxx_cross
13020
13021       cat > conftest.$ac_ext <<EOF
13022 #line 13023 "configure"
13023 #include "confdefs.h"
13024 #include <math.h>
13025                       #ifdef HAVE_IEEEFP_H
13026                       #include <ieeefp.h>
13027                       #endif
13028                      
13029 int main() {
13030  logl(0);
13031 ; return 0; }
13032 EOF
13033 if { (eval echo configure:13034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13034   rm -rf conftest*
13035   glibcpp_cv_func_logl_use=yes
13036 else
13037   echo "configure: failed program was:" >&5
13038   cat conftest.$ac_ext >&5
13039   rm -rf conftest*
13040   glibcpp_cv_func_logl_use=no
13041 fi
13042 rm -f conftest*
13043       ac_ext=c
13044 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13045 ac_cpp='$CPP $CPPFLAGS'
13046 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13047 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13048 cross_compiling=$ac_cv_prog_cc_cross
13049
13050     
13051 fi
13052
13053   fi
13054   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
13055
13056   if test x$glibcpp_cv_func_logl_use = x"yes"; then
13057     for ac_func in logl
13058 do
13059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13060 echo "configure:13061: checking for $ac_func" >&5
13061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13062   echo $ac_n "(cached) $ac_c" 1>&6
13063 else
13064   cat > conftest.$ac_ext <<EOF
13065 #line 13066 "configure"
13066 #include "confdefs.h"
13067 /* System header to define __stub macros and hopefully few prototypes,
13068     which can conflict with char $ac_func(); below.  */
13069 #include <assert.h>
13070 /* Override any gcc2 internal prototype to avoid an error.  */
13071 /* We use char because int might match the return type of a gcc2
13072     builtin and then its argument prototype would still apply.  */
13073 char $ac_func();
13074
13075 int main() {
13076
13077 /* The GNU C library defines this for functions which it implements
13078     to always fail with ENOSYS.  Some functions are actually named
13079     something starting with __ and the normal name is an alias.  */
13080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13081 choke me
13082 #else
13083 $ac_func();
13084 #endif
13085
13086 ; return 0; }
13087 EOF
13088 if { (eval echo configure:13089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13089   rm -rf conftest*
13090   eval "ac_cv_func_$ac_func=yes"
13091 else
13092   echo "configure: failed program was:" >&5
13093   cat conftest.$ac_ext >&5
13094   rm -rf conftest*
13095   eval "ac_cv_func_$ac_func=no"
13096 fi
13097 rm -f conftest*
13098 fi
13099
13100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13101   echo "$ac_t""yes" 1>&6
13102     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13103   cat >> confdefs.h <<EOF
13104 #define $ac_tr_func 1
13105 EOF
13106  
13107 else
13108   echo "$ac_t""no" 1>&6
13109 fi
13110 done
13111     
13112   else
13113     
13114   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
13115 echo "configure:13116: checking for _logl declaration" >&5
13116   if test x${glibcpp_cv_func__logl_use+set} != xset; then
13117     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
13118   echo $ac_n "(cached) $ac_c" 1>&6
13119 else
13120   
13121       
13122       ac_ext=C
13123 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13124 ac_cpp='$CXXCPP $CPPFLAGS'
13125 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13126 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13127 cross_compiling=$ac_cv_prog_cxx_cross
13128
13129       cat > conftest.$ac_ext <<EOF
13130 #line 13131 "configure"
13131 #include "confdefs.h"
13132 #include <math.h>
13133                       #ifdef HAVE_IEEEFP_H
13134                       #include <ieeefp.h>
13135                       #endif
13136                      
13137 int main() {
13138  _logl(0);
13139 ; return 0; }
13140 EOF
13141 if { (eval echo configure:13142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13142   rm -rf conftest*
13143   glibcpp_cv_func__logl_use=yes
13144 else
13145   echo "configure: failed program was:" >&5
13146   cat conftest.$ac_ext >&5
13147   rm -rf conftest*
13148   glibcpp_cv_func__logl_use=no
13149 fi
13150 rm -f conftest*
13151       ac_ext=c
13152 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13153 ac_cpp='$CPP $CPPFLAGS'
13154 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13155 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13156 cross_compiling=$ac_cv_prog_cc_cross
13157
13158     
13159 fi
13160
13161   fi
13162   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
13163
13164     if test x$glibcpp_cv_func__logl_use = x"yes"; then
13165       for ac_func in _logl
13166 do
13167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13168 echo "configure:13169: checking for $ac_func" >&5
13169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13170   echo $ac_n "(cached) $ac_c" 1>&6
13171 else
13172   cat > conftest.$ac_ext <<EOF
13173 #line 13174 "configure"
13174 #include "confdefs.h"
13175 /* System header to define __stub macros and hopefully few prototypes,
13176     which can conflict with char $ac_func(); below.  */
13177 #include <assert.h>
13178 /* Override any gcc2 internal prototype to avoid an error.  */
13179 /* We use char because int might match the return type of a gcc2
13180     builtin and then its argument prototype would still apply.  */
13181 char $ac_func();
13182
13183 int main() {
13184
13185 /* The GNU C library defines this for functions which it implements
13186     to always fail with ENOSYS.  Some functions are actually named
13187     something starting with __ and the normal name is an alias.  */
13188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13189 choke me
13190 #else
13191 $ac_func();
13192 #endif
13193
13194 ; return 0; }
13195 EOF
13196 if { (eval echo configure:13197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13197   rm -rf conftest*
13198   eval "ac_cv_func_$ac_func=yes"
13199 else
13200   echo "configure: failed program was:" >&5
13201   cat conftest.$ac_ext >&5
13202   rm -rf conftest*
13203   eval "ac_cv_func_$ac_func=no"
13204 fi
13205 rm -f conftest*
13206 fi
13207
13208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13209   echo "$ac_t""yes" 1>&6
13210     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13211   cat >> confdefs.h <<EOF
13212 #define $ac_tr_func 1
13213 EOF
13214  
13215 else
13216   echo "$ac_t""no" 1>&6
13217 fi
13218 done
13219     
13220     fi
13221   fi
13222
13223   
13224   
13225   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
13226 echo "configure:13227: checking for log10l declaration" >&5
13227   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
13228     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
13229   echo $ac_n "(cached) $ac_c" 1>&6
13230 else
13231   
13232       
13233       ac_ext=C
13234 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13235 ac_cpp='$CXXCPP $CPPFLAGS'
13236 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13237 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13238 cross_compiling=$ac_cv_prog_cxx_cross
13239
13240       cat > conftest.$ac_ext <<EOF
13241 #line 13242 "configure"
13242 #include "confdefs.h"
13243 #include <math.h>
13244                       #ifdef HAVE_IEEEFP_H
13245                       #include <ieeefp.h>
13246                       #endif
13247                      
13248 int main() {
13249  log10l(0);
13250 ; return 0; }
13251 EOF
13252 if { (eval echo configure:13253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13253   rm -rf conftest*
13254   glibcpp_cv_func_log10l_use=yes
13255 else
13256   echo "configure: failed program was:" >&5
13257   cat conftest.$ac_ext >&5
13258   rm -rf conftest*
13259   glibcpp_cv_func_log10l_use=no
13260 fi
13261 rm -f conftest*
13262       ac_ext=c
13263 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13264 ac_cpp='$CPP $CPPFLAGS'
13265 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13266 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13267 cross_compiling=$ac_cv_prog_cc_cross
13268
13269     
13270 fi
13271
13272   fi
13273   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
13274
13275   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
13276     for ac_func in log10l
13277 do
13278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13279 echo "configure:13280: checking for $ac_func" >&5
13280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13281   echo $ac_n "(cached) $ac_c" 1>&6
13282 else
13283   cat > conftest.$ac_ext <<EOF
13284 #line 13285 "configure"
13285 #include "confdefs.h"
13286 /* System header to define __stub macros and hopefully few prototypes,
13287     which can conflict with char $ac_func(); below.  */
13288 #include <assert.h>
13289 /* Override any gcc2 internal prototype to avoid an error.  */
13290 /* We use char because int might match the return type of a gcc2
13291     builtin and then its argument prototype would still apply.  */
13292 char $ac_func();
13293
13294 int main() {
13295
13296 /* The GNU C library defines this for functions which it implements
13297     to always fail with ENOSYS.  Some functions are actually named
13298     something starting with __ and the normal name is an alias.  */
13299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13300 choke me
13301 #else
13302 $ac_func();
13303 #endif
13304
13305 ; return 0; }
13306 EOF
13307 if { (eval echo configure:13308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13308   rm -rf conftest*
13309   eval "ac_cv_func_$ac_func=yes"
13310 else
13311   echo "configure: failed program was:" >&5
13312   cat conftest.$ac_ext >&5
13313   rm -rf conftest*
13314   eval "ac_cv_func_$ac_func=no"
13315 fi
13316 rm -f conftest*
13317 fi
13318
13319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13320   echo "$ac_t""yes" 1>&6
13321     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13322   cat >> confdefs.h <<EOF
13323 #define $ac_tr_func 1
13324 EOF
13325  
13326 else
13327   echo "$ac_t""no" 1>&6
13328 fi
13329 done
13330     
13331   else
13332     
13333   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
13334 echo "configure:13335: checking for _log10l declaration" >&5
13335   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
13336     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
13337   echo $ac_n "(cached) $ac_c" 1>&6
13338 else
13339   
13340       
13341       ac_ext=C
13342 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13343 ac_cpp='$CXXCPP $CPPFLAGS'
13344 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13345 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13346 cross_compiling=$ac_cv_prog_cxx_cross
13347
13348       cat > conftest.$ac_ext <<EOF
13349 #line 13350 "configure"
13350 #include "confdefs.h"
13351 #include <math.h>
13352                       #ifdef HAVE_IEEEFP_H
13353                       #include <ieeefp.h>
13354                       #endif
13355                      
13356 int main() {
13357  _log10l(0);
13358 ; return 0; }
13359 EOF
13360 if { (eval echo configure:13361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13361   rm -rf conftest*
13362   glibcpp_cv_func__log10l_use=yes
13363 else
13364   echo "configure: failed program was:" >&5
13365   cat conftest.$ac_ext >&5
13366   rm -rf conftest*
13367   glibcpp_cv_func__log10l_use=no
13368 fi
13369 rm -f conftest*
13370       ac_ext=c
13371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13372 ac_cpp='$CPP $CPPFLAGS'
13373 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13374 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13375 cross_compiling=$ac_cv_prog_cc_cross
13376
13377     
13378 fi
13379
13380   fi
13381   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
13382
13383     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
13384       for ac_func in _log10l
13385 do
13386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13387 echo "configure:13388: checking for $ac_func" >&5
13388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13389   echo $ac_n "(cached) $ac_c" 1>&6
13390 else
13391   cat > conftest.$ac_ext <<EOF
13392 #line 13393 "configure"
13393 #include "confdefs.h"
13394 /* System header to define __stub macros and hopefully few prototypes,
13395     which can conflict with char $ac_func(); below.  */
13396 #include <assert.h>
13397 /* Override any gcc2 internal prototype to avoid an error.  */
13398 /* We use char because int might match the return type of a gcc2
13399     builtin and then its argument prototype would still apply.  */
13400 char $ac_func();
13401
13402 int main() {
13403
13404 /* The GNU C library defines this for functions which it implements
13405     to always fail with ENOSYS.  Some functions are actually named
13406     something starting with __ and the normal name is an alias.  */
13407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13408 choke me
13409 #else
13410 $ac_func();
13411 #endif
13412
13413 ; return 0; }
13414 EOF
13415 if { (eval echo configure:13416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13416   rm -rf conftest*
13417   eval "ac_cv_func_$ac_func=yes"
13418 else
13419   echo "configure: failed program was:" >&5
13420   cat conftest.$ac_ext >&5
13421   rm -rf conftest*
13422   eval "ac_cv_func_$ac_func=no"
13423 fi
13424 rm -f conftest*
13425 fi
13426
13427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13428   echo "$ac_t""yes" 1>&6
13429     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13430   cat >> confdefs.h <<EOF
13431 #define $ac_tr_func 1
13432 EOF
13433  
13434 else
13435   echo "$ac_t""no" 1>&6
13436 fi
13437 done
13438     
13439     fi
13440   fi
13441
13442   
13443   
13444   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
13445 echo "configure:13446: checking for modfl declaration" >&5
13446   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
13447     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
13448   echo $ac_n "(cached) $ac_c" 1>&6
13449 else
13450   
13451       
13452       ac_ext=C
13453 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13454 ac_cpp='$CXXCPP $CPPFLAGS'
13455 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13456 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13457 cross_compiling=$ac_cv_prog_cxx_cross
13458
13459       cat > conftest.$ac_ext <<EOF
13460 #line 13461 "configure"
13461 #include "confdefs.h"
13462 #include <math.h>
13463 int main() {
13464  modfl(0, 0);
13465 ; return 0; }
13466 EOF
13467 if { (eval echo configure:13468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13468   rm -rf conftest*
13469   glibcpp_cv_func_modfl_use=yes
13470 else
13471   echo "configure: failed program was:" >&5
13472   cat conftest.$ac_ext >&5
13473   rm -rf conftest*
13474   glibcpp_cv_func_modfl_use=no
13475 fi
13476 rm -f conftest*
13477       ac_ext=c
13478 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13479 ac_cpp='$CPP $CPPFLAGS'
13480 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13481 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13482 cross_compiling=$ac_cv_prog_cc_cross
13483
13484     
13485 fi
13486
13487   fi
13488   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
13489
13490   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
13491     for ac_func in modfl
13492 do
13493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13494 echo "configure:13495: checking for $ac_func" >&5
13495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13496   echo $ac_n "(cached) $ac_c" 1>&6
13497 else
13498   cat > conftest.$ac_ext <<EOF
13499 #line 13500 "configure"
13500 #include "confdefs.h"
13501 /* System header to define __stub macros and hopefully few prototypes,
13502     which can conflict with char $ac_func(); below.  */
13503 #include <assert.h>
13504 /* Override any gcc2 internal prototype to avoid an error.  */
13505 /* We use char because int might match the return type of a gcc2
13506     builtin and then its argument prototype would still apply.  */
13507 char $ac_func();
13508
13509 int main() {
13510
13511 /* The GNU C library defines this for functions which it implements
13512     to always fail with ENOSYS.  Some functions are actually named
13513     something starting with __ and the normal name is an alias.  */
13514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13515 choke me
13516 #else
13517 $ac_func();
13518 #endif
13519
13520 ; return 0; }
13521 EOF
13522 if { (eval echo configure:13523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13523   rm -rf conftest*
13524   eval "ac_cv_func_$ac_func=yes"
13525 else
13526   echo "configure: failed program was:" >&5
13527   cat conftest.$ac_ext >&5
13528   rm -rf conftest*
13529   eval "ac_cv_func_$ac_func=no"
13530 fi
13531 rm -f conftest*
13532 fi
13533
13534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13535   echo "$ac_t""yes" 1>&6
13536     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13537   cat >> confdefs.h <<EOF
13538 #define $ac_tr_func 1
13539 EOF
13540  
13541 else
13542   echo "$ac_t""no" 1>&6
13543 fi
13544 done
13545     
13546   else
13547     
13548   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
13549 echo "configure:13550: checking for _modfl declaration" >&5
13550   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
13551     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
13552   echo $ac_n "(cached) $ac_c" 1>&6
13553 else
13554   
13555       
13556       ac_ext=C
13557 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13558 ac_cpp='$CXXCPP $CPPFLAGS'
13559 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13560 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13561 cross_compiling=$ac_cv_prog_cxx_cross
13562
13563       cat > conftest.$ac_ext <<EOF
13564 #line 13565 "configure"
13565 #include "confdefs.h"
13566 #include <math.h>
13567 int main() {
13568  _modfl(0, 0);
13569 ; return 0; }
13570 EOF
13571 if { (eval echo configure:13572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13572   rm -rf conftest*
13573   glibcpp_cv_func__modfl_use=yes
13574 else
13575   echo "configure: failed program was:" >&5
13576   cat conftest.$ac_ext >&5
13577   rm -rf conftest*
13578   glibcpp_cv_func__modfl_use=no
13579 fi
13580 rm -f conftest*
13581       ac_ext=c
13582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13583 ac_cpp='$CPP $CPPFLAGS'
13584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13586 cross_compiling=$ac_cv_prog_cc_cross
13587
13588     
13589 fi
13590
13591   fi
13592   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
13593
13594     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
13595       for ac_func in _modfl
13596 do
13597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13598 echo "configure:13599: checking for $ac_func" >&5
13599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13600   echo $ac_n "(cached) $ac_c" 1>&6
13601 else
13602   cat > conftest.$ac_ext <<EOF
13603 #line 13604 "configure"
13604 #include "confdefs.h"
13605 /* System header to define __stub macros and hopefully few prototypes,
13606     which can conflict with char $ac_func(); below.  */
13607 #include <assert.h>
13608 /* Override any gcc2 internal prototype to avoid an error.  */
13609 /* We use char because int might match the return type of a gcc2
13610     builtin and then its argument prototype would still apply.  */
13611 char $ac_func();
13612
13613 int main() {
13614
13615 /* The GNU C library defines this for functions which it implements
13616     to always fail with ENOSYS.  Some functions are actually named
13617     something starting with __ and the normal name is an alias.  */
13618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13619 choke me
13620 #else
13621 $ac_func();
13622 #endif
13623
13624 ; return 0; }
13625 EOF
13626 if { (eval echo configure:13627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13627   rm -rf conftest*
13628   eval "ac_cv_func_$ac_func=yes"
13629 else
13630   echo "configure: failed program was:" >&5
13631   cat conftest.$ac_ext >&5
13632   rm -rf conftest*
13633   eval "ac_cv_func_$ac_func=no"
13634 fi
13635 rm -f conftest*
13636 fi
13637
13638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13639   echo "$ac_t""yes" 1>&6
13640     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13641   cat >> confdefs.h <<EOF
13642 #define $ac_tr_func 1
13643 EOF
13644  
13645 else
13646   echo "$ac_t""no" 1>&6
13647 fi
13648 done
13649     
13650     fi
13651   fi
13652
13653   
13654   
13655   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
13656 echo "configure:13657: checking for powl declaration" >&5
13657   if test x${glibcpp_cv_func_powl_use+set} != xset; then
13658     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
13659   echo $ac_n "(cached) $ac_c" 1>&6
13660 else
13661   
13662       
13663       ac_ext=C
13664 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13665 ac_cpp='$CXXCPP $CPPFLAGS'
13666 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13667 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13668 cross_compiling=$ac_cv_prog_cxx_cross
13669
13670       cat > conftest.$ac_ext <<EOF
13671 #line 13672 "configure"
13672 #include "confdefs.h"
13673 #include <math.h>
13674 int main() {
13675  powl(0, 0);
13676 ; return 0; }
13677 EOF
13678 if { (eval echo configure:13679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13679   rm -rf conftest*
13680   glibcpp_cv_func_powl_use=yes
13681 else
13682   echo "configure: failed program was:" >&5
13683   cat conftest.$ac_ext >&5
13684   rm -rf conftest*
13685   glibcpp_cv_func_powl_use=no
13686 fi
13687 rm -f conftest*
13688       ac_ext=c
13689 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13690 ac_cpp='$CPP $CPPFLAGS'
13691 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13692 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13693 cross_compiling=$ac_cv_prog_cc_cross
13694
13695     
13696 fi
13697
13698   fi
13699   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
13700
13701   if test x$glibcpp_cv_func_powl_use = x"yes"; then
13702     for ac_func in powl
13703 do
13704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13705 echo "configure:13706: checking for $ac_func" >&5
13706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13707   echo $ac_n "(cached) $ac_c" 1>&6
13708 else
13709   cat > conftest.$ac_ext <<EOF
13710 #line 13711 "configure"
13711 #include "confdefs.h"
13712 /* System header to define __stub macros and hopefully few prototypes,
13713     which can conflict with char $ac_func(); below.  */
13714 #include <assert.h>
13715 /* Override any gcc2 internal prototype to avoid an error.  */
13716 /* We use char because int might match the return type of a gcc2
13717     builtin and then its argument prototype would still apply.  */
13718 char $ac_func();
13719
13720 int main() {
13721
13722 /* The GNU C library defines this for functions which it implements
13723     to always fail with ENOSYS.  Some functions are actually named
13724     something starting with __ and the normal name is an alias.  */
13725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13726 choke me
13727 #else
13728 $ac_func();
13729 #endif
13730
13731 ; return 0; }
13732 EOF
13733 if { (eval echo configure:13734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13734   rm -rf conftest*
13735   eval "ac_cv_func_$ac_func=yes"
13736 else
13737   echo "configure: failed program was:" >&5
13738   cat conftest.$ac_ext >&5
13739   rm -rf conftest*
13740   eval "ac_cv_func_$ac_func=no"
13741 fi
13742 rm -f conftest*
13743 fi
13744
13745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13746   echo "$ac_t""yes" 1>&6
13747     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13748   cat >> confdefs.h <<EOF
13749 #define $ac_tr_func 1
13750 EOF
13751  
13752 else
13753   echo "$ac_t""no" 1>&6
13754 fi
13755 done
13756     
13757   else
13758     
13759   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
13760 echo "configure:13761: checking for _powl declaration" >&5
13761   if test x${glibcpp_cv_func__powl_use+set} != xset; then
13762     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
13763   echo $ac_n "(cached) $ac_c" 1>&6
13764 else
13765   
13766       
13767       ac_ext=C
13768 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13769 ac_cpp='$CXXCPP $CPPFLAGS'
13770 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13771 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13772 cross_compiling=$ac_cv_prog_cxx_cross
13773
13774       cat > conftest.$ac_ext <<EOF
13775 #line 13776 "configure"
13776 #include "confdefs.h"
13777 #include <math.h>
13778 int main() {
13779  _powl(0, 0);
13780 ; return 0; }
13781 EOF
13782 if { (eval echo configure:13783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13783   rm -rf conftest*
13784   glibcpp_cv_func__powl_use=yes
13785 else
13786   echo "configure: failed program was:" >&5
13787   cat conftest.$ac_ext >&5
13788   rm -rf conftest*
13789   glibcpp_cv_func__powl_use=no
13790 fi
13791 rm -f conftest*
13792       ac_ext=c
13793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13794 ac_cpp='$CPP $CPPFLAGS'
13795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13797 cross_compiling=$ac_cv_prog_cc_cross
13798
13799     
13800 fi
13801
13802   fi
13803   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
13804
13805     if test x$glibcpp_cv_func__powl_use = x"yes"; then
13806       for ac_func in _powl
13807 do
13808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13809 echo "configure:13810: checking for $ac_func" >&5
13810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13811   echo $ac_n "(cached) $ac_c" 1>&6
13812 else
13813   cat > conftest.$ac_ext <<EOF
13814 #line 13815 "configure"
13815 #include "confdefs.h"
13816 /* System header to define __stub macros and hopefully few prototypes,
13817     which can conflict with char $ac_func(); below.  */
13818 #include <assert.h>
13819 /* Override any gcc2 internal prototype to avoid an error.  */
13820 /* We use char because int might match the return type of a gcc2
13821     builtin and then its argument prototype would still apply.  */
13822 char $ac_func();
13823
13824 int main() {
13825
13826 /* The GNU C library defines this for functions which it implements
13827     to always fail with ENOSYS.  Some functions are actually named
13828     something starting with __ and the normal name is an alias.  */
13829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13830 choke me
13831 #else
13832 $ac_func();
13833 #endif
13834
13835 ; return 0; }
13836 EOF
13837 if { (eval echo configure:13838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13838   rm -rf conftest*
13839   eval "ac_cv_func_$ac_func=yes"
13840 else
13841   echo "configure: failed program was:" >&5
13842   cat conftest.$ac_ext >&5
13843   rm -rf conftest*
13844   eval "ac_cv_func_$ac_func=no"
13845 fi
13846 rm -f conftest*
13847 fi
13848
13849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13850   echo "$ac_t""yes" 1>&6
13851     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13852   cat >> confdefs.h <<EOF
13853 #define $ac_tr_func 1
13854 EOF
13855  
13856 else
13857   echo "$ac_t""no" 1>&6
13858 fi
13859 done
13860     
13861     fi
13862   fi
13863
13864   
13865   
13866   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
13867 echo "configure:13868: checking for sqrtl declaration" >&5
13868   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
13869     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
13870   echo $ac_n "(cached) $ac_c" 1>&6
13871 else
13872   
13873       
13874       ac_ext=C
13875 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13876 ac_cpp='$CXXCPP $CPPFLAGS'
13877 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13878 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13879 cross_compiling=$ac_cv_prog_cxx_cross
13880
13881       cat > conftest.$ac_ext <<EOF
13882 #line 13883 "configure"
13883 #include "confdefs.h"
13884 #include <math.h>
13885                       #ifdef HAVE_IEEEFP_H
13886                       #include <ieeefp.h>
13887                       #endif
13888                      
13889 int main() {
13890  sqrtl(0);
13891 ; return 0; }
13892 EOF
13893 if { (eval echo configure:13894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13894   rm -rf conftest*
13895   glibcpp_cv_func_sqrtl_use=yes
13896 else
13897   echo "configure: failed program was:" >&5
13898   cat conftest.$ac_ext >&5
13899   rm -rf conftest*
13900   glibcpp_cv_func_sqrtl_use=no
13901 fi
13902 rm -f conftest*
13903       ac_ext=c
13904 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13905 ac_cpp='$CPP $CPPFLAGS'
13906 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13907 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13908 cross_compiling=$ac_cv_prog_cc_cross
13909
13910     
13911 fi
13912
13913   fi
13914   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
13915
13916   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
13917     for ac_func in sqrtl
13918 do
13919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13920 echo "configure:13921: checking for $ac_func" >&5
13921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13922   echo $ac_n "(cached) $ac_c" 1>&6
13923 else
13924   cat > conftest.$ac_ext <<EOF
13925 #line 13926 "configure"
13926 #include "confdefs.h"
13927 /* System header to define __stub macros and hopefully few prototypes,
13928     which can conflict with char $ac_func(); below.  */
13929 #include <assert.h>
13930 /* Override any gcc2 internal prototype to avoid an error.  */
13931 /* We use char because int might match the return type of a gcc2
13932     builtin and then its argument prototype would still apply.  */
13933 char $ac_func();
13934
13935 int main() {
13936
13937 /* The GNU C library defines this for functions which it implements
13938     to always fail with ENOSYS.  Some functions are actually named
13939     something starting with __ and the normal name is an alias.  */
13940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13941 choke me
13942 #else
13943 $ac_func();
13944 #endif
13945
13946 ; return 0; }
13947 EOF
13948 if { (eval echo configure:13949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13949   rm -rf conftest*
13950   eval "ac_cv_func_$ac_func=yes"
13951 else
13952   echo "configure: failed program was:" >&5
13953   cat conftest.$ac_ext >&5
13954   rm -rf conftest*
13955   eval "ac_cv_func_$ac_func=no"
13956 fi
13957 rm -f conftest*
13958 fi
13959
13960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13961   echo "$ac_t""yes" 1>&6
13962     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13963   cat >> confdefs.h <<EOF
13964 #define $ac_tr_func 1
13965 EOF
13966  
13967 else
13968   echo "$ac_t""no" 1>&6
13969 fi
13970 done
13971     
13972   else
13973     
13974   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
13975 echo "configure:13976: checking for _sqrtl declaration" >&5
13976   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
13977     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
13978   echo $ac_n "(cached) $ac_c" 1>&6
13979 else
13980   
13981       
13982       ac_ext=C
13983 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13984 ac_cpp='$CXXCPP $CPPFLAGS'
13985 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13986 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13987 cross_compiling=$ac_cv_prog_cxx_cross
13988
13989       cat > conftest.$ac_ext <<EOF
13990 #line 13991 "configure"
13991 #include "confdefs.h"
13992 #include <math.h>
13993                       #ifdef HAVE_IEEEFP_H
13994                       #include <ieeefp.h>
13995                       #endif
13996                      
13997 int main() {
13998  _sqrtl(0);
13999 ; return 0; }
14000 EOF
14001 if { (eval echo configure:14002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14002   rm -rf conftest*
14003   glibcpp_cv_func__sqrtl_use=yes
14004 else
14005   echo "configure: failed program was:" >&5
14006   cat conftest.$ac_ext >&5
14007   rm -rf conftest*
14008   glibcpp_cv_func__sqrtl_use=no
14009 fi
14010 rm -f conftest*
14011       ac_ext=c
14012 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14013 ac_cpp='$CPP $CPPFLAGS'
14014 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14015 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14016 cross_compiling=$ac_cv_prog_cc_cross
14017
14018     
14019 fi
14020
14021   fi
14022   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
14023
14024     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
14025       for ac_func in _sqrtl
14026 do
14027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14028 echo "configure:14029: checking for $ac_func" >&5
14029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14030   echo $ac_n "(cached) $ac_c" 1>&6
14031 else
14032   cat > conftest.$ac_ext <<EOF
14033 #line 14034 "configure"
14034 #include "confdefs.h"
14035 /* System header to define __stub macros and hopefully few prototypes,
14036     which can conflict with char $ac_func(); below.  */
14037 #include <assert.h>
14038 /* Override any gcc2 internal prototype to avoid an error.  */
14039 /* We use char because int might match the return type of a gcc2
14040     builtin and then its argument prototype would still apply.  */
14041 char $ac_func();
14042
14043 int main() {
14044
14045 /* The GNU C library defines this for functions which it implements
14046     to always fail with ENOSYS.  Some functions are actually named
14047     something starting with __ and the normal name is an alias.  */
14048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14049 choke me
14050 #else
14051 $ac_func();
14052 #endif
14053
14054 ; return 0; }
14055 EOF
14056 if { (eval echo configure:14057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14057   rm -rf conftest*
14058   eval "ac_cv_func_$ac_func=yes"
14059 else
14060   echo "configure: failed program was:" >&5
14061   cat conftest.$ac_ext >&5
14062   rm -rf conftest*
14063   eval "ac_cv_func_$ac_func=no"
14064 fi
14065 rm -f conftest*
14066 fi
14067
14068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14069   echo "$ac_t""yes" 1>&6
14070     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14071   cat >> confdefs.h <<EOF
14072 #define $ac_tr_func 1
14073 EOF
14074  
14075 else
14076   echo "$ac_t""no" 1>&6
14077 fi
14078 done
14079     
14080     fi
14081   fi
14082
14083   
14084   
14085   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
14086 echo "configure:14087: checking for sincosl declaration" >&5
14087   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
14088     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
14089   echo $ac_n "(cached) $ac_c" 1>&6
14090 else
14091   
14092       
14093       ac_ext=C
14094 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14095 ac_cpp='$CXXCPP $CPPFLAGS'
14096 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14097 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14098 cross_compiling=$ac_cv_prog_cxx_cross
14099
14100       cat > conftest.$ac_ext <<EOF
14101 #line 14102 "configure"
14102 #include "confdefs.h"
14103 #include <math.h>
14104 int main() {
14105  sincosl(0, 0, 0);
14106 ; return 0; }
14107 EOF
14108 if { (eval echo configure:14109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14109   rm -rf conftest*
14110   glibcpp_cv_func_sincosl_use=yes
14111 else
14112   echo "configure: failed program was:" >&5
14113   cat conftest.$ac_ext >&5
14114   rm -rf conftest*
14115   glibcpp_cv_func_sincosl_use=no
14116 fi
14117 rm -f conftest*
14118       ac_ext=c
14119 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14120 ac_cpp='$CPP $CPPFLAGS'
14121 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14122 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14123 cross_compiling=$ac_cv_prog_cc_cross
14124
14125     
14126 fi
14127
14128   fi
14129   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
14130
14131   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
14132     for ac_func in sincosl
14133 do
14134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14135 echo "configure:14136: checking for $ac_func" >&5
14136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14137   echo $ac_n "(cached) $ac_c" 1>&6
14138 else
14139   cat > conftest.$ac_ext <<EOF
14140 #line 14141 "configure"
14141 #include "confdefs.h"
14142 /* System header to define __stub macros and hopefully few prototypes,
14143     which can conflict with char $ac_func(); below.  */
14144 #include <assert.h>
14145 /* Override any gcc2 internal prototype to avoid an error.  */
14146 /* We use char because int might match the return type of a gcc2
14147     builtin and then its argument prototype would still apply.  */
14148 char $ac_func();
14149
14150 int main() {
14151
14152 /* The GNU C library defines this for functions which it implements
14153     to always fail with ENOSYS.  Some functions are actually named
14154     something starting with __ and the normal name is an alias.  */
14155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14156 choke me
14157 #else
14158 $ac_func();
14159 #endif
14160
14161 ; return 0; }
14162 EOF
14163 if { (eval echo configure:14164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14164   rm -rf conftest*
14165   eval "ac_cv_func_$ac_func=yes"
14166 else
14167   echo "configure: failed program was:" >&5
14168   cat conftest.$ac_ext >&5
14169   rm -rf conftest*
14170   eval "ac_cv_func_$ac_func=no"
14171 fi
14172 rm -f conftest*
14173 fi
14174
14175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14176   echo "$ac_t""yes" 1>&6
14177     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14178   cat >> confdefs.h <<EOF
14179 #define $ac_tr_func 1
14180 EOF
14181  
14182 else
14183   echo "$ac_t""no" 1>&6
14184 fi
14185 done
14186     
14187   else
14188     
14189   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
14190 echo "configure:14191: checking for _sincosl declaration" >&5
14191   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
14192     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
14193   echo $ac_n "(cached) $ac_c" 1>&6
14194 else
14195   
14196       
14197       ac_ext=C
14198 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14199 ac_cpp='$CXXCPP $CPPFLAGS'
14200 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14201 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14202 cross_compiling=$ac_cv_prog_cxx_cross
14203
14204       cat > conftest.$ac_ext <<EOF
14205 #line 14206 "configure"
14206 #include "confdefs.h"
14207 #include <math.h>
14208 int main() {
14209  _sincosl(0, 0, 0);
14210 ; return 0; }
14211 EOF
14212 if { (eval echo configure:14213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14213   rm -rf conftest*
14214   glibcpp_cv_func__sincosl_use=yes
14215 else
14216   echo "configure: failed program was:" >&5
14217   cat conftest.$ac_ext >&5
14218   rm -rf conftest*
14219   glibcpp_cv_func__sincosl_use=no
14220 fi
14221 rm -f conftest*
14222       ac_ext=c
14223 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14224 ac_cpp='$CPP $CPPFLAGS'
14225 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14226 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14227 cross_compiling=$ac_cv_prog_cc_cross
14228
14229     
14230 fi
14231
14232   fi
14233   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
14234
14235     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
14236       for ac_func in _sincosl
14237 do
14238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14239 echo "configure:14240: checking for $ac_func" >&5
14240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14241   echo $ac_n "(cached) $ac_c" 1>&6
14242 else
14243   cat > conftest.$ac_ext <<EOF
14244 #line 14245 "configure"
14245 #include "confdefs.h"
14246 /* System header to define __stub macros and hopefully few prototypes,
14247     which can conflict with char $ac_func(); below.  */
14248 #include <assert.h>
14249 /* Override any gcc2 internal prototype to avoid an error.  */
14250 /* We use char because int might match the return type of a gcc2
14251     builtin and then its argument prototype would still apply.  */
14252 char $ac_func();
14253
14254 int main() {
14255
14256 /* The GNU C library defines this for functions which it implements
14257     to always fail with ENOSYS.  Some functions are actually named
14258     something starting with __ and the normal name is an alias.  */
14259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14260 choke me
14261 #else
14262 $ac_func();
14263 #endif
14264
14265 ; return 0; }
14266 EOF
14267 if { (eval echo configure:14268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14268   rm -rf conftest*
14269   eval "ac_cv_func_$ac_func=yes"
14270 else
14271   echo "configure: failed program was:" >&5
14272   cat conftest.$ac_ext >&5
14273   rm -rf conftest*
14274   eval "ac_cv_func_$ac_func=no"
14275 fi
14276 rm -f conftest*
14277 fi
14278
14279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14280   echo "$ac_t""yes" 1>&6
14281     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14282   cat >> confdefs.h <<EOF
14283 #define $ac_tr_func 1
14284 EOF
14285  
14286 else
14287   echo "$ac_t""no" 1>&6
14288 fi
14289 done
14290     
14291     fi
14292   fi
14293
14294   
14295   
14296   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
14297 echo "configure:14298: checking for finitel declaration" >&5
14298   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
14299     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
14300   echo $ac_n "(cached) $ac_c" 1>&6
14301 else
14302   
14303       
14304       ac_ext=C
14305 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14306 ac_cpp='$CXXCPP $CPPFLAGS'
14307 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14308 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14309 cross_compiling=$ac_cv_prog_cxx_cross
14310
14311       cat > conftest.$ac_ext <<EOF
14312 #line 14313 "configure"
14313 #include "confdefs.h"
14314 #include <math.h>
14315                       #ifdef HAVE_IEEEFP_H
14316                       #include <ieeefp.h>
14317                       #endif
14318                      
14319 int main() {
14320  finitel(0);
14321 ; return 0; }
14322 EOF
14323 if { (eval echo configure:14324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14324   rm -rf conftest*
14325   glibcpp_cv_func_finitel_use=yes
14326 else
14327   echo "configure: failed program was:" >&5
14328   cat conftest.$ac_ext >&5
14329   rm -rf conftest*
14330   glibcpp_cv_func_finitel_use=no
14331 fi
14332 rm -f conftest*
14333       ac_ext=c
14334 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14335 ac_cpp='$CPP $CPPFLAGS'
14336 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14337 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14338 cross_compiling=$ac_cv_prog_cc_cross
14339
14340     
14341 fi
14342
14343   fi
14344   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
14345
14346   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
14347     for ac_func in finitel
14348 do
14349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14350 echo "configure:14351: checking for $ac_func" >&5
14351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14352   echo $ac_n "(cached) $ac_c" 1>&6
14353 else
14354   cat > conftest.$ac_ext <<EOF
14355 #line 14356 "configure"
14356 #include "confdefs.h"
14357 /* System header to define __stub macros and hopefully few prototypes,
14358     which can conflict with char $ac_func(); below.  */
14359 #include <assert.h>
14360 /* Override any gcc2 internal prototype to avoid an error.  */
14361 /* We use char because int might match the return type of a gcc2
14362     builtin and then its argument prototype would still apply.  */
14363 char $ac_func();
14364
14365 int main() {
14366
14367 /* The GNU C library defines this for functions which it implements
14368     to always fail with ENOSYS.  Some functions are actually named
14369     something starting with __ and the normal name is an alias.  */
14370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14371 choke me
14372 #else
14373 $ac_func();
14374 #endif
14375
14376 ; return 0; }
14377 EOF
14378 if { (eval echo configure:14379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14379   rm -rf conftest*
14380   eval "ac_cv_func_$ac_func=yes"
14381 else
14382   echo "configure: failed program was:" >&5
14383   cat conftest.$ac_ext >&5
14384   rm -rf conftest*
14385   eval "ac_cv_func_$ac_func=no"
14386 fi
14387 rm -f conftest*
14388 fi
14389
14390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14391   echo "$ac_t""yes" 1>&6
14392     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14393   cat >> confdefs.h <<EOF
14394 #define $ac_tr_func 1
14395 EOF
14396  
14397 else
14398   echo "$ac_t""no" 1>&6
14399 fi
14400 done
14401     
14402   else
14403     
14404   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
14405 echo "configure:14406: checking for _finitel declaration" >&5
14406   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
14407     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
14408   echo $ac_n "(cached) $ac_c" 1>&6
14409 else
14410   
14411       
14412       ac_ext=C
14413 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14414 ac_cpp='$CXXCPP $CPPFLAGS'
14415 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14416 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14417 cross_compiling=$ac_cv_prog_cxx_cross
14418
14419       cat > conftest.$ac_ext <<EOF
14420 #line 14421 "configure"
14421 #include "confdefs.h"
14422 #include <math.h>
14423                       #ifdef HAVE_IEEEFP_H
14424                       #include <ieeefp.h>
14425                       #endif
14426                      
14427 int main() {
14428  _finitel(0);
14429 ; return 0; }
14430 EOF
14431 if { (eval echo configure:14432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14432   rm -rf conftest*
14433   glibcpp_cv_func__finitel_use=yes
14434 else
14435   echo "configure: failed program was:" >&5
14436   cat conftest.$ac_ext >&5
14437   rm -rf conftest*
14438   glibcpp_cv_func__finitel_use=no
14439 fi
14440 rm -f conftest*
14441       ac_ext=c
14442 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14443 ac_cpp='$CPP $CPPFLAGS'
14444 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14445 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14446 cross_compiling=$ac_cv_prog_cc_cross
14447
14448     
14449 fi
14450
14451   fi
14452   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
14453
14454     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
14455       for ac_func in _finitel
14456 do
14457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14458 echo "configure:14459: checking for $ac_func" >&5
14459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14460   echo $ac_n "(cached) $ac_c" 1>&6
14461 else
14462   cat > conftest.$ac_ext <<EOF
14463 #line 14464 "configure"
14464 #include "confdefs.h"
14465 /* System header to define __stub macros and hopefully few prototypes,
14466     which can conflict with char $ac_func(); below.  */
14467 #include <assert.h>
14468 /* Override any gcc2 internal prototype to avoid an error.  */
14469 /* We use char because int might match the return type of a gcc2
14470     builtin and then its argument prototype would still apply.  */
14471 char $ac_func();
14472
14473 int main() {
14474
14475 /* The GNU C library defines this for functions which it implements
14476     to always fail with ENOSYS.  Some functions are actually named
14477     something starting with __ and the normal name is an alias.  */
14478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14479 choke me
14480 #else
14481 $ac_func();
14482 #endif
14483
14484 ; return 0; }
14485 EOF
14486 if { (eval echo configure:14487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14487   rm -rf conftest*
14488   eval "ac_cv_func_$ac_func=yes"
14489 else
14490   echo "configure: failed program was:" >&5
14491   cat conftest.$ac_ext >&5
14492   rm -rf conftest*
14493   eval "ac_cv_func_$ac_func=no"
14494 fi
14495 rm -f conftest*
14496 fi
14497
14498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14499   echo "$ac_t""yes" 1>&6
14500     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14501   cat >> confdefs.h <<EOF
14502 #define $ac_tr_func 1
14503 EOF
14504  
14505 else
14506   echo "$ac_t""no" 1>&6
14507 fi
14508 done
14509     
14510     fi
14511   fi
14512
14513
14514         
14515     
14516   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
14517 echo "configure:14518: checking for _float trig functions" >&5
14518   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
14519   echo $ac_n "(cached) $ac_c" 1>&6
14520 else
14521   
14522     
14523     ac_ext=C
14524 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14525 ac_cpp='$CXXCPP $CPPFLAGS'
14526 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14527 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14528 cross_compiling=$ac_cv_prog_cxx_cross
14529
14530     cat > conftest.$ac_ext <<EOF
14531 #line 14532 "configure"
14532 #include "confdefs.h"
14533 #include <math.h>
14534 int main() {
14535  `for x in _acosf _asinf _atanf \
14536                                           _cosf _sinf _tanf \
14537                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
14538 ; return 0; }
14539 EOF
14540 if { (eval echo configure:14541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14541   rm -rf conftest*
14542   glibcpp_cv_func__float_trig_use=yes
14543 else
14544   echo "configure: failed program was:" >&5
14545   cat conftest.$ac_ext >&5
14546   rm -rf conftest*
14547   glibcpp_cv_func__float_trig_use=no
14548 fi
14549 rm -f conftest*
14550     ac_ext=c
14551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14552 ac_cpp='$CPP $CPPFLAGS'
14553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14555 cross_compiling=$ac_cv_prog_cc_cross
14556
14557 fi
14558
14559   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
14560   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
14561     for ac_func in _acosf _asinf _atanf \
14562                                           _cosf _sinf _tanf \
14563                                           _coshf _sinhf _tanhf
14564 do
14565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14566 echo "configure:14567: checking for $ac_func" >&5
14567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14568   echo $ac_n "(cached) $ac_c" 1>&6
14569 else
14570   cat > conftest.$ac_ext <<EOF
14571 #line 14572 "configure"
14572 #include "confdefs.h"
14573 /* System header to define __stub macros and hopefully few prototypes,
14574     which can conflict with char $ac_func(); below.  */
14575 #include <assert.h>
14576 /* Override any gcc2 internal prototype to avoid an error.  */
14577 /* We use char because int might match the return type of a gcc2
14578     builtin and then its argument prototype would still apply.  */
14579 char $ac_func();
14580
14581 int main() {
14582
14583 /* The GNU C library defines this for functions which it implements
14584     to always fail with ENOSYS.  Some functions are actually named
14585     something starting with __ and the normal name is an alias.  */
14586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14587 choke me
14588 #else
14589 $ac_func();
14590 #endif
14591
14592 ; return 0; }
14593 EOF
14594 if { (eval echo configure:14595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14595   rm -rf conftest*
14596   eval "ac_cv_func_$ac_func=yes"
14597 else
14598   echo "configure: failed program was:" >&5
14599   cat conftest.$ac_ext >&5
14600   rm -rf conftest*
14601   eval "ac_cv_func_$ac_func=no"
14602 fi
14603 rm -f conftest*
14604 fi
14605
14606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14607   echo "$ac_t""yes" 1>&6
14608     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14609   cat >> confdefs.h <<EOF
14610 #define $ac_tr_func 1
14611 EOF
14612  
14613 else
14614   echo "$ac_t""no" 1>&6
14615 fi
14616 done
14617
14618   fi
14619
14620   
14621   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
14622 echo "configure:14623: checking for _float round functions" >&5
14623   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
14624   echo $ac_n "(cached) $ac_c" 1>&6
14625 else
14626   
14627     
14628     ac_ext=C
14629 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14630 ac_cpp='$CXXCPP $CPPFLAGS'
14631 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14632 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14633 cross_compiling=$ac_cv_prog_cxx_cross
14634
14635     cat > conftest.$ac_ext <<EOF
14636 #line 14637 "configure"
14637 #include "confdefs.h"
14638 #include <math.h>
14639 int main() {
14640  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
14641 ; return 0; }
14642 EOF
14643 if { (eval echo configure:14644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14644   rm -rf conftest*
14645   glibcpp_cv_func__float_round_use=yes
14646 else
14647   echo "configure: failed program was:" >&5
14648   cat conftest.$ac_ext >&5
14649   rm -rf conftest*
14650   glibcpp_cv_func__float_round_use=no
14651 fi
14652 rm -f conftest*
14653     ac_ext=c
14654 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14655 ac_cpp='$CPP $CPPFLAGS'
14656 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14657 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14658 cross_compiling=$ac_cv_prog_cc_cross
14659
14660 fi
14661
14662   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
14663   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
14664     for ac_func in _ceilf _floorf
14665 do
14666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14667 echo "configure:14668: checking for $ac_func" >&5
14668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14669   echo $ac_n "(cached) $ac_c" 1>&6
14670 else
14671   cat > conftest.$ac_ext <<EOF
14672 #line 14673 "configure"
14673 #include "confdefs.h"
14674 /* System header to define __stub macros and hopefully few prototypes,
14675     which can conflict with char $ac_func(); below.  */
14676 #include <assert.h>
14677 /* Override any gcc2 internal prototype to avoid an error.  */
14678 /* We use char because int might match the return type of a gcc2
14679     builtin and then its argument prototype would still apply.  */
14680 char $ac_func();
14681
14682 int main() {
14683
14684 /* The GNU C library defines this for functions which it implements
14685     to always fail with ENOSYS.  Some functions are actually named
14686     something starting with __ and the normal name is an alias.  */
14687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14688 choke me
14689 #else
14690 $ac_func();
14691 #endif
14692
14693 ; return 0; }
14694 EOF
14695 if { (eval echo configure:14696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14696   rm -rf conftest*
14697   eval "ac_cv_func_$ac_func=yes"
14698 else
14699   echo "configure: failed program was:" >&5
14700   cat conftest.$ac_ext >&5
14701   rm -rf conftest*
14702   eval "ac_cv_func_$ac_func=no"
14703 fi
14704 rm -f conftest*
14705 fi
14706
14707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14708   echo "$ac_t""yes" 1>&6
14709     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14710   cat >> confdefs.h <<EOF
14711 #define $ac_tr_func 1
14712 EOF
14713  
14714 else
14715   echo "$ac_t""no" 1>&6
14716 fi
14717 done
14718
14719   fi
14720
14721
14722     
14723   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
14724 echo "configure:14725: checking for _long double trig functions" >&5
14725   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
14726   echo $ac_n "(cached) $ac_c" 1>&6
14727 else
14728   
14729     
14730     ac_ext=C
14731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14732 ac_cpp='$CXXCPP $CPPFLAGS'
14733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14734 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14735 cross_compiling=$ac_cv_prog_cxx_cross
14736
14737     cat > conftest.$ac_ext <<EOF
14738 #line 14739 "configure"
14739 #include "confdefs.h"
14740 #include <math.h>
14741 int main() {
14742  `for x in _acosl _asinl _atanl \
14743                                           _cosl _sinl _tanl \
14744                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
14745 ; return 0; }
14746 EOF
14747 if { (eval echo configure:14748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14748   rm -rf conftest*
14749   glibcpp_cv_func__long_double_trig_use=yes
14750 else
14751   echo "configure: failed program was:" >&5
14752   cat conftest.$ac_ext >&5
14753   rm -rf conftest*
14754   glibcpp_cv_func__long_double_trig_use=no
14755 fi
14756 rm -f conftest*
14757     ac_ext=c
14758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14759 ac_cpp='$CPP $CPPFLAGS'
14760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14762 cross_compiling=$ac_cv_prog_cc_cross
14763
14764 fi
14765
14766   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
14767   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
14768     for ac_func in _acosl _asinl _atanl \
14769                                           _cosl _sinl _tanl \
14770                                           _coshl _sinhl _tanhl
14771 do
14772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14773 echo "configure:14774: checking for $ac_func" >&5
14774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14775   echo $ac_n "(cached) $ac_c" 1>&6
14776 else
14777   cat > conftest.$ac_ext <<EOF
14778 #line 14779 "configure"
14779 #include "confdefs.h"
14780 /* System header to define __stub macros and hopefully few prototypes,
14781     which can conflict with char $ac_func(); below.  */
14782 #include <assert.h>
14783 /* Override any gcc2 internal prototype to avoid an error.  */
14784 /* We use char because int might match the return type of a gcc2
14785     builtin and then its argument prototype would still apply.  */
14786 char $ac_func();
14787
14788 int main() {
14789
14790 /* The GNU C library defines this for functions which it implements
14791     to always fail with ENOSYS.  Some functions are actually named
14792     something starting with __ and the normal name is an alias.  */
14793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14794 choke me
14795 #else
14796 $ac_func();
14797 #endif
14798
14799 ; return 0; }
14800 EOF
14801 if { (eval echo configure:14802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14802   rm -rf conftest*
14803   eval "ac_cv_func_$ac_func=yes"
14804 else
14805   echo "configure: failed program was:" >&5
14806   cat conftest.$ac_ext >&5
14807   rm -rf conftest*
14808   eval "ac_cv_func_$ac_func=no"
14809 fi
14810 rm -f conftest*
14811 fi
14812
14813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14814   echo "$ac_t""yes" 1>&6
14815     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14816   cat >> confdefs.h <<EOF
14817 #define $ac_tr_func 1
14818 EOF
14819  
14820 else
14821   echo "$ac_t""no" 1>&6
14822 fi
14823 done
14824
14825   fi
14826
14827   
14828   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
14829 echo "configure:14830: checking for _long double round functions" >&5
14830   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
14831   echo $ac_n "(cached) $ac_c" 1>&6
14832 else
14833   
14834     
14835     ac_ext=C
14836 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14837 ac_cpp='$CXXCPP $CPPFLAGS'
14838 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14839 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14840 cross_compiling=$ac_cv_prog_cxx_cross
14841
14842     cat > conftest.$ac_ext <<EOF
14843 #line 14844 "configure"
14844 #include "confdefs.h"
14845 #include <math.h>
14846 int main() {
14847  `for x in _ceill _floorl; do echo "$x (0);"; done` 
14848 ; return 0; }
14849 EOF
14850 if { (eval echo configure:14851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14851   rm -rf conftest*
14852   glibcpp_cv_func__long_double_round_use=yes
14853 else
14854   echo "configure: failed program was:" >&5
14855   cat conftest.$ac_ext >&5
14856   rm -rf conftest*
14857   glibcpp_cv_func__long_double_round_use=no
14858 fi
14859 rm -f conftest*
14860     ac_ext=c
14861 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14862 ac_cpp='$CPP $CPPFLAGS'
14863 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14864 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14865 cross_compiling=$ac_cv_prog_cc_cross
14866
14867 fi
14868
14869   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
14870   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
14871     for ac_func in _ceill _floorl
14872 do
14873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14874 echo "configure:14875: checking for $ac_func" >&5
14875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14876   echo $ac_n "(cached) $ac_c" 1>&6
14877 else
14878   cat > conftest.$ac_ext <<EOF
14879 #line 14880 "configure"
14880 #include "confdefs.h"
14881 /* System header to define __stub macros and hopefully few prototypes,
14882     which can conflict with char $ac_func(); below.  */
14883 #include <assert.h>
14884 /* Override any gcc2 internal prototype to avoid an error.  */
14885 /* We use char because int might match the return type of a gcc2
14886     builtin and then its argument prototype would still apply.  */
14887 char $ac_func();
14888
14889 int main() {
14890
14891 /* The GNU C library defines this for functions which it implements
14892     to always fail with ENOSYS.  Some functions are actually named
14893     something starting with __ and the normal name is an alias.  */
14894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14895 choke me
14896 #else
14897 $ac_func();
14898 #endif
14899
14900 ; return 0; }
14901 EOF
14902 if { (eval echo configure:14903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14903   rm -rf conftest*
14904   eval "ac_cv_func_$ac_func=yes"
14905 else
14906   echo "configure: failed program was:" >&5
14907   cat conftest.$ac_ext >&5
14908   rm -rf conftest*
14909   eval "ac_cv_func_$ac_func=no"
14910 fi
14911 rm -f conftest*
14912 fi
14913
14914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14915   echo "$ac_t""yes" 1>&6
14916     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14917   cat >> confdefs.h <<EOF
14918 #define $ac_tr_func 1
14919 EOF
14920  
14921 else
14922   echo "$ac_t""no" 1>&6
14923 fi
14924 done
14925
14926   fi
14927
14928
14929   LIBS="$ac_save_LIBS"
14930   CXXFLAGS="$ac_save_CXXFLAGS"
14931
14932   
14933     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
14934 echo "configure:14935: checking for main in -lm" >&5
14935 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
14936 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14937   echo $ac_n "(cached) $ac_c" 1>&6
14938 else
14939   ac_save_LIBS="$LIBS"
14940 LIBS="-lm  $LIBS"
14941 cat > conftest.$ac_ext <<EOF
14942 #line 14943 "configure"
14943 #include "confdefs.h"
14944
14945 int main() {
14946 main()
14947 ; return 0; }
14948 EOF
14949 if { (eval echo configure:14950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14950   rm -rf conftest*
14951   eval "ac_cv_lib_$ac_lib_var=yes"
14952 else
14953   echo "configure: failed program was:" >&5
14954   cat conftest.$ac_ext >&5
14955   rm -rf conftest*
14956   eval "ac_cv_lib_$ac_lib_var=no"
14957 fi
14958 rm -f conftest*
14959 LIBS="$ac_save_LIBS"
14960
14961 fi
14962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14963   echo "$ac_t""yes" 1>&6
14964     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14965     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14966   cat >> confdefs.h <<EOF
14967 #define $ac_tr_lib 1
14968 EOF
14969
14970   LIBS="-lm $LIBS"
14971
14972 else
14973   echo "$ac_t""no" 1>&6
14974 fi
14975
14976   for ac_func in nan hypot hypotf copysignf
14977 do
14978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14979 echo "configure:14980: checking for $ac_func" >&5
14980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14981   echo $ac_n "(cached) $ac_c" 1>&6
14982 else
14983   cat > conftest.$ac_ext <<EOF
14984 #line 14985 "configure"
14985 #include "confdefs.h"
14986 /* System header to define __stub macros and hopefully few prototypes,
14987     which can conflict with char $ac_func(); below.  */
14988 #include <assert.h>
14989 /* Override any gcc2 internal prototype to avoid an error.  */
14990 /* We use char because int might match the return type of a gcc2
14991     builtin and then its argument prototype would still apply.  */
14992 char $ac_func();
14993
14994 int main() {
14995
14996 /* The GNU C library defines this for functions which it implements
14997     to always fail with ENOSYS.  Some functions are actually named
14998     something starting with __ and the normal name is an alias.  */
14999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15000 choke me
15001 #else
15002 $ac_func();
15003 #endif
15004
15005 ; return 0; }
15006 EOF
15007 if { (eval echo configure:15008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15008   rm -rf conftest*
15009   eval "ac_cv_func_$ac_func=yes"
15010 else
15011   echo "configure: failed program was:" >&5
15012   cat conftest.$ac_ext >&5
15013   rm -rf conftest*
15014   eval "ac_cv_func_$ac_func=no"
15015 fi
15016 rm -f conftest*
15017 fi
15018
15019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15020   echo "$ac_t""yes" 1>&6
15021     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15022   cat >> confdefs.h <<EOF
15023 #define $ac_tr_func 1
15024 EOF
15025  
15026 else
15027   echo "$ac_t""no" 1>&6
15028 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15029 fi
15030 done
15031
15032
15033
15034           USE_COMPLEX_LONG_DOUBLE=no
15035   if test x$ac_cv_func_atan2l = x"yes" &&
15036      test x$ac_cv_func_copysignl = x"yes"; then
15037     USE_COMPLEX_LONG_DOUBLE=yes
15038     for ac_func in hypotl signbitl
15039 do
15040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15041 echo "configure:15042: checking for $ac_func" >&5
15042 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15043   echo $ac_n "(cached) $ac_c" 1>&6
15044 else
15045   cat > conftest.$ac_ext <<EOF
15046 #line 15047 "configure"
15047 #include "confdefs.h"
15048 /* System header to define __stub macros and hopefully few prototypes,
15049     which can conflict with char $ac_func(); below.  */
15050 #include <assert.h>
15051 /* Override any gcc2 internal prototype to avoid an error.  */
15052 /* We use char because int might match the return type of a gcc2
15053     builtin and then its argument prototype would still apply.  */
15054 char $ac_func();
15055
15056 int main() {
15057
15058 /* The GNU C library defines this for functions which it implements
15059     to always fail with ENOSYS.  Some functions are actually named
15060     something starting with __ and the normal name is an alias.  */
15061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15062 choke me
15063 #else
15064 $ac_func();
15065 #endif
15066
15067 ; return 0; }
15068 EOF
15069 if { (eval echo configure:15070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15070   rm -rf conftest*
15071   eval "ac_cv_func_$ac_func=yes"
15072 else
15073   echo "configure: failed program was:" >&5
15074   cat conftest.$ac_ext >&5
15075   rm -rf conftest*
15076   eval "ac_cv_func_$ac_func=no"
15077 fi
15078 rm -f conftest*
15079 fi
15080
15081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15082   echo "$ac_t""yes" 1>&6
15083     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15084   cat >> confdefs.h <<EOF
15085 #define $ac_tr_func 1
15086 EOF
15087  
15088 else
15089   echo "$ac_t""no" 1>&6
15090 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15091 fi
15092 done
15093
15094
15095   fi
15096
15097   
15098
15099   
15100
15101       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
15102 echo "configure:15103: checking for mbstate_t" >&5
15103   cat > conftest.$ac_ext <<EOF
15104 #line 15105 "configure"
15105 #include "confdefs.h"
15106 #include <wchar.h>
15107 int main() {
15108 mbstate_t teststate;
15109 ; return 0; }
15110 EOF
15111 if { (eval echo configure:15112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15112   rm -rf conftest*
15113   have_mbstate_t=yes
15114 else
15115   echo "configure: failed program was:" >&5
15116   cat conftest.$ac_ext >&5
15117   rm -rf conftest*
15118   have_mbstate_t=no
15119 fi
15120 rm -f conftest*
15121   echo "$ac_t""$have_mbstate_t" 1>&6
15122   if test x"$have_mbstate_t" = xyes; then
15123     cat >> confdefs.h <<\EOF
15124 #define HAVE_MBSTATE_T 1
15125 EOF
15126
15127   fi
15128
15129     for ac_hdr in wchar.h
15130 do
15131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15132 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15133 echo "configure:15134: checking for $ac_hdr" >&5
15134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15135   echo $ac_n "(cached) $ac_c" 1>&6
15136 else
15137   cat > conftest.$ac_ext <<EOF
15138 #line 15139 "configure"
15139 #include "confdefs.h"
15140 #include <$ac_hdr>
15141 EOF
15142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15143 { (eval echo configure:15144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15145 if test -z "$ac_err"; then
15146   rm -rf conftest*
15147   eval "ac_cv_header_$ac_safe=yes"
15148 else
15149   echo "$ac_err" >&5
15150   echo "configure: failed program was:" >&5
15151   cat conftest.$ac_ext >&5
15152   rm -rf conftest*
15153   eval "ac_cv_header_$ac_safe=no"
15154 fi
15155 rm -f conftest*
15156 fi
15157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15158   echo "$ac_t""yes" 1>&6
15159     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15160   cat >> confdefs.h <<EOF
15161 #define $ac_tr_hdr 1
15162 EOF
15163  ac_has_wchar_h=yes
15164 else
15165   echo "$ac_t""no" 1>&6
15166 ac_has_wchar_h=no
15167 fi
15168 done
15169
15170   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
15171 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
15172 echo "configure:15173: checking for wctype.h" >&5
15173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15174   echo $ac_n "(cached) $ac_c" 1>&6
15175 else
15176   cat > conftest.$ac_ext <<EOF
15177 #line 15178 "configure"
15178 #include "confdefs.h"
15179 #include <wctype.h>
15180 EOF
15181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15182 { (eval echo configure:15183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15184 if test -z "$ac_err"; then
15185   rm -rf conftest*
15186   eval "ac_cv_header_$ac_safe=yes"
15187 else
15188   echo "$ac_err" >&5
15189   echo "configure: failed program was:" >&5
15190   cat conftest.$ac_ext >&5
15191   rm -rf conftest*
15192   eval "ac_cv_header_$ac_safe=no"
15193 fi
15194 rm -f conftest*
15195 fi
15196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15197   echo "$ac_t""yes" 1>&6
15198   ac_has_wctype_h=yes
15199 else
15200   echo "$ac_t""no" 1>&6
15201 ac_has_wctype_h=no
15202 fi
15203
15204   
15205     if test x"$ac_has_wchar_h" = xyes &&
15206      test x"$ac_has_wctype_h" = xyes &&
15207      test x"$enable_c_mbchar" != xno; then
15208       
15209             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
15210 echo "configure:15211: checking for WCHAR_MIN and WCHAR_MAX" >&5
15211     cat > conftest.$ac_ext <<EOF
15212 #line 15213 "configure"
15213 #include "confdefs.h"
15214 #include <wchar.h>
15215 int main() {
15216 int i = WCHAR_MIN; int j = WCHAR_MAX;
15217 ; return 0; }
15218 EOF
15219 if { (eval echo configure:15220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15220   rm -rf conftest*
15221   has_wchar_minmax=yes
15222 else
15223   echo "configure: failed program was:" >&5
15224   cat conftest.$ac_ext >&5
15225   rm -rf conftest*
15226   has_wchar_minmax=no
15227 fi
15228 rm -f conftest*
15229     echo "$ac_t""$has_wchar_minmax" 1>&6
15230     
15231             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
15232 echo "configure:15233: checking for WEOF" >&5
15233     cat > conftest.$ac_ext <<EOF
15234 #line 15235 "configure"
15235 #include "confdefs.h"
15236
15237       #include <wchar.h>
15238       #include <stddef.h>
15239 int main() {
15240 wint_t i = WEOF;
15241 ; return 0; }
15242 EOF
15243 if { (eval echo configure:15244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15244   rm -rf conftest*
15245   has_weof=yes
15246 else
15247   echo "configure: failed program was:" >&5
15248   cat conftest.$ac_ext >&5
15249   rm -rf conftest*
15250   has_weof=no
15251 fi
15252 rm -f conftest*
15253     echo "$ac_t""$has_weof" 1>&6
15254   
15255         ac_wfuncs=yes
15256     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
15257 do
15258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15259 echo "configure:15260: checking for $ac_func" >&5
15260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15261   echo $ac_n "(cached) $ac_c" 1>&6
15262 else
15263   cat > conftest.$ac_ext <<EOF
15264 #line 15265 "configure"
15265 #include "confdefs.h"
15266 /* System header to define __stub macros and hopefully few prototypes,
15267     which can conflict with char $ac_func(); below.  */
15268 #include <assert.h>
15269 /* Override any gcc2 internal prototype to avoid an error.  */
15270 /* We use char because int might match the return type of a gcc2
15271     builtin and then its argument prototype would still apply.  */
15272 char $ac_func();
15273
15274 int main() {
15275
15276 /* The GNU C library defines this for functions which it implements
15277     to always fail with ENOSYS.  Some functions are actually named
15278     something starting with __ and the normal name is an alias.  */
15279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15280 choke me
15281 #else
15282 $ac_func();
15283 #endif
15284
15285 ; return 0; }
15286 EOF
15287 if { (eval echo configure:15288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15288   rm -rf conftest*
15289   eval "ac_cv_func_$ac_func=yes"
15290 else
15291   echo "configure: failed program was:" >&5
15292   cat conftest.$ac_ext >&5
15293   rm -rf conftest*
15294   eval "ac_cv_func_$ac_func=no"
15295 fi
15296 rm -f conftest*
15297 fi
15298
15299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15300   echo "$ac_t""yes" 1>&6
15301     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15302   cat >> confdefs.h <<EOF
15303 #define $ac_tr_func 1
15304 EOF
15305  
15306 else
15307   echo "$ac_t""no" 1>&6
15308 \
15309     ac_wfuncs=no
15310 fi
15311 done
15312
15313   
15314         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
15315     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
15316     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
15317     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
15318     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
15319     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
15320 do
15321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15322 echo "configure:15323: checking for $ac_func" >&5
15323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15324   echo $ac_n "(cached) $ac_c" 1>&6
15325 else
15326   cat > conftest.$ac_ext <<EOF
15327 #line 15328 "configure"
15328 #include "confdefs.h"
15329 /* System header to define __stub macros and hopefully few prototypes,
15330     which can conflict with char $ac_func(); below.  */
15331 #include <assert.h>
15332 /* Override any gcc2 internal prototype to avoid an error.  */
15333 /* We use char because int might match the return type of a gcc2
15334     builtin and then its argument prototype would still apply.  */
15335 char $ac_func();
15336
15337 int main() {
15338
15339 /* The GNU C library defines this for functions which it implements
15340     to always fail with ENOSYS.  Some functions are actually named
15341     something starting with __ and the normal name is an alias.  */
15342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15343 choke me
15344 #else
15345 $ac_func();
15346 #endif
15347
15348 ; return 0; }
15349 EOF
15350 if { (eval echo configure:15351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15351   rm -rf conftest*
15352   eval "ac_cv_func_$ac_func=yes"
15353 else
15354   echo "configure: failed program was:" >&5
15355   cat conftest.$ac_ext >&5
15356   rm -rf conftest*
15357   eval "ac_cv_func_$ac_func=no"
15358 fi
15359 rm -f conftest*
15360 fi
15361
15362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15363   echo "$ac_t""yes" 1>&6
15364     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15365   cat >> confdefs.h <<EOF
15366 #define $ac_tr_func 1
15367 EOF
15368  
15369 else
15370   echo "$ac_t""no" 1>&6
15371 \
15372     ac_wfuncs=no
15373 fi
15374 done
15375
15376
15377     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
15378 echo "configure:15379: checking for ISO C99 wchar_t support" >&5
15379     if test x"$has_weof" = xyes &&
15380        test x"$has_wchar_minmax" = xyes &&
15381        test x"$ac_wfuncs" = xyes; then
15382       ac_isoC99_wchar_t=yes
15383     else
15384       ac_isoC99_wchar_t=no
15385     fi
15386     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
15387   
15388             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
15389 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
15390 echo "configure:15391: checking for iconv.h" >&5
15391 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15392   echo $ac_n "(cached) $ac_c" 1>&6
15393 else
15394   cat > conftest.$ac_ext <<EOF
15395 #line 15396 "configure"
15396 #include "confdefs.h"
15397 #include <iconv.h>
15398 EOF
15399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15400 { (eval echo configure:15401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15402 if test -z "$ac_err"; then
15403   rm -rf conftest*
15404   eval "ac_cv_header_$ac_safe=yes"
15405 else
15406   echo "$ac_err" >&5
15407   echo "configure: failed program was:" >&5
15408   cat conftest.$ac_ext >&5
15409   rm -rf conftest*
15410   eval "ac_cv_header_$ac_safe=no"
15411 fi
15412 rm -f conftest*
15413 fi
15414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15415   echo "$ac_t""yes" 1>&6
15416   ac_has_iconv_h=yes
15417 else
15418   echo "$ac_t""no" 1>&6
15419 ac_has_iconv_h=no
15420 fi
15421
15422     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
15423 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
15424 echo "configure:15425: checking for langinfo.h" >&5
15425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15426   echo $ac_n "(cached) $ac_c" 1>&6
15427 else
15428   cat > conftest.$ac_ext <<EOF
15429 #line 15430 "configure"
15430 #include "confdefs.h"
15431 #include <langinfo.h>
15432 EOF
15433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15434 { (eval echo configure:15435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15436 if test -z "$ac_err"; then
15437   rm -rf conftest*
15438   eval "ac_cv_header_$ac_safe=yes"
15439 else
15440   echo "$ac_err" >&5
15441   echo "configure: failed program was:" >&5
15442   cat conftest.$ac_ext >&5
15443   rm -rf conftest*
15444   eval "ac_cv_header_$ac_safe=no"
15445 fi
15446 rm -f conftest*
15447 fi
15448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15449   echo "$ac_t""yes" 1>&6
15450   ac_has_langinfo_h=yes
15451 else
15452   echo "$ac_t""no" 1>&6
15453 ac_has_langinfo_h=no
15454 fi
15455
15456
15457         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
15458 echo "configure:15459: checking for iconv in -liconv" >&5
15459 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
15460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15461   echo $ac_n "(cached) $ac_c" 1>&6
15462 else
15463   ac_save_LIBS="$LIBS"
15464 LIBS="-liconv  $LIBS"
15465 cat > conftest.$ac_ext <<EOF
15466 #line 15467 "configure"
15467 #include "confdefs.h"
15468 /* Override any gcc2 internal prototype to avoid an error.  */
15469 /* We use char because int might match the return type of a gcc2
15470     builtin and then its argument prototype would still apply.  */
15471 char iconv();
15472
15473 int main() {
15474 iconv()
15475 ; return 0; }
15476 EOF
15477 if { (eval echo configure:15478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15478   rm -rf conftest*
15479   eval "ac_cv_lib_$ac_lib_var=yes"
15480 else
15481   echo "configure: failed program was:" >&5
15482   cat conftest.$ac_ext >&5
15483   rm -rf conftest*
15484   eval "ac_cv_lib_$ac_lib_var=no"
15485 fi
15486 rm -f conftest*
15487 LIBS="$ac_save_LIBS"
15488
15489 fi
15490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15491   echo "$ac_t""yes" 1>&6
15492   libiconv="-liconv"
15493 else
15494   echo "$ac_t""no" 1>&6
15495 fi
15496
15497     ac_save_LIBS="$LIBS"
15498     LIBS="$LIBS $libiconv"
15499
15500     for ac_func in iconv_open iconv_close iconv nl_langinfo
15501 do
15502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15503 echo "configure:15504: checking for $ac_func" >&5
15504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15505   echo $ac_n "(cached) $ac_c" 1>&6
15506 else
15507   cat > conftest.$ac_ext <<EOF
15508 #line 15509 "configure"
15509 #include "confdefs.h"
15510 /* System header to define __stub macros and hopefully few prototypes,
15511     which can conflict with char $ac_func(); below.  */
15512 #include <assert.h>
15513 /* Override any gcc2 internal prototype to avoid an error.  */
15514 /* We use char because int might match the return type of a gcc2
15515     builtin and then its argument prototype would still apply.  */
15516 char $ac_func();
15517
15518 int main() {
15519
15520 /* The GNU C library defines this for functions which it implements
15521     to always fail with ENOSYS.  Some functions are actually named
15522     something starting with __ and the normal name is an alias.  */
15523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15524 choke me
15525 #else
15526 $ac_func();
15527 #endif
15528
15529 ; return 0; }
15530 EOF
15531 if { (eval echo configure:15532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15532   rm -rf conftest*
15533   eval "ac_cv_func_$ac_func=yes"
15534 else
15535   echo "configure: failed program was:" >&5
15536   cat conftest.$ac_ext >&5
15537   rm -rf conftest*
15538   eval "ac_cv_func_$ac_func=no"
15539 fi
15540 rm -f conftest*
15541 fi
15542
15543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15544   echo "$ac_t""yes" 1>&6
15545     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15546   cat >> confdefs.h <<EOF
15547 #define $ac_tr_func 1
15548 EOF
15549  \
15550     ac_XPG2funcs=yes
15551 else
15552   echo "$ac_t""no" 1>&6
15553 ac_XPG2funcs=no
15554 fi
15555 done
15556
15557   
15558     LIBS="$ac_save_LIBS"
15559
15560     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
15561 echo "configure:15562: checking for XPG2 wchar_t support" >&5
15562     if test x"$ac_has_iconv_h" = xyes &&
15563        test x"$ac_has_langinfo_h" = xyes &&
15564        test x"$ac_XPG2funcs" = xyes; then
15565       ac_XPG2_wchar_t=yes
15566     else
15567       ac_XPG2_wchar_t=no
15568     fi
15569     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
15570   
15571             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
15572 echo "configure:15573: checking for enabled wchar_t specializations" >&5
15573     if test x"$ac_isoC99_wchar_t" = xyes &&
15574        test x"$ac_XPG2_wchar_t" = xyes; then
15575       cat >> confdefs.h <<\EOF
15576 #define _GLIBCPP_USE_WCHAR_T 1
15577 EOF
15578
15579       echo "$ac_t"""yes"" 1>&6
15580     else
15581       echo "$ac_t"""no"" 1>&6
15582     fi
15583   else
15584         echo "configure: warning: wchar_t support disabled." 1>&2
15585   fi
15586
15587   
15588   ac_test_CXXFLAGS="${CXXFLAGS+set}"
15589   ac_save_CXXFLAGS="$CXXFLAGS"
15590   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
15591
15592   
15593   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
15594 echo "configure:15595: checking for strtold declaration" >&5
15595   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
15596     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
15597   echo $ac_n "(cached) $ac_c" 1>&6
15598 else
15599   
15600       
15601       ac_ext=C
15602 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15603 ac_cpp='$CXXCPP $CPPFLAGS'
15604 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15605 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15606 cross_compiling=$ac_cv_prog_cxx_cross
15607
15608       cat > conftest.$ac_ext <<EOF
15609 #line 15610 "configure"
15610 #include "confdefs.h"
15611 #include <stdlib.h>
15612 int main() {
15613  strtold(0, 0);
15614 ; return 0; }
15615 EOF
15616 if { (eval echo configure:15617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15617   rm -rf conftest*
15618   glibcpp_cv_func_strtold_use=yes
15619 else
15620   echo "configure: failed program was:" >&5
15621   cat conftest.$ac_ext >&5
15622   rm -rf conftest*
15623   glibcpp_cv_func_strtold_use=no
15624 fi
15625 rm -f conftest*
15626       ac_ext=c
15627 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15628 ac_cpp='$CPP $CPPFLAGS'
15629 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15630 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15631 cross_compiling=$ac_cv_prog_cc_cross
15632
15633     
15634 fi
15635
15636   fi
15637   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
15638   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
15639     for ac_func in strtold
15640 do
15641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15642 echo "configure:15643: checking for $ac_func" >&5
15643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15644   echo $ac_n "(cached) $ac_c" 1>&6
15645 else
15646   cat > conftest.$ac_ext <<EOF
15647 #line 15648 "configure"
15648 #include "confdefs.h"
15649 /* System header to define __stub macros and hopefully few prototypes,
15650     which can conflict with char $ac_func(); below.  */
15651 #include <assert.h>
15652 /* Override any gcc2 internal prototype to avoid an error.  */
15653 /* We use char because int might match the return type of a gcc2
15654     builtin and then its argument prototype would still apply.  */
15655 char $ac_func();
15656
15657 int main() {
15658
15659 /* The GNU C library defines this for functions which it implements
15660     to always fail with ENOSYS.  Some functions are actually named
15661     something starting with __ and the normal name is an alias.  */
15662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15663 choke me
15664 #else
15665 $ac_func();
15666 #endif
15667
15668 ; return 0; }
15669 EOF
15670 if { (eval echo configure:15671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15671   rm -rf conftest*
15672   eval "ac_cv_func_$ac_func=yes"
15673 else
15674   echo "configure: failed program was:" >&5
15675   cat conftest.$ac_ext >&5
15676   rm -rf conftest*
15677   eval "ac_cv_func_$ac_func=no"
15678 fi
15679 rm -f conftest*
15680 fi
15681
15682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15683   echo "$ac_t""yes" 1>&6
15684     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15685   cat >> confdefs.h <<EOF
15686 #define $ac_tr_func 1
15687 EOF
15688  
15689 else
15690   echo "$ac_t""no" 1>&6
15691 fi
15692 done
15693     
15694   fi
15695
15696   for ac_func in drand48
15697 do
15698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15699 echo "configure:15700: checking for $ac_func" >&5
15700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15701   echo $ac_n "(cached) $ac_c" 1>&6
15702 else
15703   cat > conftest.$ac_ext <<EOF
15704 #line 15705 "configure"
15705 #include "confdefs.h"
15706 /* System header to define __stub macros and hopefully few prototypes,
15707     which can conflict with char $ac_func(); below.  */
15708 #include <assert.h>
15709 /* Override any gcc2 internal prototype to avoid an error.  */
15710 /* We use char because int might match the return type of a gcc2
15711     builtin and then its argument prototype would still apply.  */
15712 char $ac_func();
15713
15714 int main() {
15715
15716 /* The GNU C library defines this for functions which it implements
15717     to always fail with ENOSYS.  Some functions are actually named
15718     something starting with __ and the normal name is an alias.  */
15719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15720 choke me
15721 #else
15722 $ac_func();
15723 #endif
15724
15725 ; return 0; }
15726 EOF
15727 if { (eval echo configure:15728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15728   rm -rf conftest*
15729   eval "ac_cv_func_$ac_func=yes"
15730 else
15731   echo "configure: failed program was:" >&5
15732   cat conftest.$ac_ext >&5
15733   rm -rf conftest*
15734   eval "ac_cv_func_$ac_func=no"
15735 fi
15736 rm -f conftest*
15737 fi
15738
15739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15740   echo "$ac_t""yes" 1>&6
15741     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15742   cat >> confdefs.h <<EOF
15743 #define $ac_tr_func 1
15744 EOF
15745  
15746 else
15747   echo "$ac_t""no" 1>&6
15748 fi
15749 done
15750
15751
15752   CXXFLAGS="$ac_save_CXXFLAGS"
15753
15754
15755   cat > conftest.$ac_ext <<EOF
15756 #line 15757 "configure"
15757 #include "confdefs.h"
15758
15759 #include <setjmp.h>
15760
15761 int main() {
15762 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
15763 ; return 0; }
15764 EOF
15765 if { (eval echo configure:15766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15766   rm -rf conftest*
15767   cat >> confdefs.h <<\EOF
15768 #define HAVE_SIGSETJMP 1
15769 EOF
15770
15771 else
15772   echo "configure: failed program was:" >&5
15773   cat conftest.$ac_ext >&5
15774 fi
15775 rm -f conftest*
15776
15777   for ac_hdr in unistd.h
15778 do
15779 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15781 echo "configure:15782: checking for $ac_hdr" >&5
15782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15783   echo $ac_n "(cached) $ac_c" 1>&6
15784 else
15785   cat > conftest.$ac_ext <<EOF
15786 #line 15787 "configure"
15787 #include "confdefs.h"
15788 #include <$ac_hdr>
15789 EOF
15790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15791 { (eval echo configure:15792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15793 if test -z "$ac_err"; then
15794   rm -rf conftest*
15795   eval "ac_cv_header_$ac_safe=yes"
15796 else
15797   echo "$ac_err" >&5
15798   echo "configure: failed program was:" >&5
15799   cat conftest.$ac_ext >&5
15800   rm -rf conftest*
15801   eval "ac_cv_header_$ac_safe=no"
15802 fi
15803 rm -f conftest*
15804 fi
15805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15806   echo "$ac_t""yes" 1>&6
15807     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15808   cat >> confdefs.h <<EOF
15809 #define $ac_tr_hdr 1
15810 EOF
15811  
15812 else
15813   echo "$ac_t""no" 1>&6
15814 fi
15815 done
15816
15817 for ac_func in getpagesize
15818 do
15819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15820 echo "configure:15821: checking for $ac_func" >&5
15821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15822   echo $ac_n "(cached) $ac_c" 1>&6
15823 else
15824   cat > conftest.$ac_ext <<EOF
15825 #line 15826 "configure"
15826 #include "confdefs.h"
15827 /* System header to define __stub macros and hopefully few prototypes,
15828     which can conflict with char $ac_func(); below.  */
15829 #include <assert.h>
15830 /* Override any gcc2 internal prototype to avoid an error.  */
15831 /* We use char because int might match the return type of a gcc2
15832     builtin and then its argument prototype would still apply.  */
15833 char $ac_func();
15834
15835 int main() {
15836
15837 /* The GNU C library defines this for functions which it implements
15838     to always fail with ENOSYS.  Some functions are actually named
15839     something starting with __ and the normal name is an alias.  */
15840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15841 choke me
15842 #else
15843 $ac_func();
15844 #endif
15845
15846 ; return 0; }
15847 EOF
15848 if { (eval echo configure:15849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15849   rm -rf conftest*
15850   eval "ac_cv_func_$ac_func=yes"
15851 else
15852   echo "configure: failed program was:" >&5
15853   cat conftest.$ac_ext >&5
15854   rm -rf conftest*
15855   eval "ac_cv_func_$ac_func=no"
15856 fi
15857 rm -f conftest*
15858 fi
15859
15860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15861   echo "$ac_t""yes" 1>&6
15862     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15863   cat >> confdefs.h <<EOF
15864 #define $ac_tr_func 1
15865 EOF
15866  
15867 else
15868   echo "$ac_t""no" 1>&6
15869 fi
15870 done
15871
15872 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
15873 echo "configure:15874: checking for working mmap" >&5
15874 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
15875   echo $ac_n "(cached) $ac_c" 1>&6
15876 else
15877   if test "$cross_compiling" = yes; then
15878   ac_cv_func_mmap_fixed_mapped=no
15879 else
15880   cat > conftest.$ac_ext <<EOF
15881 #line 15882 "configure"
15882 #include "confdefs.h"
15883
15884 /* Thanks to Mike Haertel and Jim Avera for this test.
15885    Here is a matrix of mmap possibilities:
15886         mmap private not fixed
15887         mmap private fixed at somewhere currently unmapped
15888         mmap private fixed at somewhere already mapped
15889         mmap shared not fixed
15890         mmap shared fixed at somewhere currently unmapped
15891         mmap shared fixed at somewhere already mapped
15892    For private mappings, we should verify that changes cannot be read()
15893    back from the file, nor mmap's back from the file at a different
15894    address.  (There have been systems where private was not correctly
15895    implemented like the infamous i386 svr4.0, and systems where the
15896    VM page cache was not coherent with the filesystem buffer cache
15897    like early versions of FreeBSD and possibly contemporary NetBSD.)
15898    For shared mappings, we should conversely verify that changes get
15899    propogated back to all the places they're supposed to be.
15900
15901    Grep wants private fixed already mapped.
15902    The main things grep needs to know about mmap are:
15903    * does it exist and is it safe to write into the mmap'd area
15904    * how to use it (BSD variants)  */
15905 #include <sys/types.h>
15906 #include <fcntl.h>
15907 #include <sys/mman.h>
15908
15909 /* This mess was copied from the GNU getpagesize.h.  */
15910 #ifndef HAVE_GETPAGESIZE
15911 # ifdef HAVE_UNISTD_H
15912 #  include <unistd.h>
15913 # endif
15914
15915 /* Assume that all systems that can run configure have sys/param.h.  */
15916 # ifndef HAVE_SYS_PARAM_H
15917 #  define HAVE_SYS_PARAM_H 1
15918 # endif
15919
15920 # ifdef _SC_PAGESIZE
15921 #  define getpagesize() sysconf(_SC_PAGESIZE)
15922 # else /* no _SC_PAGESIZE */
15923 #  ifdef HAVE_SYS_PARAM_H
15924 #   include <sys/param.h>
15925 #   ifdef EXEC_PAGESIZE
15926 #    define getpagesize() EXEC_PAGESIZE
15927 #   else /* no EXEC_PAGESIZE */
15928 #    ifdef NBPG
15929 #     define getpagesize() NBPG * CLSIZE
15930 #     ifndef CLSIZE
15931 #      define CLSIZE 1
15932 #     endif /* no CLSIZE */
15933 #    else /* no NBPG */
15934 #     ifdef NBPC
15935 #      define getpagesize() NBPC
15936 #     else /* no NBPC */
15937 #      ifdef PAGESIZE
15938 #       define getpagesize() PAGESIZE
15939 #      endif /* PAGESIZE */
15940 #     endif /* no NBPC */
15941 #    endif /* no NBPG */
15942 #   endif /* no EXEC_PAGESIZE */
15943 #  else /* no HAVE_SYS_PARAM_H */
15944 #   define getpagesize() 8192   /* punt totally */
15945 #  endif /* no HAVE_SYS_PARAM_H */
15946 # endif /* no _SC_PAGESIZE */
15947
15948 #endif /* no HAVE_GETPAGESIZE */
15949
15950 #ifdef __cplusplus
15951 extern "C" { void *malloc(unsigned); }
15952 #else
15953 char *malloc();
15954 #endif
15955
15956 int
15957 main()
15958 {
15959         char *data, *data2, *data3;
15960         int i, pagesize;
15961         int fd;
15962
15963         pagesize = getpagesize();
15964
15965         /*
15966          * First, make a file with some known garbage in it.
15967          */
15968         data = malloc(pagesize);
15969         if (!data)
15970                 exit(1);
15971         for (i = 0; i < pagesize; ++i)
15972                 *(data + i) = rand();
15973         umask(0);
15974         fd = creat("conftestmmap", 0600);
15975         if (fd < 0)
15976                 exit(1);
15977         if (write(fd, data, pagesize) != pagesize)
15978                 exit(1);
15979         close(fd);
15980
15981         /*
15982          * Next, try to mmap the file at a fixed address which
15983          * already has something else allocated at it.  If we can,
15984          * also make sure that we see the same garbage.
15985          */
15986         fd = open("conftestmmap", O_RDWR);
15987         if (fd < 0)
15988                 exit(1);
15989         data2 = malloc(2 * pagesize);
15990         if (!data2)
15991                 exit(1);
15992         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
15993         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
15994             MAP_PRIVATE | MAP_FIXED, fd, 0L))
15995                 exit(1);
15996         for (i = 0; i < pagesize; ++i)
15997                 if (*(data + i) != *(data2 + i))
15998                         exit(1);
15999
16000         /*
16001          * Finally, make sure that changes to the mapped area
16002          * do not percolate back to the file as seen by read().
16003          * (This is a bug on some variants of i386 svr4.0.)
16004          */
16005         for (i = 0; i < pagesize; ++i)
16006                 *(data2 + i) = *(data2 + i) + 1;
16007         data3 = malloc(pagesize);
16008         if (!data3)
16009                 exit(1);
16010         if (read(fd, data3, pagesize) != pagesize)
16011                 exit(1);
16012         for (i = 0; i < pagesize; ++i)
16013                 if (*(data + i) != *(data3 + i))
16014                         exit(1);
16015         close(fd);
16016         unlink("conftestmmap");
16017         exit(0);
16018 }
16019
16020 EOF
16021 if { (eval echo configure:16022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16022 then
16023   ac_cv_func_mmap_fixed_mapped=yes
16024 else
16025   echo "configure: failed program was:" >&5
16026   cat conftest.$ac_ext >&5
16027   rm -fr conftest*
16028   ac_cv_func_mmap_fixed_mapped=no
16029 fi
16030 rm -fr conftest*
16031 fi
16032
16033 fi
16034
16035 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
16036 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16037   cat >> confdefs.h <<\EOF
16038 #define HAVE_MMAP 1
16039 EOF
16040
16041 fi
16042
16043 fi
16044
16045 # Now that ctype is determined for all possible targets, we can do this...
16046
16047
16048
16049
16050
16051
16052
16053 if test "$CANADIAN" = yes; then
16054   CANADIAN_TRUE=
16055   CANADIAN_FALSE='#'
16056 else
16057   CANADIAN_TRUE='#'
16058   CANADIAN_FALSE=
16059 fi
16060  
16061 cat > confcache <<\EOF
16062 # This file is a shell script that caches the results of configure
16063 # tests run on this system so they can be shared between configure
16064 # scripts and configure runs.  It is not useful on other systems.
16065 # If it contains results you don't want to keep, you may remove or edit it.
16066 #
16067 # By default, configure uses ./config.cache as the cache file,
16068 # creating it if it does not exist already.  You can give configure
16069 # the --cache-file=FILE option to use a different cache file; that is
16070 # what configure does when it calls configure scripts in
16071 # subdirectories, so they share the cache.
16072 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16073 # config.status only pays attention to the cache file if you give it the
16074 # --recheck option to rerun configure.
16075 #
16076 EOF
16077 # The following way of writing the cache mishandles newlines in values,
16078 # but we know of no workaround that is simple, portable, and efficient.
16079 # So, don't put newlines in cache variables' values.
16080 # Ultrix sh set writes to stderr and can't be redirected directly,
16081 # and sets the high bit in the cache file unless we assign to the vars.
16082 (set) 2>&1 |
16083   case `(ac_space=' '; set | grep ac_space) 2>&1` in
16084   *ac_space=\ *)
16085     # `set' does not quote correctly, so add quotes (double-quote substitution
16086     # turns \\\\ into \\, and sed turns \\ into \).
16087     sed -n \
16088       -e "s/'/'\\\\''/g" \
16089       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16090     ;;
16091   *)
16092     # `set' quotes correctly as required by POSIX, so do not add quotes.
16093     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16094     ;;
16095   esac >> confcache
16096 if cmp -s $cache_file confcache; then
16097   :
16098 else
16099   if test -w $cache_file; then
16100     echo "updating cache $cache_file"
16101     cat confcache > $cache_file
16102   else
16103     echo "not updating unwritable cache $cache_file"
16104   fi
16105 fi
16106 rm -f confcache
16107
16108
16109   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16110 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16111 echo "configure:16112: checking for locale.h" >&5
16112 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16113   echo $ac_n "(cached) $ac_c" 1>&6
16114 else
16115   cat > conftest.$ac_ext <<EOF
16116 #line 16117 "configure"
16117 #include "confdefs.h"
16118 #include <locale.h>
16119 EOF
16120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16121 { (eval echo configure:16122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16123 if test -z "$ac_err"; then
16124   rm -rf conftest*
16125   eval "ac_cv_header_$ac_safe=yes"
16126 else
16127   echo "$ac_err" >&5
16128   echo "configure: failed program was:" >&5
16129   cat conftest.$ac_ext >&5
16130   rm -rf conftest*
16131   eval "ac_cv_header_$ac_safe=no"
16132 fi
16133 rm -f conftest*
16134 fi
16135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16136   echo "$ac_t""yes" 1>&6
16137   
16138     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16139 echo "configure:16140: checking for LC_MESSAGES" >&5
16140 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16141   echo $ac_n "(cached) $ac_c" 1>&6
16142 else
16143   cat > conftest.$ac_ext <<EOF
16144 #line 16145 "configure"
16145 #include "confdefs.h"
16146 #include <locale.h>
16147 int main() {
16148 return LC_MESSAGES
16149 ; return 0; }
16150 EOF
16151 if { (eval echo configure:16152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16152   rm -rf conftest*
16153   ac_cv_val_LC_MESSAGES=yes
16154 else
16155   echo "configure: failed program was:" >&5
16156   cat conftest.$ac_ext >&5
16157   rm -rf conftest*
16158   ac_cv_val_LC_MESSAGES=no
16159 fi
16160 rm -f conftest*
16161 fi
16162
16163 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16164     if test $ac_cv_val_LC_MESSAGES = yes; then
16165       cat >> confdefs.h <<\EOF
16166 #define HAVE_LC_MESSAGES 1
16167 EOF
16168
16169     fi
16170   
16171 else
16172   echo "$ac_t""no" 1>&6
16173 fi
16174
16175
16176
16177 if test "${multilib}" = "yes"; then
16178   multilib_arg="--enable-multilib"
16179 else
16180   multilib_arg=
16181 fi
16182
16183
16184 # Generate the various Makefiles, include files, and scripts.
16185
16186 # Needed so that g++ can find the correct include subdir automatically.
16187 INTERFACE=v3
16188
16189 # Export all the install information
16190
16191
16192 glibcpp_toolexecdir=no
16193 glibcpp_toolexeclibdir=no
16194
16195 # Export build and source directories.
16196 # These need to be absolute paths, yet at the same time need to
16197 # canonicalize only relative paths, because then amd will not unmount
16198 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
16199 glibcpp_builddir=`pwd`
16200 case $srcdir in
16201 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
16202 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
16203 esac
16204 glibcpp_prefixdir=${prefix}
16205
16206 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
16207 echo "configure:16208: checking for interface version number" >&5
16208 libstdcxx_interface=$INTERFACE
16209 echo "$ac_t""$libstdcxx_interface" 1>&6
16210
16211 # Process the option --with-gxx-include-dir=<path to include-files directory>
16212 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
16213 echo "configure:16214: checking for --with-gxx-include-dir" >&5
16214 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
16215 if test "${with_gxx_include_dir+set}" = set; then
16216   withval="$with_gxx_include_dir"
16217   case "${withval}" in
16218   yes)
16219     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
16220     gxx_include_dir=no
16221     ;;
16222   no)
16223     gxx_include_dir=no
16224     ;;
16225   *)
16226     gxx_include_dir=${withval}
16227     ;;
16228 esac
16229 else
16230   gxx_include_dir=no
16231 fi
16232
16233 echo "$ac_t""$gxx_include_dir" 1>&6
16234
16235 # Process the option "--enable-version-specific-runtime-libs"
16236 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
16237 echo "configure:16238: checking for --enable-version-specific-runtime-libs" >&5
16238 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16239 if test "${enable_version_specific_runtime_libs+set}" = set; then
16240   enableval="$enable_version_specific_runtime_libs"
16241     version_specific_libs=yes
16242 # Need the gcc compiler version to know where to install libraries
16243 # and header files if --enable-version-specific-runtime-libs option
16244 # is selected.
16245 gcc_version_trigger=${srcdir}/../gcc/version.c
16246 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
16247 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
16248 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
16249 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16250 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
16251
16252 else
16253   version_specific_libs=no
16254 fi
16255
16256 echo "$ac_t""$version_specific_libs" 1>&6
16257
16258 # Default case for install directory for include files.
16259 if test x"$version_specific_libs" = x"no" \
16260    && test x"$gxx_include_dir" = x"no"; then
16261   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
16262 fi
16263
16264 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
16265 # Install a library built with a cross compiler in tooldir, not libdir.
16266 if test x"$glibcpp_toolexecdir" = x"no"; then 
16267   if test -n "$with_cross_host" &&
16268      test x"$with_cross_host" != x"no"; then
16269     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
16270     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
16271   else
16272     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16273     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
16274   fi
16275 fi
16276
16277 echo $ac_n "checking for install location""... $ac_c" 1>&6
16278 echo "configure:16279: checking for install location" >&5
16279 echo "$ac_t""$gxx_include_dir" 1>&6
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289 # Export all the include and flag information to makefiles.
16290
16291   # Root level of the include sources.
16292   GLIBCPP_INCLUDE_DIR='$(top_srcdir)/include'
16293
16294   # Can either use include/c or include/c_std to grab "C" headers. This
16295   # variable is set to the include directory currently in use.
16296   # set with C_INCLUDE_DIR in GLIBCPP_ENABLE_CHEADERS
16297    
16298   # Passed down for canadian crosses.
16299   if  test x"$CANADIAN" = xyes; then
16300     TOPLEVEL_INCLUDES='-I$(includedir)'
16301   fi
16302
16303   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
16304
16305   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
16306
16307   #if GLIBCPP_NEED_LIBIO
16308   LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
16309   #else
16310   #LIBIO_INCLUDES='-I$(top_srcdir)/libio'
16311   #endif
16312
16313   #if GLIBCPP_USE_CSHADOW
16314   #  CSHADOW_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR) \
16315   #                   -I$(top_blddir)/cshadow'
16316   #else
16317   CSTD_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR)'
16318   #endif
16319
16320   # Now, export this to all the little Makefiles....
16321   
16322   
16323   
16324   
16325   
16326   
16327
16328
16329   # Optimization flags that are probably a good idea for thrill-seekers. Just
16330   # uncomment the lines below and make, everything else is ready to go... 
16331   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
16332   OPTIMIZE_CXXFLAGS=
16333   
16334
16335   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
16336   
16337
16338
16339 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
16340    grep "enable shared" > /dev/null; then
16341   LIBSUPCXX_PICFLAGS=-prefer-pic
16342 else
16343   LIBSUPCXX_PICFLAGS=
16344 fi
16345
16346
16347 # This should be done by mkincludedir, but hack around it now.
16348 blddir=`pwd`
16349 echo "checking for $blddir/include"
16350
16351 if test ! -d "$blddir/include"; then
16352   mkdir "$blddir/include"
16353 fi
16354
16355 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
16356 # and libsupc++/Makefile.am so that multilib installs will end up
16357 # installed in the correct place. To work around this not being passed
16358 # down from config-ml.in -> top_srcdir/Makefile.am ->
16359 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
16360 trap '' 1 2 15
16361 cat > confcache <<\EOF
16362 # This file is a shell script that caches the results of configure
16363 # tests run on this system so they can be shared between configure
16364 # scripts and configure runs.  It is not useful on other systems.
16365 # If it contains results you don't want to keep, you may remove or edit it.
16366 #
16367 # By default, configure uses ./config.cache as the cache file,
16368 # creating it if it does not exist already.  You can give configure
16369 # the --cache-file=FILE option to use a different cache file; that is
16370 # what configure does when it calls configure scripts in
16371 # subdirectories, so they share the cache.
16372 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16373 # config.status only pays attention to the cache file if you give it the
16374 # --recheck option to rerun configure.
16375 #
16376 EOF
16377 # The following way of writing the cache mishandles newlines in values,
16378 # but we know of no workaround that is simple, portable, and efficient.
16379 # So, don't put newlines in cache variables' values.
16380 # Ultrix sh set writes to stderr and can't be redirected directly,
16381 # and sets the high bit in the cache file unless we assign to the vars.
16382 (set) 2>&1 |
16383   case `(ac_space=' '; set | grep ac_space) 2>&1` in
16384   *ac_space=\ *)
16385     # `set' does not quote correctly, so add quotes (double-quote substitution
16386     # turns \\\\ into \\, and sed turns \\ into \).
16387     sed -n \
16388       -e "s/'/'\\\\''/g" \
16389       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16390     ;;
16391   *)
16392     # `set' quotes correctly as required by POSIX, so do not add quotes.
16393     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16394     ;;
16395   esac >> confcache
16396 if cmp -s $cache_file confcache; then
16397   :
16398 else
16399   if test -w $cache_file; then
16400     echo "updating cache $cache_file"
16401     cat confcache > $cache_file
16402   else
16403     echo "not updating unwritable cache $cache_file"
16404   fi
16405 fi
16406 rm -f confcache
16407
16408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16409
16410 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16411 # Let make expand exec_prefix.
16412 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16413
16414 # Any assignment to VPATH causes Sun make to only execute
16415 # the first set of double-colon rules, so remove it if not needed.
16416 # If there is a colon in the path, we need to keep it.
16417 if test "x$srcdir" = x.; then
16418   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
16419 fi
16420
16421 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16422
16423 DEFS=-DHAVE_CONFIG_H
16424
16425 # Without the "./", some shells look in PATH for config.status.
16426 : ${CONFIG_STATUS=./config.status}
16427
16428 echo creating $CONFIG_STATUS
16429 rm -f $CONFIG_STATUS
16430 cat > $CONFIG_STATUS <<EOF
16431 #! /bin/sh
16432 # Generated automatically by configure.
16433 # Run this file to recreate the current configuration.
16434 # This directory was configured as follows,
16435 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16436 #
16437 # $0 $ac_configure_args
16438 #
16439 # Compiler output produced by configure, useful for debugging
16440 # configure, is in ./config.log if it exists.
16441
16442 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16443 for ac_option
16444 do
16445   case "\$ac_option" in
16446   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16447     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16448     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16449   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16450     echo "$CONFIG_STATUS generated by autoconf version 2.13"
16451     exit 0 ;;
16452   -help | --help | --hel | --he | --h)
16453     echo "\$ac_cs_usage"; exit 0 ;;
16454   *) echo "\$ac_cs_usage"; exit 1 ;;
16455   esac
16456 done
16457
16458 ac_given_srcdir=$srcdir
16459 ac_given_INSTALL="$INSTALL"
16460
16461 trap 'rm -fr `echo "Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16462 EOF
16463 cat >> $CONFIG_STATUS <<EOF
16464
16465 # Protect against being on the right side of a sed subst in config.status.
16466 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16467  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16468 $ac_vpsub
16469 $extrasub
16470 s%@SHELL@%$SHELL%g
16471 s%@CFLAGS@%$CFLAGS%g
16472 s%@CPPFLAGS@%$CPPFLAGS%g
16473 s%@CXXFLAGS@%$CXXFLAGS%g
16474 s%@FFLAGS@%$FFLAGS%g
16475 s%@DEFS@%$DEFS%g
16476 s%@LDFLAGS@%$LDFLAGS%g
16477 s%@LIBS@%$LIBS%g
16478 s%@exec_prefix@%$exec_prefix%g
16479 s%@prefix@%$prefix%g
16480 s%@program_transform_name@%$program_transform_name%g
16481 s%@bindir@%$bindir%g
16482 s%@sbindir@%$sbindir%g
16483 s%@libexecdir@%$libexecdir%g
16484 s%@datadir@%$datadir%g
16485 s%@sysconfdir@%$sysconfdir%g
16486 s%@sharedstatedir@%$sharedstatedir%g
16487 s%@localstatedir@%$localstatedir%g
16488 s%@libdir@%$libdir%g
16489 s%@includedir@%$includedir%g
16490 s%@oldincludedir@%$oldincludedir%g
16491 s%@infodir@%$infodir%g
16492 s%@mandir@%$mandir%g
16493 s%@toplevel_srcdir@%$toplevel_srcdir%g
16494 s%@host@%$host%g
16495 s%@host_alias@%$host_alias%g
16496 s%@host_cpu@%$host_cpu%g
16497 s%@host_vendor@%$host_vendor%g
16498 s%@host_os@%$host_os%g
16499 s%@target@%$target%g
16500 s%@target_alias@%$target_alias%g
16501 s%@target_cpu@%$target_cpu%g
16502 s%@target_vendor@%$target_vendor%g
16503 s%@target_os@%$target_os%g
16504 s%@build@%$build%g
16505 s%@build_alias@%$build_alias%g
16506 s%@build_cpu@%$build_cpu%g
16507 s%@build_vendor@%$build_vendor%g
16508 s%@build_os@%$build_os%g
16509 s%@glibcpp_basedir@%$glibcpp_basedir%g
16510 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16511 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16512 s%@INSTALL_DATA@%$INSTALL_DATA%g
16513 s%@PACKAGE@%$PACKAGE%g
16514 s%@VERSION@%$VERSION%g
16515 s%@ACLOCAL@%$ACLOCAL%g
16516 s%@AUTOCONF@%$AUTOCONF%g
16517 s%@AUTOMAKE@%$AUTOMAKE%g
16518 s%@AUTOHEADER@%$AUTOHEADER%g
16519 s%@MAKEINFO@%$MAKEINFO%g
16520 s%@SET_MAKE@%$SET_MAKE%g
16521 s%@CC@%$CC%g
16522 s%@glibcpp_CXX@%$glibcpp_CXX%g
16523 s%@AS@%$AS%g
16524 s%@AR@%$AR%g
16525 s%@RANLIB@%$RANLIB%g
16526 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16527 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16528 s%@MAINT@%$MAINT%g
16529 s%@EXEEXT@%$EXEEXT%g
16530 s%@LN_S@%$LN_S%g
16531 s%@OBJEXT@%$OBJEXT%g
16532 s%@STRIP@%$STRIP%g
16533 s%@LIBTOOL@%$LIBTOOL%g
16534 s%@CXXCPP@%$CXXCPP%g
16535 s%@enable_shared@%$enable_shared%g
16536 s%@enable_static@%$enable_static%g
16537 s%@ifGNUmake@%$ifGNUmake%g
16538 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
16539 s%@CPP@%$CPP%g
16540 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
16541 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
16542 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
16543 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
16544 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
16545 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
16546 s%@libio_la@%$libio_la%g
16547 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
16548 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
16549 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
16550 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
16551 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
16552 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
16553 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
16554 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
16555 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
16556 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
16557 s%@WERROR@%$WERROR%g
16558 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
16559 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
16560 s%@glibcpp_builddir@%$glibcpp_builddir%g
16561 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
16562 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
16563 s%@gxx_include_dir@%$gxx_include_dir%g
16564 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
16565 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
16566 s%@GLIBCPP_INCLUDE_DIR@%$GLIBCPP_INCLUDE_DIR%g
16567 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
16568 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
16569 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
16570 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
16571 s%@CSTD_INCLUDES@%$CSTD_INCLUDES%g
16572 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
16573 s%@WARN_FLAGS@%$WARN_FLAGS%g
16574 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
16575
16576 CEOF
16577 EOF
16578
16579 cat >> $CONFIG_STATUS <<\EOF
16580
16581 # Split the substitutions into bite-sized pieces for seds with
16582 # small command number limits, like on Digital OSF/1 and HP-UX.
16583 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16584 ac_file=1 # Number of current file.
16585 ac_beg=1 # First line for current file.
16586 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16587 ac_more_lines=:
16588 ac_sed_cmds=""
16589 while $ac_more_lines; do
16590   if test $ac_beg -gt 1; then
16591     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16592   else
16593     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16594   fi
16595   if test ! -s conftest.s$ac_file; then
16596     ac_more_lines=false
16597     rm -f conftest.s$ac_file
16598   else
16599     if test -z "$ac_sed_cmds"; then
16600       ac_sed_cmds="sed -f conftest.s$ac_file"
16601     else
16602       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16603     fi
16604     ac_file=`expr $ac_file + 1`
16605     ac_beg=$ac_end
16606     ac_end=`expr $ac_end + $ac_max_sed_cmds`
16607   fi
16608 done
16609 if test -z "$ac_sed_cmds"; then
16610   ac_sed_cmds=cat
16611 fi
16612 EOF
16613
16614 cat >> $CONFIG_STATUS <<EOF
16615
16616 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile mkcheck testsuite_flags"}
16617 EOF
16618 cat >> $CONFIG_STATUS <<\EOF
16619 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16620   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16621   case "$ac_file" in
16622   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16623        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16624   *) ac_file_in="${ac_file}.in" ;;
16625   esac
16626
16627   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16628
16629   # Remove last slash and all that follows it.  Not all systems have dirname.
16630   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16631   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16632     # The file is in a subdirectory.
16633     test ! -d "$ac_dir" && mkdir "$ac_dir"
16634     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16635     # A "../" for each directory in $ac_dir_suffix.
16636     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16637   else
16638     ac_dir_suffix= ac_dots=
16639   fi
16640
16641   case "$ac_given_srcdir" in
16642   .)  srcdir=.
16643       if test -z "$ac_dots"; then top_srcdir=.
16644       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16645   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16646   *) # Relative path.
16647     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16648     top_srcdir="$ac_dots$ac_given_srcdir" ;;
16649   esac
16650
16651   case "$ac_given_INSTALL" in
16652   [/$]*) INSTALL="$ac_given_INSTALL" ;;
16653   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16654   esac
16655
16656   echo creating "$ac_file"
16657   rm -f "$ac_file"
16658   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16659   case "$ac_file" in
16660   *Makefile*) ac_comsub="1i\\
16661 # $configure_input" ;;
16662   *) ac_comsub= ;;
16663   esac
16664
16665   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16666   sed -e "$ac_comsub
16667 s%@configure_input@%$configure_input%g
16668 s%@srcdir@%$srcdir%g
16669 s%@top_srcdir@%$top_srcdir%g
16670 s%@INSTALL@%$INSTALL%g
16671 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16672 fi; done
16673 rm -f conftest.s*
16674
16675 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16676 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16677 #
16678 # ac_d sets the value in "#define NAME VALUE" lines.
16679 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16680 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
16681 ac_dC='\3'
16682 ac_dD='%g'
16683 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16684 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16685 ac_uB='\([      ]\)%\1#\2define\3'
16686 ac_uC=' '
16687 ac_uD='\4%g'
16688 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16689 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16690 ac_eB='$%\1#\2define\3'
16691 ac_eC=' '
16692 ac_eD='%g'
16693
16694 if test "${CONFIG_HEADERS+set}" != set; then
16695 EOF
16696 cat >> $CONFIG_STATUS <<EOF
16697   CONFIG_HEADERS="config.h"
16698 EOF
16699 cat >> $CONFIG_STATUS <<\EOF
16700 fi
16701 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16702   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16703   case "$ac_file" in
16704   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16705        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16706   *) ac_file_in="${ac_file}.in" ;;
16707   esac
16708
16709   echo creating $ac_file
16710
16711   rm -f conftest.frag conftest.in conftest.out
16712   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16713   cat $ac_file_inputs > conftest.in
16714
16715 EOF
16716
16717 # Transform confdefs.h into a sed script conftest.vals that substitutes
16718 # the proper values into config.h.in to produce config.h.  And first:
16719 # Protect against being on the right side of a sed subst in config.status.
16720 # Protect against being in an unquoted here document in config.status.
16721 rm -f conftest.vals
16722 cat > conftest.hdr <<\EOF
16723 s/[\\&%]/\\&/g
16724 s%[\\$`]%\\&%g
16725 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16726 s%ac_d%ac_u%gp
16727 s%ac_u%ac_e%gp
16728 EOF
16729 sed -n -f conftest.hdr confdefs.h > conftest.vals
16730 rm -f conftest.hdr
16731
16732 # This sed command replaces #undef with comments.  This is necessary, for
16733 # example, in the case of _POSIX_SOURCE, which is predefined and required
16734 # on some systems where configure will not decide to define it.
16735 cat >> conftest.vals <<\EOF
16736 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16737 EOF
16738
16739 # Break up conftest.vals because some shells have a limit on
16740 # the size of here documents, and old seds have small limits too.
16741
16742 rm -f conftest.tail
16743 while :
16744 do
16745   ac_lines=`grep -c . conftest.vals`
16746   # grep -c gives empty output for an empty file on some AIX systems.
16747   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16748   # Write a limited-size here document to conftest.frag.
16749   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16750   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16751   echo 'CEOF
16752   sed -f conftest.frag conftest.in > conftest.out
16753   rm -f conftest.in
16754   mv conftest.out conftest.in
16755 ' >> $CONFIG_STATUS
16756   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16757   rm -f conftest.vals
16758   mv conftest.tail conftest.vals
16759 done
16760 rm -f conftest.vals
16761
16762 cat >> $CONFIG_STATUS <<\EOF
16763   rm -f conftest.frag conftest.h
16764   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
16765   cat conftest.in >> conftest.h
16766   rm -f conftest.in
16767   if cmp -s $ac_file conftest.h 2>/dev/null; then
16768     echo "$ac_file is unchanged"
16769     rm -f conftest.h
16770   else
16771     # Remove last slash and all that follows it.  Not all systems have dirname.
16772       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16773       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16774       # The file is in a subdirectory.
16775       test ! -d "$ac_dir" && mkdir "$ac_dir"
16776     fi
16777     rm -f $ac_file
16778     mv conftest.h $ac_file
16779   fi
16780 fi; done
16781
16782 EOF
16783
16784 cat >> $CONFIG_STATUS <<EOF
16785 ac_sources="$os_include_dir/bits/os_defines.h $CSTDIO_H $BASIC_FILE_H $BASIC_FILE_CC $CCODECVT_C $CLOCALE_H $CLOCALE_CC $toprel/gcc/gthr.h $toprel/gcc/gthr-single.h $toprel/gcc/gthr-$target_thread_file.h $os_include_dir/bits/ctype_base.h $os_include_dir/bits/ctype_inline.h $os_include_dir/bits/ctype_noninline.h $ATOMICITYH/bits/atomicity.h"
16786 ac_dests="include/bits/os_defines.h include/bits/c++io.h include/bits/basic_file_model.h src/basic_file.cc libio/c_codecvt.c include/bits/c++locale.h src/c++locale.cc include/bits/gthr.h-in include/bits/gthr-single.h-in include/bits/gthr-default.h-in \
16787 include/bits/ctype_base.h \
16788 include/bits/ctype_inline.h \
16789 include/bits/ctype_noninline.h include/bits/atomicity.h"
16790 EOF
16791
16792 cat >> $CONFIG_STATUS <<\EOF
16793 srcdir=$ac_given_srcdir
16794 while test -n "$ac_sources"; do
16795   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16796   set $ac_sources; ac_source=$1; shift; ac_sources=$*
16797
16798   echo "linking $srcdir/$ac_source to $ac_dest"
16799
16800   if test ! -r $srcdir/$ac_source; then
16801     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
16802   fi
16803   rm -f $ac_dest
16804
16805   # Make relative symlinks.
16806   # Remove last slash and all that follows it.  Not all systems have dirname.
16807   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
16808   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
16809     # The dest file is in a subdirectory.
16810     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
16811     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
16812     # A "../" for each directory in $ac_dest_dir_suffix.
16813     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
16814   else
16815     ac_dest_dir_suffix= ac_dots=
16816   fi
16817
16818   case "$srcdir" in
16819   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
16820   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
16821   esac
16822
16823   # Make a symlink if possible; otherwise try a hard link.
16824   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16825     ln $srcdir/$ac_source $ac_dest; then :
16826   else
16827     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
16828   fi
16829 done
16830 EOF
16831 cat >> $CONFIG_STATUS <<EOF
16832
16833
16834 srcdir=${srcdir}
16835 host=${host}
16836 target=${target}
16837 with_multisubdir=${with_multisubdir}
16838 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16839 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16840 glibcpp_basedir=${glibcpp_basedir}
16841 CC="${CC}"
16842 CXX="${CXX}"
16843
16844 EOF
16845 cat >> $CONFIG_STATUS <<\EOF
16846 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
16847 d=include/bits; a='[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]'
16848     rm -f $d/gthr.h $d/gthr-single.h $d/gthr-default.h
16849     sed '/^#/s/\('"$a$a"'*\)/_GLIBCPP_\1/g' <$d/gthr.h-in \
16850       | sed 's,"gthr-,"bits/gthr-,' >$d/gthr.h
16851     sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-single.h-in \
16852       | sed 's/\(GCC'"$a"'*_H\)/_GLIBCPP_\1/g' >$d/gthr-single.h
16853     sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-default.h-in \
16854       | sed 's/\(GCC'"$a"'*_H\)/_GLIBCPP_\1/g' \
16855       | sed 's/\('"$a"'*WEAK\)/_GLIBCPP_\1/g' >$d/gthr-default.h
16856 if test -n "$CONFIG_FILES"; then
16857   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
16858   grep '^MULTISUBDIR =' Makefile >> src/Makefile
16859   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
16860 fi
16861 chmod +x mkcheck
16862 chmod +x testsuite_flags
16863
16864 exit 0
16865 EOF
16866 chmod +x $CONFIG_STATUS
16867 rm -fr confdefs* $ac_clean_files
16868 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16869
16870
16871
16872 # Generate bits/c++config.h
16873 # NB: This must be the first generated file as others include it. . .
16874 $srcdir/mkc++config $blddir $srcdir
16875
16876 # Generate bits/std_limits.h and src/limitsMEMBERS.cc
16877 if test ! -f stamp-limits; then
16878   $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
16879   if test ! -f include/bits/std_limits.h; then
16880     echo "mknumeric_limits failed to execute properly: exiting"
16881     exit 1
16882   else
16883     touch stamp-limits 
16884   fi
16885 fi
16886
16887
16888 # Sanity checking & User-visible messages.
16889 # Checks down here, otherwise they get scrolled off before
16890 # the user will notice.
16891
16892 # Trying to get more people to read documentation.  Possibly remove
16893 # check and warn all the time. There is no "informational" AC_MSG_
16894 # macro, so these are going to be printed even when --quiet/--silent
16895 # is given.
16896 if test ! -f stamp-sanity-warned; then
16897   touch stamp-sanity-warned
16898   echo ""
16899   echo "Please make certain that you read the installation information here:"
16900   echo "  faster => ${srcdir}/docs/install.html"
16901   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
16902   echo ""
16903   echo "and the configuration information here:"
16904   echo "  faster => ${srcdir}/docs/configopts.html"
16905   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
16906   echo ""
16907   echo "before proceeding with ${_cv_gnu_make_command}."
16908   echo ""
16909 fi