OSDN Git Service

986cab9845666e7ab9f65322fa21c600aa20dcfa
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-target-subdir=SUBDIR
16                            configuring in a subdirectory"
17 ac_help="$ac_help
18   --with-cross-host=HOST  configuring with a cross compiler"
19 ac_help="$ac_help
20   --enable-multilib       build hella library versions (default)"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package. 
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package. 
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49   --enable-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"; then
3748
3749   # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
3750   # may not work correctly, because the compiler may not be able to
3751   # link executables.
3752   xcompiling=1
3753   NATIVE=no
3754
3755   # If Canadian cross, then don't pick up tools from the build
3756   # directory.
3757   if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3758     CANADIAN=yes
3759     NULL_TARGET=yes
3760   else
3761     CANADIAN=no
3762     NULL_TARGET=no
3763   fi
3764
3765   case "$target_alias" in
3766     *-linux*)
3767         # Construct linux crosses by hand, eliminating bits that need ld...
3768         # Check for available headers.
3769         for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3770         machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
3771         float.h inttypes.h
3772 do
3773 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3775 echo "configure:3776: checking for $ac_hdr" >&5
3776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3777   echo $ac_n "(cached) $ac_c" 1>&6
3778 else
3779   cat > conftest.$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3782 #include <$ac_hdr>
3783 EOF
3784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3785 { (eval echo configure:3786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3787 if test -z "$ac_err"; then
3788   rm -rf conftest*
3789   eval "ac_cv_header_$ac_safe=yes"
3790 else
3791   echo "$ac_err" >&5
3792   echo "configure: failed program was:" >&5
3793   cat conftest.$ac_ext >&5
3794   rm -rf conftest*
3795   eval "ac_cv_header_$ac_safe=no"
3796 fi
3797 rm -f conftest*
3798 fi
3799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3800   echo "$ac_t""yes" 1>&6
3801     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3802   cat >> confdefs.h <<EOF
3803 #define $ac_tr_hdr 1
3804 EOF
3805  
3806 else
3807   echo "$ac_t""no" 1>&6
3808 fi
3809 done
3810
3811
3812         # GLIBCPP_CHECK_COMPILER_FEATURES
3813         SECTION_FLAGS='-ffunction-sections -fdata-sections'
3814         
3815         
3816   # If we're not using GNU ld, then there's no point in even trying these
3817   # tests.  Check for that first.  We should have already tested for gld
3818   # by now (in libtool), but require it now just to be safe...
3819   SECTION_LDFLAGS=''
3820   OPT_LDFLAGS=''
3821   
3822
3823   # Set --gc-sections.
3824   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3825     # GNU ld it is!  Joy and bunny rabbits!
3826
3827     # All these tests are for C++; save the language and the compiler flags.
3828     # Need to do this so that g++ won't try to link in libstdc++
3829     ac_test_CFLAGS="${CFLAGS+set}"
3830     ac_save_CFLAGS="$CFLAGS"
3831     CFLAGS='-x c++  -Wl,--gc-sections'
3832
3833     # Check for -Wl,--gc-sections
3834     # XXX This test is broken at the moment, as symbols required for
3835     # linking are now in libsupc++ (not built yet.....). In addition, 
3836     # this test has cored on solaris in the past. In addition,
3837     # --gc-sections doesn't really work at the moment (keeps on discarding
3838     # used sections, first .eh_frame and now some of the glibc sections for
3839     # iconv). Bzzzzt. Thanks for playing, maybe next time.
3840     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3841 echo "configure:3842: checking for ld that supports -Wl,--gc-sections" >&5
3842     if test "$cross_compiling" = yes; then
3843   ac_sectionLDflags=yes
3844 else
3845   cat > conftest.$ac_ext <<EOF
3846 #line 3847 "configure"
3847 #include "confdefs.h"
3848
3849      int main(void) 
3850      {
3851        try { throw 1; }
3852        catch (...) { };
3853        return 0;
3854      }
3855     
3856 EOF
3857 if { (eval echo configure:3858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3858 then
3859   ac_sectionLDflags=yes
3860 else
3861   echo "configure: failed program was:" >&5
3862   cat conftest.$ac_ext >&5
3863   rm -fr conftest*
3864   ac_sectionLFflags=no
3865 fi
3866 rm -fr conftest*
3867 fi
3868
3869     if test "$ac_test_CFLAGS" = set; then
3870       CFLAGS="$ac_save_CFLAGS"
3871     else
3872       # this is the suspicious part
3873       CFLAGS=''
3874     fi
3875     if test "$ac_sectionLDflags" = "yes"; then
3876       SECTION_LDFLAGS='-Wl,--gc-sections'
3877     fi
3878     echo "$ac_t""$ac_sectionLDflags" 1>&6
3879   fi
3880
3881   # Set linker optimization flags.
3882   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
3883      test x"$enable_debug" = x"no"; then
3884     OPT_LDFLAGS='-Wl,-O1'
3885   fi
3886
3887   
3888   
3889
3890         # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3891         # GLIBCPP_CHECK_MATH_SUPPORT
3892         cat >> confdefs.h <<\EOF
3893 #define HAVE_ACOSF 1
3894 EOF
3895
3896         cat >> confdefs.h <<\EOF
3897 #define HAVE_ASINF 1
3898 EOF
3899
3900         cat >> confdefs.h <<\EOF
3901 #define HAVE_ATAN2F 1
3902 EOF
3903
3904         cat >> confdefs.h <<\EOF
3905 #define HAVE_ATANF 1
3906 EOF
3907
3908         cat >> confdefs.h <<\EOF
3909 #define HAVE_CEILF 1
3910 EOF
3911
3912         cat >> confdefs.h <<\EOF
3913 #define HAVE_COPYSIGN 1
3914 EOF
3915
3916         cat >> confdefs.h <<\EOF
3917 #define HAVE_COPYSIGNF 1
3918 EOF
3919
3920         cat >> confdefs.h <<\EOF
3921 #define HAVE_COSF 1
3922 EOF
3923
3924         cat >> confdefs.h <<\EOF
3925 #define HAVE_COSHF 1
3926 EOF
3927
3928         cat >> confdefs.h <<\EOF
3929 #define HAVE_EXPF 1
3930 EOF
3931
3932         cat >> confdefs.h <<\EOF
3933 #define HAVE_FABSF 1
3934 EOF
3935
3936         cat >> confdefs.h <<\EOF
3937 #define HAVE_FINITE 1
3938 EOF
3939
3940         cat >> confdefs.h <<\EOF
3941 #define HAVE_FINITEF 1
3942 EOF
3943
3944         cat >> confdefs.h <<\EOF
3945 #define HAVE_FLOORF 1
3946 EOF
3947
3948         cat >> confdefs.h <<\EOF
3949 #define HAVE_FMODF 1
3950 EOF
3951
3952         cat >> confdefs.h <<\EOF
3953 #define HAVE_FREXPF 1
3954 EOF
3955
3956         cat >> confdefs.h <<\EOF
3957 #define HAVE_ISINF 1
3958 EOF
3959
3960         cat >> confdefs.h <<\EOF
3961 #define HAVE_ISINFF 1
3962 EOF
3963
3964         cat >> confdefs.h <<\EOF
3965 #define HAVE_ISNAN 1
3966 EOF
3967
3968         cat >> confdefs.h <<\EOF
3969 #define HAVE_ISNANF 1
3970 EOF
3971
3972         cat >> confdefs.h <<\EOF
3973 #define HAVE_LDEXPF 1
3974 EOF
3975
3976         cat >> confdefs.h <<\EOF
3977 #define HAVE_LOG10F 1
3978 EOF
3979
3980         cat >> confdefs.h <<\EOF
3981 #define HAVE_LOGF 1
3982 EOF
3983
3984         cat >> confdefs.h <<\EOF
3985 #define HAVE_MODFF 1
3986 EOF
3987
3988         cat >> confdefs.h <<\EOF
3989 #define HAVE_POWF 1
3990 EOF
3991
3992         cat >> confdefs.h <<\EOF
3993 #define HAVE_SINCOS 1
3994 EOF
3995
3996         cat >> confdefs.h <<\EOF
3997 #define HAVE_SINCOSF 1
3998 EOF
3999
4000         cat >> confdefs.h <<\EOF
4001 #define HAVE_SINF 1
4002 EOF
4003
4004         cat >> confdefs.h <<\EOF
4005 #define HAVE_SINHF 1
4006 EOF
4007
4008         cat >> confdefs.h <<\EOF
4009 #define HAVE_SQRTF 1
4010 EOF
4011
4012         cat >> confdefs.h <<\EOF
4013 #define HAVE_TANF 1
4014 EOF
4015
4016         cat >> confdefs.h <<\EOF
4017 #define HAVE_TANHF 1
4018 EOF
4019
4020
4021         # At some point, we should differentiate between architectures
4022         # like x86, which have long double versions, and alpha/powerpc/etc.,
4023         # which don't. For the time being, punt.
4024         if test x"long_double_math_on_this_cpu" = x"yes"; then
4025           cat >> confdefs.h <<\EOF
4026 #define HAVE_ACOSL 1
4027 EOF
4028
4029           cat >> confdefs.h <<\EOF
4030 #define HAVE_ASINL 1
4031 EOF
4032
4033           cat >> confdefs.h <<\EOF
4034 #define HAVE_ATAN2L 1
4035 EOF
4036
4037           cat >> confdefs.h <<\EOF
4038 #define HAVE_ATANL 1
4039 EOF
4040
4041           cat >> confdefs.h <<\EOF
4042 #define HAVE_CEILL 1
4043 EOF
4044
4045           cat >> confdefs.h <<\EOF
4046 #define HAVE_COPYSIGNL 1
4047 EOF
4048
4049           cat >> confdefs.h <<\EOF
4050 #define HAVE_COSL 1
4051 EOF
4052
4053           cat >> confdefs.h <<\EOF
4054 #define HAVE_COSHL 1
4055 EOF
4056
4057           cat >> confdefs.h <<\EOF
4058 #define HAVE_EXPL 1
4059 EOF
4060
4061           cat >> confdefs.h <<\EOF
4062 #define HAVE_FABSL 1
4063 EOF
4064
4065           cat >> confdefs.h <<\EOF
4066 #define HAVE_FINITEL 1
4067 EOF
4068
4069           cat >> confdefs.h <<\EOF
4070 #define HAVE_FLOORL 1
4071 EOF
4072
4073           cat >> confdefs.h <<\EOF
4074 #define HAVE_FMODL 1
4075 EOF
4076
4077           cat >> confdefs.h <<\EOF
4078 #define HAVE_FREXPL 1
4079 EOF
4080
4081           cat >> confdefs.h <<\EOF
4082 #define HAVE_ISINFL 1
4083 EOF
4084
4085           cat >> confdefs.h <<\EOF
4086 #define HAVE_ISNANL 1
4087 EOF
4088
4089           cat >> confdefs.h <<\EOF
4090 #define HAVE_LDEXPL 1
4091 EOF
4092
4093           cat >> confdefs.h <<\EOF
4094 #define HAVE_LOG10L 1
4095 EOF
4096
4097           cat >> confdefs.h <<\EOF
4098 #define HAVE_LOGL 1
4099 EOF
4100
4101           cat >> confdefs.h <<\EOF
4102 #define HAVE_MODFL 1
4103 EOF
4104
4105           cat >> confdefs.h <<\EOF
4106 #define HAVE_POWL 1
4107 EOF
4108
4109           cat >> confdefs.h <<\EOF
4110 #define HAVE_SINCOSL 1
4111 EOF
4112
4113           cat >> confdefs.h <<\EOF
4114 #define HAVE_SINL 1
4115 EOF
4116
4117           cat >> confdefs.h <<\EOF
4118 #define HAVE_SINHL 1
4119 EOF
4120
4121           cat >> confdefs.h <<\EOF
4122 #define HAVE_SQRTL 1
4123 EOF
4124
4125           cat >> confdefs.h <<\EOF
4126 #define HAVE_TANL 1
4127 EOF
4128
4129           cat >> confdefs.h <<\EOF
4130 #define HAVE_TANHL 1
4131 EOF
4132
4133         fi
4134         
4135     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4136 echo "configure:4137: checking for main in -lm" >&5
4137 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4139   echo $ac_n "(cached) $ac_c" 1>&6
4140 else
4141   ac_save_LIBS="$LIBS"
4142 LIBS="-lm  $LIBS"
4143 cat > conftest.$ac_ext <<EOF
4144 #line 4145 "configure"
4145 #include "confdefs.h"
4146
4147 int main() {
4148 main()
4149 ; return 0; }
4150 EOF
4151 if { (eval echo configure:4152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4152   rm -rf conftest*
4153   eval "ac_cv_lib_$ac_lib_var=yes"
4154 else
4155   echo "configure: failed program was:" >&5
4156   cat conftest.$ac_ext >&5
4157   rm -rf conftest*
4158   eval "ac_cv_lib_$ac_lib_var=no"
4159 fi
4160 rm -f conftest*
4161 LIBS="$ac_save_LIBS"
4162
4163 fi
4164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4165   echo "$ac_t""yes" 1>&6
4166     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4167     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4168   cat >> confdefs.h <<EOF
4169 #define $ac_tr_lib 1
4170 EOF
4171
4172   LIBS="-lm $LIBS"
4173
4174 else
4175   echo "$ac_t""no" 1>&6
4176 fi
4177
4178   for ac_func in nan hypot hypotf atan2f expf copysignf
4179 do
4180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4181 echo "configure:4182: checking for $ac_func" >&5
4182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4183   echo $ac_n "(cached) $ac_c" 1>&6
4184 else
4185   cat > conftest.$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4188 /* System header to define __stub macros and hopefully few prototypes,
4189     which can conflict with char $ac_func(); below.  */
4190 #include <assert.h>
4191 /* Override any gcc2 internal prototype to avoid an error.  */
4192 /* We use char because int might match the return type of a gcc2
4193     builtin and then its argument prototype would still apply.  */
4194 char $ac_func();
4195
4196 int main() {
4197
4198 /* The GNU C library defines this for functions which it implements
4199     to always fail with ENOSYS.  Some functions are actually named
4200     something starting with __ and the normal name is an alias.  */
4201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4202 choke me
4203 #else
4204 $ac_func();
4205 #endif
4206
4207 ; return 0; }
4208 EOF
4209 if { (eval echo configure:4210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4210   rm -rf conftest*
4211   eval "ac_cv_func_$ac_func=yes"
4212 else
4213   echo "configure: failed program was:" >&5
4214   cat conftest.$ac_ext >&5
4215   rm -rf conftest*
4216   eval "ac_cv_func_$ac_func=no"
4217 fi
4218 rm -f conftest*
4219 fi
4220
4221 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4222   echo "$ac_t""yes" 1>&6
4223     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4224   cat >> confdefs.h <<EOF
4225 #define $ac_tr_func 1
4226 EOF
4227  
4228 else
4229   echo "$ac_t""no" 1>&6
4230 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4231 fi
4232 done
4233
4234
4235
4236           USE_COMPLEX_LONG_DOUBLE=no
4237   if test x$ac_cv_func_atan2l = x"yes" &&
4238      test x$ac_cv_func_copysignl = x"yes"; then
4239     USE_COMPLEX_LONG_DOUBLE=yes
4240     for ac_func in hypotl signbitl
4241 do
4242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4243 echo "configure:4244: checking for $ac_func" >&5
4244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4245   echo $ac_n "(cached) $ac_c" 1>&6
4246 else
4247   cat > conftest.$ac_ext <<EOF
4248 #line 4249 "configure"
4249 #include "confdefs.h"
4250 /* System header to define __stub macros and hopefully few prototypes,
4251     which can conflict with char $ac_func(); below.  */
4252 #include <assert.h>
4253 /* Override any gcc2 internal prototype to avoid an error.  */
4254 /* We use char because int might match the return type of a gcc2
4255     builtin and then its argument prototype would still apply.  */
4256 char $ac_func();
4257
4258 int main() {
4259
4260 /* The GNU C library defines this for functions which it implements
4261     to always fail with ENOSYS.  Some functions are actually named
4262     something starting with __ and the normal name is an alias.  */
4263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4264 choke me
4265 #else
4266 $ac_func();
4267 #endif
4268
4269 ; return 0; }
4270 EOF
4271 if { (eval echo configure:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4272   rm -rf conftest*
4273   eval "ac_cv_func_$ac_func=yes"
4274 else
4275   echo "configure: failed program was:" >&5
4276   cat conftest.$ac_ext >&5
4277   rm -rf conftest*
4278   eval "ac_cv_func_$ac_func=no"
4279 fi
4280 rm -f conftest*
4281 fi
4282
4283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4284   echo "$ac_t""yes" 1>&6
4285     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4286   cat >> confdefs.h <<EOF
4287 #define $ac_tr_func 1
4288 EOF
4289  
4290 else
4291   echo "$ac_t""no" 1>&6
4292 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4293 fi
4294 done
4295
4296
4297   fi
4298
4299   
4300
4301         
4302
4303       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4304 echo "configure:4305: checking for mbstate_t" >&5
4305   cat > conftest.$ac_ext <<EOF
4306 #line 4307 "configure"
4307 #include "confdefs.h"
4308 #include <wchar.h>
4309 int main() {
4310 mbstate_t teststate;
4311 ; return 0; }
4312 EOF
4313 if { (eval echo configure:4314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4314   rm -rf conftest*
4315   have_mbstate_t=yes
4316 else
4317   echo "configure: failed program was:" >&5
4318   cat conftest.$ac_ext >&5
4319   rm -rf conftest*
4320   have_mbstate_t=no
4321 fi
4322 rm -f conftest*
4323   echo "$ac_t""$have_mbstate_t" 1>&6
4324   if test x"$have_mbstate_t" = xyes; then
4325     cat >> confdefs.h <<\EOF
4326 #define HAVE_MBSTATE_T 1
4327 EOF
4328
4329   fi
4330
4331     for ac_hdr in wchar.h
4332 do
4333 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4334 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4335 echo "configure:4336: checking for $ac_hdr" >&5
4336 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4337   echo $ac_n "(cached) $ac_c" 1>&6
4338 else
4339   cat > conftest.$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4342 #include <$ac_hdr>
4343 EOF
4344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4345 { (eval echo configure:4346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4347 if test -z "$ac_err"; then
4348   rm -rf conftest*
4349   eval "ac_cv_header_$ac_safe=yes"
4350 else
4351   echo "$ac_err" >&5
4352   echo "configure: failed program was:" >&5
4353   cat conftest.$ac_ext >&5
4354   rm -rf conftest*
4355   eval "ac_cv_header_$ac_safe=no"
4356 fi
4357 rm -f conftest*
4358 fi
4359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4360   echo "$ac_t""yes" 1>&6
4361     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4362   cat >> confdefs.h <<EOF
4363 #define $ac_tr_hdr 1
4364 EOF
4365  ac_has_wchar_h=yes
4366 else
4367   echo "$ac_t""no" 1>&6
4368 ac_has_wchar_h=no
4369 fi
4370 done
4371
4372   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4373 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4374 echo "configure:4375: checking for wctype.h" >&5
4375 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4376   echo $ac_n "(cached) $ac_c" 1>&6
4377 else
4378   cat > conftest.$ac_ext <<EOF
4379 #line 4380 "configure"
4380 #include "confdefs.h"
4381 #include <wctype.h>
4382 EOF
4383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4384 { (eval echo configure:4385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4386 if test -z "$ac_err"; then
4387   rm -rf conftest*
4388   eval "ac_cv_header_$ac_safe=yes"
4389 else
4390   echo "$ac_err" >&5
4391   echo "configure: failed program was:" >&5
4392   cat conftest.$ac_ext >&5
4393   rm -rf conftest*
4394   eval "ac_cv_header_$ac_safe=no"
4395 fi
4396 rm -f conftest*
4397 fi
4398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4399   echo "$ac_t""yes" 1>&6
4400   ac_has_wctype_h=yes
4401 else
4402   echo "$ac_t""no" 1>&6
4403 ac_has_wctype_h=no
4404 fi
4405
4406   
4407     if test x"$ac_has_wchar_h" = xyes &&
4408      test x"$ac_has_wctype_h" = xyes &&
4409      test x"$enable_c_mbchar" != xno; then
4410       
4411             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4412 echo "configure:4413: checking for WCHAR_MIN and WCHAR_MAX" >&5
4413     cat > conftest.$ac_ext <<EOF
4414 #line 4415 "configure"
4415 #include "confdefs.h"
4416 #include <wchar.h>
4417 int main() {
4418 int i = WCHAR_MIN; int j = WCHAR_MAX;
4419 ; return 0; }
4420 EOF
4421 if { (eval echo configure:4422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4422   rm -rf conftest*
4423   has_wchar_minmax=yes
4424 else
4425   echo "configure: failed program was:" >&5
4426   cat conftest.$ac_ext >&5
4427   rm -rf conftest*
4428   has_wchar_minmax=no
4429 fi
4430 rm -f conftest*
4431     echo "$ac_t""$has_wchar_minmax" 1>&6
4432     
4433             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4434 echo "configure:4435: checking for WEOF" >&5
4435     cat > conftest.$ac_ext <<EOF
4436 #line 4437 "configure"
4437 #include "confdefs.h"
4438
4439       #include <wchar.h>
4440       #include <stddef.h>
4441 int main() {
4442 wint_t i = WEOF;
4443 ; return 0; }
4444 EOF
4445 if { (eval echo configure:4446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4446   rm -rf conftest*
4447   has_weof=yes
4448 else
4449   echo "configure: failed program was:" >&5
4450   cat conftest.$ac_ext >&5
4451   rm -rf conftest*
4452   has_weof=no
4453 fi
4454 rm -f conftest*
4455     echo "$ac_t""$has_weof" 1>&6
4456   
4457         ac_wfuncs=yes
4458     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4459 do
4460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4461 echo "configure:4462: checking for $ac_func" >&5
4462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4463   echo $ac_n "(cached) $ac_c" 1>&6
4464 else
4465   cat > conftest.$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4468 /* System header to define __stub macros and hopefully few prototypes,
4469     which can conflict with char $ac_func(); below.  */
4470 #include <assert.h>
4471 /* Override any gcc2 internal prototype to avoid an error.  */
4472 /* We use char because int might match the return type of a gcc2
4473     builtin and then its argument prototype would still apply.  */
4474 char $ac_func();
4475
4476 int main() {
4477
4478 /* The GNU C library defines this for functions which it implements
4479     to always fail with ENOSYS.  Some functions are actually named
4480     something starting with __ and the normal name is an alias.  */
4481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4482 choke me
4483 #else
4484 $ac_func();
4485 #endif
4486
4487 ; return 0; }
4488 EOF
4489 if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4490   rm -rf conftest*
4491   eval "ac_cv_func_$ac_func=yes"
4492 else
4493   echo "configure: failed program was:" >&5
4494   cat conftest.$ac_ext >&5
4495   rm -rf conftest*
4496   eval "ac_cv_func_$ac_func=no"
4497 fi
4498 rm -f conftest*
4499 fi
4500
4501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4502   echo "$ac_t""yes" 1>&6
4503     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4504   cat >> confdefs.h <<EOF
4505 #define $ac_tr_func 1
4506 EOF
4507  
4508 else
4509   echo "$ac_t""no" 1>&6
4510 \
4511     ac_wfuncs=no
4512 fi
4513 done
4514
4515   
4516         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4517     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4518     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4519     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4520     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4521     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4522 do
4523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4524 echo "configure:4525: checking for $ac_func" >&5
4525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4526   echo $ac_n "(cached) $ac_c" 1>&6
4527 else
4528   cat > conftest.$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4531 /* System header to define __stub macros and hopefully few prototypes,
4532     which can conflict with char $ac_func(); below.  */
4533 #include <assert.h>
4534 /* Override any gcc2 internal prototype to avoid an error.  */
4535 /* We use char because int might match the return type of a gcc2
4536     builtin and then its argument prototype would still apply.  */
4537 char $ac_func();
4538
4539 int main() {
4540
4541 /* The GNU C library defines this for functions which it implements
4542     to always fail with ENOSYS.  Some functions are actually named
4543     something starting with __ and the normal name is an alias.  */
4544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4545 choke me
4546 #else
4547 $ac_func();
4548 #endif
4549
4550 ; return 0; }
4551 EOF
4552 if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4553   rm -rf conftest*
4554   eval "ac_cv_func_$ac_func=yes"
4555 else
4556   echo "configure: failed program was:" >&5
4557   cat conftest.$ac_ext >&5
4558   rm -rf conftest*
4559   eval "ac_cv_func_$ac_func=no"
4560 fi
4561 rm -f conftest*
4562 fi
4563
4564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4565   echo "$ac_t""yes" 1>&6
4566     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4567   cat >> confdefs.h <<EOF
4568 #define $ac_tr_func 1
4569 EOF
4570  
4571 else
4572   echo "$ac_t""no" 1>&6
4573 \
4574     ac_wfuncs=no
4575 fi
4576 done
4577
4578
4579     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4580 echo "configure:4581: checking for ISO C99 wchar_t support" >&5
4581     if test x"$has_weof" = xyes &&
4582        test x"$has_wchar_minmax" = xyes &&
4583        test x"$ac_wfuncs" = xyes; then
4584       ac_isoC99_wchar_t=yes
4585     else
4586       ac_isoC99_wchar_t=no
4587     fi
4588     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4589   
4590             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4591 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4592 echo "configure:4593: checking for iconv.h" >&5
4593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4594   echo $ac_n "(cached) $ac_c" 1>&6
4595 else
4596   cat > conftest.$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4599 #include <iconv.h>
4600 EOF
4601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4602 { (eval echo configure:4603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4604 if test -z "$ac_err"; then
4605   rm -rf conftest*
4606   eval "ac_cv_header_$ac_safe=yes"
4607 else
4608   echo "$ac_err" >&5
4609   echo "configure: failed program was:" >&5
4610   cat conftest.$ac_ext >&5
4611   rm -rf conftest*
4612   eval "ac_cv_header_$ac_safe=no"
4613 fi
4614 rm -f conftest*
4615 fi
4616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4617   echo "$ac_t""yes" 1>&6
4618   ac_has_iconv_h=yes
4619 else
4620   echo "$ac_t""no" 1>&6
4621 ac_has_iconv_h=no
4622 fi
4623
4624     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4625 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4626 echo "configure:4627: checking for langinfo.h" >&5
4627 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4628   echo $ac_n "(cached) $ac_c" 1>&6
4629 else
4630   cat > conftest.$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4633 #include <langinfo.h>
4634 EOF
4635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4636 { (eval echo configure:4637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4638 if test -z "$ac_err"; then
4639   rm -rf conftest*
4640   eval "ac_cv_header_$ac_safe=yes"
4641 else
4642   echo "$ac_err" >&5
4643   echo "configure: failed program was:" >&5
4644   cat conftest.$ac_ext >&5
4645   rm -rf conftest*
4646   eval "ac_cv_header_$ac_safe=no"
4647 fi
4648 rm -f conftest*
4649 fi
4650 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4651   echo "$ac_t""yes" 1>&6
4652   ac_has_langinfo_h=yes
4653 else
4654   echo "$ac_t""no" 1>&6
4655 ac_has_langinfo_h=no
4656 fi
4657
4658
4659         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4660 echo "configure:4661: checking for iconv in -liconv" >&5
4661 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4662 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4663   echo $ac_n "(cached) $ac_c" 1>&6
4664 else
4665   ac_save_LIBS="$LIBS"
4666 LIBS="-liconv  $LIBS"
4667 cat > conftest.$ac_ext <<EOF
4668 #line 4669 "configure"
4669 #include "confdefs.h"
4670 /* Override any gcc2 internal prototype to avoid an error.  */
4671 /* We use char because int might match the return type of a gcc2
4672     builtin and then its argument prototype would still apply.  */
4673 char iconv();
4674
4675 int main() {
4676 iconv()
4677 ; return 0; }
4678 EOF
4679 if { (eval echo configure:4680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4680   rm -rf conftest*
4681   eval "ac_cv_lib_$ac_lib_var=yes"
4682 else
4683   echo "configure: failed program was:" >&5
4684   cat conftest.$ac_ext >&5
4685   rm -rf conftest*
4686   eval "ac_cv_lib_$ac_lib_var=no"
4687 fi
4688 rm -f conftest*
4689 LIBS="$ac_save_LIBS"
4690
4691 fi
4692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4693   echo "$ac_t""yes" 1>&6
4694   libiconv="-liconv"
4695 else
4696   echo "$ac_t""no" 1>&6
4697 fi
4698
4699     ac_save_LIBS="$LIBS"
4700     LIBS="$LIBS $libiconv"
4701
4702     for ac_func in iconv_open iconv_close iconv nl_langinfo
4703 do
4704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4705 echo "configure:4706: checking for $ac_func" >&5
4706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4707   echo $ac_n "(cached) $ac_c" 1>&6
4708 else
4709   cat > conftest.$ac_ext <<EOF
4710 #line 4711 "configure"
4711 #include "confdefs.h"
4712 /* System header to define __stub macros and hopefully few prototypes,
4713     which can conflict with char $ac_func(); below.  */
4714 #include <assert.h>
4715 /* Override any gcc2 internal prototype to avoid an error.  */
4716 /* We use char because int might match the return type of a gcc2
4717     builtin and then its argument prototype would still apply.  */
4718 char $ac_func();
4719
4720 int main() {
4721
4722 /* The GNU C library defines this for functions which it implements
4723     to always fail with ENOSYS.  Some functions are actually named
4724     something starting with __ and the normal name is an alias.  */
4725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4726 choke me
4727 #else
4728 $ac_func();
4729 #endif
4730
4731 ; return 0; }
4732 EOF
4733 if { (eval echo configure:4734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4734   rm -rf conftest*
4735   eval "ac_cv_func_$ac_func=yes"
4736 else
4737   echo "configure: failed program was:" >&5
4738   cat conftest.$ac_ext >&5
4739   rm -rf conftest*
4740   eval "ac_cv_func_$ac_func=no"
4741 fi
4742 rm -f conftest*
4743 fi
4744
4745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4746   echo "$ac_t""yes" 1>&6
4747     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4748   cat >> confdefs.h <<EOF
4749 #define $ac_tr_func 1
4750 EOF
4751  \
4752     ac_XPG2funcs=yes
4753 else
4754   echo "$ac_t""no" 1>&6
4755 ac_XPG2funcs=no
4756 fi
4757 done
4758
4759   
4760     LIBS="$ac_save_LIBS"
4761
4762     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4763 echo "configure:4764: checking for XPG2 wchar_t support" >&5
4764     if test x"$ac_has_iconv_h" = xyes &&
4765        test x"$ac_has_langinfo_h" = xyes &&
4766        test x"$ac_XPG2funcs" = xyes; then
4767       ac_XPG2_wchar_t=yes
4768     else
4769       ac_XPG2_wchar_t=no
4770     fi
4771     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4772   
4773             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4774 echo "configure:4775: checking for enabled wchar_t specializations" >&5
4775     if test x"$ac_isoC99_wchar_t" = xyes &&
4776        test x"$ac_XPG2_wchar_t" = xyes; then
4777       cat >> confdefs.h <<\EOF
4778 #define _GLIBCPP_USE_WCHAR_T 1
4779 EOF
4780
4781       echo "$ac_t"""yes"" 1>&6
4782     else
4783       echo "$ac_t"""no"" 1>&6
4784     fi
4785   else
4786         echo "configure: warning: wchar_t support disabled." 1>&2
4787   fi
4788
4789         os_include_dir="config/os/gnu-linux"
4790         # GLIBCPP_CHECK_STDLIB_SUPPORT
4791         cat >> confdefs.h <<\EOF
4792 #define HAVE_STRTOF 1
4793 EOF
4794         
4795         cat >> confdefs.h <<\EOF
4796 #define HAVE_STRTOLD 1
4797 EOF
4798         
4799         # AC_FUNC_MMAP
4800         cat >> confdefs.h <<\EOF
4801 #define HAVE_MMAP 1
4802 EOF
4803
4804         ;;
4805     *)
4806         # We assume newlib.  This lets us hard-code the functions we know
4807         # we'll have.
4808         cat >> confdefs.h <<\EOF
4809 #define HAVE_FINITE 1
4810 EOF
4811
4812         cat >> confdefs.h <<\EOF
4813 #define HAVE_ISNAN 1
4814 EOF
4815
4816         cat >> confdefs.h <<\EOF
4817 #define HAVE_ISNANF 1
4818 EOF
4819
4820         cat >> confdefs.h <<\EOF
4821 #define HAVE_ISINF 1
4822 EOF
4823
4824         cat >> confdefs.h <<\EOF
4825 #define HAVE_ISINFF 1
4826 EOF
4827
4828
4829         os_include_dir="config/os/newlib"
4830
4831         # need to check for faster f versions of math functions, ie sinf?
4832         ;;
4833   esac
4834 else
4835
4836   # We are being configured natively. We can do more elaborate tests
4837   # that include AC_TRY_COMPILE now, as the linker is assumed to be
4838   # working.
4839   xcompiling=0
4840   NATIVE=yes
4841   CANADIAN=no
4842   NULL_TARGET=no
4843
4844   # Check for available headers.
4845   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
4846   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
4847 do
4848 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4849 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4850 echo "configure:4851: checking for $ac_hdr" >&5
4851 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4852   echo $ac_n "(cached) $ac_c" 1>&6
4853 else
4854   cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4857 #include <$ac_hdr>
4858 EOF
4859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4860 { (eval echo configure:4861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4862 if test -z "$ac_err"; then
4863   rm -rf conftest*
4864   eval "ac_cv_header_$ac_safe=yes"
4865 else
4866   echo "$ac_err" >&5
4867   echo "configure: failed program was:" >&5
4868   cat conftest.$ac_ext >&5
4869   rm -rf conftest*
4870   eval "ac_cv_header_$ac_safe=no"
4871 fi
4872 rm -f conftest*
4873 fi
4874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4875   echo "$ac_t""yes" 1>&6
4876     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4877   cat >> confdefs.h <<EOF
4878 #define $ac_tr_hdr 1
4879 EOF
4880  
4881 else
4882   echo "$ac_t""no" 1>&6
4883 fi
4884 done
4885
4886
4887   
4888   # All these tests are for C++; save the language and the compiler flags.
4889   # The CXXFLAGS thing is suspicious, but based on similar bits previously
4890   # found in GLIBCPP_CONFIGURE.
4891   
4892   ac_ext=C
4893 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4894 ac_cpp='$CXXCPP $CPPFLAGS'
4895 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4896 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4897 cross_compiling=$ac_cv_prog_cxx_cross
4898
4899   ac_test_CXXFLAGS="${CXXFLAGS+set}"
4900   ac_save_CXXFLAGS="$CXXFLAGS"
4901
4902   # Check for maintainer-mode bits.
4903   if test x"$USE_MAINTAINER_MODE" = xno; then
4904     WERROR=''
4905   else
4906     WERROR='-Werror'
4907   fi
4908
4909   # Check for -ffunction-sections -fdata-sections
4910   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
4911 echo "configure:4912: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
4912   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
4913   cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4916
4917 int main() {
4918 int foo;
4919   
4920 ; return 0; }
4921 EOF
4922 if { (eval echo configure:4923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4923   rm -rf conftest*
4924   ac_fdsections=yes
4925 else
4926   echo "configure: failed program was:" >&5
4927   cat conftest.$ac_ext >&5
4928   rm -rf conftest*
4929   ac_fdsections=no
4930 fi
4931 rm -f conftest*
4932   if test "$ac_test_CXXFLAGS" = set; then
4933     CXXFLAGS="$ac_save_CXXFLAGS"
4934   else
4935     # this is the suspicious part
4936     CXXFLAGS=''
4937   fi
4938   if test x"$ac_fdsections" = x"yes" &&
4939      test x"$enable_debug" = x"no"; then
4940     SECTION_FLAGS='-ffunction-sections -fdata-sections'
4941   fi
4942   echo "$ac_t""$ac_fdsections" 1>&6
4943
4944   ac_ext=c
4945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4946 ac_cpp='$CPP $CPPFLAGS'
4947 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4948 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4949 cross_compiling=$ac_cv_prog_cc_cross
4950
4951   
4952   
4953
4954   
4955   # If we're not using GNU ld, then there's no point in even trying these
4956   # tests.  Check for that first.  We should have already tested for gld
4957   # by now (in libtool), but require it now just to be safe...
4958   SECTION_LDFLAGS=''
4959   OPT_LDFLAGS=''
4960   
4961
4962   # Set --gc-sections.
4963   if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4964     # GNU ld it is!  Joy and bunny rabbits!
4965
4966     # All these tests are for C++; save the language and the compiler flags.
4967     # Need to do this so that g++ won't try to link in libstdc++
4968     ac_test_CFLAGS="${CFLAGS+set}"
4969     ac_save_CFLAGS="$CFLAGS"
4970     CFLAGS='-x c++  -Wl,--gc-sections'
4971
4972     # Check for -Wl,--gc-sections
4973     # XXX This test is broken at the moment, as symbols required for
4974     # linking are now in libsupc++ (not built yet.....). In addition, 
4975     # this test has cored on solaris in the past. In addition,
4976     # --gc-sections doesn't really work at the moment (keeps on discarding
4977     # used sections, first .eh_frame and now some of the glibc sections for
4978     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4979     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4980 echo "configure:4981: checking for ld that supports -Wl,--gc-sections" >&5
4981     if test "$cross_compiling" = yes; then
4982   ac_sectionLDflags=yes
4983 else
4984   cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4987
4988      int main(void) 
4989      {
4990        try { throw 1; }
4991        catch (...) { };
4992        return 0;
4993      }
4994     
4995 EOF
4996 if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4997 then
4998   ac_sectionLDflags=yes
4999 else
5000   echo "configure: failed program was:" >&5
5001   cat conftest.$ac_ext >&5
5002   rm -fr conftest*
5003   ac_sectionLFflags=no
5004 fi
5005 rm -fr conftest*
5006 fi
5007
5008     if test "$ac_test_CFLAGS" = set; then
5009       CFLAGS="$ac_save_CFLAGS"
5010     else
5011       # this is the suspicious part
5012       CFLAGS=''
5013     fi
5014     if test "$ac_sectionLDflags" = "yes"; then
5015       SECTION_LDFLAGS='-Wl,--gc-sections'
5016     fi
5017     echo "$ac_t""$ac_sectionLDflags" 1>&6
5018   fi
5019
5020   # Set linker optimization flags.
5021   if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5022      test x"$enable_debug" = x"no"; then
5023     OPT_LDFLAGS='-Wl,-O1'
5024   fi
5025
5026   
5027   
5028
5029   
5030       
5031   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5032 echo "configure:5033: checking for __builtin_abs declaration" >&5
5033   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5034     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5035   echo $ac_n "(cached) $ac_c" 1>&6
5036 else
5037   
5038       
5039       ac_ext=C
5040 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5041 ac_cpp='$CXXCPP $CPPFLAGS'
5042 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5043 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5044 cross_compiling=$ac_cv_prog_cxx_cross
5045
5046       cat > conftest.$ac_ext <<EOF
5047 #line 5048 "configure"
5048 #include "confdefs.h"
5049 #include <math.h>
5050 int main() {
5051  __builtin_abs(0);
5052 ; return 0; }
5053 EOF
5054 if { (eval echo configure:5055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5055   rm -rf conftest*
5056   glibcpp_cv_func___builtin_abs_use=yes
5057 else
5058   echo "configure: failed program was:" >&5
5059   cat conftest.$ac_ext >&5
5060   rm -rf conftest*
5061   glibcpp_cv_func___builtin_abs_use=no
5062 fi
5063 rm -f conftest*
5064       ac_ext=c
5065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5069 cross_compiling=$ac_cv_prog_cc_cross
5070
5071     
5072 fi
5073
5074   fi
5075   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5076   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5077     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5078 echo "configure:5079: checking for __builtin_abs linkage" >&5
5079     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5080       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5081   echo $ac_n "(cached) $ac_c" 1>&6
5082 else
5083   
5084         cat > conftest.$ac_ext <<EOF
5085 #line 5086 "configure"
5086 #include "confdefs.h"
5087 #include <math.h>
5088 int main() {
5089  __builtin_abs(0);
5090 ; return 0; }
5091 EOF
5092 if { (eval echo configure:5093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5093   rm -rf conftest*
5094   glibcpp_cv_func___builtin_abs_link=yes
5095 else
5096   echo "configure: failed program was:" >&5
5097   cat conftest.$ac_ext >&5
5098   rm -rf conftest*
5099   glibcpp_cv_func___builtin_abs_link=no
5100 fi
5101 rm -f conftest*
5102       
5103 fi
5104
5105     fi
5106     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5107     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5108       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5109       cat >> confdefs.h <<EOF
5110 #define ${ac_tr_func} 1
5111 EOF
5112
5113     fi
5114   fi
5115
5116   
5117   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5118 echo "configure:5119: checking for __builtin_fabsf declaration" >&5
5119   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5120     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5121   echo $ac_n "(cached) $ac_c" 1>&6
5122 else
5123   
5124       
5125       ac_ext=C
5126 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5127 ac_cpp='$CXXCPP $CPPFLAGS'
5128 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5129 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5130 cross_compiling=$ac_cv_prog_cxx_cross
5131
5132       cat > conftest.$ac_ext <<EOF
5133 #line 5134 "configure"
5134 #include "confdefs.h"
5135 #include <math.h>
5136 int main() {
5137  __builtin_fabsf(0);
5138 ; return 0; }
5139 EOF
5140 if { (eval echo configure:5141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5141   rm -rf conftest*
5142   glibcpp_cv_func___builtin_fabsf_use=yes
5143 else
5144   echo "configure: failed program was:" >&5
5145   cat conftest.$ac_ext >&5
5146   rm -rf conftest*
5147   glibcpp_cv_func___builtin_fabsf_use=no
5148 fi
5149 rm -f conftest*
5150       ac_ext=c
5151 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5152 ac_cpp='$CPP $CPPFLAGS'
5153 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5154 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5155 cross_compiling=$ac_cv_prog_cc_cross
5156
5157     
5158 fi
5159
5160   fi
5161   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5162   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5163     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5164 echo "configure:5165: checking for __builtin_fabsf linkage" >&5
5165     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5166       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5167   echo $ac_n "(cached) $ac_c" 1>&6
5168 else
5169   
5170         cat > conftest.$ac_ext <<EOF
5171 #line 5172 "configure"
5172 #include "confdefs.h"
5173 #include <math.h>
5174 int main() {
5175  __builtin_fabsf(0);
5176 ; return 0; }
5177 EOF
5178 if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5179   rm -rf conftest*
5180   glibcpp_cv_func___builtin_fabsf_link=yes
5181 else
5182   echo "configure: failed program was:" >&5
5183   cat conftest.$ac_ext >&5
5184   rm -rf conftest*
5185   glibcpp_cv_func___builtin_fabsf_link=no
5186 fi
5187 rm -f conftest*
5188       
5189 fi
5190
5191     fi
5192     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5193     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5194       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5195       cat >> confdefs.h <<EOF
5196 #define ${ac_tr_func} 1
5197 EOF
5198
5199     fi
5200   fi
5201
5202   
5203   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5204 echo "configure:5205: checking for __builtin_fabs declaration" >&5
5205   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5206     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5207   echo $ac_n "(cached) $ac_c" 1>&6
5208 else
5209   
5210       
5211       ac_ext=C
5212 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5213 ac_cpp='$CXXCPP $CPPFLAGS'
5214 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5215 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5216 cross_compiling=$ac_cv_prog_cxx_cross
5217
5218       cat > conftest.$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5221 #include <math.h>
5222 int main() {
5223  __builtin_fabs(0);
5224 ; return 0; }
5225 EOF
5226 if { (eval echo configure:5227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5227   rm -rf conftest*
5228   glibcpp_cv_func___builtin_fabs_use=yes
5229 else
5230   echo "configure: failed program was:" >&5
5231   cat conftest.$ac_ext >&5
5232   rm -rf conftest*
5233   glibcpp_cv_func___builtin_fabs_use=no
5234 fi
5235 rm -f conftest*
5236       ac_ext=c
5237 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5238 ac_cpp='$CPP $CPPFLAGS'
5239 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5240 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5241 cross_compiling=$ac_cv_prog_cc_cross
5242
5243     
5244 fi
5245
5246   fi
5247   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5248   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5249     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5250 echo "configure:5251: checking for __builtin_fabs linkage" >&5
5251     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5252       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5253   echo $ac_n "(cached) $ac_c" 1>&6
5254 else
5255   
5256         cat > conftest.$ac_ext <<EOF
5257 #line 5258 "configure"
5258 #include "confdefs.h"
5259 #include <math.h>
5260 int main() {
5261  __builtin_fabs(0);
5262 ; return 0; }
5263 EOF
5264 if { (eval echo configure:5265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5265   rm -rf conftest*
5266   glibcpp_cv_func___builtin_fabs_link=yes
5267 else
5268   echo "configure: failed program was:" >&5
5269   cat conftest.$ac_ext >&5
5270   rm -rf conftest*
5271   glibcpp_cv_func___builtin_fabs_link=no
5272 fi
5273 rm -f conftest*
5274       
5275 fi
5276
5277     fi
5278     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5279     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5280       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5281       cat >> confdefs.h <<EOF
5282 #define ${ac_tr_func} 1
5283 EOF
5284
5285     fi
5286   fi
5287
5288   
5289   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5290 echo "configure:5291: checking for __builtin_fabsl declaration" >&5
5291   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5292     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5293   echo $ac_n "(cached) $ac_c" 1>&6
5294 else
5295   
5296       
5297       ac_ext=C
5298 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5299 ac_cpp='$CXXCPP $CPPFLAGS'
5300 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5301 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5302 cross_compiling=$ac_cv_prog_cxx_cross
5303
5304       cat > conftest.$ac_ext <<EOF
5305 #line 5306 "configure"
5306 #include "confdefs.h"
5307 #include <math.h>
5308 int main() {
5309  __builtin_fabsl(0);
5310 ; return 0; }
5311 EOF
5312 if { (eval echo configure:5313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5313   rm -rf conftest*
5314   glibcpp_cv_func___builtin_fabsl_use=yes
5315 else
5316   echo "configure: failed program was:" >&5
5317   cat conftest.$ac_ext >&5
5318   rm -rf conftest*
5319   glibcpp_cv_func___builtin_fabsl_use=no
5320 fi
5321 rm -f conftest*
5322       ac_ext=c
5323 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5324 ac_cpp='$CPP $CPPFLAGS'
5325 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5326 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5327 cross_compiling=$ac_cv_prog_cc_cross
5328
5329     
5330 fi
5331
5332   fi
5333   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5334   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5335     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5336 echo "configure:5337: checking for __builtin_fabsl linkage" >&5
5337     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5338       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5339   echo $ac_n "(cached) $ac_c" 1>&6
5340 else
5341   
5342         cat > conftest.$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5345 #include <math.h>
5346 int main() {
5347  __builtin_fabsl(0);
5348 ; return 0; }
5349 EOF
5350 if { (eval echo configure:5351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5351   rm -rf conftest*
5352   glibcpp_cv_func___builtin_fabsl_link=yes
5353 else
5354   echo "configure: failed program was:" >&5
5355   cat conftest.$ac_ext >&5
5356   rm -rf conftest*
5357   glibcpp_cv_func___builtin_fabsl_link=no
5358 fi
5359 rm -f conftest*
5360       
5361 fi
5362
5363     fi
5364     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5365     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5366       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5367       cat >> confdefs.h <<EOF
5368 #define ${ac_tr_func} 1
5369 EOF
5370
5371     fi
5372   fi
5373
5374   
5375   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5376 echo "configure:5377: checking for __builtin_labs declaration" >&5
5377   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5378     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5379   echo $ac_n "(cached) $ac_c" 1>&6
5380 else
5381   
5382       
5383       ac_ext=C
5384 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5385 ac_cpp='$CXXCPP $CPPFLAGS'
5386 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5387 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5388 cross_compiling=$ac_cv_prog_cxx_cross
5389
5390       cat > conftest.$ac_ext <<EOF
5391 #line 5392 "configure"
5392 #include "confdefs.h"
5393 #include <math.h>
5394 int main() {
5395  __builtin_labs(0);
5396 ; return 0; }
5397 EOF
5398 if { (eval echo configure:5399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5399   rm -rf conftest*
5400   glibcpp_cv_func___builtin_labs_use=yes
5401 else
5402   echo "configure: failed program was:" >&5
5403   cat conftest.$ac_ext >&5
5404   rm -rf conftest*
5405   glibcpp_cv_func___builtin_labs_use=no
5406 fi
5407 rm -f conftest*
5408       ac_ext=c
5409 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5410 ac_cpp='$CPP $CPPFLAGS'
5411 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5412 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5413 cross_compiling=$ac_cv_prog_cc_cross
5414
5415     
5416 fi
5417
5418   fi
5419   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5420   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5421     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5422 echo "configure:5423: checking for __builtin_labs linkage" >&5
5423     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5424       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5425   echo $ac_n "(cached) $ac_c" 1>&6
5426 else
5427   
5428         cat > conftest.$ac_ext <<EOF
5429 #line 5430 "configure"
5430 #include "confdefs.h"
5431 #include <math.h>
5432 int main() {
5433  __builtin_labs(0);
5434 ; return 0; }
5435 EOF
5436 if { (eval echo configure:5437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5437   rm -rf conftest*
5438   glibcpp_cv_func___builtin_labs_link=yes
5439 else
5440   echo "configure: failed program was:" >&5
5441   cat conftest.$ac_ext >&5
5442   rm -rf conftest*
5443   glibcpp_cv_func___builtin_labs_link=no
5444 fi
5445 rm -f conftest*
5446       
5447 fi
5448
5449     fi
5450     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5451     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5452       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5453       cat >> confdefs.h <<EOF
5454 #define ${ac_tr_func} 1
5455 EOF
5456
5457     fi
5458   fi
5459
5460
5461   
5462   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5463 echo "configure:5464: checking for __builtin_sqrtf declaration" >&5
5464   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5465     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5466   echo $ac_n "(cached) $ac_c" 1>&6
5467 else
5468   
5469       
5470       ac_ext=C
5471 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5472 ac_cpp='$CXXCPP $CPPFLAGS'
5473 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5474 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5475 cross_compiling=$ac_cv_prog_cxx_cross
5476
5477       cat > conftest.$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5480 #include <math.h>
5481 int main() {
5482  __builtin_sqrtf(0);
5483 ; return 0; }
5484 EOF
5485 if { (eval echo configure:5486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5486   rm -rf conftest*
5487   glibcpp_cv_func___builtin_sqrtf_use=yes
5488 else
5489   echo "configure: failed program was:" >&5
5490   cat conftest.$ac_ext >&5
5491   rm -rf conftest*
5492   glibcpp_cv_func___builtin_sqrtf_use=no
5493 fi
5494 rm -f conftest*
5495       ac_ext=c
5496 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5497 ac_cpp='$CPP $CPPFLAGS'
5498 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5499 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5500 cross_compiling=$ac_cv_prog_cc_cross
5501
5502     
5503 fi
5504
5505   fi
5506   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5507   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5508     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5509 echo "configure:5510: checking for __builtin_sqrtf linkage" >&5
5510     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5511       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5512   echo $ac_n "(cached) $ac_c" 1>&6
5513 else
5514   
5515         cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5518 #include <math.h>
5519 int main() {
5520  __builtin_sqrtf(0);
5521 ; return 0; }
5522 EOF
5523 if { (eval echo configure:5524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5524   rm -rf conftest*
5525   glibcpp_cv_func___builtin_sqrtf_link=yes
5526 else
5527   echo "configure: failed program was:" >&5
5528   cat conftest.$ac_ext >&5
5529   rm -rf conftest*
5530   glibcpp_cv_func___builtin_sqrtf_link=no
5531 fi
5532 rm -f conftest*
5533       
5534 fi
5535
5536     fi
5537     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5538     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5539       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5540       cat >> confdefs.h <<EOF
5541 #define ${ac_tr_func} 1
5542 EOF
5543
5544     fi
5545   fi
5546
5547   
5548   echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5549 echo "configure:5550: checking for __builtin_fsqrt declaration" >&5
5550   if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5551     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5552   echo $ac_n "(cached) $ac_c" 1>&6
5553 else
5554   
5555       
5556       ac_ext=C
5557 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5558 ac_cpp='$CXXCPP $CPPFLAGS'
5559 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5560 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5561 cross_compiling=$ac_cv_prog_cxx_cross
5562
5563       cat > conftest.$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5566 #include <math.h>
5567 int main() {
5568  __builtin_fsqrt(0);
5569 ; return 0; }
5570 EOF
5571 if { (eval echo configure:5572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5572   rm -rf conftest*
5573   glibcpp_cv_func___builtin_fsqrt_use=yes
5574 else
5575   echo "configure: failed program was:" >&5
5576   cat conftest.$ac_ext >&5
5577   rm -rf conftest*
5578   glibcpp_cv_func___builtin_fsqrt_use=no
5579 fi
5580 rm -f conftest*
5581       ac_ext=c
5582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5583 ac_cpp='$CPP $CPPFLAGS'
5584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5586 cross_compiling=$ac_cv_prog_cc_cross
5587
5588     
5589 fi
5590
5591   fi
5592   echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5593   if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5594     echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5595 echo "configure:5596: checking for __builtin_fsqrt linkage" >&5
5596     if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5597       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5598   echo $ac_n "(cached) $ac_c" 1>&6
5599 else
5600   
5601         cat > conftest.$ac_ext <<EOF
5602 #line 5603 "configure"
5603 #include "confdefs.h"
5604 #include <math.h>
5605 int main() {
5606  __builtin_fsqrt(0);
5607 ; return 0; }
5608 EOF
5609 if { (eval echo configure:5610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5610   rm -rf conftest*
5611   glibcpp_cv_func___builtin_fsqrt_link=yes
5612 else
5613   echo "configure: failed program was:" >&5
5614   cat conftest.$ac_ext >&5
5615   rm -rf conftest*
5616   glibcpp_cv_func___builtin_fsqrt_link=no
5617 fi
5618 rm -f conftest*
5619       
5620 fi
5621
5622     fi
5623     echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5624     if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5625       ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5626       cat >> confdefs.h <<EOF
5627 #define ${ac_tr_func} 1
5628 EOF
5629
5630     fi
5631   fi
5632
5633   
5634   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5635 echo "configure:5636: checking for __builtin_sqrtl declaration" >&5
5636   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5637     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5638   echo $ac_n "(cached) $ac_c" 1>&6
5639 else
5640   
5641       
5642       ac_ext=C
5643 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5644 ac_cpp='$CXXCPP $CPPFLAGS'
5645 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5646 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5647 cross_compiling=$ac_cv_prog_cxx_cross
5648
5649       cat > conftest.$ac_ext <<EOF
5650 #line 5651 "configure"
5651 #include "confdefs.h"
5652 #include <math.h>
5653 int main() {
5654  __builtin_sqrtl(0);
5655 ; return 0; }
5656 EOF
5657 if { (eval echo configure:5658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5658   rm -rf conftest*
5659   glibcpp_cv_func___builtin_sqrtl_use=yes
5660 else
5661   echo "configure: failed program was:" >&5
5662   cat conftest.$ac_ext >&5
5663   rm -rf conftest*
5664   glibcpp_cv_func___builtin_sqrtl_use=no
5665 fi
5666 rm -f conftest*
5667       ac_ext=c
5668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5669 ac_cpp='$CPP $CPPFLAGS'
5670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5672 cross_compiling=$ac_cv_prog_cc_cross
5673
5674     
5675 fi
5676
5677   fi
5678   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5679   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5680     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5681 echo "configure:5682: checking for __builtin_sqrtl linkage" >&5
5682     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5683       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5684   echo $ac_n "(cached) $ac_c" 1>&6
5685 else
5686   
5687         cat > conftest.$ac_ext <<EOF
5688 #line 5689 "configure"
5689 #include "confdefs.h"
5690 #include <math.h>
5691 int main() {
5692  __builtin_sqrtl(0);
5693 ; return 0; }
5694 EOF
5695 if { (eval echo configure:5696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5696   rm -rf conftest*
5697   glibcpp_cv_func___builtin_sqrtl_link=yes
5698 else
5699   echo "configure: failed program was:" >&5
5700   cat conftest.$ac_ext >&5
5701   rm -rf conftest*
5702   glibcpp_cv_func___builtin_sqrtl_link=no
5703 fi
5704 rm -f conftest*
5705       
5706 fi
5707
5708     fi
5709     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5710     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5711       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5712       cat >> confdefs.h <<EOF
5713 #define ${ac_tr_func} 1
5714 EOF
5715
5716     fi
5717   fi
5718
5719
5720   
5721   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5722 echo "configure:5723: checking for __builtin_sinf declaration" >&5
5723   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5724     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5725   echo $ac_n "(cached) $ac_c" 1>&6
5726 else
5727   
5728       
5729       ac_ext=C
5730 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5731 ac_cpp='$CXXCPP $CPPFLAGS'
5732 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5733 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5734 cross_compiling=$ac_cv_prog_cxx_cross
5735
5736       cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5739 #include <math.h>
5740 int main() {
5741  __builtin_sinf(0);
5742 ; return 0; }
5743 EOF
5744 if { (eval echo configure:5745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5745   rm -rf conftest*
5746   glibcpp_cv_func___builtin_sinf_use=yes
5747 else
5748   echo "configure: failed program was:" >&5
5749   cat conftest.$ac_ext >&5
5750   rm -rf conftest*
5751   glibcpp_cv_func___builtin_sinf_use=no
5752 fi
5753 rm -f conftest*
5754       ac_ext=c
5755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5756 ac_cpp='$CPP $CPPFLAGS'
5757 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5758 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5759 cross_compiling=$ac_cv_prog_cc_cross
5760
5761     
5762 fi
5763
5764   fi
5765   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5766   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5767     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5768 echo "configure:5769: checking for __builtin_sinf linkage" >&5
5769     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5770       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5771   echo $ac_n "(cached) $ac_c" 1>&6
5772 else
5773   
5774         cat > conftest.$ac_ext <<EOF
5775 #line 5776 "configure"
5776 #include "confdefs.h"
5777 #include <math.h>
5778 int main() {
5779  __builtin_sinf(0);
5780 ; return 0; }
5781 EOF
5782 if { (eval echo configure:5783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5783   rm -rf conftest*
5784   glibcpp_cv_func___builtin_sinf_link=yes
5785 else
5786   echo "configure: failed program was:" >&5
5787   cat conftest.$ac_ext >&5
5788   rm -rf conftest*
5789   glibcpp_cv_func___builtin_sinf_link=no
5790 fi
5791 rm -f conftest*
5792       
5793 fi
5794
5795     fi
5796     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5797     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5798       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5799       cat >> confdefs.h <<EOF
5800 #define ${ac_tr_func} 1
5801 EOF
5802
5803     fi
5804   fi
5805
5806   
5807   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5808 echo "configure:5809: checking for __builtin_sin declaration" >&5
5809   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5810     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5811   echo $ac_n "(cached) $ac_c" 1>&6
5812 else
5813   
5814       
5815       ac_ext=C
5816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5817 ac_cpp='$CXXCPP $CPPFLAGS'
5818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5819 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5820 cross_compiling=$ac_cv_prog_cxx_cross
5821
5822       cat > conftest.$ac_ext <<EOF
5823 #line 5824 "configure"
5824 #include "confdefs.h"
5825 #include <math.h>
5826 int main() {
5827  __builtin_sin(0);
5828 ; return 0; }
5829 EOF
5830 if { (eval echo configure:5831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5831   rm -rf conftest*
5832   glibcpp_cv_func___builtin_sin_use=yes
5833 else
5834   echo "configure: failed program was:" >&5
5835   cat conftest.$ac_ext >&5
5836   rm -rf conftest*
5837   glibcpp_cv_func___builtin_sin_use=no
5838 fi
5839 rm -f conftest*
5840       ac_ext=c
5841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5842 ac_cpp='$CPP $CPPFLAGS'
5843 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5844 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5845 cross_compiling=$ac_cv_prog_cc_cross
5846
5847     
5848 fi
5849
5850   fi
5851   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
5852   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
5853     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
5854 echo "configure:5855: checking for __builtin_sin linkage" >&5
5855     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
5856       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
5857   echo $ac_n "(cached) $ac_c" 1>&6
5858 else
5859   
5860         cat > conftest.$ac_ext <<EOF
5861 #line 5862 "configure"
5862 #include "confdefs.h"
5863 #include <math.h>
5864 int main() {
5865  __builtin_sin(0);
5866 ; return 0; }
5867 EOF
5868 if { (eval echo configure:5869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5869   rm -rf conftest*
5870   glibcpp_cv_func___builtin_sin_link=yes
5871 else
5872   echo "configure: failed program was:" >&5
5873   cat conftest.$ac_ext >&5
5874   rm -rf conftest*
5875   glibcpp_cv_func___builtin_sin_link=no
5876 fi
5877 rm -f conftest*
5878       
5879 fi
5880
5881     fi
5882     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
5883     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
5884       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5885       cat >> confdefs.h <<EOF
5886 #define ${ac_tr_func} 1
5887 EOF
5888
5889     fi
5890   fi
5891
5892   
5893   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
5894 echo "configure:5895: checking for __builtin_sinl declaration" >&5
5895   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
5896     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
5897   echo $ac_n "(cached) $ac_c" 1>&6
5898 else
5899   
5900       
5901       ac_ext=C
5902 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5903 ac_cpp='$CXXCPP $CPPFLAGS'
5904 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5905 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5906 cross_compiling=$ac_cv_prog_cxx_cross
5907
5908       cat > conftest.$ac_ext <<EOF
5909 #line 5910 "configure"
5910 #include "confdefs.h"
5911 #include <math.h>
5912 int main() {
5913  __builtin_sinl(0);
5914 ; return 0; }
5915 EOF
5916 if { (eval echo configure:5917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5917   rm -rf conftest*
5918   glibcpp_cv_func___builtin_sinl_use=yes
5919 else
5920   echo "configure: failed program was:" >&5
5921   cat conftest.$ac_ext >&5
5922   rm -rf conftest*
5923   glibcpp_cv_func___builtin_sinl_use=no
5924 fi
5925 rm -f conftest*
5926       ac_ext=c
5927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5928 ac_cpp='$CPP $CPPFLAGS'
5929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5931 cross_compiling=$ac_cv_prog_cc_cross
5932
5933     
5934 fi
5935
5936   fi
5937   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
5938   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
5939     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
5940 echo "configure:5941: checking for __builtin_sinl linkage" >&5
5941     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
5942       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
5943   echo $ac_n "(cached) $ac_c" 1>&6
5944 else
5945   
5946         cat > conftest.$ac_ext <<EOF
5947 #line 5948 "configure"
5948 #include "confdefs.h"
5949 #include <math.h>
5950 int main() {
5951  __builtin_sinl(0);
5952 ; return 0; }
5953 EOF
5954 if { (eval echo configure:5955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5955   rm -rf conftest*
5956   glibcpp_cv_func___builtin_sinl_link=yes
5957 else
5958   echo "configure: failed program was:" >&5
5959   cat conftest.$ac_ext >&5
5960   rm -rf conftest*
5961   glibcpp_cv_func___builtin_sinl_link=no
5962 fi
5963 rm -f conftest*
5964       
5965 fi
5966
5967     fi
5968     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
5969     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
5970       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5971       cat >> confdefs.h <<EOF
5972 #define ${ac_tr_func} 1
5973 EOF
5974
5975     fi
5976   fi
5977
5978
5979   
5980   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
5981 echo "configure:5982: checking for __builtin_cosf declaration" >&5
5982   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
5983     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
5984   echo $ac_n "(cached) $ac_c" 1>&6
5985 else
5986   
5987       
5988       ac_ext=C
5989 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5990 ac_cpp='$CXXCPP $CPPFLAGS'
5991 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5992 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5993 cross_compiling=$ac_cv_prog_cxx_cross
5994
5995       cat > conftest.$ac_ext <<EOF
5996 #line 5997 "configure"
5997 #include "confdefs.h"
5998 #include <math.h>
5999 int main() {
6000  __builtin_cosf(0);
6001 ; return 0; }
6002 EOF
6003 if { (eval echo configure:6004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6004   rm -rf conftest*
6005   glibcpp_cv_func___builtin_cosf_use=yes
6006 else
6007   echo "configure: failed program was:" >&5
6008   cat conftest.$ac_ext >&5
6009   rm -rf conftest*
6010   glibcpp_cv_func___builtin_cosf_use=no
6011 fi
6012 rm -f conftest*
6013       ac_ext=c
6014 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6015 ac_cpp='$CPP $CPPFLAGS'
6016 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6017 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6018 cross_compiling=$ac_cv_prog_cc_cross
6019
6020     
6021 fi
6022
6023   fi
6024   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6025   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6026     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6027 echo "configure:6028: checking for __builtin_cosf linkage" >&5
6028     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6029       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6030   echo $ac_n "(cached) $ac_c" 1>&6
6031 else
6032   
6033         cat > conftest.$ac_ext <<EOF
6034 #line 6035 "configure"
6035 #include "confdefs.h"
6036 #include <math.h>
6037 int main() {
6038  __builtin_cosf(0);
6039 ; return 0; }
6040 EOF
6041 if { (eval echo configure:6042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6042   rm -rf conftest*
6043   glibcpp_cv_func___builtin_cosf_link=yes
6044 else
6045   echo "configure: failed program was:" >&5
6046   cat conftest.$ac_ext >&5
6047   rm -rf conftest*
6048   glibcpp_cv_func___builtin_cosf_link=no
6049 fi
6050 rm -f conftest*
6051       
6052 fi
6053
6054     fi
6055     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6056     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6057       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6058       cat >> confdefs.h <<EOF
6059 #define ${ac_tr_func} 1
6060 EOF
6061
6062     fi
6063   fi
6064
6065   
6066   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6067 echo "configure:6068: checking for __builtin_cos declaration" >&5
6068   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6069     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6070   echo $ac_n "(cached) $ac_c" 1>&6
6071 else
6072   
6073       
6074       ac_ext=C
6075 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6076 ac_cpp='$CXXCPP $CPPFLAGS'
6077 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6078 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6079 cross_compiling=$ac_cv_prog_cxx_cross
6080
6081       cat > conftest.$ac_ext <<EOF
6082 #line 6083 "configure"
6083 #include "confdefs.h"
6084 #include <math.h>
6085 int main() {
6086  __builtin_cos(0);
6087 ; return 0; }
6088 EOF
6089 if { (eval echo configure:6090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6090   rm -rf conftest*
6091   glibcpp_cv_func___builtin_cos_use=yes
6092 else
6093   echo "configure: failed program was:" >&5
6094   cat conftest.$ac_ext >&5
6095   rm -rf conftest*
6096   glibcpp_cv_func___builtin_cos_use=no
6097 fi
6098 rm -f conftest*
6099       ac_ext=c
6100 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6101 ac_cpp='$CPP $CPPFLAGS'
6102 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6103 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6104 cross_compiling=$ac_cv_prog_cc_cross
6105
6106     
6107 fi
6108
6109   fi
6110   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6111   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6112     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6113 echo "configure:6114: checking for __builtin_cos linkage" >&5
6114     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6115       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6116   echo $ac_n "(cached) $ac_c" 1>&6
6117 else
6118   
6119         cat > conftest.$ac_ext <<EOF
6120 #line 6121 "configure"
6121 #include "confdefs.h"
6122 #include <math.h>
6123 int main() {
6124  __builtin_cos(0);
6125 ; return 0; }
6126 EOF
6127 if { (eval echo configure:6128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6128   rm -rf conftest*
6129   glibcpp_cv_func___builtin_cos_link=yes
6130 else
6131   echo "configure: failed program was:" >&5
6132   cat conftest.$ac_ext >&5
6133   rm -rf conftest*
6134   glibcpp_cv_func___builtin_cos_link=no
6135 fi
6136 rm -f conftest*
6137       
6138 fi
6139
6140     fi
6141     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6142     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6143       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6144       cat >> confdefs.h <<EOF
6145 #define ${ac_tr_func} 1
6146 EOF
6147
6148     fi
6149   fi
6150
6151   
6152   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6153 echo "configure:6154: checking for __builtin_cosl declaration" >&5
6154   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6155     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6156   echo $ac_n "(cached) $ac_c" 1>&6
6157 else
6158   
6159       
6160       ac_ext=C
6161 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6162 ac_cpp='$CXXCPP $CPPFLAGS'
6163 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6164 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6165 cross_compiling=$ac_cv_prog_cxx_cross
6166
6167       cat > conftest.$ac_ext <<EOF
6168 #line 6169 "configure"
6169 #include "confdefs.h"
6170 #include <math.h>
6171 int main() {
6172  __builtin_cosl(0);
6173 ; return 0; }
6174 EOF
6175 if { (eval echo configure:6176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6176   rm -rf conftest*
6177   glibcpp_cv_func___builtin_cosl_use=yes
6178 else
6179   echo "configure: failed program was:" >&5
6180   cat conftest.$ac_ext >&5
6181   rm -rf conftest*
6182   glibcpp_cv_func___builtin_cosl_use=no
6183 fi
6184 rm -f conftest*
6185       ac_ext=c
6186 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6187 ac_cpp='$CPP $CPPFLAGS'
6188 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6189 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6190 cross_compiling=$ac_cv_prog_cc_cross
6191
6192     
6193 fi
6194
6195   fi
6196   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6197   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6198     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6199 echo "configure:6200: checking for __builtin_cosl linkage" >&5
6200     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6201       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6202   echo $ac_n "(cached) $ac_c" 1>&6
6203 else
6204   
6205         cat > conftest.$ac_ext <<EOF
6206 #line 6207 "configure"
6207 #include "confdefs.h"
6208 #include <math.h>
6209 int main() {
6210  __builtin_cosl(0);
6211 ; return 0; }
6212 EOF
6213 if { (eval echo configure:6214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6214   rm -rf conftest*
6215   glibcpp_cv_func___builtin_cosl_link=yes
6216 else
6217   echo "configure: failed program was:" >&5
6218   cat conftest.$ac_ext >&5
6219   rm -rf conftest*
6220   glibcpp_cv_func___builtin_cosl_link=no
6221 fi
6222 rm -f conftest*
6223       
6224 fi
6225
6226     fi
6227     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6228     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6229       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6230       cat >> confdefs.h <<EOF
6231 #define ${ac_tr_func} 1
6232 EOF
6233
6234     fi
6235   fi
6236
6237
6238               dummyvar=no
6239   if test x$dummyvar = x"yes"; then
6240     cat >> confdefs.h <<\EOF
6241 #define HAVE___BUILTIN_ABS 1
6242 EOF
6243
6244     cat >> confdefs.h <<\EOF
6245 #define HAVE___BUILTIN_LABS 1
6246 EOF
6247
6248     cat >> confdefs.h <<\EOF
6249 #define HAVE___BUILTIN_COS 1
6250 EOF
6251
6252     cat >> confdefs.h <<\EOF
6253 #define HAVE___BUILTIN_COSF 1
6254 EOF
6255
6256     cat >> confdefs.h <<\EOF
6257 #define HAVE___BUILTIN_COSL 1
6258 EOF
6259
6260     cat >> confdefs.h <<\EOF
6261 #define HAVE___BUILTIN_FABS 1
6262 EOF
6263
6264     cat >> confdefs.h <<\EOF
6265 #define HAVE___BUILTIN_FABSF 1
6266 EOF
6267
6268     cat >> confdefs.h <<\EOF
6269 #define HAVE___BUILTIN_FABSL 1
6270 EOF
6271
6272     cat >> confdefs.h <<\EOF
6273 #define HAVE___BUILTIN_SIN 1
6274 EOF
6275
6276     cat >> confdefs.h <<\EOF
6277 #define HAVE___BUILTIN_SINF 1
6278 EOF
6279
6280     cat >> confdefs.h <<\EOF
6281 #define HAVE___BUILTIN_SINL 1
6282 EOF
6283
6284     cat >> confdefs.h <<\EOF
6285 #define HAVE___BUILTIN_FSQRT 1
6286 EOF
6287
6288     cat >> confdefs.h <<\EOF
6289 #define HAVE___BUILTIN_SQRTF 1
6290 EOF
6291
6292     cat >> confdefs.h <<\EOF
6293 #define HAVE___BUILTIN_SQRTL 1
6294 EOF
6295
6296   fi
6297
6298   
6299   ac_test_CXXFLAGS="${CXXFLAGS+set}"
6300   ac_save_CXXFLAGS="$CXXFLAGS"
6301   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6302
6303     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6304 echo "configure:6305: checking for sin in -lm" >&5
6305 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6307   echo $ac_n "(cached) $ac_c" 1>&6
6308 else
6309   ac_save_LIBS="$LIBS"
6310 LIBS="-lm  $LIBS"
6311 cat > conftest.$ac_ext <<EOF
6312 #line 6313 "configure"
6313 #include "confdefs.h"
6314 /* Override any gcc2 internal prototype to avoid an error.  */
6315 /* We use char because int might match the return type of a gcc2
6316     builtin and then its argument prototype would still apply.  */
6317 char sin();
6318
6319 int main() {
6320 sin()
6321 ; return 0; }
6322 EOF
6323 if { (eval echo configure:6324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6324   rm -rf conftest*
6325   eval "ac_cv_lib_$ac_lib_var=yes"
6326 else
6327   echo "configure: failed program was:" >&5
6328   cat conftest.$ac_ext >&5
6329   rm -rf conftest*
6330   eval "ac_cv_lib_$ac_lib_var=no"
6331 fi
6332 rm -f conftest*
6333 LIBS="$ac_save_LIBS"
6334
6335 fi
6336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6337   echo "$ac_t""yes" 1>&6
6338   libm="-lm"
6339 else
6340   echo "$ac_t""no" 1>&6
6341 fi
6342
6343   ac_save_LIBS="$LIBS"
6344   LIBS="$LIBS $libm"
6345
6346     
6347   
6348   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6349 echo "configure:6350: checking for isinf declaration" >&5
6350   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6351     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6352   echo $ac_n "(cached) $ac_c" 1>&6
6353 else
6354   
6355       
6356       ac_ext=C
6357 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6358 ac_cpp='$CXXCPP $CPPFLAGS'
6359 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6360 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6361 cross_compiling=$ac_cv_prog_cxx_cross
6362
6363       cat > conftest.$ac_ext <<EOF
6364 #line 6365 "configure"
6365 #include "confdefs.h"
6366 #include <math.h>
6367                       #ifdef HAVE_IEEEFP_H
6368                       #include <ieeefp.h>
6369                       #endif
6370                      
6371 int main() {
6372  isinf(0);
6373 ; return 0; }
6374 EOF
6375 if { (eval echo configure:6376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6376   rm -rf conftest*
6377   glibcpp_cv_func_isinf_use=yes
6378 else
6379   echo "configure: failed program was:" >&5
6380   cat conftest.$ac_ext >&5
6381   rm -rf conftest*
6382   glibcpp_cv_func_isinf_use=no
6383 fi
6384 rm -f conftest*
6385       ac_ext=c
6386 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6387 ac_cpp='$CPP $CPPFLAGS'
6388 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6389 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6390 cross_compiling=$ac_cv_prog_cc_cross
6391
6392     
6393 fi
6394
6395   fi
6396   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6397
6398   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6399     for ac_func in isinf
6400 do
6401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6402 echo "configure:6403: checking for $ac_func" >&5
6403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6404   echo $ac_n "(cached) $ac_c" 1>&6
6405 else
6406   cat > conftest.$ac_ext <<EOF
6407 #line 6408 "configure"
6408 #include "confdefs.h"
6409 /* System header to define __stub macros and hopefully few prototypes,
6410     which can conflict with char $ac_func(); below.  */
6411 #include <assert.h>
6412 /* Override any gcc2 internal prototype to avoid an error.  */
6413 /* We use char because int might match the return type of a gcc2
6414     builtin and then its argument prototype would still apply.  */
6415 char $ac_func();
6416
6417 int main() {
6418
6419 /* The GNU C library defines this for functions which it implements
6420     to always fail with ENOSYS.  Some functions are actually named
6421     something starting with __ and the normal name is an alias.  */
6422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6423 choke me
6424 #else
6425 $ac_func();
6426 #endif
6427
6428 ; return 0; }
6429 EOF
6430 if { (eval echo configure:6431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6431   rm -rf conftest*
6432   eval "ac_cv_func_$ac_func=yes"
6433 else
6434   echo "configure: failed program was:" >&5
6435   cat conftest.$ac_ext >&5
6436   rm -rf conftest*
6437   eval "ac_cv_func_$ac_func=no"
6438 fi
6439 rm -f conftest*
6440 fi
6441
6442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6443   echo "$ac_t""yes" 1>&6
6444     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6445   cat >> confdefs.h <<EOF
6446 #define $ac_tr_func 1
6447 EOF
6448  
6449 else
6450   echo "$ac_t""no" 1>&6
6451 fi
6452 done
6453     
6454   else
6455     
6456   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6457 echo "configure:6458: checking for _isinf declaration" >&5
6458   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6459     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6460   echo $ac_n "(cached) $ac_c" 1>&6
6461 else
6462   
6463       
6464       ac_ext=C
6465 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6466 ac_cpp='$CXXCPP $CPPFLAGS'
6467 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6468 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6469 cross_compiling=$ac_cv_prog_cxx_cross
6470
6471       cat > conftest.$ac_ext <<EOF
6472 #line 6473 "configure"
6473 #include "confdefs.h"
6474 #include <math.h>
6475                       #ifdef HAVE_IEEEFP_H
6476                       #include <ieeefp.h>
6477                       #endif
6478                      
6479 int main() {
6480  _isinf(0);
6481 ; return 0; }
6482 EOF
6483 if { (eval echo configure:6484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6484   rm -rf conftest*
6485   glibcpp_cv_func__isinf_use=yes
6486 else
6487   echo "configure: failed program was:" >&5
6488   cat conftest.$ac_ext >&5
6489   rm -rf conftest*
6490   glibcpp_cv_func__isinf_use=no
6491 fi
6492 rm -f conftest*
6493       ac_ext=c
6494 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6495 ac_cpp='$CPP $CPPFLAGS'
6496 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6497 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6498 cross_compiling=$ac_cv_prog_cc_cross
6499
6500     
6501 fi
6502
6503   fi
6504   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6505
6506     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6507       for ac_func in _isinf
6508 do
6509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6510 echo "configure:6511: checking for $ac_func" >&5
6511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6512   echo $ac_n "(cached) $ac_c" 1>&6
6513 else
6514   cat > conftest.$ac_ext <<EOF
6515 #line 6516 "configure"
6516 #include "confdefs.h"
6517 /* System header to define __stub macros and hopefully few prototypes,
6518     which can conflict with char $ac_func(); below.  */
6519 #include <assert.h>
6520 /* Override any gcc2 internal prototype to avoid an error.  */
6521 /* We use char because int might match the return type of a gcc2
6522     builtin and then its argument prototype would still apply.  */
6523 char $ac_func();
6524
6525 int main() {
6526
6527 /* The GNU C library defines this for functions which it implements
6528     to always fail with ENOSYS.  Some functions are actually named
6529     something starting with __ and the normal name is an alias.  */
6530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6531 choke me
6532 #else
6533 $ac_func();
6534 #endif
6535
6536 ; return 0; }
6537 EOF
6538 if { (eval echo configure:6539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6539   rm -rf conftest*
6540   eval "ac_cv_func_$ac_func=yes"
6541 else
6542   echo "configure: failed program was:" >&5
6543   cat conftest.$ac_ext >&5
6544   rm -rf conftest*
6545   eval "ac_cv_func_$ac_func=no"
6546 fi
6547 rm -f conftest*
6548 fi
6549
6550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6551   echo "$ac_t""yes" 1>&6
6552     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6553   cat >> confdefs.h <<EOF
6554 #define $ac_tr_func 1
6555 EOF
6556  
6557 else
6558   echo "$ac_t""no" 1>&6
6559 fi
6560 done
6561     
6562     fi
6563   fi
6564
6565   
6566   
6567   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6568 echo "configure:6569: checking for isnan declaration" >&5
6569   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6570     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6571   echo $ac_n "(cached) $ac_c" 1>&6
6572 else
6573   
6574       
6575       ac_ext=C
6576 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6577 ac_cpp='$CXXCPP $CPPFLAGS'
6578 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6579 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6580 cross_compiling=$ac_cv_prog_cxx_cross
6581
6582       cat > conftest.$ac_ext <<EOF
6583 #line 6584 "configure"
6584 #include "confdefs.h"
6585 #include <math.h>
6586                       #ifdef HAVE_IEEEFP_H
6587                       #include <ieeefp.h>
6588                       #endif
6589                      
6590 int main() {
6591  isnan(0);
6592 ; return 0; }
6593 EOF
6594 if { (eval echo configure:6595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6595   rm -rf conftest*
6596   glibcpp_cv_func_isnan_use=yes
6597 else
6598   echo "configure: failed program was:" >&5
6599   cat conftest.$ac_ext >&5
6600   rm -rf conftest*
6601   glibcpp_cv_func_isnan_use=no
6602 fi
6603 rm -f conftest*
6604       ac_ext=c
6605 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6606 ac_cpp='$CPP $CPPFLAGS'
6607 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6608 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6609 cross_compiling=$ac_cv_prog_cc_cross
6610
6611     
6612 fi
6613
6614   fi
6615   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6616
6617   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6618     for ac_func in isnan
6619 do
6620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6621 echo "configure:6622: checking for $ac_func" >&5
6622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6623   echo $ac_n "(cached) $ac_c" 1>&6
6624 else
6625   cat > conftest.$ac_ext <<EOF
6626 #line 6627 "configure"
6627 #include "confdefs.h"
6628 /* System header to define __stub macros and hopefully few prototypes,
6629     which can conflict with char $ac_func(); below.  */
6630 #include <assert.h>
6631 /* Override any gcc2 internal prototype to avoid an error.  */
6632 /* We use char because int might match the return type of a gcc2
6633     builtin and then its argument prototype would still apply.  */
6634 char $ac_func();
6635
6636 int main() {
6637
6638 /* The GNU C library defines this for functions which it implements
6639     to always fail with ENOSYS.  Some functions are actually named
6640     something starting with __ and the normal name is an alias.  */
6641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6642 choke me
6643 #else
6644 $ac_func();
6645 #endif
6646
6647 ; return 0; }
6648 EOF
6649 if { (eval echo configure:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6650   rm -rf conftest*
6651   eval "ac_cv_func_$ac_func=yes"
6652 else
6653   echo "configure: failed program was:" >&5
6654   cat conftest.$ac_ext >&5
6655   rm -rf conftest*
6656   eval "ac_cv_func_$ac_func=no"
6657 fi
6658 rm -f conftest*
6659 fi
6660
6661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6662   echo "$ac_t""yes" 1>&6
6663     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6664   cat >> confdefs.h <<EOF
6665 #define $ac_tr_func 1
6666 EOF
6667  
6668 else
6669   echo "$ac_t""no" 1>&6
6670 fi
6671 done
6672     
6673   else
6674     
6675   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6676 echo "configure:6677: checking for _isnan declaration" >&5
6677   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6678     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6679   echo $ac_n "(cached) $ac_c" 1>&6
6680 else
6681   
6682       
6683       ac_ext=C
6684 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6685 ac_cpp='$CXXCPP $CPPFLAGS'
6686 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6687 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6688 cross_compiling=$ac_cv_prog_cxx_cross
6689
6690       cat > conftest.$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6693 #include <math.h>
6694                       #ifdef HAVE_IEEEFP_H
6695                       #include <ieeefp.h>
6696                       #endif
6697                      
6698 int main() {
6699  _isnan(0);
6700 ; return 0; }
6701 EOF
6702 if { (eval echo configure:6703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6703   rm -rf conftest*
6704   glibcpp_cv_func__isnan_use=yes
6705 else
6706   echo "configure: failed program was:" >&5
6707   cat conftest.$ac_ext >&5
6708   rm -rf conftest*
6709   glibcpp_cv_func__isnan_use=no
6710 fi
6711 rm -f conftest*
6712       ac_ext=c
6713 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6714 ac_cpp='$CPP $CPPFLAGS'
6715 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6716 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6717 cross_compiling=$ac_cv_prog_cc_cross
6718
6719     
6720 fi
6721
6722   fi
6723   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6724
6725     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6726       for ac_func in _isnan
6727 do
6728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6729 echo "configure:6730: checking for $ac_func" >&5
6730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6731   echo $ac_n "(cached) $ac_c" 1>&6
6732 else
6733   cat > conftest.$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6736 /* System header to define __stub macros and hopefully few prototypes,
6737     which can conflict with char $ac_func(); below.  */
6738 #include <assert.h>
6739 /* Override any gcc2 internal prototype to avoid an error.  */
6740 /* We use char because int might match the return type of a gcc2
6741     builtin and then its argument prototype would still apply.  */
6742 char $ac_func();
6743
6744 int main() {
6745
6746 /* The GNU C library defines this for functions which it implements
6747     to always fail with ENOSYS.  Some functions are actually named
6748     something starting with __ and the normal name is an alias.  */
6749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6750 choke me
6751 #else
6752 $ac_func();
6753 #endif
6754
6755 ; return 0; }
6756 EOF
6757 if { (eval echo configure:6758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6758   rm -rf conftest*
6759   eval "ac_cv_func_$ac_func=yes"
6760 else
6761   echo "configure: failed program was:" >&5
6762   cat conftest.$ac_ext >&5
6763   rm -rf conftest*
6764   eval "ac_cv_func_$ac_func=no"
6765 fi
6766 rm -f conftest*
6767 fi
6768
6769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6770   echo "$ac_t""yes" 1>&6
6771     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6772   cat >> confdefs.h <<EOF
6773 #define $ac_tr_func 1
6774 EOF
6775  
6776 else
6777   echo "$ac_t""no" 1>&6
6778 fi
6779 done
6780     
6781     fi
6782   fi
6783
6784   
6785   
6786   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6787 echo "configure:6788: checking for finite declaration" >&5
6788   if test x${glibcpp_cv_func_finite_use+set} != xset; then
6789     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6790   echo $ac_n "(cached) $ac_c" 1>&6
6791 else
6792   
6793       
6794       ac_ext=C
6795 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6796 ac_cpp='$CXXCPP $CPPFLAGS'
6797 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6798 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6799 cross_compiling=$ac_cv_prog_cxx_cross
6800
6801       cat > conftest.$ac_ext <<EOF
6802 #line 6803 "configure"
6803 #include "confdefs.h"
6804 #include <math.h>
6805                       #ifdef HAVE_IEEEFP_H
6806                       #include <ieeefp.h>
6807                       #endif
6808                      
6809 int main() {
6810  finite(0);
6811 ; return 0; }
6812 EOF
6813 if { (eval echo configure:6814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6814   rm -rf conftest*
6815   glibcpp_cv_func_finite_use=yes
6816 else
6817   echo "configure: failed program was:" >&5
6818   cat conftest.$ac_ext >&5
6819   rm -rf conftest*
6820   glibcpp_cv_func_finite_use=no
6821 fi
6822 rm -f conftest*
6823       ac_ext=c
6824 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6825 ac_cpp='$CPP $CPPFLAGS'
6826 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6827 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6828 cross_compiling=$ac_cv_prog_cc_cross
6829
6830     
6831 fi
6832
6833   fi
6834   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
6835
6836   if test x$glibcpp_cv_func_finite_use = x"yes"; then
6837     for ac_func in finite
6838 do
6839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6840 echo "configure:6841: checking for $ac_func" >&5
6841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6842   echo $ac_n "(cached) $ac_c" 1>&6
6843 else
6844   cat > conftest.$ac_ext <<EOF
6845 #line 6846 "configure"
6846 #include "confdefs.h"
6847 /* System header to define __stub macros and hopefully few prototypes,
6848     which can conflict with char $ac_func(); below.  */
6849 #include <assert.h>
6850 /* Override any gcc2 internal prototype to avoid an error.  */
6851 /* We use char because int might match the return type of a gcc2
6852     builtin and then its argument prototype would still apply.  */
6853 char $ac_func();
6854
6855 int main() {
6856
6857 /* The GNU C library defines this for functions which it implements
6858     to always fail with ENOSYS.  Some functions are actually named
6859     something starting with __ and the normal name is an alias.  */
6860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6861 choke me
6862 #else
6863 $ac_func();
6864 #endif
6865
6866 ; return 0; }
6867 EOF
6868 if { (eval echo configure:6869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6869   rm -rf conftest*
6870   eval "ac_cv_func_$ac_func=yes"
6871 else
6872   echo "configure: failed program was:" >&5
6873   cat conftest.$ac_ext >&5
6874   rm -rf conftest*
6875   eval "ac_cv_func_$ac_func=no"
6876 fi
6877 rm -f conftest*
6878 fi
6879
6880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6881   echo "$ac_t""yes" 1>&6
6882     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6883   cat >> confdefs.h <<EOF
6884 #define $ac_tr_func 1
6885 EOF
6886  
6887 else
6888   echo "$ac_t""no" 1>&6
6889 fi
6890 done
6891     
6892   else
6893     
6894   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
6895 echo "configure:6896: checking for _finite declaration" >&5
6896   if test x${glibcpp_cv_func__finite_use+set} != xset; then
6897     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
6898   echo $ac_n "(cached) $ac_c" 1>&6
6899 else
6900   
6901       
6902       ac_ext=C
6903 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6904 ac_cpp='$CXXCPP $CPPFLAGS'
6905 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6906 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6907 cross_compiling=$ac_cv_prog_cxx_cross
6908
6909       cat > conftest.$ac_ext <<EOF
6910 #line 6911 "configure"
6911 #include "confdefs.h"
6912 #include <math.h>
6913                       #ifdef HAVE_IEEEFP_H
6914                       #include <ieeefp.h>
6915                       #endif
6916                      
6917 int main() {
6918  _finite(0);
6919 ; return 0; }
6920 EOF
6921 if { (eval echo configure:6922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6922   rm -rf conftest*
6923   glibcpp_cv_func__finite_use=yes
6924 else
6925   echo "configure: failed program was:" >&5
6926   cat conftest.$ac_ext >&5
6927   rm -rf conftest*
6928   glibcpp_cv_func__finite_use=no
6929 fi
6930 rm -f conftest*
6931       ac_ext=c
6932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6933 ac_cpp='$CPP $CPPFLAGS'
6934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6936 cross_compiling=$ac_cv_prog_cc_cross
6937
6938     
6939 fi
6940
6941   fi
6942   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
6943
6944     if test x$glibcpp_cv_func__finite_use = x"yes"; then
6945       for ac_func in _finite
6946 do
6947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6948 echo "configure:6949: checking for $ac_func" >&5
6949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6950   echo $ac_n "(cached) $ac_c" 1>&6
6951 else
6952   cat > conftest.$ac_ext <<EOF
6953 #line 6954 "configure"
6954 #include "confdefs.h"
6955 /* System header to define __stub macros and hopefully few prototypes,
6956     which can conflict with char $ac_func(); below.  */
6957 #include <assert.h>
6958 /* Override any gcc2 internal prototype to avoid an error.  */
6959 /* We use char because int might match the return type of a gcc2
6960     builtin and then its argument prototype would still apply.  */
6961 char $ac_func();
6962
6963 int main() {
6964
6965 /* The GNU C library defines this for functions which it implements
6966     to always fail with ENOSYS.  Some functions are actually named
6967     something starting with __ and the normal name is an alias.  */
6968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6969 choke me
6970 #else
6971 $ac_func();
6972 #endif
6973
6974 ; return 0; }
6975 EOF
6976 if { (eval echo configure:6977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6977   rm -rf conftest*
6978   eval "ac_cv_func_$ac_func=yes"
6979 else
6980   echo "configure: failed program was:" >&5
6981   cat conftest.$ac_ext >&5
6982   rm -rf conftest*
6983   eval "ac_cv_func_$ac_func=no"
6984 fi
6985 rm -f conftest*
6986 fi
6987
6988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6989   echo "$ac_t""yes" 1>&6
6990     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6991   cat >> confdefs.h <<EOF
6992 #define $ac_tr_func 1
6993 EOF
6994  
6995 else
6996   echo "$ac_t""no" 1>&6
6997 fi
6998 done
6999     
7000     fi
7001   fi
7002
7003   
7004   
7005   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7006 echo "configure:7007: checking for copysign declaration" >&5
7007   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7008     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7009   echo $ac_n "(cached) $ac_c" 1>&6
7010 else
7011   
7012       
7013       ac_ext=C
7014 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7015 ac_cpp='$CXXCPP $CPPFLAGS'
7016 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7017 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7018 cross_compiling=$ac_cv_prog_cxx_cross
7019
7020       cat > conftest.$ac_ext <<EOF
7021 #line 7022 "configure"
7022 #include "confdefs.h"
7023 #include <math.h>
7024 int main() {
7025  copysign(0, 0);
7026 ; return 0; }
7027 EOF
7028 if { (eval echo configure:7029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7029   rm -rf conftest*
7030   glibcpp_cv_func_copysign_use=yes
7031 else
7032   echo "configure: failed program was:" >&5
7033   cat conftest.$ac_ext >&5
7034   rm -rf conftest*
7035   glibcpp_cv_func_copysign_use=no
7036 fi
7037 rm -f conftest*
7038       ac_ext=c
7039 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7040 ac_cpp='$CPP $CPPFLAGS'
7041 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7042 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7043 cross_compiling=$ac_cv_prog_cc_cross
7044
7045     
7046 fi
7047
7048   fi
7049   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7050
7051   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7052     for ac_func in copysign
7053 do
7054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7055 echo "configure:7056: checking for $ac_func" >&5
7056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7057   echo $ac_n "(cached) $ac_c" 1>&6
7058 else
7059   cat > conftest.$ac_ext <<EOF
7060 #line 7061 "configure"
7061 #include "confdefs.h"
7062 /* System header to define __stub macros and hopefully few prototypes,
7063     which can conflict with char $ac_func(); below.  */
7064 #include <assert.h>
7065 /* Override any gcc2 internal prototype to avoid an error.  */
7066 /* We use char because int might match the return type of a gcc2
7067     builtin and then its argument prototype would still apply.  */
7068 char $ac_func();
7069
7070 int main() {
7071
7072 /* The GNU C library defines this for functions which it implements
7073     to always fail with ENOSYS.  Some functions are actually named
7074     something starting with __ and the normal name is an alias.  */
7075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7076 choke me
7077 #else
7078 $ac_func();
7079 #endif
7080
7081 ; return 0; }
7082 EOF
7083 if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7084   rm -rf conftest*
7085   eval "ac_cv_func_$ac_func=yes"
7086 else
7087   echo "configure: failed program was:" >&5
7088   cat conftest.$ac_ext >&5
7089   rm -rf conftest*
7090   eval "ac_cv_func_$ac_func=no"
7091 fi
7092 rm -f conftest*
7093 fi
7094
7095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7096   echo "$ac_t""yes" 1>&6
7097     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7098   cat >> confdefs.h <<EOF
7099 #define $ac_tr_func 1
7100 EOF
7101  
7102 else
7103   echo "$ac_t""no" 1>&6
7104 fi
7105 done
7106     
7107   else
7108     
7109   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7110 echo "configure:7111: checking for _copysign declaration" >&5
7111   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7112     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7113   echo $ac_n "(cached) $ac_c" 1>&6
7114 else
7115   
7116       
7117       ac_ext=C
7118 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7119 ac_cpp='$CXXCPP $CPPFLAGS'
7120 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7121 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7122 cross_compiling=$ac_cv_prog_cxx_cross
7123
7124       cat > conftest.$ac_ext <<EOF
7125 #line 7126 "configure"
7126 #include "confdefs.h"
7127 #include <math.h>
7128 int main() {
7129  _copysign(0, 0);
7130 ; return 0; }
7131 EOF
7132 if { (eval echo configure:7133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7133   rm -rf conftest*
7134   glibcpp_cv_func__copysign_use=yes
7135 else
7136   echo "configure: failed program was:" >&5
7137   cat conftest.$ac_ext >&5
7138   rm -rf conftest*
7139   glibcpp_cv_func__copysign_use=no
7140 fi
7141 rm -f conftest*
7142       ac_ext=c
7143 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7144 ac_cpp='$CPP $CPPFLAGS'
7145 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7146 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7147 cross_compiling=$ac_cv_prog_cc_cross
7148
7149     
7150 fi
7151
7152   fi
7153   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7154
7155     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7156       for ac_func in _copysign
7157 do
7158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7159 echo "configure:7160: checking for $ac_func" >&5
7160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7161   echo $ac_n "(cached) $ac_c" 1>&6
7162 else
7163   cat > conftest.$ac_ext <<EOF
7164 #line 7165 "configure"
7165 #include "confdefs.h"
7166 /* System header to define __stub macros and hopefully few prototypes,
7167     which can conflict with char $ac_func(); below.  */
7168 #include <assert.h>
7169 /* Override any gcc2 internal prototype to avoid an error.  */
7170 /* We use char because int might match the return type of a gcc2
7171     builtin and then its argument prototype would still apply.  */
7172 char $ac_func();
7173
7174 int main() {
7175
7176 /* The GNU C library defines this for functions which it implements
7177     to always fail with ENOSYS.  Some functions are actually named
7178     something starting with __ and the normal name is an alias.  */
7179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7180 choke me
7181 #else
7182 $ac_func();
7183 #endif
7184
7185 ; return 0; }
7186 EOF
7187 if { (eval echo configure:7188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7188   rm -rf conftest*
7189   eval "ac_cv_func_$ac_func=yes"
7190 else
7191   echo "configure: failed program was:" >&5
7192   cat conftest.$ac_ext >&5
7193   rm -rf conftest*
7194   eval "ac_cv_func_$ac_func=no"
7195 fi
7196 rm -f conftest*
7197 fi
7198
7199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7200   echo "$ac_t""yes" 1>&6
7201     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7202   cat >> confdefs.h <<EOF
7203 #define $ac_tr_func 1
7204 EOF
7205  
7206 else
7207   echo "$ac_t""no" 1>&6
7208 fi
7209 done
7210     
7211     fi
7212   fi
7213
7214   
7215   
7216   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7217 echo "configure:7218: checking for sincos declaration" >&5
7218   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7219     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7220   echo $ac_n "(cached) $ac_c" 1>&6
7221 else
7222   
7223       
7224       ac_ext=C
7225 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7226 ac_cpp='$CXXCPP $CPPFLAGS'
7227 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7228 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7229 cross_compiling=$ac_cv_prog_cxx_cross
7230
7231       cat > conftest.$ac_ext <<EOF
7232 #line 7233 "configure"
7233 #include "confdefs.h"
7234 #include <math.h>
7235 int main() {
7236  sincos(0, 0, 0);
7237 ; return 0; }
7238 EOF
7239 if { (eval echo configure:7240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7240   rm -rf conftest*
7241   glibcpp_cv_func_sincos_use=yes
7242 else
7243   echo "configure: failed program was:" >&5
7244   cat conftest.$ac_ext >&5
7245   rm -rf conftest*
7246   glibcpp_cv_func_sincos_use=no
7247 fi
7248 rm -f conftest*
7249       ac_ext=c
7250 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7251 ac_cpp='$CPP $CPPFLAGS'
7252 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7253 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7254 cross_compiling=$ac_cv_prog_cc_cross
7255
7256     
7257 fi
7258
7259   fi
7260   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7261
7262   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7263     for ac_func in sincos
7264 do
7265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7266 echo "configure:7267: checking for $ac_func" >&5
7267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7268   echo $ac_n "(cached) $ac_c" 1>&6
7269 else
7270   cat > conftest.$ac_ext <<EOF
7271 #line 7272 "configure"
7272 #include "confdefs.h"
7273 /* System header to define __stub macros and hopefully few prototypes,
7274     which can conflict with char $ac_func(); below.  */
7275 #include <assert.h>
7276 /* Override any gcc2 internal prototype to avoid an error.  */
7277 /* We use char because int might match the return type of a gcc2
7278     builtin and then its argument prototype would still apply.  */
7279 char $ac_func();
7280
7281 int main() {
7282
7283 /* The GNU C library defines this for functions which it implements
7284     to always fail with ENOSYS.  Some functions are actually named
7285     something starting with __ and the normal name is an alias.  */
7286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7287 choke me
7288 #else
7289 $ac_func();
7290 #endif
7291
7292 ; return 0; }
7293 EOF
7294 if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7295   rm -rf conftest*
7296   eval "ac_cv_func_$ac_func=yes"
7297 else
7298   echo "configure: failed program was:" >&5
7299   cat conftest.$ac_ext >&5
7300   rm -rf conftest*
7301   eval "ac_cv_func_$ac_func=no"
7302 fi
7303 rm -f conftest*
7304 fi
7305
7306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7307   echo "$ac_t""yes" 1>&6
7308     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7309   cat >> confdefs.h <<EOF
7310 #define $ac_tr_func 1
7311 EOF
7312  
7313 else
7314   echo "$ac_t""no" 1>&6
7315 fi
7316 done
7317     
7318   else
7319     
7320   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7321 echo "configure:7322: checking for _sincos declaration" >&5
7322   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7323     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7324   echo $ac_n "(cached) $ac_c" 1>&6
7325 else
7326   
7327       
7328       ac_ext=C
7329 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7330 ac_cpp='$CXXCPP $CPPFLAGS'
7331 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7332 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7333 cross_compiling=$ac_cv_prog_cxx_cross
7334
7335       cat > conftest.$ac_ext <<EOF
7336 #line 7337 "configure"
7337 #include "confdefs.h"
7338 #include <math.h>
7339 int main() {
7340  _sincos(0, 0, 0);
7341 ; return 0; }
7342 EOF
7343 if { (eval echo configure:7344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7344   rm -rf conftest*
7345   glibcpp_cv_func__sincos_use=yes
7346 else
7347   echo "configure: failed program was:" >&5
7348   cat conftest.$ac_ext >&5
7349   rm -rf conftest*
7350   glibcpp_cv_func__sincos_use=no
7351 fi
7352 rm -f conftest*
7353       ac_ext=c
7354 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7355 ac_cpp='$CPP $CPPFLAGS'
7356 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7357 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7358 cross_compiling=$ac_cv_prog_cc_cross
7359
7360     
7361 fi
7362
7363   fi
7364   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7365
7366     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7367       for ac_func in _sincos
7368 do
7369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7370 echo "configure:7371: checking for $ac_func" >&5
7371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7372   echo $ac_n "(cached) $ac_c" 1>&6
7373 else
7374   cat > conftest.$ac_ext <<EOF
7375 #line 7376 "configure"
7376 #include "confdefs.h"
7377 /* System header to define __stub macros and hopefully few prototypes,
7378     which can conflict with char $ac_func(); below.  */
7379 #include <assert.h>
7380 /* Override any gcc2 internal prototype to avoid an error.  */
7381 /* We use char because int might match the return type of a gcc2
7382     builtin and then its argument prototype would still apply.  */
7383 char $ac_func();
7384
7385 int main() {
7386
7387 /* The GNU C library defines this for functions which it implements
7388     to always fail with ENOSYS.  Some functions are actually named
7389     something starting with __ and the normal name is an alias.  */
7390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7391 choke me
7392 #else
7393 $ac_func();
7394 #endif
7395
7396 ; return 0; }
7397 EOF
7398 if { (eval echo configure:7399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7399   rm -rf conftest*
7400   eval "ac_cv_func_$ac_func=yes"
7401 else
7402   echo "configure: failed program was:" >&5
7403   cat conftest.$ac_ext >&5
7404   rm -rf conftest*
7405   eval "ac_cv_func_$ac_func=no"
7406 fi
7407 rm -f conftest*
7408 fi
7409
7410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7411   echo "$ac_t""yes" 1>&6
7412     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7413   cat >> confdefs.h <<EOF
7414 #define $ac_tr_func 1
7415 EOF
7416  
7417 else
7418   echo "$ac_t""no" 1>&6
7419 fi
7420 done
7421     
7422     fi
7423   fi
7424
7425   
7426   
7427   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7428 echo "configure:7429: checking for fpclass declaration" >&5
7429   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7430     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7431   echo $ac_n "(cached) $ac_c" 1>&6
7432 else
7433   
7434       
7435       ac_ext=C
7436 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7437 ac_cpp='$CXXCPP $CPPFLAGS'
7438 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7439 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7440 cross_compiling=$ac_cv_prog_cxx_cross
7441
7442       cat > conftest.$ac_ext <<EOF
7443 #line 7444 "configure"
7444 #include "confdefs.h"
7445 #include <math.h>
7446                       #ifdef HAVE_IEEEFP_H
7447                       #include <ieeefp.h>
7448                       #endif
7449                      
7450 int main() {
7451  fpclass(0);
7452 ; return 0; }
7453 EOF
7454 if { (eval echo configure:7455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7455   rm -rf conftest*
7456   glibcpp_cv_func_fpclass_use=yes
7457 else
7458   echo "configure: failed program was:" >&5
7459   cat conftest.$ac_ext >&5
7460   rm -rf conftest*
7461   glibcpp_cv_func_fpclass_use=no
7462 fi
7463 rm -f conftest*
7464       ac_ext=c
7465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7466 ac_cpp='$CPP $CPPFLAGS'
7467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7469 cross_compiling=$ac_cv_prog_cc_cross
7470
7471     
7472 fi
7473
7474   fi
7475   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7476
7477   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7478     for ac_func in fpclass
7479 do
7480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7481 echo "configure:7482: checking for $ac_func" >&5
7482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7483   echo $ac_n "(cached) $ac_c" 1>&6
7484 else
7485   cat > conftest.$ac_ext <<EOF
7486 #line 7487 "configure"
7487 #include "confdefs.h"
7488 /* System header to define __stub macros and hopefully few prototypes,
7489     which can conflict with char $ac_func(); below.  */
7490 #include <assert.h>
7491 /* Override any gcc2 internal prototype to avoid an error.  */
7492 /* We use char because int might match the return type of a gcc2
7493     builtin and then its argument prototype would still apply.  */
7494 char $ac_func();
7495
7496 int main() {
7497
7498 /* The GNU C library defines this for functions which it implements
7499     to always fail with ENOSYS.  Some functions are actually named
7500     something starting with __ and the normal name is an alias.  */
7501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7502 choke me
7503 #else
7504 $ac_func();
7505 #endif
7506
7507 ; return 0; }
7508 EOF
7509 if { (eval echo configure:7510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7510   rm -rf conftest*
7511   eval "ac_cv_func_$ac_func=yes"
7512 else
7513   echo "configure: failed program was:" >&5
7514   cat conftest.$ac_ext >&5
7515   rm -rf conftest*
7516   eval "ac_cv_func_$ac_func=no"
7517 fi
7518 rm -f conftest*
7519 fi
7520
7521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7522   echo "$ac_t""yes" 1>&6
7523     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7524   cat >> confdefs.h <<EOF
7525 #define $ac_tr_func 1
7526 EOF
7527  
7528 else
7529   echo "$ac_t""no" 1>&6
7530 fi
7531 done
7532     
7533   else
7534     
7535   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7536 echo "configure:7537: checking for _fpclass declaration" >&5
7537   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7538     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7539   echo $ac_n "(cached) $ac_c" 1>&6
7540 else
7541   
7542       
7543       ac_ext=C
7544 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7545 ac_cpp='$CXXCPP $CPPFLAGS'
7546 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7547 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7548 cross_compiling=$ac_cv_prog_cxx_cross
7549
7550       cat > conftest.$ac_ext <<EOF
7551 #line 7552 "configure"
7552 #include "confdefs.h"
7553 #include <math.h>
7554                       #ifdef HAVE_IEEEFP_H
7555                       #include <ieeefp.h>
7556                       #endif
7557                      
7558 int main() {
7559  _fpclass(0);
7560 ; return 0; }
7561 EOF
7562 if { (eval echo configure:7563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7563   rm -rf conftest*
7564   glibcpp_cv_func__fpclass_use=yes
7565 else
7566   echo "configure: failed program was:" >&5
7567   cat conftest.$ac_ext >&5
7568   rm -rf conftest*
7569   glibcpp_cv_func__fpclass_use=no
7570 fi
7571 rm -f conftest*
7572       ac_ext=c
7573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7574 ac_cpp='$CPP $CPPFLAGS'
7575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7577 cross_compiling=$ac_cv_prog_cc_cross
7578
7579     
7580 fi
7581
7582   fi
7583   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7584
7585     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7586       for ac_func in _fpclass
7587 do
7588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7589 echo "configure:7590: checking for $ac_func" >&5
7590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7591   echo $ac_n "(cached) $ac_c" 1>&6
7592 else
7593   cat > conftest.$ac_ext <<EOF
7594 #line 7595 "configure"
7595 #include "confdefs.h"
7596 /* System header to define __stub macros and hopefully few prototypes,
7597     which can conflict with char $ac_func(); below.  */
7598 #include <assert.h>
7599 /* Override any gcc2 internal prototype to avoid an error.  */
7600 /* We use char because int might match the return type of a gcc2
7601     builtin and then its argument prototype would still apply.  */
7602 char $ac_func();
7603
7604 int main() {
7605
7606 /* The GNU C library defines this for functions which it implements
7607     to always fail with ENOSYS.  Some functions are actually named
7608     something starting with __ and the normal name is an alias.  */
7609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7610 choke me
7611 #else
7612 $ac_func();
7613 #endif
7614
7615 ; return 0; }
7616 EOF
7617 if { (eval echo configure:7618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7618   rm -rf conftest*
7619   eval "ac_cv_func_$ac_func=yes"
7620 else
7621   echo "configure: failed program was:" >&5
7622   cat conftest.$ac_ext >&5
7623   rm -rf conftest*
7624   eval "ac_cv_func_$ac_func=no"
7625 fi
7626 rm -f conftest*
7627 fi
7628
7629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7630   echo "$ac_t""yes" 1>&6
7631     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7632   cat >> confdefs.h <<EOF
7633 #define $ac_tr_func 1
7634 EOF
7635  
7636 else
7637   echo "$ac_t""no" 1>&6
7638 fi
7639 done
7640     
7641     fi
7642   fi
7643
7644   
7645   
7646   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7647 echo "configure:7648: checking for qfpclass declaration" >&5
7648   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7649     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7650   echo $ac_n "(cached) $ac_c" 1>&6
7651 else
7652   
7653       
7654       ac_ext=C
7655 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7656 ac_cpp='$CXXCPP $CPPFLAGS'
7657 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7658 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7659 cross_compiling=$ac_cv_prog_cxx_cross
7660
7661       cat > conftest.$ac_ext <<EOF
7662 #line 7663 "configure"
7663 #include "confdefs.h"
7664 #include <math.h>
7665                       #ifdef HAVE_IEEEFP_H
7666                       #include <ieeefp.h>
7667                       #endif
7668                      
7669 int main() {
7670  qfpclass(0);
7671 ; return 0; }
7672 EOF
7673 if { (eval echo configure:7674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7674   rm -rf conftest*
7675   glibcpp_cv_func_qfpclass_use=yes
7676 else
7677   echo "configure: failed program was:" >&5
7678   cat conftest.$ac_ext >&5
7679   rm -rf conftest*
7680   glibcpp_cv_func_qfpclass_use=no
7681 fi
7682 rm -f conftest*
7683       ac_ext=c
7684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7685 ac_cpp='$CPP $CPPFLAGS'
7686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7688 cross_compiling=$ac_cv_prog_cc_cross
7689
7690     
7691 fi
7692
7693   fi
7694   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7695
7696   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7697     for ac_func in qfpclass
7698 do
7699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7700 echo "configure:7701: checking for $ac_func" >&5
7701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7702   echo $ac_n "(cached) $ac_c" 1>&6
7703 else
7704   cat > conftest.$ac_ext <<EOF
7705 #line 7706 "configure"
7706 #include "confdefs.h"
7707 /* System header to define __stub macros and hopefully few prototypes,
7708     which can conflict with char $ac_func(); below.  */
7709 #include <assert.h>
7710 /* Override any gcc2 internal prototype to avoid an error.  */
7711 /* We use char because int might match the return type of a gcc2
7712     builtin and then its argument prototype would still apply.  */
7713 char $ac_func();
7714
7715 int main() {
7716
7717 /* The GNU C library defines this for functions which it implements
7718     to always fail with ENOSYS.  Some functions are actually named
7719     something starting with __ and the normal name is an alias.  */
7720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7721 choke me
7722 #else
7723 $ac_func();
7724 #endif
7725
7726 ; return 0; }
7727 EOF
7728 if { (eval echo configure:7729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7729   rm -rf conftest*
7730   eval "ac_cv_func_$ac_func=yes"
7731 else
7732   echo "configure: failed program was:" >&5
7733   cat conftest.$ac_ext >&5
7734   rm -rf conftest*
7735   eval "ac_cv_func_$ac_func=no"
7736 fi
7737 rm -f conftest*
7738 fi
7739
7740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7741   echo "$ac_t""yes" 1>&6
7742     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7743   cat >> confdefs.h <<EOF
7744 #define $ac_tr_func 1
7745 EOF
7746  
7747 else
7748   echo "$ac_t""no" 1>&6
7749 fi
7750 done
7751     
7752   else
7753     
7754   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7755 echo "configure:7756: checking for _qfpclass declaration" >&5
7756   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7757     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7758   echo $ac_n "(cached) $ac_c" 1>&6
7759 else
7760   
7761       
7762       ac_ext=C
7763 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7764 ac_cpp='$CXXCPP $CPPFLAGS'
7765 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7766 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7767 cross_compiling=$ac_cv_prog_cxx_cross
7768
7769       cat > conftest.$ac_ext <<EOF
7770 #line 7771 "configure"
7771 #include "confdefs.h"
7772 #include <math.h>
7773                       #ifdef HAVE_IEEEFP_H
7774                       #include <ieeefp.h>
7775                       #endif
7776                      
7777 int main() {
7778  _qfpclass(0);
7779 ; return 0; }
7780 EOF
7781 if { (eval echo configure:7782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7782   rm -rf conftest*
7783   glibcpp_cv_func__qfpclass_use=yes
7784 else
7785   echo "configure: failed program was:" >&5
7786   cat conftest.$ac_ext >&5
7787   rm -rf conftest*
7788   glibcpp_cv_func__qfpclass_use=no
7789 fi
7790 rm -f conftest*
7791       ac_ext=c
7792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7793 ac_cpp='$CPP $CPPFLAGS'
7794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7796 cross_compiling=$ac_cv_prog_cc_cross
7797
7798     
7799 fi
7800
7801   fi
7802   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7803
7804     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7805       for ac_func in _qfpclass
7806 do
7807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7808 echo "configure:7809: checking for $ac_func" >&5
7809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7810   echo $ac_n "(cached) $ac_c" 1>&6
7811 else
7812   cat > conftest.$ac_ext <<EOF
7813 #line 7814 "configure"
7814 #include "confdefs.h"
7815 /* System header to define __stub macros and hopefully few prototypes,
7816     which can conflict with char $ac_func(); below.  */
7817 #include <assert.h>
7818 /* Override any gcc2 internal prototype to avoid an error.  */
7819 /* We use char because int might match the return type of a gcc2
7820     builtin and then its argument prototype would still apply.  */
7821 char $ac_func();
7822
7823 int main() {
7824
7825 /* The GNU C library defines this for functions which it implements
7826     to always fail with ENOSYS.  Some functions are actually named
7827     something starting with __ and the normal name is an alias.  */
7828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7829 choke me
7830 #else
7831 $ac_func();
7832 #endif
7833
7834 ; return 0; }
7835 EOF
7836 if { (eval echo configure:7837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7837   rm -rf conftest*
7838   eval "ac_cv_func_$ac_func=yes"
7839 else
7840   echo "configure: failed program was:" >&5
7841   cat conftest.$ac_ext >&5
7842   rm -rf conftest*
7843   eval "ac_cv_func_$ac_func=no"
7844 fi
7845 rm -f conftest*
7846 fi
7847
7848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7849   echo "$ac_t""yes" 1>&6
7850     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7851   cat >> confdefs.h <<EOF
7852 #define $ac_tr_func 1
7853 EOF
7854  
7855 else
7856   echo "$ac_t""no" 1>&6
7857 fi
7858 done
7859     
7860     fi
7861   fi
7862
7863
7864     
7865   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
7866 echo "configure:7867: checking for float trig functions" >&5
7867   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
7868   echo $ac_n "(cached) $ac_c" 1>&6
7869 else
7870   
7871     
7872     ac_ext=C
7873 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7874 ac_cpp='$CXXCPP $CPPFLAGS'
7875 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7876 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7877 cross_compiling=$ac_cv_prog_cxx_cross
7878
7879     cat > conftest.$ac_ext <<EOF
7880 #line 7881 "configure"
7881 #include "confdefs.h"
7882 #include <math.h>
7883 int main() {
7884  `for x in acosf asinf atanf \
7885                                           cosf sinf tanf \
7886                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
7887 ; return 0; }
7888 EOF
7889 if { (eval echo configure:7890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7890   rm -rf conftest*
7891   glibcpp_cv_func_float_trig_use=yes
7892 else
7893   echo "configure: failed program was:" >&5
7894   cat conftest.$ac_ext >&5
7895   rm -rf conftest*
7896   glibcpp_cv_func_float_trig_use=no
7897 fi
7898 rm -f conftest*
7899     ac_ext=c
7900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7903 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7904 cross_compiling=$ac_cv_prog_cc_cross
7905
7906 fi
7907
7908   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
7909   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
7910     for ac_func in acosf asinf atanf \
7911                                           cosf sinf tanf \
7912                                           coshf sinhf tanhf
7913 do
7914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7915 echo "configure:7916: checking for $ac_func" >&5
7916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7917   echo $ac_n "(cached) $ac_c" 1>&6
7918 else
7919   cat > conftest.$ac_ext <<EOF
7920 #line 7921 "configure"
7921 #include "confdefs.h"
7922 /* System header to define __stub macros and hopefully few prototypes,
7923     which can conflict with char $ac_func(); below.  */
7924 #include <assert.h>
7925 /* Override any gcc2 internal prototype to avoid an error.  */
7926 /* We use char because int might match the return type of a gcc2
7927     builtin and then its argument prototype would still apply.  */
7928 char $ac_func();
7929
7930 int main() {
7931
7932 /* The GNU C library defines this for functions which it implements
7933     to always fail with ENOSYS.  Some functions are actually named
7934     something starting with __ and the normal name is an alias.  */
7935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7936 choke me
7937 #else
7938 $ac_func();
7939 #endif
7940
7941 ; return 0; }
7942 EOF
7943 if { (eval echo configure:7944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7944   rm -rf conftest*
7945   eval "ac_cv_func_$ac_func=yes"
7946 else
7947   echo "configure: failed program was:" >&5
7948   cat conftest.$ac_ext >&5
7949   rm -rf conftest*
7950   eval "ac_cv_func_$ac_func=no"
7951 fi
7952 rm -f conftest*
7953 fi
7954
7955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7956   echo "$ac_t""yes" 1>&6
7957     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7958   cat >> confdefs.h <<EOF
7959 #define $ac_tr_func 1
7960 EOF
7961  
7962 else
7963   echo "$ac_t""no" 1>&6
7964 fi
7965 done
7966
7967   fi
7968
7969   
7970   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
7971 echo "configure:7972: checking for float round functions" >&5
7972   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
7973   echo $ac_n "(cached) $ac_c" 1>&6
7974 else
7975   
7976     
7977     ac_ext=C
7978 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7979 ac_cpp='$CXXCPP $CPPFLAGS'
7980 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7981 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7982 cross_compiling=$ac_cv_prog_cxx_cross
7983
7984     cat > conftest.$ac_ext <<EOF
7985 #line 7986 "configure"
7986 #include "confdefs.h"
7987 #include <math.h>
7988 int main() {
7989  `for x in ceilf floorf; do echo "$x (0);"; done` 
7990 ; return 0; }
7991 EOF
7992 if { (eval echo configure:7993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7993   rm -rf conftest*
7994   glibcpp_cv_func_float_round_use=yes
7995 else
7996   echo "configure: failed program was:" >&5
7997   cat conftest.$ac_ext >&5
7998   rm -rf conftest*
7999   glibcpp_cv_func_float_round_use=no
8000 fi
8001 rm -f conftest*
8002     ac_ext=c
8003 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8004 ac_cpp='$CPP $CPPFLAGS'
8005 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8006 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8007 cross_compiling=$ac_cv_prog_cc_cross
8008
8009 fi
8010
8011   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8012   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8013     for ac_func in ceilf floorf
8014 do
8015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8016 echo "configure:8017: checking for $ac_func" >&5
8017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8018   echo $ac_n "(cached) $ac_c" 1>&6
8019 else
8020   cat > conftest.$ac_ext <<EOF
8021 #line 8022 "configure"
8022 #include "confdefs.h"
8023 /* System header to define __stub macros and hopefully few prototypes,
8024     which can conflict with char $ac_func(); below.  */
8025 #include <assert.h>
8026 /* Override any gcc2 internal prototype to avoid an error.  */
8027 /* We use char because int might match the return type of a gcc2
8028     builtin and then its argument prototype would still apply.  */
8029 char $ac_func();
8030
8031 int main() {
8032
8033 /* The GNU C library defines this for functions which it implements
8034     to always fail with ENOSYS.  Some functions are actually named
8035     something starting with __ and the normal name is an alias.  */
8036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8037 choke me
8038 #else
8039 $ac_func();
8040 #endif
8041
8042 ; return 0; }
8043 EOF
8044 if { (eval echo configure:8045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8045   rm -rf conftest*
8046   eval "ac_cv_func_$ac_func=yes"
8047 else
8048   echo "configure: failed program was:" >&5
8049   cat conftest.$ac_ext >&5
8050   rm -rf conftest*
8051   eval "ac_cv_func_$ac_func=no"
8052 fi
8053 rm -f conftest*
8054 fi
8055
8056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8057   echo "$ac_t""yes" 1>&6
8058     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8059   cat >> confdefs.h <<EOF
8060 #define $ac_tr_func 1
8061 EOF
8062  
8063 else
8064   echo "$ac_t""no" 1>&6
8065 fi
8066 done
8067
8068   fi
8069
8070   
8071   
8072   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8073 echo "configure:8074: checking for isnanf declaration" >&5
8074   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8075     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8076   echo $ac_n "(cached) $ac_c" 1>&6
8077 else
8078   
8079       
8080       ac_ext=C
8081 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8082 ac_cpp='$CXXCPP $CPPFLAGS'
8083 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8084 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8085 cross_compiling=$ac_cv_prog_cxx_cross
8086
8087       cat > conftest.$ac_ext <<EOF
8088 #line 8089 "configure"
8089 #include "confdefs.h"
8090 #include <math.h>
8091                       #ifdef HAVE_IEEEFP_H
8092                       #include <ieeefp.h>
8093                       #endif
8094                      
8095 int main() {
8096  isnanf(0);
8097 ; return 0; }
8098 EOF
8099 if { (eval echo configure:8100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8100   rm -rf conftest*
8101   glibcpp_cv_func_isnanf_use=yes
8102 else
8103   echo "configure: failed program was:" >&5
8104   cat conftest.$ac_ext >&5
8105   rm -rf conftest*
8106   glibcpp_cv_func_isnanf_use=no
8107 fi
8108 rm -f conftest*
8109       ac_ext=c
8110 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8111 ac_cpp='$CPP $CPPFLAGS'
8112 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8113 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8114 cross_compiling=$ac_cv_prog_cc_cross
8115
8116     
8117 fi
8118
8119   fi
8120   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8121
8122   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8123     for ac_func in isnanf
8124 do
8125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8126 echo "configure:8127: checking for $ac_func" >&5
8127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8128   echo $ac_n "(cached) $ac_c" 1>&6
8129 else
8130   cat > conftest.$ac_ext <<EOF
8131 #line 8132 "configure"
8132 #include "confdefs.h"
8133 /* System header to define __stub macros and hopefully few prototypes,
8134     which can conflict with char $ac_func(); below.  */
8135 #include <assert.h>
8136 /* Override any gcc2 internal prototype to avoid an error.  */
8137 /* We use char because int might match the return type of a gcc2
8138     builtin and then its argument prototype would still apply.  */
8139 char $ac_func();
8140
8141 int main() {
8142
8143 /* The GNU C library defines this for functions which it implements
8144     to always fail with ENOSYS.  Some functions are actually named
8145     something starting with __ and the normal name is an alias.  */
8146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8147 choke me
8148 #else
8149 $ac_func();
8150 #endif
8151
8152 ; return 0; }
8153 EOF
8154 if { (eval echo configure:8155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8155   rm -rf conftest*
8156   eval "ac_cv_func_$ac_func=yes"
8157 else
8158   echo "configure: failed program was:" >&5
8159   cat conftest.$ac_ext >&5
8160   rm -rf conftest*
8161   eval "ac_cv_func_$ac_func=no"
8162 fi
8163 rm -f conftest*
8164 fi
8165
8166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8167   echo "$ac_t""yes" 1>&6
8168     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8169   cat >> confdefs.h <<EOF
8170 #define $ac_tr_func 1
8171 EOF
8172  
8173 else
8174   echo "$ac_t""no" 1>&6
8175 fi
8176 done
8177     
8178   else
8179     
8180   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8181 echo "configure:8182: checking for _isnanf declaration" >&5
8182   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8183     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8184   echo $ac_n "(cached) $ac_c" 1>&6
8185 else
8186   
8187       
8188       ac_ext=C
8189 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8190 ac_cpp='$CXXCPP $CPPFLAGS'
8191 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8192 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8193 cross_compiling=$ac_cv_prog_cxx_cross
8194
8195       cat > conftest.$ac_ext <<EOF
8196 #line 8197 "configure"
8197 #include "confdefs.h"
8198 #include <math.h>
8199                       #ifdef HAVE_IEEEFP_H
8200                       #include <ieeefp.h>
8201                       #endif
8202                      
8203 int main() {
8204  _isnanf(0);
8205 ; return 0; }
8206 EOF
8207 if { (eval echo configure:8208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8208   rm -rf conftest*
8209   glibcpp_cv_func__isnanf_use=yes
8210 else
8211   echo "configure: failed program was:" >&5
8212   cat conftest.$ac_ext >&5
8213   rm -rf conftest*
8214   glibcpp_cv_func__isnanf_use=no
8215 fi
8216 rm -f conftest*
8217       ac_ext=c
8218 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8219 ac_cpp='$CPP $CPPFLAGS'
8220 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8221 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8222 cross_compiling=$ac_cv_prog_cc_cross
8223
8224     
8225 fi
8226
8227   fi
8228   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8229
8230     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8231       for ac_func in _isnanf
8232 do
8233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8234 echo "configure:8235: checking for $ac_func" >&5
8235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8236   echo $ac_n "(cached) $ac_c" 1>&6
8237 else
8238   cat > conftest.$ac_ext <<EOF
8239 #line 8240 "configure"
8240 #include "confdefs.h"
8241 /* System header to define __stub macros and hopefully few prototypes,
8242     which can conflict with char $ac_func(); below.  */
8243 #include <assert.h>
8244 /* Override any gcc2 internal prototype to avoid an error.  */
8245 /* We use char because int might match the return type of a gcc2
8246     builtin and then its argument prototype would still apply.  */
8247 char $ac_func();
8248
8249 int main() {
8250
8251 /* The GNU C library defines this for functions which it implements
8252     to always fail with ENOSYS.  Some functions are actually named
8253     something starting with __ and the normal name is an alias.  */
8254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8255 choke me
8256 #else
8257 $ac_func();
8258 #endif
8259
8260 ; return 0; }
8261 EOF
8262 if { (eval echo configure:8263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8263   rm -rf conftest*
8264   eval "ac_cv_func_$ac_func=yes"
8265 else
8266   echo "configure: failed program was:" >&5
8267   cat conftest.$ac_ext >&5
8268   rm -rf conftest*
8269   eval "ac_cv_func_$ac_func=no"
8270 fi
8271 rm -f conftest*
8272 fi
8273
8274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8275   echo "$ac_t""yes" 1>&6
8276     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8277   cat >> confdefs.h <<EOF
8278 #define $ac_tr_func 1
8279 EOF
8280  
8281 else
8282   echo "$ac_t""no" 1>&6
8283 fi
8284 done
8285     
8286     fi
8287   fi
8288
8289   
8290   
8291   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8292 echo "configure:8293: checking for isinff declaration" >&5
8293   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8294     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8295   echo $ac_n "(cached) $ac_c" 1>&6
8296 else
8297   
8298       
8299       ac_ext=C
8300 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8301 ac_cpp='$CXXCPP $CPPFLAGS'
8302 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8303 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8304 cross_compiling=$ac_cv_prog_cxx_cross
8305
8306       cat > conftest.$ac_ext <<EOF
8307 #line 8308 "configure"
8308 #include "confdefs.h"
8309 #include <math.h>
8310                       #ifdef HAVE_IEEEFP_H
8311                       #include <ieeefp.h>
8312                       #endif
8313                      
8314 int main() {
8315  isinff(0);
8316 ; return 0; }
8317 EOF
8318 if { (eval echo configure:8319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8319   rm -rf conftest*
8320   glibcpp_cv_func_isinff_use=yes
8321 else
8322   echo "configure: failed program was:" >&5
8323   cat conftest.$ac_ext >&5
8324   rm -rf conftest*
8325   glibcpp_cv_func_isinff_use=no
8326 fi
8327 rm -f conftest*
8328       ac_ext=c
8329 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8330 ac_cpp='$CPP $CPPFLAGS'
8331 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8332 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8333 cross_compiling=$ac_cv_prog_cc_cross
8334
8335     
8336 fi
8337
8338   fi
8339   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8340
8341   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8342     for ac_func in isinff
8343 do
8344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8345 echo "configure:8346: checking for $ac_func" >&5
8346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8347   echo $ac_n "(cached) $ac_c" 1>&6
8348 else
8349   cat > conftest.$ac_ext <<EOF
8350 #line 8351 "configure"
8351 #include "confdefs.h"
8352 /* System header to define __stub macros and hopefully few prototypes,
8353     which can conflict with char $ac_func(); below.  */
8354 #include <assert.h>
8355 /* Override any gcc2 internal prototype to avoid an error.  */
8356 /* We use char because int might match the return type of a gcc2
8357     builtin and then its argument prototype would still apply.  */
8358 char $ac_func();
8359
8360 int main() {
8361
8362 /* The GNU C library defines this for functions which it implements
8363     to always fail with ENOSYS.  Some functions are actually named
8364     something starting with __ and the normal name is an alias.  */
8365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8366 choke me
8367 #else
8368 $ac_func();
8369 #endif
8370
8371 ; return 0; }
8372 EOF
8373 if { (eval echo configure:8374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8374   rm -rf conftest*
8375   eval "ac_cv_func_$ac_func=yes"
8376 else
8377   echo "configure: failed program was:" >&5
8378   cat conftest.$ac_ext >&5
8379   rm -rf conftest*
8380   eval "ac_cv_func_$ac_func=no"
8381 fi
8382 rm -f conftest*
8383 fi
8384
8385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8386   echo "$ac_t""yes" 1>&6
8387     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8388   cat >> confdefs.h <<EOF
8389 #define $ac_tr_func 1
8390 EOF
8391  
8392 else
8393   echo "$ac_t""no" 1>&6
8394 fi
8395 done
8396     
8397   else
8398     
8399   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8400 echo "configure:8401: checking for _isinff declaration" >&5
8401   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8402     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8403   echo $ac_n "(cached) $ac_c" 1>&6
8404 else
8405   
8406       
8407       ac_ext=C
8408 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8409 ac_cpp='$CXXCPP $CPPFLAGS'
8410 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8411 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8412 cross_compiling=$ac_cv_prog_cxx_cross
8413
8414       cat > conftest.$ac_ext <<EOF
8415 #line 8416 "configure"
8416 #include "confdefs.h"
8417 #include <math.h>
8418                       #ifdef HAVE_IEEEFP_H
8419                       #include <ieeefp.h>
8420                       #endif
8421                      
8422 int main() {
8423  _isinff(0);
8424 ; return 0; }
8425 EOF
8426 if { (eval echo configure:8427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8427   rm -rf conftest*
8428   glibcpp_cv_func__isinff_use=yes
8429 else
8430   echo "configure: failed program was:" >&5
8431   cat conftest.$ac_ext >&5
8432   rm -rf conftest*
8433   glibcpp_cv_func__isinff_use=no
8434 fi
8435 rm -f conftest*
8436       ac_ext=c
8437 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8438 ac_cpp='$CPP $CPPFLAGS'
8439 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8440 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8441 cross_compiling=$ac_cv_prog_cc_cross
8442
8443     
8444 fi
8445
8446   fi
8447   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8448
8449     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8450       for ac_func in _isinff
8451 do
8452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8453 echo "configure:8454: checking for $ac_func" >&5
8454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8455   echo $ac_n "(cached) $ac_c" 1>&6
8456 else
8457   cat > conftest.$ac_ext <<EOF
8458 #line 8459 "configure"
8459 #include "confdefs.h"
8460 /* System header to define __stub macros and hopefully few prototypes,
8461     which can conflict with char $ac_func(); below.  */
8462 #include <assert.h>
8463 /* Override any gcc2 internal prototype to avoid an error.  */
8464 /* We use char because int might match the return type of a gcc2
8465     builtin and then its argument prototype would still apply.  */
8466 char $ac_func();
8467
8468 int main() {
8469
8470 /* The GNU C library defines this for functions which it implements
8471     to always fail with ENOSYS.  Some functions are actually named
8472     something starting with __ and the normal name is an alias.  */
8473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8474 choke me
8475 #else
8476 $ac_func();
8477 #endif
8478
8479 ; return 0; }
8480 EOF
8481 if { (eval echo configure:8482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8482   rm -rf conftest*
8483   eval "ac_cv_func_$ac_func=yes"
8484 else
8485   echo "configure: failed program was:" >&5
8486   cat conftest.$ac_ext >&5
8487   rm -rf conftest*
8488   eval "ac_cv_func_$ac_func=no"
8489 fi
8490 rm -f conftest*
8491 fi
8492
8493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8494   echo "$ac_t""yes" 1>&6
8495     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8496   cat >> confdefs.h <<EOF
8497 #define $ac_tr_func 1
8498 EOF
8499  
8500 else
8501   echo "$ac_t""no" 1>&6
8502 fi
8503 done
8504     
8505     fi
8506   fi
8507
8508   
8509   
8510   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8511 echo "configure:8512: checking for fabsf declaration" >&5
8512   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8513     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8514   echo $ac_n "(cached) $ac_c" 1>&6
8515 else
8516   
8517       
8518       ac_ext=C
8519 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8520 ac_cpp='$CXXCPP $CPPFLAGS'
8521 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8522 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8523 cross_compiling=$ac_cv_prog_cxx_cross
8524
8525       cat > conftest.$ac_ext <<EOF
8526 #line 8527 "configure"
8527 #include "confdefs.h"
8528 #include <math.h>
8529                       #ifdef HAVE_IEEEFP_H
8530                       #include <ieeefp.h>
8531                       #endif
8532                      
8533 int main() {
8534  fabsf(0);
8535 ; return 0; }
8536 EOF
8537 if { (eval echo configure:8538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8538   rm -rf conftest*
8539   glibcpp_cv_func_fabsf_use=yes
8540 else
8541   echo "configure: failed program was:" >&5
8542   cat conftest.$ac_ext >&5
8543   rm -rf conftest*
8544   glibcpp_cv_func_fabsf_use=no
8545 fi
8546 rm -f conftest*
8547       ac_ext=c
8548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8549 ac_cpp='$CPP $CPPFLAGS'
8550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8552 cross_compiling=$ac_cv_prog_cc_cross
8553
8554     
8555 fi
8556
8557   fi
8558   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8559
8560   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8561     for ac_func in fabsf
8562 do
8563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8564 echo "configure:8565: checking for $ac_func" >&5
8565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8566   echo $ac_n "(cached) $ac_c" 1>&6
8567 else
8568   cat > conftest.$ac_ext <<EOF
8569 #line 8570 "configure"
8570 #include "confdefs.h"
8571 /* System header to define __stub macros and hopefully few prototypes,
8572     which can conflict with char $ac_func(); below.  */
8573 #include <assert.h>
8574 /* Override any gcc2 internal prototype to avoid an error.  */
8575 /* We use char because int might match the return type of a gcc2
8576     builtin and then its argument prototype would still apply.  */
8577 char $ac_func();
8578
8579 int main() {
8580
8581 /* The GNU C library defines this for functions which it implements
8582     to always fail with ENOSYS.  Some functions are actually named
8583     something starting with __ and the normal name is an alias.  */
8584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8585 choke me
8586 #else
8587 $ac_func();
8588 #endif
8589
8590 ; return 0; }
8591 EOF
8592 if { (eval echo configure:8593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8593   rm -rf conftest*
8594   eval "ac_cv_func_$ac_func=yes"
8595 else
8596   echo "configure: failed program was:" >&5
8597   cat conftest.$ac_ext >&5
8598   rm -rf conftest*
8599   eval "ac_cv_func_$ac_func=no"
8600 fi
8601 rm -f conftest*
8602 fi
8603
8604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8605   echo "$ac_t""yes" 1>&6
8606     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8607   cat >> confdefs.h <<EOF
8608 #define $ac_tr_func 1
8609 EOF
8610  
8611 else
8612   echo "$ac_t""no" 1>&6
8613 fi
8614 done
8615     
8616   else
8617     
8618   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
8619 echo "configure:8620: checking for _fabsf declaration" >&5
8620   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
8621     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
8622   echo $ac_n "(cached) $ac_c" 1>&6
8623 else
8624   
8625       
8626       ac_ext=C
8627 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8628 ac_cpp='$CXXCPP $CPPFLAGS'
8629 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8630 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8631 cross_compiling=$ac_cv_prog_cxx_cross
8632
8633       cat > conftest.$ac_ext <<EOF
8634 #line 8635 "configure"
8635 #include "confdefs.h"
8636 #include <math.h>
8637                       #ifdef HAVE_IEEEFP_H
8638                       #include <ieeefp.h>
8639                       #endif
8640                      
8641 int main() {
8642  _fabsf(0);
8643 ; return 0; }
8644 EOF
8645 if { (eval echo configure:8646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8646   rm -rf conftest*
8647   glibcpp_cv_func__fabsf_use=yes
8648 else
8649   echo "configure: failed program was:" >&5
8650   cat conftest.$ac_ext >&5
8651   rm -rf conftest*
8652   glibcpp_cv_func__fabsf_use=no
8653 fi
8654 rm -f conftest*
8655       ac_ext=c
8656 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8657 ac_cpp='$CPP $CPPFLAGS'
8658 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8659 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8660 cross_compiling=$ac_cv_prog_cc_cross
8661
8662     
8663 fi
8664
8665   fi
8666   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
8667
8668     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
8669       for ac_func in _fabsf
8670 do
8671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8672 echo "configure:8673: checking for $ac_func" >&5
8673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8674   echo $ac_n "(cached) $ac_c" 1>&6
8675 else
8676   cat > conftest.$ac_ext <<EOF
8677 #line 8678 "configure"
8678 #include "confdefs.h"
8679 /* System header to define __stub macros and hopefully few prototypes,
8680     which can conflict with char $ac_func(); below.  */
8681 #include <assert.h>
8682 /* Override any gcc2 internal prototype to avoid an error.  */
8683 /* We use char because int might match the return type of a gcc2
8684     builtin and then its argument prototype would still apply.  */
8685 char $ac_func();
8686
8687 int main() {
8688
8689 /* The GNU C library defines this for functions which it implements
8690     to always fail with ENOSYS.  Some functions are actually named
8691     something starting with __ and the normal name is an alias.  */
8692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8693 choke me
8694 #else
8695 $ac_func();
8696 #endif
8697
8698 ; return 0; }
8699 EOF
8700 if { (eval echo configure:8701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8701   rm -rf conftest*
8702   eval "ac_cv_func_$ac_func=yes"
8703 else
8704   echo "configure: failed program was:" >&5
8705   cat conftest.$ac_ext >&5
8706   rm -rf conftest*
8707   eval "ac_cv_func_$ac_func=no"
8708 fi
8709 rm -f conftest*
8710 fi
8711
8712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8713   echo "$ac_t""yes" 1>&6
8714     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8715   cat >> confdefs.h <<EOF
8716 #define $ac_tr_func 1
8717 EOF
8718  
8719 else
8720   echo "$ac_t""no" 1>&6
8721 fi
8722 done
8723     
8724     fi
8725   fi
8726
8727   
8728   
8729   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
8730 echo "configure:8731: checking for fmodf declaration" >&5
8731   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
8732     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
8733   echo $ac_n "(cached) $ac_c" 1>&6
8734 else
8735   
8736       
8737       ac_ext=C
8738 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8739 ac_cpp='$CXXCPP $CPPFLAGS'
8740 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8741 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8742 cross_compiling=$ac_cv_prog_cxx_cross
8743
8744       cat > conftest.$ac_ext <<EOF
8745 #line 8746 "configure"
8746 #include "confdefs.h"
8747 #include <math.h>
8748 int main() {
8749  fmodf(0, 0);
8750 ; return 0; }
8751 EOF
8752 if { (eval echo configure:8753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8753   rm -rf conftest*
8754   glibcpp_cv_func_fmodf_use=yes
8755 else
8756   echo "configure: failed program was:" >&5
8757   cat conftest.$ac_ext >&5
8758   rm -rf conftest*
8759   glibcpp_cv_func_fmodf_use=no
8760 fi
8761 rm -f conftest*
8762       ac_ext=c
8763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8764 ac_cpp='$CPP $CPPFLAGS'
8765 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8766 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8767 cross_compiling=$ac_cv_prog_cc_cross
8768
8769     
8770 fi
8771
8772   fi
8773   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
8774
8775   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
8776     for ac_func in fmodf
8777 do
8778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8779 echo "configure:8780: checking for $ac_func" >&5
8780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8781   echo $ac_n "(cached) $ac_c" 1>&6
8782 else
8783   cat > conftest.$ac_ext <<EOF
8784 #line 8785 "configure"
8785 #include "confdefs.h"
8786 /* System header to define __stub macros and hopefully few prototypes,
8787     which can conflict with char $ac_func(); below.  */
8788 #include <assert.h>
8789 /* Override any gcc2 internal prototype to avoid an error.  */
8790 /* We use char because int might match the return type of a gcc2
8791     builtin and then its argument prototype would still apply.  */
8792 char $ac_func();
8793
8794 int main() {
8795
8796 /* The GNU C library defines this for functions which it implements
8797     to always fail with ENOSYS.  Some functions are actually named
8798     something starting with __ and the normal name is an alias.  */
8799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8800 choke me
8801 #else
8802 $ac_func();
8803 #endif
8804
8805 ; return 0; }
8806 EOF
8807 if { (eval echo configure:8808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8808   rm -rf conftest*
8809   eval "ac_cv_func_$ac_func=yes"
8810 else
8811   echo "configure: failed program was:" >&5
8812   cat conftest.$ac_ext >&5
8813   rm -rf conftest*
8814   eval "ac_cv_func_$ac_func=no"
8815 fi
8816 rm -f conftest*
8817 fi
8818
8819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8820   echo "$ac_t""yes" 1>&6
8821     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8822   cat >> confdefs.h <<EOF
8823 #define $ac_tr_func 1
8824 EOF
8825  
8826 else
8827   echo "$ac_t""no" 1>&6
8828 fi
8829 done
8830     
8831   else
8832     
8833   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
8834 echo "configure:8835: checking for _fmodf declaration" >&5
8835   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
8836     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
8837   echo $ac_n "(cached) $ac_c" 1>&6
8838 else
8839   
8840       
8841       ac_ext=C
8842 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8843 ac_cpp='$CXXCPP $CPPFLAGS'
8844 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8845 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8846 cross_compiling=$ac_cv_prog_cxx_cross
8847
8848       cat > conftest.$ac_ext <<EOF
8849 #line 8850 "configure"
8850 #include "confdefs.h"
8851 #include <math.h>
8852 int main() {
8853  _fmodf(0, 0);
8854 ; return 0; }
8855 EOF
8856 if { (eval echo configure:8857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8857   rm -rf conftest*
8858   glibcpp_cv_func__fmodf_use=yes
8859 else
8860   echo "configure: failed program was:" >&5
8861   cat conftest.$ac_ext >&5
8862   rm -rf conftest*
8863   glibcpp_cv_func__fmodf_use=no
8864 fi
8865 rm -f conftest*
8866       ac_ext=c
8867 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8868 ac_cpp='$CPP $CPPFLAGS'
8869 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8870 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8871 cross_compiling=$ac_cv_prog_cc_cross
8872
8873     
8874 fi
8875
8876   fi
8877   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
8878
8879     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
8880       for ac_func in _fmodf
8881 do
8882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8883 echo "configure:8884: checking for $ac_func" >&5
8884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8885   echo $ac_n "(cached) $ac_c" 1>&6
8886 else
8887   cat > conftest.$ac_ext <<EOF
8888 #line 8889 "configure"
8889 #include "confdefs.h"
8890 /* System header to define __stub macros and hopefully few prototypes,
8891     which can conflict with char $ac_func(); below.  */
8892 #include <assert.h>
8893 /* Override any gcc2 internal prototype to avoid an error.  */
8894 /* We use char because int might match the return type of a gcc2
8895     builtin and then its argument prototype would still apply.  */
8896 char $ac_func();
8897
8898 int main() {
8899
8900 /* The GNU C library defines this for functions which it implements
8901     to always fail with ENOSYS.  Some functions are actually named
8902     something starting with __ and the normal name is an alias.  */
8903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8904 choke me
8905 #else
8906 $ac_func();
8907 #endif
8908
8909 ; return 0; }
8910 EOF
8911 if { (eval echo configure:8912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8912   rm -rf conftest*
8913   eval "ac_cv_func_$ac_func=yes"
8914 else
8915   echo "configure: failed program was:" >&5
8916   cat conftest.$ac_ext >&5
8917   rm -rf conftest*
8918   eval "ac_cv_func_$ac_func=no"
8919 fi
8920 rm -f conftest*
8921 fi
8922
8923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8924   echo "$ac_t""yes" 1>&6
8925     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8926   cat >> confdefs.h <<EOF
8927 #define $ac_tr_func 1
8928 EOF
8929  
8930 else
8931   echo "$ac_t""no" 1>&6
8932 fi
8933 done
8934     
8935     fi
8936   fi
8937
8938   
8939   
8940   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
8941 echo "configure:8942: checking for frexpf declaration" >&5
8942   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
8943     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
8944   echo $ac_n "(cached) $ac_c" 1>&6
8945 else
8946   
8947       
8948       ac_ext=C
8949 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8950 ac_cpp='$CXXCPP $CPPFLAGS'
8951 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8952 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8953 cross_compiling=$ac_cv_prog_cxx_cross
8954
8955       cat > conftest.$ac_ext <<EOF
8956 #line 8957 "configure"
8957 #include "confdefs.h"
8958 #include <math.h>
8959 int main() {
8960  frexpf(0, 0);
8961 ; return 0; }
8962 EOF
8963 if { (eval echo configure:8964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8964   rm -rf conftest*
8965   glibcpp_cv_func_frexpf_use=yes
8966 else
8967   echo "configure: failed program was:" >&5
8968   cat conftest.$ac_ext >&5
8969   rm -rf conftest*
8970   glibcpp_cv_func_frexpf_use=no
8971 fi
8972 rm -f conftest*
8973       ac_ext=c
8974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8975 ac_cpp='$CPP $CPPFLAGS'
8976 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8977 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8978 cross_compiling=$ac_cv_prog_cc_cross
8979
8980     
8981 fi
8982
8983   fi
8984   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
8985
8986   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
8987     for ac_func in frexpf
8988 do
8989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8990 echo "configure:8991: checking for $ac_func" >&5
8991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8992   echo $ac_n "(cached) $ac_c" 1>&6
8993 else
8994   cat > conftest.$ac_ext <<EOF
8995 #line 8996 "configure"
8996 #include "confdefs.h"
8997 /* System header to define __stub macros and hopefully few prototypes,
8998     which can conflict with char $ac_func(); below.  */
8999 #include <assert.h>
9000 /* Override any gcc2 internal prototype to avoid an error.  */
9001 /* We use char because int might match the return type of a gcc2
9002     builtin and then its argument prototype would still apply.  */
9003 char $ac_func();
9004
9005 int main() {
9006
9007 /* The GNU C library defines this for functions which it implements
9008     to always fail with ENOSYS.  Some functions are actually named
9009     something starting with __ and the normal name is an alias.  */
9010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9011 choke me
9012 #else
9013 $ac_func();
9014 #endif
9015
9016 ; return 0; }
9017 EOF
9018 if { (eval echo configure:9019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9019   rm -rf conftest*
9020   eval "ac_cv_func_$ac_func=yes"
9021 else
9022   echo "configure: failed program was:" >&5
9023   cat conftest.$ac_ext >&5
9024   rm -rf conftest*
9025   eval "ac_cv_func_$ac_func=no"
9026 fi
9027 rm -f conftest*
9028 fi
9029
9030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9031   echo "$ac_t""yes" 1>&6
9032     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9033   cat >> confdefs.h <<EOF
9034 #define $ac_tr_func 1
9035 EOF
9036  
9037 else
9038   echo "$ac_t""no" 1>&6
9039 fi
9040 done
9041     
9042   else
9043     
9044   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9045 echo "configure:9046: checking for _frexpf declaration" >&5
9046   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9047     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9048   echo $ac_n "(cached) $ac_c" 1>&6
9049 else
9050   
9051       
9052       ac_ext=C
9053 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9054 ac_cpp='$CXXCPP $CPPFLAGS'
9055 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9056 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9057 cross_compiling=$ac_cv_prog_cxx_cross
9058
9059       cat > conftest.$ac_ext <<EOF
9060 #line 9061 "configure"
9061 #include "confdefs.h"
9062 #include <math.h>
9063 int main() {
9064  _frexpf(0, 0);
9065 ; return 0; }
9066 EOF
9067 if { (eval echo configure:9068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9068   rm -rf conftest*
9069   glibcpp_cv_func__frexpf_use=yes
9070 else
9071   echo "configure: failed program was:" >&5
9072   cat conftest.$ac_ext >&5
9073   rm -rf conftest*
9074   glibcpp_cv_func__frexpf_use=no
9075 fi
9076 rm -f conftest*
9077       ac_ext=c
9078 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9079 ac_cpp='$CPP $CPPFLAGS'
9080 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9081 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9082 cross_compiling=$ac_cv_prog_cc_cross
9083
9084     
9085 fi
9086
9087   fi
9088   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9089
9090     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9091       for ac_func in _frexpf
9092 do
9093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9094 echo "configure:9095: checking for $ac_func" >&5
9095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9096   echo $ac_n "(cached) $ac_c" 1>&6
9097 else
9098   cat > conftest.$ac_ext <<EOF
9099 #line 9100 "configure"
9100 #include "confdefs.h"
9101 /* System header to define __stub macros and hopefully few prototypes,
9102     which can conflict with char $ac_func(); below.  */
9103 #include <assert.h>
9104 /* Override any gcc2 internal prototype to avoid an error.  */
9105 /* We use char because int might match the return type of a gcc2
9106     builtin and then its argument prototype would still apply.  */
9107 char $ac_func();
9108
9109 int main() {
9110
9111 /* The GNU C library defines this for functions which it implements
9112     to always fail with ENOSYS.  Some functions are actually named
9113     something starting with __ and the normal name is an alias.  */
9114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9115 choke me
9116 #else
9117 $ac_func();
9118 #endif
9119
9120 ; return 0; }
9121 EOF
9122 if { (eval echo configure:9123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9123   rm -rf conftest*
9124   eval "ac_cv_func_$ac_func=yes"
9125 else
9126   echo "configure: failed program was:" >&5
9127   cat conftest.$ac_ext >&5
9128   rm -rf conftest*
9129   eval "ac_cv_func_$ac_func=no"
9130 fi
9131 rm -f conftest*
9132 fi
9133
9134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9135   echo "$ac_t""yes" 1>&6
9136     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9137   cat >> confdefs.h <<EOF
9138 #define $ac_tr_func 1
9139 EOF
9140  
9141 else
9142   echo "$ac_t""no" 1>&6
9143 fi
9144 done
9145     
9146     fi
9147   fi
9148
9149   
9150   
9151   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9152 echo "configure:9153: checking for ldexpf declaration" >&5
9153   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
9154     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
9155   echo $ac_n "(cached) $ac_c" 1>&6
9156 else
9157   
9158       
9159       ac_ext=C
9160 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9161 ac_cpp='$CXXCPP $CPPFLAGS'
9162 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9163 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9164 cross_compiling=$ac_cv_prog_cxx_cross
9165
9166       cat > conftest.$ac_ext <<EOF
9167 #line 9168 "configure"
9168 #include "confdefs.h"
9169 #include <math.h>
9170 int main() {
9171  ldexpf(0, 0);
9172 ; return 0; }
9173 EOF
9174 if { (eval echo configure:9175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9175   rm -rf conftest*
9176   glibcpp_cv_func_ldexpf_use=yes
9177 else
9178   echo "configure: failed program was:" >&5
9179   cat conftest.$ac_ext >&5
9180   rm -rf conftest*
9181   glibcpp_cv_func_ldexpf_use=no
9182 fi
9183 rm -f conftest*
9184       ac_ext=c
9185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9186 ac_cpp='$CPP $CPPFLAGS'
9187 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9188 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9189 cross_compiling=$ac_cv_prog_cc_cross
9190
9191     
9192 fi
9193
9194   fi
9195   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
9196
9197   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
9198     for ac_func in ldexpf
9199 do
9200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9201 echo "configure:9202: checking for $ac_func" >&5
9202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9203   echo $ac_n "(cached) $ac_c" 1>&6
9204 else
9205   cat > conftest.$ac_ext <<EOF
9206 #line 9207 "configure"
9207 #include "confdefs.h"
9208 /* System header to define __stub macros and hopefully few prototypes,
9209     which can conflict with char $ac_func(); below.  */
9210 #include <assert.h>
9211 /* Override any gcc2 internal prototype to avoid an error.  */
9212 /* We use char because int might match the return type of a gcc2
9213     builtin and then its argument prototype would still apply.  */
9214 char $ac_func();
9215
9216 int main() {
9217
9218 /* The GNU C library defines this for functions which it implements
9219     to always fail with ENOSYS.  Some functions are actually named
9220     something starting with __ and the normal name is an alias.  */
9221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9222 choke me
9223 #else
9224 $ac_func();
9225 #endif
9226
9227 ; return 0; }
9228 EOF
9229 if { (eval echo configure:9230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9230   rm -rf conftest*
9231   eval "ac_cv_func_$ac_func=yes"
9232 else
9233   echo "configure: failed program was:" >&5
9234   cat conftest.$ac_ext >&5
9235   rm -rf conftest*
9236   eval "ac_cv_func_$ac_func=no"
9237 fi
9238 rm -f conftest*
9239 fi
9240
9241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9242   echo "$ac_t""yes" 1>&6
9243     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9244   cat >> confdefs.h <<EOF
9245 #define $ac_tr_func 1
9246 EOF
9247  
9248 else
9249   echo "$ac_t""no" 1>&6
9250 fi
9251 done
9252     
9253   else
9254     
9255   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
9256 echo "configure:9257: checking for _ldexpf declaration" >&5
9257   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
9258     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
9259   echo $ac_n "(cached) $ac_c" 1>&6
9260 else
9261   
9262       
9263       ac_ext=C
9264 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9265 ac_cpp='$CXXCPP $CPPFLAGS'
9266 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9267 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9268 cross_compiling=$ac_cv_prog_cxx_cross
9269
9270       cat > conftest.$ac_ext <<EOF
9271 #line 9272 "configure"
9272 #include "confdefs.h"
9273 #include <math.h>
9274 int main() {
9275  _ldexpf(0, 0);
9276 ; return 0; }
9277 EOF
9278 if { (eval echo configure:9279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9279   rm -rf conftest*
9280   glibcpp_cv_func__ldexpf_use=yes
9281 else
9282   echo "configure: failed program was:" >&5
9283   cat conftest.$ac_ext >&5
9284   rm -rf conftest*
9285   glibcpp_cv_func__ldexpf_use=no
9286 fi
9287 rm -f conftest*
9288       ac_ext=c
9289 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9290 ac_cpp='$CPP $CPPFLAGS'
9291 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9292 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9293 cross_compiling=$ac_cv_prog_cc_cross
9294
9295     
9296 fi
9297
9298   fi
9299   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
9300
9301     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
9302       for ac_func in _ldexpf
9303 do
9304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9305 echo "configure:9306: checking for $ac_func" >&5
9306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9307   echo $ac_n "(cached) $ac_c" 1>&6
9308 else
9309   cat > conftest.$ac_ext <<EOF
9310 #line 9311 "configure"
9311 #include "confdefs.h"
9312 /* System header to define __stub macros and hopefully few prototypes,
9313     which can conflict with char $ac_func(); below.  */
9314 #include <assert.h>
9315 /* Override any gcc2 internal prototype to avoid an error.  */
9316 /* We use char because int might match the return type of a gcc2
9317     builtin and then its argument prototype would still apply.  */
9318 char $ac_func();
9319
9320 int main() {
9321
9322 /* The GNU C library defines this for functions which it implements
9323     to always fail with ENOSYS.  Some functions are actually named
9324     something starting with __ and the normal name is an alias.  */
9325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9326 choke me
9327 #else
9328 $ac_func();
9329 #endif
9330
9331 ; return 0; }
9332 EOF
9333 if { (eval echo configure:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9334   rm -rf conftest*
9335   eval "ac_cv_func_$ac_func=yes"
9336 else
9337   echo "configure: failed program was:" >&5
9338   cat conftest.$ac_ext >&5
9339   rm -rf conftest*
9340   eval "ac_cv_func_$ac_func=no"
9341 fi
9342 rm -f conftest*
9343 fi
9344
9345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9346   echo "$ac_t""yes" 1>&6
9347     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9348   cat >> confdefs.h <<EOF
9349 #define $ac_tr_func 1
9350 EOF
9351  
9352 else
9353   echo "$ac_t""no" 1>&6
9354 fi
9355 done
9356     
9357     fi
9358   fi
9359
9360   
9361   
9362   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
9363 echo "configure:9364: checking for logf declaration" >&5
9364   if test x${glibcpp_cv_func_logf_use+set} != xset; then
9365     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
9366   echo $ac_n "(cached) $ac_c" 1>&6
9367 else
9368   
9369       
9370       ac_ext=C
9371 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9372 ac_cpp='$CXXCPP $CPPFLAGS'
9373 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9374 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9375 cross_compiling=$ac_cv_prog_cxx_cross
9376
9377       cat > conftest.$ac_ext <<EOF
9378 #line 9379 "configure"
9379 #include "confdefs.h"
9380 #include <math.h>
9381                       #ifdef HAVE_IEEEFP_H
9382                       #include <ieeefp.h>
9383                       #endif
9384                      
9385 int main() {
9386  logf(0);
9387 ; return 0; }
9388 EOF
9389 if { (eval echo configure:9390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9390   rm -rf conftest*
9391   glibcpp_cv_func_logf_use=yes
9392 else
9393   echo "configure: failed program was:" >&5
9394   cat conftest.$ac_ext >&5
9395   rm -rf conftest*
9396   glibcpp_cv_func_logf_use=no
9397 fi
9398 rm -f conftest*
9399       ac_ext=c
9400 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9401 ac_cpp='$CPP $CPPFLAGS'
9402 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9403 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9404 cross_compiling=$ac_cv_prog_cc_cross
9405
9406     
9407 fi
9408
9409   fi
9410   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
9411
9412   if test x$glibcpp_cv_func_logf_use = x"yes"; then
9413     for ac_func in logf
9414 do
9415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9416 echo "configure:9417: checking for $ac_func" >&5
9417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9418   echo $ac_n "(cached) $ac_c" 1>&6
9419 else
9420   cat > conftest.$ac_ext <<EOF
9421 #line 9422 "configure"
9422 #include "confdefs.h"
9423 /* System header to define __stub macros and hopefully few prototypes,
9424     which can conflict with char $ac_func(); below.  */
9425 #include <assert.h>
9426 /* Override any gcc2 internal prototype to avoid an error.  */
9427 /* We use char because int might match the return type of a gcc2
9428     builtin and then its argument prototype would still apply.  */
9429 char $ac_func();
9430
9431 int main() {
9432
9433 /* The GNU C library defines this for functions which it implements
9434     to always fail with ENOSYS.  Some functions are actually named
9435     something starting with __ and the normal name is an alias.  */
9436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9437 choke me
9438 #else
9439 $ac_func();
9440 #endif
9441
9442 ; return 0; }
9443 EOF
9444 if { (eval echo configure:9445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9445   rm -rf conftest*
9446   eval "ac_cv_func_$ac_func=yes"
9447 else
9448   echo "configure: failed program was:" >&5
9449   cat conftest.$ac_ext >&5
9450   rm -rf conftest*
9451   eval "ac_cv_func_$ac_func=no"
9452 fi
9453 rm -f conftest*
9454 fi
9455
9456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9457   echo "$ac_t""yes" 1>&6
9458     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9459   cat >> confdefs.h <<EOF
9460 #define $ac_tr_func 1
9461 EOF
9462  
9463 else
9464   echo "$ac_t""no" 1>&6
9465 fi
9466 done
9467     
9468   else
9469     
9470   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
9471 echo "configure:9472: checking for _logf declaration" >&5
9472   if test x${glibcpp_cv_func__logf_use+set} != xset; then
9473     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
9474   echo $ac_n "(cached) $ac_c" 1>&6
9475 else
9476   
9477       
9478       ac_ext=C
9479 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9480 ac_cpp='$CXXCPP $CPPFLAGS'
9481 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9482 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9483 cross_compiling=$ac_cv_prog_cxx_cross
9484
9485       cat > conftest.$ac_ext <<EOF
9486 #line 9487 "configure"
9487 #include "confdefs.h"
9488 #include <math.h>
9489                       #ifdef HAVE_IEEEFP_H
9490                       #include <ieeefp.h>
9491                       #endif
9492                      
9493 int main() {
9494  _logf(0);
9495 ; return 0; }
9496 EOF
9497 if { (eval echo configure:9498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9498   rm -rf conftest*
9499   glibcpp_cv_func__logf_use=yes
9500 else
9501   echo "configure: failed program was:" >&5
9502   cat conftest.$ac_ext >&5
9503   rm -rf conftest*
9504   glibcpp_cv_func__logf_use=no
9505 fi
9506 rm -f conftest*
9507       ac_ext=c
9508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9509 ac_cpp='$CPP $CPPFLAGS'
9510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9512 cross_compiling=$ac_cv_prog_cc_cross
9513
9514     
9515 fi
9516
9517   fi
9518   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
9519
9520     if test x$glibcpp_cv_func__logf_use = x"yes"; then
9521       for ac_func in _logf
9522 do
9523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9524 echo "configure:9525: checking for $ac_func" >&5
9525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9526   echo $ac_n "(cached) $ac_c" 1>&6
9527 else
9528   cat > conftest.$ac_ext <<EOF
9529 #line 9530 "configure"
9530 #include "confdefs.h"
9531 /* System header to define __stub macros and hopefully few prototypes,
9532     which can conflict with char $ac_func(); below.  */
9533 #include <assert.h>
9534 /* Override any gcc2 internal prototype to avoid an error.  */
9535 /* We use char because int might match the return type of a gcc2
9536     builtin and then its argument prototype would still apply.  */
9537 char $ac_func();
9538
9539 int main() {
9540
9541 /* The GNU C library defines this for functions which it implements
9542     to always fail with ENOSYS.  Some functions are actually named
9543     something starting with __ and the normal name is an alias.  */
9544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9545 choke me
9546 #else
9547 $ac_func();
9548 #endif
9549
9550 ; return 0; }
9551 EOF
9552 if { (eval echo configure:9553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9553   rm -rf conftest*
9554   eval "ac_cv_func_$ac_func=yes"
9555 else
9556   echo "configure: failed program was:" >&5
9557   cat conftest.$ac_ext >&5
9558   rm -rf conftest*
9559   eval "ac_cv_func_$ac_func=no"
9560 fi
9561 rm -f conftest*
9562 fi
9563
9564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9565   echo "$ac_t""yes" 1>&6
9566     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9567   cat >> confdefs.h <<EOF
9568 #define $ac_tr_func 1
9569 EOF
9570  
9571 else
9572   echo "$ac_t""no" 1>&6
9573 fi
9574 done
9575     
9576     fi
9577   fi
9578
9579   
9580   
9581   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
9582 echo "configure:9583: checking for log10f declaration" >&5
9583   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
9584     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
9585   echo $ac_n "(cached) $ac_c" 1>&6
9586 else
9587   
9588       
9589       ac_ext=C
9590 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9591 ac_cpp='$CXXCPP $CPPFLAGS'
9592 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9593 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9594 cross_compiling=$ac_cv_prog_cxx_cross
9595
9596       cat > conftest.$ac_ext <<EOF
9597 #line 9598 "configure"
9598 #include "confdefs.h"
9599 #include <math.h>
9600                       #ifdef HAVE_IEEEFP_H
9601                       #include <ieeefp.h>
9602                       #endif
9603                      
9604 int main() {
9605  log10f(0);
9606 ; return 0; }
9607 EOF
9608 if { (eval echo configure:9609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9609   rm -rf conftest*
9610   glibcpp_cv_func_log10f_use=yes
9611 else
9612   echo "configure: failed program was:" >&5
9613   cat conftest.$ac_ext >&5
9614   rm -rf conftest*
9615   glibcpp_cv_func_log10f_use=no
9616 fi
9617 rm -f conftest*
9618       ac_ext=c
9619 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9620 ac_cpp='$CPP $CPPFLAGS'
9621 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9622 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9623 cross_compiling=$ac_cv_prog_cc_cross
9624
9625     
9626 fi
9627
9628   fi
9629   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
9630
9631   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
9632     for ac_func in log10f
9633 do
9634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9635 echo "configure:9636: checking for $ac_func" >&5
9636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9637   echo $ac_n "(cached) $ac_c" 1>&6
9638 else
9639   cat > conftest.$ac_ext <<EOF
9640 #line 9641 "configure"
9641 #include "confdefs.h"
9642 /* System header to define __stub macros and hopefully few prototypes,
9643     which can conflict with char $ac_func(); below.  */
9644 #include <assert.h>
9645 /* Override any gcc2 internal prototype to avoid an error.  */
9646 /* We use char because int might match the return type of a gcc2
9647     builtin and then its argument prototype would still apply.  */
9648 char $ac_func();
9649
9650 int main() {
9651
9652 /* The GNU C library defines this for functions which it implements
9653     to always fail with ENOSYS.  Some functions are actually named
9654     something starting with __ and the normal name is an alias.  */
9655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9656 choke me
9657 #else
9658 $ac_func();
9659 #endif
9660
9661 ; return 0; }
9662 EOF
9663 if { (eval echo configure:9664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9664   rm -rf conftest*
9665   eval "ac_cv_func_$ac_func=yes"
9666 else
9667   echo "configure: failed program was:" >&5
9668   cat conftest.$ac_ext >&5
9669   rm -rf conftest*
9670   eval "ac_cv_func_$ac_func=no"
9671 fi
9672 rm -f conftest*
9673 fi
9674
9675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9676   echo "$ac_t""yes" 1>&6
9677     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9678   cat >> confdefs.h <<EOF
9679 #define $ac_tr_func 1
9680 EOF
9681  
9682 else
9683   echo "$ac_t""no" 1>&6
9684 fi
9685 done
9686     
9687   else
9688     
9689   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
9690 echo "configure:9691: checking for _log10f declaration" >&5
9691   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
9692     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
9693   echo $ac_n "(cached) $ac_c" 1>&6
9694 else
9695   
9696       
9697       ac_ext=C
9698 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9699 ac_cpp='$CXXCPP $CPPFLAGS'
9700 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9701 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9702 cross_compiling=$ac_cv_prog_cxx_cross
9703
9704       cat > conftest.$ac_ext <<EOF
9705 #line 9706 "configure"
9706 #include "confdefs.h"
9707 #include <math.h>
9708                       #ifdef HAVE_IEEEFP_H
9709                       #include <ieeefp.h>
9710                       #endif
9711                      
9712 int main() {
9713  _log10f(0);
9714 ; return 0; }
9715 EOF
9716 if { (eval echo configure:9717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9717   rm -rf conftest*
9718   glibcpp_cv_func__log10f_use=yes
9719 else
9720   echo "configure: failed program was:" >&5
9721   cat conftest.$ac_ext >&5
9722   rm -rf conftest*
9723   glibcpp_cv_func__log10f_use=no
9724 fi
9725 rm -f conftest*
9726       ac_ext=c
9727 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9728 ac_cpp='$CPP $CPPFLAGS'
9729 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9730 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9731 cross_compiling=$ac_cv_prog_cc_cross
9732
9733     
9734 fi
9735
9736   fi
9737   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
9738
9739     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
9740       for ac_func in _log10f
9741 do
9742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9743 echo "configure:9744: checking for $ac_func" >&5
9744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9745   echo $ac_n "(cached) $ac_c" 1>&6
9746 else
9747   cat > conftest.$ac_ext <<EOF
9748 #line 9749 "configure"
9749 #include "confdefs.h"
9750 /* System header to define __stub macros and hopefully few prototypes,
9751     which can conflict with char $ac_func(); below.  */
9752 #include <assert.h>
9753 /* Override any gcc2 internal prototype to avoid an error.  */
9754 /* We use char because int might match the return type of a gcc2
9755     builtin and then its argument prototype would still apply.  */
9756 char $ac_func();
9757
9758 int main() {
9759
9760 /* The GNU C library defines this for functions which it implements
9761     to always fail with ENOSYS.  Some functions are actually named
9762     something starting with __ and the normal name is an alias.  */
9763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9764 choke me
9765 #else
9766 $ac_func();
9767 #endif
9768
9769 ; return 0; }
9770 EOF
9771 if { (eval echo configure:9772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9772   rm -rf conftest*
9773   eval "ac_cv_func_$ac_func=yes"
9774 else
9775   echo "configure: failed program was:" >&5
9776   cat conftest.$ac_ext >&5
9777   rm -rf conftest*
9778   eval "ac_cv_func_$ac_func=no"
9779 fi
9780 rm -f conftest*
9781 fi
9782
9783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9784   echo "$ac_t""yes" 1>&6
9785     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9786   cat >> confdefs.h <<EOF
9787 #define $ac_tr_func 1
9788 EOF
9789  
9790 else
9791   echo "$ac_t""no" 1>&6
9792 fi
9793 done
9794     
9795     fi
9796   fi
9797
9798   
9799   
9800   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
9801 echo "configure:9802: checking for modff declaration" >&5
9802   if test x${glibcpp_cv_func_modff_use+set} != xset; then
9803     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
9804   echo $ac_n "(cached) $ac_c" 1>&6
9805 else
9806   
9807       
9808       ac_ext=C
9809 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9810 ac_cpp='$CXXCPP $CPPFLAGS'
9811 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9812 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9813 cross_compiling=$ac_cv_prog_cxx_cross
9814
9815       cat > conftest.$ac_ext <<EOF
9816 #line 9817 "configure"
9817 #include "confdefs.h"
9818 #include <math.h>
9819 int main() {
9820  modff(0, 0);
9821 ; return 0; }
9822 EOF
9823 if { (eval echo configure:9824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9824   rm -rf conftest*
9825   glibcpp_cv_func_modff_use=yes
9826 else
9827   echo "configure: failed program was:" >&5
9828   cat conftest.$ac_ext >&5
9829   rm -rf conftest*
9830   glibcpp_cv_func_modff_use=no
9831 fi
9832 rm -f conftest*
9833       ac_ext=c
9834 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9835 ac_cpp='$CPP $CPPFLAGS'
9836 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9837 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9838 cross_compiling=$ac_cv_prog_cc_cross
9839
9840     
9841 fi
9842
9843   fi
9844   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
9845
9846   if test x$glibcpp_cv_func_modff_use = x"yes"; then
9847     for ac_func in modff
9848 do
9849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9850 echo "configure:9851: checking for $ac_func" >&5
9851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9852   echo $ac_n "(cached) $ac_c" 1>&6
9853 else
9854   cat > conftest.$ac_ext <<EOF
9855 #line 9856 "configure"
9856 #include "confdefs.h"
9857 /* System header to define __stub macros and hopefully few prototypes,
9858     which can conflict with char $ac_func(); below.  */
9859 #include <assert.h>
9860 /* Override any gcc2 internal prototype to avoid an error.  */
9861 /* We use char because int might match the return type of a gcc2
9862     builtin and then its argument prototype would still apply.  */
9863 char $ac_func();
9864
9865 int main() {
9866
9867 /* The GNU C library defines this for functions which it implements
9868     to always fail with ENOSYS.  Some functions are actually named
9869     something starting with __ and the normal name is an alias.  */
9870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9871 choke me
9872 #else
9873 $ac_func();
9874 #endif
9875
9876 ; return 0; }
9877 EOF
9878 if { (eval echo configure:9879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9879   rm -rf conftest*
9880   eval "ac_cv_func_$ac_func=yes"
9881 else
9882   echo "configure: failed program was:" >&5
9883   cat conftest.$ac_ext >&5
9884   rm -rf conftest*
9885   eval "ac_cv_func_$ac_func=no"
9886 fi
9887 rm -f conftest*
9888 fi
9889
9890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9891   echo "$ac_t""yes" 1>&6
9892     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9893   cat >> confdefs.h <<EOF
9894 #define $ac_tr_func 1
9895 EOF
9896  
9897 else
9898   echo "$ac_t""no" 1>&6
9899 fi
9900 done
9901     
9902   else
9903     
9904   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
9905 echo "configure:9906: checking for _modff declaration" >&5
9906   if test x${glibcpp_cv_func__modff_use+set} != xset; then
9907     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
9908   echo $ac_n "(cached) $ac_c" 1>&6
9909 else
9910   
9911       
9912       ac_ext=C
9913 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9914 ac_cpp='$CXXCPP $CPPFLAGS'
9915 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9916 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9917 cross_compiling=$ac_cv_prog_cxx_cross
9918
9919       cat > conftest.$ac_ext <<EOF
9920 #line 9921 "configure"
9921 #include "confdefs.h"
9922 #include <math.h>
9923 int main() {
9924  _modff(0, 0);
9925 ; return 0; }
9926 EOF
9927 if { (eval echo configure:9928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9928   rm -rf conftest*
9929   glibcpp_cv_func__modff_use=yes
9930 else
9931   echo "configure: failed program was:" >&5
9932   cat conftest.$ac_ext >&5
9933   rm -rf conftest*
9934   glibcpp_cv_func__modff_use=no
9935 fi
9936 rm -f conftest*
9937       ac_ext=c
9938 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9939 ac_cpp='$CPP $CPPFLAGS'
9940 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9941 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9942 cross_compiling=$ac_cv_prog_cc_cross
9943
9944     
9945 fi
9946
9947   fi
9948   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
9949
9950     if test x$glibcpp_cv_func__modff_use = x"yes"; then
9951       for ac_func in _modff
9952 do
9953 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9954 echo "configure:9955: checking for $ac_func" >&5
9955 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9956   echo $ac_n "(cached) $ac_c" 1>&6
9957 else
9958   cat > conftest.$ac_ext <<EOF
9959 #line 9960 "configure"
9960 #include "confdefs.h"
9961 /* System header to define __stub macros and hopefully few prototypes,
9962     which can conflict with char $ac_func(); below.  */
9963 #include <assert.h>
9964 /* Override any gcc2 internal prototype to avoid an error.  */
9965 /* We use char because int might match the return type of a gcc2
9966     builtin and then its argument prototype would still apply.  */
9967 char $ac_func();
9968
9969 int main() {
9970
9971 /* The GNU C library defines this for functions which it implements
9972     to always fail with ENOSYS.  Some functions are actually named
9973     something starting with __ and the normal name is an alias.  */
9974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9975 choke me
9976 #else
9977 $ac_func();
9978 #endif
9979
9980 ; return 0; }
9981 EOF
9982 if { (eval echo configure:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9983   rm -rf conftest*
9984   eval "ac_cv_func_$ac_func=yes"
9985 else
9986   echo "configure: failed program was:" >&5
9987   cat conftest.$ac_ext >&5
9988   rm -rf conftest*
9989   eval "ac_cv_func_$ac_func=no"
9990 fi
9991 rm -f conftest*
9992 fi
9993
9994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9995   echo "$ac_t""yes" 1>&6
9996     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9997   cat >> confdefs.h <<EOF
9998 #define $ac_tr_func 1
9999 EOF
10000  
10001 else
10002   echo "$ac_t""no" 1>&6
10003 fi
10004 done
10005     
10006     fi
10007   fi
10008
10009   
10010   
10011   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10012 echo "configure:10013: checking for powf declaration" >&5
10013   if test x${glibcpp_cv_func_powf_use+set} != xset; then
10014     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10015   echo $ac_n "(cached) $ac_c" 1>&6
10016 else
10017   
10018       
10019       ac_ext=C
10020 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10021 ac_cpp='$CXXCPP $CPPFLAGS'
10022 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10023 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10024 cross_compiling=$ac_cv_prog_cxx_cross
10025
10026       cat > conftest.$ac_ext <<EOF
10027 #line 10028 "configure"
10028 #include "confdefs.h"
10029 #include <math.h>
10030 int main() {
10031  powf(0, 0);
10032 ; return 0; }
10033 EOF
10034 if { (eval echo configure:10035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10035   rm -rf conftest*
10036   glibcpp_cv_func_powf_use=yes
10037 else
10038   echo "configure: failed program was:" >&5
10039   cat conftest.$ac_ext >&5
10040   rm -rf conftest*
10041   glibcpp_cv_func_powf_use=no
10042 fi
10043 rm -f conftest*
10044       ac_ext=c
10045 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10046 ac_cpp='$CPP $CPPFLAGS'
10047 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10048 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10049 cross_compiling=$ac_cv_prog_cc_cross
10050
10051     
10052 fi
10053
10054   fi
10055   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10056
10057   if test x$glibcpp_cv_func_powf_use = x"yes"; then
10058     for ac_func in powf
10059 do
10060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10061 echo "configure:10062: checking for $ac_func" >&5
10062 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10063   echo $ac_n "(cached) $ac_c" 1>&6
10064 else
10065   cat > conftest.$ac_ext <<EOF
10066 #line 10067 "configure"
10067 #include "confdefs.h"
10068 /* System header to define __stub macros and hopefully few prototypes,
10069     which can conflict with char $ac_func(); below.  */
10070 #include <assert.h>
10071 /* Override any gcc2 internal prototype to avoid an error.  */
10072 /* We use char because int might match the return type of a gcc2
10073     builtin and then its argument prototype would still apply.  */
10074 char $ac_func();
10075
10076 int main() {
10077
10078 /* The GNU C library defines this for functions which it implements
10079     to always fail with ENOSYS.  Some functions are actually named
10080     something starting with __ and the normal name is an alias.  */
10081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10082 choke me
10083 #else
10084 $ac_func();
10085 #endif
10086
10087 ; return 0; }
10088 EOF
10089 if { (eval echo configure:10090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10090   rm -rf conftest*
10091   eval "ac_cv_func_$ac_func=yes"
10092 else
10093   echo "configure: failed program was:" >&5
10094   cat conftest.$ac_ext >&5
10095   rm -rf conftest*
10096   eval "ac_cv_func_$ac_func=no"
10097 fi
10098 rm -f conftest*
10099 fi
10100
10101 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10102   echo "$ac_t""yes" 1>&6
10103     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10104   cat >> confdefs.h <<EOF
10105 #define $ac_tr_func 1
10106 EOF
10107  
10108 else
10109   echo "$ac_t""no" 1>&6
10110 fi
10111 done
10112     
10113   else
10114     
10115   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10116 echo "configure:10117: checking for _powf declaration" >&5
10117   if test x${glibcpp_cv_func__powf_use+set} != xset; then
10118     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10119   echo $ac_n "(cached) $ac_c" 1>&6
10120 else
10121   
10122       
10123       ac_ext=C
10124 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10125 ac_cpp='$CXXCPP $CPPFLAGS'
10126 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10127 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10128 cross_compiling=$ac_cv_prog_cxx_cross
10129
10130       cat > conftest.$ac_ext <<EOF
10131 #line 10132 "configure"
10132 #include "confdefs.h"
10133 #include <math.h>
10134 int main() {
10135  _powf(0, 0);
10136 ; return 0; }
10137 EOF
10138 if { (eval echo configure:10139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10139   rm -rf conftest*
10140   glibcpp_cv_func__powf_use=yes
10141 else
10142   echo "configure: failed program was:" >&5
10143   cat conftest.$ac_ext >&5
10144   rm -rf conftest*
10145   glibcpp_cv_func__powf_use=no
10146 fi
10147 rm -f conftest*
10148       ac_ext=c
10149 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10150 ac_cpp='$CPP $CPPFLAGS'
10151 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10152 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10153 cross_compiling=$ac_cv_prog_cc_cross
10154
10155     
10156 fi
10157
10158   fi
10159   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
10160
10161     if test x$glibcpp_cv_func__powf_use = x"yes"; then
10162       for ac_func in _powf
10163 do
10164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10165 echo "configure:10166: checking for $ac_func" >&5
10166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10167   echo $ac_n "(cached) $ac_c" 1>&6
10168 else
10169   cat > conftest.$ac_ext <<EOF
10170 #line 10171 "configure"
10171 #include "confdefs.h"
10172 /* System header to define __stub macros and hopefully few prototypes,
10173     which can conflict with char $ac_func(); below.  */
10174 #include <assert.h>
10175 /* Override any gcc2 internal prototype to avoid an error.  */
10176 /* We use char because int might match the return type of a gcc2
10177     builtin and then its argument prototype would still apply.  */
10178 char $ac_func();
10179
10180 int main() {
10181
10182 /* The GNU C library defines this for functions which it implements
10183     to always fail with ENOSYS.  Some functions are actually named
10184     something starting with __ and the normal name is an alias.  */
10185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10186 choke me
10187 #else
10188 $ac_func();
10189 #endif
10190
10191 ; return 0; }
10192 EOF
10193 if { (eval echo configure:10194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10194   rm -rf conftest*
10195   eval "ac_cv_func_$ac_func=yes"
10196 else
10197   echo "configure: failed program was:" >&5
10198   cat conftest.$ac_ext >&5
10199   rm -rf conftest*
10200   eval "ac_cv_func_$ac_func=no"
10201 fi
10202 rm -f conftest*
10203 fi
10204
10205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10206   echo "$ac_t""yes" 1>&6
10207     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10208   cat >> confdefs.h <<EOF
10209 #define $ac_tr_func 1
10210 EOF
10211  
10212 else
10213   echo "$ac_t""no" 1>&6
10214 fi
10215 done
10216     
10217     fi
10218   fi
10219
10220   
10221   
10222   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
10223 echo "configure:10224: checking for sqrtf declaration" >&5
10224   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
10225     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
10226   echo $ac_n "(cached) $ac_c" 1>&6
10227 else
10228   
10229       
10230       ac_ext=C
10231 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10232 ac_cpp='$CXXCPP $CPPFLAGS'
10233 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10234 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10235 cross_compiling=$ac_cv_prog_cxx_cross
10236
10237       cat > conftest.$ac_ext <<EOF
10238 #line 10239 "configure"
10239 #include "confdefs.h"
10240 #include <math.h>
10241                       #ifdef HAVE_IEEEFP_H
10242                       #include <ieeefp.h>
10243                       #endif
10244                      
10245 int main() {
10246  sqrtf(0);
10247 ; return 0; }
10248 EOF
10249 if { (eval echo configure:10250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10250   rm -rf conftest*
10251   glibcpp_cv_func_sqrtf_use=yes
10252 else
10253   echo "configure: failed program was:" >&5
10254   cat conftest.$ac_ext >&5
10255   rm -rf conftest*
10256   glibcpp_cv_func_sqrtf_use=no
10257 fi
10258 rm -f conftest*
10259       ac_ext=c
10260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10261 ac_cpp='$CPP $CPPFLAGS'
10262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10264 cross_compiling=$ac_cv_prog_cc_cross
10265
10266     
10267 fi
10268
10269   fi
10270   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
10271
10272   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
10273     for ac_func in sqrtf
10274 do
10275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10276 echo "configure:10277: checking for $ac_func" >&5
10277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10278   echo $ac_n "(cached) $ac_c" 1>&6
10279 else
10280   cat > conftest.$ac_ext <<EOF
10281 #line 10282 "configure"
10282 #include "confdefs.h"
10283 /* System header to define __stub macros and hopefully few prototypes,
10284     which can conflict with char $ac_func(); below.  */
10285 #include <assert.h>
10286 /* Override any gcc2 internal prototype to avoid an error.  */
10287 /* We use char because int might match the return type of a gcc2
10288     builtin and then its argument prototype would still apply.  */
10289 char $ac_func();
10290
10291 int main() {
10292
10293 /* The GNU C library defines this for functions which it implements
10294     to always fail with ENOSYS.  Some functions are actually named
10295     something starting with __ and the normal name is an alias.  */
10296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10297 choke me
10298 #else
10299 $ac_func();
10300 #endif
10301
10302 ; return 0; }
10303 EOF
10304 if { (eval echo configure:10305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10305   rm -rf conftest*
10306   eval "ac_cv_func_$ac_func=yes"
10307 else
10308   echo "configure: failed program was:" >&5
10309   cat conftest.$ac_ext >&5
10310   rm -rf conftest*
10311   eval "ac_cv_func_$ac_func=no"
10312 fi
10313 rm -f conftest*
10314 fi
10315
10316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10317   echo "$ac_t""yes" 1>&6
10318     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10319   cat >> confdefs.h <<EOF
10320 #define $ac_tr_func 1
10321 EOF
10322  
10323 else
10324   echo "$ac_t""no" 1>&6
10325 fi
10326 done
10327     
10328   else
10329     
10330   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
10331 echo "configure:10332: checking for _sqrtf declaration" >&5
10332   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
10333     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
10334   echo $ac_n "(cached) $ac_c" 1>&6
10335 else
10336   
10337       
10338       ac_ext=C
10339 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10340 ac_cpp='$CXXCPP $CPPFLAGS'
10341 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10342 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10343 cross_compiling=$ac_cv_prog_cxx_cross
10344
10345       cat > conftest.$ac_ext <<EOF
10346 #line 10347 "configure"
10347 #include "confdefs.h"
10348 #include <math.h>
10349                       #ifdef HAVE_IEEEFP_H
10350                       #include <ieeefp.h>
10351                       #endif
10352                      
10353 int main() {
10354  _sqrtf(0);
10355 ; return 0; }
10356 EOF
10357 if { (eval echo configure:10358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10358   rm -rf conftest*
10359   glibcpp_cv_func__sqrtf_use=yes
10360 else
10361   echo "configure: failed program was:" >&5
10362   cat conftest.$ac_ext >&5
10363   rm -rf conftest*
10364   glibcpp_cv_func__sqrtf_use=no
10365 fi
10366 rm -f conftest*
10367       ac_ext=c
10368 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10369 ac_cpp='$CPP $CPPFLAGS'
10370 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10371 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10372 cross_compiling=$ac_cv_prog_cc_cross
10373
10374     
10375 fi
10376
10377   fi
10378   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
10379
10380     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
10381       for ac_func in _sqrtf
10382 do
10383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10384 echo "configure:10385: checking for $ac_func" >&5
10385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10386   echo $ac_n "(cached) $ac_c" 1>&6
10387 else
10388   cat > conftest.$ac_ext <<EOF
10389 #line 10390 "configure"
10390 #include "confdefs.h"
10391 /* System header to define __stub macros and hopefully few prototypes,
10392     which can conflict with char $ac_func(); below.  */
10393 #include <assert.h>
10394 /* Override any gcc2 internal prototype to avoid an error.  */
10395 /* We use char because int might match the return type of a gcc2
10396     builtin and then its argument prototype would still apply.  */
10397 char $ac_func();
10398
10399 int main() {
10400
10401 /* The GNU C library defines this for functions which it implements
10402     to always fail with ENOSYS.  Some functions are actually named
10403     something starting with __ and the normal name is an alias.  */
10404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10405 choke me
10406 #else
10407 $ac_func();
10408 #endif
10409
10410 ; return 0; }
10411 EOF
10412 if { (eval echo configure:10413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10413   rm -rf conftest*
10414   eval "ac_cv_func_$ac_func=yes"
10415 else
10416   echo "configure: failed program was:" >&5
10417   cat conftest.$ac_ext >&5
10418   rm -rf conftest*
10419   eval "ac_cv_func_$ac_func=no"
10420 fi
10421 rm -f conftest*
10422 fi
10423
10424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10425   echo "$ac_t""yes" 1>&6
10426     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10427   cat >> confdefs.h <<EOF
10428 #define $ac_tr_func 1
10429 EOF
10430  
10431 else
10432   echo "$ac_t""no" 1>&6
10433 fi
10434 done
10435     
10436     fi
10437   fi
10438
10439   
10440   
10441   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
10442 echo "configure:10443: checking for sincosf declaration" >&5
10443   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
10444     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
10445   echo $ac_n "(cached) $ac_c" 1>&6
10446 else
10447   
10448       
10449       ac_ext=C
10450 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10451 ac_cpp='$CXXCPP $CPPFLAGS'
10452 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10453 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10454 cross_compiling=$ac_cv_prog_cxx_cross
10455
10456       cat > conftest.$ac_ext <<EOF
10457 #line 10458 "configure"
10458 #include "confdefs.h"
10459 #include <math.h>
10460 int main() {
10461  sincosf(0, 0, 0);
10462 ; return 0; }
10463 EOF
10464 if { (eval echo configure:10465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10465   rm -rf conftest*
10466   glibcpp_cv_func_sincosf_use=yes
10467 else
10468   echo "configure: failed program was:" >&5
10469   cat conftest.$ac_ext >&5
10470   rm -rf conftest*
10471   glibcpp_cv_func_sincosf_use=no
10472 fi
10473 rm -f conftest*
10474       ac_ext=c
10475 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10476 ac_cpp='$CPP $CPPFLAGS'
10477 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10478 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10479 cross_compiling=$ac_cv_prog_cc_cross
10480
10481     
10482 fi
10483
10484   fi
10485   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
10486
10487   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
10488     for ac_func in sincosf
10489 do
10490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10491 echo "configure:10492: checking for $ac_func" >&5
10492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10493   echo $ac_n "(cached) $ac_c" 1>&6
10494 else
10495   cat > conftest.$ac_ext <<EOF
10496 #line 10497 "configure"
10497 #include "confdefs.h"
10498 /* System header to define __stub macros and hopefully few prototypes,
10499     which can conflict with char $ac_func(); below.  */
10500 #include <assert.h>
10501 /* Override any gcc2 internal prototype to avoid an error.  */
10502 /* We use char because int might match the return type of a gcc2
10503     builtin and then its argument prototype would still apply.  */
10504 char $ac_func();
10505
10506 int main() {
10507
10508 /* The GNU C library defines this for functions which it implements
10509     to always fail with ENOSYS.  Some functions are actually named
10510     something starting with __ and the normal name is an alias.  */
10511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10512 choke me
10513 #else
10514 $ac_func();
10515 #endif
10516
10517 ; return 0; }
10518 EOF
10519 if { (eval echo configure:10520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10520   rm -rf conftest*
10521   eval "ac_cv_func_$ac_func=yes"
10522 else
10523   echo "configure: failed program was:" >&5
10524   cat conftest.$ac_ext >&5
10525   rm -rf conftest*
10526   eval "ac_cv_func_$ac_func=no"
10527 fi
10528 rm -f conftest*
10529 fi
10530
10531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10532   echo "$ac_t""yes" 1>&6
10533     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10534   cat >> confdefs.h <<EOF
10535 #define $ac_tr_func 1
10536 EOF
10537  
10538 else
10539   echo "$ac_t""no" 1>&6
10540 fi
10541 done
10542     
10543   else
10544     
10545   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
10546 echo "configure:10547: checking for _sincosf declaration" >&5
10547   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
10548     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
10549   echo $ac_n "(cached) $ac_c" 1>&6
10550 else
10551   
10552       
10553       ac_ext=C
10554 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10555 ac_cpp='$CXXCPP $CPPFLAGS'
10556 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10557 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10558 cross_compiling=$ac_cv_prog_cxx_cross
10559
10560       cat > conftest.$ac_ext <<EOF
10561 #line 10562 "configure"
10562 #include "confdefs.h"
10563 #include <math.h>
10564 int main() {
10565  _sincosf(0, 0, 0);
10566 ; return 0; }
10567 EOF
10568 if { (eval echo configure:10569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10569   rm -rf conftest*
10570   glibcpp_cv_func__sincosf_use=yes
10571 else
10572   echo "configure: failed program was:" >&5
10573   cat conftest.$ac_ext >&5
10574   rm -rf conftest*
10575   glibcpp_cv_func__sincosf_use=no
10576 fi
10577 rm -f conftest*
10578       ac_ext=c
10579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10580 ac_cpp='$CPP $CPPFLAGS'
10581 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10582 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10583 cross_compiling=$ac_cv_prog_cc_cross
10584
10585     
10586 fi
10587
10588   fi
10589   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
10590
10591     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
10592       for ac_func in _sincosf
10593 do
10594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10595 echo "configure:10596: checking for $ac_func" >&5
10596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10597   echo $ac_n "(cached) $ac_c" 1>&6
10598 else
10599   cat > conftest.$ac_ext <<EOF
10600 #line 10601 "configure"
10601 #include "confdefs.h"
10602 /* System header to define __stub macros and hopefully few prototypes,
10603     which can conflict with char $ac_func(); below.  */
10604 #include <assert.h>
10605 /* Override any gcc2 internal prototype to avoid an error.  */
10606 /* We use char because int might match the return type of a gcc2
10607     builtin and then its argument prototype would still apply.  */
10608 char $ac_func();
10609
10610 int main() {
10611
10612 /* The GNU C library defines this for functions which it implements
10613     to always fail with ENOSYS.  Some functions are actually named
10614     something starting with __ and the normal name is an alias.  */
10615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10616 choke me
10617 #else
10618 $ac_func();
10619 #endif
10620
10621 ; return 0; }
10622 EOF
10623 if { (eval echo configure:10624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10624   rm -rf conftest*
10625   eval "ac_cv_func_$ac_func=yes"
10626 else
10627   echo "configure: failed program was:" >&5
10628   cat conftest.$ac_ext >&5
10629   rm -rf conftest*
10630   eval "ac_cv_func_$ac_func=no"
10631 fi
10632 rm -f conftest*
10633 fi
10634
10635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10636   echo "$ac_t""yes" 1>&6
10637     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10638   cat >> confdefs.h <<EOF
10639 #define $ac_tr_func 1
10640 EOF
10641  
10642 else
10643   echo "$ac_t""no" 1>&6
10644 fi
10645 done
10646     
10647     fi
10648   fi
10649
10650   
10651   
10652   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
10653 echo "configure:10654: checking for finitef declaration" >&5
10654   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
10655     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
10656   echo $ac_n "(cached) $ac_c" 1>&6
10657 else
10658   
10659       
10660       ac_ext=C
10661 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10662 ac_cpp='$CXXCPP $CPPFLAGS'
10663 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10664 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10665 cross_compiling=$ac_cv_prog_cxx_cross
10666
10667       cat > conftest.$ac_ext <<EOF
10668 #line 10669 "configure"
10669 #include "confdefs.h"
10670 #include <math.h>
10671                       #ifdef HAVE_IEEEFP_H
10672                       #include <ieeefp.h>
10673                       #endif
10674                      
10675 int main() {
10676  finitef(0);
10677 ; return 0; }
10678 EOF
10679 if { (eval echo configure:10680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10680   rm -rf conftest*
10681   glibcpp_cv_func_finitef_use=yes
10682 else
10683   echo "configure: failed program was:" >&5
10684   cat conftest.$ac_ext >&5
10685   rm -rf conftest*
10686   glibcpp_cv_func_finitef_use=no
10687 fi
10688 rm -f conftest*
10689       ac_ext=c
10690 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10691 ac_cpp='$CPP $CPPFLAGS'
10692 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10693 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10694 cross_compiling=$ac_cv_prog_cc_cross
10695
10696     
10697 fi
10698
10699   fi
10700   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
10701
10702   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
10703     for ac_func in finitef
10704 do
10705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10706 echo "configure:10707: checking for $ac_func" >&5
10707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10708   echo $ac_n "(cached) $ac_c" 1>&6
10709 else
10710   cat > conftest.$ac_ext <<EOF
10711 #line 10712 "configure"
10712 #include "confdefs.h"
10713 /* System header to define __stub macros and hopefully few prototypes,
10714     which can conflict with char $ac_func(); below.  */
10715 #include <assert.h>
10716 /* Override any gcc2 internal prototype to avoid an error.  */
10717 /* We use char because int might match the return type of a gcc2
10718     builtin and then its argument prototype would still apply.  */
10719 char $ac_func();
10720
10721 int main() {
10722
10723 /* The GNU C library defines this for functions which it implements
10724     to always fail with ENOSYS.  Some functions are actually named
10725     something starting with __ and the normal name is an alias.  */
10726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10727 choke me
10728 #else
10729 $ac_func();
10730 #endif
10731
10732 ; return 0; }
10733 EOF
10734 if { (eval echo configure:10735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10735   rm -rf conftest*
10736   eval "ac_cv_func_$ac_func=yes"
10737 else
10738   echo "configure: failed program was:" >&5
10739   cat conftest.$ac_ext >&5
10740   rm -rf conftest*
10741   eval "ac_cv_func_$ac_func=no"
10742 fi
10743 rm -f conftest*
10744 fi
10745
10746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10747   echo "$ac_t""yes" 1>&6
10748     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10749   cat >> confdefs.h <<EOF
10750 #define $ac_tr_func 1
10751 EOF
10752  
10753 else
10754   echo "$ac_t""no" 1>&6
10755 fi
10756 done
10757     
10758   else
10759     
10760   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
10761 echo "configure:10762: checking for _finitef declaration" >&5
10762   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
10763     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
10764   echo $ac_n "(cached) $ac_c" 1>&6
10765 else
10766   
10767       
10768       ac_ext=C
10769 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10770 ac_cpp='$CXXCPP $CPPFLAGS'
10771 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10772 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10773 cross_compiling=$ac_cv_prog_cxx_cross
10774
10775       cat > conftest.$ac_ext <<EOF
10776 #line 10777 "configure"
10777 #include "confdefs.h"
10778 #include <math.h>
10779                       #ifdef HAVE_IEEEFP_H
10780                       #include <ieeefp.h>
10781                       #endif
10782                      
10783 int main() {
10784  _finitef(0);
10785 ; return 0; }
10786 EOF
10787 if { (eval echo configure:10788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10788   rm -rf conftest*
10789   glibcpp_cv_func__finitef_use=yes
10790 else
10791   echo "configure: failed program was:" >&5
10792   cat conftest.$ac_ext >&5
10793   rm -rf conftest*
10794   glibcpp_cv_func__finitef_use=no
10795 fi
10796 rm -f conftest*
10797       ac_ext=c
10798 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10799 ac_cpp='$CPP $CPPFLAGS'
10800 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10801 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10802 cross_compiling=$ac_cv_prog_cc_cross
10803
10804     
10805 fi
10806
10807   fi
10808   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
10809
10810     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
10811       for ac_func in _finitef
10812 do
10813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10814 echo "configure:10815: checking for $ac_func" >&5
10815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10816   echo $ac_n "(cached) $ac_c" 1>&6
10817 else
10818   cat > conftest.$ac_ext <<EOF
10819 #line 10820 "configure"
10820 #include "confdefs.h"
10821 /* System header to define __stub macros and hopefully few prototypes,
10822     which can conflict with char $ac_func(); below.  */
10823 #include <assert.h>
10824 /* Override any gcc2 internal prototype to avoid an error.  */
10825 /* We use char because int might match the return type of a gcc2
10826     builtin and then its argument prototype would still apply.  */
10827 char $ac_func();
10828
10829 int main() {
10830
10831 /* The GNU C library defines this for functions which it implements
10832     to always fail with ENOSYS.  Some functions are actually named
10833     something starting with __ and the normal name is an alias.  */
10834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10835 choke me
10836 #else
10837 $ac_func();
10838 #endif
10839
10840 ; return 0; }
10841 EOF
10842 if { (eval echo configure:10843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10843   rm -rf conftest*
10844   eval "ac_cv_func_$ac_func=yes"
10845 else
10846   echo "configure: failed program was:" >&5
10847   cat conftest.$ac_ext >&5
10848   rm -rf conftest*
10849   eval "ac_cv_func_$ac_func=no"
10850 fi
10851 rm -f conftest*
10852 fi
10853
10854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10855   echo "$ac_t""yes" 1>&6
10856     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10857   cat >> confdefs.h <<EOF
10858 #define $ac_tr_func 1
10859 EOF
10860  
10861 else
10862   echo "$ac_t""no" 1>&6
10863 fi
10864 done
10865     
10866     fi
10867   fi
10868
10869
10870     
10871   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
10872 echo "configure:10873: checking for long double trig functions" >&5
10873   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
10874   echo $ac_n "(cached) $ac_c" 1>&6
10875 else
10876   
10877     
10878     ac_ext=C
10879 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10880 ac_cpp='$CXXCPP $CPPFLAGS'
10881 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10882 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10883 cross_compiling=$ac_cv_prog_cxx_cross
10884
10885     cat > conftest.$ac_ext <<EOF
10886 #line 10887 "configure"
10887 #include "confdefs.h"
10888 #include <math.h>
10889 int main() {
10890  `for x in acosl asinl atanl \
10891                                           cosl sinl tanl \
10892                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
10893 ; return 0; }
10894 EOF
10895 if { (eval echo configure:10896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10896   rm -rf conftest*
10897   glibcpp_cv_func_long_double_trig_use=yes
10898 else
10899   echo "configure: failed program was:" >&5
10900   cat conftest.$ac_ext >&5
10901   rm -rf conftest*
10902   glibcpp_cv_func_long_double_trig_use=no
10903 fi
10904 rm -f conftest*
10905     ac_ext=c
10906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10907 ac_cpp='$CPP $CPPFLAGS'
10908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10909 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10910 cross_compiling=$ac_cv_prog_cc_cross
10911
10912 fi
10913
10914   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
10915   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
10916     for ac_func in acosl asinl atanl \
10917                                           cosl sinl tanl \
10918                                           coshl sinhl tanhl
10919 do
10920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10921 echo "configure:10922: checking for $ac_func" >&5
10922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10923   echo $ac_n "(cached) $ac_c" 1>&6
10924 else
10925   cat > conftest.$ac_ext <<EOF
10926 #line 10927 "configure"
10927 #include "confdefs.h"
10928 /* System header to define __stub macros and hopefully few prototypes,
10929     which can conflict with char $ac_func(); below.  */
10930 #include <assert.h>
10931 /* Override any gcc2 internal prototype to avoid an error.  */
10932 /* We use char because int might match the return type of a gcc2
10933     builtin and then its argument prototype would still apply.  */
10934 char $ac_func();
10935
10936 int main() {
10937
10938 /* The GNU C library defines this for functions which it implements
10939     to always fail with ENOSYS.  Some functions are actually named
10940     something starting with __ and the normal name is an alias.  */
10941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10942 choke me
10943 #else
10944 $ac_func();
10945 #endif
10946
10947 ; return 0; }
10948 EOF
10949 if { (eval echo configure:10950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10950   rm -rf conftest*
10951   eval "ac_cv_func_$ac_func=yes"
10952 else
10953   echo "configure: failed program was:" >&5
10954   cat conftest.$ac_ext >&5
10955   rm -rf conftest*
10956   eval "ac_cv_func_$ac_func=no"
10957 fi
10958 rm -f conftest*
10959 fi
10960
10961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10962   echo "$ac_t""yes" 1>&6
10963     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10964   cat >> confdefs.h <<EOF
10965 #define $ac_tr_func 1
10966 EOF
10967  
10968 else
10969   echo "$ac_t""no" 1>&6
10970 fi
10971 done
10972
10973   fi
10974
10975   
10976   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
10977 echo "configure:10978: checking for long double round functions" >&5
10978   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
10979   echo $ac_n "(cached) $ac_c" 1>&6
10980 else
10981   
10982     
10983     ac_ext=C
10984 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10985 ac_cpp='$CXXCPP $CPPFLAGS'
10986 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10987 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10988 cross_compiling=$ac_cv_prog_cxx_cross
10989
10990     cat > conftest.$ac_ext <<EOF
10991 #line 10992 "configure"
10992 #include "confdefs.h"
10993 #include <math.h>
10994 int main() {
10995  `for x in ceill floorl; do echo "$x (0);"; done` 
10996 ; return 0; }
10997 EOF
10998 if { (eval echo configure:10999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10999   rm -rf conftest*
11000   glibcpp_cv_func_long_double_round_use=yes
11001 else
11002   echo "configure: failed program was:" >&5
11003   cat conftest.$ac_ext >&5
11004   rm -rf conftest*
11005   glibcpp_cv_func_long_double_round_use=no
11006 fi
11007 rm -f conftest*
11008     ac_ext=c
11009 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11010 ac_cpp='$CPP $CPPFLAGS'
11011 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11012 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11013 cross_compiling=$ac_cv_prog_cc_cross
11014
11015 fi
11016
11017   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11018   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11019     for ac_func in ceill floorl
11020 do
11021 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11022 echo "configure:11023: checking for $ac_func" >&5
11023 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11024   echo $ac_n "(cached) $ac_c" 1>&6
11025 else
11026   cat > conftest.$ac_ext <<EOF
11027 #line 11028 "configure"
11028 #include "confdefs.h"
11029 /* System header to define __stub macros and hopefully few prototypes,
11030     which can conflict with char $ac_func(); below.  */
11031 #include <assert.h>
11032 /* Override any gcc2 internal prototype to avoid an error.  */
11033 /* We use char because int might match the return type of a gcc2
11034     builtin and then its argument prototype would still apply.  */
11035 char $ac_func();
11036
11037 int main() {
11038
11039 /* The GNU C library defines this for functions which it implements
11040     to always fail with ENOSYS.  Some functions are actually named
11041     something starting with __ and the normal name is an alias.  */
11042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11043 choke me
11044 #else
11045 $ac_func();
11046 #endif
11047
11048 ; return 0; }
11049 EOF
11050 if { (eval echo configure:11051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11051   rm -rf conftest*
11052   eval "ac_cv_func_$ac_func=yes"
11053 else
11054   echo "configure: failed program was:" >&5
11055   cat conftest.$ac_ext >&5
11056   rm -rf conftest*
11057   eval "ac_cv_func_$ac_func=no"
11058 fi
11059 rm -f conftest*
11060 fi
11061
11062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11063   echo "$ac_t""yes" 1>&6
11064     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11065   cat >> confdefs.h <<EOF
11066 #define $ac_tr_func 1
11067 EOF
11068  
11069 else
11070   echo "$ac_t""no" 1>&6
11071 fi
11072 done
11073
11074   fi
11075
11076   
11077   
11078   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11079 echo "configure:11080: checking for isnanl declaration" >&5
11080   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11081     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11082   echo $ac_n "(cached) $ac_c" 1>&6
11083 else
11084   
11085       
11086       ac_ext=C
11087 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11088 ac_cpp='$CXXCPP $CPPFLAGS'
11089 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11090 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11091 cross_compiling=$ac_cv_prog_cxx_cross
11092
11093       cat > conftest.$ac_ext <<EOF
11094 #line 11095 "configure"
11095 #include "confdefs.h"
11096 #include <math.h>
11097                       #ifdef HAVE_IEEEFP_H
11098                       #include <ieeefp.h>
11099                       #endif
11100                      
11101 int main() {
11102  isnanl(0);
11103 ; return 0; }
11104 EOF
11105 if { (eval echo configure:11106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11106   rm -rf conftest*
11107   glibcpp_cv_func_isnanl_use=yes
11108 else
11109   echo "configure: failed program was:" >&5
11110   cat conftest.$ac_ext >&5
11111   rm -rf conftest*
11112   glibcpp_cv_func_isnanl_use=no
11113 fi
11114 rm -f conftest*
11115       ac_ext=c
11116 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11117 ac_cpp='$CPP $CPPFLAGS'
11118 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11119 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11120 cross_compiling=$ac_cv_prog_cc_cross
11121
11122     
11123 fi
11124
11125   fi
11126   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11127
11128   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11129     for ac_func in isnanl
11130 do
11131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11132 echo "configure:11133: checking for $ac_func" >&5
11133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11134   echo $ac_n "(cached) $ac_c" 1>&6
11135 else
11136   cat > conftest.$ac_ext <<EOF
11137 #line 11138 "configure"
11138 #include "confdefs.h"
11139 /* System header to define __stub macros and hopefully few prototypes,
11140     which can conflict with char $ac_func(); below.  */
11141 #include <assert.h>
11142 /* Override any gcc2 internal prototype to avoid an error.  */
11143 /* We use char because int might match the return type of a gcc2
11144     builtin and then its argument prototype would still apply.  */
11145 char $ac_func();
11146
11147 int main() {
11148
11149 /* The GNU C library defines this for functions which it implements
11150     to always fail with ENOSYS.  Some functions are actually named
11151     something starting with __ and the normal name is an alias.  */
11152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11153 choke me
11154 #else
11155 $ac_func();
11156 #endif
11157
11158 ; return 0; }
11159 EOF
11160 if { (eval echo configure:11161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11161   rm -rf conftest*
11162   eval "ac_cv_func_$ac_func=yes"
11163 else
11164   echo "configure: failed program was:" >&5
11165   cat conftest.$ac_ext >&5
11166   rm -rf conftest*
11167   eval "ac_cv_func_$ac_func=no"
11168 fi
11169 rm -f conftest*
11170 fi
11171
11172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11173   echo "$ac_t""yes" 1>&6
11174     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11175   cat >> confdefs.h <<EOF
11176 #define $ac_tr_func 1
11177 EOF
11178  
11179 else
11180   echo "$ac_t""no" 1>&6
11181 fi
11182 done
11183     
11184   else
11185     
11186   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
11187 echo "configure:11188: checking for _isnanl declaration" >&5
11188   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
11189     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
11190   echo $ac_n "(cached) $ac_c" 1>&6
11191 else
11192   
11193       
11194       ac_ext=C
11195 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11196 ac_cpp='$CXXCPP $CPPFLAGS'
11197 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11198 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11199 cross_compiling=$ac_cv_prog_cxx_cross
11200
11201       cat > conftest.$ac_ext <<EOF
11202 #line 11203 "configure"
11203 #include "confdefs.h"
11204 #include <math.h>
11205                       #ifdef HAVE_IEEEFP_H
11206                       #include <ieeefp.h>
11207                       #endif
11208                      
11209 int main() {
11210  _isnanl(0);
11211 ; return 0; }
11212 EOF
11213 if { (eval echo configure:11214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11214   rm -rf conftest*
11215   glibcpp_cv_func__isnanl_use=yes
11216 else
11217   echo "configure: failed program was:" >&5
11218   cat conftest.$ac_ext >&5
11219   rm -rf conftest*
11220   glibcpp_cv_func__isnanl_use=no
11221 fi
11222 rm -f conftest*
11223       ac_ext=c
11224 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11225 ac_cpp='$CPP $CPPFLAGS'
11226 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11227 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11228 cross_compiling=$ac_cv_prog_cc_cross
11229
11230     
11231 fi
11232
11233   fi
11234   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
11235
11236     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
11237       for ac_func in _isnanl
11238 do
11239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11240 echo "configure:11241: checking for $ac_func" >&5
11241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11242   echo $ac_n "(cached) $ac_c" 1>&6
11243 else
11244   cat > conftest.$ac_ext <<EOF
11245 #line 11246 "configure"
11246 #include "confdefs.h"
11247 /* System header to define __stub macros and hopefully few prototypes,
11248     which can conflict with char $ac_func(); below.  */
11249 #include <assert.h>
11250 /* Override any gcc2 internal prototype to avoid an error.  */
11251 /* We use char because int might match the return type of a gcc2
11252     builtin and then its argument prototype would still apply.  */
11253 char $ac_func();
11254
11255 int main() {
11256
11257 /* The GNU C library defines this for functions which it implements
11258     to always fail with ENOSYS.  Some functions are actually named
11259     something starting with __ and the normal name is an alias.  */
11260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11261 choke me
11262 #else
11263 $ac_func();
11264 #endif
11265
11266 ; return 0; }
11267 EOF
11268 if { (eval echo configure:11269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11269   rm -rf conftest*
11270   eval "ac_cv_func_$ac_func=yes"
11271 else
11272   echo "configure: failed program was:" >&5
11273   cat conftest.$ac_ext >&5
11274   rm -rf conftest*
11275   eval "ac_cv_func_$ac_func=no"
11276 fi
11277 rm -f conftest*
11278 fi
11279
11280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11281   echo "$ac_t""yes" 1>&6
11282     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11283   cat >> confdefs.h <<EOF
11284 #define $ac_tr_func 1
11285 EOF
11286  
11287 else
11288   echo "$ac_t""no" 1>&6
11289 fi
11290 done
11291     
11292     fi
11293   fi
11294
11295   
11296   
11297   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
11298 echo "configure:11299: checking for isinfl declaration" >&5
11299   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
11300     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
11301   echo $ac_n "(cached) $ac_c" 1>&6
11302 else
11303   
11304       
11305       ac_ext=C
11306 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11307 ac_cpp='$CXXCPP $CPPFLAGS'
11308 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11309 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11310 cross_compiling=$ac_cv_prog_cxx_cross
11311
11312       cat > conftest.$ac_ext <<EOF
11313 #line 11314 "configure"
11314 #include "confdefs.h"
11315 #include <math.h>
11316                       #ifdef HAVE_IEEEFP_H
11317                       #include <ieeefp.h>
11318                       #endif
11319                      
11320 int main() {
11321  isinfl(0);
11322 ; return 0; }
11323 EOF
11324 if { (eval echo configure:11325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11325   rm -rf conftest*
11326   glibcpp_cv_func_isinfl_use=yes
11327 else
11328   echo "configure: failed program was:" >&5
11329   cat conftest.$ac_ext >&5
11330   rm -rf conftest*
11331   glibcpp_cv_func_isinfl_use=no
11332 fi
11333 rm -f conftest*
11334       ac_ext=c
11335 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11336 ac_cpp='$CPP $CPPFLAGS'
11337 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11338 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11339 cross_compiling=$ac_cv_prog_cc_cross
11340
11341     
11342 fi
11343
11344   fi
11345   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
11346
11347   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
11348     for ac_func in isinfl
11349 do
11350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11351 echo "configure:11352: checking for $ac_func" >&5
11352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11353   echo $ac_n "(cached) $ac_c" 1>&6
11354 else
11355   cat > conftest.$ac_ext <<EOF
11356 #line 11357 "configure"
11357 #include "confdefs.h"
11358 /* System header to define __stub macros and hopefully few prototypes,
11359     which can conflict with char $ac_func(); below.  */
11360 #include <assert.h>
11361 /* Override any gcc2 internal prototype to avoid an error.  */
11362 /* We use char because int might match the return type of a gcc2
11363     builtin and then its argument prototype would still apply.  */
11364 char $ac_func();
11365
11366 int main() {
11367
11368 /* The GNU C library defines this for functions which it implements
11369     to always fail with ENOSYS.  Some functions are actually named
11370     something starting with __ and the normal name is an alias.  */
11371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11372 choke me
11373 #else
11374 $ac_func();
11375 #endif
11376
11377 ; return 0; }
11378 EOF
11379 if { (eval echo configure:11380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11380   rm -rf conftest*
11381   eval "ac_cv_func_$ac_func=yes"
11382 else
11383   echo "configure: failed program was:" >&5
11384   cat conftest.$ac_ext >&5
11385   rm -rf conftest*
11386   eval "ac_cv_func_$ac_func=no"
11387 fi
11388 rm -f conftest*
11389 fi
11390
11391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11392   echo "$ac_t""yes" 1>&6
11393     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11394   cat >> confdefs.h <<EOF
11395 #define $ac_tr_func 1
11396 EOF
11397  
11398 else
11399   echo "$ac_t""no" 1>&6
11400 fi
11401 done
11402     
11403   else
11404     
11405   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
11406 echo "configure:11407: checking for _isinfl declaration" >&5
11407   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
11408     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
11409   echo $ac_n "(cached) $ac_c" 1>&6
11410 else
11411   
11412       
11413       ac_ext=C
11414 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11415 ac_cpp='$CXXCPP $CPPFLAGS'
11416 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11417 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11418 cross_compiling=$ac_cv_prog_cxx_cross
11419
11420       cat > conftest.$ac_ext <<EOF
11421 #line 11422 "configure"
11422 #include "confdefs.h"
11423 #include <math.h>
11424                       #ifdef HAVE_IEEEFP_H
11425                       #include <ieeefp.h>
11426                       #endif
11427                      
11428 int main() {
11429  _isinfl(0);
11430 ; return 0; }
11431 EOF
11432 if { (eval echo configure:11433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11433   rm -rf conftest*
11434   glibcpp_cv_func__isinfl_use=yes
11435 else
11436   echo "configure: failed program was:" >&5
11437   cat conftest.$ac_ext >&5
11438   rm -rf conftest*
11439   glibcpp_cv_func__isinfl_use=no
11440 fi
11441 rm -f conftest*
11442       ac_ext=c
11443 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11444 ac_cpp='$CPP $CPPFLAGS'
11445 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11446 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11447 cross_compiling=$ac_cv_prog_cc_cross
11448
11449     
11450 fi
11451
11452   fi
11453   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
11454
11455     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
11456       for ac_func in _isinfl
11457 do
11458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11459 echo "configure:11460: checking for $ac_func" >&5
11460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11461   echo $ac_n "(cached) $ac_c" 1>&6
11462 else
11463   cat > conftest.$ac_ext <<EOF
11464 #line 11465 "configure"
11465 #include "confdefs.h"
11466 /* System header to define __stub macros and hopefully few prototypes,
11467     which can conflict with char $ac_func(); below.  */
11468 #include <assert.h>
11469 /* Override any gcc2 internal prototype to avoid an error.  */
11470 /* We use char because int might match the return type of a gcc2
11471     builtin and then its argument prototype would still apply.  */
11472 char $ac_func();
11473
11474 int main() {
11475
11476 /* The GNU C library defines this for functions which it implements
11477     to always fail with ENOSYS.  Some functions are actually named
11478     something starting with __ and the normal name is an alias.  */
11479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11480 choke me
11481 #else
11482 $ac_func();
11483 #endif
11484
11485 ; return 0; }
11486 EOF
11487 if { (eval echo configure:11488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11488   rm -rf conftest*
11489   eval "ac_cv_func_$ac_func=yes"
11490 else
11491   echo "configure: failed program was:" >&5
11492   cat conftest.$ac_ext >&5
11493   rm -rf conftest*
11494   eval "ac_cv_func_$ac_func=no"
11495 fi
11496 rm -f conftest*
11497 fi
11498
11499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11500   echo "$ac_t""yes" 1>&6
11501     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11502   cat >> confdefs.h <<EOF
11503 #define $ac_tr_func 1
11504 EOF
11505  
11506 else
11507   echo "$ac_t""no" 1>&6
11508 fi
11509 done
11510     
11511     fi
11512   fi
11513
11514   
11515   
11516   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
11517 echo "configure:11518: checking for copysignl declaration" >&5
11518   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
11519     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
11520   echo $ac_n "(cached) $ac_c" 1>&6
11521 else
11522   
11523       
11524       ac_ext=C
11525 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11526 ac_cpp='$CXXCPP $CPPFLAGS'
11527 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11528 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11529 cross_compiling=$ac_cv_prog_cxx_cross
11530
11531       cat > conftest.$ac_ext <<EOF
11532 #line 11533 "configure"
11533 #include "confdefs.h"
11534 #include <math.h>
11535 int main() {
11536  copysignl(0, 0);
11537 ; return 0; }
11538 EOF
11539 if { (eval echo configure:11540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11540   rm -rf conftest*
11541   glibcpp_cv_func_copysignl_use=yes
11542 else
11543   echo "configure: failed program was:" >&5
11544   cat conftest.$ac_ext >&5
11545   rm -rf conftest*
11546   glibcpp_cv_func_copysignl_use=no
11547 fi
11548 rm -f conftest*
11549       ac_ext=c
11550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11551 ac_cpp='$CPP $CPPFLAGS'
11552 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11553 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11554 cross_compiling=$ac_cv_prog_cc_cross
11555
11556     
11557 fi
11558
11559   fi
11560   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
11561
11562   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
11563     for ac_func in copysignl
11564 do
11565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11566 echo "configure:11567: checking for $ac_func" >&5
11567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11568   echo $ac_n "(cached) $ac_c" 1>&6
11569 else
11570   cat > conftest.$ac_ext <<EOF
11571 #line 11572 "configure"
11572 #include "confdefs.h"
11573 /* System header to define __stub macros and hopefully few prototypes,
11574     which can conflict with char $ac_func(); below.  */
11575 #include <assert.h>
11576 /* Override any gcc2 internal prototype to avoid an error.  */
11577 /* We use char because int might match the return type of a gcc2
11578     builtin and then its argument prototype would still apply.  */
11579 char $ac_func();
11580
11581 int main() {
11582
11583 /* The GNU C library defines this for functions which it implements
11584     to always fail with ENOSYS.  Some functions are actually named
11585     something starting with __ and the normal name is an alias.  */
11586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11587 choke me
11588 #else
11589 $ac_func();
11590 #endif
11591
11592 ; return 0; }
11593 EOF
11594 if { (eval echo configure:11595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11595   rm -rf conftest*
11596   eval "ac_cv_func_$ac_func=yes"
11597 else
11598   echo "configure: failed program was:" >&5
11599   cat conftest.$ac_ext >&5
11600   rm -rf conftest*
11601   eval "ac_cv_func_$ac_func=no"
11602 fi
11603 rm -f conftest*
11604 fi
11605
11606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11607   echo "$ac_t""yes" 1>&6
11608     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11609   cat >> confdefs.h <<EOF
11610 #define $ac_tr_func 1
11611 EOF
11612  
11613 else
11614   echo "$ac_t""no" 1>&6
11615 fi
11616 done
11617     
11618   else
11619     
11620   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
11621 echo "configure:11622: checking for _copysignl declaration" >&5
11622   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
11623     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
11624   echo $ac_n "(cached) $ac_c" 1>&6
11625 else
11626   
11627       
11628       ac_ext=C
11629 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11630 ac_cpp='$CXXCPP $CPPFLAGS'
11631 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11632 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11633 cross_compiling=$ac_cv_prog_cxx_cross
11634
11635       cat > conftest.$ac_ext <<EOF
11636 #line 11637 "configure"
11637 #include "confdefs.h"
11638 #include <math.h>
11639 int main() {
11640  _copysignl(0, 0);
11641 ; return 0; }
11642 EOF
11643 if { (eval echo configure:11644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11644   rm -rf conftest*
11645   glibcpp_cv_func__copysignl_use=yes
11646 else
11647   echo "configure: failed program was:" >&5
11648   cat conftest.$ac_ext >&5
11649   rm -rf conftest*
11650   glibcpp_cv_func__copysignl_use=no
11651 fi
11652 rm -f conftest*
11653       ac_ext=c
11654 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11655 ac_cpp='$CPP $CPPFLAGS'
11656 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11657 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11658 cross_compiling=$ac_cv_prog_cc_cross
11659
11660     
11661 fi
11662
11663   fi
11664   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
11665
11666     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
11667       for ac_func in _copysignl
11668 do
11669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11670 echo "configure:11671: checking for $ac_func" >&5
11671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11672   echo $ac_n "(cached) $ac_c" 1>&6
11673 else
11674   cat > conftest.$ac_ext <<EOF
11675 #line 11676 "configure"
11676 #include "confdefs.h"
11677 /* System header to define __stub macros and hopefully few prototypes,
11678     which can conflict with char $ac_func(); below.  */
11679 #include <assert.h>
11680 /* Override any gcc2 internal prototype to avoid an error.  */
11681 /* We use char because int might match the return type of a gcc2
11682     builtin and then its argument prototype would still apply.  */
11683 char $ac_func();
11684
11685 int main() {
11686
11687 /* The GNU C library defines this for functions which it implements
11688     to always fail with ENOSYS.  Some functions are actually named
11689     something starting with __ and the normal name is an alias.  */
11690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11691 choke me
11692 #else
11693 $ac_func();
11694 #endif
11695
11696 ; return 0; }
11697 EOF
11698 if { (eval echo configure:11699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11699   rm -rf conftest*
11700   eval "ac_cv_func_$ac_func=yes"
11701 else
11702   echo "configure: failed program was:" >&5
11703   cat conftest.$ac_ext >&5
11704   rm -rf conftest*
11705   eval "ac_cv_func_$ac_func=no"
11706 fi
11707 rm -f conftest*
11708 fi
11709
11710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11711   echo "$ac_t""yes" 1>&6
11712     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11713   cat >> confdefs.h <<EOF
11714 #define $ac_tr_func 1
11715 EOF
11716  
11717 else
11718   echo "$ac_t""no" 1>&6
11719 fi
11720 done
11721     
11722     fi
11723   fi
11724
11725   
11726   
11727   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
11728 echo "configure:11729: checking for atan2l declaration" >&5
11729   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
11730     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
11731   echo $ac_n "(cached) $ac_c" 1>&6
11732 else
11733   
11734       
11735       ac_ext=C
11736 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11737 ac_cpp='$CXXCPP $CPPFLAGS'
11738 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11739 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11740 cross_compiling=$ac_cv_prog_cxx_cross
11741
11742       cat > conftest.$ac_ext <<EOF
11743 #line 11744 "configure"
11744 #include "confdefs.h"
11745 #include <math.h>
11746 int main() {
11747  atan2l(0, 0);
11748 ; return 0; }
11749 EOF
11750 if { (eval echo configure:11751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11751   rm -rf conftest*
11752   glibcpp_cv_func_atan2l_use=yes
11753 else
11754   echo "configure: failed program was:" >&5
11755   cat conftest.$ac_ext >&5
11756   rm -rf conftest*
11757   glibcpp_cv_func_atan2l_use=no
11758 fi
11759 rm -f conftest*
11760       ac_ext=c
11761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11762 ac_cpp='$CPP $CPPFLAGS'
11763 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11764 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11765 cross_compiling=$ac_cv_prog_cc_cross
11766
11767     
11768 fi
11769
11770   fi
11771   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
11772
11773   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
11774     for ac_func in atan2l
11775 do
11776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11777 echo "configure:11778: checking for $ac_func" >&5
11778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11779   echo $ac_n "(cached) $ac_c" 1>&6
11780 else
11781   cat > conftest.$ac_ext <<EOF
11782 #line 11783 "configure"
11783 #include "confdefs.h"
11784 /* System header to define __stub macros and hopefully few prototypes,
11785     which can conflict with char $ac_func(); below.  */
11786 #include <assert.h>
11787 /* Override any gcc2 internal prototype to avoid an error.  */
11788 /* We use char because int might match the return type of a gcc2
11789     builtin and then its argument prototype would still apply.  */
11790 char $ac_func();
11791
11792 int main() {
11793
11794 /* The GNU C library defines this for functions which it implements
11795     to always fail with ENOSYS.  Some functions are actually named
11796     something starting with __ and the normal name is an alias.  */
11797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11798 choke me
11799 #else
11800 $ac_func();
11801 #endif
11802
11803 ; return 0; }
11804 EOF
11805 if { (eval echo configure:11806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11806   rm -rf conftest*
11807   eval "ac_cv_func_$ac_func=yes"
11808 else
11809   echo "configure: failed program was:" >&5
11810   cat conftest.$ac_ext >&5
11811   rm -rf conftest*
11812   eval "ac_cv_func_$ac_func=no"
11813 fi
11814 rm -f conftest*
11815 fi
11816
11817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11818   echo "$ac_t""yes" 1>&6
11819     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11820   cat >> confdefs.h <<EOF
11821 #define $ac_tr_func 1
11822 EOF
11823  
11824 else
11825   echo "$ac_t""no" 1>&6
11826 fi
11827 done
11828     
11829   else
11830     
11831   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
11832 echo "configure:11833: checking for _atan2l declaration" >&5
11833   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
11834     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
11835   echo $ac_n "(cached) $ac_c" 1>&6
11836 else
11837   
11838       
11839       ac_ext=C
11840 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11841 ac_cpp='$CXXCPP $CPPFLAGS'
11842 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11843 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11844 cross_compiling=$ac_cv_prog_cxx_cross
11845
11846       cat > conftest.$ac_ext <<EOF
11847 #line 11848 "configure"
11848 #include "confdefs.h"
11849 #include <math.h>
11850 int main() {
11851  _atan2l(0, 0);
11852 ; return 0; }
11853 EOF
11854 if { (eval echo configure:11855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11855   rm -rf conftest*
11856   glibcpp_cv_func__atan2l_use=yes
11857 else
11858   echo "configure: failed program was:" >&5
11859   cat conftest.$ac_ext >&5
11860   rm -rf conftest*
11861   glibcpp_cv_func__atan2l_use=no
11862 fi
11863 rm -f conftest*
11864       ac_ext=c
11865 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11866 ac_cpp='$CPP $CPPFLAGS'
11867 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11868 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11869 cross_compiling=$ac_cv_prog_cc_cross
11870
11871     
11872 fi
11873
11874   fi
11875   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
11876
11877     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
11878       for ac_func in _atan2l
11879 do
11880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11881 echo "configure:11882: checking for $ac_func" >&5
11882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11883   echo $ac_n "(cached) $ac_c" 1>&6
11884 else
11885   cat > conftest.$ac_ext <<EOF
11886 #line 11887 "configure"
11887 #include "confdefs.h"
11888 /* System header to define __stub macros and hopefully few prototypes,
11889     which can conflict with char $ac_func(); below.  */
11890 #include <assert.h>
11891 /* Override any gcc2 internal prototype to avoid an error.  */
11892 /* We use char because int might match the return type of a gcc2
11893     builtin and then its argument prototype would still apply.  */
11894 char $ac_func();
11895
11896 int main() {
11897
11898 /* The GNU C library defines this for functions which it implements
11899     to always fail with ENOSYS.  Some functions are actually named
11900     something starting with __ and the normal name is an alias.  */
11901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11902 choke me
11903 #else
11904 $ac_func();
11905 #endif
11906
11907 ; return 0; }
11908 EOF
11909 if { (eval echo configure:11910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11910   rm -rf conftest*
11911   eval "ac_cv_func_$ac_func=yes"
11912 else
11913   echo "configure: failed program was:" >&5
11914   cat conftest.$ac_ext >&5
11915   rm -rf conftest*
11916   eval "ac_cv_func_$ac_func=no"
11917 fi
11918 rm -f conftest*
11919 fi
11920
11921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11922   echo "$ac_t""yes" 1>&6
11923     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11924   cat >> confdefs.h <<EOF
11925 #define $ac_tr_func 1
11926 EOF
11927  
11928 else
11929   echo "$ac_t""no" 1>&6
11930 fi
11931 done
11932     
11933     fi
11934   fi
11935
11936   
11937   
11938   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
11939 echo "configure:11940: checking for expl declaration" >&5
11940   if test x${glibcpp_cv_func_expl_use+set} != xset; then
11941     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
11942   echo $ac_n "(cached) $ac_c" 1>&6
11943 else
11944   
11945       
11946       ac_ext=C
11947 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11948 ac_cpp='$CXXCPP $CPPFLAGS'
11949 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11950 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11951 cross_compiling=$ac_cv_prog_cxx_cross
11952
11953       cat > conftest.$ac_ext <<EOF
11954 #line 11955 "configure"
11955 #include "confdefs.h"
11956 #include <math.h>
11957                       #ifdef HAVE_IEEEFP_H
11958                       #include <ieeefp.h>
11959                       #endif
11960                      
11961 int main() {
11962  expl(0);
11963 ; return 0; }
11964 EOF
11965 if { (eval echo configure:11966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11966   rm -rf conftest*
11967   glibcpp_cv_func_expl_use=yes
11968 else
11969   echo "configure: failed program was:" >&5
11970   cat conftest.$ac_ext >&5
11971   rm -rf conftest*
11972   glibcpp_cv_func_expl_use=no
11973 fi
11974 rm -f conftest*
11975       ac_ext=c
11976 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11977 ac_cpp='$CPP $CPPFLAGS'
11978 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11979 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11980 cross_compiling=$ac_cv_prog_cc_cross
11981
11982     
11983 fi
11984
11985   fi
11986   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
11987
11988   if test x$glibcpp_cv_func_expl_use = x"yes"; then
11989     for ac_func in expl
11990 do
11991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11992 echo "configure:11993: checking for $ac_func" >&5
11993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11994   echo $ac_n "(cached) $ac_c" 1>&6
11995 else
11996   cat > conftest.$ac_ext <<EOF
11997 #line 11998 "configure"
11998 #include "confdefs.h"
11999 /* System header to define __stub macros and hopefully few prototypes,
12000     which can conflict with char $ac_func(); below.  */
12001 #include <assert.h>
12002 /* Override any gcc2 internal prototype to avoid an error.  */
12003 /* We use char because int might match the return type of a gcc2
12004     builtin and then its argument prototype would still apply.  */
12005 char $ac_func();
12006
12007 int main() {
12008
12009 /* The GNU C library defines this for functions which it implements
12010     to always fail with ENOSYS.  Some functions are actually named
12011     something starting with __ and the normal name is an alias.  */
12012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12013 choke me
12014 #else
12015 $ac_func();
12016 #endif
12017
12018 ; return 0; }
12019 EOF
12020 if { (eval echo configure:12021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12021   rm -rf conftest*
12022   eval "ac_cv_func_$ac_func=yes"
12023 else
12024   echo "configure: failed program was:" >&5
12025   cat conftest.$ac_ext >&5
12026   rm -rf conftest*
12027   eval "ac_cv_func_$ac_func=no"
12028 fi
12029 rm -f conftest*
12030 fi
12031
12032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12033   echo "$ac_t""yes" 1>&6
12034     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12035   cat >> confdefs.h <<EOF
12036 #define $ac_tr_func 1
12037 EOF
12038  
12039 else
12040   echo "$ac_t""no" 1>&6
12041 fi
12042 done
12043     
12044   else
12045     
12046   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12047 echo "configure:12048: checking for _expl declaration" >&5
12048   if test x${glibcpp_cv_func__expl_use+set} != xset; then
12049     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12050   echo $ac_n "(cached) $ac_c" 1>&6
12051 else
12052   
12053       
12054       ac_ext=C
12055 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12056 ac_cpp='$CXXCPP $CPPFLAGS'
12057 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12058 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12059 cross_compiling=$ac_cv_prog_cxx_cross
12060
12061       cat > conftest.$ac_ext <<EOF
12062 #line 12063 "configure"
12063 #include "confdefs.h"
12064 #include <math.h>
12065                       #ifdef HAVE_IEEEFP_H
12066                       #include <ieeefp.h>
12067                       #endif
12068                      
12069 int main() {
12070  _expl(0);
12071 ; return 0; }
12072 EOF
12073 if { (eval echo configure:12074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12074   rm -rf conftest*
12075   glibcpp_cv_func__expl_use=yes
12076 else
12077   echo "configure: failed program was:" >&5
12078   cat conftest.$ac_ext >&5
12079   rm -rf conftest*
12080   glibcpp_cv_func__expl_use=no
12081 fi
12082 rm -f conftest*
12083       ac_ext=c
12084 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12085 ac_cpp='$CPP $CPPFLAGS'
12086 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12087 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12088 cross_compiling=$ac_cv_prog_cc_cross
12089
12090     
12091 fi
12092
12093   fi
12094   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12095
12096     if test x$glibcpp_cv_func__expl_use = x"yes"; then
12097       for ac_func in _expl
12098 do
12099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12100 echo "configure:12101: checking for $ac_func" >&5
12101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12102   echo $ac_n "(cached) $ac_c" 1>&6
12103 else
12104   cat > conftest.$ac_ext <<EOF
12105 #line 12106 "configure"
12106 #include "confdefs.h"
12107 /* System header to define __stub macros and hopefully few prototypes,
12108     which can conflict with char $ac_func(); below.  */
12109 #include <assert.h>
12110 /* Override any gcc2 internal prototype to avoid an error.  */
12111 /* We use char because int might match the return type of a gcc2
12112     builtin and then its argument prototype would still apply.  */
12113 char $ac_func();
12114
12115 int main() {
12116
12117 /* The GNU C library defines this for functions which it implements
12118     to always fail with ENOSYS.  Some functions are actually named
12119     something starting with __ and the normal name is an alias.  */
12120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12121 choke me
12122 #else
12123 $ac_func();
12124 #endif
12125
12126 ; return 0; }
12127 EOF
12128 if { (eval echo configure:12129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12129   rm -rf conftest*
12130   eval "ac_cv_func_$ac_func=yes"
12131 else
12132   echo "configure: failed program was:" >&5
12133   cat conftest.$ac_ext >&5
12134   rm -rf conftest*
12135   eval "ac_cv_func_$ac_func=no"
12136 fi
12137 rm -f conftest*
12138 fi
12139
12140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12141   echo "$ac_t""yes" 1>&6
12142     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12143   cat >> confdefs.h <<EOF
12144 #define $ac_tr_func 1
12145 EOF
12146  
12147 else
12148   echo "$ac_t""no" 1>&6
12149 fi
12150 done
12151     
12152     fi
12153   fi
12154
12155   
12156   
12157   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
12158 echo "configure:12159: checking for fabsl declaration" >&5
12159   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
12160     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
12161   echo $ac_n "(cached) $ac_c" 1>&6
12162 else
12163   
12164       
12165       ac_ext=C
12166 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12167 ac_cpp='$CXXCPP $CPPFLAGS'
12168 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12169 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12170 cross_compiling=$ac_cv_prog_cxx_cross
12171
12172       cat > conftest.$ac_ext <<EOF
12173 #line 12174 "configure"
12174 #include "confdefs.h"
12175 #include <math.h>
12176                       #ifdef HAVE_IEEEFP_H
12177                       #include <ieeefp.h>
12178                       #endif
12179                      
12180 int main() {
12181  fabsl(0);
12182 ; return 0; }
12183 EOF
12184 if { (eval echo configure:12185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12185   rm -rf conftest*
12186   glibcpp_cv_func_fabsl_use=yes
12187 else
12188   echo "configure: failed program was:" >&5
12189   cat conftest.$ac_ext >&5
12190   rm -rf conftest*
12191   glibcpp_cv_func_fabsl_use=no
12192 fi
12193 rm -f conftest*
12194       ac_ext=c
12195 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12196 ac_cpp='$CPP $CPPFLAGS'
12197 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12198 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12199 cross_compiling=$ac_cv_prog_cc_cross
12200
12201     
12202 fi
12203
12204   fi
12205   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
12206
12207   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
12208     for ac_func in fabsl
12209 do
12210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12211 echo "configure:12212: checking for $ac_func" >&5
12212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12213   echo $ac_n "(cached) $ac_c" 1>&6
12214 else
12215   cat > conftest.$ac_ext <<EOF
12216 #line 12217 "configure"
12217 #include "confdefs.h"
12218 /* System header to define __stub macros and hopefully few prototypes,
12219     which can conflict with char $ac_func(); below.  */
12220 #include <assert.h>
12221 /* Override any gcc2 internal prototype to avoid an error.  */
12222 /* We use char because int might match the return type of a gcc2
12223     builtin and then its argument prototype would still apply.  */
12224 char $ac_func();
12225
12226 int main() {
12227
12228 /* The GNU C library defines this for functions which it implements
12229     to always fail with ENOSYS.  Some functions are actually named
12230     something starting with __ and the normal name is an alias.  */
12231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12232 choke me
12233 #else
12234 $ac_func();
12235 #endif
12236
12237 ; return 0; }
12238 EOF
12239 if { (eval echo configure:12240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12240   rm -rf conftest*
12241   eval "ac_cv_func_$ac_func=yes"
12242 else
12243   echo "configure: failed program was:" >&5
12244   cat conftest.$ac_ext >&5
12245   rm -rf conftest*
12246   eval "ac_cv_func_$ac_func=no"
12247 fi
12248 rm -f conftest*
12249 fi
12250
12251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12252   echo "$ac_t""yes" 1>&6
12253     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12254   cat >> confdefs.h <<EOF
12255 #define $ac_tr_func 1
12256 EOF
12257  
12258 else
12259   echo "$ac_t""no" 1>&6
12260 fi
12261 done
12262     
12263   else
12264     
12265   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
12266 echo "configure:12267: checking for _fabsl declaration" >&5
12267   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
12268     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
12269   echo $ac_n "(cached) $ac_c" 1>&6
12270 else
12271   
12272       
12273       ac_ext=C
12274 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12275 ac_cpp='$CXXCPP $CPPFLAGS'
12276 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12277 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12278 cross_compiling=$ac_cv_prog_cxx_cross
12279
12280       cat > conftest.$ac_ext <<EOF
12281 #line 12282 "configure"
12282 #include "confdefs.h"
12283 #include <math.h>
12284                       #ifdef HAVE_IEEEFP_H
12285                       #include <ieeefp.h>
12286                       #endif
12287                      
12288 int main() {
12289  _fabsl(0);
12290 ; return 0; }
12291 EOF
12292 if { (eval echo configure:12293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12293   rm -rf conftest*
12294   glibcpp_cv_func__fabsl_use=yes
12295 else
12296   echo "configure: failed program was:" >&5
12297   cat conftest.$ac_ext >&5
12298   rm -rf conftest*
12299   glibcpp_cv_func__fabsl_use=no
12300 fi
12301 rm -f conftest*
12302       ac_ext=c
12303 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12304 ac_cpp='$CPP $CPPFLAGS'
12305 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12306 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12307 cross_compiling=$ac_cv_prog_cc_cross
12308
12309     
12310 fi
12311
12312   fi
12313   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
12314
12315     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
12316       for ac_func in _fabsl
12317 do
12318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12319 echo "configure:12320: checking for $ac_func" >&5
12320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12321   echo $ac_n "(cached) $ac_c" 1>&6
12322 else
12323   cat > conftest.$ac_ext <<EOF
12324 #line 12325 "configure"
12325 #include "confdefs.h"
12326 /* System header to define __stub macros and hopefully few prototypes,
12327     which can conflict with char $ac_func(); below.  */
12328 #include <assert.h>
12329 /* Override any gcc2 internal prototype to avoid an error.  */
12330 /* We use char because int might match the return type of a gcc2
12331     builtin and then its argument prototype would still apply.  */
12332 char $ac_func();
12333
12334 int main() {
12335
12336 /* The GNU C library defines this for functions which it implements
12337     to always fail with ENOSYS.  Some functions are actually named
12338     something starting with __ and the normal name is an alias.  */
12339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12340 choke me
12341 #else
12342 $ac_func();
12343 #endif
12344
12345 ; return 0; }
12346 EOF
12347 if { (eval echo configure:12348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12348   rm -rf conftest*
12349   eval "ac_cv_func_$ac_func=yes"
12350 else
12351   echo "configure: failed program was:" >&5
12352   cat conftest.$ac_ext >&5
12353   rm -rf conftest*
12354   eval "ac_cv_func_$ac_func=no"
12355 fi
12356 rm -f conftest*
12357 fi
12358
12359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12360   echo "$ac_t""yes" 1>&6
12361     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12362   cat >> confdefs.h <<EOF
12363 #define $ac_tr_func 1
12364 EOF
12365  
12366 else
12367   echo "$ac_t""no" 1>&6
12368 fi
12369 done
12370     
12371     fi
12372   fi
12373
12374   
12375   
12376   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
12377 echo "configure:12378: checking for fmodl declaration" >&5
12378   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
12379     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
12380   echo $ac_n "(cached) $ac_c" 1>&6
12381 else
12382   
12383       
12384       ac_ext=C
12385 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12386 ac_cpp='$CXXCPP $CPPFLAGS'
12387 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12388 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12389 cross_compiling=$ac_cv_prog_cxx_cross
12390
12391       cat > conftest.$ac_ext <<EOF
12392 #line 12393 "configure"
12393 #include "confdefs.h"
12394 #include <math.h>
12395 int main() {
12396  fmodl(0, 0);
12397 ; return 0; }
12398 EOF
12399 if { (eval echo configure:12400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12400   rm -rf conftest*
12401   glibcpp_cv_func_fmodl_use=yes
12402 else
12403   echo "configure: failed program was:" >&5
12404   cat conftest.$ac_ext >&5
12405   rm -rf conftest*
12406   glibcpp_cv_func_fmodl_use=no
12407 fi
12408 rm -f conftest*
12409       ac_ext=c
12410 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12411 ac_cpp='$CPP $CPPFLAGS'
12412 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12413 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12414 cross_compiling=$ac_cv_prog_cc_cross
12415
12416     
12417 fi
12418
12419   fi
12420   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
12421
12422   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
12423     for ac_func in fmodl
12424 do
12425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12426 echo "configure:12427: checking for $ac_func" >&5
12427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12428   echo $ac_n "(cached) $ac_c" 1>&6
12429 else
12430   cat > conftest.$ac_ext <<EOF
12431 #line 12432 "configure"
12432 #include "confdefs.h"
12433 /* System header to define __stub macros and hopefully few prototypes,
12434     which can conflict with char $ac_func(); below.  */
12435 #include <assert.h>
12436 /* Override any gcc2 internal prototype to avoid an error.  */
12437 /* We use char because int might match the return type of a gcc2
12438     builtin and then its argument prototype would still apply.  */
12439 char $ac_func();
12440
12441 int main() {
12442
12443 /* The GNU C library defines this for functions which it implements
12444     to always fail with ENOSYS.  Some functions are actually named
12445     something starting with __ and the normal name is an alias.  */
12446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12447 choke me
12448 #else
12449 $ac_func();
12450 #endif
12451
12452 ; return 0; }
12453 EOF
12454 if { (eval echo configure:12455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12455   rm -rf conftest*
12456   eval "ac_cv_func_$ac_func=yes"
12457 else
12458   echo "configure: failed program was:" >&5
12459   cat conftest.$ac_ext >&5
12460   rm -rf conftest*
12461   eval "ac_cv_func_$ac_func=no"
12462 fi
12463 rm -f conftest*
12464 fi
12465
12466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12467   echo "$ac_t""yes" 1>&6
12468     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12469   cat >> confdefs.h <<EOF
12470 #define $ac_tr_func 1
12471 EOF
12472  
12473 else
12474   echo "$ac_t""no" 1>&6
12475 fi
12476 done
12477     
12478   else
12479     
12480   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
12481 echo "configure:12482: checking for _fmodl declaration" >&5
12482   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
12483     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
12484   echo $ac_n "(cached) $ac_c" 1>&6
12485 else
12486   
12487       
12488       ac_ext=C
12489 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12490 ac_cpp='$CXXCPP $CPPFLAGS'
12491 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12492 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12493 cross_compiling=$ac_cv_prog_cxx_cross
12494
12495       cat > conftest.$ac_ext <<EOF
12496 #line 12497 "configure"
12497 #include "confdefs.h"
12498 #include <math.h>
12499 int main() {
12500  _fmodl(0, 0);
12501 ; return 0; }
12502 EOF
12503 if { (eval echo configure:12504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12504   rm -rf conftest*
12505   glibcpp_cv_func__fmodl_use=yes
12506 else
12507   echo "configure: failed program was:" >&5
12508   cat conftest.$ac_ext >&5
12509   rm -rf conftest*
12510   glibcpp_cv_func__fmodl_use=no
12511 fi
12512 rm -f conftest*
12513       ac_ext=c
12514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12515 ac_cpp='$CPP $CPPFLAGS'
12516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12518 cross_compiling=$ac_cv_prog_cc_cross
12519
12520     
12521 fi
12522
12523   fi
12524   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
12525
12526     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
12527       for ac_func in _fmodl
12528 do
12529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12530 echo "configure:12531: checking for $ac_func" >&5
12531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12532   echo $ac_n "(cached) $ac_c" 1>&6
12533 else
12534   cat > conftest.$ac_ext <<EOF
12535 #line 12536 "configure"
12536 #include "confdefs.h"
12537 /* System header to define __stub macros and hopefully few prototypes,
12538     which can conflict with char $ac_func(); below.  */
12539 #include <assert.h>
12540 /* Override any gcc2 internal prototype to avoid an error.  */
12541 /* We use char because int might match the return type of a gcc2
12542     builtin and then its argument prototype would still apply.  */
12543 char $ac_func();
12544
12545 int main() {
12546
12547 /* The GNU C library defines this for functions which it implements
12548     to always fail with ENOSYS.  Some functions are actually named
12549     something starting with __ and the normal name is an alias.  */
12550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12551 choke me
12552 #else
12553 $ac_func();
12554 #endif
12555
12556 ; return 0; }
12557 EOF
12558 if { (eval echo configure:12559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12559   rm -rf conftest*
12560   eval "ac_cv_func_$ac_func=yes"
12561 else
12562   echo "configure: failed program was:" >&5
12563   cat conftest.$ac_ext >&5
12564   rm -rf conftest*
12565   eval "ac_cv_func_$ac_func=no"
12566 fi
12567 rm -f conftest*
12568 fi
12569
12570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12571   echo "$ac_t""yes" 1>&6
12572     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12573   cat >> confdefs.h <<EOF
12574 #define $ac_tr_func 1
12575 EOF
12576  
12577 else
12578   echo "$ac_t""no" 1>&6
12579 fi
12580 done
12581     
12582     fi
12583   fi
12584
12585   
12586   
12587   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
12588 echo "configure:12589: checking for frexpl declaration" >&5
12589   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
12590     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
12591   echo $ac_n "(cached) $ac_c" 1>&6
12592 else
12593   
12594       
12595       ac_ext=C
12596 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12597 ac_cpp='$CXXCPP $CPPFLAGS'
12598 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12599 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12600 cross_compiling=$ac_cv_prog_cxx_cross
12601
12602       cat > conftest.$ac_ext <<EOF
12603 #line 12604 "configure"
12604 #include "confdefs.h"
12605 #include <math.h>
12606 int main() {
12607  frexpl(0, 0);
12608 ; return 0; }
12609 EOF
12610 if { (eval echo configure:12611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12611   rm -rf conftest*
12612   glibcpp_cv_func_frexpl_use=yes
12613 else
12614   echo "configure: failed program was:" >&5
12615   cat conftest.$ac_ext >&5
12616   rm -rf conftest*
12617   glibcpp_cv_func_frexpl_use=no
12618 fi
12619 rm -f conftest*
12620       ac_ext=c
12621 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12622 ac_cpp='$CPP $CPPFLAGS'
12623 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12624 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12625 cross_compiling=$ac_cv_prog_cc_cross
12626
12627     
12628 fi
12629
12630   fi
12631   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
12632
12633   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
12634     for ac_func in frexpl
12635 do
12636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12637 echo "configure:12638: checking for $ac_func" >&5
12638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12639   echo $ac_n "(cached) $ac_c" 1>&6
12640 else
12641   cat > conftest.$ac_ext <<EOF
12642 #line 12643 "configure"
12643 #include "confdefs.h"
12644 /* System header to define __stub macros and hopefully few prototypes,
12645     which can conflict with char $ac_func(); below.  */
12646 #include <assert.h>
12647 /* Override any gcc2 internal prototype to avoid an error.  */
12648 /* We use char because int might match the return type of a gcc2
12649     builtin and then its argument prototype would still apply.  */
12650 char $ac_func();
12651
12652 int main() {
12653
12654 /* The GNU C library defines this for functions which it implements
12655     to always fail with ENOSYS.  Some functions are actually named
12656     something starting with __ and the normal name is an alias.  */
12657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12658 choke me
12659 #else
12660 $ac_func();
12661 #endif
12662
12663 ; return 0; }
12664 EOF
12665 if { (eval echo configure:12666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12666   rm -rf conftest*
12667   eval "ac_cv_func_$ac_func=yes"
12668 else
12669   echo "configure: failed program was:" >&5
12670   cat conftest.$ac_ext >&5
12671   rm -rf conftest*
12672   eval "ac_cv_func_$ac_func=no"
12673 fi
12674 rm -f conftest*
12675 fi
12676
12677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12678   echo "$ac_t""yes" 1>&6
12679     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12680   cat >> confdefs.h <<EOF
12681 #define $ac_tr_func 1
12682 EOF
12683  
12684 else
12685   echo "$ac_t""no" 1>&6
12686 fi
12687 done
12688     
12689   else
12690     
12691   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
12692 echo "configure:12693: checking for _frexpl declaration" >&5
12693   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
12694     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
12695   echo $ac_n "(cached) $ac_c" 1>&6
12696 else
12697   
12698       
12699       ac_ext=C
12700 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12701 ac_cpp='$CXXCPP $CPPFLAGS'
12702 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12703 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12704 cross_compiling=$ac_cv_prog_cxx_cross
12705
12706       cat > conftest.$ac_ext <<EOF
12707 #line 12708 "configure"
12708 #include "confdefs.h"
12709 #include <math.h>
12710 int main() {
12711  _frexpl(0, 0);
12712 ; return 0; }
12713 EOF
12714 if { (eval echo configure:12715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12715   rm -rf conftest*
12716   glibcpp_cv_func__frexpl_use=yes
12717 else
12718   echo "configure: failed program was:" >&5
12719   cat conftest.$ac_ext >&5
12720   rm -rf conftest*
12721   glibcpp_cv_func__frexpl_use=no
12722 fi
12723 rm -f conftest*
12724       ac_ext=c
12725 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12726 ac_cpp='$CPP $CPPFLAGS'
12727 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12728 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12729 cross_compiling=$ac_cv_prog_cc_cross
12730
12731     
12732 fi
12733
12734   fi
12735   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
12736
12737     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
12738       for ac_func in _frexpl
12739 do
12740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12741 echo "configure:12742: checking for $ac_func" >&5
12742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12743   echo $ac_n "(cached) $ac_c" 1>&6
12744 else
12745   cat > conftest.$ac_ext <<EOF
12746 #line 12747 "configure"
12747 #include "confdefs.h"
12748 /* System header to define __stub macros and hopefully few prototypes,
12749     which can conflict with char $ac_func(); below.  */
12750 #include <assert.h>
12751 /* Override any gcc2 internal prototype to avoid an error.  */
12752 /* We use char because int might match the return type of a gcc2
12753     builtin and then its argument prototype would still apply.  */
12754 char $ac_func();
12755
12756 int main() {
12757
12758 /* The GNU C library defines this for functions which it implements
12759     to always fail with ENOSYS.  Some functions are actually named
12760     something starting with __ and the normal name is an alias.  */
12761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12762 choke me
12763 #else
12764 $ac_func();
12765 #endif
12766
12767 ; return 0; }
12768 EOF
12769 if { (eval echo configure:12770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12770   rm -rf conftest*
12771   eval "ac_cv_func_$ac_func=yes"
12772 else
12773   echo "configure: failed program was:" >&5
12774   cat conftest.$ac_ext >&5
12775   rm -rf conftest*
12776   eval "ac_cv_func_$ac_func=no"
12777 fi
12778 rm -f conftest*
12779 fi
12780
12781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12782   echo "$ac_t""yes" 1>&6
12783     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12784   cat >> confdefs.h <<EOF
12785 #define $ac_tr_func 1
12786 EOF
12787  
12788 else
12789   echo "$ac_t""no" 1>&6
12790 fi
12791 done
12792     
12793     fi
12794   fi
12795
12796   
12797   
12798   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
12799 echo "configure:12800: checking for ldexpl declaration" >&5
12800   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
12801     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
12802   echo $ac_n "(cached) $ac_c" 1>&6
12803 else
12804   
12805       
12806       ac_ext=C
12807 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12808 ac_cpp='$CXXCPP $CPPFLAGS'
12809 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12810 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12811 cross_compiling=$ac_cv_prog_cxx_cross
12812
12813       cat > conftest.$ac_ext <<EOF
12814 #line 12815 "configure"
12815 #include "confdefs.h"
12816 #include <math.h>
12817 int main() {
12818  ldexpl(0, 0);
12819 ; return 0; }
12820 EOF
12821 if { (eval echo configure:12822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12822   rm -rf conftest*
12823   glibcpp_cv_func_ldexpl_use=yes
12824 else
12825   echo "configure: failed program was:" >&5
12826   cat conftest.$ac_ext >&5
12827   rm -rf conftest*
12828   glibcpp_cv_func_ldexpl_use=no
12829 fi
12830 rm -f conftest*
12831       ac_ext=c
12832 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12833 ac_cpp='$CPP $CPPFLAGS'
12834 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12835 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12836 cross_compiling=$ac_cv_prog_cc_cross
12837
12838     
12839 fi
12840
12841   fi
12842   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
12843
12844   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
12845     for ac_func in ldexpl
12846 do
12847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12848 echo "configure:12849: checking for $ac_func" >&5
12849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12850   echo $ac_n "(cached) $ac_c" 1>&6
12851 else
12852   cat > conftest.$ac_ext <<EOF
12853 #line 12854 "configure"
12854 #include "confdefs.h"
12855 /* System header to define __stub macros and hopefully few prototypes,
12856     which can conflict with char $ac_func(); below.  */
12857 #include <assert.h>
12858 /* Override any gcc2 internal prototype to avoid an error.  */
12859 /* We use char because int might match the return type of a gcc2
12860     builtin and then its argument prototype would still apply.  */
12861 char $ac_func();
12862
12863 int main() {
12864
12865 /* The GNU C library defines this for functions which it implements
12866     to always fail with ENOSYS.  Some functions are actually named
12867     something starting with __ and the normal name is an alias.  */
12868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12869 choke me
12870 #else
12871 $ac_func();
12872 #endif
12873
12874 ; return 0; }
12875 EOF
12876 if { (eval echo configure:12877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12877   rm -rf conftest*
12878   eval "ac_cv_func_$ac_func=yes"
12879 else
12880   echo "configure: failed program was:" >&5
12881   cat conftest.$ac_ext >&5
12882   rm -rf conftest*
12883   eval "ac_cv_func_$ac_func=no"
12884 fi
12885 rm -f conftest*
12886 fi
12887
12888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12889   echo "$ac_t""yes" 1>&6
12890     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12891   cat >> confdefs.h <<EOF
12892 #define $ac_tr_func 1
12893 EOF
12894  
12895 else
12896   echo "$ac_t""no" 1>&6
12897 fi
12898 done
12899     
12900   else
12901     
12902   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
12903 echo "configure:12904: checking for _ldexpl declaration" >&5
12904   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
12905     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
12906   echo $ac_n "(cached) $ac_c" 1>&6
12907 else
12908   
12909       
12910       ac_ext=C
12911 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12912 ac_cpp='$CXXCPP $CPPFLAGS'
12913 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12914 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12915 cross_compiling=$ac_cv_prog_cxx_cross
12916
12917       cat > conftest.$ac_ext <<EOF
12918 #line 12919 "configure"
12919 #include "confdefs.h"
12920 #include <math.h>
12921 int main() {
12922  _ldexpl(0, 0);
12923 ; return 0; }
12924 EOF
12925 if { (eval echo configure:12926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12926   rm -rf conftest*
12927   glibcpp_cv_func__ldexpl_use=yes
12928 else
12929   echo "configure: failed program was:" >&5
12930   cat conftest.$ac_ext >&5
12931   rm -rf conftest*
12932   glibcpp_cv_func__ldexpl_use=no
12933 fi
12934 rm -f conftest*
12935       ac_ext=c
12936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12937 ac_cpp='$CPP $CPPFLAGS'
12938 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12939 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12940 cross_compiling=$ac_cv_prog_cc_cross
12941
12942     
12943 fi
12944
12945   fi
12946   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
12947
12948     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
12949       for ac_func in _ldexpl
12950 do
12951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12952 echo "configure:12953: checking for $ac_func" >&5
12953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12954   echo $ac_n "(cached) $ac_c" 1>&6
12955 else
12956   cat > conftest.$ac_ext <<EOF
12957 #line 12958 "configure"
12958 #include "confdefs.h"
12959 /* System header to define __stub macros and hopefully few prototypes,
12960     which can conflict with char $ac_func(); below.  */
12961 #include <assert.h>
12962 /* Override any gcc2 internal prototype to avoid an error.  */
12963 /* We use char because int might match the return type of a gcc2
12964     builtin and then its argument prototype would still apply.  */
12965 char $ac_func();
12966
12967 int main() {
12968
12969 /* The GNU C library defines this for functions which it implements
12970     to always fail with ENOSYS.  Some functions are actually named
12971     something starting with __ and the normal name is an alias.  */
12972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12973 choke me
12974 #else
12975 $ac_func();
12976 #endif
12977
12978 ; return 0; }
12979 EOF
12980 if { (eval echo configure:12981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12981   rm -rf conftest*
12982   eval "ac_cv_func_$ac_func=yes"
12983 else
12984   echo "configure: failed program was:" >&5
12985   cat conftest.$ac_ext >&5
12986   rm -rf conftest*
12987   eval "ac_cv_func_$ac_func=no"
12988 fi
12989 rm -f conftest*
12990 fi
12991
12992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12993   echo "$ac_t""yes" 1>&6
12994     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12995   cat >> confdefs.h <<EOF
12996 #define $ac_tr_func 1
12997 EOF
12998  
12999 else
13000   echo "$ac_t""no" 1>&6
13001 fi
13002 done
13003     
13004     fi
13005   fi
13006
13007   
13008   
13009   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
13010 echo "configure:13011: checking for logl declaration" >&5
13011   if test x${glibcpp_cv_func_logl_use+set} != xset; then
13012     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
13013   echo $ac_n "(cached) $ac_c" 1>&6
13014 else
13015   
13016       
13017       ac_ext=C
13018 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13019 ac_cpp='$CXXCPP $CPPFLAGS'
13020 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13021 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13022 cross_compiling=$ac_cv_prog_cxx_cross
13023
13024       cat > conftest.$ac_ext <<EOF
13025 #line 13026 "configure"
13026 #include "confdefs.h"
13027 #include <math.h>
13028                       #ifdef HAVE_IEEEFP_H
13029                       #include <ieeefp.h>
13030                       #endif
13031                      
13032 int main() {
13033  logl(0);
13034 ; return 0; }
13035 EOF
13036 if { (eval echo configure:13037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13037   rm -rf conftest*
13038   glibcpp_cv_func_logl_use=yes
13039 else
13040   echo "configure: failed program was:" >&5
13041   cat conftest.$ac_ext >&5
13042   rm -rf conftest*
13043   glibcpp_cv_func_logl_use=no
13044 fi
13045 rm -f conftest*
13046       ac_ext=c
13047 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13048 ac_cpp='$CPP $CPPFLAGS'
13049 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13050 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13051 cross_compiling=$ac_cv_prog_cc_cross
13052
13053     
13054 fi
13055
13056   fi
13057   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
13058
13059   if test x$glibcpp_cv_func_logl_use = x"yes"; then
13060     for ac_func in logl
13061 do
13062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13063 echo "configure:13064: checking for $ac_func" >&5
13064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13065   echo $ac_n "(cached) $ac_c" 1>&6
13066 else
13067   cat > conftest.$ac_ext <<EOF
13068 #line 13069 "configure"
13069 #include "confdefs.h"
13070 /* System header to define __stub macros and hopefully few prototypes,
13071     which can conflict with char $ac_func(); below.  */
13072 #include <assert.h>
13073 /* Override any gcc2 internal prototype to avoid an error.  */
13074 /* We use char because int might match the return type of a gcc2
13075     builtin and then its argument prototype would still apply.  */
13076 char $ac_func();
13077
13078 int main() {
13079
13080 /* The GNU C library defines this for functions which it implements
13081     to always fail with ENOSYS.  Some functions are actually named
13082     something starting with __ and the normal name is an alias.  */
13083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13084 choke me
13085 #else
13086 $ac_func();
13087 #endif
13088
13089 ; return 0; }
13090 EOF
13091 if { (eval echo configure:13092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13092   rm -rf conftest*
13093   eval "ac_cv_func_$ac_func=yes"
13094 else
13095   echo "configure: failed program was:" >&5
13096   cat conftest.$ac_ext >&5
13097   rm -rf conftest*
13098   eval "ac_cv_func_$ac_func=no"
13099 fi
13100 rm -f conftest*
13101 fi
13102
13103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13104   echo "$ac_t""yes" 1>&6
13105     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13106   cat >> confdefs.h <<EOF
13107 #define $ac_tr_func 1
13108 EOF
13109  
13110 else
13111   echo "$ac_t""no" 1>&6
13112 fi
13113 done
13114     
13115   else
13116     
13117   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
13118 echo "configure:13119: checking for _logl declaration" >&5
13119   if test x${glibcpp_cv_func__logl_use+set} != xset; then
13120     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
13121   echo $ac_n "(cached) $ac_c" 1>&6
13122 else
13123   
13124       
13125       ac_ext=C
13126 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13127 ac_cpp='$CXXCPP $CPPFLAGS'
13128 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13129 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13130 cross_compiling=$ac_cv_prog_cxx_cross
13131
13132       cat > conftest.$ac_ext <<EOF
13133 #line 13134 "configure"
13134 #include "confdefs.h"
13135 #include <math.h>
13136                       #ifdef HAVE_IEEEFP_H
13137                       #include <ieeefp.h>
13138                       #endif
13139                      
13140 int main() {
13141  _logl(0);
13142 ; return 0; }
13143 EOF
13144 if { (eval echo configure:13145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13145   rm -rf conftest*
13146   glibcpp_cv_func__logl_use=yes
13147 else
13148   echo "configure: failed program was:" >&5
13149   cat conftest.$ac_ext >&5
13150   rm -rf conftest*
13151   glibcpp_cv_func__logl_use=no
13152 fi
13153 rm -f conftest*
13154       ac_ext=c
13155 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13156 ac_cpp='$CPP $CPPFLAGS'
13157 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13158 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13159 cross_compiling=$ac_cv_prog_cc_cross
13160
13161     
13162 fi
13163
13164   fi
13165   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
13166
13167     if test x$glibcpp_cv_func__logl_use = x"yes"; then
13168       for ac_func in _logl
13169 do
13170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13171 echo "configure:13172: checking for $ac_func" >&5
13172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13173   echo $ac_n "(cached) $ac_c" 1>&6
13174 else
13175   cat > conftest.$ac_ext <<EOF
13176 #line 13177 "configure"
13177 #include "confdefs.h"
13178 /* System header to define __stub macros and hopefully few prototypes,
13179     which can conflict with char $ac_func(); below.  */
13180 #include <assert.h>
13181 /* Override any gcc2 internal prototype to avoid an error.  */
13182 /* We use char because int might match the return type of a gcc2
13183     builtin and then its argument prototype would still apply.  */
13184 char $ac_func();
13185
13186 int main() {
13187
13188 /* The GNU C library defines this for functions which it implements
13189     to always fail with ENOSYS.  Some functions are actually named
13190     something starting with __ and the normal name is an alias.  */
13191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13192 choke me
13193 #else
13194 $ac_func();
13195 #endif
13196
13197 ; return 0; }
13198 EOF
13199 if { (eval echo configure:13200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13200   rm -rf conftest*
13201   eval "ac_cv_func_$ac_func=yes"
13202 else
13203   echo "configure: failed program was:" >&5
13204   cat conftest.$ac_ext >&5
13205   rm -rf conftest*
13206   eval "ac_cv_func_$ac_func=no"
13207 fi
13208 rm -f conftest*
13209 fi
13210
13211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13212   echo "$ac_t""yes" 1>&6
13213     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13214   cat >> confdefs.h <<EOF
13215 #define $ac_tr_func 1
13216 EOF
13217  
13218 else
13219   echo "$ac_t""no" 1>&6
13220 fi
13221 done
13222     
13223     fi
13224   fi
13225
13226   
13227   
13228   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
13229 echo "configure:13230: checking for log10l declaration" >&5
13230   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
13231     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
13232   echo $ac_n "(cached) $ac_c" 1>&6
13233 else
13234   
13235       
13236       ac_ext=C
13237 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13238 ac_cpp='$CXXCPP $CPPFLAGS'
13239 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13240 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13241 cross_compiling=$ac_cv_prog_cxx_cross
13242
13243       cat > conftest.$ac_ext <<EOF
13244 #line 13245 "configure"
13245 #include "confdefs.h"
13246 #include <math.h>
13247                       #ifdef HAVE_IEEEFP_H
13248                       #include <ieeefp.h>
13249                       #endif
13250                      
13251 int main() {
13252  log10l(0);
13253 ; return 0; }
13254 EOF
13255 if { (eval echo configure:13256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13256   rm -rf conftest*
13257   glibcpp_cv_func_log10l_use=yes
13258 else
13259   echo "configure: failed program was:" >&5
13260   cat conftest.$ac_ext >&5
13261   rm -rf conftest*
13262   glibcpp_cv_func_log10l_use=no
13263 fi
13264 rm -f conftest*
13265       ac_ext=c
13266 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13267 ac_cpp='$CPP $CPPFLAGS'
13268 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13269 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13270 cross_compiling=$ac_cv_prog_cc_cross
13271
13272     
13273 fi
13274
13275   fi
13276   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
13277
13278   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
13279     for ac_func in log10l
13280 do
13281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13282 echo "configure:13283: checking for $ac_func" >&5
13283 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13284   echo $ac_n "(cached) $ac_c" 1>&6
13285 else
13286   cat > conftest.$ac_ext <<EOF
13287 #line 13288 "configure"
13288 #include "confdefs.h"
13289 /* System header to define __stub macros and hopefully few prototypes,
13290     which can conflict with char $ac_func(); below.  */
13291 #include <assert.h>
13292 /* Override any gcc2 internal prototype to avoid an error.  */
13293 /* We use char because int might match the return type of a gcc2
13294     builtin and then its argument prototype would still apply.  */
13295 char $ac_func();
13296
13297 int main() {
13298
13299 /* The GNU C library defines this for functions which it implements
13300     to always fail with ENOSYS.  Some functions are actually named
13301     something starting with __ and the normal name is an alias.  */
13302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13303 choke me
13304 #else
13305 $ac_func();
13306 #endif
13307
13308 ; return 0; }
13309 EOF
13310 if { (eval echo configure:13311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13311   rm -rf conftest*
13312   eval "ac_cv_func_$ac_func=yes"
13313 else
13314   echo "configure: failed program was:" >&5
13315   cat conftest.$ac_ext >&5
13316   rm -rf conftest*
13317   eval "ac_cv_func_$ac_func=no"
13318 fi
13319 rm -f conftest*
13320 fi
13321
13322 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13323   echo "$ac_t""yes" 1>&6
13324     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13325   cat >> confdefs.h <<EOF
13326 #define $ac_tr_func 1
13327 EOF
13328  
13329 else
13330   echo "$ac_t""no" 1>&6
13331 fi
13332 done
13333     
13334   else
13335     
13336   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
13337 echo "configure:13338: checking for _log10l declaration" >&5
13338   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
13339     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
13340   echo $ac_n "(cached) $ac_c" 1>&6
13341 else
13342   
13343       
13344       ac_ext=C
13345 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13346 ac_cpp='$CXXCPP $CPPFLAGS'
13347 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13348 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13349 cross_compiling=$ac_cv_prog_cxx_cross
13350
13351       cat > conftest.$ac_ext <<EOF
13352 #line 13353 "configure"
13353 #include "confdefs.h"
13354 #include <math.h>
13355                       #ifdef HAVE_IEEEFP_H
13356                       #include <ieeefp.h>
13357                       #endif
13358                      
13359 int main() {
13360  _log10l(0);
13361 ; return 0; }
13362 EOF
13363 if { (eval echo configure:13364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13364   rm -rf conftest*
13365   glibcpp_cv_func__log10l_use=yes
13366 else
13367   echo "configure: failed program was:" >&5
13368   cat conftest.$ac_ext >&5
13369   rm -rf conftest*
13370   glibcpp_cv_func__log10l_use=no
13371 fi
13372 rm -f conftest*
13373       ac_ext=c
13374 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13375 ac_cpp='$CPP $CPPFLAGS'
13376 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13377 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13378 cross_compiling=$ac_cv_prog_cc_cross
13379
13380     
13381 fi
13382
13383   fi
13384   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
13385
13386     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
13387       for ac_func in _log10l
13388 do
13389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13390 echo "configure:13391: checking for $ac_func" >&5
13391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13392   echo $ac_n "(cached) $ac_c" 1>&6
13393 else
13394   cat > conftest.$ac_ext <<EOF
13395 #line 13396 "configure"
13396 #include "confdefs.h"
13397 /* System header to define __stub macros and hopefully few prototypes,
13398     which can conflict with char $ac_func(); below.  */
13399 #include <assert.h>
13400 /* Override any gcc2 internal prototype to avoid an error.  */
13401 /* We use char because int might match the return type of a gcc2
13402     builtin and then its argument prototype would still apply.  */
13403 char $ac_func();
13404
13405 int main() {
13406
13407 /* The GNU C library defines this for functions which it implements
13408     to always fail with ENOSYS.  Some functions are actually named
13409     something starting with __ and the normal name is an alias.  */
13410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13411 choke me
13412 #else
13413 $ac_func();
13414 #endif
13415
13416 ; return 0; }
13417 EOF
13418 if { (eval echo configure:13419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13419   rm -rf conftest*
13420   eval "ac_cv_func_$ac_func=yes"
13421 else
13422   echo "configure: failed program was:" >&5
13423   cat conftest.$ac_ext >&5
13424   rm -rf conftest*
13425   eval "ac_cv_func_$ac_func=no"
13426 fi
13427 rm -f conftest*
13428 fi
13429
13430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13431   echo "$ac_t""yes" 1>&6
13432     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13433   cat >> confdefs.h <<EOF
13434 #define $ac_tr_func 1
13435 EOF
13436  
13437 else
13438   echo "$ac_t""no" 1>&6
13439 fi
13440 done
13441     
13442     fi
13443   fi
13444
13445   
13446   
13447   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
13448 echo "configure:13449: checking for modfl declaration" >&5
13449   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
13450     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
13451   echo $ac_n "(cached) $ac_c" 1>&6
13452 else
13453   
13454       
13455       ac_ext=C
13456 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13457 ac_cpp='$CXXCPP $CPPFLAGS'
13458 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13459 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13460 cross_compiling=$ac_cv_prog_cxx_cross
13461
13462       cat > conftest.$ac_ext <<EOF
13463 #line 13464 "configure"
13464 #include "confdefs.h"
13465 #include <math.h>
13466 int main() {
13467  modfl(0, 0);
13468 ; return 0; }
13469 EOF
13470 if { (eval echo configure:13471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13471   rm -rf conftest*
13472   glibcpp_cv_func_modfl_use=yes
13473 else
13474   echo "configure: failed program was:" >&5
13475   cat conftest.$ac_ext >&5
13476   rm -rf conftest*
13477   glibcpp_cv_func_modfl_use=no
13478 fi
13479 rm -f conftest*
13480       ac_ext=c
13481 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13482 ac_cpp='$CPP $CPPFLAGS'
13483 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13484 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13485 cross_compiling=$ac_cv_prog_cc_cross
13486
13487     
13488 fi
13489
13490   fi
13491   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
13492
13493   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
13494     for ac_func in modfl
13495 do
13496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13497 echo "configure:13498: checking for $ac_func" >&5
13498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13499   echo $ac_n "(cached) $ac_c" 1>&6
13500 else
13501   cat > conftest.$ac_ext <<EOF
13502 #line 13503 "configure"
13503 #include "confdefs.h"
13504 /* System header to define __stub macros and hopefully few prototypes,
13505     which can conflict with char $ac_func(); below.  */
13506 #include <assert.h>
13507 /* Override any gcc2 internal prototype to avoid an error.  */
13508 /* We use char because int might match the return type of a gcc2
13509     builtin and then its argument prototype would still apply.  */
13510 char $ac_func();
13511
13512 int main() {
13513
13514 /* The GNU C library defines this for functions which it implements
13515     to always fail with ENOSYS.  Some functions are actually named
13516     something starting with __ and the normal name is an alias.  */
13517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13518 choke me
13519 #else
13520 $ac_func();
13521 #endif
13522
13523 ; return 0; }
13524 EOF
13525 if { (eval echo configure:13526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13526   rm -rf conftest*
13527   eval "ac_cv_func_$ac_func=yes"
13528 else
13529   echo "configure: failed program was:" >&5
13530   cat conftest.$ac_ext >&5
13531   rm -rf conftest*
13532   eval "ac_cv_func_$ac_func=no"
13533 fi
13534 rm -f conftest*
13535 fi
13536
13537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13538   echo "$ac_t""yes" 1>&6
13539     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13540   cat >> confdefs.h <<EOF
13541 #define $ac_tr_func 1
13542 EOF
13543  
13544 else
13545   echo "$ac_t""no" 1>&6
13546 fi
13547 done
13548     
13549   else
13550     
13551   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
13552 echo "configure:13553: checking for _modfl declaration" >&5
13553   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
13554     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
13555   echo $ac_n "(cached) $ac_c" 1>&6
13556 else
13557   
13558       
13559       ac_ext=C
13560 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13561 ac_cpp='$CXXCPP $CPPFLAGS'
13562 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13563 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13564 cross_compiling=$ac_cv_prog_cxx_cross
13565
13566       cat > conftest.$ac_ext <<EOF
13567 #line 13568 "configure"
13568 #include "confdefs.h"
13569 #include <math.h>
13570 int main() {
13571  _modfl(0, 0);
13572 ; return 0; }
13573 EOF
13574 if { (eval echo configure:13575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13575   rm -rf conftest*
13576   glibcpp_cv_func__modfl_use=yes
13577 else
13578   echo "configure: failed program was:" >&5
13579   cat conftest.$ac_ext >&5
13580   rm -rf conftest*
13581   glibcpp_cv_func__modfl_use=no
13582 fi
13583 rm -f conftest*
13584       ac_ext=c
13585 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13586 ac_cpp='$CPP $CPPFLAGS'
13587 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13588 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13589 cross_compiling=$ac_cv_prog_cc_cross
13590
13591     
13592 fi
13593
13594   fi
13595   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
13596
13597     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
13598       for ac_func in _modfl
13599 do
13600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13601 echo "configure:13602: checking for $ac_func" >&5
13602 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13603   echo $ac_n "(cached) $ac_c" 1>&6
13604 else
13605   cat > conftest.$ac_ext <<EOF
13606 #line 13607 "configure"
13607 #include "confdefs.h"
13608 /* System header to define __stub macros and hopefully few prototypes,
13609     which can conflict with char $ac_func(); below.  */
13610 #include <assert.h>
13611 /* Override any gcc2 internal prototype to avoid an error.  */
13612 /* We use char because int might match the return type of a gcc2
13613     builtin and then its argument prototype would still apply.  */
13614 char $ac_func();
13615
13616 int main() {
13617
13618 /* The GNU C library defines this for functions which it implements
13619     to always fail with ENOSYS.  Some functions are actually named
13620     something starting with __ and the normal name is an alias.  */
13621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13622 choke me
13623 #else
13624 $ac_func();
13625 #endif
13626
13627 ; return 0; }
13628 EOF
13629 if { (eval echo configure:13630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13630   rm -rf conftest*
13631   eval "ac_cv_func_$ac_func=yes"
13632 else
13633   echo "configure: failed program was:" >&5
13634   cat conftest.$ac_ext >&5
13635   rm -rf conftest*
13636   eval "ac_cv_func_$ac_func=no"
13637 fi
13638 rm -f conftest*
13639 fi
13640
13641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13642   echo "$ac_t""yes" 1>&6
13643     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13644   cat >> confdefs.h <<EOF
13645 #define $ac_tr_func 1
13646 EOF
13647  
13648 else
13649   echo "$ac_t""no" 1>&6
13650 fi
13651 done
13652     
13653     fi
13654   fi
13655
13656   
13657   
13658   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
13659 echo "configure:13660: checking for powl declaration" >&5
13660   if test x${glibcpp_cv_func_powl_use+set} != xset; then
13661     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
13662   echo $ac_n "(cached) $ac_c" 1>&6
13663 else
13664   
13665       
13666       ac_ext=C
13667 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13668 ac_cpp='$CXXCPP $CPPFLAGS'
13669 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13670 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13671 cross_compiling=$ac_cv_prog_cxx_cross
13672
13673       cat > conftest.$ac_ext <<EOF
13674 #line 13675 "configure"
13675 #include "confdefs.h"
13676 #include <math.h>
13677 int main() {
13678  powl(0, 0);
13679 ; return 0; }
13680 EOF
13681 if { (eval echo configure:13682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13682   rm -rf conftest*
13683   glibcpp_cv_func_powl_use=yes
13684 else
13685   echo "configure: failed program was:" >&5
13686   cat conftest.$ac_ext >&5
13687   rm -rf conftest*
13688   glibcpp_cv_func_powl_use=no
13689 fi
13690 rm -f conftest*
13691       ac_ext=c
13692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13693 ac_cpp='$CPP $CPPFLAGS'
13694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13696 cross_compiling=$ac_cv_prog_cc_cross
13697
13698     
13699 fi
13700
13701   fi
13702   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
13703
13704   if test x$glibcpp_cv_func_powl_use = x"yes"; then
13705     for ac_func in powl
13706 do
13707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13708 echo "configure:13709: checking for $ac_func" >&5
13709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13710   echo $ac_n "(cached) $ac_c" 1>&6
13711 else
13712   cat > conftest.$ac_ext <<EOF
13713 #line 13714 "configure"
13714 #include "confdefs.h"
13715 /* System header to define __stub macros and hopefully few prototypes,
13716     which can conflict with char $ac_func(); below.  */
13717 #include <assert.h>
13718 /* Override any gcc2 internal prototype to avoid an error.  */
13719 /* We use char because int might match the return type of a gcc2
13720     builtin and then its argument prototype would still apply.  */
13721 char $ac_func();
13722
13723 int main() {
13724
13725 /* The GNU C library defines this for functions which it implements
13726     to always fail with ENOSYS.  Some functions are actually named
13727     something starting with __ and the normal name is an alias.  */
13728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13729 choke me
13730 #else
13731 $ac_func();
13732 #endif
13733
13734 ; return 0; }
13735 EOF
13736 if { (eval echo configure:13737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13737   rm -rf conftest*
13738   eval "ac_cv_func_$ac_func=yes"
13739 else
13740   echo "configure: failed program was:" >&5
13741   cat conftest.$ac_ext >&5
13742   rm -rf conftest*
13743   eval "ac_cv_func_$ac_func=no"
13744 fi
13745 rm -f conftest*
13746 fi
13747
13748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13749   echo "$ac_t""yes" 1>&6
13750     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13751   cat >> confdefs.h <<EOF
13752 #define $ac_tr_func 1
13753 EOF
13754  
13755 else
13756   echo "$ac_t""no" 1>&6
13757 fi
13758 done
13759     
13760   else
13761     
13762   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
13763 echo "configure:13764: checking for _powl declaration" >&5
13764   if test x${glibcpp_cv_func__powl_use+set} != xset; then
13765     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
13766   echo $ac_n "(cached) $ac_c" 1>&6
13767 else
13768   
13769       
13770       ac_ext=C
13771 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13772 ac_cpp='$CXXCPP $CPPFLAGS'
13773 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13774 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13775 cross_compiling=$ac_cv_prog_cxx_cross
13776
13777       cat > conftest.$ac_ext <<EOF
13778 #line 13779 "configure"
13779 #include "confdefs.h"
13780 #include <math.h>
13781 int main() {
13782  _powl(0, 0);
13783 ; return 0; }
13784 EOF
13785 if { (eval echo configure:13786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13786   rm -rf conftest*
13787   glibcpp_cv_func__powl_use=yes
13788 else
13789   echo "configure: failed program was:" >&5
13790   cat conftest.$ac_ext >&5
13791   rm -rf conftest*
13792   glibcpp_cv_func__powl_use=no
13793 fi
13794 rm -f conftest*
13795       ac_ext=c
13796 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13797 ac_cpp='$CPP $CPPFLAGS'
13798 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13799 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13800 cross_compiling=$ac_cv_prog_cc_cross
13801
13802     
13803 fi
13804
13805   fi
13806   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
13807
13808     if test x$glibcpp_cv_func__powl_use = x"yes"; then
13809       for ac_func in _powl
13810 do
13811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13812 echo "configure:13813: checking for $ac_func" >&5
13813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13814   echo $ac_n "(cached) $ac_c" 1>&6
13815 else
13816   cat > conftest.$ac_ext <<EOF
13817 #line 13818 "configure"
13818 #include "confdefs.h"
13819 /* System header to define __stub macros and hopefully few prototypes,
13820     which can conflict with char $ac_func(); below.  */
13821 #include <assert.h>
13822 /* Override any gcc2 internal prototype to avoid an error.  */
13823 /* We use char because int might match the return type of a gcc2
13824     builtin and then its argument prototype would still apply.  */
13825 char $ac_func();
13826
13827 int main() {
13828
13829 /* The GNU C library defines this for functions which it implements
13830     to always fail with ENOSYS.  Some functions are actually named
13831     something starting with __ and the normal name is an alias.  */
13832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13833 choke me
13834 #else
13835 $ac_func();
13836 #endif
13837
13838 ; return 0; }
13839 EOF
13840 if { (eval echo configure:13841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13841   rm -rf conftest*
13842   eval "ac_cv_func_$ac_func=yes"
13843 else
13844   echo "configure: failed program was:" >&5
13845   cat conftest.$ac_ext >&5
13846   rm -rf conftest*
13847   eval "ac_cv_func_$ac_func=no"
13848 fi
13849 rm -f conftest*
13850 fi
13851
13852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13853   echo "$ac_t""yes" 1>&6
13854     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13855   cat >> confdefs.h <<EOF
13856 #define $ac_tr_func 1
13857 EOF
13858  
13859 else
13860   echo "$ac_t""no" 1>&6
13861 fi
13862 done
13863     
13864     fi
13865   fi
13866
13867   
13868   
13869   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
13870 echo "configure:13871: checking for sqrtl declaration" >&5
13871   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
13872     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
13873   echo $ac_n "(cached) $ac_c" 1>&6
13874 else
13875   
13876       
13877       ac_ext=C
13878 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13879 ac_cpp='$CXXCPP $CPPFLAGS'
13880 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13881 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13882 cross_compiling=$ac_cv_prog_cxx_cross
13883
13884       cat > conftest.$ac_ext <<EOF
13885 #line 13886 "configure"
13886 #include "confdefs.h"
13887 #include <math.h>
13888                       #ifdef HAVE_IEEEFP_H
13889                       #include <ieeefp.h>
13890                       #endif
13891                      
13892 int main() {
13893  sqrtl(0);
13894 ; return 0; }
13895 EOF
13896 if { (eval echo configure:13897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13897   rm -rf conftest*
13898   glibcpp_cv_func_sqrtl_use=yes
13899 else
13900   echo "configure: failed program was:" >&5
13901   cat conftest.$ac_ext >&5
13902   rm -rf conftest*
13903   glibcpp_cv_func_sqrtl_use=no
13904 fi
13905 rm -f conftest*
13906       ac_ext=c
13907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13908 ac_cpp='$CPP $CPPFLAGS'
13909 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13910 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13911 cross_compiling=$ac_cv_prog_cc_cross
13912
13913     
13914 fi
13915
13916   fi
13917   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
13918
13919   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
13920     for ac_func in sqrtl
13921 do
13922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13923 echo "configure:13924: checking for $ac_func" >&5
13924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13925   echo $ac_n "(cached) $ac_c" 1>&6
13926 else
13927   cat > conftest.$ac_ext <<EOF
13928 #line 13929 "configure"
13929 #include "confdefs.h"
13930 /* System header to define __stub macros and hopefully few prototypes,
13931     which can conflict with char $ac_func(); below.  */
13932 #include <assert.h>
13933 /* Override any gcc2 internal prototype to avoid an error.  */
13934 /* We use char because int might match the return type of a gcc2
13935     builtin and then its argument prototype would still apply.  */
13936 char $ac_func();
13937
13938 int main() {
13939
13940 /* The GNU C library defines this for functions which it implements
13941     to always fail with ENOSYS.  Some functions are actually named
13942     something starting with __ and the normal name is an alias.  */
13943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13944 choke me
13945 #else
13946 $ac_func();
13947 #endif
13948
13949 ; return 0; }
13950 EOF
13951 if { (eval echo configure:13952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13952   rm -rf conftest*
13953   eval "ac_cv_func_$ac_func=yes"
13954 else
13955   echo "configure: failed program was:" >&5
13956   cat conftest.$ac_ext >&5
13957   rm -rf conftest*
13958   eval "ac_cv_func_$ac_func=no"
13959 fi
13960 rm -f conftest*
13961 fi
13962
13963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13964   echo "$ac_t""yes" 1>&6
13965     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13966   cat >> confdefs.h <<EOF
13967 #define $ac_tr_func 1
13968 EOF
13969  
13970 else
13971   echo "$ac_t""no" 1>&6
13972 fi
13973 done
13974     
13975   else
13976     
13977   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
13978 echo "configure:13979: checking for _sqrtl declaration" >&5
13979   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
13980     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
13981   echo $ac_n "(cached) $ac_c" 1>&6
13982 else
13983   
13984       
13985       ac_ext=C
13986 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13987 ac_cpp='$CXXCPP $CPPFLAGS'
13988 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13989 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13990 cross_compiling=$ac_cv_prog_cxx_cross
13991
13992       cat > conftest.$ac_ext <<EOF
13993 #line 13994 "configure"
13994 #include "confdefs.h"
13995 #include <math.h>
13996                       #ifdef HAVE_IEEEFP_H
13997                       #include <ieeefp.h>
13998                       #endif
13999                      
14000 int main() {
14001  _sqrtl(0);
14002 ; return 0; }
14003 EOF
14004 if { (eval echo configure:14005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14005   rm -rf conftest*
14006   glibcpp_cv_func__sqrtl_use=yes
14007 else
14008   echo "configure: failed program was:" >&5
14009   cat conftest.$ac_ext >&5
14010   rm -rf conftest*
14011   glibcpp_cv_func__sqrtl_use=no
14012 fi
14013 rm -f conftest*
14014       ac_ext=c
14015 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14016 ac_cpp='$CPP $CPPFLAGS'
14017 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14018 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14019 cross_compiling=$ac_cv_prog_cc_cross
14020
14021     
14022 fi
14023
14024   fi
14025   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
14026
14027     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
14028       for ac_func in _sqrtl
14029 do
14030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14031 echo "configure:14032: checking for $ac_func" >&5
14032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14033   echo $ac_n "(cached) $ac_c" 1>&6
14034 else
14035   cat > conftest.$ac_ext <<EOF
14036 #line 14037 "configure"
14037 #include "confdefs.h"
14038 /* System header to define __stub macros and hopefully few prototypes,
14039     which can conflict with char $ac_func(); below.  */
14040 #include <assert.h>
14041 /* Override any gcc2 internal prototype to avoid an error.  */
14042 /* We use char because int might match the return type of a gcc2
14043     builtin and then its argument prototype would still apply.  */
14044 char $ac_func();
14045
14046 int main() {
14047
14048 /* The GNU C library defines this for functions which it implements
14049     to always fail with ENOSYS.  Some functions are actually named
14050     something starting with __ and the normal name is an alias.  */
14051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14052 choke me
14053 #else
14054 $ac_func();
14055 #endif
14056
14057 ; return 0; }
14058 EOF
14059 if { (eval echo configure:14060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14060   rm -rf conftest*
14061   eval "ac_cv_func_$ac_func=yes"
14062 else
14063   echo "configure: failed program was:" >&5
14064   cat conftest.$ac_ext >&5
14065   rm -rf conftest*
14066   eval "ac_cv_func_$ac_func=no"
14067 fi
14068 rm -f conftest*
14069 fi
14070
14071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14072   echo "$ac_t""yes" 1>&6
14073     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14074   cat >> confdefs.h <<EOF
14075 #define $ac_tr_func 1
14076 EOF
14077  
14078 else
14079   echo "$ac_t""no" 1>&6
14080 fi
14081 done
14082     
14083     fi
14084   fi
14085
14086   
14087   
14088   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
14089 echo "configure:14090: checking for sincosl declaration" >&5
14090   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
14091     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
14092   echo $ac_n "(cached) $ac_c" 1>&6
14093 else
14094   
14095       
14096       ac_ext=C
14097 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14098 ac_cpp='$CXXCPP $CPPFLAGS'
14099 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14100 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14101 cross_compiling=$ac_cv_prog_cxx_cross
14102
14103       cat > conftest.$ac_ext <<EOF
14104 #line 14105 "configure"
14105 #include "confdefs.h"
14106 #include <math.h>
14107 int main() {
14108  sincosl(0, 0, 0);
14109 ; return 0; }
14110 EOF
14111 if { (eval echo configure:14112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14112   rm -rf conftest*
14113   glibcpp_cv_func_sincosl_use=yes
14114 else
14115   echo "configure: failed program was:" >&5
14116   cat conftest.$ac_ext >&5
14117   rm -rf conftest*
14118   glibcpp_cv_func_sincosl_use=no
14119 fi
14120 rm -f conftest*
14121       ac_ext=c
14122 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14123 ac_cpp='$CPP $CPPFLAGS'
14124 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14125 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14126 cross_compiling=$ac_cv_prog_cc_cross
14127
14128     
14129 fi
14130
14131   fi
14132   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
14133
14134   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
14135     for ac_func in sincosl
14136 do
14137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14138 echo "configure:14139: checking for $ac_func" >&5
14139 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14140   echo $ac_n "(cached) $ac_c" 1>&6
14141 else
14142   cat > conftest.$ac_ext <<EOF
14143 #line 14144 "configure"
14144 #include "confdefs.h"
14145 /* System header to define __stub macros and hopefully few prototypes,
14146     which can conflict with char $ac_func(); below.  */
14147 #include <assert.h>
14148 /* Override any gcc2 internal prototype to avoid an error.  */
14149 /* We use char because int might match the return type of a gcc2
14150     builtin and then its argument prototype would still apply.  */
14151 char $ac_func();
14152
14153 int main() {
14154
14155 /* The GNU C library defines this for functions which it implements
14156     to always fail with ENOSYS.  Some functions are actually named
14157     something starting with __ and the normal name is an alias.  */
14158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14159 choke me
14160 #else
14161 $ac_func();
14162 #endif
14163
14164 ; return 0; }
14165 EOF
14166 if { (eval echo configure:14167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14167   rm -rf conftest*
14168   eval "ac_cv_func_$ac_func=yes"
14169 else
14170   echo "configure: failed program was:" >&5
14171   cat conftest.$ac_ext >&5
14172   rm -rf conftest*
14173   eval "ac_cv_func_$ac_func=no"
14174 fi
14175 rm -f conftest*
14176 fi
14177
14178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14179   echo "$ac_t""yes" 1>&6
14180     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14181   cat >> confdefs.h <<EOF
14182 #define $ac_tr_func 1
14183 EOF
14184  
14185 else
14186   echo "$ac_t""no" 1>&6
14187 fi
14188 done
14189     
14190   else
14191     
14192   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
14193 echo "configure:14194: checking for _sincosl declaration" >&5
14194   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
14195     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
14196   echo $ac_n "(cached) $ac_c" 1>&6
14197 else
14198   
14199       
14200       ac_ext=C
14201 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14202 ac_cpp='$CXXCPP $CPPFLAGS'
14203 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14204 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14205 cross_compiling=$ac_cv_prog_cxx_cross
14206
14207       cat > conftest.$ac_ext <<EOF
14208 #line 14209 "configure"
14209 #include "confdefs.h"
14210 #include <math.h>
14211 int main() {
14212  _sincosl(0, 0, 0);
14213 ; return 0; }
14214 EOF
14215 if { (eval echo configure:14216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14216   rm -rf conftest*
14217   glibcpp_cv_func__sincosl_use=yes
14218 else
14219   echo "configure: failed program was:" >&5
14220   cat conftest.$ac_ext >&5
14221   rm -rf conftest*
14222   glibcpp_cv_func__sincosl_use=no
14223 fi
14224 rm -f conftest*
14225       ac_ext=c
14226 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14227 ac_cpp='$CPP $CPPFLAGS'
14228 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14229 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14230 cross_compiling=$ac_cv_prog_cc_cross
14231
14232     
14233 fi
14234
14235   fi
14236   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
14237
14238     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
14239       for ac_func in _sincosl
14240 do
14241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14242 echo "configure:14243: checking for $ac_func" >&5
14243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14244   echo $ac_n "(cached) $ac_c" 1>&6
14245 else
14246   cat > conftest.$ac_ext <<EOF
14247 #line 14248 "configure"
14248 #include "confdefs.h"
14249 /* System header to define __stub macros and hopefully few prototypes,
14250     which can conflict with char $ac_func(); below.  */
14251 #include <assert.h>
14252 /* Override any gcc2 internal prototype to avoid an error.  */
14253 /* We use char because int might match the return type of a gcc2
14254     builtin and then its argument prototype would still apply.  */
14255 char $ac_func();
14256
14257 int main() {
14258
14259 /* The GNU C library defines this for functions which it implements
14260     to always fail with ENOSYS.  Some functions are actually named
14261     something starting with __ and the normal name is an alias.  */
14262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14263 choke me
14264 #else
14265 $ac_func();
14266 #endif
14267
14268 ; return 0; }
14269 EOF
14270 if { (eval echo configure:14271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14271   rm -rf conftest*
14272   eval "ac_cv_func_$ac_func=yes"
14273 else
14274   echo "configure: failed program was:" >&5
14275   cat conftest.$ac_ext >&5
14276   rm -rf conftest*
14277   eval "ac_cv_func_$ac_func=no"
14278 fi
14279 rm -f conftest*
14280 fi
14281
14282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14283   echo "$ac_t""yes" 1>&6
14284     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14285   cat >> confdefs.h <<EOF
14286 #define $ac_tr_func 1
14287 EOF
14288  
14289 else
14290   echo "$ac_t""no" 1>&6
14291 fi
14292 done
14293     
14294     fi
14295   fi
14296
14297   
14298   
14299   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
14300 echo "configure:14301: checking for finitel declaration" >&5
14301   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
14302     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
14303   echo $ac_n "(cached) $ac_c" 1>&6
14304 else
14305   
14306       
14307       ac_ext=C
14308 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14309 ac_cpp='$CXXCPP $CPPFLAGS'
14310 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14311 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14312 cross_compiling=$ac_cv_prog_cxx_cross
14313
14314       cat > conftest.$ac_ext <<EOF
14315 #line 14316 "configure"
14316 #include "confdefs.h"
14317 #include <math.h>
14318                       #ifdef HAVE_IEEEFP_H
14319                       #include <ieeefp.h>
14320                       #endif
14321                      
14322 int main() {
14323  finitel(0);
14324 ; return 0; }
14325 EOF
14326 if { (eval echo configure:14327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14327   rm -rf conftest*
14328   glibcpp_cv_func_finitel_use=yes
14329 else
14330   echo "configure: failed program was:" >&5
14331   cat conftest.$ac_ext >&5
14332   rm -rf conftest*
14333   glibcpp_cv_func_finitel_use=no
14334 fi
14335 rm -f conftest*
14336       ac_ext=c
14337 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14338 ac_cpp='$CPP $CPPFLAGS'
14339 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14340 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14341 cross_compiling=$ac_cv_prog_cc_cross
14342
14343     
14344 fi
14345
14346   fi
14347   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
14348
14349   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
14350     for ac_func in finitel
14351 do
14352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14353 echo "configure:14354: checking for $ac_func" >&5
14354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14355   echo $ac_n "(cached) $ac_c" 1>&6
14356 else
14357   cat > conftest.$ac_ext <<EOF
14358 #line 14359 "configure"
14359 #include "confdefs.h"
14360 /* System header to define __stub macros and hopefully few prototypes,
14361     which can conflict with char $ac_func(); below.  */
14362 #include <assert.h>
14363 /* Override any gcc2 internal prototype to avoid an error.  */
14364 /* We use char because int might match the return type of a gcc2
14365     builtin and then its argument prototype would still apply.  */
14366 char $ac_func();
14367
14368 int main() {
14369
14370 /* The GNU C library defines this for functions which it implements
14371     to always fail with ENOSYS.  Some functions are actually named
14372     something starting with __ and the normal name is an alias.  */
14373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14374 choke me
14375 #else
14376 $ac_func();
14377 #endif
14378
14379 ; return 0; }
14380 EOF
14381 if { (eval echo configure:14382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14382   rm -rf conftest*
14383   eval "ac_cv_func_$ac_func=yes"
14384 else
14385   echo "configure: failed program was:" >&5
14386   cat conftest.$ac_ext >&5
14387   rm -rf conftest*
14388   eval "ac_cv_func_$ac_func=no"
14389 fi
14390 rm -f conftest*
14391 fi
14392
14393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14394   echo "$ac_t""yes" 1>&6
14395     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14396   cat >> confdefs.h <<EOF
14397 #define $ac_tr_func 1
14398 EOF
14399  
14400 else
14401   echo "$ac_t""no" 1>&6
14402 fi
14403 done
14404     
14405   else
14406     
14407   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
14408 echo "configure:14409: checking for _finitel declaration" >&5
14409   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
14410     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
14411   echo $ac_n "(cached) $ac_c" 1>&6
14412 else
14413   
14414       
14415       ac_ext=C
14416 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14417 ac_cpp='$CXXCPP $CPPFLAGS'
14418 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14419 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14420 cross_compiling=$ac_cv_prog_cxx_cross
14421
14422       cat > conftest.$ac_ext <<EOF
14423 #line 14424 "configure"
14424 #include "confdefs.h"
14425 #include <math.h>
14426                       #ifdef HAVE_IEEEFP_H
14427                       #include <ieeefp.h>
14428                       #endif
14429                      
14430 int main() {
14431  _finitel(0);
14432 ; return 0; }
14433 EOF
14434 if { (eval echo configure:14435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14435   rm -rf conftest*
14436   glibcpp_cv_func__finitel_use=yes
14437 else
14438   echo "configure: failed program was:" >&5
14439   cat conftest.$ac_ext >&5
14440   rm -rf conftest*
14441   glibcpp_cv_func__finitel_use=no
14442 fi
14443 rm -f conftest*
14444       ac_ext=c
14445 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14446 ac_cpp='$CPP $CPPFLAGS'
14447 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14448 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14449 cross_compiling=$ac_cv_prog_cc_cross
14450
14451     
14452 fi
14453
14454   fi
14455   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
14456
14457     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
14458       for ac_func in _finitel
14459 do
14460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14461 echo "configure:14462: checking for $ac_func" >&5
14462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14463   echo $ac_n "(cached) $ac_c" 1>&6
14464 else
14465   cat > conftest.$ac_ext <<EOF
14466 #line 14467 "configure"
14467 #include "confdefs.h"
14468 /* System header to define __stub macros and hopefully few prototypes,
14469     which can conflict with char $ac_func(); below.  */
14470 #include <assert.h>
14471 /* Override any gcc2 internal prototype to avoid an error.  */
14472 /* We use char because int might match the return type of a gcc2
14473     builtin and then its argument prototype would still apply.  */
14474 char $ac_func();
14475
14476 int main() {
14477
14478 /* The GNU C library defines this for functions which it implements
14479     to always fail with ENOSYS.  Some functions are actually named
14480     something starting with __ and the normal name is an alias.  */
14481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14482 choke me
14483 #else
14484 $ac_func();
14485 #endif
14486
14487 ; return 0; }
14488 EOF
14489 if { (eval echo configure:14490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14490   rm -rf conftest*
14491   eval "ac_cv_func_$ac_func=yes"
14492 else
14493   echo "configure: failed program was:" >&5
14494   cat conftest.$ac_ext >&5
14495   rm -rf conftest*
14496   eval "ac_cv_func_$ac_func=no"
14497 fi
14498 rm -f conftest*
14499 fi
14500
14501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14502   echo "$ac_t""yes" 1>&6
14503     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14504   cat >> confdefs.h <<EOF
14505 #define $ac_tr_func 1
14506 EOF
14507  
14508 else
14509   echo "$ac_t""no" 1>&6
14510 fi
14511 done
14512     
14513     fi
14514   fi
14515
14516
14517         
14518     
14519   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
14520 echo "configure:14521: checking for _float trig functions" >&5
14521   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
14522   echo $ac_n "(cached) $ac_c" 1>&6
14523 else
14524   
14525     
14526     ac_ext=C
14527 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14528 ac_cpp='$CXXCPP $CPPFLAGS'
14529 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14530 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14531 cross_compiling=$ac_cv_prog_cxx_cross
14532
14533     cat > conftest.$ac_ext <<EOF
14534 #line 14535 "configure"
14535 #include "confdefs.h"
14536 #include <math.h>
14537 int main() {
14538  `for x in _acosf _asinf _atanf \
14539                                           _cosf _sinf _tanf \
14540                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
14541 ; return 0; }
14542 EOF
14543 if { (eval echo configure:14544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14544   rm -rf conftest*
14545   glibcpp_cv_func__float_trig_use=yes
14546 else
14547   echo "configure: failed program was:" >&5
14548   cat conftest.$ac_ext >&5
14549   rm -rf conftest*
14550   glibcpp_cv_func__float_trig_use=no
14551 fi
14552 rm -f conftest*
14553     ac_ext=c
14554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14555 ac_cpp='$CPP $CPPFLAGS'
14556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14558 cross_compiling=$ac_cv_prog_cc_cross
14559
14560 fi
14561
14562   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
14563   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
14564     for ac_func in _acosf _asinf _atanf \
14565                                           _cosf _sinf _tanf \
14566                                           _coshf _sinhf _tanhf
14567 do
14568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14569 echo "configure:14570: checking for $ac_func" >&5
14570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14571   echo $ac_n "(cached) $ac_c" 1>&6
14572 else
14573   cat > conftest.$ac_ext <<EOF
14574 #line 14575 "configure"
14575 #include "confdefs.h"
14576 /* System header to define __stub macros and hopefully few prototypes,
14577     which can conflict with char $ac_func(); below.  */
14578 #include <assert.h>
14579 /* Override any gcc2 internal prototype to avoid an error.  */
14580 /* We use char because int might match the return type of a gcc2
14581     builtin and then its argument prototype would still apply.  */
14582 char $ac_func();
14583
14584 int main() {
14585
14586 /* The GNU C library defines this for functions which it implements
14587     to always fail with ENOSYS.  Some functions are actually named
14588     something starting with __ and the normal name is an alias.  */
14589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14590 choke me
14591 #else
14592 $ac_func();
14593 #endif
14594
14595 ; return 0; }
14596 EOF
14597 if { (eval echo configure:14598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14598   rm -rf conftest*
14599   eval "ac_cv_func_$ac_func=yes"
14600 else
14601   echo "configure: failed program was:" >&5
14602   cat conftest.$ac_ext >&5
14603   rm -rf conftest*
14604   eval "ac_cv_func_$ac_func=no"
14605 fi
14606 rm -f conftest*
14607 fi
14608
14609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14610   echo "$ac_t""yes" 1>&6
14611     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14612   cat >> confdefs.h <<EOF
14613 #define $ac_tr_func 1
14614 EOF
14615  
14616 else
14617   echo "$ac_t""no" 1>&6
14618 fi
14619 done
14620
14621   fi
14622
14623   
14624   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
14625 echo "configure:14626: checking for _float round functions" >&5
14626   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
14627   echo $ac_n "(cached) $ac_c" 1>&6
14628 else
14629   
14630     
14631     ac_ext=C
14632 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14633 ac_cpp='$CXXCPP $CPPFLAGS'
14634 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14635 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14636 cross_compiling=$ac_cv_prog_cxx_cross
14637
14638     cat > conftest.$ac_ext <<EOF
14639 #line 14640 "configure"
14640 #include "confdefs.h"
14641 #include <math.h>
14642 int main() {
14643  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
14644 ; return 0; }
14645 EOF
14646 if { (eval echo configure:14647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14647   rm -rf conftest*
14648   glibcpp_cv_func__float_round_use=yes
14649 else
14650   echo "configure: failed program was:" >&5
14651   cat conftest.$ac_ext >&5
14652   rm -rf conftest*
14653   glibcpp_cv_func__float_round_use=no
14654 fi
14655 rm -f conftest*
14656     ac_ext=c
14657 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14658 ac_cpp='$CPP $CPPFLAGS'
14659 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14660 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14661 cross_compiling=$ac_cv_prog_cc_cross
14662
14663 fi
14664
14665   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
14666   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
14667     for ac_func in _ceilf _floorf
14668 do
14669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14670 echo "configure:14671: checking for $ac_func" >&5
14671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14672   echo $ac_n "(cached) $ac_c" 1>&6
14673 else
14674   cat > conftest.$ac_ext <<EOF
14675 #line 14676 "configure"
14676 #include "confdefs.h"
14677 /* System header to define __stub macros and hopefully few prototypes,
14678     which can conflict with char $ac_func(); below.  */
14679 #include <assert.h>
14680 /* Override any gcc2 internal prototype to avoid an error.  */
14681 /* We use char because int might match the return type of a gcc2
14682     builtin and then its argument prototype would still apply.  */
14683 char $ac_func();
14684
14685 int main() {
14686
14687 /* The GNU C library defines this for functions which it implements
14688     to always fail with ENOSYS.  Some functions are actually named
14689     something starting with __ and the normal name is an alias.  */
14690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14691 choke me
14692 #else
14693 $ac_func();
14694 #endif
14695
14696 ; return 0; }
14697 EOF
14698 if { (eval echo configure:14699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14699   rm -rf conftest*
14700   eval "ac_cv_func_$ac_func=yes"
14701 else
14702   echo "configure: failed program was:" >&5
14703   cat conftest.$ac_ext >&5
14704   rm -rf conftest*
14705   eval "ac_cv_func_$ac_func=no"
14706 fi
14707 rm -f conftest*
14708 fi
14709
14710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14711   echo "$ac_t""yes" 1>&6
14712     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14713   cat >> confdefs.h <<EOF
14714 #define $ac_tr_func 1
14715 EOF
14716  
14717 else
14718   echo "$ac_t""no" 1>&6
14719 fi
14720 done
14721
14722   fi
14723
14724
14725     
14726   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
14727 echo "configure:14728: checking for _long double trig functions" >&5
14728   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
14729   echo $ac_n "(cached) $ac_c" 1>&6
14730 else
14731   
14732     
14733     ac_ext=C
14734 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14735 ac_cpp='$CXXCPP $CPPFLAGS'
14736 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14737 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14738 cross_compiling=$ac_cv_prog_cxx_cross
14739
14740     cat > conftest.$ac_ext <<EOF
14741 #line 14742 "configure"
14742 #include "confdefs.h"
14743 #include <math.h>
14744 int main() {
14745  `for x in _acosl _asinl _atanl \
14746                                           _cosl _sinl _tanl \
14747                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
14748 ; return 0; }
14749 EOF
14750 if { (eval echo configure:14751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14751   rm -rf conftest*
14752   glibcpp_cv_func__long_double_trig_use=yes
14753 else
14754   echo "configure: failed program was:" >&5
14755   cat conftest.$ac_ext >&5
14756   rm -rf conftest*
14757   glibcpp_cv_func__long_double_trig_use=no
14758 fi
14759 rm -f conftest*
14760     ac_ext=c
14761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14762 ac_cpp='$CPP $CPPFLAGS'
14763 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14764 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14765 cross_compiling=$ac_cv_prog_cc_cross
14766
14767 fi
14768
14769   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
14770   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
14771     for ac_func in _acosl _asinl _atanl \
14772                                           _cosl _sinl _tanl \
14773                                           _coshl _sinhl _tanhl
14774 do
14775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14776 echo "configure:14777: checking for $ac_func" >&5
14777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14778   echo $ac_n "(cached) $ac_c" 1>&6
14779 else
14780   cat > conftest.$ac_ext <<EOF
14781 #line 14782 "configure"
14782 #include "confdefs.h"
14783 /* System header to define __stub macros and hopefully few prototypes,
14784     which can conflict with char $ac_func(); below.  */
14785 #include <assert.h>
14786 /* Override any gcc2 internal prototype to avoid an error.  */
14787 /* We use char because int might match the return type of a gcc2
14788     builtin and then its argument prototype would still apply.  */
14789 char $ac_func();
14790
14791 int main() {
14792
14793 /* The GNU C library defines this for functions which it implements
14794     to always fail with ENOSYS.  Some functions are actually named
14795     something starting with __ and the normal name is an alias.  */
14796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14797 choke me
14798 #else
14799 $ac_func();
14800 #endif
14801
14802 ; return 0; }
14803 EOF
14804 if { (eval echo configure:14805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14805   rm -rf conftest*
14806   eval "ac_cv_func_$ac_func=yes"
14807 else
14808   echo "configure: failed program was:" >&5
14809   cat conftest.$ac_ext >&5
14810   rm -rf conftest*
14811   eval "ac_cv_func_$ac_func=no"
14812 fi
14813 rm -f conftest*
14814 fi
14815
14816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14817   echo "$ac_t""yes" 1>&6
14818     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14819   cat >> confdefs.h <<EOF
14820 #define $ac_tr_func 1
14821 EOF
14822  
14823 else
14824   echo "$ac_t""no" 1>&6
14825 fi
14826 done
14827
14828   fi
14829
14830   
14831   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
14832 echo "configure:14833: checking for _long double round functions" >&5
14833   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
14834   echo $ac_n "(cached) $ac_c" 1>&6
14835 else
14836   
14837     
14838     ac_ext=C
14839 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14840 ac_cpp='$CXXCPP $CPPFLAGS'
14841 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14842 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14843 cross_compiling=$ac_cv_prog_cxx_cross
14844
14845     cat > conftest.$ac_ext <<EOF
14846 #line 14847 "configure"
14847 #include "confdefs.h"
14848 #include <math.h>
14849 int main() {
14850  `for x in _ceill _floorl; do echo "$x (0);"; done` 
14851 ; return 0; }
14852 EOF
14853 if { (eval echo configure:14854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14854   rm -rf conftest*
14855   glibcpp_cv_func__long_double_round_use=yes
14856 else
14857   echo "configure: failed program was:" >&5
14858   cat conftest.$ac_ext >&5
14859   rm -rf conftest*
14860   glibcpp_cv_func__long_double_round_use=no
14861 fi
14862 rm -f conftest*
14863     ac_ext=c
14864 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14865 ac_cpp='$CPP $CPPFLAGS'
14866 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14867 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14868 cross_compiling=$ac_cv_prog_cc_cross
14869
14870 fi
14871
14872   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
14873   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
14874     for ac_func in _ceill _floorl
14875 do
14876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14877 echo "configure:14878: checking for $ac_func" >&5
14878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14879   echo $ac_n "(cached) $ac_c" 1>&6
14880 else
14881   cat > conftest.$ac_ext <<EOF
14882 #line 14883 "configure"
14883 #include "confdefs.h"
14884 /* System header to define __stub macros and hopefully few prototypes,
14885     which can conflict with char $ac_func(); below.  */
14886 #include <assert.h>
14887 /* Override any gcc2 internal prototype to avoid an error.  */
14888 /* We use char because int might match the return type of a gcc2
14889     builtin and then its argument prototype would still apply.  */
14890 char $ac_func();
14891
14892 int main() {
14893
14894 /* The GNU C library defines this for functions which it implements
14895     to always fail with ENOSYS.  Some functions are actually named
14896     something starting with __ and the normal name is an alias.  */
14897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14898 choke me
14899 #else
14900 $ac_func();
14901 #endif
14902
14903 ; return 0; }
14904 EOF
14905 if { (eval echo configure:14906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14906   rm -rf conftest*
14907   eval "ac_cv_func_$ac_func=yes"
14908 else
14909   echo "configure: failed program was:" >&5
14910   cat conftest.$ac_ext >&5
14911   rm -rf conftest*
14912   eval "ac_cv_func_$ac_func=no"
14913 fi
14914 rm -f conftest*
14915 fi
14916
14917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14918   echo "$ac_t""yes" 1>&6
14919     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14920   cat >> confdefs.h <<EOF
14921 #define $ac_tr_func 1
14922 EOF
14923  
14924 else
14925   echo "$ac_t""no" 1>&6
14926 fi
14927 done
14928
14929   fi
14930
14931
14932   LIBS="$ac_save_LIBS"
14933   CXXFLAGS="$ac_save_CXXFLAGS"
14934
14935   
14936     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
14937 echo "configure:14938: checking for main in -lm" >&5
14938 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
14939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14940   echo $ac_n "(cached) $ac_c" 1>&6
14941 else
14942   ac_save_LIBS="$LIBS"
14943 LIBS="-lm  $LIBS"
14944 cat > conftest.$ac_ext <<EOF
14945 #line 14946 "configure"
14946 #include "confdefs.h"
14947
14948 int main() {
14949 main()
14950 ; return 0; }
14951 EOF
14952 if { (eval echo configure:14953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14953   rm -rf conftest*
14954   eval "ac_cv_lib_$ac_lib_var=yes"
14955 else
14956   echo "configure: failed program was:" >&5
14957   cat conftest.$ac_ext >&5
14958   rm -rf conftest*
14959   eval "ac_cv_lib_$ac_lib_var=no"
14960 fi
14961 rm -f conftest*
14962 LIBS="$ac_save_LIBS"
14963
14964 fi
14965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14966   echo "$ac_t""yes" 1>&6
14967     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14968     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14969   cat >> confdefs.h <<EOF
14970 #define $ac_tr_lib 1
14971 EOF
14972
14973   LIBS="-lm $LIBS"
14974
14975 else
14976   echo "$ac_t""no" 1>&6
14977 fi
14978
14979   for ac_func in nan hypot hypotf atan2f expf copysignf
14980 do
14981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14982 echo "configure:14983: checking for $ac_func" >&5
14983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14984   echo $ac_n "(cached) $ac_c" 1>&6
14985 else
14986   cat > conftest.$ac_ext <<EOF
14987 #line 14988 "configure"
14988 #include "confdefs.h"
14989 /* System header to define __stub macros and hopefully few prototypes,
14990     which can conflict with char $ac_func(); below.  */
14991 #include <assert.h>
14992 /* Override any gcc2 internal prototype to avoid an error.  */
14993 /* We use char because int might match the return type of a gcc2
14994     builtin and then its argument prototype would still apply.  */
14995 char $ac_func();
14996
14997 int main() {
14998
14999 /* The GNU C library defines this for functions which it implements
15000     to always fail with ENOSYS.  Some functions are actually named
15001     something starting with __ and the normal name is an alias.  */
15002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15003 choke me
15004 #else
15005 $ac_func();
15006 #endif
15007
15008 ; return 0; }
15009 EOF
15010 if { (eval echo configure:15011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15011   rm -rf conftest*
15012   eval "ac_cv_func_$ac_func=yes"
15013 else
15014   echo "configure: failed program was:" >&5
15015   cat conftest.$ac_ext >&5
15016   rm -rf conftest*
15017   eval "ac_cv_func_$ac_func=no"
15018 fi
15019 rm -f conftest*
15020 fi
15021
15022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15023   echo "$ac_t""yes" 1>&6
15024     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15025   cat >> confdefs.h <<EOF
15026 #define $ac_tr_func 1
15027 EOF
15028  
15029 else
15030   echo "$ac_t""no" 1>&6
15031 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15032 fi
15033 done
15034
15035
15036
15037           USE_COMPLEX_LONG_DOUBLE=no
15038   if test x$ac_cv_func_atan2l = x"yes" &&
15039      test x$ac_cv_func_copysignl = x"yes"; then
15040     USE_COMPLEX_LONG_DOUBLE=yes
15041     for ac_func in hypotl signbitl
15042 do
15043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15044 echo "configure:15045: checking for $ac_func" >&5
15045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15046   echo $ac_n "(cached) $ac_c" 1>&6
15047 else
15048   cat > conftest.$ac_ext <<EOF
15049 #line 15050 "configure"
15050 #include "confdefs.h"
15051 /* System header to define __stub macros and hopefully few prototypes,
15052     which can conflict with char $ac_func(); below.  */
15053 #include <assert.h>
15054 /* Override any gcc2 internal prototype to avoid an error.  */
15055 /* We use char because int might match the return type of a gcc2
15056     builtin and then its argument prototype would still apply.  */
15057 char $ac_func();
15058
15059 int main() {
15060
15061 /* The GNU C library defines this for functions which it implements
15062     to always fail with ENOSYS.  Some functions are actually named
15063     something starting with __ and the normal name is an alias.  */
15064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15065 choke me
15066 #else
15067 $ac_func();
15068 #endif
15069
15070 ; return 0; }
15071 EOF
15072 if { (eval echo configure:15073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15073   rm -rf conftest*
15074   eval "ac_cv_func_$ac_func=yes"
15075 else
15076   echo "configure: failed program was:" >&5
15077   cat conftest.$ac_ext >&5
15078   rm -rf conftest*
15079   eval "ac_cv_func_$ac_func=no"
15080 fi
15081 rm -f conftest*
15082 fi
15083
15084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15085   echo "$ac_t""yes" 1>&6
15086     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15087   cat >> confdefs.h <<EOF
15088 #define $ac_tr_func 1
15089 EOF
15090  
15091 else
15092   echo "$ac_t""no" 1>&6
15093 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15094 fi
15095 done
15096
15097
15098   fi
15099
15100   
15101
15102   
15103
15104       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
15105 echo "configure:15106: checking for mbstate_t" >&5
15106   cat > conftest.$ac_ext <<EOF
15107 #line 15108 "configure"
15108 #include "confdefs.h"
15109 #include <wchar.h>
15110 int main() {
15111 mbstate_t teststate;
15112 ; return 0; }
15113 EOF
15114 if { (eval echo configure:15115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15115   rm -rf conftest*
15116   have_mbstate_t=yes
15117 else
15118   echo "configure: failed program was:" >&5
15119   cat conftest.$ac_ext >&5
15120   rm -rf conftest*
15121   have_mbstate_t=no
15122 fi
15123 rm -f conftest*
15124   echo "$ac_t""$have_mbstate_t" 1>&6
15125   if test x"$have_mbstate_t" = xyes; then
15126     cat >> confdefs.h <<\EOF
15127 #define HAVE_MBSTATE_T 1
15128 EOF
15129
15130   fi
15131
15132     for ac_hdr in wchar.h
15133 do
15134 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15135 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15136 echo "configure:15137: checking for $ac_hdr" >&5
15137 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15138   echo $ac_n "(cached) $ac_c" 1>&6
15139 else
15140   cat > conftest.$ac_ext <<EOF
15141 #line 15142 "configure"
15142 #include "confdefs.h"
15143 #include <$ac_hdr>
15144 EOF
15145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15146 { (eval echo configure:15147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15148 if test -z "$ac_err"; then
15149   rm -rf conftest*
15150   eval "ac_cv_header_$ac_safe=yes"
15151 else
15152   echo "$ac_err" >&5
15153   echo "configure: failed program was:" >&5
15154   cat conftest.$ac_ext >&5
15155   rm -rf conftest*
15156   eval "ac_cv_header_$ac_safe=no"
15157 fi
15158 rm -f conftest*
15159 fi
15160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15161   echo "$ac_t""yes" 1>&6
15162     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15163   cat >> confdefs.h <<EOF
15164 #define $ac_tr_hdr 1
15165 EOF
15166  ac_has_wchar_h=yes
15167 else
15168   echo "$ac_t""no" 1>&6
15169 ac_has_wchar_h=no
15170 fi
15171 done
15172
15173   ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
15174 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
15175 echo "configure:15176: checking for wctype.h" >&5
15176 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15177   echo $ac_n "(cached) $ac_c" 1>&6
15178 else
15179   cat > conftest.$ac_ext <<EOF
15180 #line 15181 "configure"
15181 #include "confdefs.h"
15182 #include <wctype.h>
15183 EOF
15184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15185 { (eval echo configure:15186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15187 if test -z "$ac_err"; then
15188   rm -rf conftest*
15189   eval "ac_cv_header_$ac_safe=yes"
15190 else
15191   echo "$ac_err" >&5
15192   echo "configure: failed program was:" >&5
15193   cat conftest.$ac_ext >&5
15194   rm -rf conftest*
15195   eval "ac_cv_header_$ac_safe=no"
15196 fi
15197 rm -f conftest*
15198 fi
15199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15200   echo "$ac_t""yes" 1>&6
15201   ac_has_wctype_h=yes
15202 else
15203   echo "$ac_t""no" 1>&6
15204 ac_has_wctype_h=no
15205 fi
15206
15207   
15208     if test x"$ac_has_wchar_h" = xyes &&
15209      test x"$ac_has_wctype_h" = xyes &&
15210      test x"$enable_c_mbchar" != xno; then
15211       
15212             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
15213 echo "configure:15214: checking for WCHAR_MIN and WCHAR_MAX" >&5
15214     cat > conftest.$ac_ext <<EOF
15215 #line 15216 "configure"
15216 #include "confdefs.h"
15217 #include <wchar.h>
15218 int main() {
15219 int i = WCHAR_MIN; int j = WCHAR_MAX;
15220 ; return 0; }
15221 EOF
15222 if { (eval echo configure:15223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15223   rm -rf conftest*
15224   has_wchar_minmax=yes
15225 else
15226   echo "configure: failed program was:" >&5
15227   cat conftest.$ac_ext >&5
15228   rm -rf conftest*
15229   has_wchar_minmax=no
15230 fi
15231 rm -f conftest*
15232     echo "$ac_t""$has_wchar_minmax" 1>&6
15233     
15234             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
15235 echo "configure:15236: checking for WEOF" >&5
15236     cat > conftest.$ac_ext <<EOF
15237 #line 15238 "configure"
15238 #include "confdefs.h"
15239
15240       #include <wchar.h>
15241       #include <stddef.h>
15242 int main() {
15243 wint_t i = WEOF;
15244 ; return 0; }
15245 EOF
15246 if { (eval echo configure:15247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15247   rm -rf conftest*
15248   has_weof=yes
15249 else
15250   echo "configure: failed program was:" >&5
15251   cat conftest.$ac_ext >&5
15252   rm -rf conftest*
15253   has_weof=no
15254 fi
15255 rm -f conftest*
15256     echo "$ac_t""$has_weof" 1>&6
15257   
15258         ac_wfuncs=yes
15259     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
15260 do
15261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15262 echo "configure:15263: checking for $ac_func" >&5
15263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15264   echo $ac_n "(cached) $ac_c" 1>&6
15265 else
15266   cat > conftest.$ac_ext <<EOF
15267 #line 15268 "configure"
15268 #include "confdefs.h"
15269 /* System header to define __stub macros and hopefully few prototypes,
15270     which can conflict with char $ac_func(); below.  */
15271 #include <assert.h>
15272 /* Override any gcc2 internal prototype to avoid an error.  */
15273 /* We use char because int might match the return type of a gcc2
15274     builtin and then its argument prototype would still apply.  */
15275 char $ac_func();
15276
15277 int main() {
15278
15279 /* The GNU C library defines this for functions which it implements
15280     to always fail with ENOSYS.  Some functions are actually named
15281     something starting with __ and the normal name is an alias.  */
15282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15283 choke me
15284 #else
15285 $ac_func();
15286 #endif
15287
15288 ; return 0; }
15289 EOF
15290 if { (eval echo configure:15291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15291   rm -rf conftest*
15292   eval "ac_cv_func_$ac_func=yes"
15293 else
15294   echo "configure: failed program was:" >&5
15295   cat conftest.$ac_ext >&5
15296   rm -rf conftest*
15297   eval "ac_cv_func_$ac_func=no"
15298 fi
15299 rm -f conftest*
15300 fi
15301
15302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15303   echo "$ac_t""yes" 1>&6
15304     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15305   cat >> confdefs.h <<EOF
15306 #define $ac_tr_func 1
15307 EOF
15308  
15309 else
15310   echo "$ac_t""no" 1>&6
15311 \
15312     ac_wfuncs=no
15313 fi
15314 done
15315
15316   
15317         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
15318     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
15319     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
15320     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
15321     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
15322     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
15323 do
15324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15325 echo "configure:15326: checking for $ac_func" >&5
15326 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15327   echo $ac_n "(cached) $ac_c" 1>&6
15328 else
15329   cat > conftest.$ac_ext <<EOF
15330 #line 15331 "configure"
15331 #include "confdefs.h"
15332 /* System header to define __stub macros and hopefully few prototypes,
15333     which can conflict with char $ac_func(); below.  */
15334 #include <assert.h>
15335 /* Override any gcc2 internal prototype to avoid an error.  */
15336 /* We use char because int might match the return type of a gcc2
15337     builtin and then its argument prototype would still apply.  */
15338 char $ac_func();
15339
15340 int main() {
15341
15342 /* The GNU C library defines this for functions which it implements
15343     to always fail with ENOSYS.  Some functions are actually named
15344     something starting with __ and the normal name is an alias.  */
15345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15346 choke me
15347 #else
15348 $ac_func();
15349 #endif
15350
15351 ; return 0; }
15352 EOF
15353 if { (eval echo configure:15354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15354   rm -rf conftest*
15355   eval "ac_cv_func_$ac_func=yes"
15356 else
15357   echo "configure: failed program was:" >&5
15358   cat conftest.$ac_ext >&5
15359   rm -rf conftest*
15360   eval "ac_cv_func_$ac_func=no"
15361 fi
15362 rm -f conftest*
15363 fi
15364
15365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15366   echo "$ac_t""yes" 1>&6
15367     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15368   cat >> confdefs.h <<EOF
15369 #define $ac_tr_func 1
15370 EOF
15371  
15372 else
15373   echo "$ac_t""no" 1>&6
15374 \
15375     ac_wfuncs=no
15376 fi
15377 done
15378
15379
15380     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
15381 echo "configure:15382: checking for ISO C99 wchar_t support" >&5
15382     if test x"$has_weof" = xyes &&
15383        test x"$has_wchar_minmax" = xyes &&
15384        test x"$ac_wfuncs" = xyes; then
15385       ac_isoC99_wchar_t=yes
15386     else
15387       ac_isoC99_wchar_t=no
15388     fi
15389     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
15390   
15391             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
15392 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
15393 echo "configure:15394: checking for iconv.h" >&5
15394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15395   echo $ac_n "(cached) $ac_c" 1>&6
15396 else
15397   cat > conftest.$ac_ext <<EOF
15398 #line 15399 "configure"
15399 #include "confdefs.h"
15400 #include <iconv.h>
15401 EOF
15402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15403 { (eval echo configure:15404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15405 if test -z "$ac_err"; then
15406   rm -rf conftest*
15407   eval "ac_cv_header_$ac_safe=yes"
15408 else
15409   echo "$ac_err" >&5
15410   echo "configure: failed program was:" >&5
15411   cat conftest.$ac_ext >&5
15412   rm -rf conftest*
15413   eval "ac_cv_header_$ac_safe=no"
15414 fi
15415 rm -f conftest*
15416 fi
15417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15418   echo "$ac_t""yes" 1>&6
15419   ac_has_iconv_h=yes
15420 else
15421   echo "$ac_t""no" 1>&6
15422 ac_has_iconv_h=no
15423 fi
15424
15425     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
15426 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
15427 echo "configure:15428: checking for langinfo.h" >&5
15428 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15429   echo $ac_n "(cached) $ac_c" 1>&6
15430 else
15431   cat > conftest.$ac_ext <<EOF
15432 #line 15433 "configure"
15433 #include "confdefs.h"
15434 #include <langinfo.h>
15435 EOF
15436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15437 { (eval echo configure:15438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15439 if test -z "$ac_err"; then
15440   rm -rf conftest*
15441   eval "ac_cv_header_$ac_safe=yes"
15442 else
15443   echo "$ac_err" >&5
15444   echo "configure: failed program was:" >&5
15445   cat conftest.$ac_ext >&5
15446   rm -rf conftest*
15447   eval "ac_cv_header_$ac_safe=no"
15448 fi
15449 rm -f conftest*
15450 fi
15451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15452   echo "$ac_t""yes" 1>&6
15453   ac_has_langinfo_h=yes
15454 else
15455   echo "$ac_t""no" 1>&6
15456 ac_has_langinfo_h=no
15457 fi
15458
15459
15460         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
15461 echo "configure:15462: checking for iconv in -liconv" >&5
15462 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
15463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15464   echo $ac_n "(cached) $ac_c" 1>&6
15465 else
15466   ac_save_LIBS="$LIBS"
15467 LIBS="-liconv  $LIBS"
15468 cat > conftest.$ac_ext <<EOF
15469 #line 15470 "configure"
15470 #include "confdefs.h"
15471 /* Override any gcc2 internal prototype to avoid an error.  */
15472 /* We use char because int might match the return type of a gcc2
15473     builtin and then its argument prototype would still apply.  */
15474 char iconv();
15475
15476 int main() {
15477 iconv()
15478 ; return 0; }
15479 EOF
15480 if { (eval echo configure:15481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15481   rm -rf conftest*
15482   eval "ac_cv_lib_$ac_lib_var=yes"
15483 else
15484   echo "configure: failed program was:" >&5
15485   cat conftest.$ac_ext >&5
15486   rm -rf conftest*
15487   eval "ac_cv_lib_$ac_lib_var=no"
15488 fi
15489 rm -f conftest*
15490 LIBS="$ac_save_LIBS"
15491
15492 fi
15493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15494   echo "$ac_t""yes" 1>&6
15495   libiconv="-liconv"
15496 else
15497   echo "$ac_t""no" 1>&6
15498 fi
15499
15500     ac_save_LIBS="$LIBS"
15501     LIBS="$LIBS $libiconv"
15502
15503     for ac_func in iconv_open iconv_close iconv nl_langinfo
15504 do
15505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15506 echo "configure:15507: checking for $ac_func" >&5
15507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15508   echo $ac_n "(cached) $ac_c" 1>&6
15509 else
15510   cat > conftest.$ac_ext <<EOF
15511 #line 15512 "configure"
15512 #include "confdefs.h"
15513 /* System header to define __stub macros and hopefully few prototypes,
15514     which can conflict with char $ac_func(); below.  */
15515 #include <assert.h>
15516 /* Override any gcc2 internal prototype to avoid an error.  */
15517 /* We use char because int might match the return type of a gcc2
15518     builtin and then its argument prototype would still apply.  */
15519 char $ac_func();
15520
15521 int main() {
15522
15523 /* The GNU C library defines this for functions which it implements
15524     to always fail with ENOSYS.  Some functions are actually named
15525     something starting with __ and the normal name is an alias.  */
15526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15527 choke me
15528 #else
15529 $ac_func();
15530 #endif
15531
15532 ; return 0; }
15533 EOF
15534 if { (eval echo configure:15535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15535   rm -rf conftest*
15536   eval "ac_cv_func_$ac_func=yes"
15537 else
15538   echo "configure: failed program was:" >&5
15539   cat conftest.$ac_ext >&5
15540   rm -rf conftest*
15541   eval "ac_cv_func_$ac_func=no"
15542 fi
15543 rm -f conftest*
15544 fi
15545
15546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15547   echo "$ac_t""yes" 1>&6
15548     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15549   cat >> confdefs.h <<EOF
15550 #define $ac_tr_func 1
15551 EOF
15552  \
15553     ac_XPG2funcs=yes
15554 else
15555   echo "$ac_t""no" 1>&6
15556 ac_XPG2funcs=no
15557 fi
15558 done
15559
15560   
15561     LIBS="$ac_save_LIBS"
15562
15563     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
15564 echo "configure:15565: checking for XPG2 wchar_t support" >&5
15565     if test x"$ac_has_iconv_h" = xyes &&
15566        test x"$ac_has_langinfo_h" = xyes &&
15567        test x"$ac_XPG2funcs" = xyes; then
15568       ac_XPG2_wchar_t=yes
15569     else
15570       ac_XPG2_wchar_t=no
15571     fi
15572     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
15573   
15574             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
15575 echo "configure:15576: checking for enabled wchar_t specializations" >&5
15576     if test x"$ac_isoC99_wchar_t" = xyes &&
15577        test x"$ac_XPG2_wchar_t" = xyes; then
15578       cat >> confdefs.h <<\EOF
15579 #define _GLIBCPP_USE_WCHAR_T 1
15580 EOF
15581
15582       echo "$ac_t"""yes"" 1>&6
15583     else
15584       echo "$ac_t"""no"" 1>&6
15585     fi
15586   else
15587         echo "configure: warning: wchar_t support disabled." 1>&2
15588   fi
15589
15590   
15591   ac_test_CXXFLAGS="${CXXFLAGS+set}"
15592   ac_save_CXXFLAGS="$CXXFLAGS"
15593   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
15594
15595   
15596   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
15597 echo "configure:15598: checking for strtold declaration" >&5
15598   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
15599     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
15600   echo $ac_n "(cached) $ac_c" 1>&6
15601 else
15602   
15603       
15604       ac_ext=C
15605 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15606 ac_cpp='$CXXCPP $CPPFLAGS'
15607 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15608 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15609 cross_compiling=$ac_cv_prog_cxx_cross
15610
15611       cat > conftest.$ac_ext <<EOF
15612 #line 15613 "configure"
15613 #include "confdefs.h"
15614 #include <stdlib.h>
15615 int main() {
15616  strtold(0, 0);
15617 ; return 0; }
15618 EOF
15619 if { (eval echo configure:15620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15620   rm -rf conftest*
15621   glibcpp_cv_func_strtold_use=yes
15622 else
15623   echo "configure: failed program was:" >&5
15624   cat conftest.$ac_ext >&5
15625   rm -rf conftest*
15626   glibcpp_cv_func_strtold_use=no
15627 fi
15628 rm -f conftest*
15629       ac_ext=c
15630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15631 ac_cpp='$CPP $CPPFLAGS'
15632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15634 cross_compiling=$ac_cv_prog_cc_cross
15635
15636     
15637 fi
15638
15639   fi
15640   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
15641   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
15642     for ac_func in strtold
15643 do
15644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15645 echo "configure:15646: checking for $ac_func" >&5
15646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15647   echo $ac_n "(cached) $ac_c" 1>&6
15648 else
15649   cat > conftest.$ac_ext <<EOF
15650 #line 15651 "configure"
15651 #include "confdefs.h"
15652 /* System header to define __stub macros and hopefully few prototypes,
15653     which can conflict with char $ac_func(); below.  */
15654 #include <assert.h>
15655 /* Override any gcc2 internal prototype to avoid an error.  */
15656 /* We use char because int might match the return type of a gcc2
15657     builtin and then its argument prototype would still apply.  */
15658 char $ac_func();
15659
15660 int main() {
15661
15662 /* The GNU C library defines this for functions which it implements
15663     to always fail with ENOSYS.  Some functions are actually named
15664     something starting with __ and the normal name is an alias.  */
15665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15666 choke me
15667 #else
15668 $ac_func();
15669 #endif
15670
15671 ; return 0; }
15672 EOF
15673 if { (eval echo configure:15674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15674   rm -rf conftest*
15675   eval "ac_cv_func_$ac_func=yes"
15676 else
15677   echo "configure: failed program was:" >&5
15678   cat conftest.$ac_ext >&5
15679   rm -rf conftest*
15680   eval "ac_cv_func_$ac_func=no"
15681 fi
15682 rm -f conftest*
15683 fi
15684
15685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15686   echo "$ac_t""yes" 1>&6
15687     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15688   cat >> confdefs.h <<EOF
15689 #define $ac_tr_func 1
15690 EOF
15691  
15692 else
15693   echo "$ac_t""no" 1>&6
15694 fi
15695 done
15696     
15697   fi
15698
15699   for ac_func in drand48
15700 do
15701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15702 echo "configure:15703: checking for $ac_func" >&5
15703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15704   echo $ac_n "(cached) $ac_c" 1>&6
15705 else
15706   cat > conftest.$ac_ext <<EOF
15707 #line 15708 "configure"
15708 #include "confdefs.h"
15709 /* System header to define __stub macros and hopefully few prototypes,
15710     which can conflict with char $ac_func(); below.  */
15711 #include <assert.h>
15712 /* Override any gcc2 internal prototype to avoid an error.  */
15713 /* We use char because int might match the return type of a gcc2
15714     builtin and then its argument prototype would still apply.  */
15715 char $ac_func();
15716
15717 int main() {
15718
15719 /* The GNU C library defines this for functions which it implements
15720     to always fail with ENOSYS.  Some functions are actually named
15721     something starting with __ and the normal name is an alias.  */
15722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15723 choke me
15724 #else
15725 $ac_func();
15726 #endif
15727
15728 ; return 0; }
15729 EOF
15730 if { (eval echo configure:15731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15731   rm -rf conftest*
15732   eval "ac_cv_func_$ac_func=yes"
15733 else
15734   echo "configure: failed program was:" >&5
15735   cat conftest.$ac_ext >&5
15736   rm -rf conftest*
15737   eval "ac_cv_func_$ac_func=no"
15738 fi
15739 rm -f conftest*
15740 fi
15741
15742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15743   echo "$ac_t""yes" 1>&6
15744     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15745   cat >> confdefs.h <<EOF
15746 #define $ac_tr_func 1
15747 EOF
15748  
15749 else
15750   echo "$ac_t""no" 1>&6
15751 fi
15752 done
15753
15754
15755   CXXFLAGS="$ac_save_CXXFLAGS"
15756
15757
15758   cat > conftest.$ac_ext <<EOF
15759 #line 15760 "configure"
15760 #include "confdefs.h"
15761
15762 #include <setjmp.h>
15763
15764 int main() {
15765 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
15766 ; return 0; }
15767 EOF
15768 if { (eval echo configure:15769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15769   rm -rf conftest*
15770   cat >> confdefs.h <<\EOF
15771 #define HAVE_SIGSETJMP 1
15772 EOF
15773
15774 else
15775   echo "configure: failed program was:" >&5
15776   cat conftest.$ac_ext >&5
15777 fi
15778 rm -f conftest*
15779
15780   for ac_hdr in unistd.h
15781 do
15782 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15784 echo "configure:15785: checking for $ac_hdr" >&5
15785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15786   echo $ac_n "(cached) $ac_c" 1>&6
15787 else
15788   cat > conftest.$ac_ext <<EOF
15789 #line 15790 "configure"
15790 #include "confdefs.h"
15791 #include <$ac_hdr>
15792 EOF
15793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15794 { (eval echo configure:15795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15796 if test -z "$ac_err"; then
15797   rm -rf conftest*
15798   eval "ac_cv_header_$ac_safe=yes"
15799 else
15800   echo "$ac_err" >&5
15801   echo "configure: failed program was:" >&5
15802   cat conftest.$ac_ext >&5
15803   rm -rf conftest*
15804   eval "ac_cv_header_$ac_safe=no"
15805 fi
15806 rm -f conftest*
15807 fi
15808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15809   echo "$ac_t""yes" 1>&6
15810     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15811   cat >> confdefs.h <<EOF
15812 #define $ac_tr_hdr 1
15813 EOF
15814  
15815 else
15816   echo "$ac_t""no" 1>&6
15817 fi
15818 done
15819
15820 for ac_func in getpagesize
15821 do
15822 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15823 echo "configure:15824: checking for $ac_func" >&5
15824 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15825   echo $ac_n "(cached) $ac_c" 1>&6
15826 else
15827   cat > conftest.$ac_ext <<EOF
15828 #line 15829 "configure"
15829 #include "confdefs.h"
15830 /* System header to define __stub macros and hopefully few prototypes,
15831     which can conflict with char $ac_func(); below.  */
15832 #include <assert.h>
15833 /* Override any gcc2 internal prototype to avoid an error.  */
15834 /* We use char because int might match the return type of a gcc2
15835     builtin and then its argument prototype would still apply.  */
15836 char $ac_func();
15837
15838 int main() {
15839
15840 /* The GNU C library defines this for functions which it implements
15841     to always fail with ENOSYS.  Some functions are actually named
15842     something starting with __ and the normal name is an alias.  */
15843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15844 choke me
15845 #else
15846 $ac_func();
15847 #endif
15848
15849 ; return 0; }
15850 EOF
15851 if { (eval echo configure:15852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15852   rm -rf conftest*
15853   eval "ac_cv_func_$ac_func=yes"
15854 else
15855   echo "configure: failed program was:" >&5
15856   cat conftest.$ac_ext >&5
15857   rm -rf conftest*
15858   eval "ac_cv_func_$ac_func=no"
15859 fi
15860 rm -f conftest*
15861 fi
15862
15863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15864   echo "$ac_t""yes" 1>&6
15865     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15866   cat >> confdefs.h <<EOF
15867 #define $ac_tr_func 1
15868 EOF
15869  
15870 else
15871   echo "$ac_t""no" 1>&6
15872 fi
15873 done
15874
15875 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
15876 echo "configure:15877: checking for working mmap" >&5
15877 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
15878   echo $ac_n "(cached) $ac_c" 1>&6
15879 else
15880   if test "$cross_compiling" = yes; then
15881   ac_cv_func_mmap_fixed_mapped=no
15882 else
15883   cat > conftest.$ac_ext <<EOF
15884 #line 15885 "configure"
15885 #include "confdefs.h"
15886
15887 /* Thanks to Mike Haertel and Jim Avera for this test.
15888    Here is a matrix of mmap possibilities:
15889         mmap private not fixed
15890         mmap private fixed at somewhere currently unmapped
15891         mmap private fixed at somewhere already mapped
15892         mmap shared not fixed
15893         mmap shared fixed at somewhere currently unmapped
15894         mmap shared fixed at somewhere already mapped
15895    For private mappings, we should verify that changes cannot be read()
15896    back from the file, nor mmap's back from the file at a different
15897    address.  (There have been systems where private was not correctly
15898    implemented like the infamous i386 svr4.0, and systems where the
15899    VM page cache was not coherent with the filesystem buffer cache
15900    like early versions of FreeBSD and possibly contemporary NetBSD.)
15901    For shared mappings, we should conversely verify that changes get
15902    propogated back to all the places they're supposed to be.
15903
15904    Grep wants private fixed already mapped.
15905    The main things grep needs to know about mmap are:
15906    * does it exist and is it safe to write into the mmap'd area
15907    * how to use it (BSD variants)  */
15908 #include <sys/types.h>
15909 #include <fcntl.h>
15910 #include <sys/mman.h>
15911
15912 /* This mess was copied from the GNU getpagesize.h.  */
15913 #ifndef HAVE_GETPAGESIZE
15914 # ifdef HAVE_UNISTD_H
15915 #  include <unistd.h>
15916 # endif
15917
15918 /* Assume that all systems that can run configure have sys/param.h.  */
15919 # ifndef HAVE_SYS_PARAM_H
15920 #  define HAVE_SYS_PARAM_H 1
15921 # endif
15922
15923 # ifdef _SC_PAGESIZE
15924 #  define getpagesize() sysconf(_SC_PAGESIZE)
15925 # else /* no _SC_PAGESIZE */
15926 #  ifdef HAVE_SYS_PARAM_H
15927 #   include <sys/param.h>
15928 #   ifdef EXEC_PAGESIZE
15929 #    define getpagesize() EXEC_PAGESIZE
15930 #   else /* no EXEC_PAGESIZE */
15931 #    ifdef NBPG
15932 #     define getpagesize() NBPG * CLSIZE
15933 #     ifndef CLSIZE
15934 #      define CLSIZE 1
15935 #     endif /* no CLSIZE */
15936 #    else /* no NBPG */
15937 #     ifdef NBPC
15938 #      define getpagesize() NBPC
15939 #     else /* no NBPC */
15940 #      ifdef PAGESIZE
15941 #       define getpagesize() PAGESIZE
15942 #      endif /* PAGESIZE */
15943 #     endif /* no NBPC */
15944 #    endif /* no NBPG */
15945 #   endif /* no EXEC_PAGESIZE */
15946 #  else /* no HAVE_SYS_PARAM_H */
15947 #   define getpagesize() 8192   /* punt totally */
15948 #  endif /* no HAVE_SYS_PARAM_H */
15949 # endif /* no _SC_PAGESIZE */
15950
15951 #endif /* no HAVE_GETPAGESIZE */
15952
15953 #ifdef __cplusplus
15954 extern "C" { void *malloc(unsigned); }
15955 #else
15956 char *malloc();
15957 #endif
15958
15959 int
15960 main()
15961 {
15962         char *data, *data2, *data3;
15963         int i, pagesize;
15964         int fd;
15965
15966         pagesize = getpagesize();
15967
15968         /*
15969          * First, make a file with some known garbage in it.
15970          */
15971         data = malloc(pagesize);
15972         if (!data)
15973                 exit(1);
15974         for (i = 0; i < pagesize; ++i)
15975                 *(data + i) = rand();
15976         umask(0);
15977         fd = creat("conftestmmap", 0600);
15978         if (fd < 0)
15979                 exit(1);
15980         if (write(fd, data, pagesize) != pagesize)
15981                 exit(1);
15982         close(fd);
15983
15984         /*
15985          * Next, try to mmap the file at a fixed address which
15986          * already has something else allocated at it.  If we can,
15987          * also make sure that we see the same garbage.
15988          */
15989         fd = open("conftestmmap", O_RDWR);
15990         if (fd < 0)
15991                 exit(1);
15992         data2 = malloc(2 * pagesize);
15993         if (!data2)
15994                 exit(1);
15995         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
15996         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
15997             MAP_PRIVATE | MAP_FIXED, fd, 0L))
15998                 exit(1);
15999         for (i = 0; i < pagesize; ++i)
16000                 if (*(data + i) != *(data2 + i))
16001                         exit(1);
16002
16003         /*
16004          * Finally, make sure that changes to the mapped area
16005          * do not percolate back to the file as seen by read().
16006          * (This is a bug on some variants of i386 svr4.0.)
16007          */
16008         for (i = 0; i < pagesize; ++i)
16009                 *(data2 + i) = *(data2 + i) + 1;
16010         data3 = malloc(pagesize);
16011         if (!data3)
16012                 exit(1);
16013         if (read(fd, data3, pagesize) != pagesize)
16014                 exit(1);
16015         for (i = 0; i < pagesize; ++i)
16016                 if (*(data + i) != *(data3 + i))
16017                         exit(1);
16018         close(fd);
16019         unlink("conftestmmap");
16020         exit(0);
16021 }
16022
16023 EOF
16024 if { (eval echo configure:16025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16025 then
16026   ac_cv_func_mmap_fixed_mapped=yes
16027 else
16028   echo "configure: failed program was:" >&5
16029   cat conftest.$ac_ext >&5
16030   rm -fr conftest*
16031   ac_cv_func_mmap_fixed_mapped=no
16032 fi
16033 rm -fr conftest*
16034 fi
16035
16036 fi
16037
16038 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
16039 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16040   cat >> confdefs.h <<\EOF
16041 #define HAVE_MMAP 1
16042 EOF
16043
16044 fi
16045
16046 fi
16047
16048 # Now that ctype is determined for all possible targets, we can do this...
16049
16050
16051
16052
16053
16054
16055
16056 if test "$NULL_TARGET" = yes; then
16057   NULL_TARGET_TRUE=
16058   NULL_TARGET_FALSE='#'
16059 else
16060   NULL_TARGET_TRUE='#'
16061   NULL_TARGET_FALSE=
16062 fi
16063
16064
16065 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
16066   NATIVE_TRUE=
16067   NATIVE_FALSE='#'
16068 else
16069   NATIVE_TRUE='#'
16070   NATIVE_FALSE=
16071 fi
16072
16073
16074 if test "$CANADIAN" = yes; then
16075   CANADIAN_TRUE=
16076   CANADIAN_FALSE='#'
16077 else
16078   CANADIAN_TRUE='#'
16079   CANADIAN_FALSE=
16080 fi
16081  
16082 cat > confcache <<\EOF
16083 # This file is a shell script that caches the results of configure
16084 # tests run on this system so they can be shared between configure
16085 # scripts and configure runs.  It is not useful on other systems.
16086 # If it contains results you don't want to keep, you may remove or edit it.
16087 #
16088 # By default, configure uses ./config.cache as the cache file,
16089 # creating it if it does not exist already.  You can give configure
16090 # the --cache-file=FILE option to use a different cache file; that is
16091 # what configure does when it calls configure scripts in
16092 # subdirectories, so they share the cache.
16093 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16094 # config.status only pays attention to the cache file if you give it the
16095 # --recheck option to rerun configure.
16096 #
16097 EOF
16098 # The following way of writing the cache mishandles newlines in values,
16099 # but we know of no workaround that is simple, portable, and efficient.
16100 # So, don't put newlines in cache variables' values.
16101 # Ultrix sh set writes to stderr and can't be redirected directly,
16102 # and sets the high bit in the cache file unless we assign to the vars.
16103 (set) 2>&1 |
16104   case `(ac_space=' '; set | grep ac_space) 2>&1` in
16105   *ac_space=\ *)
16106     # `set' does not quote correctly, so add quotes (double-quote substitution
16107     # turns \\\\ into \\, and sed turns \\ into \).
16108     sed -n \
16109       -e "s/'/'\\\\''/g" \
16110       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16111     ;;
16112   *)
16113     # `set' quotes correctly as required by POSIX, so do not add quotes.
16114     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16115     ;;
16116   esac >> confcache
16117 if cmp -s $cache_file confcache; then
16118   :
16119 else
16120   if test -w $cache_file; then
16121     echo "updating cache $cache_file"
16122     cat confcache > $cache_file
16123   else
16124     echo "not updating unwritable cache $cache_file"
16125   fi
16126 fi
16127 rm -f confcache
16128
16129
16130   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16131 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16132 echo "configure:16133: checking for locale.h" >&5
16133 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16134   echo $ac_n "(cached) $ac_c" 1>&6
16135 else
16136   cat > conftest.$ac_ext <<EOF
16137 #line 16138 "configure"
16138 #include "confdefs.h"
16139 #include <locale.h>
16140 EOF
16141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16142 { (eval echo configure:16143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16144 if test -z "$ac_err"; then
16145   rm -rf conftest*
16146   eval "ac_cv_header_$ac_safe=yes"
16147 else
16148   echo "$ac_err" >&5
16149   echo "configure: failed program was:" >&5
16150   cat conftest.$ac_ext >&5
16151   rm -rf conftest*
16152   eval "ac_cv_header_$ac_safe=no"
16153 fi
16154 rm -f conftest*
16155 fi
16156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16157   echo "$ac_t""yes" 1>&6
16158   
16159     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16160 echo "configure:16161: checking for LC_MESSAGES" >&5
16161 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16162   echo $ac_n "(cached) $ac_c" 1>&6
16163 else
16164   cat > conftest.$ac_ext <<EOF
16165 #line 16166 "configure"
16166 #include "confdefs.h"
16167 #include <locale.h>
16168 int main() {
16169 return LC_MESSAGES
16170 ; return 0; }
16171 EOF
16172 if { (eval echo configure:16173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16173   rm -rf conftest*
16174   ac_cv_val_LC_MESSAGES=yes
16175 else
16176   echo "configure: failed program was:" >&5
16177   cat conftest.$ac_ext >&5
16178   rm -rf conftest*
16179   ac_cv_val_LC_MESSAGES=no
16180 fi
16181 rm -f conftest*
16182 fi
16183
16184 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16185     if test $ac_cv_val_LC_MESSAGES = yes; then
16186       cat >> confdefs.h <<\EOF
16187 #define HAVE_LC_MESSAGES 1
16188 EOF
16189
16190     fi
16191   
16192 else
16193   echo "$ac_t""no" 1>&6
16194 fi
16195
16196
16197
16198 if test "${multilib}" = "yes"; then
16199   multilib_arg="--enable-multilib"
16200 else
16201   multilib_arg=
16202 fi
16203
16204
16205 # Generate the various Makefiles, include files, and scripts.
16206
16207 # Needed so that g++ can find the correct include subdir automatically.
16208 INTERFACE=v3
16209
16210 # Export all the install information
16211
16212
16213 glibcpp_toolexecdir=no
16214 glibcpp_toolexeclibdir=no
16215
16216 # Export build and source directories.
16217 # These need to be absolute paths, yet at the same time need to
16218 # canonicalize only relative paths, because then amd will not unmount
16219 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
16220 glibcpp_builddir=`pwd`
16221 case $srcdir in
16222 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
16223 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
16224 esac
16225 glibcpp_prefixdir=${prefix}
16226
16227 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
16228 echo "configure:16229: checking for interface version number" >&5
16229 libstdcxx_interface=$INTERFACE
16230 echo "$ac_t""$libstdcxx_interface" 1>&6
16231
16232 # Process the option --with-gxx-include-dir=<path to include-files directory>
16233 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
16234 echo "configure:16235: checking for --with-gxx-include-dir" >&5
16235 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
16236 if test "${with_gxx_include_dir+set}" = set; then
16237   withval="$with_gxx_include_dir"
16238   case "${withval}" in
16239   yes)
16240     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
16241     gxx_include_dir=no
16242     ;;
16243   no)
16244     gxx_include_dir=no
16245     ;;
16246   *)
16247     gxx_include_dir=${withval}
16248     ;;
16249 esac
16250 else
16251   gxx_include_dir=no
16252 fi
16253
16254 echo "$ac_t""$gxx_include_dir" 1>&6
16255
16256 # Process the option "--enable-version-specific-runtime-libs"
16257 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
16258 echo "configure:16259: checking for --enable-version-specific-runtime-libs" >&5
16259 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16260 if test "${enable_version_specific_runtime_libs+set}" = set; then
16261   enableval="$enable_version_specific_runtime_libs"
16262     version_specific_libs=yes
16263 # Need the gcc compiler version to know where to install libraries
16264 # and header files if --enable-version-specific-runtime-libs option
16265 # is selected.
16266 gcc_version_trigger=${srcdir}/../gcc/version.c
16267 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
16268 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
16269 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
16270 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16271 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
16272
16273 else
16274   version_specific_libs=no
16275 fi
16276
16277 echo "$ac_t""$version_specific_libs" 1>&6
16278
16279 # Default case for install directory for include files.
16280 if test x"$version_specific_libs" = x"no" \
16281    && test x"$gxx_include_dir" = x"no"; then
16282   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
16283 fi
16284
16285 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
16286 # Install a library built with a cross compiler in tooldir, not libdir.
16287 if test x"$glibcpp_toolexecdir" = x"no"; then 
16288   if test -n "$with_cross_host" &&
16289      test x"$with_cross_host" != x"no"; then
16290     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
16291     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
16292   else
16293     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16294     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
16295   fi
16296 fi
16297
16298 echo $ac_n "checking for install location""... $ac_c" 1>&6
16299 echo "configure:16300: checking for install location" >&5
16300 echo "$ac_t""$gxx_include_dir" 1>&6
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310 # Export all the include and flag information to makefiles.
16311
16312   # Root level of the include sources.
16313   GLIBCPP_INCLUDE_DIR='$(top_srcdir)/include'
16314
16315   # Can either use include/c or include/c_std to grab "C" headers. This
16316   # variable is set to the include directory currently in use.
16317   # set with C_INCLUDE_DIR in GLIBCPP_ENABLE_CHEADERS
16318    
16319   # Passed down for canadian crosses.
16320   if  test x"$CANADIAN" = xyes; then
16321     TOPLEVEL_INCLUDES='-I$(includedir)'
16322   fi
16323
16324   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
16325
16326   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
16327
16328   #if GLIBCPP_NEED_LIBIO
16329   LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
16330   #else
16331   #LIBIO_INCLUDES='-I$(top_srcdir)/libio'
16332   #endif
16333
16334   #if GLIBCPP_USE_CSHADOW
16335   #  CSHADOW_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR) \
16336   #                   -I$(top_blddir)/cshadow'
16337   #else
16338   CSTD_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR)'
16339   #endif
16340
16341   # Now, export this to all the little Makefiles....
16342   
16343   
16344   
16345   
16346   
16347   
16348
16349
16350   # Optimization flags that are probably a good idea for thrill-seekers. Just
16351   # uncomment the lines below and make, everything else is ready to go... 
16352   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
16353   OPTIMIZE_CXXFLAGS=
16354   
16355
16356   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
16357   
16358
16359
16360 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
16361    grep "enable shared" > /dev/null; then
16362   LIBSUPCXX_PICFLAGS=-prefer-pic
16363 else
16364   LIBSUPCXX_PICFLAGS=
16365 fi
16366
16367
16368 # This should be done by mkincludedir, but hack around it now.
16369 blddir=`pwd`
16370 echo "checking for $blddir/include"
16371
16372 if test ! -d "$blddir/include"; then
16373   mkdir "$blddir/include"
16374 fi
16375
16376 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
16377 # and libsupc++/Makefile.am so that multilib installs will end up
16378 # installed in the correct place. To work around this not being passed
16379 # down from config-ml.in -> top_srcdir/Makefile.am ->
16380 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
16381 trap '' 1 2 15
16382 cat > confcache <<\EOF
16383 # This file is a shell script that caches the results of configure
16384 # tests run on this system so they can be shared between configure
16385 # scripts and configure runs.  It is not useful on other systems.
16386 # If it contains results you don't want to keep, you may remove or edit it.
16387 #
16388 # By default, configure uses ./config.cache as the cache file,
16389 # creating it if it does not exist already.  You can give configure
16390 # the --cache-file=FILE option to use a different cache file; that is
16391 # what configure does when it calls configure scripts in
16392 # subdirectories, so they share the cache.
16393 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16394 # config.status only pays attention to the cache file if you give it the
16395 # --recheck option to rerun configure.
16396 #
16397 EOF
16398 # The following way of writing the cache mishandles newlines in values,
16399 # but we know of no workaround that is simple, portable, and efficient.
16400 # So, don't put newlines in cache variables' values.
16401 # Ultrix sh set writes to stderr and can't be redirected directly,
16402 # and sets the high bit in the cache file unless we assign to the vars.
16403 (set) 2>&1 |
16404   case `(ac_space=' '; set | grep ac_space) 2>&1` in
16405   *ac_space=\ *)
16406     # `set' does not quote correctly, so add quotes (double-quote substitution
16407     # turns \\\\ into \\, and sed turns \\ into \).
16408     sed -n \
16409       -e "s/'/'\\\\''/g" \
16410       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16411     ;;
16412   *)
16413     # `set' quotes correctly as required by POSIX, so do not add quotes.
16414     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16415     ;;
16416   esac >> confcache
16417 if cmp -s $cache_file confcache; then
16418   :
16419 else
16420   if test -w $cache_file; then
16421     echo "updating cache $cache_file"
16422     cat confcache > $cache_file
16423   else
16424     echo "not updating unwritable cache $cache_file"
16425   fi
16426 fi
16427 rm -f confcache
16428
16429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16430
16431 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16432 # Let make expand exec_prefix.
16433 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16434
16435 # Any assignment to VPATH causes Sun make to only execute
16436 # the first set of double-colon rules, so remove it if not needed.
16437 # If there is a colon in the path, we need to keep it.
16438 if test "x$srcdir" = x.; then
16439   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
16440 fi
16441
16442 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16443
16444 DEFS=-DHAVE_CONFIG_H
16445
16446 # Without the "./", some shells look in PATH for config.status.
16447 : ${CONFIG_STATUS=./config.status}
16448
16449 echo creating $CONFIG_STATUS
16450 rm -f $CONFIG_STATUS
16451 cat > $CONFIG_STATUS <<EOF
16452 #! /bin/sh
16453 # Generated automatically by configure.
16454 # Run this file to recreate the current configuration.
16455 # This directory was configured as follows,
16456 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16457 #
16458 # $0 $ac_configure_args
16459 #
16460 # Compiler output produced by configure, useful for debugging
16461 # configure, is in ./config.log if it exists.
16462
16463 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16464 for ac_option
16465 do
16466   case "\$ac_option" in
16467   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16468     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16469     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16470   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16471     echo "$CONFIG_STATUS generated by autoconf version 2.13"
16472     exit 0 ;;
16473   -help | --help | --hel | --he | --h)
16474     echo "\$ac_cs_usage"; exit 0 ;;
16475   *) echo "\$ac_cs_usage"; exit 1 ;;
16476   esac
16477 done
16478
16479 ac_given_srcdir=$srcdir
16480 ac_given_INSTALL="$INSTALL"
16481
16482 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
16483 EOF
16484 cat >> $CONFIG_STATUS <<EOF
16485
16486 # Protect against being on the right side of a sed subst in config.status.
16487 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16488  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16489 $ac_vpsub
16490 $extrasub
16491 s%@SHELL@%$SHELL%g
16492 s%@CFLAGS@%$CFLAGS%g
16493 s%@CPPFLAGS@%$CPPFLAGS%g
16494 s%@CXXFLAGS@%$CXXFLAGS%g
16495 s%@FFLAGS@%$FFLAGS%g
16496 s%@DEFS@%$DEFS%g
16497 s%@LDFLAGS@%$LDFLAGS%g
16498 s%@LIBS@%$LIBS%g
16499 s%@exec_prefix@%$exec_prefix%g
16500 s%@prefix@%$prefix%g
16501 s%@program_transform_name@%$program_transform_name%g
16502 s%@bindir@%$bindir%g
16503 s%@sbindir@%$sbindir%g
16504 s%@libexecdir@%$libexecdir%g
16505 s%@datadir@%$datadir%g
16506 s%@sysconfdir@%$sysconfdir%g
16507 s%@sharedstatedir@%$sharedstatedir%g
16508 s%@localstatedir@%$localstatedir%g
16509 s%@libdir@%$libdir%g
16510 s%@includedir@%$includedir%g
16511 s%@oldincludedir@%$oldincludedir%g
16512 s%@infodir@%$infodir%g
16513 s%@mandir@%$mandir%g
16514 s%@toplevel_srcdir@%$toplevel_srcdir%g
16515 s%@host@%$host%g
16516 s%@host_alias@%$host_alias%g
16517 s%@host_cpu@%$host_cpu%g
16518 s%@host_vendor@%$host_vendor%g
16519 s%@host_os@%$host_os%g
16520 s%@target@%$target%g
16521 s%@target_alias@%$target_alias%g
16522 s%@target_cpu@%$target_cpu%g
16523 s%@target_vendor@%$target_vendor%g
16524 s%@target_os@%$target_os%g
16525 s%@build@%$build%g
16526 s%@build_alias@%$build_alias%g
16527 s%@build_cpu@%$build_cpu%g
16528 s%@build_vendor@%$build_vendor%g
16529 s%@build_os@%$build_os%g
16530 s%@glibcpp_basedir@%$glibcpp_basedir%g
16531 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16532 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16533 s%@INSTALL_DATA@%$INSTALL_DATA%g
16534 s%@PACKAGE@%$PACKAGE%g
16535 s%@VERSION@%$VERSION%g
16536 s%@ACLOCAL@%$ACLOCAL%g
16537 s%@AUTOCONF@%$AUTOCONF%g
16538 s%@AUTOMAKE@%$AUTOMAKE%g
16539 s%@AUTOHEADER@%$AUTOHEADER%g
16540 s%@MAKEINFO@%$MAKEINFO%g
16541 s%@SET_MAKE@%$SET_MAKE%g
16542 s%@CC@%$CC%g
16543 s%@glibcpp_CXX@%$glibcpp_CXX%g
16544 s%@AS@%$AS%g
16545 s%@AR@%$AR%g
16546 s%@RANLIB@%$RANLIB%g
16547 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16548 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16549 s%@MAINT@%$MAINT%g
16550 s%@EXEEXT@%$EXEEXT%g
16551 s%@LN_S@%$LN_S%g
16552 s%@OBJEXT@%$OBJEXT%g
16553 s%@STRIP@%$STRIP%g
16554 s%@LIBTOOL@%$LIBTOOL%g
16555 s%@CXXCPP@%$CXXCPP%g
16556 s%@enable_shared@%$enable_shared%g
16557 s%@enable_static@%$enable_static%g
16558 s%@ifGNUmake@%$ifGNUmake%g
16559 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
16560 s%@CPP@%$CPP%g
16561 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
16562 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
16563 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
16564 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
16565 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
16566 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
16567 s%@libio_la@%$libio_la%g
16568 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
16569 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
16570 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
16571 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
16572 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
16573 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
16574 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
16575 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
16576 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
16577 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
16578 s%@WERROR@%$WERROR%g
16579 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
16580 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
16581 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
16582 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
16583 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
16584 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
16585 s%@glibcpp_builddir@%$glibcpp_builddir%g
16586 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
16587 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
16588 s%@gxx_include_dir@%$gxx_include_dir%g
16589 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
16590 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
16591 s%@GLIBCPP_INCLUDE_DIR@%$GLIBCPP_INCLUDE_DIR%g
16592 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
16593 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
16594 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
16595 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
16596 s%@CSTD_INCLUDES@%$CSTD_INCLUDES%g
16597 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
16598 s%@WARN_FLAGS@%$WARN_FLAGS%g
16599 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
16600
16601 CEOF
16602 EOF
16603
16604 cat >> $CONFIG_STATUS <<\EOF
16605
16606 # Split the substitutions into bite-sized pieces for seds with
16607 # small command number limits, like on Digital OSF/1 and HP-UX.
16608 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16609 ac_file=1 # Number of current file.
16610 ac_beg=1 # First line for current file.
16611 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16612 ac_more_lines=:
16613 ac_sed_cmds=""
16614 while $ac_more_lines; do
16615   if test $ac_beg -gt 1; then
16616     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16617   else
16618     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16619   fi
16620   if test ! -s conftest.s$ac_file; then
16621     ac_more_lines=false
16622     rm -f conftest.s$ac_file
16623   else
16624     if test -z "$ac_sed_cmds"; then
16625       ac_sed_cmds="sed -f conftest.s$ac_file"
16626     else
16627       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16628     fi
16629     ac_file=`expr $ac_file + 1`
16630     ac_beg=$ac_end
16631     ac_end=`expr $ac_end + $ac_max_sed_cmds`
16632   fi
16633 done
16634 if test -z "$ac_sed_cmds"; then
16635   ac_sed_cmds=cat
16636 fi
16637 EOF
16638
16639 cat >> $CONFIG_STATUS <<EOF
16640
16641 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile mkcheck testsuite_flags"}
16642 EOF
16643 cat >> $CONFIG_STATUS <<\EOF
16644 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16645   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16646   case "$ac_file" in
16647   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16648        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16649   *) ac_file_in="${ac_file}.in" ;;
16650   esac
16651
16652   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16653
16654   # Remove last slash and all that follows it.  Not all systems have dirname.
16655   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16656   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16657     # The file is in a subdirectory.
16658     test ! -d "$ac_dir" && mkdir "$ac_dir"
16659     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16660     # A "../" for each directory in $ac_dir_suffix.
16661     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16662   else
16663     ac_dir_suffix= ac_dots=
16664   fi
16665
16666   case "$ac_given_srcdir" in
16667   .)  srcdir=.
16668       if test -z "$ac_dots"; then top_srcdir=.
16669       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16670   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16671   *) # Relative path.
16672     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16673     top_srcdir="$ac_dots$ac_given_srcdir" ;;
16674   esac
16675
16676   case "$ac_given_INSTALL" in
16677   [/$]*) INSTALL="$ac_given_INSTALL" ;;
16678   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16679   esac
16680
16681   echo creating "$ac_file"
16682   rm -f "$ac_file"
16683   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16684   case "$ac_file" in
16685   *Makefile*) ac_comsub="1i\\
16686 # $configure_input" ;;
16687   *) ac_comsub= ;;
16688   esac
16689
16690   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16691   sed -e "$ac_comsub
16692 s%@configure_input@%$configure_input%g
16693 s%@srcdir@%$srcdir%g
16694 s%@top_srcdir@%$top_srcdir%g
16695 s%@INSTALL@%$INSTALL%g
16696 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16697 fi; done
16698 rm -f conftest.s*
16699
16700 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16701 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16702 #
16703 # ac_d sets the value in "#define NAME VALUE" lines.
16704 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16705 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
16706 ac_dC='\3'
16707 ac_dD='%g'
16708 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16709 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16710 ac_uB='\([      ]\)%\1#\2define\3'
16711 ac_uC=' '
16712 ac_uD='\4%g'
16713 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16714 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16715 ac_eB='$%\1#\2define\3'
16716 ac_eC=' '
16717 ac_eD='%g'
16718
16719 if test "${CONFIG_HEADERS+set}" != set; then
16720 EOF
16721 cat >> $CONFIG_STATUS <<EOF
16722   CONFIG_HEADERS="config.h"
16723 EOF
16724 cat >> $CONFIG_STATUS <<\EOF
16725 fi
16726 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16727   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16728   case "$ac_file" in
16729   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16730        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16731   *) ac_file_in="${ac_file}.in" ;;
16732   esac
16733
16734   echo creating $ac_file
16735
16736   rm -f conftest.frag conftest.in conftest.out
16737   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16738   cat $ac_file_inputs > conftest.in
16739
16740 EOF
16741
16742 # Transform confdefs.h into a sed script conftest.vals that substitutes
16743 # the proper values into config.h.in to produce config.h.  And first:
16744 # Protect against being on the right side of a sed subst in config.status.
16745 # Protect against being in an unquoted here document in config.status.
16746 rm -f conftest.vals
16747 cat > conftest.hdr <<\EOF
16748 s/[\\&%]/\\&/g
16749 s%[\\$`]%\\&%g
16750 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16751 s%ac_d%ac_u%gp
16752 s%ac_u%ac_e%gp
16753 EOF
16754 sed -n -f conftest.hdr confdefs.h > conftest.vals
16755 rm -f conftest.hdr
16756
16757 # This sed command replaces #undef with comments.  This is necessary, for
16758 # example, in the case of _POSIX_SOURCE, which is predefined and required
16759 # on some systems where configure will not decide to define it.
16760 cat >> conftest.vals <<\EOF
16761 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16762 EOF
16763
16764 # Break up conftest.vals because some shells have a limit on
16765 # the size of here documents, and old seds have small limits too.
16766
16767 rm -f conftest.tail
16768 while :
16769 do
16770   ac_lines=`grep -c . conftest.vals`
16771   # grep -c gives empty output for an empty file on some AIX systems.
16772   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16773   # Write a limited-size here document to conftest.frag.
16774   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16775   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16776   echo 'CEOF
16777   sed -f conftest.frag conftest.in > conftest.out
16778   rm -f conftest.in
16779   mv conftest.out conftest.in
16780 ' >> $CONFIG_STATUS
16781   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16782   rm -f conftest.vals
16783   mv conftest.tail conftest.vals
16784 done
16785 rm -f conftest.vals
16786
16787 cat >> $CONFIG_STATUS <<\EOF
16788   rm -f conftest.frag conftest.h
16789   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
16790   cat conftest.in >> conftest.h
16791   rm -f conftest.in
16792   if cmp -s $ac_file conftest.h 2>/dev/null; then
16793     echo "$ac_file is unchanged"
16794     rm -f conftest.h
16795   else
16796     # Remove last slash and all that follows it.  Not all systems have dirname.
16797       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16798       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16799       # The file is in a subdirectory.
16800       test ! -d "$ac_dir" && mkdir "$ac_dir"
16801     fi
16802     rm -f $ac_file
16803     mv conftest.h $ac_file
16804   fi
16805 fi; done
16806
16807 EOF
16808
16809 cat >> $CONFIG_STATUS <<EOF
16810 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"
16811 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 \
16812 include/bits/ctype_base.h \
16813 include/bits/ctype_inline.h \
16814 include/bits/ctype_noninline.h include/bits/atomicity.h"
16815 EOF
16816
16817 cat >> $CONFIG_STATUS <<\EOF
16818 srcdir=$ac_given_srcdir
16819 while test -n "$ac_sources"; do
16820   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16821   set $ac_sources; ac_source=$1; shift; ac_sources=$*
16822
16823   echo "linking $srcdir/$ac_source to $ac_dest"
16824
16825   if test ! -r $srcdir/$ac_source; then
16826     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
16827   fi
16828   rm -f $ac_dest
16829
16830   # Make relative symlinks.
16831   # Remove last slash and all that follows it.  Not all systems have dirname.
16832   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
16833   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
16834     # The dest file is in a subdirectory.
16835     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
16836     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
16837     # A "../" for each directory in $ac_dest_dir_suffix.
16838     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
16839   else
16840     ac_dest_dir_suffix= ac_dots=
16841   fi
16842
16843   case "$srcdir" in
16844   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
16845   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
16846   esac
16847
16848   # Make a symlink if possible; otherwise try a hard link.
16849   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16850     ln $srcdir/$ac_source $ac_dest; then :
16851   else
16852     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
16853   fi
16854 done
16855 EOF
16856 cat >> $CONFIG_STATUS <<EOF
16857
16858
16859 srcdir=${srcdir}
16860 host=${host}
16861 target=${target}
16862 with_multisubdir=${with_multisubdir}
16863 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16864 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16865 glibcpp_basedir=${glibcpp_basedir}
16866 CC="${CC}"
16867 CXX="${CXX}"
16868
16869 EOF
16870 cat >> $CONFIG_STATUS <<\EOF
16871 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
16872 d=include/bits
16873     rm -f $d/gthr.h $d/gthr-single.h $d/gthr-default.h
16874     sed '/^#/s/\([A-Z_][A-Z_]*\)/_GLIBCPP_\1/g' <$d/gthr.h-in \
16875       | sed 's,"gthr-,"bits/gthr-,' >$d/gthr.h
16876     sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-single.h-in \
16877       | sed 's/\(GCC[A-Z_]*_H\)/_GLIBCPP_\1/g' >$d/gthr-single.h
16878     sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-default.h-in \
16879       | sed 's/\(GCC[A-Z_]*_H\)/_GLIBCPP_\1/g' \
16880       | sed 's/\([A-Z_]*WEAK\)/_GLIBCPP_\1/g' >$d/gthr-default.h
16881 if test -n "$CONFIG_FILES"; then
16882   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
16883   grep '^MULTISUBDIR =' Makefile >> src/Makefile
16884   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
16885 fi
16886 chmod +x mkcheck
16887 chmod +x testsuite_flags
16888
16889 exit 0
16890 EOF
16891 chmod +x $CONFIG_STATUS
16892 rm -fr confdefs* $ac_clean_files
16893 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16894
16895
16896
16897 # Generate bits/c++config.h
16898 # NB: This must be the first generated file as others include it. . .
16899 $srcdir/mkc++config $blddir $srcdir
16900
16901 # Generate bits/std_limits.h and src/limitsMEMBERS.cc
16902 if test ! -f stamp-limits; then
16903   $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
16904   if test ! -f include/bits/std_limits.h; then
16905     echo "mknumeric_limits failed to execute properly: exiting"
16906     exit 1
16907   else
16908     touch stamp-limits 
16909   fi
16910 fi
16911
16912
16913 # Sanity checking & User-visible messages.
16914 # Checks down here, otherwise they get scrolled off before
16915 # the user will notice.
16916
16917 # Trying to get more people to read documentation.  Possibly remove
16918 # check and warn all the time. There is no "informational" AC_MSG_
16919 # macro, so these are going to be printed even when --quiet/--silent
16920 # is given.
16921 if test ! -f stamp-sanity-warned; then
16922   touch stamp-sanity-warned
16923   echo ""
16924   echo "Please make certain that you read the installation information here:"
16925   echo "  faster => ${srcdir}/docs/install.html"
16926   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
16927   echo ""
16928   echo "and the configuration information here:"
16929   echo "  faster => ${srcdir}/docs/configopts.html"
16930   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
16931   echo ""
16932   echo "before proceeding with ${_cv_gnu_make_command}."
16933   echo ""
16934 fi